Commit Graph

10045 Commits

Author SHA1 Message Date
Andrew Cagney ba3a85231b * remote-utils.h (struct serial): Declare as opaque. Remove
include of "serial.h".
* Makefile.in (remote_utils_h): Update.
* monitor.h (struct serial): Declare as opaque.  Remove include of
"serial.h".
(struct monitor_ops): Replace serial_t with `struct serial *'.
* monitor.c (monitor_desc): Ditto.
2001-07-10 21:06:34 +00:00
Daniel Jacobowitz 2aa830e4a6 MIPS/Linux support 2001-07-10 20:41:54 +00:00
gdbadmin 2309f64071 *** empty log message *** 2001-07-10 00:00:08 +00:00
Mark Kettenis bf702e7ee8 * mi-out.c (mi_out_new): Initialize suppress_ouput field of newly
created `struct ui_out_data'.
2001-07-09 22:19:50 +00:00
Michael Chastain 112f9ab535 2001-06-24 Michael Chastain <chastain@redhat.com>
* gdb.base/arithmet.exp: Remove some tests to make all test names
	unique.
2001-07-09 21:42:52 +00:00
Kevin Buettner d8bf3afa18 Fix memory leak and compilation problems using AIX 5 native compiler. 2001-07-09 16:53:03 +00:00
Andrew Cagney 96052a95b1 * mi-main.c (mi_cmd_data_evaluate_expression): Replace value_ptr
with `struct value *'.
2001-07-09 14:50:37 +00:00
Andrew Cagney 65e2f7407a s/struct _serial_t/struct serial/ 2001-07-09 14:38:49 +00:00
Kevin Buettner 4671219147 Make function declarators match function declarations. 2001-07-09 05:53:44 +00:00
gdbadmin dd834ebbda *** empty log message *** 2001-07-09 00:00:03 +00:00
Andrew Cagney 090a2205b5 * gdbtypes.h (builtin_type_void_data_ptr): Rename
builtin_type_ptr.
* gdbtypes.c (builtin_type_void_data_ptr): Update.
(build_gdbtypes): Update.
(_initialize_gdbtypes): Update.
* values.c (value_as_pointer): Update.
* utils.c (host_pointer_to_address): Update.
(address_to_host_pointer): Update.
2001-07-08 20:42:15 +00:00
Andrew Cagney 8059d5aa1c * remote-udi.c (udi_wait): Make type, instead of name, of first
parameter a ptid_t.
2001-07-08 20:21:36 +00:00
Andrew Cagney cc61049cca * ser-mac.c: Make obsolete.
* Makefile.in (ser-mac.o): Ditto.
2001-07-08 20:11:12 +00:00
Eli Zaretskii 10ba702db3 * go32-nat.c (go32_get_windows_version, print_mem, go32_sysinfo)
(read_memory_region, get_descriptor, display_descriptor)
	(go32_sldt, go32_sgdt, go32_sidt): New functions.
	(top-level): Include ctype.h, utsname.h, dos.h, and go32.h.  Ifdef
	away `disable' from dos.h, since breakpoint.h defines an enum
	member of the same name, and GCC 2.7.2 barfs.
	(_initialize_go32_nat): Provide new commands dos-sysinfo, dos-ldt,
	dos-gdt, and dos-idt, all of them in the "info" class
2001-07-08 10:28:20 +00:00
gdbadmin 6cc9a2ee51 *** empty log message *** 2001-07-08 00:00:01 +00:00
Kevin Buettner 44312dba28 Allocate/free space associated with saved_entryset and saved_exitset. 2001-07-07 22:02:51 +00:00
Kevin Buettner 1d5e060273 Allocate/free space associated with saved_entryset and saved_exitset. 2001-07-07 21:55:28 +00:00
Andrew Cagney 5329c7568d Updates. 2001-07-07 17:39:35 +00:00
Andrew Cagney 51cc5b0737 * symtab.c (main_name): New function.
(set_main_name): New function.
* symtab.h: Declare.
* TODO: Update

From 2000-03-05 Anthony Green <green@redhat.com>:
* dbxread.c (process_one_symbol): Handle the N_MAIN stab by
setting main_name.
* blockframe.c (inside_main_func): Use main_name instead of
"main".
* symtab.c (find_main_psymtab): Ditto.
* source.c (select_source_symtab): Ditto.
* nlmread.c (nlm_symfile_read): Ditto.
* rs6000-tdep.c (skip_prologue): Ditto.
2001-07-07 17:19:50 +00:00
Andrew Cagney c72e73889f * gdbint.texinfo (User Interface): Update ui-out documentation to
refelect recent UI/MI updates.
2001-07-07 16:20:57 +00:00
Andrew Cagney 56ddd993fb TODO: Convert most items into PRs. 2001-07-07 16:12:19 +00:00
Mark Kettenis 58eeadbab5 * lin-lwp.c (status_to_str): New function.
(lin_lwp_wait): Use it to print debug messages where appropriate.
2001-07-07 10:58:37 +00:00
Michael Chastain 7f1659e652 I'm using the obvious fix rule to commit this.
Testing: I tested on native Red Hat Linux 7 using gcc 3.0.
The "info float" command exercises print_i387_value.

2001-07-06  Michael Chastain  <chastain@redhat.com>

	* i387-tdep.c (print_i387_value): Fix pointer glitch.

===

Index: i387-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i387-tdep.c,v
retrieving revision 1.11
diff -c -1 -0 -p -r1.11 i387-tdep.c
*** gdb/i387-tdep.c	2001/07/04 21:14:05	1.11
--- gdb/i387-tdep.c	2001/07/06 12:47:00
*************** print_i387_value (char *raw)
*** 163,184 ****
    DOUBLEST value;
    int len = TARGET_LONG_DOUBLE_BIT / TARGET_CHAR_BIT;
    char *tmp = alloca (len);

    /* This code only works on targets where ... */
    gdb_assert (TARGET_LONG_DOUBLE_FORMAT == &floatformat_i387_ext);

    /* Take care of the padding.  FP reg is 80 bits.  The same value in
       memory is 96 bits.  */
    gdb_assert (FPU_REG_RAW_SIZE < len);
!   memcpy (&tmp, raw, FPU_REG_RAW_SIZE);
!   memset (&tmp + FPU_REG_RAW_SIZE, 0, len - FPU_REG_RAW_SIZE);

    /* Extract the value as a DOUBLEST.  */
    /* Use extract_floating() rather than floatformat_to_doublest().
       The latter is lossy in nature.  Once GDB gets a host/target
       independent and non-lossy FP it will become possible to bypass
       extract_floating() and call floatformat*() directly.  Note also
       the assumptions about TARGET_LONG_DOUBLE above.  */
    value = extract_floating (tmp, len);

    /* We try to print 19 digits.  The last digit may or may not contain
--- 163,184 ----
    DOUBLEST value;
    int len = TARGET_LONG_DOUBLE_BIT / TARGET_CHAR_BIT;
    char *tmp = alloca (len);

    /* This code only works on targets where ... */
    gdb_assert (TARGET_LONG_DOUBLE_FORMAT == &floatformat_i387_ext);

    /* Take care of the padding.  FP reg is 80 bits.  The same value in
       memory is 96 bits.  */
    gdb_assert (FPU_REG_RAW_SIZE < len);
!   memcpy (tmp, raw, FPU_REG_RAW_SIZE);
!   memset (tmp + FPU_REG_RAW_SIZE, 0, len - FPU_REG_RAW_SIZE);

    /* Extract the value as a DOUBLEST.  */
    /* Use extract_floating() rather than floatformat_to_doublest().
       The latter is lossy in nature.  Once GDB gets a host/target
       independent and non-lossy FP it will become possible to bypass
       extract_floating() and call floatformat*() directly.  Note also
       the assumptions about TARGET_LONG_DOUBLE above.  */
    value = extract_floating (tmp, len);

    /* We try to print 19 digits.  The last digit may or may not contain
2001-07-07 00:14:06 +00:00
gdbadmin 0e2bc86140 *** empty log message *** 2001-07-07 00:00:02 +00:00
Michael Snyder 4c8a82de3f 2001-07-02 Michael Snyder <msnyder@redhat.com>
* gdb.base/completion.exp: Don't assume that break.c is the only
	source file that may contain functions named "marker".
2001-07-06 22:51:21 +00:00
Mark Kettenis 00d4fce629 * lin-lwp.c (count_events_callback): Fix formatting. Turn check
commented with "paranoia" into gdb_assert.
(select_event_lwp_callback): Likewise.
(cancel_breakpoints_callback): Bail out early if LP is the event
LWP.  Add comment about backup up breakpoints.  Fix formatting and
debug message.
(select_event_lwp): Make solely repsonsible for switching event
LWP.  Fix formatting and remove bogus "ERROR" debug message.
Don't backup breakpoints from here.
(lin_lwp_wait): Don't touch LP->status, let select_event_lwp
handle that.  Only call select_event_lwp if we're not waiting for
a specific LWP, i.e. when PID == -1.  Backup breakpoints from here.
2001-07-06 22:31:47 +00:00
Michael Snyder 7de4590493 2001-07-06 Michael Snyder <msnyder@redhat.com>
* procfs.c (procfs_resume): Silence noisy warning.
2001-07-06 21:31:04 +00:00
Michael Snyder b1aeb4c5a3 2001-06-12 Michael Snyder <msnyder@redhat.com>
* lin-lwp.c: Prevent thread starvation by using a monte carlo
	method to choose which of several event threads to handle next.

	(stop_wait_callback): Defer pushback of breakpoint events until
	later; add SIGTRAP events to the queue of unhandled events.
	Keep calling waitpid until SIGSTOP retrieved.  If more than one
	non-SIGSTOP event is retrieved, push them back onto the process
	queue using kill.
	(count_events_callback, select_singlestep_lwp_callback,
	select_event_lwp_callback, cancel_breakpoints_callback,
	select_event_lwp): New functions.  Implement monte carlo method
	for selecting which of several SIGTRAP threads to handle next.
	Push back the breakpoint event for all threads other than the
	selected one.
	(lin_lwp_wait): Call select_event_lwp to decide which of several
	sigtrapped lwps to handle next.
	(resume_callback): Disable code that attempts to handle
	step_resume breakpoints.  Let core gdb handle this.
2001-07-06 19:06:24 +00:00
Jim Blandy ee3a7b7f0d * gdbtypes.h (builtin_type_void_func_ptr): New builtin type.
* gdbtypes.c (builtin_type_void_func_ptr): Define the variable.
(build_gdbtypes): Initialize it.
(_initialize_gdbtypes): Swap it.
2001-07-06 14:44:19 +00:00
Daniel Jacobowitz e135b88994 Branch prediction code cleanup 2001-07-06 05:35:17 +00:00
Andrew Cagney 94bbb2c00d Mention mi0 and mi1 as --interpreter options. 2001-07-06 04:07:29 +00:00
Andrew Cagney 9dc5e2a936 Replace:
if (interpreter_p && strncmp (interpreter_p, "mi", 2) == 0)
with:
  if (ui_out_is_mi_like_p (uiout))
2001-07-06 03:53:11 +00:00
gdbadmin f1217e8515 *** empty log message *** 2001-07-06 00:00:03 +00:00
Daniel Jacobowitz 9022177cbd * mips-tdep.c (mips_software_single_step): New function.
* config/mips/tm-mips.h: Add prototype for
        mips_software_single_step.
2001-07-05 23:30:43 +00:00
Daniel Jacobowitz 2ac44c7030 * ppc-linux-nat.c (supply_gregset): Use elf_greg_t instead
of greg_t.
        (fill_gregset): Likewise.
2001-07-05 23:22:04 +00:00
Andrew Cagney bdda63b0c5 s/basename/lbasename/ 2001-07-05 21:32:39 +00:00
Jim Blandy 7b57012552 * d10v-tdep.c (d10v_frame_chain, d10v_frame_init_saved_regs,
show_regs, d10v_read_pc, d10v_write_pc, d10v_read_sp,
d10v_write_sp, d10v_write_fp, d10v_read_fp,
d10v_push_return_address): Call the functions d10v_make_daddr,
d10v_make_iaddr, d10v_convert_iaddr_to_raw, and
d10v_convert_daddr_to_raw, not the global macros D10V_MAKE_DADDR,
D10V_MAKE_IADDR, D10V_CONVERT_IADDR_TO_RAW, and
D10V_CONVERT_DADDR_TO_RAW.
2001-07-05 21:27:08 +00:00
Jim Blandy af703f9620 * dwarf2read (dwarf2_build_psymtabs_hard): Doc fix. 2001-07-05 16:45:48 +00:00
Mark Kettenis e087d0d6ee * config/i386/xm-go32.h (HOST_I386): Removed.
* config/i386/xm-linux.h (HOST_I386): Removed.
2001-07-05 14:40:51 +00:00
gdbadmin 8aa9a2becc *** empty log message *** 2001-07-05 00:00:04 +00:00
Mark Kettenis c96646d00b * i387-tdep.c (print_i387_value): Add extra space after final full
stop in comment.
2001-07-04 21:14:05 +00:00
Andrew Cagney af6c57eaf6 * gdbint.texinfo (Target Architecture Definition): GDBARCH is a C
structure and not macros.
(Host Definition): Document that much of this chapter is obsolete.
(Target Architecture Definition): Update list of files that make
up a target architecture.
(Coding): Update.
2001-07-04 20:52:14 +00:00
Andrew Cagney 9da8e4f8c8 * config/arm/tm-arm.h: Include "floatformat.h". 2001-07-04 19:57:53 +00:00
Andrew Cagney d0df847233 * i387-tdep.c: Include "gdb_assert.h".
(print_i387_value): Use extract_floating to extract the FP value
from a zero padded local buffer.
2001-07-04 19:19:58 +00:00
Andrew Cagney 291903b139 * TODO: Delete all thread items. The thread code was overhauled. 2001-07-04 18:51:51 +00:00
Elena Zannoni 2ed3d0b5f1 2001-07-04 Elena Zannoni <ezannoni@redhat.com>
* memattr.c (create_mem_region): Move n to next memory region,
	to avoid infinite loop.
2001-07-04 18:06:02 +00:00
Elena Zannoni 80629b1b75 2001-07-04 Elena Zannoni <ezannoni@redhat.com>
* memattr.h: Add copyright statement.
	* memattr.c: Ditto.
2001-07-04 17:59:02 +00:00
Jim Blandy 0b010bcc00 * dwarf2read.c (struct partial_die_info): New member: has_pc_info.
(read_partial_die): Delete fourth argument; we return this info in
the struct partial_die_info object itself now.
(dwarf2_build_psymtabs_hard, scan_partial_symbols): Use the
has_pc_info field of the partial die struct, rather than passing a
variable by reference to read_partial_die.
2001-07-04 16:08:20 +00:00
Jim Blandy 9faef8a7c5 Doc fix. 2001-07-04 16:00:35 +00:00
Jim Blandy 2541c7cf08 * dwarf2read.c (dwarf2_build_psymtabs_hard): Remove extraneous
code in loop condition.  This seemed to be trying to round
info_ptr up to the next four-byte boundary, but that's not what it
actually did.  If we discover the problem the old code was really
trying to address, we can fix it properly.
2001-07-04 16:00:08 +00:00
gdbadmin 3231403007 *** empty log message *** 2001-07-04 00:00:02 +00:00
Michael Snyder 5d12882f43 2001-07-03 Michael Snyder <msnyder@redhat.com>
* thread_db (find_new_threads_callback, thread_db_thread_alive,
        attach_thread): Update comments.
2001-07-03 21:04:49 +00:00
Michael Snyder 00783ba94c 2001-06-29 Ken Whaley <ken@believe.com>
* thread-db.c (attach_thread): Check for TD_THR_ZOMBIE in addition
	to TD_THR_UNKNOWN when looking for defunct zombie threads.
	(thread_db_thread_alive): Ditto.
	(find_new_threads_callback): Ditto.
2001-07-03 21:01:59 +00:00
Michael Snyder 4970cb0f38 2001-07-03 Michael Snyder <msnyder@redhat.com>
* gdb.c++/classes.exp: Accept both "foo(void)" and "foo()" in
	the output of the ptype command.
2001-07-03 19:52:46 +00:00
gdbadmin d81420d233 *** empty log message *** 2001-07-03 00:00:03 +00:00
Michael Snyder d85da69f69 2001-07-02 Michael Snyder <msnyder@redhat.com>
* gdb.base/corefile.exp: Quote the curly braces in regexp.
2001-07-02 21:54:14 +00:00
Daniel Jacobowitz 2740bf6ca5 MAINTAINERS: Add myself to the write-after-approval list 2001-07-02 19:40:47 +00:00
Daniel Jacobowitz f7856c8f27 2001-07-02 Daniel Jacobowitz <drow@mvista.com>
* solib-svr4.c: Include "elf/mips.h".
        (elf_locate_base): Make DT_MIPS_RLD_MAP block unconditional.
2001-07-02 19:37:59 +00:00
Jim Blandy f9aca02d5a * dwarf2read.c (read_comp_unit, sibling_die, dump_die,
dump_die_list, store_in_ref_table, follow_die_ref): Make these
static; they're private functions.
2001-07-02 17:43:07 +00:00
gdbadmin c233c2d21d *** empty log message *** 2001-07-02 00:00:01 +00:00
Eli Zaretskii 42a076f06f * coffread.c (coff_symfile_read): Parse DWARF2 info if present. 2001-07-01 10:04:58 +00:00
gdbadmin b9f83eaa83 *** empty log message *** 2001-07-01 00:00:02 +00:00
gdbadmin 18ea51df51 *** empty log message *** 2001-06-30 00:00:02 +00:00
Elena Zannoni 7746781066 2001-06-28 Elena Zannoni <ezannoni@redhat.com>
* TODO: Add import of readline 4.2 as a gdb 5.2 task.
2001-06-29 20:32:48 +00:00
Andrew Cagney 83aa8bc680 * gdbint.texinfo (Target Architecture Definition): Update
EXTRACT_STRUCT_VALUE_ADDRESS and EXTRACT_STRUCT_VALUE_ADDRESS_P.
The latter has been changed to a true predicate.
2001-06-29 16:21:45 +00:00
Andrew Cagney 855931793f Sort file. 2001-06-29 16:17:34 +00:00
Andrew Cagney cde2d0fbc4 * config/djgpp/fnchange.lst: Rename mi0-var-block.exp,
mi0-var-cmd.exp, mi0-var-child.exp and mi0-var-display.exp.
2001-06-29 15:53:36 +00:00
Andreas Jaeger 37965979b4 2001-06-29 Andreas Jaeger <aj@suse.de>
* MAINTAINERS: Add myself to the write-after-approval list.
2001-06-29 15:13:03 +00:00
Andrew Cagney a1337894c1 * remote-array.c (SWAP_TARGET_AND_HOST): Delete macro.
(get_hex_word): Don't use HOST_BYTE_ORDER.
(array_fetch_registers): Add variable ``reg''.  Use
store_unsigned_integer to byte-swap the register.  Delete unused
local ``regs''.
2001-06-29 04:41:20 +00:00
Andrew Cagney aa8aac6823 Per Bothner as Java maintainer (joint). 2001-06-29 03:01:33 +00:00
Andrew Cagney a80163397d * rdi-share/unixcomm.c (SERIAL_PREFIX): Always provide a default.
* rdi-share/hostchan.h (__unix): Hack, provide a default value.
* rdi-share/host.h (__unix): Hack, define when __NetBSD__.
* TODO: Update.
* MAINTAINERS: Update.  arm-elf builds.
2001-06-29 01:19:23 +00:00
gdbadmin 461b96748f *** empty log message *** 2001-06-29 00:00:02 +00:00
Jim Blandy bf93dfed85 * d10v-tdep.c (d10v_ts2_dmap_register): Doc fix. 2001-06-28 23:12:18 +00:00
Jim Blandy f5e1cf12f7 * d10v-tdep.c (10v_frame_chain_valid, d10v_use_struct_convention,
d10v_breakpoint_from_pc, d10v_register_byte,
d10v_register_raw_size, d10v_register_virtual_size,
d10v_register_virtual_type, d10v_register_convertible,
d10v_register_convert_to_virtual, d10v_register_convert_to_raw,
d10v_make_daddr, d10v_make_iaddr, d10v_daddr_p, d10v_iaddr_p,
d10v_convert_iaddr_to_raw, d10v_convert_daddr_to_raw,
d10v_store_struct_return, d10v_store_return_value,
d10v_extract_struct_value_address, d10v_frame_saved_pc,
d10v_saved_pc_after_call, d10v_pop_frame, d10v_skip_prologue,
d10v_frame_chain, d10v_frame_init_saved_regs,
d10v_init_extra_frame_info, d10v_read_pc, d10v_write_pc,
d10v_read_sp, d10v_write_sp, d10v_write_fp, d10v_read_fp,
d10v_push_return_address, d10v_push_arguments,
d10v_extract_return_value): Make these functions static.
2001-06-28 22:10:41 +00:00
Andrew Cagney 8afc772b05 * gdb.disasm/Makefile.in (clean mostlyclean): Add h8300s to list
of files to delete.
From 2000-06-15 Kazu Hirata <kazu@hxi.com>:
* gdb.disasm/h8300s.exp: New file.
gdb.disasm/h8300s.s: Likewise.
2001-06-28 22:01:22 +00:00
Andrew Cagney 100a02e1de From Fernando Nasser:
* infrun.c (handle_inferior_event): Handle "nexti" inside function
prologues.
2001-06-28 21:48:41 +00:00
Michael Snyder 80b34fabd3 2001-06-28 Michael Snyder <msnyder@redhat.com>
* infrun.c (handle_inferior_event): Replace prev_pc test in all
	calls to bpstat_stop_status (removed in 1999-09-24).  This test
	helps distinguish stepping over a breakpoint trap from stepping
	thru a jump to the instruction after a breakpoint trap.
	(handle_inferior_event): Don't bother writing the PC if
	DECR_PC_AFTER_BREAK is zero (optimization).
	* breakpoint.c (bpstat_stop_status): Add comment explaining the
	purpose and usage of the "not_a_breakpoint" argument in computing
	the breakpoint address.
2001-06-28 21:34:03 +00:00
Andrew Cagney 1456ad8e67 From 2000-12-03 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
* monitor.c (setmem_resp_delim_pattern): New regexp pattern.
(setreg_resp_delim_pattern): Likewise.
(setmem_resp_delim_fastmap): New buffer.
(setreg_resp_delim_fastmap): Likewise.
(monitor_open): Initialize above regexp if they are defined.
(monitor_write_memory): Use regexp to check the result of write.
(monitor_store_register): Likewise to check result of register set.
2001-06-28 20:03:10 +00:00
Andrew Cagney 399371f6c0 From 2000-06-14 John Marshall <john_w_marshall@palm.com>:
* coff-solib.c: Include symfile.h and objfiles.h to make
OBJF_SHARED visible.
2001-06-28 19:54:41 +00:00
Andrew Cagney d6ba65f6c1 Some how this never got removed when ChangeLog was created :-( 2001-06-28 19:14:22 +00:00
Andrew Cagney b0e2e90ab4 Build MI by default. 2001-06-28 19:04:10 +00:00
Joel Brobecker ad98fdaf51 Add entry for change in solib-osf.c (osf_in_dynsym_resolve_code). 2001-06-28 10:38:12 +00:00
Joel Brobecker b184b2876a (osf_in_dynsym_resolve_code): Add a comment explaining the consequences of
always returning zero. No code change.
2001-06-28 10:36:19 +00:00
Andrew Cagney 49dd83ba17 From 2001-06-08 Daniel Jacobowitz <djacobowitz@mvista.com>:
* defs.h (enum target_signal): Add TARGET_SIGNAL_REALTIME_65
to TARGET_SIGNAL_REALTIME_127.
* target.c (struct signals): Add SIG63 to SIG127.
(target_signal_from_host): Handle up to 127 signals.
(do_target_signal_to_host): Likewise.
2001-06-28 04:31:36 +00:00
Andrew Cagney 29372230ea * remote-sds.c (sds_start_remote): Change type of ``c'' to int
from possibly unsigned char.
2001-06-28 03:40:27 +00:00
Andrew Cagney a196c81c19 Exterminate ser-ocd.c. 2001-06-28 03:33:26 +00:00
Andrew Cagney f4c100a72c Dan Berlin stepped down as C++ maintainer. 2001-06-28 02:40:39 +00:00
Andrew Cagney e7745bde5c Sort write after approval. 2001-06-28 02:37:02 +00:00
gdbadmin 64fc7bdd68 *** empty log message *** 2001-06-28 00:00:05 +00:00
Andrew Cagney cff22675c6 For MI>0, output full breakpoint table header information. Output the
breakpoint table body as a list.
2001-06-27 17:27:08 +00:00
Andrew Cagney d7faa9e713 Always send the breakpoint table headers to ui-out. MI/CLI can
internally decide if they should be displayed.
2001-06-27 00:09:01 +00:00
gdbadmin 605121c0ec *** empty log message *** 2001-06-27 00:00:02 +00:00
Andrew Cagney 8eb6914741 delete reference to query output 2001-06-26 19:11:48 +00:00
Andrew Cagney dc61bc6d40 * mi-cmd-stack.c (list_args_or_locals): Output a list of "args" or
"locals" entries.
* gdbmi.texinfo (stack-list-locals, stack-list-arguments)
(exec-interrupt, target-select, thread-select): Update
documentation.
* mi-stack.exp: Update.  Output for args=... and
locals=... changed to a list.
2001-06-26 18:50:51 +00:00
Andrew Cagney d5e5643b98 * mi-cmd-stack.c (mi_cmd_stack_list_frames): Output a list of
"stack" entries.
(mi_cmd_stack_list_args): Ditto for "stack-args".
* gdbmi.texinfo (stack-list-frames, stack-list-arguments): Update
documentation.
(GDB/MI Stack Manipulation Commands): Fix section title.  Was
Stack Manipulation Commands in GDB/MI.
* mi-stack.exp: Update. Output for stack=..., args=... and
stack-args=... changed to a list.
2001-06-26 18:13:46 +00:00
Andrew Cagney 42a74a599a Unscramble two merged patches. This puts memory lists back to normal. 2001-06-26 05:12:37 +00:00
Andrew Cagney 68c81b5495 * stack.c (print_frame): For ui_out, output a list of arguments.
Update all tests.  Update doco.
2001-06-26 04:48:49 +00:00
Kevin Buettner 834091c8e9 Update paper trail entry. 2001-06-26 00:41:44 +00:00
Michael Snyder ef5cf84e21 2001-06-25 Michael Snyder <msnyder@redhat.com>
* infrun.c: Eliminate the "thread_step_needed" state variable,
	and replace it with a relatively simple test in resume.
	(resume): Replace thread_step_needed logic with a test for
	stepping, breakpoint_here_p and breakpoints_inserted.
	Move CANNOT_STEP_BREAKPOINT logic to after thread_step logic.
	(proceed): Discard thread_step_needed logic.
	(wait_for_inferior, fetch_inferior_event, handle_inferior_event):
	Discard thread_step_needed logic.
2001-06-26 00:26:42 +00:00
gdbadmin 36d4f36439 *** empty log message *** 2001-06-26 00:00:03 +00:00
Andrew Cagney 45399be4ec Update data-read-memory so that it outputs lists. 2001-06-25 21:05:11 +00:00
Andrew Cagney 80f43b40c5 For data-list-register-values output a list of register values. 2001-06-25 20:08:53 +00:00
Andrew Cagney 173d689456 Output register-names as a list. 2001-06-25 19:02:18 +00:00
Andrew Cagney 40d5d7e983 data-list-changed-registers outputs a list of registers. 2001-06-25 18:34:25 +00:00
gdbadmin d14c409db3 *** empty log message *** 2001-06-25 00:00:02 +00:00
Fernando Nasser cb90e81a8b 2001-06-24 Fernando Nasser <fnasser@redhat.com>
* remote-rdi.c (arm_rdi_wait): Fix return type in prototype.
	* rdi-share/host.h: Add missing parenthesis in conditional.

2001-06-22  J.T. Conklin  <jtc@redback.com>

	* configure.in: include nlist.h when checking for member som_addr
	in struct so_map.
	* configure: regenerate.
2001-06-24 13:46:09 +00:00
gdbadmin 78586f06cb *** empty log message *** 2001-06-24 00:00:02 +00:00
Andrew Cagney 2dd627049d Rename gdb.mi/ChangeLog-mi to gdb.mi/ChangeLog. Update everything. 2001-06-23 21:47:09 +00:00
Andrew Cagney 70242e8df5 Change mi/data-disassemble command output to a list ([]) instead of
({}).
2001-06-23 20:43:56 +00:00
Michael Chastain b4127474dc 2001-06-22 Michael Chastain <chastain@redhat.com>
* gdb.base/arithmet.exp: Use gdb_test instead of send_gdb/gdb_expect.
	This is operationally compatible with the previous version.
2001-06-23 05:22:46 +00:00
gdbadmin 06ed0087a3 *** empty log message *** 2001-06-23 00:00:01 +00:00
J.T. Conklin 39812cebba * configure.in: include nlist.h when checking for member som_addr
in struct so_map.
* configure: regenerate.
2001-06-22 16:01:31 +00:00
gdbadmin 4772d57e2a *** empty log message *** 2001-06-22 00:00:02 +00:00
Keith Seitz 8d2139f30c * cli-out.c (cli_out_new): Initialize new structure member
"suppress_output".
2001-06-21 22:54:06 +00:00
Andrew Cagney 76fe6b98e8 * mi-out.c (struct ui_out_data): Replace field first_header with
suppress_output.
(mi_begin, mi_end): Check suppress_header.
(mi_field_int, mi_field_skip): Ditto.
(mi_field_string, mi_field_fmt): Ditto.
(mi_table_begin): When nr_rows is zero, set suppress_header else,
output the start of the header.
(mi_table_body): Clear suppress header.
2001-06-21 19:27:50 +00:00
Andrew Cagney a7c14aa534 Output ``[]'' when a list. 2001-06-21 16:15:20 +00:00
Andrew Cagney b25959ec59 * ui-out.h (ui_out_table_header): Add parameter ``col_name''.
(table_header_ftype): Ditto.
* cli-out.c (cli_table_header): Update.
* ui-out.c (ui_out_table_header): Update.
(uo_table_header): Update.
(default_table_header): Update.
(append_header_to_list): Update.
(struct ui_out_header): Add field ``col_name''.
(append_header_to_list): Use xstrdup.  Initialize col_name.
* breakpoint.c (breakpoint_1): Pass COL_NAME to
ui_out_table_header.
2001-06-21 15:39:54 +00:00
gdbadmin afe5040c4c *** empty log message *** 2001-06-21 00:00:05 +00:00
gdbadmin 1fe213d941 *** empty log message *** 2001-06-20 00:00:06 +00:00
Andrew Cagney 698384cd69 * cli-out.c: Include "gdb_assert.h'.
(struct ui_out_data): Add field ``suppress_output.
(cli_table_begin): When NR_ROWS is zero, suppress_output.
(cli_table_end): Clear suppress_output.
(cli_table_body): Check suppress_output.
(cli_table_header, cli_begin): Ditto.
(cli_end, cli_field_int, cli_field_skip): Ditto.
(cli_field_string, cli_field_fmt, cli_spaces): Ditto.
(cli_text, cli_message, cli_wrap_hint): Ditto.
* breakpoint.c (breakpoint_1): Close the ui_out table before
printing the breakpoint not found message.
2001-06-19 20:30:11 +00:00
Andrew Cagney d63f1d40c6 * ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
(default_table_begin): Ditto.
* breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to
ui_out_table_begin.
Update everything.
2001-06-19 16:19:16 +00:00
gdbadmin 1c41510302 *** empty log message *** 2001-06-19 00:00:02 +00:00
Andrew Cagney 7f3b047364 * breakpoint.c (breakpoint_1): Restructure. Compute the
nr_printable_breakpoints.  Move the header output to before the
main print breakpoints loop.
(user_settable_breakpoint): New function.
2001-06-18 18:48:06 +00:00
Andrew Cagney b30bf9ee99 Recognize -i=mi0, -i=mi1 and -i=mi. 2001-06-18 17:57:43 +00:00
Andrew Cagney 83905903c9 * gdbarch.sh: Generate an error when conflicting macro
definitions.  Generate an error when both pure multi-arch and
"tm.h".
* gdbarch.h, gdbarch.c: Regenerate.
* defs.h (GDB_MULTI_ARCH_TM): Rewrite definition.
2001-06-18 13:14:40 +00:00
Andrew Cagney b85045e00b Clone the mi-*.exp tests into mi0-*.exp. 2001-06-18 12:55:07 +00:00
gdbadmin f6eb6cffba *** empty log message *** 2001-06-18 00:00:03 +00:00
Andrew Cagney c2202abf19 Solaris native is only multi-arch partial. 2001-06-17 16:57:28 +00:00
Fernando Nasser 0d70f41b68 2001-06-17 Fernando Nasser <fnasser@redhat.com>
From 2001-06-15  Eirik Fuller  <eirik@hackrat.com>
	* cli/cli-script.c (free_command_lines): Reset list pointer.
2001-06-17 15:16:12 +00:00
Eli Zaretskii cb51c4e04d * annotate.texi: Add @noindent where needed. From Dmitry
Sivachenko <dima@Chg.RU>.
	* gdb.texinfo: Indexing fix.  From Dmitry Sivachenko.
2001-06-17 07:00:34 +00:00
gdbadmin 9733f989bb *** empty log message *** 2001-06-17 00:00:02 +00:00
Andrew Cagney 7824d2f224 * arch-utils.c (init_frame_pc_default): New function
* arch-utils.h (init_frame_pc_default): Declare.
* gdbarch.sh (INIT_FRAME_PC): Default to init_frame_pc_default and
not init_frame_pc_noop.
* gdbarch.h, gdbarch.c: Re-generate.
* blockframe.c (INIT_FRAME_PC): Delete macro definition.
* mips-tdep.c (mips_gdbarch_init): Set init_frame_pc to
init_frame_pc_noop.
2001-06-16 20:00:24 +00:00
Andrew Cagney 1622c8f764 regenerate gdbarch.c. 2001-06-16 19:48:01 +00:00
Andrew Cagney 656db9b087 Fix typo. 2001-06-16 19:42:35 +00:00
Andrew Cagney 163e6d2d75 * gdbmi.texinfo (GDB/MI Output Syntax): Add tuples and lists to
syntax.
(GDB/MI Draft Changes to Output Syntax): Delete section.
2001-06-16 18:57:56 +00:00
gdbadmin a2e50ba75e *** empty log message *** 2001-06-16 00:00:01 +00:00
Andrew Cagney 01fb743397 Multi-arch CANNOT_FETCH_REGISTER() and CANNOT_STORE_REGISTER(). 2001-06-15 23:50:46 +00:00
Andrew Cagney 10312cc4d2 Multi-arch INIT_FRAME_PC() and INIT_FRAME_PC_FIRST(). 2001-06-15 23:10:55 +00:00
Michael Snyder dd80620e6b 2001-06-15 Michael Snyder <msnyder@redhat.com>
* infrun.c (context_switch): New function.  Abstract the operation
	of saving and restoring infrun's state when switching threads.
	(handle_inferior_event): Normalize the handling of the 'thread hop'
	event (when the wrong thread hits a thread-specific breakpoint,
	and we need to solo-step that thread past the breakpoint).
	Call keep_going, instead of target_resume.  Handle the subsequent
	singlestep-trap as a normal event instead of just resuming.
2001-06-15 22:44:20 +00:00
Andrew Cagney 875e176797 multi-arch ADDR_BITS_REMOVE. 2001-06-15 22:10:21 +00:00
Andrew Cagney 4009c67702 Recognise the s390 host and target. 2001-06-15 19:23:45 +00:00
Andrew Cagney d6dd581ead * gdbarch.sh (EXTRACT_STRUCT_VALUE_ADDRESS_P): Delete definition.
(EXTRACT_STRUCT_VALUE_ADDRESS): Change to a function with
predicate.
* gdbarch.h, gdbarch.c: Regenerate.
* values.c (value_being_returned): Change the reference to
EXTRACT_STRUCT_VALUE_ADDRESS_P to a function call.
2001-06-15 19:19:23 +00:00
Joel Brobecker 09843d7f0c Add Paul Hilfinger and Joel Brobecker to the Write After Approval list. 2001-06-15 15:43:05 +00:00
gdbadmin 3911a05ba9 *** empty log message *** 2001-06-15 00:00:03 +00:00
Andrew Cagney df2396a1a3 Fix doco on ``!'' and ``R'' packets. 2001-06-14 22:10:46 +00:00
Michael Snyder dc8acb9740 2001-06-14 Michael Snyder <msnyder@redhat.com>
* remote.c (show_remote_protocol_qSymbol_packet_cmd,
	set_remote_protocol_qSymbol_packet_cmd): New functions.
	(init_all_packet_configs, show_remote_cmd): Add qSymbol packet.
	(remote_check_symbols): New function.  Implement qSymbol packet,
	allowing target to request symbol lookup service from gdb.
	(remote_open_1, remote_async_open_1): Call remote_check_symbols,
	allowing symbol lookup from exec_bfd on connection to target.
	(remote_new_objfile): New function.  Catch new objfile notifications
	from shared library module, and call remote_check_symbols.
	(_initialize_remote): Hook remote_new_objfile into the shared
	library notification chain.  Add "set remote symbol-lookup" command.
2001-06-14 19:27:45 +00:00
Michael Snyder 0f1f2b0a26 2001-06-13 Michael Snyder <msnyder@redhat.com>
* gdb.texinfo (Protocol): Add doc for new packet "qSymbol:".
2001-06-14 19:17:00 +00:00
Keith Seitz 578c1fe6f0 * tracepoint.c (trace_command): We now have tracepoint
events. Get rid of those ugly hooks.
	(tracepoint_operation): Likewise.
	(trace_pass_command): Likewise.
2001-06-14 17:09:36 +00:00
Jim Blandy 8dbfb380f7 * lib/gdb.exp (gdb_test): Doc fix. 2001-06-14 00:12:32 +00:00
gdbadmin 3cf44cbedd *** empty log message *** 2001-06-14 00:00:02 +00:00
Michael Snyder 6c0d3f6a03 2001-06-13 Michael Snyder <msnyder@redhat.com>
* gdbthread.h (struct thread_info): Add new fields:
        current_line, current_symtab, step_sp, for saved infrun state.
        * thread.c (save_infrun_state, load_infrun_state): Save and
        restore current_line, current_symtab, and step_sp.
        (add_thread): Rather than adding assignments to initialize
	the new fields, just use memset (tp, 0, sizeof (*tp).
	This way future new fields will not be overlooked.
        * infrun.c (handle_inferior_event): Save and restore save_sp,
        current_line, and current_symtab when switching threads.
2001-06-13 22:56:16 +00:00
Elena Zannoni 16075aced5 2001-06-13 Elena Zannoni <ezannoni@redhat.com>
* MAINTAINERS: Add Andrew Cagney as co-maintainer of
       testsuite/gdb.mi.
2001-06-13 21:00:39 +00:00
Andrew Cagney 31889e007b s/basename/lbasename/ clean up consequences of assuming lbasename()
returns const char *.
2001-06-13 18:30:07 +00:00
Eli Zaretskii 4ac40b292f * config/i386/xm-go32.h (SLASH_P, ROOTED_P, SLASH_CHAR)
(SLASH_STRING): Remove unised definitions.
	* config/i386/xm-cygwin.h: Likewise.
2001-06-13 09:08:05 +00:00
Eli Zaretskii 24f931295e * gdb.texinfo (Signals): Clarify the default setting of signal
handling.
2001-06-13 08:40:23 +00:00
gdbadmin 60283d93d6 *** empty log message *** 2001-06-13 00:00:02 +00:00
Daniel Berlin dbcd315aee Remove self 2001-06-12 17:44:33 +00:00
Andrew Cagney 6b28c1868d * ui-out.c (ui_out_list_begin): Add parameter ``id''.
(make_cleanup_ui_out_list_begin_end): Ditto.  Open the list.
* ui-out.h: Update declarations.
2001-06-12 16:44:36 +00:00
Andrew Cagney 1f8cc6dbc0 s/char */const char */ 2001-06-12 15:03:04 +00:00
gdbadmin a9e171c15c *** empty log message *** 2001-06-12 00:00:04 +00:00
Andrew Cagney 59807497db s/supress/suppress/ 2001-06-11 21:54:04 +00:00
Andrew Cagney 88379bafe5 s/char */const char */ 2001-06-11 16:34:47 +00:00
Michael Chastain f2d8c86d38 2001-06-10 Michael Chastain <chastain@redhat.com>
* gdb.base/exprs.exp: Remove a duplicate test.
2001-06-11 16:06:46 +00:00
Eli Zaretskii c94fdfd0a8 * completer.c (gdb_completer_loc_break_characters): New variable.
(line_completion_function): If we are completing on locations,
	back up the start of word pointer past all characters which can
	appear in a location spec.
	(location_completer): New function.

	* completer.h: Add prototype for location_completer.

	* symtab.c (make_source_files_completion_list)
	(add_filename_to_list, not_interesting_fname): New functions.
	(filename_seen): New function, body extracted from
	output_source_filename.
	(output_source_filename): Call filename_seen to check if the file
	was already printed.
	(make_symbol_completion_list): If TEXT includes a
	double-quoted string, return an empty list, not NULL.
	(make_file_symbol_completion_list): New function, similar to
	make_symbol_completion_list but with an additional argument
	SRCFILE.

	* symtab.h (make_file_symbol_completion_list)
	(make_source_files_completion_list): Add prototypes.

	* breakpoint.c (_initialize_breakpoint): Make location_completer
	be the completion function for all commands which set breakpoints
	and watchpoints.
	(top-level): #include "completer.h".

	* tracepoint.c (_initialize_tracepoint): Make location_completer
	be the completion function for the "trace" command.
	(top-level): #include "completer.h".

	* printcmd.c (_initialize_printcmd): Make location_completer be
	the completion function for the "print", "inspect", "call", and
	"disassemble" commands.
	(top-level): #include "completer.h".

	* infcmd.c (_initialize_infcmd): Make location_completer be the
	completion function for the "go", "jump", and "until" commands.
	(top-level): #include "completer.h".
2001-06-11 16:05:25 +00:00
gdbadmin 4e67fe297f *** empty log message *** 2001-06-11 00:00:02 +00:00
Christopher Faylor 67bfdb8913 Remove trailing garbage from previous checkin. 2001-06-10 16:29:03 +00:00
Christopher Faylor 0b6a968ee6 * gnu-regex.c: Eliminate obsolete check for _MSC_VER.
* utils.c (notice_quit): Remove dummy function only used for _MSC_VER.
* values.c (unpack_double): Remove obsolete check for _MSC_VER.
* defs.h: Ditto.
* m32r-rom.c: Ditto.
* p-exp.y: Ditto.
* ser-e7kpc.c: Ditto.  Define WIN32_LEAN_AND_MEAN under _WIN32, for faster
compilation.
(get_ds_base): Remove _MSC_VER version of this function.
* nindy-share/ttyflush.c: Ditto.  X
* rdi-share/host.h: Ditto.  X
* ser-go32.c (dos_readchar): Remove call to obsolete function.
* remote-sim.c (gdb_os_poll_quit): Ditto.
* remote-e7000.c (expect): Remove obsolete #if 0'ed code.
* main.c (captured_main): Eliminate special Cygwin checks.
* ser-tcp.c: Remove unneeded __CYGWIN__ guard against system include.
2001-06-10 16:25:51 +00:00
Andrew Cagney c42644305e Oops (again), missed a comment. 2001-06-10 01:20:21 +00:00
Andrew Cagney d5e8ba6212 Move supress_field_separator logic into mi_open() and mi_close(). 2001-06-10 01:16:14 +00:00
Andrew Cagney 5e173cfd82 Oops. Clean up changelog entry. 2001-06-10 00:56:06 +00:00
Andrew Cagney bf5efbaba6 Add missing $(ui_out_h) dependencies. 2001-06-10 00:47:02 +00:00
Andrew Cagney e2e11a4195 Make char *, const char *. 2001-06-10 00:22:41 +00:00
gdbadmin f38fc537cb *** empty log message *** 2001-06-10 00:00:04 +00:00
Michael Snyder 2e66352450 2001-06-08 Michael Snyder <msnyder@redhat.com>
* breakpoint.c (delete_breakpoint): Pass mark_inserted to
        remove_breakpoint, so that the subsequent test for
        bpt->inserted will succeed, and duplicates will be fixed up.
2001-06-09 01:55:43 +00:00
gdbadmin c49cf2cdb9 *** empty log message *** 2001-06-09 00:00:03 +00:00
Per Bothner bebd888e23 * dwarf2read.c (set_cu_language): Handle DW_LANG_Java. 2001-06-08 18:08:03 +00:00
gdbadmin ca1edc95bb *** empty log message *** 2001-06-08 00:27:01 +00:00
Keith Seitz 8f45b7fe58 * tracepoint.c (tracepoint_opertation): Add ui event
notifications.
	(trace_pass_command): Ditto.
2001-06-07 22:02:18 +00:00
Andrew Cagney a4f1e24f01 Jeff Law sepped down as HP/UX maintainer. 2001-06-07 21:43:00 +00:00
Andrew Cagney b76a2a579b Doco write-after-approval criteria. 2001-06-07 21:03:48 +00:00
Jim Blandy 72e74a2126 * gdbarch.sh: Make sure that '[' doesn't interpret interesting
variable values as operators.
2001-06-07 20:52:47 +00:00
Keith Seitz 8c6ee71525 * gdb-events.sh: Fix quote escaping which was obsoleted
by last patch.
2001-06-07 20:18:45 +00:00
Keith Seitz 9e79109904 * gdb-events.sh: Make if statements and tests
a little more portable.
	Don't use shell's echo command to put strings containing
	escaped characeters into a file -- different flavors of /bin/sh
	require differnt levels of escaping. Use cat <<EOF instead.
	Our internal field separator is a colon. Change all
	commands which assume it is a space.
2001-06-07 19:40:55 +00:00
Mark Kettenis fce0e6e1ed * lin-lwp.c (struct lwp_info): Add member `resumed'.
(iterate_over_lwps): Make sure we can handle CALLBACK deleting the
LWP it's called for.
(lin_lwp_attach): Mark LWP as resumed to make sure the fake
SIGSTOP is reported.
(resume_clear_callback): New function.
(resume_set_callback): New function.
(lin_lwp_resume): Mark all LWP's that we're going to resume as
resumed, and unmark all others.
(status_callback): Only report a pending wait status if we pretend
that LP has been resumed.
(resumed_callback): New function.
(lin_lwp_wait): Add assertions to check that LWP's are properly
marked as resumed.  Partially revert 2001-05-25 patch by Michael
Snyder: do not resume all threads.  Add comment explaining the
problems associated with this bit of code.
2001-06-07 19:31:10 +00:00
Keith Seitz 54403c593a * MAINTAINTERS: Syd Polk is stepping down from
maintaining libgui. I am replacing him.
2001-06-07 18:37:40 +00:00
Eli Zaretskii 1d06468c1f * config/mips/tm-irix6.h: New file.
* config/mips/irix6.mh: New file.

	* config/mips/irix6.mt: New file.

	* config/mips/xm-irix6.h: New file.

	* config/mips/nm-irix6.h: New file.

	* mips-tdep.c (mips_gdbarch_init) <MIPS_ABI_N32>: Set up the
	disassembler info in tm_print_insn_info as appropriate for the N32
	ABI.  Force N32 ABI to be the default if the CPU is R8000 or
	R10000.

	* configure.tgt (mips*-sgi-irix6*): Map to irix6.

	* configure.host (mips*-sgi-irix6*): Ditto.
2001-06-07 15:57:57 +00:00
Andrew Cagney 3d499020f6 s/abort/gdb_assert/ 2001-06-07 14:51:20 +00:00
Jim Blandy fd661517de * gdb.base/return2.exp (main): Use values to test float and double
returns that are not NaN's, to avoid being confused by IEEE
comparison rules.
2001-06-07 03:42:41 +00:00
Jim Blandy c5f5341b0e * cp-abi.h: Rearrange code to put documentation comments above the
functions we export.  The actual function table itself simply
refers to those functions.  Minor doc fixes.
2001-06-06 22:21:15 +00:00
Jim Blandy 81564d3419 * gdb.base/return2.exp (main): Use values to test float and double
returns that are not NaN's, to avoid being confused by IEEE
comparison rules.
2001-06-06 22:05:08 +00:00
Michael Snyder da55addb08 2001-06-04 Michael Snyder <msnyder@redhat.com>
* gdb.threads/pthreads.exp (check_control_c): Return 0 for success,
	non-zero if control_c fails.  Terminate the test on failure,
	rather than wait for 12 more tests to time out.
2001-06-06 18:34:53 +00:00
Jim Blandy b18bced9af * gdb.base/exprs.exp ("sizeof (long long) > sizeof (long) (true)"):
Don't forget to match the GDB prompt.
2001-06-06 18:25:46 +00:00
Jim Blandy 42c6598756 * gdb.trace/gdb_c_test.c, actions.c: Fix misspellings. 2001-06-06 18:22:29 +00:00
Jim Blandy ceaa8edf7e * gdbarch.sh: Changes to effect the following:
* gdbarch.c (initialize_non_multiarch): New function.
* gdbarch.h (initialize_non_multiarch): New declaration.
* arch-utils.c (initialize_current_architecture): For
non-multiarch configurations, call initialize_non_multiarch.
2001-06-06 17:47:28 +00:00
Andrew Cagney 0cd64fe2f1 Delete some unnecessary PTR uses. 2001-06-06 17:12:30 +00:00
Jonathan Larmour 8849f47dd9 * arch-utils.c (generic_prepare_to_proceed): Allow for having
stopped due to a Ctrl-C as well as breakpoints.

* hppa-tdep.c (hppa_prepare_to_proceed): Add FIXME as this may not
support thread switches after Ctrl-C.
* lin-lwp.c (lin_lwp_prepare_to_proceed): Ditto.
* linux-thread.c (linuxthreads_prepare_to_proceed): Ditto.
* m3-nat.c (mach3_prepare_to_proceed): Ditto.
2001-06-06 16:31:32 +00:00
Jim Blandy b3cc30771b * gdbarch.sh, gdbarch.c: Revert change of 2001-06-01; all
per-architecture data should be registered at initialization time,
before any gdbarch objects get used, so the generality is
unnecessary.
2001-06-06 14:46:30 +00:00
Keith Seitz ba9fe0367b * gdb-events.sh (function_list): Add tracepoint_create,
tracepoint_delete, and tracepoint_modify events.
	* gdb-events.c: Regenerated.
	* gdb-events.h: Regenerated.
2001-06-06 14:44:42 +00:00
Keith Seitz cea35b0824 Regenerate...
* gdb-events.sh: Update copyrights.
	Change free to xfree.
	* gdb-events.c: Regenerated.
	* gdb-events.h: Regenerated.
2001-06-06 14:38:52 +00:00
Keith Seitz e28f816adc * gdb-events.sh: Update copyrights.
Change free to xfree.
	* gdb-events.c: Regenerated.
	* gdb-events.h: Regenerated.
2001-06-06 14:36:05 +00:00
Eli Zaretskii c369014146 * source.c (mod_path, openp): Use #ifdef HAVE_DOS_BASED_FILE_SYSTEM
instead of #if HAVE_DOS_BASED_FILE_SYSTEM.
	* completer.c: Ditto.
	* cli/cli-cmds.c (cd_command): Ditto.
2001-06-06 10:27:59 +00:00
Jim Blandy 5b41e5f013 * gdb.base/help.exp: Update pattern to exclue `print-load-map'
command.
2001-06-05 05:03:44 +00:00
Eli Zaretskii 1012bd0e5f * mips-tdep.c (show_mipsfpu_command): Remove unused variable msg.
(mips_set_processor_type_command): Remove unused variable j.
	(mips_breakpoint_from_pc): Declare breakpoint instruction
	sequences as unsigned char, to avoid compiler warnings.
2001-06-04 07:53:08 +00:00
Eli Zaretskii fe4e3eb861 * source.c (mod_path, openp): Use HAVE_DOS_BASED_FILE_SYSTEM
instead of system-specific define's like _WIN32 and __MSDOS__.
	Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH instead of SLASH_P and
	ROOTED_P.
	(top-level): #include "filenames.h".

	* solib.c (solib_open): Use IS_DIR_SEPARATOR and IS_ABSOLUTE_PATH
	instead of SLASH_CHAR, ROOTED_P and SLASH_P.
	(top-level): #include "filenames.h".

	* defs.h (SLASH_P, SLASH_CHAR, ROOTED_P): Remove definitions.
	(SLASH_STRING): Define only for _WIN32.

	* completer.c: Use HAVE_DOS_BASED_FILE_SYSTEM instead of
	__MSDOS_.

	* cli/cli-cmds.c (cd_command): Use IS_DIR_SEPARATOR and
	IS_ABSOLUTE_PATH instead of SLASH_P and ROOTED_P.  Replace
	system-specific ifdefs with HAVE_DOS_BASED_FILE_SYSTEM.
	(top-level): #include "filenames.h".
2001-06-04 07:45:08 +00:00
Eli Zaretskii 37ba1196cf *** empty log message *** 2001-06-04 07:29:29 +00:00
Eli Zaretskii 3161604405 * go32-nat.c (go32_wait): Change the return value to ptid_t.
* config/djgpp/fnchange.lst: Add two new files in the
	gdb/testsuite/gdb.c++/ directory to the remapped names.

	* config/djgpp/djconfig.sh (lt_cv_sys_max_cmd_len): Set to 12KB.
2001-06-04 07:29:00 +00:00
Jim Blandy 3c875b6f0d Expand the gdbarch per-architecture data vector as needed, rather
than requiring that all per-architecture data be registered before
the first gdbarch object is allocated.
* gdbarch.sh: Changes to effect the following:
* gdbarch.c (alloc_gdbarch_data, init_gdbarch_data): Delete
declarations and definitions.
(check_gdbarch_data): New function, and declaration.
(gdbarch_alloc): Don't call alloc_gdbarch_data; leaving the fields
zero is good enough.
(free_gdbarch_data): Tolerate a null data pointer.  Free only
those data items gdbarch->data actually has allocated.
(set_gdbarch_data, gdbarch_data): Call check_gdbarch_data.
(gdbarch_update_p): No need to call init_gdbarch_data.
2001-06-02 03:50:56 +00:00
Kevin Buettner 98f96ba187 Make alignment of struct arguments in inferior function calls comply with
the IA-64 Software Conventions and Runtime manual.
2001-06-02 01:37:20 +00:00
Michael Snyder 8601f500c8 2001-06-01 Michael Snyder <msnyder@redhat.com>
* thread.c (delete_step_resume_breakpoint): New function.
	Maintain internal consistency of the thread list while deleting
	a step_resume_breakpoint.
	* gdbthread.h (delete_step_resume_breakpoint): Export.
	* breakpoint.c (bpstat_find_step_resume_breakpoint):
	Make thread-aware: don't return a step_resume_breakpoint
	for the wrong thread.
	* infrun.c (wait_for_inferior): Call delete_step_resume_breakpoint
	instead of delete_breakpoint_current_contents.
	(fetch_inferior_event): Ditto.
	(handle_inferior_event): Call delete_step_resume_breakpoint
	instead of delete_breakpoint.
2001-06-02 00:36:20 +00:00
Michael Snyder c6ad9598d0 2001-06-01 Michael Snyder <msnyder@redhat.com>
* infrun.c (handle_inferior_event): After singlestepping over a
	thread-specific breakpoint, use currently_stepping() to decide
	whether to step or continue.
2001-06-01 23:23:19 +00:00
Jim Blandy b27b8843dc * gnu-v3-abi.c (gnu_v3_abi_ops, vtable_type_gdbarch_data): Make
these static --- there's no reason other files should use these.
2001-06-01 22:22:25 +00:00
Jim Blandy d0bbfec7b6 * partial-stab.h (case N_FUN: case 'f':, case N_FUN: case 'F':)
Fix memory leak.
2001-06-01 21:17:50 +00:00
Jim Blandy 531017dfa4 * partial-stab.h: New complaint: function_outside_compilation_unit.
(case N_FUN: case 'f':, case N_FUN: case 'F':): If pst is zero,
complain, and don't try to set pst's start address.
2001-06-01 20:37:11 +00:00
Kevin Buettner 015e046f80 * gdb.base/annota1.exp (info break): Match four or more spaces
after "Address".
2001-06-01 02:50:17 +00:00
Kevin Buettner 58ab00f996 Prologue scanner modifications. 2001-06-01 02:39:51 +00:00
Kevin Buettner d469a809fa * ia64-linux-tdep.c (IA64_LINUX_SIGCONTEXT_OFFSET): Revise to
match the location at which the kernel is placing the sigcontext
	struct.
2001-06-01 02:22:01 +00:00
Michael Chastain fb1ffbbef0 2001-05-31 Michael Chastain <chastain@redhat.com>
* gdb.c++/cplusfuncs.cc (dm_type_char_star): Remove superfluous cast.
	(dm_type_int_star): Likewise.
	(dm_type_long_star): Likewise.
	(dm_type_void_star): Likewise.
2001-05-31 22:04:46 +00:00
Christopher Faylor 9fd7143a93 * partial-stab.h: Revert previous patch. 2001-05-31 03:41:31 +00:00
Christopher Faylor 34a7837abd * partial-stab.h: Consistently guard against pst being NULL. 2001-05-31 02:58:57 +00:00
Michael Snyder c4365b1915 2001-05-25 Michael Snyder <msnyder@redhat.com>
* lin-lwp.c (lin_lwp_attach_lwp): Call stop_wait_callback,
	to consume the SIGSTOP generated by PTRACE_ATTACH.
	(stop_wait_callback): If a SIGTRAP or a SIGINT event is consumed,
	try again to get the SIGSTOP event.
	(lin_lwp_wait): Resume all threads when ignoring a signal.
	This will insure that newly attached threads get resumed.
2001-05-30 22:58:37 +00:00
Michael Snyder 5f885618b6 2001-05-25 Michael Snyder <msnyder@redhat.com>
* lin-lwp.c (stop_wait_callback): Discard redundant SIGINT events.
2001-05-30 18:15:45 +00:00
Kevin Buettner 5ea2a32c88 * gdb.base/completion.exp (INPUTRC): Set this environment variable
to a known value in order to get consistent results regardless
	of the setting of INPUTRC or the presence or contents of .inputrc.
2001-05-30 02:54:41 +00:00
Alexandre Oliva 09d011c5ca * symfile.c (compare_psymbols, compare_symbols): Declare using
PTR, as in the definition.
* minsyms.c (compare_minimal_symbols): Likewise.
* coffread.c (find_targ_sec): Likewise.
* elfread.c (free_elfinfo, elf_locate_sections): Likewise.
* mipsread.c (alphacoff_locate_sections): Likewise.
* mdebugread.c (compare_blocks): Likewise.
2001-05-29 10:45:10 +00:00
Alexandre Oliva ad53e288d3 * symfile.c (compare_psymbols, compare_symbols): Declare using
PTR, as in the definition.
2001-05-29 10:20:27 +00:00
Nicholas Duffek b41be06e3b * solib.c (update_solib_list): Move target_resize_to_sections()
into solib_map_sections() loop.
	(info_sharedlibrary_command): Try bfd_arch_bits_per_address() if
	bfd_get_arch_size() fails.
2001-05-26 00:55:11 +00:00
Nicholas Duffek a1cd19081d * Makefile.in (osfsolib.c, osfsolib.o): Rename to solib-osf.c and
solib-osf.o.
	* config/alpha/alpha-osf1.mh (NATDEPFILES): Replace osfsolib.o
	with solib-osf.o and solib.o.
	* config/alpha/alpha-osf2.mh: Likewise.
	* config/alpha/alpha-osf3.mh: Likewise.
	* solib-osf.c: New file, renamed and largely rewritten from
	osfsolib.c.
2001-05-26 00:52:15 +00:00
Michael Snyder aa6c001779 2001-05-25 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_write_bytes): Update 'p' packet pointer.
2001-05-25 17:46:33 +00:00
Jim Blandy 4b1fedf105 * gnu-v2-abi.c (gnuv2_virtual_fn_field): There's no need to clear
VALUE_POINTED_TO_OFFSET here; if value_cast doesn't return a
useful value, then we should fix that instead.
2001-05-25 17:09:48 +00:00
Michael Snyder ac55707e4a 2001-05-24 Michael Snyder <msnyder@redhat.com>
* gdb.threads/linux-dp.exp: Remove assumptions about thread ordering.
	Don't require that the main thread and the manager thread are the
	first in the list.
2001-05-25 01:29:01 +00:00
Nicholas Duffek fa3b51d224 * solist.h (struct so_list): Document the requirement that
current_sos initialize some fields to 0.
2001-05-25 01:27:11 +00:00
Michael Snyder ae23c49223 2001-05-24 Michael Snyder <msnyder@redhat.com>
* gdb.threads/pthreads.exp (test_startup): Relax test for thread
	debugging.  If test fails, issue an "unsupported" not a "fail".
2001-05-25 01:10:20 +00:00
Jim Blandy 400071f14b Don't assume that short is shorter than int.
* gdb.base/exprs.exp ("print unsigned short == (~0)"): Don't
assume that shorts are smaller than ints.  On a 16-bit machine,
this isn't true.
("print unsigned char == (~0)"): Add test that verifies that ~0,
an int, is not equal to ~0 stored in an unsigned char.  This tests
the same thing that the previous test meant to, but works on
16-bit machines, too.
("print unsigned char != (~0)"): Same test, complemented.
2001-05-25 00:01:29 +00:00
Mark Kettenis 2747183e55 * gnu-nat.c: Include <ctype.h>.
(gnu_pid_to_exec_file): Add PID parameter.
(set_sig_thread_cmd): Use PIDGET on return value from
thread_id_to_pid.
(proc_string): Use MERGEPID to construct argument to
pid_to_thread_id.
2001-05-24 20:05:07 +00:00
Michael Snyder 0816a3e5d5 2001-05-24 Michael Snyder <msnyder@redhat.com>
* gdb.threads/pthreads.exp (all_threads_running): Add an explicit
	test for (full_coverage == 0).  This makes the test run faster,
	and prevents dejagnu getting out of step.
2001-05-24 19:54:41 +00:00
Michael Snyder 2caa35cb88 2001-05-21 Michael Snyder <msnyder@redhat.com>
* gdb.base/long_long.exp: Allow for targets with 4-byte short.
2001-05-24 18:30:10 +00:00
Kevin Buettner f6dc23a931 * gdb.base/finish.exp (finish_void): Revise pattern for
stopping on the call statement to not permit stopping at
	the start of the instructions comprising the call sequence.
2001-05-24 01:14:15 +00:00
Michael Chastain 7dbd117d87 2001-05-19 Michael Chastain <chastain@redhat.com>
* gdb.base/callfuncs.exp: Make all test names unique.
	* gdb.base/commands.exp: Make all test names unique.
	* gdb.base/condbreak.exp: Make all test names unique.
	* gdb.base/dbx.exp: Make all test names unique.
	* gdb.base/default.exp: Make all test names unique.
	* gdb.base/define.exp: Make all test names unique.  Conform some FAIL
	and TIMEOUT messages to their corresponding PASS message.
	* gdb.base/ending-run.exp: Make all test names unique.
	* gdb.base/long_long.exp: Remove duplicate test.
2001-05-23 19:04:13 +00:00
Kevin Buettner e4f237da05 * breakpoint.c (breakpoint_address_is_meaningful): New function.
(check_duplicates): Don't compare non-meaningful addresses.
2001-05-23 00:52:44 +00:00
Michael Snyder 5fd913cc66 2001-05-22 Michael Snyder <msnyder@redhat.com>
* thread-db.c: Allow for defunct zombie threads.
	(attach_thread): Do not attempt to attach zombie thread.
	(thread_db_thread_alive): Return false for defunct zombie thread.
	(find_new_threads_callback): Don't add defunct zombie thread to list.
2001-05-23 00:06:15 +00:00
Jim Blandy 7ed49443c2 Add support for the GNU V3 C++ ABI.
(Includes changes by Dan Berlin.)

* gnu-v3-abi.c: New file.
* minsyms.c: #include "value.h" and "cp-abi.h".
(install_minimal_symbols): Check the minimal symbol table for
symbols that look mangled in the V3 style, and select the V3 ABI
if we find any.
* Makefile.in (SFILES): Add gnu-v3-abi.c.
(COMMON_OBS): Add gnu-v3-abi.o.
(gnu-v3-abi.o): Add new rule.
(minsyms.o): Depend on $(cp_abi_h) and $(value_h).
2001-05-22 21:02:41 +00:00
Kevin Buettner 6b0b0a9efb * gdb.base/finish.exp (finish_void): Allow "finish" command to
stop on the call statement as well as the statement after the
	call.
2001-05-22 00:25:27 +00:00
Jim Blandy 8d65888a44 * values.c (value_primitive_field): If we're extracting a base
class, then the type of the result should be the base class being
extracted, not the type of which it is a base class.
2001-05-21 20:08:59 +00:00
Jim Blandy a44999d56d * value.h (struct value): Doc fix, and rearrange members to place
them near their explanations.
2001-05-21 20:02:22 +00:00
Michael Snyder 6c3f2dbfeb 2001-05-21 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_async_wait): Added new variable fieldsize.
	Add fieldsize (return value of hex2bin) to string pointer p.
2001-05-21 18:48:26 +00:00
Jim Blandy 984e377c92 Formatting tweak. 2001-05-21 05:30:59 +00:00
Stephane Carrez b4fa4770b8 * m68hc11-tdep.c (m68hc11_pop_frame): Fix stack pointer computation.
(m68hc11_analyze_instruction): Update the pc correctly.
	(m68hc11_guess_from_prologue): Take into account the stack correction
	for the saving address.
2001-05-20 11:53:42 +00:00
Daniel Berlin 2b12787743 2001-05-07 Daniel Berlin <dan@cgsoftware.com>
Changes by Jim Ingham:

	* values.c (value_change_enclosing_type): New function.  If the
	new enclosing type is larger than the old one, we need to allocate
	more space.
	* value.h: Add value_change_enclosing_type prototype.
	* valops.c (value_cast): Use it.
	(value_assign): Use it.
	(value_addr): Use it.
	(value_ind): Use it.
	(value_full_object): Use it.

2001-05-07  Daniel Berlin  <dan@cgsoftware.com>

	* values.c (value_static_field): Handle static fields that have a constant value.
2001-05-19 15:20:14 +00:00
Michael Snyder 736d0890a9 2001-05-17 Michael Snyder <msnyder@redhat.com>
* blockframe.c (create_new_frame): Zero all the fields via memset,
	rather than zeroing them one by one.
2001-05-17 20:04:46 +00:00
Eli Zaretskii a577b05c32 * top.c (user_args): Remove unused declaration. 2001-05-17 15:05:32 +00:00
Michael Snyder 9734519825 2001-05-15 John S Kallal <jskallal@home.com>
* remote.c (remote_wait): Added new variable fieldsize.
        Add fieldsize (return value of hex2bin) to string pointer p.
2001-05-16 20:10:52 +00:00
Michael Snyder b8adfa9f55 2001-05-16 Michael Snyder <msnyder@redhat.com>
* infcmd.c (do_registers_info): Move alloca outside of loop.
2001-05-16 20:05:49 +00:00
Mark Kettenis aca21d9a80 * sparc-tdep.c (sparc_gdbarch_init): Get the architecture from
info.bfd_arch_info.
2001-05-15 11:38:26 +00:00
Kevin Buettner b08cfdb65e Fix warnings resulting from fact that GET_LWP() now returns a long rather
than an int.
2001-05-15 00:13:47 +00:00
Kevin Buettner ca6724c16a Redefine ptid_t to be a struct rather than an int. 2001-05-15 00:03:38 +00:00
Andrew Cagney a5d7c4910b Remove stray @item's. 2001-05-14 20:24:23 +00:00
Michael Snyder 234fa6d16b 2001-05-14 Michael Snyder <msnyder@redhat.com>
* remote.c (hex2bin):   Make first argument const.
	Require explicit count, don't accept null-terminated str.
	(remote_resume, remote_async_resume): White space fix-up.
2001-05-14 19:02:00 +00:00
Mark Kettenis caadab2cfa * symtab.c (lookup_symtab_1): Use lbasename (NAME) instead of
basename (NAME).  The FreeBSD basename returns a pointer to a
static buffer, even if it's simply returning a string identical to
its argument.
(lookup_partial_symtab): Likewise.
2001-05-14 18:49:54 +00:00
Michael Snyder cb0ba49e37 2001-05-14 Michael Snyder <msnyder@redhat.com>
* solib.c, solib.h: Add comment for function no_shared_libraries.
2001-05-14 18:45:45 +00:00
Michael Snyder 2644f3936c 2001-05-14 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_write_bytes): Set nr_bytes to return value of
	bin2hex.
2001-05-14 18:31:35 +00:00
Kevin Buettner 183a2f1a42 Fix no_shared_libraries() declaration. 2001-05-14 18:09:05 +00:00
Andrew Cagney 5a9aa5dc6f Output ``[...]'' when a list. 2001-05-14 16:59:49 +00:00
Andrew Cagney 1dd1751e96 * remote.c (remote_write_bytes): Set nr_bytes before returning it.
* solib.h (no_shared_libraries): Declare.
2001-05-14 16:48:01 +00:00
Andrew Cagney b732d07d86 Fix logic selecting a new architecture. Use the sequence:
o	provided by INFO
	o	hard-wired by (gdb) set ...
	o	reversed engineered from INFO.abfd
	o	default to previous architecture
2001-05-14 16:43:35 +00:00
Andrew Cagney 05a54c4ffa * Makefile.in (GDBvn.texi): Set GDBVN from ../version.in. 2001-05-14 16:18:50 +00:00
Michael Chastain fb18ec4a20 Add missing entry for change committed on 2001-01-28. 2001-05-12 21:56:04 +00:00
Fernando Nasser 67dd5ca691 2001-05-12 Fernando Nasser <fnasser@redhat.com>
* remote-e7000.c (e7000_open): Check for bad baud rate.
	* remote-st.c (st2000_open): Ditto.
2001-05-12 21:05:59 +00:00
Jim Blandy f8e42d245c * thread.c (do_captured_list_thread_ids): Use ui_out_tuple_begin
and ui_out_tuple_end instead of ui_out_list_begin and
ui_out_list_end.
2001-05-12 05:04:01 +00:00
Jim Blandy 529acb4893 * Makefile.in (gnu-v2-abi.o): Add $(demangle_h) to list of
dependencies.  Reorder dependencies to match #includes in file,
for easier verification.
2001-05-12 04:09:38 +00:00
Andrew Cagney 666547aa9e s/ui_out_list/ui_out_tupple/ 2001-05-12 04:08:24 +00:00
Jim Blandy 30c98d84cd * gnu-v2-abi.c: Don't #include "gdb_regex.h". We don't use it. 2001-05-12 04:01:16 +00:00
Andrew Cagney 1faa59a8b2 Tweeks from RDBrown to fix compiling on HP/UX using HP's compiler. 2001-05-12 03:18:34 +00:00
Andrew Cagney 5d6640b1ba NEWS on version.in. 2001-05-12 01:34:09 +00:00
Jim Blandy 99567b1b4e * mips-tdep.c (mips_store_return_value,
mips_extract_return_value): Pass arguments to
return_value_location in the proper order.
2001-05-12 00:38:11 +00:00
Andrew Cagney d381488167 Replace Makefile.in:VERSION with the file version.in. 2001-05-12 00:31:09 +00:00
Elena Zannoni a602d56b17 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/completion.exp: Revamp test. Make it execute on all
       platforms.
2001-05-11 19:53:38 +00:00
Elena Zannoni 40713331c5 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
* gdb.base/completion.exp: Revamp test. Make it execute on all
       platforms.
2001-05-11 19:53:04 +00:00
Kevin Buettner 4d28f7a8fb Add ``type'' parameter to set_raw_breakpoint(). 2001-05-11 19:46:35 +00:00
Fernando Nasser 08b4f080d5 2001-05-11 Fernando Nasser <fnasser@redhat.com>
* ser-unix.c (rate_to_code): Issue warning if baud rate is invalid.
	(hardwire_setbaudrate): Set errno to EINVAL and return with error
	if the conversion of the baud rate to code fails.
2001-05-11 18:34:13 +00:00
Michael Snyder 3ac4495ac8 2001-02-28 Michael Snyder <msnyder@mvstp600e.cygnus.com>
* symtab.c (print_msymbol_info): Print addresses by portable method
	longest_local_hex_string_custom.  Allow for 64-bit addresses.
2001-05-11 17:48:31 +00:00
Fernando Nasser e800833bdb 2001-05-11 Fernando Nasser <fnasser@redhat.com>
* mi-var-child.exp: Adjust for the fact that now (char *) can be
	dereferenced.
2001-05-11 07:00:04 +00:00
Andrew Cagney 9a0f0643ee Pass the tupple/list parameter. 2001-05-10 22:32:26 +00:00
Andrew Cagney 127431f9a7 2001-05-10 Andrew Cagney <ac131313@redhat.com>
* ui-out.h (make_cleanup_ui_out_begin_end): Declare.
	* ui-out.c (struct ui_out_end_cleanup_data): Define.
	(do_cleanup_end): New function.  Replace do_list_end.
	(make_cleanup_ui_out_end): New function.
	(make_cleanup_ui_out_begin_end): New function.
	(make_cleanup_ui_out_list_end): Use make_cleanup_ui_out_end.
2001-05-10 21:30:37 +00:00
Elena Zannoni 5dbc5e5f25 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
* MAINTAINERS: Declare xcoffread.c open to all maintainers,
        and make Kevin Buettner (kevinb@redhat.com) the reference person.
2001-05-10 21:10:09 +00:00
Elena Zannoni 8e40d29290 2001-05-10 Elena Zannoni <ezannoni@redhat.com>
* proc-api.c (ioctl_with_trace): Fix uninitialized variable.
2001-05-10 21:03:03 +00:00
Fernando Nasser 5a703563ae 2001-05-10 Fernando Nasser <fnasser@redhat.com>
* MAINTAINERS: Add testsuite subdirectory co-maintainers.
2001-05-10 20:33:09 +00:00
Andrew Cagney 6311b07d72 Fix -Werror problem with mi-main.c. 2001-05-10 20:31:46 +00:00
Elena Zannoni 2c9cd3035a Fix ChangeLog cut-n-paste error! 2001-05-10 19:36:38 +00:00
Elena Zannoni c2c1be8d4c 2001-04-12 Elena Zannoni <ezannoni@redhat.com>
* config/gdbserver.exp (gdb_load): Handle the case
        in which the arguments to gdbserver are given in the
        baseboard configuration file.
        Also handle the case in which the server needs to do a
        load.
2001-05-10 19:35:14 +00:00
Michael Snyder f78f6cf107 2001-05-10 Michael Snyder <msnyder@redhat.com>
* remote.c (remote_open_1): Call no_shared_libraries, so that
	symbols for shared libraries can be reloaded per session.
	(remote_async_open_1): Ditto.
2001-05-10 19:06:19 +00:00
Michael Snyder 30559e10c3 2001-05-10 Michael Snyder <msnyder@redhat.com>
* remote.c (bin2hex, hex2bin): New functions.  Factor out these
	two conversions which are coded for repeatedly in this module.
	(remote_threads_extra_info, remote_wait, remote_async_wait,
	store_register_using_P, remote_store_registers, remote_write_bytes,
	remote_read_bytes, remote_rcmd): Use bin2hex and hex2bin instead
	of coding the conversions inline.
	(fromhex): Not exported, change from extern to static.
2001-05-10 19:00:35 +00:00
Andrew Cagney 0a1d979176 Delete ``info architecture'' command. 2001-05-10 18:36:26 +00:00
Andrew Cagney ee05526729 General updates for 5.1/5.2 lists. 2001-05-10 18:20:51 +00:00
Andrew Cagney 85886af694 Jim Ingham stepping back from Arm maintenance. 2001-05-10 18:10:48 +00:00
Keith Seitz ecb9ce7eca * Makefile.in (SUBDIR_GDBTK_OBS): Add gdbtk-bp.o, gdbtk-register.o
and gdbtk-stack.o.
	(SUBDIR_GDBTK_SRCS): Ditto for the sources.
	(gdbtk-bp.o): New rule.
	(gdbtk-register.o): New rule.
	(gdbtk-stack.o): New rule.
	(gdbtk-cmds.o): Update dependencies.
	(gdbtk.o): Ditto.
	(gdbtk-hooks.o): Ditto.
	(gdbtk-varobj.o): Ditto.
2001-05-10 18:02:58 +00:00
Fernando Nasser f7635dd920 2001-05-10 Fernando Nasser <fnasser@redhat.com>
* varobj.c (c_number_of_children): Fix memory leak. Delete unwanted old
	variables, not just unregister them.
2001-05-10 16:57:01 +00:00
Fernando Nasser 0755e6c1ab 2001-05-10 Fernando Nasser <fnasser@redhat.com>
* varobj.c (c_number_of_children): Check for target type of void*,
	not the target type name.  Allow dereferencing char*.
2001-05-10 16:44:56 +00:00
Fernando Nasser d7db6da9f6 2001-05-10 Fernando Nasser <fnasser@redhat.com>
* symfile.c (symbol_file_add_main_1): New static function.
	Passes the flags arguments to  symbol_file_add() and takes care
	of any necessary reinitializations.
        (symbol_file_command): Call symbol_file_add_main_1() instead of
        symbol_file_add().
        (symbol_file_add_main): Ditto.
2001-05-10 15:33:21 +00:00
Eli Zaretskii dab11f21ed * gdbint.texinfo (Clean Design and Portable Implementation):
Renamed from "Clean Design".
	(Clean Design and Portable Implementation): Document portable
	methods of handling file names, and the associated macros.
2001-05-10 10:29:37 +00:00
Kevin Buettner 3d6e28e2e7 Revert a couple of small changes that inadvertently came in via the
2001-05-03 patch.
2001-05-10 01:34:17 +00:00
Kevin Buettner 01263b571c Minor ptid_t changes for the upcoming phase 3 ptid patch. 2001-05-10 01:07:39 +00:00