public inbox for archer-commits@sourceware.org
help / color / mirror / Atom feed
* [SCM] archer-keiths-linespec-rewrite: Merge branch 'archer-keiths-linespec-rewrite' of ssh://sourceware.org/git/archer into archer-keiths-linespec-rewrite
@ 2012-03-03 17:04 kseitz
0 siblings, 0 replies; only message in thread
From: kseitz @ 2012-03-03 17:04 UTC (permalink / raw)
To: archer-commits
The branch, archer-keiths-linespec-rewrite has been updated
via 3f58738dfde4eecbdf473c860d4e941901703dc0 (commit)
via c08247f1a9be0712b478f833dbc442647bef3760 (commit)
via c0d2c016248c05499e2010d08c0a9f1e2903f24d (commit)
via b3b71e70eecb7d97bbc4a3efbde7b9f4a67ccc2b (commit)
via 90ae5369ee6e0b9f4119b410bdfcc42cb7a7175f (commit)
via 901ce86e6b0a621625bdf3ce0964a7993aff6968 (commit)
via fcdd49843da857b9954800a6b95b28a2f338e793 (commit)
via 93603673628717b7532185ec9568373c62fd7d7a (commit)
via 38b87474eac01a30306b62ee94d719eca09c5f57 (commit)
via 370416f95095fa78ae7045224eeca50011a5e577 (commit)
via 9d869a82af6b5052d38dca64de2fdbcd081b6171 (commit)
via 9e2fde2975e2b6fda0658378e5f82648df0259e0 (commit)
via 09e986085d6671a39426078535557e64bd1580e6 (commit)
via 5eff0f488de28505d18b6224c61a870af546b490 (commit)
via a12e18f74ada8c042bd5521696481451e6f77747 (commit)
via 1bff93fc562a4dd58bb9cad0cd6435665bf5b395 (commit)
via 3e888f7db9dd282b46480b06b7b2ebd6d47a4863 (commit)
via 840992be7ccc30581e08a089dbeeb50229a12e27 (commit)
via d3d95f524829ff0036e9181a15e37ced73de0f7d (commit)
via cdea452b9c1e0dde1a8663fd12e09c5f3c160dd0 (commit)
via c53b1649cbc30746659af45cd4a97426c0ccec23 (commit)
via 21ec173ba572a39f1a17e56965da5a5a8b200930 (commit)
via 556dca4779b6b41ec6e8f87d2b063b43ea8a7eb1 (commit)
via 75d3e263a9b09e23641350b8c19be7b50d05f2dd (commit)
via f60b6c2fe8be640e407e0d4f490de5e62da0a4e2 (commit)
via ac823a17033bfbf84274f0dea4861baae8405a01 (commit)
via 50ee10f09b630aad776fe21b36c7cd6a349700d9 (commit)
via 3572a50fbf989cc723f5dcd1bbc2130020d0eb1a (commit)
via 893b3e22d1a522f4007756f7f99e0058a11375ed (commit)
via dcf8a078f8979a32f4bd1366644508e5ce71e523 (commit)
from 907b711122c212da995eaacffa5f49a8fa02f2be (commit)
Those revisions listed above that are new to this repository have
not appeared on any other notification email.
- Log -----------------------------------------------------------------
commit 3f58738dfde4eecbdf473c860d4e941901703dc0
Merge: c08247f 907b711
Author: keiths <keiths@redhat.com>
Date: Sat Mar 3 09:03:37 2012 -0800
Merge branch 'archer-keiths-linespec-rewrite' of ssh://sourceware.org/git/archer into archer-keiths-linespec-rewrite
Conflicts:
gdb/linespec.c
commit c08247f1a9be0712b478f833dbc442647bef3760
Author: keiths <keiths@redhat.com>
Date: Sat Mar 3 08:39:33 2012 -0800
Fix leading "::" internal error
commit c0d2c016248c05499e2010d08c0a9f1e2903f24d
Author: keiths <keiths@redhat.com>
Date: Fri Mar 2 14:17:06 2012 -0800
Lexer fixlet for Ada operators
commit b3b71e70eecb7d97bbc4a3efbde7b9f4a67ccc2b
Author: keiths <keiths@redhat.com>
Date: Thu Mar 1 14:27:53 2012 -0800
Initial linespec rewrite v.0.0000000000001
commit 90ae5369ee6e0b9f4119b410bdfcc42cb7a7175f
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Mar 2 20:36:39 2012 +0000
New Ada testcase for breakpoints on operators.
gdb/testsuite/ChangeLog:
* gdb.ada/operator_bp: New testcase.
commit 901ce86e6b0a621625bdf3ce0964a7993aff6968
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Mar 2 19:31:53 2012 +0000
Testcase: "info locals" with Ada renamings.
gdb/testsuite/ChangeLog:
* gdb.ada/info_locals_renaming: New testcase.
commit fcdd49843da857b9954800a6b95b28a2f338e793
Author: Tom Tromey <tromey@redhat.com>
Date: Fri Mar 2 19:29:56 2012 +0000
* gdb.base/nextoverexit.c: New file.
* gdb.base/nextoverexit.exp: New file.
commit 93603673628717b7532185ec9568373c62fd7d7a
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Mar 2 19:28:59 2012 +0000
language-specific read_var_value for Ada renamings
The purpose of this patch is to better support renamings in the
"info locals" command. Consider ...
procedure Foo is
GV : Integer renames Pck.Global_Variable;
begin
Increment (GV); -- STOP
end Foo;
... Pck.Global_Variable is just an integer. After having stopped at
the "STOP" line, "info locals" yields:
(gdb) info locals
gv = <error reading variable gv (Cannot access memory at address 0xffffffffffffffff)>
In reality, two things are happening:
(1) Variable "GV" does not exist, which is normal, since there is
"GV" the renaming of another variable;
(2) But to allow the user access to that renaming the same way
the code has, the compiler produces an artificial variable
whose name encodes the renaming:
gv___XR_pck__global_variable___XE
For practical reasons, the artificial variable itself is given
irrelevant types and addresses.
But the "info locals" command does not act as if it was a short-cut
of "foreach VAR in locals, print VAR". Instead it gets the value of
each VAR directly, which does not work in this case, since the variable
is artificial and needs to be decoded first.
This patch makes the "read_var_value" routine language-specific.
The old implementation of "read_var_value" gets renamed to
"default_read_var_value" and all languages now use it (unchanged
behavior), except for Ada. In Ada, the new function ada_read_var_value
checks if we have a renaming, and if so, evaluates its value, or else
defers to default_read_var_value.
gdb/ChangeLog:
* language.h (struct language_defn): New "method" la_read_var_value.
* findvar.c: #include "language.h".
(default_read_var_value): Renames read_var_value. Rewrite
function description.
(read_var_value): New function.
* value.h (default_read_var_value): Add prototype.
* ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
New functions.
(ada_language_defn): Add entry for la_read_var_value.
* c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
* m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
language_defn structures to add entry for new la_read_var_value
field.
commit 38b87474eac01a30306b62ee94d719eca09c5f57
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Mar 2 19:26:09 2012 +0000
2012-03-02 Tom Tromey <tromey@redhat.com>
Pedro Alves <palves@redhat.com>
PR breakpoints/13776:
* breakpoint.c (breakpoint_init_inferior): Delete step-resume
breakpoints.
(delete_longjmp_breakpoint_at_next_stop): New.
* breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
* target.c (generic_mourn_inferior): Call mark_breakpoints_out
before deleting the inferior. Add comments.
* thread.c (clear_thread_inferior_resources): Don't delete lonjmp
breakpoints immediately, but only on next stop. Move that code
next to where we mark other breakpoints for deletion.
commit 370416f95095fa78ae7045224eeca50011a5e577
Author: Joel Brobecker <brobecker@gnat.com>
Date: Fri Mar 2 19:14:29 2012 +0000
Fix ARI violations in mips-linux-nat.c and mips-tdep.c
gdb/ChangeLog:
* mips-linux-nat.c (mips_linux_read_description): Add missing i18n
marker.
* mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
violation.
commit 9d869a82af6b5052d38dca64de2fdbcd081b6171
Author: emachado <emachado>
Date: Fri Mar 2 18:43:46 2012 +0000
gdb/testsuite/
2012-03-02 Edjunior Machado <emachado@linux.vnet.ibm.com>
* gdb.arch/altivec-abi.exp (altivec_abi_tests): Remove obsolete
parameter.
commit 9e2fde2975e2b6fda0658378e5f82648df0259e0
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Mar 2 16:54:58 2012 +0000
2012-03-02 Pedro Alves <palves@redhat.com>
* linux-thread-db.c (attach_thread): Avoid in_thread_list call.
commit 09e986085d6671a39426078535557e64bd1580e6
Author: Pedro Alves <pedro@codesourcery.com>
Date: Fri Mar 2 16:23:42 2012 +0000
2012-03-02 Pedro Alves <palves@redhat.com>
* inferiors.c (add_pid_to_list, pull_pid_from_list): Delete.
* linux-low.c (struct simple_pid_list): New.
(stopped_pids): New a struct simple_pid_list pointer.
(add_to_pid_list, pull_pid_from_list): New.
(handle_extended_wait): Don't assume the first signal new children
report is SIGSTOP. Adjust call to pull_pid_from_list.
(linux_wait_for_lwp): Adjust.
commit 5eff0f488de28505d18b6224c61a870af546b490
Author: Ulrich Weigand <uweigand@de.ibm.com>
Date: Fri Mar 2 13:38:35 2012 +0000
Fix -Wmissing-prototypes build.
* ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
* remote-sim.c (gdbsim_has_all_memory): Likewise.
(gdbsim_has_memory): Likewise.
commit a12e18f74ada8c042bd5521696481451e6f77747
Author: qiyao <qiyao>
Date: Fri Mar 2 12:56:48 2012 +0000
gdb/
Fix -Wmissing-prototypes build.
* charset.c (phony_iconv_open): Make static.
(phony_iconv_close, phony_iconv): Likewise.
* i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
* i386-windows-nat.c (_initialize_i386_windows_nat): New
prototype.
* mingw-hdep.c (_initialize_mingw_hdep): New prototype.
* ser-mingw.c (create_select_thread): Make static.
* windows-termcap.c (tgetent): New prototype.
(tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
commit 1bff93fc562a4dd58bb9cad0cd6435665bf5b395
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Mar 2 05:38:46 2012 +0000
gdb/
Fix -Wmissing-prototypes build.
* windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
(_initialize_windows_nat, _initialize_check_for_gdb_ini)
(_initialize_loadable): New prototypes.
commit 3e888f7db9dd282b46480b06b7b2ebd6d47a4863
Author: Doug Evans <dje@google.com>
Date: Fri Mar 2 01:55:15 2012 +0000
* dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
abbrev table, read_comp_unit will do it.
commit 840992be7ccc30581e08a089dbeeb50229a12e27
Author: qiyao <qiyao>
Date: Fri Mar 2 00:18:51 2012 +0000
gdb/gdbserver:
* tracepoint.c (do_action_at_tracepoint): Write `stop_pc' in
debug log.
commit d3d95f524829ff0036e9181a15e37ced73de0f7d
Author: qiyao <qiyao>
Date: Fri Mar 2 00:12:47 2012 +0000
gdb/gdbserver:
* tracepoint.c (collect_ust_data_at_tracepoint): Remove parameters
`stop_pc' and `tpoint'. Update caller.
commit cdea452b9c1e0dde1a8663fd12e09c5f3c160dd0
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Mar 2 00:06:11 2012 +0000
gdb/
Fix -Wmissing-prototypes build.
* alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
* amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
* amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
* arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
(_initialize_arm_symbian_tdep): New prototype.
* arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
* i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
* i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
static.
* lm32-tdep.c (_initialize_lm32_tdep): New prototype.
* microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
prototype.
* microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
(microblaze_skip_prologue, microblaze_frame_cache): Make them static.
* mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
static.
* moxie-tdep.c (moxie_process_record): Likewise.
* remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
(mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
* rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
(_initialize_rl78_tdep): New prototype.
* rx-tdep.c (rx_breakpoint_from_pc): Make it static.
(_initialize_rx_tdep): New prototype.
* solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
(_initialize_darwin_solib): New prototype.
* solib-spu.c: Include solib-spu.h.
(_initialize_spu_solib): New prototype.
* spu-multiarch.c (_initialize_spu_multiarch): New prototype.
* tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
(tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
(tic6x_software_single_step): Make it static.
(_initialize_tic6x_tdep): New prototype.
commit c53b1649cbc30746659af45cd4a97426c0ccec23
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Fri Mar 2 00:01:24 2012 +0000
gdb/
Fix -Wmissing-prototypes build.
* cris-tdep.c (cris_can_use_hardware_watchpoint)
(cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
commit 21ec173ba572a39f1a17e56965da5a5a8b200930
Author: gdbadmin <gdbadmin@sourceware.org>
Date: Fri Mar 2 00:00:32 2012 +0000
*** empty log message ***
commit 556dca4779b6b41ec6e8f87d2b063b43ea8a7eb1
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Mar 1 23:58:47 2012 +0000
gdb/
Fix -Wmissing-prototypes build.
* frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
(frv_have_stopped_data_address): Remove.
commit 75d3e263a9b09e23641350b8c19be7b50d05f2dd
Author: Jan Kratochvil <jan.kratochvil@redhat.com>
Date: Thu Mar 1 23:55:38 2012 +0000
gdb/
Fix -Wmissing-prototypes build.
* Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
* sh-tdep.c: Include sh64-tdep.h.
* sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
* sh64-tdep.c: Include sh64-tdep.h.
* sh64-tdep.h: New file.
commit f60b6c2fe8be640e407e0d4f490de5e62da0a4e2
Author: Maciej W. Rozycki <macro@linux-mips.org>
Date: Thu Mar 1 23:35:44 2012 +0000
* mips-tdep.c (mips32_scan_prologue): Correct indentation.
commit ac823a17033bfbf84274f0dea4861baae8405a01
Author: Alan Modra <amodra@bigpond.net.au>
Date: Thu Mar 1 23:00:05 2012 +0000
daily update
commit 50ee10f09b630aad776fe21b36c7cd6a349700d9
Author: Maciej W. Rozycki <macro@linux-mips.org>
Date: Thu Mar 1 22:52:02 2012 +0000
* mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
sp_regnum once the gdbarch_init_osabi hook has been called.
commit 3572a50fbf989cc723f5dcd1bbc2130020d0eb1a
Author: Joel Brobecker <brobecker@gnat.com>
Date: Thu Mar 1 22:47:45 2012 +0000
Fix typo in frame.h:read_frame_register_unsigned function description.
gdb/ChangeLog:
* frame.h (read_frame_register_unsigned): Fix typo in function
description.
commit 893b3e22d1a522f4007756f7f99e0058a11375ed
Author: Maciej W. Rozycki <macro@linux-mips.org>
Date: Thu Mar 1 22:37:50 2012 +0000
* mips-tdep.c (mips32_bc1_pc): New function.
(mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
BPOSGE32 and BPOSGE64 instructions.
(deal_with_atomic_sequence): Likewise.
(mips32_instruction_has_delay_slot): Likewise.
commit dcf8a078f8979a32f4bd1366644508e5ce71e523
Author: Maciej W. Rozycki <macro@linux-mips.org>
Date: Thu Mar 1 22:19:40 2012 +0000
gdb/
* features/mips-dsp.xml: New file.
* features/mips64-dsp.xml: New file.
* features/mips-dsp-linux.xml: New file.
* features/mips64-dsp-linux.xml: New file.
* features/Makefile (WHICH): Add mips-dsp-linux and
mips64-dsp-linux.
(mips-dsp-expedite, mips64-dsp-expedite): New variables.
* features/mips-dsp-linux.c: New file.
* features/mips64-dsp-linux.c: New file.
* regformats/mips-dsp-linux.dat: New file.
* regformats/mips64-dsp-linux.dat: New file.
* mips-linux-nat.c (mips_linux_register_addr): Handle DSP
registers.
(mips64_linux_register_addr): Likewise.
(mips64_linux_regsets_fetch_registers): Likewise.
(mips64_linux_regsets_store_registers): Likewise.
(mips64_linux_fetch_registers): Update call to
mips64_linux_regsets_fetch_registers.
(mips64_linux_store_registers): Update call to
mips64_linux_regsets_store_registers.
(mips_linux_read_description): Probe for DSP registers.
(_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
and initialize_tdesc_mips64_dsp_linux.
* mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
Remove padding of no longer used embedded register slots.
* mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
(MIPS_RESTART_REGNUM): Redefine enum value.
* mips-tdep.c (mips_generic_reg_names): Remove trailing null
strings.
(mips_tx39_reg_names): Likewise.
(mips_linux_reg_names): New array of register names for Linux
targets.
(mips_register_name): Check for a null pointer in
mips_processor_reg_names and return an empty string.
(mips_register_type): Exclude embedded registers for the IRIX
and Linux ABIs.
(mips_pseudo_register_type): Likewise. Use dynamic numbers to
refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
DSP registers.
(mips_stab_reg_to_regnum): Handle DSP accumulators.
(mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
(mips_gdbarch_init): Likewise. Initialize internal register
indices for the Linux ABI. Use dynamic numbers to refer to
registers, as applicable, while parsing the target description.
* mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
gdb/doc/
* gdb.texinfo (MIPS Features): Add org.gnu.gdb.mips.dsp.
gdb/gdbserver/
* linux-low.h (linux_target_ops): Add regset_bitmap member.
* linux-low.c (use_linux_regsets): New macro.
[!HAVE_LINUX_REGSETS] (regsets_fetch_inferior_registers): Likewise.
[!HAVE_LINUX_REGSETS] (regsets_store_inferior_registers): Likewise.
(linux_register_in_regsets): New function.
(usr_fetch_inferior_registers): Skip registers covered by
regsets.
(usr_store_inferior_registers): Likewise.
(usr_fetch_inferior_registers): New macro.
(usr_store_inferior_registers): Likewise.
(linux_fetch_registers): Handle mixed regset/non-regset targets.
(linux_store_registers): Likewise.
* linux-mips-low.c (init_registers_mips_dsp_linux): New
prototype.
(init_registers_mips64_dsp_linux): Likewise.
(init_registers_mips_linux): New macro.
(init_registers_mips_dsp_linux): Likewise.
(mips_dsp_num_regs): Likewise.
(DSP_BASE, DSP_CONTROL): New fallback macros.
(mips_base_regs): New macro.
(mips_regmap): Use it. Fix the size.
(mips_dsp_regmap): New variable.
(mips_dsp_regset_bitmap): Likewise.
(mips_arch_setup): New function.
(mips_cannot_fetch_register): Use the_low_target.regmap rather
than mips_regmap.
(mips_cannot_store_register): Likewise.
(the_low_target): Update .arch_setup, .num_regs and .regmap
initializers. Add .regset_bitmap initializer.
* linux-arm-low.c (the_low_target): Add .regset_bitmap
initializer.
* linux-bfin-low.c (the_low_target): Likewise.
* linux-cris-low.c (the_low_target): Likewise.
* linux-crisv32-low.c (the_low_target): Likewise.
* linux-ia64-low.c (the_low_target): Likewise.
* linux-m32r-low.c (the_low_target): Likewise.
* linux-m68k-low.c (the_low_target): Likewise.
* linux-ppc-low.c (the_low_target): Likewise.
* linux-s390-low.c (the_low_target): Likewise.
* linux-sh-low.c (the_low_target): Likewise.
* linux-sparc-low.c (the_low_target): Likewise.
* linux-tic6x-low.c (the_low_target): Likewise.
* linux-x86-low.c (the_low_target): Likewise.
* linux-xtensa-low.c (the_low_target): Likewise.
* configure.srv <mips*-*-linux*>: Add mips-dsp-linux.o and
mips64-dsp-linux.o to srv_regobj. Add mips-dsp-linux.xml,
mips64-dsp-linux.xml, mips-dsp.xml and mips64-dsp.xml to
srv_xmlfiles.
* Makefile.in (mips-dsp-linux.o, mips-dsp-linux.c): New targets.
(mips64-dsp-linux.o, mips64-dsp-linux.c): Likewise.
gdb/testsuite/
* gdb.xml/tdesc-regs.exp: Add "mips-dsp.xml" to the list of MIPS
core registers.
-----------------------------------------------------------------------
Summary of changes:
bfd/version.h | 2 +-
gdb/ChangeLog | 203 +++++++++
gdb/Makefile.in | 2 +-
gdb/ada-lang.c | 47 ++-
gdb/alpha-tdep.c | 2 +-
gdb/amd64-darwin-tdep.c | 3 +
gdb/amd64-windows-tdep.c | 3 +
gdb/arm-symbian-tdep.c | 5 +-
gdb/arm-wince-tdep.c | 2 +-
gdb/breakpoint.c | 17 +
gdb/breakpoint.h | 3 +
gdb/c-lang.c | 4 +
gdb/charset.c | 6 +-
gdb/cris-tdep.c | 42 --
gdb/d-lang.c | 1 +
gdb/doc/ChangeLog | 4 +
gdb/doc/gdb.texinfo | 5 +
gdb/dwarf2read.c | 8 +-
gdb/f-lang.c | 1 +
gdb/features/Makefile | 5 +-
gdb/features/mips-dsp-linux.c | 110 +++++
gdb/features/mips-dsp-linux.xml | 20 +
gdb/features/mips-dsp.xml | 18 +
gdb/features/mips64-dsp-linux.c | 108 +++++
gdb/features/mips64-dsp-linux.xml | 19 +
gdb/features/mips64-dsp.xml | 18 +
gdb/findvar.c | 22 +-
gdb/frame.h | 2 +-
gdb/frv-tdep.c | 66 ---
gdb/gdbserver/ChangeLog | 73 ++++
gdb/gdbserver/Makefile.in | 6 +
gdb/gdbserver/configure.srv | 9 +-
gdb/gdbserver/inferiors.c | 29 --
gdb/gdbserver/linux-arm-low.c | 1 +
gdb/gdbserver/linux-bfin-low.c | 1 +
gdb/gdbserver/linux-cris-low.c | 1 +
gdb/gdbserver/linux-crisv32-low.c | 1 +
gdb/gdbserver/linux-ia64-low.c | 1 +
gdb/gdbserver/linux-low.c | 417 ++++++++++++-------
gdb/gdbserver/linux-low.h | 6 +
gdb/gdbserver/linux-m32r-low.c | 1 +
gdb/gdbserver/linux-m68k-low.c | 1 +
gdb/gdbserver/linux-mips-low.c | 119 +++++--
gdb/gdbserver/linux-ppc-low.c | 1 +
gdb/gdbserver/linux-s390-low.c | 1 +
gdb/gdbserver/linux-sh-low.c | 1 +
gdb/gdbserver/linux-sparc-low.c | 1 +
gdb/gdbserver/linux-tic6x-low.c | 1 +
gdb/gdbserver/linux-x86-low.c | 1 +
gdb/gdbserver/linux-xtensa-low.c | 1 +
gdb/gdbserver/server.h | 2 -
gdb/gdbserver/tracepoint.c | 9 +-
gdb/i386-darwin-tdep.c | 3 +
gdb/i386-linux-nat.c | 3 +
gdb/i386-windows-nat.c | 3 +
gdb/jv-lang.c | 1 +
gdb/language.c | 3 +
gdb/language.h | 9 +
gdb/linespec.c | 46 ++-
gdb/linux-thread-db.c | 8 +-
gdb/lm32-tdep.c | 3 +
gdb/m2-lang.c | 1 +
gdb/microblaze-linux-tdep.c | 3 +
gdb/microblaze-tdep.c | 8 +-
gdb/mingw-hdep.c | 3 +
gdb/mips-linux-nat.c | 114 +++++-
gdb/mips-linux-tdep.c | 16 +-
gdb/mips-linux-tdep.h | 4 +-
gdb/mips-tdep.c | 438 +++++++++++++-------
gdb/mips-tdep.h | 2 +
gdb/moxie-tdep.c | 2 +-
gdb/objc-lang.c | 1 +
gdb/opencl-lang.c | 1 +
gdb/p-lang.c | 1 +
gdb/ppc-linux-nat.c | 3 +-
gdb/regformats/mips-dsp-linux.dat | 84 ++++
gdb/regformats/mips64-dsp-linux.dat | 84 ++++
gdb/remote-mips.c | 8 +-
gdb/remote-sim.c | 4 +-
gdb/rl78-tdep.c | 5 +-
gdb/rx-tdep.c | 6 +-
gdb/ser-mingw.c | 2 +-
gdb/sh-tdep.c | 1 +
gdb/sh-tdep.h | 3 -
gdb/sh64-tdep.c | 1 +
gdb/sh64-tdep.h | 25 ++
gdb/solib-darwin.c | 5 +-
gdb/solib-spu.c | 4 +
gdb/spu-multiarch.c | 3 +
gdb/target.c | 9 +
gdb/testsuite/ChangeLog | 23 +
gdb/testsuite/gdb.ada/info_locals_renaming.exp | 36 ++
gdb/testsuite/gdb.ada/info_locals_renaming/foo.adb | 22 +
gdb/testsuite/gdb.ada/info_locals_renaming/pck.adb | 21 +
gdb/testsuite/gdb.ada/info_locals_renaming/pck.ads | 20 +
gdb/testsuite/gdb.ada/operator_bp.exp | 88 ++++
gdb/testsuite/gdb.ada/operator_bp/ops.adb | 140 +++++++
gdb/testsuite/gdb.ada/operator_bp/ops.ads | 52 +++
gdb/testsuite/gdb.ada/operator_bp/ops_test.adb | 40 ++
gdb/testsuite/gdb.arch/altivec-abi.exp | 2 +-
gdb/testsuite/gdb.base/nextoverexit.c | 23 +
gdb/testsuite/gdb.base/nextoverexit.exp | 33 ++
gdb/testsuite/gdb.xml/tdesc-regs.exp | 2 +-
gdb/thread.c | 4 +-
gdb/tic6x-tdep.c | 13 +-
gdb/value.h | 3 +
gdb/version.in | 2 +-
gdb/windows-nat.c | 14 +-
gdb/windows-termcap.c | 8 +
109 files changed, 2337 insertions(+), 561 deletions(-)
create mode 100644 gdb/features/mips-dsp-linux.c
create mode 100644 gdb/features/mips-dsp-linux.xml
create mode 100644 gdb/features/mips-dsp.xml
create mode 100644 gdb/features/mips64-dsp-linux.c
create mode 100644 gdb/features/mips64-dsp-linux.xml
create mode 100644 gdb/features/mips64-dsp.xml
create mode 100644 gdb/regformats/mips-dsp-linux.dat
create mode 100644 gdb/regformats/mips64-dsp-linux.dat
create mode 100644 gdb/sh64-tdep.h
create mode 100644 gdb/testsuite/gdb.ada/info_locals_renaming.exp
create mode 100644 gdb/testsuite/gdb.ada/info_locals_renaming/foo.adb
create mode 100644 gdb/testsuite/gdb.ada/info_locals_renaming/pck.adb
create mode 100644 gdb/testsuite/gdb.ada/info_locals_renaming/pck.ads
create mode 100644 gdb/testsuite/gdb.ada/operator_bp.exp
create mode 100644 gdb/testsuite/gdb.ada/operator_bp/ops.adb
create mode 100644 gdb/testsuite/gdb.ada/operator_bp/ops.ads
create mode 100644 gdb/testsuite/gdb.ada/operator_bp/ops_test.adb
create mode 100644 gdb/testsuite/gdb.base/nextoverexit.c
create mode 100644 gdb/testsuite/gdb.base/nextoverexit.exp
First 500 lines of diff:
diff --git a/bfd/version.h b/bfd/version.h
index 61d1fc3..25949aa 100644
--- a/bfd/version.h
+++ b/bfd/version.h
@@ -1,4 +1,4 @@
-#define BFD_VERSION_DATE 20120301
+#define BFD_VERSION_DATE 20120302
#define BFD_VERSION @bfd_version@
#define BFD_VERSION_STRING @bfd_version_package@ @bfd_version_string@
#define REPORT_BUGS_TO @report_bugs_to@
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index ce3d48e..a26e694 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,206 @@
+2012-03-02 Joel Brobecker <brobecker@adacore.com>
+
+ * language.h (struct language_defn): New "method" la_read_var_value.
+ * findvar.c: #include "language.h".
+ (default_read_var_value): Renames read_var_value. Rewrite
+ function description.
+ (read_var_value): New function.
+ * value.h (default_read_var_value): Add prototype.
+ * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
+ New functions.
+ (ada_language_defn): Add entry for la_read_var_value.
+ * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
+ * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
+ language_defn structures to add entry for new la_read_var_value
+ field.
+
+2012-03-02 Tom Tromey <tromey@redhat.com>
+ Pedro Alves <palves@redhat.com>
+
+ PR breakpoints/13776:
+ * breakpoint.c (breakpoint_init_inferior): Delete step-resume
+ breakpoints.
+ (delete_longjmp_breakpoint_at_next_stop): New.
+ * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
+ * target.c (generic_mourn_inferior): Call mark_breakpoints_out
+ before deleting the inferior. Add comments.
+ * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
+ breakpoints immediately, but only on next stop. Move that code
+ next to where we mark other breakpoints for deletion.
+
+2012-03-02 Joel Brobecker <brobecker@adacore.com>
+
+ * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
+ marker.
+ * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
+ violation.
+
+2012-03-02 Pedro Alves <palves@redhat.com>
+
+ * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
+
+2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
+
+ Fix -Wmissing-prototypes build.
+ * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
+ * remote-sim.c (gdbsim_has_all_memory): Likewise.
+ (gdbsim_has_memory): Likewise.
+
+2012-03-02 Yao Qi <yao@codesourcery.com>
+
+ Fix -Wmissing-prototypes build.
+ * charset.c (phony_iconv_open): Make static.
+ (phony_iconv_close, phony_iconv): Likewise.
+ * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
+ * i386-windows-nat.c (_initialize_i386_windows_nat): New
+ prototype.
+ * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
+ * ser-mingw.c (create_select_thread): Make static.
+ * windows-termcap.c (tgetent): New prototype.
+ (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
+
+2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
+
+ Fix -Wmissing-prototypes build.
+ * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
+ (_initialize_windows_nat, _initialize_check_for_gdb_ini)
+ (_initialize_loadable): New prototypes.
+
+2012-03-02 Doug Evans <dje@google.com>
+
+ * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
+ abbrev table, read_comp_unit will do it.
+
+2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix -Wmissing-prototypes build.
+ * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
+ * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
+ * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
+ * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
+ (_initialize_arm_symbian_tdep): New prototype.
+ * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
+ * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
+ * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
+ static.
+ * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
+ * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
+ prototype.
+ * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
+ (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
+ * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
+ static.
+ * moxie-tdep.c (moxie_process_record): Likewise.
+ * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
+ (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
+ * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
+ (_initialize_rl78_tdep): New prototype.
+ * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
+ (_initialize_rx_tdep): New prototype.
+ * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
+ (_initialize_darwin_solib): New prototype.
+ * solib-spu.c: Include solib-spu.h.
+ (_initialize_spu_solib): New prototype.
+ * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
+ * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
+ (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
+ (tic6x_software_single_step): Make it static.
+ (_initialize_tic6x_tdep): New prototype.
+
+2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix -Wmissing-prototypes build.
+ * cris-tdep.c (cris_can_use_hardware_watchpoint)
+ (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
+
+2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix -Wmissing-prototypes build.
+ * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
+ (frv_have_stopped_data_address): Remove.
+
+2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
+
+ Fix -Wmissing-prototypes build.
+ * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
+ * sh-tdep.c: Include sh64-tdep.h.
+ * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
+ * sh64-tdep.c: Include sh64-tdep.h.
+ * sh64-tdep.h: New file.
+
+2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * mips-tdep.c (mips32_scan_prologue): Correct indentation.
+
+2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
+ sp_regnum once the gdbarch_init_osabi hook has been called.
+
+2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
+
+ * mips-tdep.c (mips32_bc1_pc): New function.
+ (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
+ BPOSGE32 and BPOSGE64 instructions.
+ (deal_with_atomic_sequence): Likewise.
+ (mips32_instruction_has_delay_slot): Likewise.
+
+2012-03-01 Maciej W. Rozycki <macro@mips.com>
+ Chris Dearman <chris@mips.com>
+ Maciej W. Rozycki <macro@codesourcery.com>
+ Joseph Myers <joseph@codesourcery.com>
+
+ * features/mips-dsp.xml: New file.
+ * features/mips64-dsp.xml: New file.
+ * features/mips-dsp-linux.xml: New file.
+ * features/mips64-dsp-linux.xml: New file.
+ * features/Makefile (WHICH): Add mips-dsp-linux and
+ mips64-dsp-linux.
+ (mips-dsp-expedite, mips64-dsp-expedite): New variables.
+ * features/mips-dsp-linux.c: New file.
+ * features/mips64-dsp-linux.c: New file.
+ * regformats/mips-dsp-linux.dat: New file.
+ * regformats/mips64-dsp-linux.dat: New file.
+ * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
+ registers.
+ (mips64_linux_register_addr): Likewise.
+ (mips64_linux_regsets_fetch_registers): Likewise.
+ (mips64_linux_regsets_store_registers): Likewise.
+ (mips64_linux_fetch_registers): Update call to
+ mips64_linux_regsets_fetch_registers.
+ (mips64_linux_store_registers): Update call to
+ mips64_linux_regsets_store_registers.
+ (mips_linux_read_description): Probe for DSP registers.
+ (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
+ and initialize_tdesc_mips64_dsp_linux.
+ * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
+ Remove padding of no longer used embedded register slots.
+ * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
+ (MIPS_RESTART_REGNUM): Redefine enum value.
+ * mips-tdep.c (mips_generic_reg_names): Remove trailing null
+ strings.
+ (mips_tx39_reg_names): Likewise.
+ (mips_linux_reg_names): New array of register names for Linux
+ targets.
+ (mips_register_name): Check for a null pointer in
+ mips_processor_reg_names and return an empty string.
+ (mips_register_type): Exclude embedded registers for the IRIX
+ and Linux ABIs.
+ (mips_pseudo_register_type): Likewise. Use dynamic numbers to
+ refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
+ DSP registers.
+ (mips_stab_reg_to_regnum): Handle DSP accumulators.
+ (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
+ (mips_gdbarch_init): Likewise. Initialize internal register
+ indices for the Linux ABI. Use dynamic numbers to refer to
+ registers, as applicable, while parsing the target description.
+ * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
+
+2012-03-01 Joel Brobecker <brobecker@adacore.com>
+
+ * frame.h (read_frame_register_unsigned): Fix typo in function
+ description.
+
2012-03-01 Pedro Alves <palves@redhat.com>
* jit-reader.in [!__cplusplus]
diff --git a/gdb/Makefile.in b/gdb/Makefile.in
index 3e1b93c..57ef436 100644
--- a/gdb/Makefile.in
+++ b/gdb/Makefile.in
@@ -786,7 +786,7 @@ target.h prologue-value.h cp-abi.h tui/tui-hooks.h tui/tui.h \
tui/tui-file.h tui/tui-command.h tui/tui-disasm.h tui/tui-wingeneral.h \
tui/tui-windata.h tui/tui-data.h tui/tui-win.h tui/tui-stack.h \
tui/tui-winsource.h tui/tui-regs.h tui/tui-io.h tui/tui-layout.h \
-tui/tui-source.h xcoffsolib.h sol2-tdep.h gregset.h sh-tdep.h \
+tui/tui-source.h xcoffsolib.h sol2-tdep.h gregset.h sh-tdep.h sh64-tdep.h \
expression.h score-tdep.h gdb_select.h ser-tcp.h buildsym.h valprint.h \
call-cmds.h typeprint.h mi/mi-getopt.h mi/mi-parse.h mi/mi-console.h \
mi/mi-out.h mi/mi-main.h mi/mi-common.h mi/mi-cmds.h linux-nat.h \
diff --git a/gdb/ada-lang.c b/gdb/ada-lang.c
index 4c17eaa..040d606 100644
--- a/gdb/ada-lang.c
+++ b/gdb/ada-lang.c
@@ -4041,8 +4041,30 @@ parse_old_style_renaming (struct type *type,
if (len != NULL)
*len = suffix - info;
return kind;
-}
+}
+
+/* Compute the value of the given RENAMING_SYM, which is expected to
+ be a symbol encoding a renaming expression. BLOCK is the block
+ used to evaluate the renaming. */
+static struct value *
+ada_read_renaming_var_value (struct symbol *renaming_sym,
+ struct block *block)
+{
+ char *sym_name;
+ struct expression *expr;
+ struct value *value;
+ struct cleanup *old_chain = NULL;
+
+ sym_name = xstrdup (SYMBOL_LINKAGE_NAME (renaming_sym));
+ old_chain = make_cleanup (xfree, sym_name);
+ expr = parse_exp_1 (&sym_name, block, 0);
+ make_cleanup (free_current_contents, &expr);
+ value = evaluate_expression (expr);
+
+ do_cleanups (old_chain);
+ return value;
+}
\f
/* Evaluation: Function Calls */
@@ -12437,6 +12459,28 @@ ada_get_symbol_name_cmp (const char *lookup_name)
return compare_names;
}
+/* Implement the "la_read_var_value" language_defn method for Ada. */
+
+static struct value *
+ada_read_var_value (struct symbol *var, struct frame_info *frame)
+{
+ struct block *frame_block = NULL;
+ struct symbol *renaming_sym = NULL;
+
+ /* The only case where default_read_var_value is not sufficient
+ is when VAR is a renaming... */
+ if (frame)
+ frame_block = get_frame_block (frame, NULL);
+ if (frame_block)
+ renaming_sym = ada_find_renaming_symbol (var, frame_block);
+ if (renaming_sym != NULL)
+ return ada_read_renaming_var_value (renaming_sym, frame_block);
+
+ /* This is a typical case where we expect the default_read_var_value
+ function to work. */
+ return default_read_var_value (var, frame);
+}
+
const struct language_defn ada_language_defn = {
"ada", /* Language name */
language_ada,
@@ -12457,6 +12501,7 @@ const struct language_defn ada_language_defn = {
ada_print_typedef, /* Print a typedef using appropriate syntax */
ada_val_print, /* Print a value using appropriate syntax */
ada_value_print, /* Print a top-level value */
+ ada_read_var_value, /* la_read_var_value */
NULL, /* Language specific skip_trampoline */
NULL, /* name_of_this */
ada_lookup_symbol_nonlocal, /* Looking up non-local symbols. */
diff --git a/gdb/alpha-tdep.c b/gdb/alpha-tdep.c
index 80f5098..856aa0d 100644
--- a/gdb/alpha-tdep.c
+++ b/gdb/alpha-tdep.c
@@ -771,7 +771,7 @@ static const int stq_c_opcode = 0x2f;
is found, attempt to step through it. A breakpoint is placed at the end of
the sequence. */
-int
+static int
alpha_deal_with_atomic_sequence (struct frame_info *frame)
{
struct gdbarch *gdbarch = get_frame_arch (frame);
diff --git a/gdb/amd64-darwin-tdep.c b/gdb/amd64-darwin-tdep.c
index 78b805a..6a5d4a4 100644
--- a/gdb/amd64-darwin-tdep.c
+++ b/gdb/amd64-darwin-tdep.c
@@ -120,6 +120,9 @@ x86_darwin_init_abi_64 (struct gdbarch_info info, struct gdbarch *gdbarch)
set_solib_ops (gdbarch, &darwin_so_ops);
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_amd64_darwin_tdep;
+
void
_initialize_amd64_darwin_tdep (void)
{
diff --git a/gdb/amd64-windows-tdep.c b/gdb/amd64-windows-tdep.c
index 29fd71a..2b94eca 100644
--- a/gdb/amd64-windows-tdep.c
+++ b/gdb/amd64-windows-tdep.c
@@ -177,6 +177,9 @@ amd64_windows_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
set_solib_ops (gdbarch, &solib_target_so_ops);
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_amd64_windows_tdep;
+
void
_initialize_amd64_windows_tdep (void)
{
diff --git a/gdb/arm-symbian-tdep.c b/gdb/arm-symbian-tdep.c
index 7994a9c..cc4a784 100644
--- a/gdb/arm-symbian-tdep.c
+++ b/gdb/arm-symbian-tdep.c
@@ -29,7 +29,7 @@
/* If PC is in a DLL import stub, return the address of the `real'
function belonging to the stub. */
-CORE_ADDR
+static CORE_ADDR
arm_symbian_skip_trampoline_code (struct frame_info *frame, CORE_ADDR pc)
{
struct gdbarch *gdbarch;
@@ -121,6 +121,9 @@ arm_symbian_osabi_sniffer (bfd *abfd)
return GDB_OSABI_SYMBIAN;
}
+/* -Wmissing-prototypes */
+extern initialize_file_ftype _initialize_arm_symbian_tdep;
+
void
_initialize_arm_symbian_tdep (void)
{
diff --git a/gdb/arm-wince-tdep.c b/gdb/arm-wince-tdep.c
index 5463f6a..5bc6473 100644
--- a/gdb/arm-wince-tdep.c
+++ b/gdb/arm-wince-tdep.c
@@ -84,7 +84,7 @@ arm_pe_skip_trampoline_code (struct frame_info *frame, CORE_ADDR pc)
the address of the instruction following that call. Otherwise, it
simply returns PC. */
-CORE_ADDR
+static CORE_ADDR
arm_wince_skip_main_prologue (struct gdbarch *gdbarch, CORE_ADDR pc)
{
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index ce35da2..3decd92 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -3341,6 +3341,10 @@ breakpoint_init_inferior (enum inf_context context)
(gdb) tar rem :9999 # remote Windows gdbserver.
*/
+ case bp_step_resume:
+
+ /* Also remove step-resume breakpoints. */
+
delete_breakpoint (b);
break;
@@ -6625,6 +6629,19 @@ delete_longjmp_breakpoint (int thread)
}
void
+delete_longjmp_breakpoint_at_next_stop (int thread)
+{
+ struct breakpoint *b, *b_tmp;
+
+ ALL_BREAKPOINTS_SAFE (b, b_tmp)
+ if (b->type == bp_longjmp || b->type == bp_exception)
+ {
+ if (b->thread == thread)
+ b->disposition = disp_del_at_next_stop;
+ }
+}
+
+void
enable_overlay_breakpoints (void)
{
struct breakpoint *b;
diff --git a/gdb/breakpoint.h b/gdb/breakpoint.h
index 7e8c597..5b5172e 100644
--- a/gdb/breakpoint.h
+++ b/gdb/breakpoint.h
@@ -1254,6 +1254,9 @@ extern void set_longjmp_breakpoint (struct thread_info *tp,
struct frame_id frame);
extern void delete_longjmp_breakpoint (int thread);
+/* Mark all longjmp breakpoints from THREAD for later deletion. */
+extern void delete_longjmp_breakpoint_at_next_stop (int thread);
+
extern void enable_overlay_breakpoints (void);
extern void disable_overlay_breakpoints (void);
diff --git a/gdb/c-lang.c b/gdb/c-lang.c
index 767d13a..28dce8d 100644
--- a/gdb/c-lang.c
+++ b/gdb/c-lang.c
@@ -847,6 +847,7 @@ const struct language_defn c_language_defn =
c_print_typedef, /* Print a typedef using appropriate syntax */
c_val_print, /* Print a value using appropriate syntax */
c_value_print, /* Print a top-level value */
+ default_read_var_value, /* la_read_var_value */
NULL, /* Language specific skip_trampoline */
NULL, /* name_of_this */
basic_lookup_symbol_nonlocal, /* lookup_symbol_nonlocal */
@@ -970,6 +971,7 @@ const struct language_defn cplus_language_defn =
c_print_typedef, /* Print a typedef using appropriate syntax */
c_val_print, /* Print a value using appropriate syntax */
c_value_print, /* Print a top-level value */
+ default_read_var_value, /* la_read_var_value */
cplus_skip_trampoline, /* Language specific skip_trampoline */
"this", /* name_of_this */
cp_lookup_symbol_nonlocal, /* lookup_symbol_nonlocal */
@@ -1011,6 +1013,7 @@ const struct language_defn asm_language_defn =
c_print_typedef, /* Print a typedef using appropriate syntax */
c_val_print, /* Print a value using appropriate syntax */
c_value_print, /* Print a top-level value */
+ default_read_var_value, /* la_read_var_value */
NULL, /* Language specific skip_trampoline */
NULL, /* name_of_this */
basic_lookup_symbol_nonlocal, /* lookup_symbol_nonlocal */
@@ -1057,6 +1060,7 @@ const struct language_defn minimal_language_defn =
c_print_typedef, /* Print a typedef using appropriate syntax */
c_val_print, /* Print a value using appropriate syntax */
c_value_print, /* Print a top-level value */
+ default_read_var_value, /* la_read_var_value */
NULL, /* Language specific skip_trampoline */
NULL, /* name_of_this */
basic_lookup_symbol_nonlocal, /* lookup_symbol_nonlocal */
diff --git a/gdb/charset.c b/gdb/charset.c
index 16dab6b..4a209a5 100644
--- a/gdb/charset.c
+++ b/gdb/charset.c
@@ -108,7 +108,7 @@
#define EILSEQ ENOENT
#endif
-iconv_t
+static iconv_t
phony_iconv_open (const char *to, const char *from)
{
/* We allow conversions from UTF-32BE, wchar_t, and the host charset.
@@ -124,13 +124,13 @@ phony_iconv_open (const char *to, const char *from)
return !strcmp (from, "UTF-32BE");
}
-int
+static int
phony_iconv_close (iconv_t arg)
{
return 0;
}
-size_t
+static size_t
phony_iconv (iconv_t utf_flag, const char **inbuf, size_t *inbytesleft,
char **outbuf, size_t *outbytesleft)
{
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index daa92e5..34a2594 100644
hooks/post-receive
--
Repository for Project Archer.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-03-03 17:04 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-03-03 17:04 [SCM] archer-keiths-linespec-rewrite: Merge branch 'archer-keiths-linespec-rewrite' of ssh://sourceware.org/git/archer into archer-keiths-linespec-rewrite kseitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).