Jan Kratochvil
75528772a7
gdb/
...
* libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
[!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
(libunwind_load): New variable so_error, use it for dlerror. Try to
load also LIBUNWIND_SO_7.
2012-03-05 17:11:48 +00:00
Jan Kratochvil
e237a7e2c5
gdb/gdbserver/
...
* linux-low.c (get_dynamic): Don't warn when PT_PHDR isn't found.
New comment why.
2012-03-05 17:09:37 +00:00
Pedro Alves
275418ae46
2012-03-05 Pedro Alves <palves@redhat.com>
...
* i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
is not NULL, and remove resulting dead code.
2012-03-05 16:17:52 +00:00
Rainer Orth
0bef263a74
PR ld/12152
...
* elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Also ignore
overflows for R_SPARC_UA32 in .stab sections.
2012-03-05 16:02:19 +00:00
Thomas Schwinge
5cbb98123c
* sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
...
prologue to sh_analyze_prologue.
(sh_analyze_prologue): Make better use of such an upper limit, and
generally be more cautious about accessing memory.
2012-03-05 15:16:39 +00:00
Tom Tromey
541515ad26
* ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
...
_initialize_ia64_hpux_tdep.
2012-03-05 14:53:56 +00:00
Pedro Alves
24490249f8
Mention PR gdb/13766
2012-03-05 14:24:03 +00:00
Pedro Alves
b4d36fb80a
2012-03-05 Pedro Alves <palves@redhat.com>
...
* i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
the register state is clear, supply explicit zero, instead of
marking the register unavailable.
2012-03-05 14:21:46 +00:00
Tristan Gingold
0945bbeec0
2012-03-05 Tristan Gingold <gingold@adacore.com>
...
* configure.ac: Enable gdb and readline for ia64*-*-*vms*.
* configure: Regenerate.
2012-03-05 11:57:17 +00:00
Tristan Gingold
60c9a3c0e3
2012-03-05 Tristan Gingold <gingold@adacore.com>
...
* NEWS: Mention OpenVMS ia64 new target.
2012-03-05 11:46:35 +00:00
Tristan Gingold
5ab2f44149
2012-03-05 Tristan Gingold <gingold@adacore.com>
...
* buildvms.com: New file.
* ia64vms-stub.c: New file.
2012-03-05 11:44:19 +00:00
Tristan Gingold
696759ad10
2012-03-05 Tristan Gingold <gingold@adacore.com>
...
* ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
(ia64_unw_accessors, ia64_unw_rse_accessors)
(ia64_libunwind_descr): Declare.
* ia64-vms-tdep.c: New file.
* ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
(ia64_libunwind_descr): Make them public.
* configure.tgt: Add ia64-*-*vms*.
* Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
(ALLDEPFILES): Add ia64-vms-tdep.c
2012-03-05 11:41:51 +00:00
Tristan Gingold
169081d053
2012-03-05 Tristan Gingold <gingold@adacore.com>
...
* target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
* remote.c (PACKET_qXfer_uib): New enum value.
(remote_protocol_features): Add entry for PACKET_qXfer_uib.
(remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
(_initialize_remote): Call add_packet_config_cmd for
xfer:uib packet.
doc/
2012-03-05 Tristan Gingold <gingold@adacore.com>
* gdb.texinfo (General Query Packets): Document xfer:uib:read.
2012-03-05 11:37:33 +00:00
Tristan Gingold
34864976a8
2012-03-05 Tristan Gingold <gingold@adacore.com>
...
* osabi.c (gdb_osabi_names): Add OpenVMS.
(generic_elf_osabi_sniffer): Likewise.
* defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
2012-03-05 11:33:36 +00:00
Hans-Peter Nilsson
cae4ddc69f
* configure.tgt (mips64*el-*-freebsd*, mips64*-*-freebsd*)
...
(mips*el-*-freebsd*, mips*-*-freebsd*): Correct triplets by
replacing trailing "-*" with "*".
2012-03-05 04:02:20 +00:00
gdbadmin
5fb95a7f61
*** empty log message ***
2012-03-05 00:00:32 +00:00
Alan Modra
92dd1f05e1
daily update
2012-03-04 23:00:05 +00:00
Mike Frysinger
84de2f06d8
sim: bfin: drop old linux/mii.h workarounds
...
We had some workarounds for old linux/mii.h headers, but it breaks with
newer ones. So tweak the checks a bit to work with newer ones. We'll
worry about older systems once someone complains.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-03-04 19:56:57 +00:00
Jan Kratochvil
6597b100b5
gdb/
...
Removed unused code.
* libunwind-frame.c (libunwind_frame_unwind)
(libunwind_frame_base_address): Remove.
* libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
2012-03-04 19:22:47 +00:00
Yao Qi
87399aa1a1
gdb/
...
* common/agent.c (gdb_connect_sync_socket): Add _ markup and
remove trailing new line.
(agent_run_command, agent_run_command): Add _ markup.
(agent_capability_check): Likewise.
2012-03-04 03:31:09 +00:00
Yao Qi
89b7509a3f
Fix indent of changelog entries.
2012-03-04 03:11:03 +00:00
Yao Qi
69dc1c4dd3
gdb/testsuite/
...
* gdb.base/disp-step-syscall.exp (disp_step_cross_syscall): Catch error
messages for KFAIL.
2012-03-04 02:36:38 +00:00
gdbadmin
09ddfdd717
*** empty log message ***
2012-03-04 00:00:03 +00:00
Alan Modra
f108d3e4e7
daily update
2012-03-03 23:00:05 +00:00
Jan Kratochvil
3f20c47f9e
gdb/testsuite/
...
* gdb.ada/arrayidx.exp: Call get_compiler_info. New variable old_gcc.
(print one_two_three, indexes off, print few_reps, indexes off)
(print many_reps, indexes off, print empty, indexes off)
(print one_two_three, print few_reps, print many_reps, print empty):
Call setup_xfail if $gcc_old.
2012-03-03 18:03:31 +00:00
Jan Kratochvil
abf1152ad7
gdb/
...
* breakpoint.c (set_condition_evaluation_mode): Set
CONDITION_EVALUATION_MODE unconditionally.
gdb/testsuite/
Implement testsuite workaround for PR breakpoints/13781.
* gdb.cp/mb-templates.exp: New loop with variable $workaround.
(set breakpoint condition-evaluation host): New conditional command.
2012-03-03 14:21:04 +00:00
Jan Kratochvil
a06715f8dd
gdb/testsuite/
...
Code cleanup.
* gdb.cp/mb-templates.exp: New variables executable. Use it for
binfile. use clean_restart. Replace gdb_expect by gdb_test_multiple.
Replace GDB restart by kill and delete_breakpoints. Replace breakpoint
number 1 by $bpnum. Four times.
2012-03-03 14:19:19 +00:00
Yao Qi
5808517f9a
gdb:
...
* common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
* common/agent.h: Update declaration.
* inf-child.c (inf_child_use_agent): New.
(inf_child_can_use_agent): New.
(inf_child_target): Initialize fields `to_use_agent'
and `to_can_use_agent'.
* agent.c (agent_new_objfile): New.
(_initialize_agent): Add agent_new_objfile to new_objfile
observer.
* linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
New.
(linux_target_install_ops): Initialize field
`to_static_tracepoint_markers_by_strid'.
* remote.c (free_current_marker): Move it to ...
* tracepoint.c (free_current_marker): ... here. New.
(cleanup_target_stop): New.
* tracepoint.h: Declare free_current_marker.
* NEWS: Add one entry about `info static-tracepoint-marker'.
gdb/gdbserver:
* tracepoint.c (tracepoint_look_up_symbols): Update call to
agent_look_up_symbols.
gdb/testsuite:
* gdb.trace/strace.exp: run strace_info_marker in linux native gdb.
2012-03-03 09:51:29 +00:00
Jan Kratochvil
dfe2ac1496
gdb/testsuite/
...
Setup KFAIL for PR server/13796.
* gdb.base/disp-step-syscall.exp (single step over vfork): Setup KFAIL.
2012-03-03 06:58:16 +00:00
Yao Qi
58b4daa56a
gdb:
...
* common/agent.c (agent_loaded_p): New.
(agent_look_up_symbols): New global.
* common/agent.h: Declare agent_loaded_p.
gdb/gdbserver:
* Makefile.in (linux-low.o): Keep dependence on agent.h.
(linux-x86-low.o): Likewise.
* server.h: Remove in_process_agent_loaded.
* tracepoint.c (in_process_agent_loaded): Removed. Moved it
common/agent.c.
Update callers.
2012-03-03 04:34:52 +00:00
Yao Qi
8ffcbaaf40
gdb:
...
* common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
(agent_capability_check, agent_capability_invalidate): New.
(symbol_list): New array element.
* common/agent.h (enum agent_capa): New.
* target.c (target_pre_inferior): Call agent_capability_invalidate.
gdb/gdbserver:
* tracepoint.c (gdb_agent_capability): New global.
(in_process_agent_loaded_ust): Renamed to
`in_process_agent_supports_ust'.
Update callers.
(in_process_agent_supports_ust): Call agent_capability_check.
(clear_installed_tracepoints): Assert that agent supports
agent.
2012-03-03 04:04:35 +00:00
Yao Qi
d1feda864e
gdb:
...
* target.h (struct target_ops) <to_use_agent>: New field.
(struct target_ops) <to_can_use_agent>: New field.
(target_use_agent, target_can_use_agent): New macro.
* target.c (update_current_target): Update.
* remote.c: New enum `PACKET_QAgent'.
(remote_protocol_features): Add a new element.
(remote_use_agent, remote_can_use_agent): New.
(init_remote_ops): Initialize field `can_use_agent' with
remote_can_use_agent. Intiailize field `use_agent' with
remote_use_agent.
* common/agent.c (use_agent): New global.
* common/agent.h: Declare it.
* tracepoint.c (info_static_tracepoint_markers_command): Add
comment.
* Makefile.in (SFILES): Add common/agent.c and agent.c.
(COMMON_OBS): Add common/agent.o and agent.o
(common-agent.o): New rule.
* agent.c: New.
gdb/doc:
* gdb.texinfo (In-Process Agent): New node.
Document new commands.
(General Query Packets): Add packet `QAgent'.
gdb/gdbserver:
* linux-low.c (linux_supports_agent): New.
(linux_target_ops): Initialize field `supports_agent' with
linux_supports_agent.
* target.h (struct target_ops) <supports_agent>: New.
(target_supports_agent): New macro.
* server.c (handle_general_set): Handle packet 'QAgent'.
(handle_query): Send `QAgent+'.
* Makefile.in (server.o): Depends on agent.h.
2012-03-03 03:32:46 +00:00
Yao Qi
2fa291aca4
gdb:
...
* common/agent.c: New.
* common/agent.h: New.
* configure.ac: Add `sys/socket.h' and `sys/un.h' to
AC_CHECK_HEADERS.
* configure, configh.in: Regenerated.
gdb/gdbserver:
* Makefile.in (OBS): Add agent.o.
Add new rule for agent.o.
Track dependence of tracepoint.c on agent.h.
* tracepoint.c (run_inferior_command_1):
(run_inferior_command): Call agent_run_command.
(gdb_ust_connect_sync_socket): Deleted. Move it to
common/agent.c.
(resume_thread, stop_thread): Likewise.
(gdb_ust_socket_init): Renamed to ...
(gdb_agent_socket_init): ... New.
(gdb_ust_thread): Renamed to ...
(gdb_agent_helper_thread): ... New.
(gdb_ust_init): Move some code to ...
(gdb_agent_init): ... here. New.
[HAVE_UST]: Call gdb_ust_init.
(initialize_tracepoint_ftlib): Call gdb_agent_init.
* configure.ac: Add `sys/un.h' to AC_CHECK_HEADERS.
* config.in, configure: Regenerated.
2012-03-03 03:08:36 +00:00
Kevin Buettner
9fc0568578
* sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
...
unless it exists for this architecture.
2012-03-03 01:27:47 +00:00
Kevin Buettner
d98bfeb023
Update rx sim so that it'll print load statistics.
2012-03-03 01:23:45 +00:00
gdbadmin
636b802b4e
*** empty log message ***
2012-03-03 00:00:33 +00:00
Alan Modra
4cb07424db
daily update
2012-03-02 23:00:05 +00:00
Joel Brobecker
8bbc467ad4
New Ada testcase for breakpoints on operators.
...
gdb/testsuite/ChangeLog:
* gdb.ada/operator_bp: New testcase.
2012-03-02 20:36:41 +00:00
Joel Brobecker
c0eac87f84
Testcase: "info locals" with Ada renamings.
...
gdb/testsuite/ChangeLog:
* gdb.ada/info_locals_renaming: New testcase.
2012-03-02 19:31:53 +00:00
Tom Tromey
4f42c881de
* gdb.base/nextoverexit.c: New file.
...
* gdb.base/nextoverexit.exp: New file.
2012-03-02 19:29:57 +00:00
Joel Brobecker
a5ee536be2
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.
2012-03-02 19:29:01 +00:00
Pedro Alves
f59f708a4b
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 19:26:10 +00:00
Joel Brobecker
44099a67be
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.
2012-03-02 19:14:30 +00:00
Edjunior Barbosa Machado
7380c0c93f
gdb/testsuite/
...
2012-03-02 Edjunior Machado <emachado@linux.vnet.ibm.com>
* gdb.arch/altivec-abi.exp (altivec_abi_tests): Remove obsolete
parameter.
2012-03-02 18:43:46 +00:00
Pedro Alves
2a2ef594da
2012-03-02 Pedro Alves <palves@redhat.com>
...
* linux-thread-db.c (attach_thread): Avoid in_thread_list call.
2012-03-02 16:54:59 +00:00
Pedro Alves
0504465367
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.
2012-03-02 16:23:42 +00:00
Ulrich Weigand
b261e0c536
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 13:38:39 +00:00
Yao Qi
a95babbf38
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.
2012-03-02 12:56:50 +00:00
Jan Kratochvil
d603d4b3da
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.
2012-03-02 05:38:51 +00:00
Doug Evans
7fb3ad1f9f
* dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
...
abbrev table, read_comp_unit will do it.
2012-03-02 01:55:15 +00:00