Andrew Cagney
b77be6cfae
Avoid use of ``if ! program''.
2001-03-21 19:25:03 +00:00
Andrew Cagney
379d08a1d4
* target.h (enum target_signal): Move definition from here.
...
* defs.h (enum target_signal): To here.
* config/arc/tm-arc.h (arc_software_single_step): Change type of
first parameter to enum target_signal.
* config/rs6000/tm-rs6000.h (rs6000_software_single_step): Ditto.
* config/sparc/tm-sparc.h (sparc_software_single_step): Ditto.
* rs6000-tdep.c (rs6000_software_single_step): Update.
2001-03-21 18:31:48 +00:00
Andrew Cagney
64485362e8
* frame.h (SIZEOF_FRAME_SAVED_REGS): Report an error if macro
...
already defined.
From 2000-08-25 Stephane Carrez <Stephane.Carrez@worldnet.fr>:
* stabsread.c (define_symbol): A parameter ('R'), a local ('r'),
or a reference ('a') can be in a pseudo register.
* infcmd.c (do_registers_info): Must take into account the pseudo
registers to print their value.
(registers_info): Likewise.
* stack.c (frame_info): Likewise.
* frame.h (SIZEOF_FRAME_SAVED_REGS): Save the pseudo registers.
2001-03-21 16:42:39 +00:00
Eli Zaretskii
52b9821179
Unified support for hardware breakpoints and watchpoints on
...
x86 targets:
* config/i386/nm-i386.h: New file.
* config/i386/nm-i386.h: (i386_cleanup_dregs)
(i386_insert_watchpoint, i386_remove_watchpoint)
(i386_region_ok_for_watchpoint, i386_stopped_by_hwbp)
(i386_stopped_data_address, i386_insert_hw_breakpoint)
(i386_remove_hw_breakpoint): Declare prototypes.
[I386_USE_GENERIC_WATCHPOINTS] (TARGET_CAN_USE_HARDWARE_WATCHPOINT):
Define if not already defined.
(TARGET_REGION_OK_FOR_HW_WATCHPOINT, HAVE_CONTINUABLE_WATCHPOINT)
(STOPPED_BY_WATCHPOINT, target_stopped_data_address)
(target_insert_watchpoint, target_remove_watchpoint)
(target_insert_hw_breakpoint, target_remove_hw_breakpoint): Define
to call the appropriate i386_* functions.
* i386-nat.c: New file.
* i386-nat.c (I386_DR_CONTROL_MASK, I386_DR_LOCAL_ENABLE)
(I386_DR_GLOBAL_ENABLE, I386_DR_DISABLE, I386_DR_SET_RW_LEN)
(I386_DR_GET_RW_LEN, I386_DR_WATCH_HIT): New macros.
(dr_mirror, dr_status_mirror, dr_control_mirror, dr_ref_count)
(maint_show_dr): New variables.
(i386_cleanup_dregs, i386_show_dr, i386_length_and_rw_bits)
(i386_insert_aligned_watchpoint, i386_remove_aligned_watchpoint)
(i386_handle_nonaligned_watchpoint, i386_insert_watchpoint)
(i386_remove_watchpoint, i386_region_ok_for_watchpoint)
(i386_stopped_data_address, i386_stopped_by_hwbp)
(i386_insert_hw_breakpoint, i386_remove_hw_breakpoint): New
functions.
(_initialize_i386_nat): New function.
[I386_USE_GENERIC_WATCHPOINTS]: Add new maint command
`show-debug-regs', sets maint_show_dr to non-zero value and
activates debugging print-outs in functions which insert, remove,
and test watchpoints and hardware breakpoints.
* Makefile.in (i386-nat.o): New target.
(ALLDEPFILES): Add i386-nat.o.
2001-03-21 11:36:58 +00:00
Mark Kettenis
28e9e0f00d
* i386-tdep.c: Add back _initialize_i386_tdep prototype with
...
appropriate comment.
2001-03-21 11:22:24 +00:00
Kevin Buettner
e40eccb4fb
Update Linux/Alpha port to use new Linux threads support.
2001-03-20 21:40:47 +00:00
Jim Blandy
bea7bb93ff
* Makefile.in: Clean up dependencies on ../include/demangle.h.
...
(demangle_h): New variable.
(jv-typeprint.o, jv-valprint.o, linespec.o): Use it.
2001-03-20 21:23:38 +00:00
Andrew Cagney
b0ed35899a
Change SOFTWARE_SINGLE_STEP_P into SOFTWARE_SINGLE_STEP_P().
2001-03-20 18:16:28 +00:00
Andrew Cagney
df087c6239
Replace abort() with internal_error().
2001-03-20 17:48:17 +00:00
Jim Blandy
8bd1f2c64c
* linespec.c (find_methods): Just call CHECK_TYPEDEF on t, rather
...
than asking for sym_class's type; that's circuitous. Remove
sym_class, since the last use of it is gone.
2001-03-20 16:17:22 +00:00
Eli Zaretskii
c97fe386ef
* breakpoint.c (print_it_typical) <bp_access_watchpoint> [UI_OUT]:
...
Correct the order of calls to ui_out_field_string and
ui_out_list_begin when bs->old_val is NULL.
2001-03-20 09:46:00 +00:00
Kevin Buettner
486363b69b
Conditionally include nlist.h in solib-legacy.c for older *BSD systems.
2001-03-20 02:57:42 +00:00
Kevin Buettner
087bb2e240
Fix ``make'' problems when building cross debugger.
2001-03-20 02:37:55 +00:00
Andrew Cagney
3c37485b16
malloc() -> xmalloc.
...
Move malloc() decl to utils.c
2001-03-20 01:37:10 +00:00
Andrew Cagney
0e52036f1f
Move realoc() decl to utils.c. s/realloc()/xrealloc()/.
2001-03-20 00:54:43 +00:00
Andrew Cagney
81b8eb809e
Move free() decl to utils.c.
2001-03-20 00:28:23 +00:00
Kevin Buettner
8cca004af1
Add proc-service.o to NATDEPFILES.
2001-03-20 00:05:04 +00:00
Andrew Cagney
cf4eee44fd
Zap __STDC__ references.
2001-03-19 23:31:41 +00:00
Andrew Cagney
1c5b31ef69
* TODO: List known problems with TUI.
2001-03-19 23:19:23 +00:00
Andrew Cagney
3a0c66d493
Jimmy Guo stepping down.
2001-03-19 21:16:01 +00:00
Andrew Cagney
ce359b09e5
* remote.c (remote_cisco_section_offsets): Do not cast result from
...
bfd_get_section_name.
(compare_sections_command): Ditto.
(remote_cisco_section_offsets): Make ``p'' a const pointer.
(compare_sections_command): Ditto for ``sectname''.
2001-03-19 21:01:06 +00:00
Andrew Cagney
0b3f98d350
* valops.c (hand_function_call): Simplify computation of the
...
address of the pushed argument.
2001-03-19 20:08:16 +00:00
Andrew Cagney
7451d02767
* p-exp.y (parse_number): Avoid shift overflow when ``long''.
...
Code copied from c-exp.y.
2001-03-19 19:05:21 +00:00
Kevin Buettner
fb70ab0ca5
Fix solib support so that non-svr4-solib-host x svr4-solib-target will work.
2001-03-19 07:01:03 +00:00
Kevin Buettner
8aa16b78d8
Fix NetBSD 1.4 build problem.
2001-03-19 05:15:32 +00:00
Michael Chastain
559e75c07a
2001-03-17 Michael Chastain <chastain@redhat.com>
...
* win32-nat.c (child_attach): check args for NULL before passing
to strtoul. This fixes PR gdb/43.
2001-03-18 21:35:58 +00:00
Mark Kettenis
7daede3b53
* i387-nat.h: Doc Fix.
2001-03-17 23:02:10 +00:00
Mark Kettenis
fc3389707e
* i386-tdep.c: Fix formatting.
...
(i386_get_frame_setup, i386_follow_jump, codestream_read,
codestream_seek, codestream_fill, skip_trampoline_code,
gdb_print_insn_i386, _initialize_i386_tdep): Remove redundant
prototypoes.
2001-03-17 22:28:33 +00:00
Mark Kettenis
e3c6d36d49
* config/i386/tm-linux.h (TARGET_ANALYZE_FLOATING): Remove. It's
...
no longer used. Also remove associated FIXME.
2001-03-17 22:24:00 +00:00
Andrew Cagney
4a5c6a1dd9
Add support for m/M methods - pure multi-arch. These do not have
...
macros and take a gdbarch parameter.
2001-03-17 00:31:22 +00:00
J.T. Conklin
7256e1a5bb
* config/h8300/tm-h8300.h (FRAME_ARGS_ADDRESS): Changed to use
...
h8300_frame_args_address from frame_args_address.
(FRAME_LOCALS_ADDRESS): Changed to use h8300_frame_locals_address
from frame_locals_address.
(PRINT_REGISTER_HOOK): Changed to use h8300_print_register_hook
from print_register_hook.
(h8300_frame_args_address): Declare.
(h8300_frame_find_saved_regs): Declare.
(h8300_frame_locals_address): Declare.
(h8300_frame_saved_pc): Declare.
(h8300_pop_frame): Declare.
(h8300_print_register_hook): Declare.
* h8300-tdep.c (h8300_frame_find_saved_regs): Removed declaration.
(h8300_frame_args_address): Renamed from frame_args_address.
(h8300_frame_locals_address): Renamed from frame_locals_address.
(h8300_pop_frame): Renamed from pop_frame.
(h8300_print_register_hook): Renamed from print_register_hook.
-------------------------------------------------------------------
2001-03-16 22:34:46 +00:00
Kevin Buettner
435b259cb0
Change type of ``storage_needed'' from unsigned int to long.
2001-03-16 18:06:44 +00:00
Kevin Buettner
80117be270
Misc. cleanups.
2001-03-16 03:52:12 +00:00
Martin Hunt
77cd5909d2
2001-03-15 Martin Hunt <hunt@redhat.com>
...
* linespec.c (decode_line_1): Remove trailing quote
when parsing double quotes.
2001-03-15 18:02:14 +00:00
Kevin Buettner
f7f5a202bc
Pass NULL for the mem_attrib argument in the to_xfer_memory calls.
2001-03-15 17:42:00 +00:00
Andrew Cagney
0d35ddbaee
Add list of targets being obsoleted.
2001-03-15 17:06:00 +00:00
Andrew Cagney
043780a1fb
Add ``attrib'' parameter to *xfer_memory() functions.
2001-03-15 16:55:15 +00:00
Andrew Cagney
9b9c068d47
Note Harris 88k is obsolete in news file.
2001-03-15 01:07:51 +00:00
Andrew Cagney
f88e2c5226
Include regcache.h
2001-03-14 23:23:16 +00:00
Andrew Cagney
0981ead9af
Update target list.
2001-03-14 22:05:34 +00:00
Keith Seitz
91c1720e68
* linespec.c (decode_line_1): Skip argptr over a leading
...
double quote. Prevents alloc of 0 bytes and memcpy of -1 bytes.
2001-03-14 18:36:45 +00:00
Kevin Buettner
3cc122b3fe
Add entry of ia64-aix-nat.c.
2001-03-14 18:21:04 +00:00
Andrew Cagney
5bb367b1d9
Eliminate some uses of __STDC__.
2001-03-14 16:42:30 +00:00
Andrew Cagney
a728f04251
Eliminate ARCH_NUM_REGS.
2001-03-13 23:31:14 +00:00
Fernando Nasser
f48ff60ac8
2001-03-13 Fernando Nasser <fnasser@redhat.com>
...
From Steven Johnson <sjohnson@neurizon.net>
* cli/cli-script.c (define_command): Fix setting of post hooks.
2001-03-13 22:29:14 +00:00
Mark Kettenis
305d65cac6
* i386-linux-tdep.c: Fix formatting and clarify comments.
...
(i386_linux_svr4_fetch_link_map_offsets): Use NULL instead of 0
where appropriate.
2001-03-13 12:42:08 +00:00
Andrew Cagney
bf62e5b49c
* gnu-nat.c: Include "gdb_assert.h" instead of <assert.h>.
...
(proc_update_sc): Use gdb_assert instead of assert.
(proc_abort): Ditto.
(inf_set_step_thread): Ditto.
(gnu_wait): Ditto.
(S_exception_raise_request): Ditto.
(gnu_terminal_init_inferior): Ditto.
2001-03-13 00:51:40 +00:00
Kevin Buettner
21479deda0
Cleanup solib-svr4.c by moving legacy code out to its own file.
2001-03-10 06:17:24 +00:00
Kevin Buettner
d7fa9de08d
Committed.
2001-03-10 01:22:11 +00:00
Andrew Cagney
f8241bd143
Move Philip Blundell to Write After Approval list.
2001-03-09 23:58:24 +00:00