Doug Evans
f85b5eccfe
* gdb.base/sigstep.exp (breakpoint_to_handler): Remove setup_kfail
...
for bug 1738.
(breakpoint_to_handler_entry): Ditto.
2008-02-27 23:42:20 +00:00
Daniel Jacobowitz
20b4711e05
* remote.c (remote_wait, remote_async_wait): Stop if we receive
...
an error.
2008-02-27 21:00:01 +00:00
Daniel Jacobowitz
1843f87b0a
Add changelog entries for last commit.
2008-02-27 20:59:38 +00:00
Daniel Jacobowitz
75feb17dd5
* utils.c (debug_timestamp): New.
...
(vfprintf_unfiltered): Print timestamps if requested.
(show_debug_timestamp): New.
(initialize_utils): Register "set debug timestamp".
* NEWS: Mention "set debug timestamp". Add GDB 6.8 section.
* gdb.texinfo (Debugging Output): Document "set debug timestamp".
2008-02-27 20:50:49 +00:00
Joel Brobecker
b40e7bf371
* gdb.base/ending-run.exp: Use the first line of code inside
...
function body to test breakpoints.
* gdb.mi/mi-break.exp, gdb.mi/mi2-break.exp: Adjust the actual
location where the breakpoint is inserted when using the line
where a function is declared. Fix typo in the description of
one of the tests.
* gdb.mi/mi-simplerun.exp, gdb.mi/mi2-simplerun.exp: Likewise.
2008-02-27 20:29:31 +00:00
Joel Brobecker
6a048695b3
* breakpoint.c (skip_prologue_sal): New function.
...
(resolve_sal_pc): Adjust SAL past prologue if the SAL was
computed from a line number.
2008-02-27 20:27:49 +00:00
Joel Brobecker
0b998f4963
* features/rs6000/power-core.xml, features/rs6000/power64-core.xml
...
features/rs6000/powerpc-601.xml, features/rs6000/rs6000.xml:
Set PC register type to "code_ptr".
* features/rs6000/powerpc-32.c, features/rs6000/powerpc-403.c,
features/rs6000/powerpc-403gc.c, features/rs6000/powerpc-505.c,
features/rs6000/powerpc-601.c, features/rs6000/powerpc-602.c,
features/rs6000/powerpc-603.c, features/rs6000/powerpc-604.c,
features/rs6000/powerpc-64.c, features/rs6000/powerpc-7400.c,
features/rs6000/powerpc-750.c, features/rs6000/powerpc-860.c,
features/rs6000/powerpc-e500.c, features/rs6000/rs6000.c:
Regenerate.
2008-02-27 20:20:51 +00:00
Pierre Muller
2faca73a4e
2008-02-27 Pierre Muller <muller@ics.u-strasbg.fr>
...
* gdb.arch/i386-sse.exp: avoid same output for two breakpoint setting
tests.
2008-02-27 15:52:33 +00:00
Pierre Muller
6f439c366a
2008-02-27 Pierre Muller <muller@ics.u-strasbg.fr>
...
* gdb.base/args.exp: avoid same output for tests
with single quotes.
2008-02-27 15:46:46 +00:00
Ulrich Weigand
ee1a7ae440
* linux-low.h (struct linux_target_ops): Replace left_pad_xfer field
...
by collect_ptrace_register and supply_ptrace_register hooks.
* linux-low.c (fetch_register): Use supply_ptrace_register callback
instead of checking for the_low_target.left_pad_xfer.
(usr_store_inferior_registers): Use collect_ptrace_register callback
instead of checking for the_low_target.left_pad_xfer.
* linux-s390-low.c (s390_collect_ptrace_register): New function.
(s390_supply_ptrace_register): Likewise.
(s390_fill_gregset): Call s390_collect_ptrace_register.
(the_low_target): Update.
* linux-ppc64-low.c (ppc_collect_ptrace_register): New function.
(ppc_supply_ptrace_register): Likewise.
(the_low_target): Update.
* linux-i386-low.c (the_low_target): Update.
* linux-x86-64-low.c (the_low_target): Update.
2008-02-27 03:33:07 +00:00
Ulrich Weigand
d61ddec435
* configure.srv [s390x-*-linux*]: Set srv_regobj to include both
...
reg-s390.o and reg-s390x.o.
* linux-low.c (new_inferior): New global variable.
(linux_create_inferior, linux_attach): Set it.
(linux_wait_for_process): Call the_low_target.arch_setup after the
target has stopped for the first time.
(initialize_low): Do not call the_low_target.arch_setup.
* linux-s390-low.c (s390_get_pc): Support bi-arch operation.
(s390_set_pc): Likewise.
(s390_arch_setup): New function.
(the_low_target): Use s390_arch_setup as arch_setup routine.
* regcache.c (realloc_register_cache): New function.
(set_register_cache): Call it for each existing regcache.
2008-02-27 03:31:05 +00:00
Ulrich Weigand
d05b4ac3aa
gdb/ChangeLog:
...
* regformats/regdat.sh: Rename init_registers function in
generated file to init_registers_${name}.
* regformats/reg-crisv32.dat: Set "name" to crisv32.
* regformats/reg-ppc64.dat: Set "name" to ppc64.
* regformats/reg-s390x.dat: Set "name" to s390x.
gdbserver/ChangeLog:
* server.h (init_registers): Remove prototype.
* linux-low.h (struct linux_target_ops): Add arch_setup field.
* linux-low.c (initialize_low): Call the_low_target.arch_setup ()
instead of init_registers ().
* linux-arm-low.c (init_registers_arm): Add prototype.
(init_registers_arm_with_iwmmxt): Likewise.
(the_low_target): Add initializer for arch_setup field.
* linux-cris-low.c (init_registers_cris): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* linux-crisv32-low.c (init_registers_crisv32): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* linux-i386-low.c (init_registers_i386_linux): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* linux-ia64-low.c (init_registers_ia64): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* linux-m32r-low.c (init_registers_m32r): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* linux-m68k-low.c (init_registers_m68k): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* linux-mips-low.c (init_registers_mips_linux): Add prototype.
(init_registers_mips64_linux): Likewise.
(the_low_target): Add initializer for arch_setup field.
* linux-ppc-low.c (init_registers_ppc): Add prototype.
(init_registers_powerpc_32, init_registers_powerpc_e500): Likewise.
(the_low_target): Add initializer for arch_setup field.
* linux-ppc64-low.c (init_registers_ppc64): Add prototype.
(init_registers_powerpc_64): Likewise.
(the_low_target): Add initializer for arch_setup field.
* linux-s390-low.c (init_registers_s390): Add prototype.
(init_registers_s390x): Likewise.
(the_low_target): Add initializer for arch_setup field.
* linux-sh-low.c (init_registers_sh): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* linux-x86-64-low.c (init_registers_x86_64_linux): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* linux-xtensa-low.c (init_registers_xtensa): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* win32-low.h (struct win32_target_ops): Add arch_setup field.
* win32-low.c (initialize_low): Call the_low_target.arch_setup ()
instead of init_registers ().
* win32-arm-low.c (init_registers_arm): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* win32-i386-low.c (init_registers_i386): Add prototype.
(the_low_target): Add initializer for arch_setup field.
* spu-low.c (init_registers_spu): Add prototype.
(initialize_low): Call initialie_registers_spu () instead of
initialize_registers ().
2008-02-27 03:27:40 +00:00
Daniel Jacobowitz
a5d9d57db1
2008-02-26 Greg Law <glaw@undo-software.com>
...
* regcache.c (registers_changed): Call reinit_frame_cache.
2008-02-27 01:07:42 +00:00
Daniel Jacobowitz
e25c958c98
* configure.tgt (sh-*-linux*): Match sh*. Add glibc-tdep.o.
...
* sh-linux-tdep.c (sh_linux_init_abi): Use glibc_skip_solib_resolver
and svr4_fetch_objfile_link_map.
* Makefile.in (sh-linux-tdep.o): Update.
2008-02-27 01:06:21 +00:00
gdbadmin
29dccb240b
*** empty log message ***
2008-02-27 00:00:02 +00:00
Thiago Jung Bauermann
5daa78cc6f
* amd64-tdep.c (amd64_classify): Add support for decimal float
...
types.
* i386-tdep.c (i386_return_value): Make 128-bit decimal float
use the struct return convention.
2008-02-26 22:23:45 +00:00
Vladimir Prus
54e52265e2
* breakpoint.c (print_one_breakpoint_location): Revert Enb field
...
to old format. Discard breakpoint address if shared library is
unloaded.
(breakpoint_1): Adjust formatting of table header accordingly.
2008-02-26 08:14:11 +00:00
gdbadmin
5ee461eeda
*** empty log message ***
2008-02-26 00:00:04 +00:00
Nick Roberts
b3db744786
(Set Breaks): Revert description of Enb column of
...
breakpoint table.
2008-02-25 20:34:40 +00:00
Nick Roberts
f908262953
*** empty log message ***
2008-02-25 20:33:39 +00:00
Vladimir Prus
d8f2712d3a
* remote.c (remote_get_threadlist): If the response
...
is empty, don't try to parse it.
2008-02-25 09:59:06 +00:00
gdbadmin
01f30ddd07
*** empty log message ***
2008-02-25 00:00:03 +00:00
gdbadmin
d5d7a1aa6d
*** empty log message ***
2008-02-24 00:00:03 +00:00
Vladimir Prus
05ce04a423
Unbreak 'target async'.
...
* serial.c (serial_async): Set the
handler function before enabling async
mode.
2008-02-23 20:04:20 +00:00
gdbadmin
6456897f67
*** empty log message ***
2008-02-23 00:00:33 +00:00
Daniel Jacobowitz
b36ec657cd
* solib-svr4.c (enable_break): Convert r_brk to a code address.
2008-02-22 19:48:05 +00:00
gdbadmin
f736769e93
*** empty log message ***
2008-02-22 00:00:03 +00:00
Pedro Alves
df7df35919
* remote.c (extended_remote_attach_1): Set attach_flag.
...
(extended_remote_create_inferior_1): Clear attach_flag.
2008-02-21 17:26:16 +00:00
Daniel Jacobowitz
7cd25cfc87
* mipsnbsd-tdep.c (mipsnbsd_ilp32_fetch_link_map_offsets): Set
...
r_brk_offset.
(mipsnbsd_lp64_fetch_link_map_offsets): Likewise.
* solib-svr4.c (solib_svr4_r_brk): New.
(open_symbol_file_object, svr4_current_sos): Always check the
debug base.
(svr4_fetch_objfile_link_map): Do not set debug_base.
(enable_break): Use r_brk if it is set.
(svr4_ilp32_fetch_link_map_offsets): Set r_brk_offset.
(svr4_lp64_fetch_link_map_offsets): Likewise.
* solib-svr4.h (struct link_map_offsets): Add r_brk_offset.
2008-02-21 01:47:32 +00:00
gdbadmin
a4e3cafb29
*** empty log message ***
2008-02-21 00:00:33 +00:00
Markus Deuling
07ea644b36
2008-02-20 Markus Deuling <deuling@de.ibm.com>
...
Mark Kettenis <kettenis@gnu.org>
* alpha-tdep.c (alpha_heuristic_unwind_cache): Replace saved_regs by
trad_frame_saved_reg.
(trad-frame.h): New include.
(alpha_heuristic_frame_unwind_cache): Use trad_frame_alloc_saved_regs
instead of frame_obstack_zalloc.
(alpha_heuristic_frame_prev_register): Use trad_frame_get_prev_register.
* Makefile.in (alpha-tdep.o): Add dependency to trad_frame_h.
2008-02-20 15:45:20 +00:00
Markus Deuling
40887e1a6e
* rs6000-tdep.c (gdb_print_insn_powerpc): Get the current endianess
...
from disassemble_info instead of gdbarch_byte_order.
* mips-tdep.c (gdb_print_insn_mips): Likewise.
* arm-tdep.c (gdb_print_insn_arm): Likewise.
2008-02-20 14:34:43 +00:00
Markus Deuling
ae4b228419
* gdbarch.sh (memory_insert_breakpoint, memory_remove_breakpoint): Add
...
gdbarch as parameter.
* gdbarch.{c,h}: Regenerate.
* ppc-tdep.h (ppc_linux_memory_remove_breakpoint): Add gdbarch as
parameter.
* mem-break.c (default_memory_insert_breakpoint)
(default_memory_remove_breakpoint): Likewise.
* target.h (default_memory_remove_breakpoint)
(default_memory_insert_breakpoint): Likewise.
* ppc-linux-tdep.c (ppc_linux_memory_remove_breakpoint): Add gdbarch as
parameter. Replace current_gdbarch by gdbarch.
* m32r-tdep.c (m32r_memory_insert_breakpoint)
(m32r_memory_remove_breakpoint): Likewise.
2008-02-20 14:31:40 +00:00
gdbadmin
64005a0dca
*** empty log message ***
2008-02-20 00:00:33 +00:00
Pedro Alves
fd96d2509c
doc/
...
* gdb.texinfo (vAttach, vRun): Remove requirement of the stub
killing the inferior when it is already debugging a process.
gdbserver/
* server.c (handle_v_requests): When handling the vRun and vAttach
packets, if already debugging a process, don't kill it. Return an
error instead.
2008-02-19 21:36:54 +00:00
Daniel Jacobowitz
d9bf65d51a
* MAINTAINERS: Add Vladimir Prus as MI maintainer.
2008-02-19 19:11:16 +00:00
Joel Brobecker
b93b6ca7a3
* NEWS: Add entry describing Add support improvements.
2008-02-19 18:20:45 +00:00
gdbadmin
946bde0b07
*** empty log message ***
2008-02-19 00:00:03 +00:00
Markus Deuling
4ed226fe6d
* m68klinux-nat.c (getfpregs_supplies): Replace gdbarch_fp0_regnum by
...
M68K_FP0_REGNUM.
2008-02-18 19:58:27 +00:00
Markus Deuling
caaa79ad89
* sentinel-frame.c (sentinel_frame_prev_register): Do not call
...
register_offset_hack anymore.
* regcache.{c,h} (register_offset_hack): Remove.
2008-02-18 16:37:17 +00:00
Markus Deuling
e38c262f35
* hppa-tdep.h (find_global_pointer): Add gdbarch as parameter.
...
* hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer): Likewise. Replace
current_gdbarch by gdbarch.
(hppa64_hpux_find_global_pointer): Likewise.
* hppa-tdep.c (hppa_find_global_pointer): Likewise.
(hppa32_push_dummy_call, hppa64_push_dummy_call): Update call for
find_global_pointer.
* hppabsd-tdep.c (hppabsd_find_global_pointer): Add gdbarch as
parameter.
* hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
* hppa-linux-nat.c (hppa_linux_register_addr): Use ARRAY_SIZE instead
of gdbarch_num_regs.
* hppa-hpux-tdep.c (hppa_hpux_sr_for_addr): Add gdbarch as parameter and
replace current_gdbarch by gdbarch.
(hppa_hpux_push_dummy_code): Update call for hppa_hpux_sr_for_addr.
2008-02-18 16:11:21 +00:00
Markus Deuling
206988c434
* rs6000-nat.c (exec_one_dummy_insn, regmap): Add gdbarch as parameter
...
and replace current_gdbarch by gdbarch.
(store_register): Update call for exec_one_dummy_insn.
(fetch_register, store_register): Update call of regmap.
* ppcnbsd-nat.c (getregs_supplies, getfpregs_supplies): Add gdbarch as
parameter and replace current_gdbarch by gdbarch.
(ppcnbsd_store_inferior_registers): Use get_regcache_arch to get at
the current architecture. Update call for getregs_supplies and
getfpregs_supplies.
(ppcnbsd_fetch_inferior_registers): Likewise.
* ppcobsd-nat.c (getfpregs_supplies): Add gdbarch as parameter and
replace current_gdbarch by gdbarch.
(ppcobsd_fetch_registers, ppcobsd_store_registers): Use
get_regcache_arch to get at the current architecture. Update call for
getfpregs_supplies.
2008-02-18 11:00:02 +00:00
Markus Deuling
f642be6b2e
* arch-utils.c (gdbarch_from_bfd): Remove unnecessary {old,new}_gdbarch
...
variables.
2008-02-18 10:56:43 +00:00
gdbadmin
fca143f2c4
*** empty log message ***
2008-02-18 00:00:03 +00:00
Daniel Jacobowitz
d41b6bb462
* server.c (handle_query): Correct length check.
2008-02-17 15:26:17 +00:00
gdbadmin
47df48cc31
*** empty log message ***
2008-02-17 00:00:33 +00:00
gdbadmin
1fb93dfff9
*** empty log message ***
2008-02-16 00:00:03 +00:00
Markus Deuling
b1f2bf012a
* mips-linux-tdep.c (mips_linux_init_abi): Remove internal error.
2008-02-15 04:50:58 +00:00
gdbadmin
54aff08f3b
*** empty log message ***
2008-02-15 00:00:03 +00:00
Pedro Alves
5ac588cfb0
* win32-low.c (do_initial_child_stuff): Add process handle
...
parameter. Set current_process_handle and current_process_id from the
parameters. Clear globals.
(win32_create_inferior): Don't set current_process_handle and
current_process_id here. Instead pass them on the call to
do_initial_child_stuff.
(win32_attach): Likewise.
(win32_clear_inferiors): New.
(win32_kill): Don't close the current process handle or the
current thread handle here. Instead call win32_clear_inferiors.
(win32_detach): Don't open a new handle to the process. Call
win32_clear_inferiors.
(win32_join): Don't rely on current_process_handle; open a new
handle using the process id.
(win32_wait): Call win32_clear_inferiors when the inferior process
has exited.
2008-02-14 22:41:39 +00:00