Accept "set foo unlimited" in integer/uinteger/zuinteger_unlimited commands.
Currently, several commands take "0" or "-1" to mean "unlimited".
"show" knows when to print "unlimited":
(gdb) show height
Number of lines gdb thinks are in a page is 45.
(gdb) set height 0
(gdb) show height
Number of lines gdb thinks are in a page is unlimited.
However, the user can't herself specify "unlimited" directly:
(gdb) set height unlimited
No symbol table is loaded. Use the "file" command.
(gdb)
This patch addresses that, by adjusting the set handler for all
integer/uinteger/zuinteger_unlimited commands to accept literal
"unlimited". It also installs a completer. Presently, we complete on
symbols by default, and at
<http://sourceware.org/ml/gdb-patches/2013-03/msg00864.html> I've
shown a WIP prototype that tried to keep that half working in these
commands. In the end, it turned out to be more complicated than
justifiable, IMO. It's super rare to want to pass the value of a
variable/symbol in the program to a GDB set/show knob. That'll still
work, it's just that we won't assist with completion anymore. This
patch just sticks with the simple, and completes on "unlimited", and
nothing else. This simplification means that
"set he<tab><tab>"
is all it takes to get to:
"set height unlimited"
The patch then goes through all integer/uinteger/zuinteger_unlimited
commands in the tree, and updates both the online help and the manual
to mention that "unlimited" is accepted in addition to 0/-1. In the
cases where the command had no online help text at all, this adds it.
I've tried to make the texts read in a way that "unlimited" is
suggested before "0" or "-1" is.
Tested on x86_64 Fedora 17.
gdb/
2013-04-10 Pedro Alves <palves@redhat.com>
* cli/cli-decode.c (integer_unlimited_completer): New function.
(add_setshow_integer_cmd, add_setshow_uinteger_cmd)
(add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
completer.
* cli/cli-setshow.c: Include "cli/cli-utils.h".
(is_unlimited_literal): New function.
(do_set_command): Handle literal "unlimited" arguments.
* frame.c (_initialize_frame) <set backtrace limit>: Document
"unlimited".
* printcmd.c (_initialize_printcmd) <set print
max-symbolic-offset>: Add help text.
* record-full.c (_initialize_record_full) <set record full
insn-number-max>: Likewise.
* record.c (_initialize_record) <set record
instruction-history-size, set record function-call-history-size>:
Add help text.
* ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
help text.
* tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
Likewise.
* source.c (_initialize_source) <set listsize>: Add help text.
* utils.c (initialize_utils) <set height, set width>: Likewise.
<set pagination>: Mention "set height unlimited".
* valprint.c (_initialize_valprint) <set print elements, set print
repeats>: Document "unlimited".
gdb/doc/
2013-04-10 Pedro Alves <palves@redhat.com>
* gdb.texinfo (Process Record and Replay): Document that "set
record full insn-number-max", "set record
instruction-history-size" and "set record
function-call-history-size" accept "unlimited".
(Backtrace): Document that "set backtrace limit" accepts
"unlimited".
(List): Document that "set listsize" accepts "unlimited".
(Print Settings)" Document that "set print max-symbolic-offset",
"set print elements" and "set print repeats" accept "unlimited".
(Starting and Stopping Trace Experiments): Document that "set
trace-buffer-size" accepts "unlimited".
(Remote Configuration): Document that "set tcp connect-timeout"
accepts "unlimited".
(Command History): Document that "set history size" accepts
"unlimited".
(Screen Size): Document that "set height" and "set width" accepts
"unlimited". Adjust "set pagination"'s description to suggest
"set height unlimited" instead of "set height 0".
gdb/testsuite/
2013-04-10 Pedro Alves <palves@redhat.com>
* gdb.base/completion.exp: Test "set height", "set listsize" and
"set trace-buffer-size" completion.
* gdb.base/setshow.exp: Test "set height unlimited".
* gdb.trace/trace-buffer-size.exp: Test "set trace-buffer-size
unlimited".
2013-04-10 15:11:12 +00:00
|
|
|
|
2013-04-10 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* cli/cli-decode.c (integer_unlimited_completer): New function.
|
|
|
|
|
(add_setshow_integer_cmd, add_setshow_uinteger_cmd)
|
|
|
|
|
(add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
|
|
|
|
|
completer.
|
|
|
|
|
* cli/cli-setshow.c: Include "cli/cli-utils.h".
|
|
|
|
|
(is_unlimited_literal): New function.
|
|
|
|
|
(do_set_command): Handle literal "unlimited" arguments.
|
|
|
|
|
* frame.c (_initialize_frame) <set backtrace limit>: Document
|
|
|
|
|
"unlimited".
|
|
|
|
|
* printcmd.c (_initialize_printcmd) <set print
|
|
|
|
|
max-symbolic-offset>: Add help text.
|
|
|
|
|
* record-full.c (_initialize_record_full) <set record full
|
|
|
|
|
insn-number-max>: Likewise.
|
|
|
|
|
* record.c (_initialize_record) <set record
|
|
|
|
|
instruction-history-size, set record function-call-history-size>:
|
|
|
|
|
Add help text.
|
|
|
|
|
* ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
|
|
|
|
|
help text.
|
|
|
|
|
* tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
|
|
|
|
|
Likewise.
|
|
|
|
|
* source.c (_initialize_source) <set listsize>: Add help text.
|
|
|
|
|
* utils.c (initialize_utils) <set height, set width>: Likewise.
|
|
|
|
|
<set pagination>: Mention "set height unlimited".
|
|
|
|
|
* valprint.c (_initialize_valprint) <set print elements, set print
|
|
|
|
|
repeats>: Document "unlimited".
|
|
|
|
|
|
make -gdb-exit call disconnect_tracing too, and don't lose history if the target errors on "quit"
Gareth mentions in PR gdb/15275:
"The MI '-gdb-exit' command mi_cmd_gdb_exit() never calls disconnect_tracing()
and therefore exits correctly."
It should, so to get out of tfind mode, as quit may detach instead of
kill, and we don't want to confuse the memory/register accesses
etc. of the detach process. So we should push down the disconnect
tracing bits at least to quit_force. But we can't as is, as that
would swallow the error thrown by answering "no" to:
Trace is running but will stop on detach; detach anyway? (y or n)
So to address that, we split disconnect_tracing in two. One part that
does the query, and another part that does the rest, and we make
quit_force call the latter.
Looking at quit_force, it does several things, some of which are a bit
independent of the others. It first kills/detaches, and then writes
history, and then runs the final cleanups. It seems better to me to
do each of these things even if the previous thing throws. E.g., as
is, if something throws while detaching, then we skip writing history.
Tested on x86_64 Fedora 17.
gdb/
2013-04-10 Pedro Alves <palves@redhat.com>
* cli/cli-cmds.c (quit_command): Call query_if_trace_running
instead of disconnect_tracing.
* infcmd.c (detach_command, disconnect_command): Call
query_if_trace_running. Adjust.
* top.c: Include "tracepoint.h".
(quit_target): Delete. Contents moved ...
(quit_force): ... here. Wrap each stage of teardown in
TRY_CATCH. Call disconnect_tracing before detaching.
2013-04-10 14:10:35 +00:00
|
|
|
|
2013-04-10 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* cli/cli-cmds.c (quit_command): Call query_if_trace_running
|
|
|
|
|
instead of disconnect_tracing.
|
|
|
|
|
* infcmd.c (detach_command, disconnect_command): Call
|
|
|
|
|
query_if_trace_running. Adjust.
|
|
|
|
|
* top.c: Include "tracepoint.h".
|
|
|
|
|
(quit_target): Delete. Contents moved ...
|
|
|
|
|
(quit_force): ... here. Wrap each stage of teardown in
|
|
|
|
|
TRY_CATCH. Call disconnect_tracing before detaching.
|
|
|
|
|
|
gdb/
2013-04-10 Hui Zhu <hui@codesourcery.com>
Yao Qi <yao@codesourcery.com>
* configure.ac: Check libbabeltrace is installed.
* config.in: Regenerate.
* configure: Regenerate.
* Makefile.in (LIBBABELTRACE): New.
(CLIBS): Add LIBBABELTRACE.
* ctf.c: Include "exec.h".
(CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
(CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
(ctf_save_metadata_header): Define new type aliases in
metadata.
(ctf_write_header): Define event type "tsv_def" and "tp_def"
in metadata. Start a new faked packet for trace status.
(ctf_write_status): Write trace status to CTF.
(ctf_write_uploaded_tsv): Write TSV to CTF.
(ctf_write_uploaded_tp): Write tracepoint definition to CTF.
(ctf_write_definition_end): End the faked packet.
(ctx, ctf_iter, trace_dirname): New.
(start_pos): New variable.
(ctf_destroy, ctf_open_dir, ctf_open): New.
(SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
macros.
(ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
(ctf_fetch_registers, ctf_xfer_partial): New.
(ctf_get_trace_state_variable_value): New.
(ctf_get_tpnum_from_frame_event): New.
(ctf_get_traceframe_address): New.
(ctf_trace_find, ctf_has_stack): New.
(ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
(ctf_get_trace_status, ctf_read_status): New.
(_initialize_ctf): New.
* tracepoint.c (get_tracepoint_number): New
(get_uploaded_tsv): Remove 'static'.
(struct traceframe_info, trace_regblock_size): Move it to ...
* tracepoint.h: ... here.
(get_tracepoint_number): Declare it.
(get_uploaded_tsv): Declare it.
* NEWS: Mention new configure option.
gdb/doc/
2013-04-10 Yao Qi <yao@codesourcery.com>
* gdb.texinfo (Trace Files): Add "target ctf".
gdb/testsuite/
2013-04-10 Yao Qi <yao@codesourcery.com>
* gdb.trace/actions.exp: Save trace data to CTF.
Change to ctf target if GDB supports, read CTF data in ctf
target, and check the actions of tracepoints.
* gdb.trace/while-stepping.exp: Likewise.
* gdb.trace/report.exp: Test GDB saves trace data to CTF
format and read CTF trace file if GDB supports.
* gdb.trace/tstatus.exp: Save trace data to CTF. If ctf
target is supported, change to ctf target, read trace data and
check output of command "tstatus".
* gdb.trace/tsv.exp: Save trace frame to CTF. If GDB supports,
read CTF data by target ctf and call check_tsv.
2013-04-10 09:42:57 +00:00
|
|
|
|
2013-04-10 Hui Zhu <hui@codesourcery.com>
|
|
|
|
|
Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* configure.ac: Check libbabeltrace is installed.
|
|
|
|
|
* config.in: Regenerate.
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
* Makefile.in (LIBBABELTRACE): New.
|
|
|
|
|
(CLIBS): Add LIBBABELTRACE.
|
|
|
|
|
* ctf.c: Include "exec.h".
|
|
|
|
|
(CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
|
|
|
|
|
(CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
|
|
|
|
|
(ctf_save_metadata_header): Define new type aliases in
|
|
|
|
|
metadata.
|
|
|
|
|
(ctf_write_header): Define event type "tsv_def" and "tp_def"
|
|
|
|
|
in metadata. Start a new faked packet for trace status.
|
|
|
|
|
(ctf_write_status): Write trace status to CTF.
|
|
|
|
|
(ctf_write_uploaded_tsv): Write TSV to CTF.
|
|
|
|
|
(ctf_write_uploaded_tp): Write tracepoint definition to CTF.
|
|
|
|
|
(ctf_write_definition_end): End the faked packet.
|
|
|
|
|
|
|
|
|
|
(ctx, ctf_iter, trace_dirname): New.
|
|
|
|
|
(start_pos): New variable.
|
|
|
|
|
(ctf_destroy, ctf_open_dir, ctf_open): New.
|
|
|
|
|
(SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
|
|
|
|
|
macros.
|
|
|
|
|
(ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
|
|
|
|
|
(ctf_fetch_registers, ctf_xfer_partial): New.
|
|
|
|
|
(ctf_get_trace_state_variable_value): New.
|
|
|
|
|
(ctf_get_tpnum_from_frame_event): New.
|
|
|
|
|
(ctf_get_traceframe_address): New.
|
|
|
|
|
(ctf_trace_find, ctf_has_stack): New.
|
|
|
|
|
(ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
|
|
|
|
|
(ctf_get_trace_status, ctf_read_status): New.
|
|
|
|
|
(_initialize_ctf): New.
|
|
|
|
|
* tracepoint.c (get_tracepoint_number): New
|
|
|
|
|
(get_uploaded_tsv): Remove 'static'.
|
|
|
|
|
(struct traceframe_info, trace_regblock_size): Move it to ...
|
|
|
|
|
* tracepoint.h: ... here.
|
|
|
|
|
(get_tracepoint_number): Declare it.
|
|
|
|
|
(get_uploaded_tsv): Declare it.
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention new configure option.
|
|
|
|
|
|
2013-04-10 04:35:21 +00:00
|
|
|
|
2013-04-10 Pedro Alves <palves@redhat.com>
|
|
|
|
|
Hui Zhu <hui@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* breakpoint.c (dprintf_re_set): New.
|
|
|
|
|
(initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
|
|
|
|
|
to dprintf_re_set.
|
|
|
|
|
|
2013-04-10 00:47:32 +00:00
|
|
|
|
2013-04-09 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
|
|
|
|
|
Remove solib-svr4.o from the list.
|
|
|
|
|
|
2013-04-09 23:30:50 +00:00
|
|
|
|
2013-04-09 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
|
|
|
|
|
Use gdb_assert_not_reached instead of invalid boolean expression.
|
|
|
|
|
|
2013-04-09 12:18:34 +00:00
|
|
|
|
2013-04-09 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* remote.c (unpush_and_perror): New function.
|
|
|
|
|
(readchar, remote_serial_write): Use it.
|
|
|
|
|
|
2013-04-09 08:04:32 +00:00
|
|
|
|
2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention new btrace RSP packets.
|
|
|
|
|
|
2013-04-09 02:17:17 +00:00
|
|
|
|
2013-04-08 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
|
|
|
|
|
long.
|
|
|
|
|
|
2013-04-08 20:20:46 +00:00
|
|
|
|
2013-04-08 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* maint.c (print_bfd_section_info): Print the section index.
|
|
|
|
|
* symmisc.c (dump_msymbols): Print the section index.
|
|
|
|
|
|
2013-04-08 20:18:11 +00:00
|
|
|
|
2013-04-08 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR symtab/8424:
|
|
|
|
|
* blockframe.c (find_pc_partial_function_gnu_ifunc): Check
|
|
|
|
|
SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
|
|
|
|
|
* breakpoint.c (resolve_sal_pc): Update.
|
|
|
|
|
* elfread.c (elf_gnu_ifunc_record_cache): Update.
|
|
|
|
|
* findvar.c (struct minsym_lookup_data) <objfile>: New field.
|
|
|
|
|
(minsym_lookup_iterator_cb): Use it.
|
|
|
|
|
(default_read_var_value): Update.
|
|
|
|
|
* hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
|
|
|
|
|
Update.
|
|
|
|
|
* infcmd.c (jump_command): Update.
|
|
|
|
|
* linespec.c (minsym_found): Update.
|
|
|
|
|
* maint.c (maintenance_translate_address): Update.
|
|
|
|
|
* minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
|
|
|
|
|
(prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
|
|
|
|
|
* parse.c (write_exp_msymbol): Update.
|
|
|
|
|
* printcmd.c (address_info): Update.
|
|
|
|
|
* psymtab.c (find_pc_sect_psymbol): Update.
|
|
|
|
|
(fixup_psymbol_section): Check SYMBOL_SECTION, not
|
|
|
|
|
SYMBOL_OBJ_SECTION.
|
|
|
|
|
(add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
|
|
|
|
|
Don't initialize SYMBOL_OBJ_SECTION.
|
|
|
|
|
* spu-tdep.c (spu_catch_start): Update.
|
|
|
|
|
* stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
|
|
|
|
|
* symmisc.c (dump_msymbols, print_symbol): Update.
|
|
|
|
|
* symtab.c (fixup_section): Don't set 'obj_section'. Change
|
|
|
|
|
how fallback section is computed.
|
|
|
|
|
(fixup_symbol_section): Update.
|
|
|
|
|
(find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
|
|
|
|
|
Update.
|
|
|
|
|
(allocate_symbol, initialize_symbol, allocate_template_symbol):
|
|
|
|
|
Initialize SYMBOL_SECTION.
|
|
|
|
|
* symtab.h (struct general_symbol_info) <section>: Update comment.
|
|
|
|
|
<obj_section>: Remove.
|
|
|
|
|
(SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
|
|
|
|
|
(SYMBOL_OBJFILE): New macro.
|
|
|
|
|
|
2013-04-08 20:13:22 +00:00
|
|
|
|
2013-04-08 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* coffread.c (record_minimal_symbol): Update.
|
|
|
|
|
* dbxread.c (record_minimal_symbol): Update.
|
|
|
|
|
* elfread.c (record_minimal_symbol): Update.
|
|
|
|
|
* machoread.c (macho_symtab_add_minsym): Update.
|
|
|
|
|
* mdebugread.c (record_minimal_symbol, parse_partial_symbols):
|
|
|
|
|
Update.
|
|
|
|
|
* minsyms.c (prim_record_minimal_symbol): Update.
|
|
|
|
|
(prim_record_minimal_symbol_full): Remove 'bfd_section'
|
|
|
|
|
argument.
|
|
|
|
|
(prim_record_minimal_symbol_and_info): Likewise.
|
|
|
|
|
* minsyms.h (prim_record_minimal_symbol_full)
|
|
|
|
|
(prim_record_minimal_symbol_and_info): Update.
|
|
|
|
|
* symtab.c (allocate_symbol, initialize_symbol)
|
|
|
|
|
(allocate_template_symbol): Initialize SYMBOL_SECTION.
|
|
|
|
|
* xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
|
|
|
|
|
Update.
|
|
|
|
|
|
2013-04-08 20:08:21 +00:00
|
|
|
|
2013-04-08 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR symtab/8423:
|
|
|
|
|
* solib-som.c (som_solib_section_offsets): Use BFD section
|
|
|
|
|
indices. Set offsets for all sections.
|
|
|
|
|
* somread.c (som_symtab_read): Compute BFD section for
|
|
|
|
|
symbol. Use prim_record_minimal_symbol_and_info.
|
|
|
|
|
(som_symfile_read): Fix comment.
|
|
|
|
|
(struct find_section_offset_arg): New.
|
|
|
|
|
(find_section_offset, set_section_index): New functions.
|
|
|
|
|
(som_symfile_offsets): Use set_section_index to compute
|
|
|
|
|
section indices.
|
|
|
|
|
|
2013-04-08 20:04:42 +00:00
|
|
|
|
2013-04-08 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* coffread.c (cs_to_section): Use gdb_bfd_section_index.
|
|
|
|
|
* elfread.c (record_minimal_symbol, elf_symtab_read): Use
|
|
|
|
|
gdb_bfd_section_index.
|
|
|
|
|
* gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
|
|
|
|
|
New functions.
|
|
|
|
|
* gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
|
|
|
|
|
Declare.
|
|
|
|
|
* machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
|
|
|
|
|
Update.
|
|
|
|
|
* objfiles.c (add_to_objfile_sections_full): New function.
|
|
|
|
|
(add_to_objfile_sections): Use it.
|
|
|
|
|
(build_section_table): Rewrite.
|
|
|
|
|
(objfile_relocate1): Use gdb_bfd_section_index. Update.
|
|
|
|
|
* objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
|
|
|
|
|
(struct objfile) <sections>: Update comment.
|
|
|
|
|
(ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
|
|
|
|
|
is NULL.
|
|
|
|
|
(ALL_OBJSECTIONS): Use it.
|
|
|
|
|
* solib-dsbt.c (dsbt_relocate_main_executable): Update.
|
|
|
|
|
* solib-frv.c (frv_relocate_main_executable): Update.
|
|
|
|
|
* solib-target.c (solib_target_relocate_section_addresses):
|
|
|
|
|
Use gdb_bfd_section_index.
|
|
|
|
|
* symfile.c (build_section_addr_info_from_section_table):
|
|
|
|
|
Use gdb_bfd_section_index.
|
|
|
|
|
(build_section_addr_info_from_bfd, place_section): Likewise.
|
|
|
|
|
* symtab.c (fixup_section): Update.
|
|
|
|
|
* xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
|
|
|
|
|
|
* minsyms.h (struct bound_minimal_symbol): New.
(lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
Remove objfile argument.
(lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
Return bound_minimal_symbol.
* minsyms.c (lookup_minimal_symbol_by_pc_1)
(lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
Return bound_minimal_symbol.
(in_gnu_ifunc_stub): Update.
(lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
Remove 'objfile_p' argument.
(lookup_solib_trampoline_symbol_by_pc): Update.
* ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
stack.c, symtab.c, tui/tui-disasm.c: Update.
2013-04-08 19:59:09 +00:00
|
|
|
|
2013-04-08 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* minsyms.h (struct bound_minimal_symbol): New.
|
|
|
|
|
(lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
|
|
|
|
|
Remove objfile argument.
|
|
|
|
|
(lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
|
|
|
|
|
Return bound_minimal_symbol.
|
|
|
|
|
* minsyms.c (lookup_minimal_symbol_by_pc_1)
|
|
|
|
|
(lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
|
|
|
|
|
Return bound_minimal_symbol.
|
|
|
|
|
(in_gnu_ifunc_stub): Update.
|
|
|
|
|
(lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
|
|
|
|
|
Remove 'objfile_p' argument.
|
|
|
|
|
(lookup_solib_trampoline_symbol_by_pc): Update.
|
|
|
|
|
* ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
|
|
|
|
|
arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
|
|
|
|
|
c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
|
|
|
|
|
glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
|
|
|
|
|
i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
|
|
|
|
|
linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
|
|
|
|
|
mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
|
|
|
|
|
ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
|
|
|
|
|
stack.c, symtab.c, tui/tui-disasm.c: Update.
|
|
|
|
|
|
2013-04-08 19:56:03 +00:00
|
|
|
|
2013-04-08 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
|
|
|
|
|
Use symbol's obstack, not an objfile.
|
|
|
|
|
* coffread.c (process_coff_symbol): Update.
|
|
|
|
|
* dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
|
|
|
|
|
* jv-lang.c (add_class_symbol): Update.
|
|
|
|
|
* mdebugread.c (new_symbol): Update.
|
|
|
|
|
* minsyms.c (prim_record_minimal_symbol_full)
|
|
|
|
|
(terminate_minimal_symbol_table): Update.
|
|
|
|
|
* psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
|
|
|
|
|
* stabsread.c (define_symbol, read_enum_type): Update.
|
|
|
|
|
* symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
|
|
|
|
|
Handle Ada specially.
|
|
|
|
|
(symbol_set_language): Add 'obstack' argument.
|
|
|
|
|
(symbol_set_names): Update.
|
|
|
|
|
(symbol_natural_name, symbol_demangled_name): Always use
|
|
|
|
|
ada_decode_symbol.
|
|
|
|
|
* symtab.h (struct general_symbol_info)
|
|
|
|
|
<language_specific::obstack>: New field.
|
|
|
|
|
<ada_mangled>: New field.
|
|
|
|
|
(SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
|
|
|
|
|
(symbol_set_language): Update.
|
|
|
|
|
|
2013-04-08 19:53:18 +00:00
|
|
|
|
2013-04-08 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
|
|
|
|
|
Take an obstack, not an objfile.
|
|
|
|
|
(symbol_set_names): Update.
|
|
|
|
|
* symtab.h (symbol_set_demangled_name): Update.
|
|
|
|
|
|
2013-04-08 19:48:30 +00:00
|
|
|
|
2013-04-08 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* coffread.c (process_coff_symbol, coff_read_enum_type): Call
|
|
|
|
|
allocate_symbol.
|
|
|
|
|
* dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
|
|
|
|
|
(read_func_scope): Call allocate_template_symbol.
|
|
|
|
|
(new_symbol_full): Call allocate_symbol.
|
|
|
|
|
* jit.c (finalize_symtab): Call allocate_symbol.
|
|
|
|
|
* jv-lang.c (add_class_symbol): Call allocate_symbol.
|
|
|
|
|
* mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
|
|
|
|
|
* stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
|
|
|
|
|
(common_block_end): Call allocate_symbol.
|
|
|
|
|
* symtab.c (allocate_symbol, initialize_symbol)
|
|
|
|
|
(allocate_template_symbol): New functions.
|
|
|
|
|
* symtab.c (allocate_symbol, initialize_symbol)
|
|
|
|
|
(allocate_template_symbol): Declare.
|
|
|
|
|
* xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
|
|
|
|
|
|
2013-04-08 14:09:30 +00:00
|
|
|
|
2013-04-08 Pedro Alves <palves@redhat.com>
|
|
|
|
|
Keith Seitz <keiths@redhat.com>
|
|
|
|
|
|
|
|
|
|
* breakpoint.c (create_breakpoint): Rename
|
|
|
|
|
"parse_condition_and_thread" parameter to "parse_arg". Update
|
|
|
|
|
describing comment. If !PARSE_ARG, then error out if ARG is not
|
|
|
|
|
the empty string after extracting the location.
|
|
|
|
|
* breakpoint.h (create_breakpoint): Rename
|
|
|
|
|
"parse_condition_and_thread" parameter to "parse_arg".
|
|
|
|
|
|
2013-04-08 14:03:56 +00:00
|
|
|
|
2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
|
|
|
|
|
|
|
|
|
|
* solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
|
|
|
|
|
|
2013-04-07 10:23:34 +00:00
|
|
|
|
2013-04-07 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* remote.c (remote_trace_find): Change type of parameters 'addr1'
|
|
|
|
|
and 'addr2' to CORE_ADDR.
|
|
|
|
|
* target.c (update_current_target): Update.
|
|
|
|
|
* target.h (struct target_ops) <to_trace_find>: Change parameter
|
|
|
|
|
type to CORE_ADDR.
|
|
|
|
|
* tracepoint.c (tfind_1): Change type of parameters 'addr1' and
|
|
|
|
|
'addr2' to CORE_ADDR.
|
|
|
|
|
(tfile_trace_find): Likewise.
|
|
|
|
|
(tfile_get_traceframe_address): Change return type to CORE_ADDR.
|
|
|
|
|
Change local variable 'addr' to type CORE_ADDR.
|
|
|
|
|
* tracepoint.h (tfind_1): Update declaration.
|
|
|
|
|
|
2013-04-06 06:52:06 +00:00
|
|
|
|
2013-04-06 Eli Zaretskii <eliz@gnu.org>
|
|
|
|
|
|
|
|
|
|
* windows-nat.c (windows_get_absolute_argv0): Move from here...
|
|
|
|
|
* mingw-hdep.c (windows_get_absolute_argv0): ...to here.
|
|
|
|
|
Include main.h.
|
|
|
|
|
|
|
|
|
|
* windows-nat.h (windows_get_absolute_argv0): Move prototype from
|
|
|
|
|
here...
|
|
|
|
|
* main.h (windows_get_absolute_argv0): ...to here.
|
|
|
|
|
|
2013-04-05 21:48:25 +00:00
|
|
|
|
2013-04-05 Doug Evans <dje@google.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
|
|
|
|
|
(read_cutu_die_from_dwo): Add comments.
|
|
|
|
|
(read_structure_type): Update comment.
|
|
|
|
|
(read_enumeration_type, read_namespace_type): Update comment.
|
|
|
|
|
(read_die_type, get_die_type_at_offset, get_die_type): Update comment.
|
|
|
|
|
|
gdb/
Convert man pages to texinfo, new gdbinit.5 texinfo page.
* Makefile.in (gdb.z): Remove.
(install-only): Remove $(man1dir) and gdb.1 installation.
* gdb.1: Remove.
gdb/gdbserver/
Convert man pages to texinfo, new gdbinit.5 texinfo page.
* Makefile.in (install-only): Remove $(man1dir) and gdbserver.1
installation.
* gdbserver.1: Remove.
gdb/doc/
Convert man pages to texinfo, new gdbinit.5 texinfo page.
* Makefile.in (mandir, man1dir, man5dir, SYSTEM_GDBINIT, MANCONF,
(TEXI2POD, POD2MAN1, POD2MAN5, MAN1S, MAN5S, MANS, man): New.
(diststuff): Add man.
(install-man, install-man1, install-man5, uninstall-man, uninstall-man1)
(uninstall-man5): New.
(STAGESTUFF): Add *.1 and *.5.
(GDBvn.texi): Add SYSTEM_GDBINIT.
(gdb.1, gdbserver.1, gdbinit.5): New.
(maintainer-clean realclean): Add $(MANS).
(install): Add install-man.
(uninstall): Add uninstall-man.
* gdb.texinfo (@include gdb-cfg.texi): Wrap it by @c man begin INCLUDE.
(@copying): Wrap it by @c man begin COPYRIGHT.
(Top): Add Man Pages.
(Man Pages, gdb man, gdbserver man, gdbinit man): New.
2013-04-05 20:01:33 +00:00
|
|
|
|
2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
Convert man pages to texinfo, new gdbinit.5 texinfo page.
|
|
|
|
|
* Makefile.in (gdb.z): Remove.
|
|
|
|
|
(install-only): Remove $(man1dir) and gdb.1 installation.
|
|
|
|
|
* gdb.1: Remove.
|
|
|
|
|
|
2013-04-05 19:17:15 +00:00
|
|
|
|
2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
Fix compatibility with Linux kernel 3.8.3.
|
|
|
|
|
* linux-tdep.c (linux_find_memory_regions_full): Move variable number
|
|
|
|
|
to more inner block. Remove parsing of NUMBER from outer block.
|
|
|
|
|
Parse NUMBER only if KEYWORD has been identified.
|
|
|
|
|
|
2013-04-05 19:14:44 +00:00
|
|
|
|
2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
Fix variable name shadowing.
|
|
|
|
|
* linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
|
|
|
|
|
filename to mapsfilename and update its uses.
|
|
|
|
|
|
2013-04-05 13:24:24 +00:00
|
|
|
|
2013-04-05 Eli Zaretskii <eliz@gnu.org>
|
|
|
|
|
|
|
|
|
|
* Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
|
|
|
|
|
empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
|
|
|
|
|
and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
|
|
|
|
|
details of the problem.
|
|
|
|
|
|
tracepoint->step_count fixes
If a tracepoint's actions list includes a while-stepping action, and
then the actions are changed to a list without any while-stepping
action, the tracepoint's step_count will be left with a stale value.
For example:
(gdb) trace subr
Tracepoint 1 at 0x4004d9: file ../../../src/gdb/testsuite//actions-changed.c, line 31.
(gdb) actions
Enter actions for tracepoint 1, one per line.
End with a line saying just "end".
>collect $reg
>end
(gdb) set debug remote 1
(gdb) tstart
Sending packet: $QTinit#59...Packet received: OK
Sending packet: $QTDP:1:00000000004004d9:E:0:0-#a3...Packet received: OK
Sending packet: $QTDP:-1:00000000004004d9:R03FFFFFFFFFFFFFFFFFF#2b...Packet received: OK
(gdb) tstop
Sending packet: $QTStop#4b...Packet received: OK
Sending packet: $QTNotes:#e8...Packet received: OK
(gdb) actions
Enter actions for tracepoint 1, one per line.
End with a line saying just "end".
>collect $reg
>while-stepping 1
>collect $reg
>end
>end
(gdb) tstart
Sending packet: $QTinit#59...Packet received: OK
Sending packet: $QTDP:1:00000000004004d9:E:1:0-#a4...Packet received: OK
Sending packet: $QTDP:-1:00000000004004d9:R03FFFFFFFFFFFFFFFFFF-#58...Packet received: OK
Sending packet: $QTDP:-1:00000000004004d9:SR03FFFFFFFFFFFFFFFFFF#7e...Packet received: OK
(gdb) tstop
Sending packet: $QTStop#4b...Packet received: OK
Sending packet: $QTNotes:#e8...Packet received: OK
(gdb) actions
Enter actions for tracepoint 1, one per line.
End with a line saying just "end".
>collect $regs
>end
(gdb) tstart
Sending packet: $QTinit#59...Packet received: OK
Sending packet: $QTDP:1:00000000004004d9:E:1:0-#a4...Packet received: OK
Sending packet: $QTDP:-1:00000000004004d9:R03FFFFFFFFFFFFFFFFFF#2b...Packet received: OK
The last "$QTDP:1:00000000004004d9:E:1:0-#a4" should be "$QTDP:1:00000000004004d9:E:0:0-#a3".
In pseudo-diff:
-$QTDP:1:00000000004004d9:E:1:0-#a4
+$QTDP:1:00000000004004d9:E:0:0-#a3
A related issue is that the "commands" command actually supports
setting commands to a range of breakpoints/tracepoints at once. But,
hacking "maint info breakpoints" to print t->step_count, reveals:
(gdb) trace main
Tracepoint 5 at 0x45a2ab: file ../../src/gdb/gdb.c, line 29.
(gdb) trace main
Note: breakpoint 5 also set at pc 0x45a2ab.
Tracepoint 6 at 0x45a2ab: file ../../src/gdb/gdb.c, line 29.
(gdb) commands 5-6
Type commands for breakpoint(s) 5-6, one per line.
End with a line saying just "end".
> while-stepping 5
>end
> end
(gdb) maint info breakpoints 5
Num Type Disp Enb Address What
5 tracepoint keep y 0x000000000045a2ab in main at ../../src/gdb/gdb.c:29 inf 1
step_count=5
^^^^^^^^^^^^
while-stepping 5
end
not installed on target
(gdb) maint info breakpoints 6
Num Type Disp Enb Address What
6 tracepoint keep y 0x000000000045a2ab in main at ../../src/gdb/gdb.c:29 inf 1
step_count=0
^^^^^^^^^^^^
while-stepping 5
end
not installed on target
(gdb)
that tracepoint 6 doesn't end up with the correct step_count.
The issue is that here:
static void
do_map_commands_command (struct breakpoint *b, void *data)
{
struct commands_info *info = data;
if (info->cmd == NULL)
{
struct command_line *l;
if (info->control != NULL)
l = copy_command_lines (info->control->body_list[0]);
else
{
struct cleanup *old_chain;
char *str;
str = xstrprintf (_("Type commands for breakpoint(s) "
"%s, one per line."),
info->arg);
old_chain = make_cleanup (xfree, str);
l = read_command_lines (str,
info->from_tty, 1,
(is_tracepoint (b)
? check_tracepoint_command : 0),
b);
do_cleanups (old_chain);
}
info->cmd = alloc_counted_command_line (l);
}
validate_actionline is never called for tracepoints other than the
first (the copy_command_lines path). Right below, we have:
/* If a breakpoint was on the list more than once, we don't need to
do anything. */
if (b->commands != info->cmd)
{
validate_commands_for_breakpoint (b, info->cmd->commands);
incref_counted_command_line (info->cmd);
decref_counted_command_line (&b->commands);
b->commands = info->cmd;
observer_notify_breakpoint_modified (b);
}
And validate_commands_for_breakpoint looks like the right place to put
a call; if we reset step_count there too, we have a nice central fix
for the first issue as well, because trace_actions_command calls
breakpoint_set_commands that also calls
validate_commands_for_breakpoint.
We end up calling validate_actionline twice for the first tracepoint,
since read_command_lines calls it too, through
check_tracepoint_command, but that should be harmless.
2013-04-04 Pedro Alves <palves@redhat.com>
Hui Zhu <hui@codesourcery.com>
* breakpoint.c (validate_commands_for_breakpoint): If validating a
tracepoint, reset its STEP_COUNT and call validate_actionline.
2013-04-04 Stan Shebs <stan@codesourcery.com>
Pedro Alves <palves@redhat.com>
* gdb.trace/Makefile.in (PROGS): Add actions-changed.
* gdb.trace/actions-changed.c: New file.
* gdb.trace/actions-changed.exp: New file.
* lib/trace-support.exp (gdb_trace_setactions): Rename to ...
(gdb_trace_setactions_command): ... this. Add "actions_command"
parameter, and handle it.
(gdb_trace_setactions, gdb_trace_setcommands): New procedures.
2013-04-04 19:22:38 +00:00
|
|
|
|
2013-04-04 Pedro Alves <palves@redhat.com>
|
|
|
|
|
Hui Zhu <hui@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* breakpoint.c (validate_commands_for_breakpoint): If validating a
|
|
|
|
|
tracepoint, reset its STEP_COUNT and call validate_actionline.
|
|
|
|
|
|
2013-04-03 18:48:54 +00:00
|
|
|
|
2013-04-03 Doug Evans <dje@google.com>
|
|
|
|
|
|
2013-04-03 19:45:00 +00:00
|
|
|
|
* dwarf2read.c (read_die_and_siblings_1): Renamed from
|
|
|
|
|
read_die_and_siblings.
|
|
|
|
|
(read_die_and_siblings): New function.
|
|
|
|
|
(read_cutu_die_from_dwo): Dump die if requested.
|
|
|
|
|
(read_die_and_children): Call read_full_die_1 and
|
|
|
|
|
read_die_and_siblings_1.
|
|
|
|
|
(read_full_die): Dump die if requested.
|
|
|
|
|
|
|
|
|
|
* dwarf2read.c (read_comp_units_from_section): Add debugging printf.
|
|
|
|
|
|
2013-04-03 19:11:01 +00:00
|
|
|
|
* dwarf2read.c (struct dwo_file): New member comp_dir.
|
|
|
|
|
Rename member name to dwo_name. All uses updated.
|
|
|
|
|
(hash_dwo_file): Include comp_dir in computation.
|
|
|
|
|
(eq_dwo_file): Ditto.
|
|
|
|
|
(lookup_dwo_file_slot): New arg comp_dir. All callers updated.
|
|
|
|
|
(create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
|
|
|
|
|
|
2013-04-03 18:48:54 +00:00
|
|
|
|
* psymtab.c (read_psymtabs_with_fullname): Don't call
|
|
|
|
|
psymtab_to_fullname if the basenames are different.
|
|
|
|
|
|
2013-04-03 18:28:49 +00:00
|
|
|
|
2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
|
|
|
|
|
New entry about "fullname" presence.
|
|
|
|
|
|
2013-04-03 18:04:33 +00:00
|
|
|
|
2013-04-03 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention x86_64/Cygwin as new native configuration.
|
|
|
|
|
|
2013-04-02 21:18:40 +00:00
|
|
|
|
2013-04-02 Doug Evans <dje@google.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2read.c (read_structure_type): Fix typo in comment.
|
|
|
|
|
|
2013-04-02 17:52:08 +00:00
|
|
|
|
2013-04-02 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention "set/show debug aarch64", "set/show debug
|
|
|
|
|
coff-pe-read" and "set/show debug mach-o".
|
|
|
|
|
|
2013-04-02 17:48:49 +00:00
|
|
|
|
2013-04-02 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention "set/show remote trace-buffer-size-packet".
|
|
|
|
|
|
2013-04-02 17:44:27 +00:00
|
|
|
|
2013-04-02 Eli Zaretskii <eliz@gnu.org>
|
|
|
|
|
|
|
|
|
|
* Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
|
|
|
|
|
gdb_string.h is now in common/.
|
|
|
|
|
|
2013-04-02 15:19:07 +00:00
|
|
|
|
2013-04-02 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Move "set debug notification" and "set trace-buffer-size"
|
|
|
|
|
under "New options".
|
|
|
|
|
|
2013-04-02 14:09:08 +00:00
|
|
|
|
2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
Revert this patch:
|
|
|
|
|
PR gdb/15275
|
|
|
|
|
* remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
|
|
|
|
|
|
unpush the remote target if serial_write fails.
PR gdb/15275 notes that when debugging with a remote connection over a
serial link and the link is disconnected, say by disconnecting USB
serial port, the GDB quit command no longer works:
(gdb)
tar ext /dev/ttyACM0
&"tar ext /dev/ttyACM0\n"
~"Remote debugging using /dev/ttyACM0\n"
^done
(gdb)
set debug remote 1
&"set debug remote 1\n"
^done
(gdb)
quit
&"quit\n"
&"Sending packet: $qTStatus#49..."
&"putpkt: write failed: Input/output error.\n"
^error,msg="putpkt: write failed: Input/output error."
(gdb)
(gdb)
quit
&"quit\n"
&"Sending packet: $qTStatus#49..."
&"putpkt: write failed: Input/output error.\n"
^error,msg="putpkt: write failed: Input/output error."
This is not reproducible with TCP connections, as with that, sending
doesn't error out, but instead the error is detected on the subsequent
readchar. When that read fails, we unpush the remote target, and
throw TARGET_CLOSE_ERROR. To address PR gdb/15275, instead of
catching the error in remote_get_trace_status as presently done (which
leaves this same issue latent for another packet to trip on), or of
making ser-unix.c fake success too on failed writes, so we'd get to
readchar detecting the error on serial ports too, better let the error
propagate out of serial_write, and catch it at the remote.c level,
throwing away the target if writing fails too, instead of delaying
that until the next read.
gdb/
2013-04-02 Pedro Alves <palves@redhat.com>
PR gdb/15275
* remote.c (send_interrupt_sequence): Use remote_serial_write.
(remote_serial_write): New function.
(putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
2013-04-02 13:51:07 +00:00
|
|
|
|
2013-04-02 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR gdb/15275
|
|
|
|
|
|
|
|
|
|
* remote.c (send_interrupt_sequence): Use remote_serial_write.
|
|
|
|
|
(remote_serial_write): New function.
|
|
|
|
|
(putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
|
|
|
|
|
|
2013-04-02 02:49:55 +00:00
|
|
|
|
2013-04-01 Jiong Wang <jiwang@tilera.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention TILE-Gx in "New native configurations" and
|
|
|
|
|
"New targets" sections.
|
|
|
|
|
|
2013-04-01 16:42:15 +00:00
|
|
|
|
2013-04-01 Doug Evans <dje@google.com>
|
|
|
|
|
|
2013-04-01 23:17:40 +00:00
|
|
|
|
* dwarf2read.c (lookup_signatured_type_at_offset): Delete.
|
|
|
|
|
(process_enumeration_scope): Simplify.
|
|
|
|
|
|
2013-04-01 22:36:08 +00:00
|
|
|
|
* dwarf2read.c (struct dwarf2_per_cu_data): Move member
|
|
|
|
|
type_unit_group ...
|
|
|
|
|
(struct signatured_type): ... to here.
|
|
|
|
|
(sig_type_ptr): New typedef.
|
|
|
|
|
(type_unit_group): Delete member 't.first_cu'. Move member 'tus'
|
|
|
|
|
out of union 't'. All uses updated.
|
|
|
|
|
(dw2_get_file_names_reader): Assert not called for a type unit.
|
|
|
|
|
(dw2_get_file_names): Assert not called for a type unit or type
|
|
|
|
|
unit group.
|
|
|
|
|
(build_type_psymtabs_reader): Assert called for a type unit.
|
|
|
|
|
(build_type_psymtab_dependencies): Assert called for a type unit group.
|
|
|
|
|
|
2013-04-01 16:42:15 +00:00
|
|
|
|
* dwarf2read.c (free_dwo_file): Add comment.
|
|
|
|
|
(dwarf2_per_objfile_free): Unref dwp bfd.
|
|
|
|
|
|
2013-04-01 20:11:19 +00:00
|
|
|
|
2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
|
Fix coff-pe-read.c to compile with Wunused.
* coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
(add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
(read_pe_exported_syms): Remove unused 'exportix'.
(pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
Reference: http://sourceware.org/ml/gdb-patches/2013-03/msg01081.html
2013-04-01 12:53:01 +00:00
|
|
|
|
|
|
|
|
|
* coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
|
|
|
|
|
(add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
|
|
|
|
|
(read_pe_exported_syms): Remove unused 'exportix'.
|
|
|
|
|
(pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
|
|
|
|
|
'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
|
|
|
|
|
'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
|
|
|
|
|
|
2013-04-01 12:48:03 +00:00
|
|
|
|
2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
|
|
|
|
|
|
|
|
|
|
* breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
|
|
|
|
|
(print_it_watchpoint): Remove unused 'bl'.
|
|
|
|
|
(say_where): Remove unused 'uiout'.
|
|
|
|
|
(bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
|
|
|
|
|
(bkpt_breakpoint_hit): Remove unused 'b'.
|
|
|
|
|
(internal_bkpt_print_it): Remove unused 'uiout'.
|
|
|
|
|
* buildsym.c (augment_type_symtab): Remove unused 'i'.
|
|
|
|
|
|
2013-04-01 04:05:35 +00:00
|
|
|
|
2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
|
|
|
|
|
|
|
|
|
|
* ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
|
|
|
|
|
(ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
|
|
|
|
|
|
2013-03-29 16:38:52 +00:00
|
|
|
|
2013-03-29 Doug Evans <dje@google.com>
|
|
|
|
|
|
2013-03-29 21:47:51 +00:00
|
|
|
|
* dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
|
|
|
|
|
Delete arg is_dwp. All callers updated.
|
|
|
|
|
(open_dwp_file): New function.
|
|
|
|
|
(open_and_init_dwp_file): Call it.
|
|
|
|
|
(get_dwp_file): New function.
|
|
|
|
|
(lookup_dwo_cutu): Call it.
|
|
|
|
|
|
2013-03-29 21:42:04 +00:00
|
|
|
|
* dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
|
|
|
|
|
unnecessary, cleanup.
|
|
|
|
|
|
2013-03-29 18:46:07 +00:00
|
|
|
|
* dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
|
|
|
|
|
|
2013-03-29 17:48:48 +00:00
|
|
|
|
* dwarf2read.c (read_cutu_die_from_dwo): New function.
|
|
|
|
|
(lookup_dwo_unit): New function.
|
|
|
|
|
(init_cutu_and_read_dies): Move DWO handling to new functions.
|
|
|
|
|
|
2013-03-29 16:55:57 +00:00
|
|
|
|
* dwarf2read.c (struct signatured_type): Tweak comment.
|
|
|
|
|
(struct dwo_unit): Tweak comment.
|
|
|
|
|
(create_debug_types_hash_table): Tweak comment. Reformat long line.
|
|
|
|
|
(create_dwo_debug_info_hash_table): Tweak comment.
|
|
|
|
|
(dwarf2_per_cu_offset_and_type): Tweak comment.
|
|
|
|
|
|
2013-03-29 16:38:52 +00:00
|
|
|
|
* dwarf2read.c (lookup_signatured_type): Remove complaint about
|
|
|
|
|
missing .debug_types section.
|
|
|
|
|
|
2013-03-29 15:21:23 +00:00
|
|
|
|
2013-03-29 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* corelow.c: Include "completer.h".
|
|
|
|
|
(_initialize_corelow): Call add_target_with_completer with
|
|
|
|
|
argument 'filename_completer'.
|
|
|
|
|
* tracepoint.c: Likewise.
|
|
|
|
|
* exec.c (_initialize_exec): Likewise.
|
|
|
|
|
* target.c (add_target): Rename to ...
|
|
|
|
|
(add_target_with_completer): ... this. Call set_cmd_completer
|
|
|
|
|
if parameter completer is not NULL.
|
|
|
|
|
(add_target): New.
|
|
|
|
|
* target.h: Include "command.h".
|
|
|
|
|
(add_target_with_completer): Declare it.
|
|
|
|
|
|
2013-03-29 02:04:15 +00:00
|
|
|
|
2013-03-28 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* coffread.c (is_import_fixup_symbol): New function.
|
|
|
|
|
(record_minimal_symbol): Use is_import_fixup_symbol to
|
|
|
|
|
detect import fixup symbols, and discard them.
|
|
|
|
|
|
2013-03-28 22:59:47 +00:00
|
|
|
|
2013-03-28 Doug Evans <dje@google.com>
|
|
|
|
|
|
2013-03-29 00:35:20 +00:00
|
|
|
|
* dwarf2read.c (create_debug_types_hash_table): Don't allocate the
|
|
|
|
|
types hash table until we know we need it.
|
|
|
|
|
|
2013-03-29 00:18:32 +00:00
|
|
|
|
* dwarf2read.c (create_addrmap_from_index): Complain about bad CU
|
|
|
|
|
index numbers.
|
|
|
|
|
|
2013-03-29 00:11:10 +00:00
|
|
|
|
* dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
|
|
|
|
|
All callers updated.
|
|
|
|
|
(dw2_print_stats): Print #read CUs too.
|
|
|
|
|
(dump_die_shallow): Print signatured types better.
|
|
|
|
|
|
2013-03-28 22:59:47 +00:00
|
|
|
|
* dwarf2read.c (struct dwarf2_per_cu_data): Rename member
|
|
|
|
|
info_or_types_section to section. All uses updated.
|
|
|
|
|
(struct dwo_unit): Ditto.
|
|
|
|
|
|
2013-03-28 21:58:03 +00:00
|
|
|
|
2013-03-28 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* NEWS (New options): New section.
|
|
|
|
|
(New options): Mention set/show remote trace-status-packet.
|
|
|
|
|
* remote.c (PACKET_qTStatus): New enumeration value.
|
|
|
|
|
(remote_get_trace_status): Skip sending qTStatus if the packet is
|
|
|
|
|
disabled. Use packet_ok.
|
|
|
|
|
(_initialize_remote): Register a configuration command for
|
|
|
|
|
qTStatus packet.
|
|
|
|
|
|
2013-03-28 16:39:09 +00:00
|
|
|
|
2013-03-28 Doug Evans <dje@google.com>
|
|
|
|
|
|
2013-03-28 18:17:38 +00:00
|
|
|
|
* symfile.c (find_separate_debug_file): Add comment.
|
|
|
|
|
(terminate_after_last_dir_separator): Tweak comment.
|
|
|
|
|
|
2013-03-28 17:41:03 +00:00
|
|
|
|
* dwarf2read.c (create_partial_symtab): Add forward decl.
|
|
|
|
|
(create_partial_symtab): Move to be closer to other psymtab functions.
|
|
|
|
|
(process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
|
|
|
|
|
|
2013-03-28 17:35:01 +00:00
|
|
|
|
* dwarf2read.c (dwarf2_physname): Move declaration to better spot.
|
|
|
|
|
(compute_symtab_includes): Remove unnecessary forward declaration.
|
|
|
|
|
(die_needs_namespace): Add comment marking group of functions for
|
|
|
|
|
dwarf2 name computation.
|
|
|
|
|
|
2013-03-28 17:25:47 +00:00
|
|
|
|
* typeprint.c (_initialize_typeprint): Improve type help text.
|
|
|
|
|
|
2013-03-28 16:39:09 +00:00
|
|
|
|
* python/python.c (finish_python_initialization): Provide suggestion
|
|
|
|
|
for how to tell gdb to find its python files.
|
|
|
|
|
|
Fix PR gdb/15294: list with unlimited listsize broken
Currently, "set listsize -1" is supposed to mean "unlimited" source
lines, but, alas, it doesn't actually work:
(gdb) set listsize -1
(gdb) show listsize
Number of source lines gdb will list by default is unlimited.
(gdb) list 1
(gdb) list 1
(gdb) list 1
(gdb) set listsize 10
(gdb) list 1
1 /* Main function for CLI gdb.
2 Copyright (C) 2002-2013 Free Software Foundation, Inc.
3
4 This file is part of GDB.
5
6 This program is free software; you can redistribute it and/or modify
7 it under the terms of the GNU General Public License as published by
8 the Free Software Foundation; either version 3 of the License, or
9 (at your option) any later version.
10
Before this patch:
http://sourceware.org/ml/gdb-patches/2012-08/msg00367.html
was applied, the "set listsize" command was a var_integer command, and
"unlimited" was set with 0. Internally, var_integer maps 0 to INT_MAX
case var_integer:
{
...
if (val == 0 && c->var_type == var_integer)
val = INT_MAX;
The change in that patch to zuinteger_unlimited command, meant that -1
is left as -1 in the command's control variable (lines_to_list), and
the code in source.c isn't expecting that -- it only expects positive
numbers.
I previously suggested fixing the code and keeping the new behavior,
but I found that "set listsize 0" is currently used in the wild, and
we do have a bunch of other commands where "0" means unlimited, so I'm
thinking that changing this command alone in isolation is not a good
idea.
So I now strongly prefer reverting back the behavior in 7.6 to the
same behavior the command has had since 2006 (0==unlimited, -1=error).
Before that, set listsize -1 would be accepted as unlimited as well.
After 7.6 is out, in mainline, we can get back to reconsidering
changing this command's behavior, if there's a real need for being
able to suppress output. For now, let's play it safe.
The "list line 1 with unlimited listsize" test in list.exp was
originally written years and years ago expecting 0 to mean "no
output", but GDB never actually worked that way, even when the tests
were written, so the tests had been xfailed then. This patch now
adjusts the test to the new behavior, so that the test actually
passes, and the xfail is removed.
gdb/
2013-03-28 Pedro Alves <palves@redhat.com>
PR gdb/15294
* source.c (_initialize_source): Change back "set listsize" to an
integer command.
gdb/testsuite/
2013-03-28 Pedro Alves <palves@redhat.com>
PR gdb/15294
* gdb.base/list.exp (set_listsize): Adjust to accept $arg == 0 to
mean unlimited instead of $arg < 0.
(test_listsize): Remove "listsize of 0 suppresses output" test.
Test that "set listsize 0" ends up with an unlimited listsize.
gdb/doc/
2013-03-28 Pedro Alves <palves@redhat.com>
PR gdb/15294
* gdb.texinfo (List) <set listsize>: Adjust to document that
listsize 0 means no limit, and remove mention of -1.
2013-03-28 11:57:47 +00:00
|
|
|
|
2013-03-28 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR gdb/15294
|
|
|
|
|
|
|
|
|
|
* source.c (_initialize_source): Change back "set listsize" to an
|
|
|
|
|
integer command.
|
|
|
|
|
|
2013-03-27 18:20:10 +00:00
|
|
|
|
2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
|
|
|
|
|
|
|
|
|
|
PR gdb/15275
|
|
|
|
|
* remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
|
|
|
|
|
|
Forbid "set history size (INT_MAX..UINT_MAX)"
The whole readline interface is signed, and works with the 0..INT_MAX
range.
We don't allow setting the size to UINT_MAX directly. The documented
user visible interface is "use 0 for unlimited". The UINT_MAX
representation is an implementation detail we could change, e.g., by
keeping a separate flag for "unlimited", which is actually what the
readline interface does (stifled vs non stifled). Generically
speaking, exposing this detail to clients of the interface may make
our lives complicated when we find the need to extend the range of
some command in the future, and it's better if users
(frontends/scripts) aren't relying on anything but what we tell them
to use for "unlimited". Making values other than 0 error out is the
way to prevent users from using those ranges inappropriately. Quite
related, note:
(gdb) set history size 0xffffffff
integer 4294967295 out of range
But,
(gdb) set history size 0xfffffffe
(gdb) show history size
The size of the command history is unlimited.
(gdb) set history size 0x100000000
integer 4294967296 out of range
If values over INT_MAX are accepted as unlimited, then there's no good
argument for only accepting [INT_MAX..UINT_MAX) as valid "unlimited"
magic numbers, while not accepting [UINT_MAX..inf).
Making the setting's control variable of different type (unsigned int)
of the rest of the related code (int) adds the need to recall that one
variable among all these is unsigned, and that one need to think about
whether these comparisons are signed or unsigned, along with the
promotion/conversion rules. Since this is an easy to forget detail,
this patch renames the variable to at least make it more obvious that
this variable is not one of GNU history's public int variables, which
are all signed. We don't actually need the only code that presently
is affected by this, though, the code that is computing the current
history's length. We can just use GNU history's history_length
instead:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Variable: int history_length
The number of entries currently stored in the history list.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/* Return the history entry which is logically at OFFSET in the history array.
OFFSET is relative to history_base. */
HIST_ENTRY *
history_get (offset)
int offset;
{
int local_index;
local_index = offset - history_base;
return (local_index >= history_length || local_index < 0 || the_history == 0)
? (HIST_ENTRY *)NULL
: the_history[local_index];
}
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
At the time this code was added (gdb 4.13 ~1994), 'history_length' was
extern, but not documented in readline's GNU history documents, so I
guess it wasn't considered public then and the loop was the
workaround.
One of the warts of GDB choosing 0 to mean unlimited is that "set
history size 0" behaves differently from 'HISTSIZE=0 gdb'. The latter
leaves GDB with no history, while the former means "unlimited"...
$ HISTSIZE=0 ./gdb
...
(gdb) show history size
The size of the command history is 0.
We shouldn't really change what HISTSIZE=0 means, as bash, etc. also
handle 0 as real zero, and zero it's what really makes sense.
gdb/
2013-03-27 Pedro Alves <palves@redhat.com>
* top.c (history_size): Rename to ...
(history_size_setshow_var): ... this. Add comment.
(show_commands): Use readline's 'history_length' instead of
computing the history length by calling history_get in a loop.
(set_history_size_command): Error out for sizes over INT_MAX.
Restore previous history size on invalid size.
(init_history): If HISTSIZE is negative, leave the history size as
zero. Add comments.
(init_main): Adjust.
2013-03-27 12:14:09 +00:00
|
|
|
|
2013-03-27 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* top.c (history_size): Rename to ...
|
|
|
|
|
(history_size_setshow_var): ... this. Add comment.
|
|
|
|
|
(show_commands): Use readline's 'history_length' instead of
|
|
|
|
|
computing the history length by calling history_get in a loop.
|
|
|
|
|
(set_history_size_command): Error out for sizes over INT_MAX.
|
|
|
|
|
Restore previous history size on invalid size.
|
|
|
|
|
(init_history): If HISTSIZE is negative, leave the history size as
|
|
|
|
|
zero. Add comments.
|
|
|
|
|
(init_main): Adjust.
|
|
|
|
|
|
2013-03-27 09:47:41 +00:00
|
|
|
|
2013-03-27 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
|
|
|
|
|
coff_pe_read" command to "set debug coff-pe-read".
|
|
|
|
|
|
2013-03-27 09:42:47 +00:00
|
|
|
|
2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
|
|
|
|
|
|
|
|
|
|
* record.c (command_size_to_target_size): Fix size comparison.
|
|
|
|
|
Change parameter type from pointer to integer to integer.
|
|
|
|
|
Update all users.
|
|
|
|
|
|
2013-03-27 08:57:09 +00:00
|
|
|
|
2013-03-27 Pierre Muller <muller@sourceware.org>
|
|
|
|
|
|
|
|
|
|
* windows-nat.c (handle_output_debug_string): Avoid typecast
|
|
|
|
|
from integer of different size warning.
|
|
|
|
|
|
2013-03-26 23:40:08 +00:00
|
|
|
|
2013-03-26 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* windows-nat.c (handle_output_debug_string): Add empty line
|
|
|
|
|
after local block variable definition.
|
|
|
|
|
|
2013-03-26 20:29:47 +00:00
|
|
|
|
2013-03-26 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
|
|
|
|
|
(net_open): Make 'polls' local unsigned.
|
|
|
|
|
|
2013-03-26 20:19:31 +00:00
|
|
|
|
2013-03-26 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* remote.c (_initialize_remote): Make "set remoteaddresssize"
|
|
|
|
|
a zuinteger command instead of uinteger.
|
|
|
|
|
|
record-full.c: Remove always true checks.
The "set record full insn-number-max" command is an uinteger command.
If the variable that holds the maximum count of logged instructions is
unsigned, it's better if the variable that holds the current number of
logged instructions is also unsigned. Looking over the code, there's
no case the variable could end up negative.
Then, tests like "if (record_full_insn_max_num)" are always true,
because being a uinteger command means that "set record full
insn-number-max 0" is actually mapped to UINT_MAX internally. IOW,
the command's variable is never 0. The checks might make some sense
if 0 wasn't mapped to UINT_MAX, and 0 meant unlimited, but, that's not
how things work.
Tested on x86_64 Fedora 17.
gdb/
2013-03-26 Pedro Alves <palves@redhat.com>
* record-full.c (record_full_insn_num): Make it unsigned.
(record_full_check_insn_num, record_full_message)
(record_full_registers_change, record_full_xfer_partial): Remove
record_full_insn_max_num check (it's always != 0).
(record_full_info, record_full_restore): Use %u as format string.
(): Use %u as format string.
(set_record_full_insn_max_num): Remove record_full_insn_max_num
check (it's always != 0).
2013-03-26 20:01:03 +00:00
|
|
|
|
2013-03-26 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* record-full.c (record_full_insn_num): Make it unsigned.
|
|
|
|
|
(record_full_check_insn_num, record_full_message)
|
|
|
|
|
(record_full_registers_change, record_full_xfer_partial): Remove
|
|
|
|
|
record_full_insn_max_num check (it's always != 0).
|
|
|
|
|
(record_full_info, record_full_restore): Use %u as format string.
|
|
|
|
|
(): Use %u as format string.
|
|
|
|
|
(set_record_full_insn_max_num): Remove record_full_insn_max_num
|
|
|
|
|
check (it's always != 0).
|
|
|
|
|
|
2013-03-26 19:16:05 +00:00
|
|
|
|
2013-03-26 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dcache.c (_initialize_dcache): Make the "set dcache line-size"
|
|
|
|
|
and "set dcache size" commands zuinteger instead of uinteger.
|
|
|
|
|
|
2013-03-26 18:55:51 +00:00
|
|
|
|
2013-03-26 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
|
|
|
|
|
command zuinteger instead of uinteger.
|
|
|
|
|
|
2013-03-26 18:40:46 +00:00
|
|
|
|
2013-03-26 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* coff-pe-read.c (_initialize_coff_pe_read): Make the command
|
|
|
|
|
zuinteger instead of uinteger.
|
|
|
|
|
|
2013-03-26 18:03:03 +00:00
|
|
|
|
2013-03-26 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* record.c (record_insn_history_size_setshow_var)
|
|
|
|
|
(record_call_history_size_setshow_var): New globals.
|
|
|
|
|
(command_size_to_target_size): New function.
|
|
|
|
|
(cmd_record_insn_history, cmd_record_call_history): Use
|
|
|
|
|
command_size_to_target_size instead of cast.
|
|
|
|
|
(validate_history_size, set_record_insn_history_size)
|
|
|
|
|
(set_record_call_history_size): New functions.
|
|
|
|
|
(_initialize_record): Install set_record_insn_history_size and
|
|
|
|
|
set_record_call_history_size as "set" hooks of "set record
|
|
|
|
|
instruction-history-size" and "set record
|
|
|
|
|
function-call-history-size".
|
|
|
|
|
|
2013-03-26 16:47:02 +00:00
|
|
|
|
2013-03-26 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* top.c (gdb_rl_operate_and_get_next): Replace max_input_history
|
|
|
|
|
use with history_max_entries use. Remove FIXME note.
|
|
|
|
|
|
2013-03-26 07:15:09 +00:00
|
|
|
|
2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
|
|
|
|
|
|
|
|
|
|
* record-btrace.c (record_btrace_close): Call
|
|
|
|
|
record_btrace_auto_disable.
|
|
|
|
|
|
2013-03-26 00:13:08 +00:00
|
|
|
|
2013-03-25 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* rs6000-nat.c (fixup_breakpoints): Delete declaration.
|
|
|
|
|
|
2013-03-25 22:53:54 +00:00
|
|
|
|
2013-03-25 Doug Evans <dje@google.com>
|
|
|
|
|
|
|
|
|
|
* contrib/cc-with-tweaks.sh: Check exit code of dwp.
|
|
|
|
|
|
2013-03-25 17:28:03 +00:00
|
|
|
|
2013-03-25 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR symtab/11462:
|
|
|
|
|
* c-exp.y (exp): Add new productions for destructors after '.' and
|
|
|
|
|
'->'.
|
|
|
|
|
(write_destructor_name): New function.
|
|
|
|
|
|
2013-03-25 17:26:18 +00:00
|
|
|
|
2013-03-25 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR c++/9197:
|
|
|
|
|
* opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
|
|
|
|
|
value_struct_elt, not lookup_struct_elt_type.
|
|
|
|
|
* eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
|
|
|
|
|
STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
|
|
|
|
|
* expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
|
|
|
|
|
|
2013-03-25 10:55:28 +00:00
|
|
|
|
2013-03-25 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
|
|
|
|
|
instead of '_mkdir'.
|
|
|
|
|
|
2013-03-23 10:48:23 +00:00
|
|
|
|
2013-03-23 Eli Zaretskii <eliz@gnu.org>
|
|
|
|
|
|
|
|
|
|
* windows-nat.c (windows_get_absolute_argv0): New function.
|
|
|
|
|
* windows-nat.h: Add its prototype.
|
|
|
|
|
|
|
|
|
|
* main.c (get_init_files): Use filename_ncmp instead of strncmp.
|
|
|
|
|
Use IS_DIR_SEPARATOR instead of looking for a character inside
|
|
|
|
|
SLASH_STRING. Include filenames.h.
|
|
|
|
|
(captured_main) [__MINGW32__]: Make argv[0] absolute, so that
|
|
|
|
|
relocate_gdb_directory works when passed gdb_program_name.
|
|
|
|
|
Include windows-nat.h.
|
|
|
|
|
|
2013-03-22 20:39:29 +00:00
|
|
|
|
2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
|
|
|
|
|
* remote.c (trace_error): Remove the special handling of '2'.
|
|
|
|
|
(readchar) <SERIAL_EOF>
|
|
|
|
|
(readchar) <SERIAL_ERROR>
|
|
|
|
|
(getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
|
|
|
|
|
(remote_get_trace_status): Call throw_exception if EX is
|
|
|
|
|
TARGET_CLOSE_ERROR.
|
|
|
|
|
* utils.c (perror_with_name): Rename to ...
|
|
|
|
|
(throw_perror_with_name): ... here. New parameter errcode, describe it
|
|
|
|
|
in the function comment.
|
|
|
|
|
(perror_with_name): New function wrapper.
|
|
|
|
|
* utils.h (enum errors): New stub declaration.
|
|
|
|
|
(throw_perror_with_name): New declaration.
|
|
|
|
|
|
2013-03-22 20:25:40 +00:00
|
|
|
|
2013-03-22 Pedro Alves <palves@redhat.com>
|
|
|
|
|
Yao Qi <yao@codesourcery.com>
|
|
|
|
|
Mark Kettenis <kettenis@gnu.org>
|
|
|
|
|
|
|
|
|
|
* cli/cli-setshow.c (do_set_command) <var_uinteger>:
|
|
|
|
|
Don't let the user set the value to UINT_MAX directly.
|
|
|
|
|
<var_integer>: Don't let the user set the value to INT_MAX
|
|
|
|
|
directly.
|
|
|
|
|
|
2013-03-22 19:07:03 +00:00
|
|
|
|
2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* remote.c (remote_unpush_target): New function.
|
|
|
|
|
(remote_open_1): Remove two pop_target calls, update one comment, add
|
|
|
|
|
comment to target_preopen call. Replace pop_target call by
|
|
|
|
|
remote_unpush_target call.
|
|
|
|
|
(interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
|
|
|
|
|
pop_target calls by remote_unpush_target calls.
|
|
|
|
|
|
Linux: No need to set ptrace event options in fork/clone children.
Oleg Nesterov told me that the Linux kernel copies the parent's ptrace
options to fork/clone children, so there's no need for GDB to do that
manually.
I was actually a bit surprised, since I thought the ptracer had to
always set the ptrace options itself, and GDB is indeed calling
PTRACE_SETOPTIONS for each new fork child, if it'll stay attached.
Looking at the history of that code, I found that is was actually I
who added that set-ptrace-options-in-children bit, back in
http://sourceware.org/ml/gdb-patches/2009-05/msg00656.html. But,
honestly, I don't recall why I needed that. I think I may have just
blindly believed it was necessary.
I then looked back at the history of all the PTRACE_SETOPTIONS code we
have, and found that gdb never did copy the ptrace options before my
patch. But, when gdbserver learnt to use PTRACE_EVENT_CLONE, at
http://sourceware.org/ml/gdb-patches/2007-10/msg00547.html, it was
made to do 'ptrace (PTRACE_SETOPTIONS, new_pid, 0,
PTRACE_O_TRACECLONE)' for all new clones. Hmmm. But, GDB itself
never did that, so it can't really ever have been necessary, I
believe, otherwise GDB should have been doing it too.
(GDBserver doesn't support following forks, and so naturally doesn't
do any PTRACE_SETOPTIONS on fork children.)
So this patch removes the -I believe- unnecessary ptrace syscalls.
Tested on x86_64 Fedora 17, native/gdbserver, and on x86_64 RHEL5
native/gdbserver (Linux 2.6.18, I think a ptrace-on-utrace kernel).
No regressions.
gdb/
2013-03-22 Pedro Alves <palves@redhat.com>
* linux-nat.c (linux_child_follow_fork): Don't call
linux_enable_event_reporting.
(linux_handle_extended_wait): Don't call
linux_enable_event_reporting.
gdb/gdbserver/
2013-03-22 Pedro Alves <palves@redhat.com>
* linux-low.c (handle_extended_wait): Don't call
linux_enable_event_reporting.
2013-03-22 14:52:26 +00:00
|
|
|
|
2013-03-22 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* linux-nat.c (linux_child_follow_fork): Don't call
|
|
|
|
|
linux_enable_event_reporting.
|
|
|
|
|
(linux_handle_extended_wait): Don't call
|
|
|
|
|
linux_enable_event_reporting.
|
|
|
|
|
|
hppa-hpux-tdep.c: Fix host dependency.
$ make WERROR_CFLAGS="-Wpointer-sign -Werror" hppa-hpux-tdep.o -k 2>&1 1>/dev/null
../../src/gdb/hppa-hpux-tdep.c: In function ‘hppa_hpux_push_dummy_code’:
../../src/gdb/hppa-hpux-tdep.c:1225:7: error: pointer targets in passing argument 2 of ‘write_memory’ differ in signedness [-Werror=pointer-sign]
In file included from ../../src/gdb/hppa-hpux-tdep.c:22:0:
../../src/gdb/gdbcore.h:85:13: note: expected ‘const gdb_byte *’ but argument is of type ‘char *’
../../src/gdb/hppa-hpux-tdep.c:1251:7: error: pointer targets in passing argument 2 of ‘write_memory’ differ in signedness [-Werror=pointer-sign]
In file included from ../../src/gdb/hppa-hpux-tdep.c:22:0:
../../src/gdb/gdbcore.h:85:13: note: expected ‘const gdb_byte *’ but argument is of type ‘char *’
../../src/gdb/hppa-hpux-tdep.c: In function ‘hppa_hpux_supply_save_state’:
../../src/gdb/hppa-hpux-tdep.c:1354:9: error: pointer targets in passing argument 1 of ‘extract_unsigned_integer’ differ in signedness [-Werror=pointer-sign]
In file included from ../../src/gdb/hppa-hpux-tdep.c:20:0:
../../src/gdb/defs.h:675:22: note: expected ‘const gdb_byte *’ but argument is of type ‘const char *’
Casting to gdb_byte would fix it, however, writing an
unsigned int array like this
static unsigned int hppa64_tramp[] = {
0xeac0f000, /* bve,l (r22),%r2 */
0x0fdf12d1, /* std r31,-8(,sp) */
0x0fd110c2, /* ldd -8(,sp),rp */
0xe840d002, /* bve,n (rp) */
0x08000240 /* nop */
...
directly to target memory assumes the host endianness is the same as
the target's. hppa is big endian, so I believe this patch should be
correct -- it defines the array as a gdb_byte array. It uses a macro
to make the insn bytes a little more readable. I thought of using
write_memory_unsigned_integer once for each element of the unsigned
int array, but this way keeps issuing a single target memory write /
roundtrip for the whole trampoline.
gdb/
2013-03-22 Pedro Alves <palves@redhat.com>
* hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
use it to rewrite the trampoline buffers with type gdb_byte[], and
undefine the macro. Remove char* cast.
2013-03-22 14:43:28 +00:00
|
|
|
|
2013-03-22 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
|
|
|
|
|
use it to rewrite the trampoline buffers with type gdb_byte[], and
|
|
|
|
|
undefine the macro. Remove char* cast.
|
|
|
|
|
|
New commands "mt set per-command {space,time,symtab} {on,off}".
* NEWS: Add entry.
* event-top.c: #include "maint.h".
* main.c: #include "maint.h".
* maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
timeval-utils.h, maint.h, cli/cli-setshow.h.
(per_command_time, per_command_space): New static globals.
(per_command_symtab): New static global.
(per_command_setlist, per_command_showlist): New static globals.
(struct cmd_stats): Move here from utils.c.
(set_per_command_time): Renamed from set_display_time in utils.c
and moved here. All callers updated.
(set_per_command_space): Renamed from set_display_space in utils.c
and moved here. All callers updated.
(count_symtabs_and_blocks): New function.
(report_command_stats): Moved here from utils.c. Add support for
printing symtab stats. Only print data if enabled before command
executed.
(make_command_stats_cleanup): Ditto.
(sert_per_command_cmd, show_per_command_cmd): New functions.
(_initialize_maint_cmds): Add new commands
mt set per-command {space,time,symtab} {on,off}.
* maint.h: New file.
* top.c: #include "maint.h".
* utils.c (reset_prompt_for_continue_wait_time): New function.
(get_prompt_for_continue_wait_time): New function.
* utils.h (reset_prompt_for_continue_wait_time): Declare
(get_prompt_for_continue_wait_time): Declare.
(make_command_stats_cleanup): Moved to maint.h.
(set_display_time, set_display_space): Moved to maint.h and renamed
to set_per_command_time, set_per_command_space.
* cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
parse_binary_operation and made non-static. Don't call error,
just return an error marker. All callers updated.
* cli/cli-setshow.h (parse_cli_boolean_value): Declare.
doc/
* gdb.texinfo (Maintenance Commands): Add docs for
"mt set per-command {space,time,symtab} {on,off}".
testsuite/
* gdb.base/maint.exp: Update tests for per-command stats.
2013-03-21 17:37:30 +00:00
|
|
|
|
2013-03-21 Doug Evans <dje@google.com>
|
|
|
|
|
|
|
|
|
|
New commands "mt set per-command {space,time,symtab} {on,off}".
|
|
|
|
|
* NEWS: Add entry.
|
|
|
|
|
* event-top.c: #include "maint.h".
|
|
|
|
|
* main.c: #include "maint.h".
|
|
|
|
|
* maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
|
|
|
|
|
timeval-utils.h, maint.h, cli/cli-setshow.h.
|
|
|
|
|
(per_command_time, per_command_space): New static globals.
|
|
|
|
|
(per_command_symtab): New static global.
|
|
|
|
|
(per_command_setlist, per_command_showlist): New static globals.
|
|
|
|
|
(struct cmd_stats): Move here from utils.c.
|
|
|
|
|
(set_per_command_time): Renamed from set_display_time in utils.c
|
|
|
|
|
and moved here. All callers updated.
|
|
|
|
|
(set_per_command_space): Renamed from set_display_space in utils.c
|
|
|
|
|
and moved here. All callers updated.
|
|
|
|
|
(count_symtabs_and_blocks): New function.
|
|
|
|
|
(report_command_stats): Moved here from utils.c. Add support for
|
|
|
|
|
printing symtab stats. Only print data if enabled before command
|
|
|
|
|
executed.
|
|
|
|
|
(make_command_stats_cleanup): Ditto.
|
|
|
|
|
(sert_per_command_cmd, show_per_command_cmd): New functions.
|
|
|
|
|
(_initialize_maint_cmds): Add new commands
|
|
|
|
|
mt set per-command {space,time,symtab} {on,off}.
|
|
|
|
|
* maint.h: New file.
|
|
|
|
|
* top.c: #include "maint.h".
|
|
|
|
|
* utils.c (reset_prompt_for_continue_wait_time): New function.
|
|
|
|
|
(get_prompt_for_continue_wait_time): New function.
|
|
|
|
|
* utils.h (reset_prompt_for_continue_wait_time): Declare
|
|
|
|
|
(get_prompt_for_continue_wait_time): Declare.
|
|
|
|
|
(make_command_stats_cleanup): Moved to maint.h.
|
|
|
|
|
(set_display_time, set_display_space): Moved to maint.h and renamed
|
|
|
|
|
to set_per_command_time, set_per_command_space.
|
|
|
|
|
* cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
|
|
|
|
|
parse_binary_operation and made non-static. Don't call error,
|
|
|
|
|
just return an error marker. All callers updated.
|
|
|
|
|
* cli/cli-setshow.h (parse_cli_boolean_value): Declare.
|
|
|
|
|
|
2013-03-21 16:18:48 +00:00
|
|
|
|
2013-03-21 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* symfile.c (alloc_section_addr_info): Update header. Don't set
|
|
|
|
|
'num_sections' field.
|
|
|
|
|
(build_section_addr_info_from_section_table): Set 'num_sections'.
|
|
|
|
|
(build_section_addr_info_from_bfd): Likewise.
|
|
|
|
|
(build_section_addr_info_from_objfile): Remove dead loop
|
|
|
|
|
condition.
|
|
|
|
|
(free_section_addr_info): Unconditionally call xfree.
|
|
|
|
|
(relative_addr_info_to_section_offsets, addrs_section_sort)
|
|
|
|
|
(addr_info_make_relative, syms_from_objfile_1): Remove dead loop
|
|
|
|
|
condition.
|
|
|
|
|
(syms_from_objfile_1): Remove dead 'if' condition. Check
|
|
|
|
|
'num_sections'.
|
|
|
|
|
(add_symbol_file_command): Set 'num_sections'.
|
|
|
|
|
* symfile-mem.c (symbol_file_add_from_memory): Set
|
|
|
|
|
'num_sections'.
|
|
|
|
|
* somread.c (som_symfile_offsets): Remove dead loop condition.
|
|
|
|
|
* machoread.c (macho_symfile_offsets): Remove dead 'if'.
|
|
|
|
|
* jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
|
|
|
|
|
|
2013-03-21 16:16:33 +00:00
|
|
|
|
2013-03-21 Tom Tromey <tromey@redhat.com>
|
2013-03-21 16:09:27 +00:00
|
|
|
|
|
|
|
|
|
* tracepoint.h (decode_agent_options): Add 'trace_string'
|
|
|
|
|
argument.
|
|
|
|
|
* tracepoint.c (decode_agent_options): Add 'trace_string'
|
|
|
|
|
argument.
|
|
|
|
|
(validate_actionline): Update.
|
|
|
|
|
(collect_symbol): Add 'trace_string' argument.
|
|
|
|
|
(struct add_local_symbols_data) <trace_string>: New field.
|
|
|
|
|
(do_collect_symbol): Update.
|
|
|
|
|
(add_local_symbols): Add 'trace_string' argument.
|
|
|
|
|
(encode_actions_1): Update.
|
|
|
|
|
(trace_dump_actions): Update.
|
|
|
|
|
* dwarf2loc.c (access_memory): Update.
|
|
|
|
|
* ax.h (struct agent_expr) <tracing, trace_string>: New fields.
|
|
|
|
|
* ax-general.c (new_agent_expr): Update.
|
|
|
|
|
* ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
|
|
|
|
|
(gen_trace_for_return_address): Add argument.
|
|
|
|
|
(trace_kludge, trace_string_kludge): Remove.
|
|
|
|
|
* ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
|
|
|
|
|
(gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
|
|
|
|
|
(gen_trace_for_var): Add 'trace_string' argument.
|
|
|
|
|
(gen_trace_for_expr, gen_trace_for_return_address): Likewise.
|
|
|
|
|
(gen_printf, agent_eval_command_one): Update.
|
|
|
|
|
|
2013-03-21 15:19:33 +00:00
|
|
|
|
2013-03-21 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR exp/15109:
|
|
|
|
|
* c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
|
|
|
|
|
Handle FILENAME token.
|
|
|
|
|
|
2013-03-21 15:01:55 +00:00
|
|
|
|
2013-03-21 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* c-exp.y (YYPRINT): Define.
|
|
|
|
|
(c_print_token): New function.
|
|
|
|
|
|
2013-03-21 14:41:28 +00:00
|
|
|
|
2013-03-21 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* c-exp.y (%union) <sym, ivar, ivec>: Remove.
|
|
|
|
|
|
2013-03-21 01:08:46 +00:00
|
|
|
|
2013-03-21 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ctf.c: Include "gdb_stat.h".
|
|
|
|
|
[USE_WIN32API]: New macro 'mkdir'.
|
|
|
|
|
(ctf_start): Use permission bits macros if they are defined.
|
|
|
|
|
|
2013-03-20 22:17:18 +00:00
|
|
|
|
2013-03-20 Keith Seitz <keiths@redhat.com>
|
|
|
|
|
|
|
|
|
|
* breakpoint.h (struct breakpoint): Add comment to
|
|
|
|
|
extra_string indicating that this member is mallod'd.
|
|
|
|
|
* breakpoint.c (base_breakpoint_dtor): Free extra_string.
|
|
|
|
|
|
Fix PR gdb/15289 - "set remote hardware-watchpoint-limit" broken (zinteger commands)
This is a regression from 7.5, introduced/exposed by:
http://sourceware.org/ml/gdb-patches/2012-07/msg00259.html
There are a series of issues with this code.
It does:
unsigned int val = parse_and_eval_long (arg);
^^^^^^^^^^^^
(unsigned, usually 32-bit) while parse_and_eval_long returns a LONGEST
(usually 64-bit), so we lose precision without noticing:
(gdb) set remote hardware-watchpoint-limit 0x100000000
(gdb) show remote hardware-watchpoint-limit 0x100000000
The maximum number of target hardware watchpoints is 0.
While at it, print the invalid number with plongest, so the user sees
what GDB thought the number was:
(gdb) set remote hardware-watchpoint-limit 0x100000000
integer 4294967296 out of range
So with "set remote hardware-watchpoint-limit -1", val ends converted
to 0xffffffff, which then fails the
else if (val >= INT_MAX)
error (_("integer %u out of range"), val);
test.
Looking at that INT_MAX check, we forbid INT_MAX itself, but we
shouldn't, as that does fit in 'int' -- we want to forbid values
_greater_ than INT_MAX (and less than INT_MIN, while at it):
(gdb) set remote hardware-watchpoint-limit 2147483647
integer 2147483647 out of range
The same problem is in the new var_zuinteger_unlimited code, which
also uses "int" for variable.
Also, when printing a 'signed int', we should use %d, not %u.
This adds a couple regression tests. Not completely thorough in checking
all kinds of invalid input; I'm saving more exaustive testing around
zXXinteger commands for something like new test-assisting commands
like "maint test cmd-zinteger -1", where testing would focus on the
command types, and thus be independent of particular user commands of
particular GDB features.
Tested on x86_64 Fedora 17.
gdb/
2013-03-20 Pedro Alves <palves@redhat.com>
PR gdb/15289
* cli/cli-setshow.c (do_set_command)
<var_uinteger, var_zuinteger>: Use LONGEST for variable holding
the result of parsing the command argument. Throw error if the
value is greater than UINT_MAX. Print the invalid value with
plongest.
<var_integer, var_zinteger>: Use LONGEST for variable holding the
result of parsing the command argument. Throw error if the value
is greater than INT_MAX, not greater or equal. Also throw error
if the value is less than INT_MIN. Print the invalid value with
plongest.
<var_zuinteger_unlimited>: Throw error if the value is greater
than INT_MAX, not greater or equal.
(do_show_command) <var_integer, var_zinteger,
var_zuinteger_unlimited>: Use %d for printing int, not %u.
gdb/testsuite/
2013-03-20 Pedro Alves <palves@redhat.com>
PR gdb/15289
* gdb.base/remote.exp: Test
"set remote hardware-watchpoint-limit -1",
"set remote hardware-breakpoint-limit -1",
"set remote hardware-watchpoint-limit 2147483647" and
"set remote hardware-breakpoint-limit 2147483647".
2013-03-20 18:58:16 +00:00
|
|
|
|
2013-03-20 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR gdb/15289
|
|
|
|
|
|
|
|
|
|
* cli/cli-setshow.c (do_set_command)
|
|
|
|
|
<var_uinteger, var_zuinteger>: Use LONGEST for variable holding
|
|
|
|
|
the result of parsing the command argument. Throw error if the
|
|
|
|
|
value is greater than UINT_MAX. Print the invalid value with
|
|
|
|
|
plongest.
|
|
|
|
|
<var_integer, var_zinteger>: Use LONGEST for variable holding the
|
|
|
|
|
result of parsing the command argument. Throw error if the value
|
|
|
|
|
is greater than INT_MAX, not greater or equal. Also throw error
|
|
|
|
|
if the value is less than INT_MIN. Print the invalid value with
|
|
|
|
|
plongest.
|
|
|
|
|
<var_zuinteger_unlimited>: Throw error if the value is greater
|
|
|
|
|
than INT_MAX, not greater or equal.
|
|
|
|
|
(do_show_command) <var_integer, var_zinteger,
|
|
|
|
|
var_zuinteger_unlimited>: Use %d for printing int, not %u.
|
|
|
|
|
|
2013-03-20 18:35:22 +00:00
|
|
|
|
2013-03-20 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
|
|
|
|
|
if possible.
|
|
|
|
|
* dwarf2read.c (read_func_scope): Remove old FIXME.
|
|
|
|
|
* eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
|
|
|
|
|
not LOC_COMPUTED.
|
|
|
|
|
* findvar.c (symbol_read_needs_frame, default_read_var_value):
|
|
|
|
|
Unconditionally call via computed ops, if possible.
|
|
|
|
|
* printcmd.c (address_info): Unconditionally call via computed ops,
|
|
|
|
|
if possible.
|
|
|
|
|
* stack.c (read_frame_arg): Unconditionally call via computed ops,
|
|
|
|
|
if possible.
|
|
|
|
|
* symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
|
|
|
|
|
* tracepoint.c (scope_info): Unconditionally call via computed ops,
|
|
|
|
|
if possible.
|
|
|
|
|
|
2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
Tom Tromey <tromey@redhat.com>
PR symtab/8421:
* coffread.c (coff_register_index): New global.
(process_coff_symbol, coff_read_enum_type): Set
SYMBOL_ACLASS_INDEX.
(_initialize_coffread): Initialize new global.
* dwarf2loc.c (locexpr_find_frame_base_location)
(dwarf2_block_frame_base_locexpr_funcs)
(loclist_find_frame_base_location)
(dwarf2_block_frame_base_loclist_funcs): New.
(dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
(dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
* dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
(dwarf2_block_frame_base_loclist_funcs): New.
* dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
(dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
globals.
(read_func_scope): Update.
(fixup_go_packaging, mark_common_block_symbol_computed)
(var_decode_location, new_symbol_full, dwarf2_const_value):
Set SYMBOL_ACLASS_INDEX.
(dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
(_initialize_dwarf2_read): Initialize new globals.
* jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
* jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
* mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
globals.
(parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
(_initialize_mdebugread): Initialize new globals.
* psympriv.h (struct partial_symbol) <aclass>: Update comment.
* stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
(stab_register_index, stab_regparm_index): New globals.
(define_symbol, read_enum_type, common_block_end): Set
SYMBOL_ACLASS_INDEX.
(_initialize_stabsread): Initialize new globals.
* symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
globals.
(MAX_SYMBOL_IMPLS): New define.
(register_symbol_computed_impl, register_symbol_block_impl)
(register_symbol_register_impl)
(initialize_ordinary_address_classes): New functions.
(_initialize_symtab): Call initialize_ordinary_address_classes.
* symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
(struct symbol_impl): New.
(SYMBOL_ACLASS_BITS): New define.
(struct symbol) <aclass, ops>: Remove fields.
<aclass_index>: New field.
(symbol_impls): Declare.
(SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
(SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
(register_symbol_computed_impl, register_symbol_block_impl)
(register_symbol_register_impl): Declare.
(struct symbol_computed_ops): Add location_has_loclist.
(struct symbol_block_ops): New.
(SYMBOL_BLOCK_OPS): New.
* xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
2013-03-20 18:33:05 +00:00
|
|
|
|
2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR symtab/8421:
|
|
|
|
|
* coffread.c (coff_register_index): New global.
|
|
|
|
|
(process_coff_symbol, coff_read_enum_type): Set
|
|
|
|
|
SYMBOL_ACLASS_INDEX.
|
|
|
|
|
(_initialize_coffread): Initialize new global.
|
|
|
|
|
* dwarf2loc.c (locexpr_find_frame_base_location)
|
|
|
|
|
(dwarf2_block_frame_base_locexpr_funcs)
|
|
|
|
|
(loclist_find_frame_base_location)
|
|
|
|
|
(dwarf2_block_frame_base_loclist_funcs): New.
|
|
|
|
|
(dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
|
|
|
|
|
(dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
|
|
|
|
|
* dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
|
|
|
|
|
(dwarf2_block_frame_base_loclist_funcs): New.
|
|
|
|
|
* dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
|
|
|
|
|
(dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
|
|
|
|
|
globals.
|
|
|
|
|
(read_func_scope): Update.
|
|
|
|
|
(fixup_go_packaging, mark_common_block_symbol_computed)
|
|
|
|
|
(var_decode_location, new_symbol_full, dwarf2_const_value):
|
|
|
|
|
Set SYMBOL_ACLASS_INDEX.
|
|
|
|
|
(dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
|
|
|
|
|
(_initialize_dwarf2_read): Initialize new globals.
|
|
|
|
|
* jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
|
|
|
|
|
* jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
|
|
|
|
|
* mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
|
|
|
|
|
globals.
|
|
|
|
|
(parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
|
|
|
|
|
(_initialize_mdebugread): Initialize new globals.
|
|
|
|
|
* psympriv.h (struct partial_symbol) <aclass>: Update comment.
|
|
|
|
|
* stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
|
|
|
|
|
(stab_register_index, stab_regparm_index): New globals.
|
|
|
|
|
(define_symbol, read_enum_type, common_block_end): Set
|
|
|
|
|
SYMBOL_ACLASS_INDEX.
|
|
|
|
|
(_initialize_stabsread): Initialize new globals.
|
|
|
|
|
* symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
|
|
|
|
|
globals.
|
|
|
|
|
(MAX_SYMBOL_IMPLS): New define.
|
|
|
|
|
(register_symbol_computed_impl, register_symbol_block_impl)
|
|
|
|
|
(register_symbol_register_impl)
|
|
|
|
|
(initialize_ordinary_address_classes): New functions.
|
|
|
|
|
(_initialize_symtab): Call initialize_ordinary_address_classes.
|
|
|
|
|
* symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
|
|
|
|
|
(struct symbol_impl): New.
|
|
|
|
|
(SYMBOL_ACLASS_BITS): New define.
|
|
|
|
|
(struct symbol) <aclass, ops>: Remove fields.
|
|
|
|
|
<aclass_index>: New field.
|
|
|
|
|
(symbol_impls): Declare.
|
|
|
|
|
(SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
|
|
|
|
|
(SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
|
|
|
|
|
(register_symbol_computed_impl, register_symbol_block_impl)
|
|
|
|
|
(register_symbol_register_impl): Declare.
|
|
|
|
|
(struct symbol_computed_ops): Add location_has_loclist.
|
|
|
|
|
(struct symbol_block_ops): New.
|
|
|
|
|
(SYMBOL_BLOCK_OPS): New.
|
|
|
|
|
* xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
|
|
|
|
|
|
2013-03-20 18:28:48 +00:00
|
|
|
|
2013-03-20 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
|
|
|
|
|
(print_partial_symbols, recursively_search_psymtabs): Use
|
|
|
|
|
PSYMBOL_CLASS.
|
|
|
|
|
|
2013-03-20 16:13:10 +00:00
|
|
|
|
2013-03-20 Pierre Muller <muller@sourceware.org>
|
|
|
|
|
|
|
|
|
|
* contrib/ari/gdb_ari.sh (OP eol rule): Also check
|
|
|
|
|
addtion, subtraction, multiplication and division binary operator.
|
|
|
|
|
|
2013-03-20 15:46:24 +00:00
|
|
|
|
2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
Code cleanup.
|
|
|
|
|
* bfd-target.c (target_bfd_xclose): Remove parameter quitting.
|
|
|
|
|
* bsd-kvm.c (bsd_kvm_close): Likewise.
|
|
|
|
|
* bsd-uthread.c (bsd_uthread_close): Likewise.
|
|
|
|
|
* corelow.c (core_close): Likewise.
|
|
|
|
|
(core_close_cleanup): Remove parameter quitting from a caller.
|
|
|
|
|
* event-top.c (async_disconnect): Likewise.
|
|
|
|
|
* exec.c (exec_close_1): Remove parameter quitting.
|
|
|
|
|
* go32-nat.c (go32_close): Likewise.
|
|
|
|
|
* linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
|
|
|
|
|
parameter quitting from a caller.
|
|
|
|
|
* mips-linux-nat.c (super_close): Remove parameter quitting from the
|
|
|
|
|
variable.
|
|
|
|
|
(mips_linux_close): Remove parameter quitting. Remove parameter
|
|
|
|
|
quitting from a caller.
|
|
|
|
|
* monitor.c (monitor_close): Remove parameter quitting.
|
|
|
|
|
* monitor.h (monitor_close): Likewise.
|
|
|
|
|
* record-btrace.c (record_btrace_close): Likewise.
|
|
|
|
|
* record-full.c (record_full_close): Likewise.
|
|
|
|
|
* remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
|
|
|
|
|
it also from fprintf_unfiltered.
|
|
|
|
|
* remote-mips.c (mips_close): Remove parameter quitting.
|
|
|
|
|
(mips_detach): Remove parameter quitting from a caller.
|
|
|
|
|
* remote-sim.c (gdbsim_close): Remove parameter quitting.
|
|
|
|
|
(gdbsim_close): Remove duplicate function comment. Remove parameter
|
|
|
|
|
quitting and remove it also from printf_filtered.
|
|
|
|
|
* remote.c (remote_close): Remove parameter quitting.
|
|
|
|
|
* solib-svr4.c (enable_break): Remove parameter quitting from a caller.
|
|
|
|
|
* target.c (update_current_target): Remove parameter int from to_close
|
|
|
|
|
de_fault.
|
|
|
|
|
(push_target, unpush_target, pop_target): Remove parameter quitting from
|
|
|
|
|
a caller.
|
|
|
|
|
(pop_all_targets_above, pop_all_targets): Remove parameter quitting.
|
|
|
|
|
Remove parameter quitting from a caller.
|
|
|
|
|
(target_preopen): Remove parameter quitting from a caller.
|
|
|
|
|
(target_close): Remove parameter quitting. Remove parameter quitting
|
|
|
|
|
from a caller two times. Remove parameter quitting also from
|
|
|
|
|
fprintf_unfiltered.
|
|
|
|
|
* target.h (struct target_ops): Remove parameter quitting and as int
|
|
|
|
|
from fields to_xclose and to_close.
|
|
|
|
|
(extern struct target_ops current_target):
|
|
|
|
|
(target_close, pop_all_targets): Remove parameter quitting. Update the
|
|
|
|
|
comment.
|
|
|
|
|
(pop_all_targets_above): Remove parameter quitting.
|
|
|
|
|
* top.c (quit_target): Remove parameter quitting from a caller.
|
|
|
|
|
* tracepoint.c (tfile_close): Remove parameter quitting.
|
|
|
|
|
* windows-nat.c (windows_close): Remove parameter quitting.
|
|
|
|
|
|
2013-03-20 08:51:06 +00:00
|
|
|
|
2013-03-20 Corinna Vinschen <vinschen@redhat.com>
|
|
|
|
|
|
|
|
|
|
* windows-nat.c (handle_output_debug_string): Replace call
|
|
|
|
|
to string_to_core_addr with call to strtoull.
|
|
|
|
|
|
2013-03-20 02:54:22 +00:00
|
|
|
|
2013-03-20 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
|
|
|
|
|
and write it to CTF metadata.
|
|
|
|
|
|
2013-03-19 15:06:26 +00:00
|
|
|
|
2013-03-19 Corinna Vinschen <vinschen@redhat.com>
|
|
|
|
|
|
|
|
|
|
* windows-nat.c (handle_output_debug_string): Change type of n to
|
|
|
|
|
SIZE_T to avoid crash on 64 bit systems.
|
|
|
|
|
|
2013-03-17 19:10:38 +00:00
|
|
|
|
2013-03-17 Eli Zaretskii <eliz@gnu.org>
|
|
|
|
|
|
|
|
|
|
* python/python-internal.h (HAVE_SNPRINTF)
|
|
|
|
|
[_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
|
|
|
|
|
about redefinition of snprintf by pyerrors.h.
|
|
|
|
|
|
2013-03-15 17:53:44 +00:00
|
|
|
|
2013-03-15 Steve Ellcey <sellcey@mips.com>
|
|
|
|
|
|
|
|
|
|
* remote-sim.c (sim_command_completer): Make char arguments const.
|
|
|
|
|
|
2013-03-15 17:10:45 +00:00
|
|
|
|
2013-03-15 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR c++/15116:
|
|
|
|
|
* gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
|
|
|
|
|
|
2013-03-14 20:26:19 +00:00
|
|
|
|
2013-03-14 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
|
|
|
|
|
New fields.
|
|
|
|
|
(get_file_crc): Move from symfile.c.
|
|
|
|
|
(gdb_bfd_crc): New function.
|
|
|
|
|
* gdb_bfd.h (gdb_bfd_crc): Declare.
|
|
|
|
|
* objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
|
|
|
|
|
* symfile.c (get_file_crc): Move to gdb_bfd.c.
|
|
|
|
|
(separate_debug_file_exists): Use gdb_bfd_crc.
|
|
|
|
|
|
2013-03-14 20:11:12 +00:00
|
|
|
|
2013-03-14 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* symfile.c (get_debug_link_info): Remove.
|
|
|
|
|
(find_separate_debug_file_by_debuglink): Use
|
|
|
|
|
bfd_get_debug_link_info.
|
|
|
|
|
|
2013-03-14 18:56:02 +00:00
|
|
|
|
2013-03-14 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* symtab.c (error_in_psymtab_expansion): New function.
|
|
|
|
|
(lookup_symbol_aux_quick)
|
|
|
|
|
(basic_lookup_transparent_type_quick): Remove "last resort"
|
|
|
|
|
code. Use error_in_psymtab_expansion.
|
|
|
|
|
|
2013-03-14 16:36:27 +00:00
|
|
|
|
2013-03-14 Doug Evans <dje@google.com>
|
|
|
|
|
Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
|
|
|
|
|
any successful compare_filenames_for_search or FILENAME_CMP.
|
|
|
|
|
* psymtab.c (partial_map_symtabs_matching_filename): Likewise.
|
|
|
|
|
* symtab.c (iterate_over_some_symtabs): Likewise.
|
|
|
|
|
|
2013-03-14 14:42:48 +00:00
|
|
|
|
2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* source.c (print_source_lines_base): Make a local copy of
|
|
|
|
|
symtab_to_fullname.
|
|
|
|
|
|
2013-03-14 14:35:17 +00:00
|
|
|
|
2013-03-14 Hui Zhu <hui_zhu@mentor.com>
|
|
|
|
|
Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* source.c (print_source_lines_base): Suppress "file" for TUI.
|
|
|
|
|
|
From: Sergio Durigan Junior <sergiodj@redhat.com>
Subject: [PATCH] Fix for PR c++/15203 and PR c++/15210
Date: Sat, 09 Mar 2013 02:50:49 -0300 (5 days, 4 hours, 57 minutes ago)
Message-ID: <m3a9qdnmti.fsf@redhat.com>
Hi,
This bug was reported internally at our Bugzilla, along with a proposed
fix. After talking to Keith about it, he investigated and came up with
another patch needed to really fix the issue on CVS HEAD.
The first part of the fix is the patch to cp-namespace.c. It handles
the case when we are accessing a static variable inside a function
(inside a class) by the full linespec (is it right, Keith?). E.g.:
class foo
{
public:
int bar()
{
static int var = 0;
}
};
And then, printing the value of `var':
(gdb) print 'foo::bar()::var'
GDB would fall in an internal_error:
gdb/cp-namespace.c:816: internal-error: cp_lookup_nested_symbol called on a non-aggregate type.
This is because `cp_lookup_nested_symbol' is not handling the case when
TYPE_CODE is either _FUNC or _METHOD. This patch fixes it by returning
NULL in this case.
The second part of the fix is the patch to elfread.c. It is needed
because the BSF_GNU_UNIQUE flag was added to some symbols in
<http://sourceware.org/ml/binutils/2009-06/msg00016.html>. Because of
that, (still) the command:
(gdb) print 'foo::bar()::var'
where `var' is a static variable returns:
"No symbol "foo::bar()::var" in current context."
So with the second patch applied the command finally DTRT:
(gdb) print 'foo::bar()::var'
$1 = 0
This may not be the ideal solution, according to Keith it would be good
to implement productions on c-exp.y in order to recognize
CLASS::FUNCTION::VARIABLE, but it is a solution which works with what we
have today.
I regtested it in Fedora 17 x86_64 with -m64 and -m32, including
gdbserver, without regressions.
gdb/:
2013-03-14 Keith Seitz <keiths@redhat.com>
Alan Matsuoka <alanm@redhat.com>
PR c++/15203
PR c++/15210
* cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
TYPE_CODE_METHOD.
* elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
symbols.
gdb/testsuite/:
2013-03-14 Sergio Durigan Junior <sergiodj@redhat.com>
PR c++/15203
PR c++/15210
* gdb.cp/m-static.cc (keepalive_int): New function.
(gnu_obj_1::method): New variable `sintvar', call `keepalive_int'.
* gdb.cp/m-static.exp: New test for `sintvar'.
2013-03-14 11:13:36 +00:00
|
|
|
|
2013-03-14 Keith Seitz <keiths@redhat.com>
|
|
|
|
|
Alan Matsuoka <alanm@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR c++/15203
|
|
|
|
|
PR c++/15210
|
|
|
|
|
* cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
|
|
|
|
|
TYPE_CODE_METHOD.
|
|
|
|
|
* elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
|
|
|
|
|
symbols.
|
|
|
|
|
|
2013-03-14 09:08:56 +00:00
|
|
|
|
2013-03-14 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
|
|
|
|
|
status to tfile if trace is stopped by command 'tstop'.
|
|
|
|
|
|
2013-03-14 09:06:40 +00:00
|
|
|
|
2013-03-14 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* tracepoint.c (tfile_write_status): Write trace notes and user
|
|
|
|
|
name into tfile if they are not NULL.
|
|
|
|
|
|
2013-03-14 09:02:30 +00:00
|
|
|
|
2013-03-14 Hui Zhu <hui@codesourcery.com>
|
|
|
|
|
Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.in (REMOTE_OBS): Add ctf.o.
|
|
|
|
|
(SFILES): Add ctf.c.
|
|
|
|
|
(HFILES_NO_SRCDIR): Add ctf.h.
|
|
|
|
|
* ctf.c, ctf.h: New files.
|
|
|
|
|
* tracepoint.c: Include 'ctf.h'.
|
|
|
|
|
(collect_pseudocommand): Remove static.
|
|
|
|
|
(trace_save_command): Parse option "-ctf".
|
|
|
|
|
Produce different trace file writers per option.
|
|
|
|
|
Adjust output message.
|
|
|
|
|
(trace_save_tfile, trace_save_ctf): New.
|
|
|
|
|
* tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
|
|
|
|
|
* mi/mi-main.c: Include 'ctf.h'.
|
|
|
|
|
(mi_cmd_trace_save): Handle option '-ctf'. Call either
|
|
|
|
|
trace_save_tfile or trace_save_ctf.
|
|
|
|
|
* NEWS: Mention these changes.
|
|
|
|
|
|
2013-03-14 08:50:55 +00:00
|
|
|
|
2013-03-14 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* tracepoint.c (trace_file_writer_xfree): New.
|
|
|
|
|
(struct tfile_writer_data): New.
|
|
|
|
|
(tfile_dtor, tfile_can_target_save, tfile_start): New.
|
|
|
|
|
(tfile_write_header, tfile_write_regblock_type): New.
|
|
|
|
|
(tfile_write_status, tfile_write_uploaded_tsv): New.
|
|
|
|
|
(tfile_write_uploaded_tp, tfile_write_definition_end): New.
|
|
|
|
|
(tfile_write_raw_data, (tfile_end): New.
|
|
|
|
|
(tfile_write_ops): New global variable.
|
|
|
|
|
(TRACE_WRITE_R_BLOCK): New macro.
|
|
|
|
|
(TRACE_WRITE_M_BLOCK_HEADER): New macro.
|
|
|
|
|
(TRACE_WRITE_M_BLOCK_MEMORY): New macro.
|
|
|
|
|
(TRACE_WRITE_V_BLOCK): New macro.
|
|
|
|
|
(trace_save): Add extra one parameter WRITER. Make it static.
|
|
|
|
|
Use WRITER to writer trace.
|
|
|
|
|
(tfile_trace_file_writer_new): New.
|
|
|
|
|
(trace_save_command): Caller update.
|
|
|
|
|
(trace_save_tfile): Write trace data in TFILE format.
|
|
|
|
|
* tracepoint.h (struct trace_frame_write_ops): New.
|
|
|
|
|
(struct trace_file_write_ops): New.
|
|
|
|
|
(struct trace_file_writer): New.
|
|
|
|
|
(trace_save): Remove its declaration.
|
|
|
|
|
(trace_save_tfile): Declare it.
|
|
|
|
|
* mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
|
|
|
|
|
instead of trace_save.
|
|
|
|
|
|
2013-03-13 18:50:16 +00:00
|
|
|
|
2013-03-13 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
|
|
|
|
|
|
Fix completer.c FIXME, and invalid pointer to pointer conversion.
As mentioned in the previous patch, I grepped for "\*\*) &" and found
one hit in completer.c.
I was about to post a patch that simply made
current_demangling_style_string const, and cast away constness at the
xfree site. However, looking deeper, it seem to be there's a lot of
dead code in the file.
First, all external callers of set_demangling_style are found in the
stabs reader, commented out for over 12 years:
http://sourceware.org/ml/gdb-patches/2000-12/msg00214.html
I don't think it's likely we'll ever make the older mangling schemes
work for stabs. If we do, we can rediscuss the approach then.
Then, set_demangling_command has special handling for unknown
demangling styles, but "set demangle-style" is an enum command, and
with those, the user can only specify a known enumeration value, by
design:
(gdb) set demangle-style gangnam-style
Undefined item: "gangnam-style".
This patch removes all that dead code, then makes
current_demangling_style_string point to an element of
demangling_style_names, as the FIXME suggests, and then makes
current_demangling_style_string, removing the need for the 'const char
**' cast.
gdb/
2013-03-13 Pedro Alves <palves@redhat.com>
* dbxread.c (read_ofile_symtab, process_one_symbol): Remove
commented out code.
* demangle.c (current_demangling_style_string): Make it const.
(set_demangling_command): Assert the demangling style is known.
Remove all handling of unknown styles. Set
'current_demangling_style_string' to an element of the
demangling_style_names array.
(set_demangling_style): Delete.
(_initialize_demangler): Set current_demangling_style_string to the
element of the demangling_style_names array that corresponds to
the default demangling style. Remove FIXME note. Don't call
set_demangling_style.
* gdb-demangle.h (set_demangling_style): Remove declaration.
2013-03-13 18:38:12 +00:00
|
|
|
|
2013-03-13 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dbxread.c (read_ofile_symtab, process_one_symbol): Remove
|
|
|
|
|
commented out code.
|
|
|
|
|
* demangle.c (current_demangling_style_string): Make it const.
|
|
|
|
|
(set_demangling_command): Assert the demangling style is known.
|
|
|
|
|
Remove all handling of unknown styles. Set
|
|
|
|
|
'current_demangling_style_string' to an element of the
|
|
|
|
|
demangling_style_names array.
|
|
|
|
|
(set_demangling_style): Delete.
|
|
|
|
|
(_initialize_demangler): Set current_demangling_style_string to the
|
|
|
|
|
element of the demangling_style_names array that corresponds to
|
|
|
|
|
the default demangling style. Remove FIXME note. Don't call
|
|
|
|
|
set_demangling_style.
|
|
|
|
|
* gdb-demangle.h (set_demangling_style): Remove declaration.
|
|
|
|
|
|
Constify strings in tracepoint.c, lookup_cmd and the completers.
This is sort of a continuation of Keith's parse_exp_1 constification
patch. It started out by undoing these bits:
@@ -754,9 +754,12 @@ validate_actionline (char **line, struct
tmp_p = p;
for (loc = t->base.loc; loc; loc = loc->next)
{
- p = tmp_p;
- exp = parse_exp_1 (&p, loc->address,
+ const char *q;
+
+ q = tmp_p;
+ exp = parse_exp_1 (&q, loc->address,
block_for_pc (loc->address), 1);
+ p = (char *) q;
and progressively making more things const upwards, fixing fallout,
rinse repeat, until GDB built again (--enable-targets=all).
That ended up constifying lookup_cmd/add_cmd and (lots of) friends,
and the completers.
I didn't try to constify the command hooks themselves, because I know
upfront there are commands that write to the command string argument,
and I think I managed to stop at a nice non-hacky split point already.
I think the only non-really-super-obvious changes are
tracepoint.c:validate_actionline, and tracepoint.c:trace_dump_actions.
The rest is just mostly about 'char *' => 'const char *', 'char **'=>
'const char **', and the occasional (e.g., deprecated_cmd_warning)
case of 'char **'=> 'const char *', where/when I noticed that nothing
actually cares about the pointer to pointer output.
Tested on x86_64 Fedora 17, native and gdbserver.
gdb/
2013-03-13 Pedro Alves <palves@redhat.com>
* ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
fields const.
(ada_make_symbol_completion_list): Make "text0" parameter const.
* ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
* breakpoint.c (condition_completer): Make "text" and "word"
parameters const. Adjust.
(check_tracepoint_command): Adjust to validate_actionline
prototype change.
(catch_syscall_completer): Make "text" and "word" parameters
const.
* cli/cli-cmds.c (show_user): Make "comname" local const.
(valid_command_p): Make "command" parameter const.
(alias_command): Make "alias_prefix" and "command_prefix" locals
const.
* cli/cli-decode.c (add_cmd): Make "name" parameter const.
(add_alias_cmd): Make "name" and "oldname" parameters const.
Adjust. No longer make copy of OLDNAME.
(add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
(add_setshow_cmd_full, add_setshow_enum_cmd)
(add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
(add_setshow_filename_cmd, add_setshow_string_cmd)
(add_setshow_string_noescape_cmd)
(add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
(add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
(add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
(delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
Make "name" parameter const.
(help_cmd): Rename "command" parameter to "arg". New const local
"command".
(find_cmd): Make "command" parameter const.
(lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
deprecated_cmd_warning prototype change.
(undef_cmd_error): Make "cmdtype" parameter const.
(lookup_cmd): Make "line" parameter const.
(deprecated_cmd_warning): Change type of "text" parameter to
pointer to const char, from pointer to pointer to char. Adjust.
(lookup_cmd_composition): Make "text" parameter const.
(complete_on_cmdlist, complete_on_enum): Make "text" and "word"
parameters const.
* cli/cli-decode.h (struct cmd_list_element) <name>: Make field
const.
* cli/cli-script.c (validate_comname): Make "tem" local const.
(define_command): New const local "tem_c". Use it in calls to
lookup_cmd.
(document_command): Make "tem" and "comfull" locals const.
(show_user_1): Make "prefix" and "name" parameters const.
* cli-script.h (show_user_1): Make "prefix" and "name" parameters
const.
* command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
(add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
(deprecated_cmd_warning, lookup_cmd_composition, add_com)
(add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
(complete_on_enum, add_setshow_enum_cmd)
(add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
(add_setshow_filename_cmd, add_setshow_string_cmd)
(add_setshow_string_noescape_cmd)
(add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
(add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
(add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
Change prototypes, constifying strings.
* completer.c (noop_completer, filename_completer): Make "text"
and "prefix" parameters const.
(location_completer, expression_completer)
(complete_line_internal): Make "text" and "prefix" parameters
const and adjust.
(command_completer, signal_completer): Make "text" and "prefix"
parameters const.
* completer.h (noop_completer, filename_completer)
(expression_completer, location_completer, command_completer)
(signal_completer): Change prototypes.
* corefile.c (complete_set_gnutarget): Make "text" and "word"
parameters const.
* cp-abi.c (cp_abi_completer): Likewise.
* expression.h (parse_expression_for_completion): Change
prototype.
* f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
parameters const.
* infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
* infrun.c (handle_completer): Make "text" and "word" parameters
const.
* interps.c (interpreter_completer): Make "text" and "word"
parameters const.
* language.h (struct language_defn)
<la_make_symbol_completion_list>: Make "text" and "word"
parameters const.
* parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
(parse_exp_in_context): Rename to ...
(parse_exp_in_context_1): ... this.
(parse_exp_in_context): Reimplement, with const hack from
parse_exp_1.
(parse_expression_for_completion): Make "string" parameter const.
* printcmd.c (decode_format): Make "string_ptr" parameter pointer
to pointer to const char. Adjust.
(print_command_1): Make "exp" parameter const.
(output_command): Rename to ...
(output_command_const): ... this. Make "exp" parameter const.
(output_command): Reimplement.
(x_command): Adjust.
(display_command): Rename "exp" parameter to "arg". New "exp"
local, const version of "arg".
* python/py-auto-load.c (gdbpy_initialize_auto_load): Make
"cmd_name" local const.
* python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
call.
(cmdpy_completer): Make "text" and "word" parameters const.
(gdbpy_parse_command_name): Make "prefix_text2" local const.
* python/py-param.c (add_setshow_generic): Make "tmp_name" local
const.
* remote.c (_initialize_remote): Make "cmd_name" local const.
* symtab.c (language_search_unquoted_string): Make "text" and "p"
parameters const. Adjust.
(completion_list_add_fields): Make "sym_text", "text" and "word"
parameters const.
(struct add_name_data) <sym_text, text, word>: Make fields const.
(default_make_symbol_completion_list_break_on): Make "text" and
"word" parameters const. Adjust locals.
(default_make_symbol_completion_list)
(make_symbol_completion_list, make_symbol_completion_type)
(make_symbol_completion_list_fn): Make "text" and "word"
parameters const.
(make_file_symbol_completion_list): Make "text", "word" and
"srcfile" parameters const. Adjust locals.
(add_filename_to_list): Make "text" and "word" parameters const.
(struct add_partial_filename_data) <text, word>: Make fields
const.
(make_source_files_completion_list): Make "text" and "word"
parameters const.
* symtab.h (default_make_symbol_completion_list_break_on)
(default_make_symbol_completion_list, make_symbol_completion_list)
(make_symbol_completion_type enum type_code)
(make_symbol_completion_list_fn make_file_symbol_completion_list)
(make_source_files_completion_list): Change prototype.
* top.c (execute_command): Adjust to pass pointer to pointer to
const char to lookup_cmd, and to deprecated_cmd_warning prototype
change.
(set_verbose): Make "cmdname" local const.
* tracepoint.c (decode_agent_options): Make "exp" parameter const,
and adjust.
(validate_actionline): Make "line" parameter a pointer to const
char, and adjust.
(encode_actions_1): Make "action_exp" local const, and adjust.
(encode_actions): Adjust.
(replace_comma): Delete.
(trace_dump_actions): Make "action_exp" and "next_comma" locals
const, and adjust. Don't frob the action string while splitting
it at commas. Instead, make a copy of each split substring in
turn.
(trace_dump_command): Adjust to validate_actionline prototype
change.
* tracepoint.h (decode_agent_options, decode_agent_options)
(encode_actions, validate_actionline): Change prototypes.
* valprint.h (output_command): Delete declaration.
(output_command_const): Declare.
* value.c (function_destroyer): Cast const away in xfree call.
2013-03-13 18:34:55 +00:00
|
|
|
|
2013-03-13 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
|
|
|
|
|
fields const.
|
|
|
|
|
(ada_make_symbol_completion_list): Make "text0" parameter const.
|
|
|
|
|
* ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
|
|
|
|
|
* breakpoint.c (condition_completer): Make "text" and "word"
|
|
|
|
|
parameters const. Adjust.
|
|
|
|
|
(check_tracepoint_command): Adjust to validate_actionline
|
|
|
|
|
prototype change.
|
|
|
|
|
(catch_syscall_completer): Make "text" and "word" parameters
|
|
|
|
|
const.
|
|
|
|
|
* cli/cli-cmds.c (show_user): Make "comname" local const.
|
|
|
|
|
(valid_command_p): Make "command" parameter const.
|
|
|
|
|
(alias_command): Make "alias_prefix" and "command_prefix" locals
|
|
|
|
|
const.
|
|
|
|
|
* cli/cli-decode.c (add_cmd): Make "name" parameter const.
|
|
|
|
|
(add_alias_cmd): Make "name" and "oldname" parameters const.
|
|
|
|
|
Adjust. No longer make copy of OLDNAME.
|
|
|
|
|
(add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
|
|
|
|
|
(add_setshow_cmd_full, add_setshow_enum_cmd)
|
|
|
|
|
(add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
|
|
|
|
|
(add_setshow_filename_cmd, add_setshow_string_cmd)
|
|
|
|
|
(add_setshow_string_noescape_cmd)
|
|
|
|
|
(add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
|
|
|
|
|
(add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
|
|
|
|
|
(add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
|
|
|
|
|
(delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
|
|
|
|
|
Make "name" parameter const.
|
|
|
|
|
(help_cmd): Rename "command" parameter to "arg". New const local
|
|
|
|
|
"command".
|
|
|
|
|
(find_cmd): Make "command" parameter const.
|
|
|
|
|
(lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
|
|
|
|
|
deprecated_cmd_warning prototype change.
|
|
|
|
|
(undef_cmd_error): Make "cmdtype" parameter const.
|
|
|
|
|
(lookup_cmd): Make "line" parameter const.
|
|
|
|
|
(deprecated_cmd_warning): Change type of "text" parameter to
|
|
|
|
|
pointer to const char, from pointer to pointer to char. Adjust.
|
|
|
|
|
(lookup_cmd_composition): Make "text" parameter const.
|
|
|
|
|
(complete_on_cmdlist, complete_on_enum): Make "text" and "word"
|
|
|
|
|
parameters const.
|
|
|
|
|
* cli/cli-decode.h (struct cmd_list_element) <name>: Make field
|
|
|
|
|
const.
|
|
|
|
|
* cli/cli-script.c (validate_comname): Make "tem" local const.
|
|
|
|
|
(define_command): New const local "tem_c". Use it in calls to
|
|
|
|
|
lookup_cmd.
|
|
|
|
|
(document_command): Make "tem" and "comfull" locals const.
|
|
|
|
|
(show_user_1): Make "prefix" and "name" parameters const.
|
|
|
|
|
* cli-script.h (show_user_1): Make "prefix" and "name" parameters
|
|
|
|
|
const.
|
|
|
|
|
* command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
|
|
|
|
|
(add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
|
|
|
|
|
(deprecated_cmd_warning, lookup_cmd_composition, add_com)
|
|
|
|
|
(add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
|
|
|
|
|
(complete_on_enum, add_setshow_enum_cmd)
|
|
|
|
|
(add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
|
|
|
|
|
(add_setshow_filename_cmd, add_setshow_string_cmd)
|
|
|
|
|
(add_setshow_string_noescape_cmd)
|
|
|
|
|
(add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
|
|
|
|
|
(add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
|
|
|
|
|
(add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
|
|
|
|
|
Change prototypes, constifying strings.
|
|
|
|
|
* completer.c (noop_completer, filename_completer): Make "text"
|
|
|
|
|
and "prefix" parameters const.
|
|
|
|
|
(location_completer, expression_completer)
|
|
|
|
|
(complete_line_internal): Make "text" and "prefix" parameters
|
|
|
|
|
const and adjust.
|
|
|
|
|
(command_completer, signal_completer): Make "text" and "prefix"
|
|
|
|
|
parameters const.
|
|
|
|
|
* completer.h (noop_completer, filename_completer)
|
|
|
|
|
(expression_completer, location_completer, command_completer)
|
|
|
|
|
(signal_completer): Change prototypes.
|
|
|
|
|
* corefile.c (complete_set_gnutarget): Make "text" and "word"
|
|
|
|
|
parameters const.
|
|
|
|
|
* cp-abi.c (cp_abi_completer): Likewise.
|
|
|
|
|
* expression.h (parse_expression_for_completion): Change
|
|
|
|
|
prototype.
|
|
|
|
|
* f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
|
|
|
|
|
parameters const.
|
|
|
|
|
* infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
|
|
|
|
|
* infrun.c (handle_completer): Make "text" and "word" parameters
|
|
|
|
|
const.
|
|
|
|
|
* interps.c (interpreter_completer): Make "text" and "word"
|
|
|
|
|
parameters const.
|
|
|
|
|
* language.h (struct language_defn)
|
|
|
|
|
<la_make_symbol_completion_list>: Make "text" and "word"
|
|
|
|
|
parameters const.
|
|
|
|
|
* parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
|
|
|
|
|
(parse_exp_in_context): Rename to ...
|
|
|
|
|
(parse_exp_in_context_1): ... this.
|
|
|
|
|
(parse_exp_in_context): Reimplement, with const hack from
|
|
|
|
|
parse_exp_1.
|
|
|
|
|
(parse_expression_for_completion): Make "string" parameter const.
|
|
|
|
|
* printcmd.c (decode_format): Make "string_ptr" parameter pointer
|
|
|
|
|
to pointer to const char. Adjust.
|
|
|
|
|
(print_command_1): Make "exp" parameter const.
|
|
|
|
|
(output_command): Rename to ...
|
|
|
|
|
(output_command_const): ... this. Make "exp" parameter const.
|
|
|
|
|
(output_command): Reimplement.
|
|
|
|
|
(x_command): Adjust.
|
|
|
|
|
(display_command): Rename "exp" parameter to "arg". New "exp"
|
|
|
|
|
local, const version of "arg".
|
|
|
|
|
* python/py-auto-load.c (gdbpy_initialize_auto_load): Make
|
|
|
|
|
"cmd_name" local const.
|
|
|
|
|
* python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
|
|
|
|
|
call.
|
|
|
|
|
(cmdpy_completer): Make "text" and "word" parameters const.
|
|
|
|
|
(gdbpy_parse_command_name): Make "prefix_text2" local const.
|
|
|
|
|
* python/py-param.c (add_setshow_generic): Make "tmp_name" local
|
|
|
|
|
const.
|
|
|
|
|
* remote.c (_initialize_remote): Make "cmd_name" local const.
|
|
|
|
|
* symtab.c (language_search_unquoted_string): Make "text" and "p"
|
|
|
|
|
parameters const. Adjust.
|
|
|
|
|
(completion_list_add_fields): Make "sym_text", "text" and "word"
|
|
|
|
|
parameters const.
|
|
|
|
|
(struct add_name_data) <sym_text, text, word>: Make fields const.
|
|
|
|
|
(default_make_symbol_completion_list_break_on): Make "text" and
|
|
|
|
|
"word" parameters const. Adjust locals.
|
|
|
|
|
(default_make_symbol_completion_list)
|
|
|
|
|
(make_symbol_completion_list, make_symbol_completion_type)
|
|
|
|
|
(make_symbol_completion_list_fn): Make "text" and "word"
|
|
|
|
|
parameters const.
|
|
|
|
|
(make_file_symbol_completion_list): Make "text", "word" and
|
|
|
|
|
"srcfile" parameters const. Adjust locals.
|
|
|
|
|
(add_filename_to_list): Make "text" and "word" parameters const.
|
|
|
|
|
(struct add_partial_filename_data) <text, word>: Make fields
|
|
|
|
|
const.
|
|
|
|
|
(make_source_files_completion_list): Make "text" and "word"
|
|
|
|
|
parameters const.
|
|
|
|
|
* symtab.h (default_make_symbol_completion_list_break_on)
|
|
|
|
|
(default_make_symbol_completion_list, make_symbol_completion_list)
|
|
|
|
|
(make_symbol_completion_type enum type_code)
|
|
|
|
|
(make_symbol_completion_list_fn make_file_symbol_completion_list)
|
|
|
|
|
(make_source_files_completion_list): Change prototype.
|
|
|
|
|
* top.c (execute_command): Adjust to pass pointer to pointer to
|
|
|
|
|
const char to lookup_cmd, and to deprecated_cmd_warning prototype
|
|
|
|
|
change.
|
|
|
|
|
(set_verbose): Make "cmdname" local const.
|
|
|
|
|
* tracepoint.c (decode_agent_options): Make "exp" parameter const,
|
|
|
|
|
and adjust.
|
|
|
|
|
(validate_actionline): Make "line" parameter a pointer to const
|
|
|
|
|
char, and adjust.
|
|
|
|
|
(encode_actions_1): Make "action_exp" local const, and adjust.
|
|
|
|
|
(encode_actions): Adjust.
|
|
|
|
|
(replace_comma): Delete.
|
|
|
|
|
(trace_dump_actions): Make "action_exp" and "next_comma" locals
|
|
|
|
|
const, and adjust. Don't frob the action string while splitting
|
|
|
|
|
it at commas. Instead, make a copy of each split substring in
|
|
|
|
|
turn.
|
|
|
|
|
(trace_dump_command): Adjust to validate_actionline prototype
|
|
|
|
|
change.
|
|
|
|
|
* tracepoint.h (decode_agent_options, decode_agent_options)
|
|
|
|
|
(encode_actions, validate_actionline): Change prototypes.
|
|
|
|
|
* valprint.h (output_command): Delete declaration.
|
|
|
|
|
(output_command_const): Declare.
|
|
|
|
|
* value.c (function_destroyer): Cast const away in xfree call.
|
|
|
|
|
|
2013-03-13 16:45:11 +00:00
|
|
|
|
2013-03-13 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
|
|
|
|
|
rather than casting 'const char * const *' to 'const char **'.
|
|
|
|
|
* ada-lex.l (processInt): Make "trailer" local const. Remove
|
|
|
|
|
'const char **' cast.
|
|
|
|
|
* arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
|
|
|
|
|
locals, and use those as strtol output pointer, instead than doing
|
|
|
|
|
invalid casts to from 'const char **' to 'char **'.
|
|
|
|
|
(_initialize_demangle): Remove cast.
|
|
|
|
|
* i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
|
|
|
|
|
locals, and use those as strtol output pointer, instead than doing
|
|
|
|
|
invalid casts to from 'const char **' to 'char **'.
|
|
|
|
|
* solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
|
|
|
|
|
casts.
|
|
|
|
|
* stap-probe.c (stap_parse_register_operand)
|
|
|
|
|
(stap_parse_single_operand): Likewise.
|
|
|
|
|
|
2013-03-13 03:40:27 +00:00
|
|
|
|
2013-03-13 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* tracepoint.c (tfile_get_trace_state_variable_value): Look for
|
|
|
|
|
the last matched 'V' blcok in trace frame.
|
|
|
|
|
|
2013-03-12 22:36:27 +00:00
|
|
|
|
2013-03-12 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Create a new section for the next release branch.
|
|
|
|
|
Rename the section of the current branch, now that it has
|
|
|
|
|
been cut.
|
|
|
|
|
|
2013-03-12 22:23:41 +00:00
|
|
|
|
2013-03-12 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
|
|
|
|
|
* version.in: Bump version to 7.6.50.20130312-cvs.
|
|
|
|
|
|
2013-03-12 18:50:39 +00:00
|
|
|
|
2013-03-12 Keith Seitz <keiths@redhat.com>
|
|
|
|
|
|
|
|
|
|
* mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
|
|
|
|
|
* mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
|
|
|
|
|
Remove temporary copy of input string.
|
|
|
|
|
(mi_execute_command_wrapper): Make "cmd" const.
|
|
|
|
|
* mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
|
|
|
|
|
* mi/mi-parse.c (mi_parse_argv): Make "args" const.
|
|
|
|
|
Use const strings.
|
|
|
|
|
(mi_parse): Make "cmd" const.
|
|
|
|
|
Use const strings.
|
|
|
|
|
* mi/mi-parse.h (mi_parse): Make "cmd" const.
|
|
|
|
|
|
2013-03-12 17:39:45 +00:00
|
|
|
|
2013-03-12 Keith Seitz <keiths@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ada-lang.c (ada_read_renaming_var_value): Pass const
|
|
|
|
|
pointer to expression string to parse_exp_1.
|
|
|
|
|
(create_excep_cond_exprs): Likewise.
|
|
|
|
|
* ax-gdb.c (agent_eval_command_one): Likewise.
|
|
|
|
|
(maint_agent_printf_command): Likewise.
|
|
|
|
|
Constify much of the string handling/parsing.
|
|
|
|
|
* breakpoint.c (set_breakpoint_condition): Pass const
|
|
|
|
|
pointer to expression string to parse_exp_1.
|
|
|
|
|
(update_watchpoint): Likewise.
|
|
|
|
|
(parse_cmd_to_aexpr): Constify string handling.
|
|
|
|
|
Pass const pointer to parse_exp_1.
|
|
|
|
|
(init_breakpoint_sal): Pass const pointer to parse_exp_1.
|
|
|
|
|
(find_condition_and_thread): Likewise.
|
|
|
|
|
Make TOK const.
|
|
|
|
|
(watch_command_1): Make "arg" const.
|
|
|
|
|
Constify string handling.
|
|
|
|
|
Copy the expression string instead of changing the input
|
|
|
|
|
string.
|
|
|
|
|
(update_breakpoint_location): Pass const pointer to
|
|
|
|
|
parse_exp_1.
|
|
|
|
|
* eval.c (parse_and_eval_address): Make "exp" const.
|
|
|
|
|
(parse_to_comma_and_eval): Make "expp" const.
|
|
|
|
|
(parse_and_eval): Make "exp" const.
|
|
|
|
|
* expression.h (parse_expression): Make argument const.
|
|
|
|
|
(parse_exp_1): Make first argument const.
|
|
|
|
|
* findcmd.c (parse_find_args): Treat "args" as const.
|
|
|
|
|
* linespec.c (parse_linespec): Pass const pointer to
|
|
|
|
|
linespec_expression_to_pc.
|
|
|
|
|
(linespec_expression_to_pc): Make "exp_ptr" const.
|
|
|
|
|
* parse.c (parse_exp_1): Make "stringptr" const.
|
|
|
|
|
Make a copy of the expression to pass to parse_exp_in_context until
|
|
|
|
|
this whole interface can be constified.
|
|
|
|
|
(parse_expression): Make "string" const.
|
|
|
|
|
* printcmd.c (ui_printf): Treat "arg" as const.
|
|
|
|
|
Handle const strings.
|
|
|
|
|
* tracepoint.c (validate_actionline): Pass const pointer to
|
|
|
|
|
all calls to parse_exp_1.
|
|
|
|
|
(encode_actions_1): Likewise.
|
|
|
|
|
* value.h (parse_to_comma_and_eval): Make argument const.
|
|
|
|
|
(parse_and_eval_address): Likewise.
|
|
|
|
|
(parse_and_eval): Likewise.
|
|
|
|
|
* varobj.c (varobj_create): Pass const pointer to parse_exp_1.
|
|
|
|
|
(varobj_set_value): Likewise.
|
|
|
|
|
* cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
|
|
|
|
|
constify string handling.
|
|
|
|
|
Pass const pointers to parse_and_eval_address and
|
|
|
|
|
parse_to_comman_and_eval.
|
|
|
|
|
* cli/cli-utils.c (skip_to_space): Rename to ...
|
|
|
|
|
(skip_to_space_const): ... this. Handle const strings.
|
|
|
|
|
* cli/cli-utils.h (skip_to_space): Turn into macro which invokes
|
|
|
|
|
skip_to_space_const.
|
|
|
|
|
(skip_to_space_const): Declare.
|
|
|
|
|
* common/format.c (parse_format_string): Make "arg" const.
|
|
|
|
|
Handle const strings.
|
|
|
|
|
* common/format.h (parse_format_string): Make "arg" const.
|
|
|
|
|
* gdbserver/ax.c (ax_printf): Make "format" const.
|
|
|
|
|
* python/python.c (gdbpy_parse_and_eval): Do not make a copy
|
|
|
|
|
of the expression string.
|
|
|
|
|
|
2013-03-12 15:44:06 +00:00
|
|
|
|
2013-03-12 Hui Zhu <hui@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
|
|
|
|
|
|
2013-03-12 14:44:56 +00:00
|
|
|
|
2013-03-12 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
Hui Zhu <hui@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
|
|
|
|
|
(dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
|
|
|
|
|
DW_OP_deref_size.
|
|
|
|
|
|
Allow 'thread' to be used as a variable name in expressions.
GDB treats the identifiers 'if', 'thread', and 'task' unconditionally
as expression delimiters in Ada mode, which is correct for 'if' and 'task',
but wrong for 'thread' in cases such as
print thread
Borrowing from c-exp.y, we observe that 'thread' must be followed by
numerals, whereas identifiers never are and treat them as delimiters
only in that case.
In the process, the current also refactors and incidentally fixes the
code for rewinding the input to before the delimiting tokens. For
example, the code
watch expr if i > 2
fails because the input is only rewound to just before the 'i',
leaving the 'if' as part of the expression (and thus making the
rest look like trailing junk rather than a conditional clause).
gdb/ChangeLog:
* ada-lex.l (rules): Only recognize 'thread' as a
delimiter when followed by numerals, as for c-exp.y.
Use new rewind_to_char function to rewind the input for
expression-delimiting tokens.
(rewind_to_char): New function.
gdb/testsuite/ChangeLog:
* gdb.ada/expr_delims.exp: New file.
* gdb.ada/expr_delims/foo.adb: New file.
* gdb.ada/expr_delims/pck.ads: New file.
* gdb.ada/expr_delims/pck.adb: New file.
2013-03-12 09:03:11 +00:00
|
|
|
|
2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
|
|
|
|
|
|
|
|
|
|
* ada-lex.l (rules): Only recognize 'thread' as a
|
|
|
|
|
delimiter when followed by numerals, as for c-exp.y.
|
|
|
|
|
Use new rewind_to_char function to rewind the input for
|
|
|
|
|
expression-delimiting tokens.
|
|
|
|
|
(rewind_to_char): New function.
|
|
|
|
|
|
2013-03-11 18:49:37 +00:00
|
|
|
|
2013-03-11 Pedro Alves <palves@redhat.com>
|
|
|
|
|
Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* configure: Regenerate.
|
|
|
|
|
* configure.ac (check dynamic export flag): Link python test with
|
|
|
|
|
$PYTHON_LIBS.
|
|
|
|
|
|
2013-03-11 18:24:59 +00:00
|
|
|
|
2013-03-11 Doug Evans <dje@google.com>
|
|
|
|
|
Keith Seitz <keiths@redhat.com>
|
|
|
|
|
|
|
|
|
|
* linespec.c (find_linespec_symbols): Call find_function_symbols
|
|
|
|
|
first, and then call lookup_prefix_sym/find_method.
|
|
|
|
|
|
Avoid invalid pointer to pointer conversions.
Casts between 'char **' <-> 'unsigned char **' and 'char **' <-> const
char **' are actually invalid:
http://gcc.gnu.org/ml/gcc-help/2013-03/msg00118.html
In a nutshell, char (and variants) can alias anything, but pointers to
chars get no special treatment (cf. C99/N1256, 6.5/7).
Turns out older gcc's actually warn/complain on these constructs,
though newer one's don't:
http://sourceware.org/ml/gdb-patches/2013-03/msg00429.html
http://sourceware.org/ml/gdb-patches/2013-03/msg00430.html
This patch fixes the cases I added last week. It also fixes one other
preexisting case in charset.c, though it seems even older gccs don't
complain of char * <-> const char * aliasing.
Tested on x86_64 Fedora 17.
gdb/
2013-03-11 Pedro Alves <palves@redhat.com>
* charset.c (convert_between_encodings): Don't cast between
different pointer to pointer types. Instead, make the 'inp' local
be of the type iconv expects.
(wchar_iterate): Don't cast between different pointer to pointer
types. Instead, use new pointer local of the type iconv expects.
* target.c (target_read_stralloc, target_fileio_read_stralloc):
Add new local of type char pointer, and use it to get a
char/string view of the byte buffer, instead of casting between
pointer to pointer types.
2013-03-11 12:22:20 +00:00
|
|
|
|
2013-03-11 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* charset.c (convert_between_encodings): Don't cast between
|
|
|
|
|
different pointer to pointer types. Instead, make the 'inp' local
|
|
|
|
|
be of the type iconv expects.
|
|
|
|
|
(wchar_iterate): Don't cast between different pointer to pointer
|
|
|
|
|
types. Instead, use new pointer local of the type iconv expects.
|
|
|
|
|
* target.c (target_read_stralloc, target_fileio_read_stralloc):
|
|
|
|
|
Add new local of type char pointer, and use it to get a
|
|
|
|
|
char/string view of the byte buffer, instead of casting between
|
|
|
|
|
pointer to pointer types.
|
|
|
|
|
|
2013-03-11 12:20:52 +00:00
|
|
|
|
2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* remote.c (remote_set_trace_buffer_size): Move != operator
|
|
|
|
|
to the start of next line to fix an ARI warning.
|
|
|
|
|
|
2013-03-11 08:55:36 +00:00
|
|
|
|
2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Add record changes.
|
|
|
|
|
|
2013-03-11 08:53:17 +00:00
|
|
|
|
2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
|
|
|
|
|
|
|
|
|
|
* record-btrace.c (btrace_insn_history): Omit the pc prefix in
|
|
|
|
|
the instruction history disassembly.
|
|
|
|
|
* disasm.c (dump_insns): Omit the pc prefix, if requested.
|
|
|
|
|
* disasm.h (DISASSEMBLY_OMIT_PC): New.
|
|
|
|
|
|
2013-03-11 08:51:58 +00:00
|
|
|
|
2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.in (SFILES): Add record-btrace.c
|
|
|
|
|
(COMMON_OBS): Add record-btrace.o
|
|
|
|
|
* record-btrace.c: New.
|
|
|
|
|
* objfiles.c: Include btrace.h.
|
|
|
|
|
(free_objfile): call btrace_free_objfile.
|
|
|
|
|
|
2013-03-11 08:50:05 +00:00
|
|
|
|
2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
|
|
|
|
|
|
|
|
|
|
* target.c (target_call_history, target_call_history_from,
|
|
|
|
|
target_call_history_range): New.
|
|
|
|
|
* target.h (target_ops) <to_call_history, to_call_history_from,
|
|
|
|
|
to_call_history_range>: New fields.
|
|
|
|
|
(target_call_history, target_call_history_from,
|
|
|
|
|
target_call_history_range): New declaration.
|
|
|
|
|
* record.c (get_call_history_modifiers, cmd_record_call_history,
|
|
|
|
|
record_call_history_size): New.
|
|
|
|
|
(_initialize_record): Add the "record function-call-history" command.
|
|
|
|
|
Add "set/show record function-call-history-size" commands.
|
|
|
|
|
* record.h (record_print_flag): New.
|
|
|
|
|
|
2013-03-11 08:48:38 +00:00
|
|
|
|
2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
|
|
|
|
|
|
|
|
|
|
* target.h (target_ops) <to_insn_history, to_insn_history_from,
|
|
|
|
|
to_insn_history_range>: New fields.
|
|
|
|
|
(target_insn_history): New.
|
|
|
|
|
(target_insn_history_from): New.
|
|
|
|
|
(target_insn_history_range): New.
|
|
|
|
|
* target.c (target_insn_history): New.
|
|
|
|
|
(target_insn_history_from): New.
|
|
|
|
|
(target_insn_history_range): New.
|
|
|
|
|
* record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
|
|
|
|
|
(record_insn_history_size): New.
|
|
|
|
|
(get_insn_number): New.
|
|
|
|
|
(get_context_size): New.
|
|
|
|
|
(no_chunk): New.
|
|
|
|
|
(get_insn_history_modifiers): New.
|
|
|
|
|
(cmd_record_insn_history): New.
|
|
|
|
|
(_initialize_record): Add "set/show record instruction-history-size"
|
|
|
|
|
command. Add "record instruction-history" command.
|
|
|
|
|
|
2013-03-11 08:47:10 +00:00
|
|
|
|
2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
|
|
|
|
|
|
|
|
|
|
* record.h (record_disconnect): New.
|
|
|
|
|
(record_detach): New.
|
|
|
|
|
(record_mourn_inferior): New.
|
|
|
|
|
(record_kill): New.
|
|
|
|
|
* record-full.c (record_disconnect, record_detach,
|
|
|
|
|
record_mourn_inferior, record_kill): Move to...
|
|
|
|
|
* record.c: ...here.
|
|
|
|
|
(DEBUG): New.
|
|
|
|
|
(record_stop): New.
|
|
|
|
|
(record_unpush): New.
|
|
|
|
|
(cmd_record_stop): Call record_stop. Replace unpush_target
|
|
|
|
|
call with record_unpush call.
|
|
|
|
|
(record_disconnect, record_detach): Assert that the target
|
|
|
|
|
is of record stratum. Call record_unpush, record_stop, and
|
|
|
|
|
DEBUG.
|
|
|
|
|
(record_mourn_inferior, record_kill): Assert that the target
|
|
|
|
|
is of record stratum. Call record_unpush and DEBUG.
|
|
|
|
|
|
2013-03-11 08:45:54 +00:00
|
|
|
|
2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
|
|
|
|
|
|
|
|
|
|
* record-full.h, record-full.c (record_memory_query): Rename
|
|
|
|
|
to ...
|
|
|
|
|
(record_full_memory_query): ...this. Update all users.
|
|
|
|
|
(record_arch_list_add_reg): Rename to ...
|
|
|
|
|
(record_full_arch_list_add_reg): ...this. Update all users.
|
|
|
|
|
(record_arch_list_add_mem): Rename to ...
|
|
|
|
|
(record_full_arch_list_add_mem): ...this. Update all users.
|
|
|
|
|
(record_arch_list_add_end): Rename to ...
|
|
|
|
|
(record_full_arch_list_add_end): ...this. Update all users.
|
|
|
|
|
(record_gdb_operation_disable_set): Rename to ...
|
|
|
|
|
(record_full_gdb_operation_disable_set): ...this.
|
|
|
|
|
Update all users.
|
|
|
|
|
|
2013-03-11 08:44:14 +00:00
|
|
|
|
2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
|
|
|
|
|
|
|
|
|
|
* record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
|
|
|
|
|
(DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
|
|
|
|
|
(RECORD_IS_REPLAY): Renamed to ...
|
|
|
|
|
(RECORD_FULL_IS_REPLAY): ... this. Updated all users.
|
|
|
|
|
(RECORD_FILE_MAGIC): Renamed to ...
|
|
|
|
|
(RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
|
|
|
|
|
(record_mem_entry): Renamed to ...
|
|
|
|
|
(record_full_mem_entry): ... this. Updated all users.
|
|
|
|
|
(record_reg_entry): Renamed to ...
|
|
|
|
|
(record_full_reg_entry): ... this. Updated all users.
|
|
|
|
|
(record_end_entry): Renamed to ...
|
|
|
|
|
(record_full_end_entry): ... this. Updated all users.
|
|
|
|
|
(record_type) <record_end, record_reg, record_mem>: Renamed
|
|
|
|
|
to ...
|
|
|
|
|
(record_full_type) <record_full_end, record_full_reg,
|
|
|
|
|
record_full_mem>: ... this. Updated all users.
|
|
|
|
|
(record_entry): Renamed to ...
|
|
|
|
|
(record_full_entry): ... this. Updated all users.
|
|
|
|
|
(record_core_buf_entry): Renamed to ...
|
|
|
|
|
(record_full_core_buf_entry): ... this. Updated all users.
|
|
|
|
|
(record_core_regbuf): Renamed to ...
|
|
|
|
|
(record_full_core_regbuf): ... this. Updated all users.
|
|
|
|
|
(record_core_start): Renamed to ...
|
|
|
|
|
(record_full_core_start): ... this. Updated all users.
|
|
|
|
|
(record_core_end): Renamed to ...
|
|
|
|
|
(record_full_core_end): ... this. Updated all users.
|
|
|
|
|
(record_core_buf_list): Renamed to ...
|
|
|
|
|
(record_full_core_buf_list): ... this. Updated all users.
|
|
|
|
|
(record_first): Renamed to ...
|
|
|
|
|
(record_full_first): ... this. Updated all users.
|
|
|
|
|
(record_list): Renamed to ...
|
|
|
|
|
(record_full_list): ... this. Updated all users.
|
|
|
|
|
(record_arch_list_head): Renamed to ...
|
|
|
|
|
(record_full_arch_list_head): ... this. Updated all users.
|
|
|
|
|
(record_arch_list_tail): Renamed to ...
|
|
|
|
|
(record_full_arch_list_tail): ... this. Updated all users.
|
|
|
|
|
(record_stop_at_limit): Renamed to ...
|
|
|
|
|
(record_full_stop_at_limit): ... this. Updated all users.
|
|
|
|
|
(record_insn_max_num): Renamed to ...
|
|
|
|
|
(record_full_insn_max_num): ... this. Updated all users.
|
|
|
|
|
(record_insn_num): Renamed to ...
|
|
|
|
|
(record_full_insn_num): ... this. Updated all users.
|
|
|
|
|
(record_insn_count): Renamed to ...
|
|
|
|
|
(record_full_insn_count): ... this. Updated all users.
|
|
|
|
|
(record_ops): Renamed to ...
|
|
|
|
|
(record_full_ops): ... this. Updated all users.
|
|
|
|
|
(record_core_ops): Renamed to ...
|
|
|
|
|
(record_full_core_ops): ... this. Updated all users.
|
|
|
|
|
(set_record_cmdlist): Renamed to ...
|
|
|
|
|
(set_record_full_cmdlist): ... this. Updated all users.
|
|
|
|
|
(show_record_cmdlist): Renamed to ...
|
|
|
|
|
(show_record_full_cmdlist): ... this. Updated all users.
|
|
|
|
|
(record_cmdlist): Renamed to ...
|
|
|
|
|
(record_full_cmdlist): ... this. Updated all users.
|
|
|
|
|
(record_beneath_to_resume_ops): Renamed to ...
|
|
|
|
|
(record_full_beneath_to_resume_ops): ... this. Updated all users.
|
|
|
|
|
(record_beneath_to_resume): Renamed to ...
|
|
|
|
|
(record_full_beneath_to_resume): ... this. Updated all users.
|
|
|
|
|
(record_beneath_to_wait_ops): Renamed to ...
|
|
|
|
|
(record_full_beneath_to_wait_ops): ... this. Updated all users.
|
|
|
|
|
(record_beneath_to_wait): Renamed to ...
|
|
|
|
|
(record_full_beneath_to_wait): ... this. Updated all users.
|
|
|
|
|
(record_beneath_to_store_registers_ops): Renamed to ...
|
|
|
|
|
(record_full_beneath_to_store_registers_ops): ... this.
|
|
|
|
|
Updated all users.
|
|
|
|
|
(record_beneath_to_store_registers): Renamed to ...
|
|
|
|
|
(record_full_beneath_to_store_registers): ... this.
|
|
|
|
|
Updated all users.
|
|
|
|
|
(record_beneath_to_xfer_partial_ops): Renamed to ...
|
|
|
|
|
(record_full_beneath_to_xfer_partial_ops): ... this.
|
|
|
|
|
Updated all users.
|
|
|
|
|
(record_beneath_to_xfer_partial): Renamed to ...
|
|
|
|
|
(record_full_beneath_to_xfer_partial): ... this.
|
|
|
|
|
Updated all users.
|
|
|
|
|
(record_beneath_to_insert_breakpoint): Renamed to ...
|
|
|
|
|
(record_full_beneath_to_insert_breakpoint): ... this.
|
|
|
|
|
Updated all users.
|
|
|
|
|
(record_beneath_to_stopped_by_watchpoint): Renamed to ...
|
|
|
|
|
(record_full_beneath_to_stopped_by_watchpoint): ... this.
|
|
|
|
|
Updated all users.
|
|
|
|
|
(record_beneath_to_stopped_data_address): Renamed to ...
|
|
|
|
|
(record_full_beneath_to_stopped_data_address): ... this.
|
|
|
|
|
Updated all users.
|
|
|
|
|
(record_beneath_to_async): Renamed to ...
|
|
|
|
|
(record_full_beneath_to_async): ... this. Updated all users.
|
|
|
|
|
(record_goto_insn): Renamed to ...
|
|
|
|
|
(record_full_goto_insn): ... this. Updated all users.
|
|
|
|
|
(record_save): Renamed to ...
|
|
|
|
|
(record_full_save): ... this. Updated all users.
|
|
|
|
|
(record_reg_alloc): Renamed to ...
|
|
|
|
|
(record_full_reg_alloc): ... this. Updated all users.
|
|
|
|
|
(record_reg_release): Renamed to ...
|
|
|
|
|
(record_full_reg_release): ... this. Updated all users.
|
|
|
|
|
(record_mem_alloc): Renamed to ...
|
|
|
|
|
(record_full_mem_alloc): ... this. Updated all users.
|
|
|
|
|
(record_mem_release): Renamed to ...
|
|
|
|
|
(record_full_mem_release): ... this. Updated all users.
|
|
|
|
|
(record_end_alloc): Renamed to ...
|
|
|
|
|
(record_full_end_alloc): ... this. Updated all users.
|
|
|
|
|
(record_end_release): Renamed to ...
|
|
|
|
|
(record_full_end_release): ... this. Updated all users.
|
|
|
|
|
(record_entry_release): Renamed to ...
|
|
|
|
|
(record_full_entry_release): ... this. Updated all users.
|
|
|
|
|
(record_list_release): Renamed to ...
|
|
|
|
|
(record_full_list_release): ... this. Updated all users.
|
|
|
|
|
(record_list_release_following): Renamed to ...
|
|
|
|
|
(record_full_list_release_following): ... this.
|
|
|
|
|
Updated all users.
|
|
|
|
|
(record_list_release_first): Renamed to ...
|
|
|
|
|
(record_full_list_release_first): ... this. Updated all users.
|
|
|
|
|
(record_arch_list_add): Renamed to ...
|
|
|
|
|
(record_full_arch_list_add): ... this. Updated all users.
|
|
|
|
|
(record_get_loc): Renamed to ...
|
|
|
|
|
(record_full_get_loc): ... this. Updated all users.
|
|
|
|
|
(record_check_insn_num): Renamed to ...
|
|
|
|
|
(record_full_check_insn_num): ... this. Updated all users.
|
|
|
|
|
(record_arch_list_cleanups): Renamed to ...
|
|
|
|
|
(record_full_arch_list_cleanups): ... this. Updated all users.
|
|
|
|
|
(record_message): Renamed to ...
|
|
|
|
|
(record_full_message): ... this. Updated all users.
|
|
|
|
|
(record_message_wrapper): Renamed to ...
|
|
|
|
|
(record_full_message_wrapper): ... this. Updated all users.
|
|
|
|
|
(record_message_wrapper_safe): Renamed to ...
|
|
|
|
|
(record_full_message_wrapper_safe): ... this. Updated all users.
|
|
|
|
|
(record_gdb_operation_disable): Renamed to ...
|
|
|
|
|
(record_full_gdb_operation_disable): ... this. Updated all users.
|
|
|
|
|
(record_hw_watchpoint): Renamed to ...
|
|
|
|
|
(record_full_hw_watchpoint): ... this. Updated all users.
|
|
|
|
|
(record_exec_insn): Renamed to ...
|
|
|
|
|
(record_full_exec_insn): ... this. Updated all users.
|
|
|
|
|
(record_restore): Renamed to ...
|
|
|
|
|
(record_full_restore): ... this. Updated all users.
|
|
|
|
|
(record_async_inferior_event_token): Renamed to ...
|
|
|
|
|
(record_full_async_inferior_event_token): ... this.
|
|
|
|
|
Updated all users.
|
|
|
|
|
(record_async_inferior_event_handler): Renamed to ...
|
|
|
|
|
(record_full_async_inferior_event_handler): ... this.
|
|
|
|
|
Updated all users.
|
|
|
|
|
(record_core_open_1): Renamed to ...
|
|
|
|
|
(record_full_core_open_1): ... this. Updated all users.
|
|
|
|
|
(record_open_1): Renamed to ...
|
|
|
|
|
(record_full_open_1): ... this. Updated all users.
|
|
|
|
|
(record_open): Renamed to ...
|
|
|
|
|
(record_full_open): ... this. Updated all users.
|
|
|
|
|
(record_close): Renamed to ...
|
|
|
|
|
(record_full_close): ... this. Updated all users.
|
|
|
|
|
(record_resume_step): Renamed to ...
|
|
|
|
|
(record_full_resume_step): ... this. Updated all users.
|
|
|
|
|
(record_resumed): Renamed to ...
|
|
|
|
|
(record_full_resumed): ... this. Updated all users.
|
|
|
|
|
(record_execution_dir): Renamed to ...
|
|
|
|
|
(record_full_execution_dir): ... this. Updated all users.
|
|
|
|
|
(record_resume): Renamed to ...
|
|
|
|
|
(record_full_resume): ... this. Updated all users.
|
|
|
|
|
(record_get_sig): Renamed to ...
|
|
|
|
|
(record_full_get_sig): ... this. Updated all users.
|
|
|
|
|
(record_sig_handler): Renamed to ...
|
|
|
|
|
(record_full_sig_handler): ... this. Updated all users.
|
|
|
|
|
(record_wait_cleanups): Renamed to ...
|
|
|
|
|
(record_full_wait_cleanups): ... this. Updated all users.
|
|
|
|
|
(record_wait_1): Renamed to ...
|
|
|
|
|
(record_full_wait_1): ... this. Updated all users.
|
|
|
|
|
(record_wait): Renamed to ...
|
|
|
|
|
(record_full_wait): ... this. Updated all users.
|
|
|
|
|
(record_stopped_by_watchpoint): Renamed to ...
|
|
|
|
|
(record_full_stopped_by_watchpoint): ... this. Updated all users.
|
|
|
|
|
(record_disconnect): Renamed to ...
|
|
|
|
|
(record_full_disconnect): ... this. Updated all users.
|
|
|
|
|
(record_detach): Renamed to ...
|
|
|
|
|
(record_full_detach): ... this. Updated all users.
|
|
|
|
|
(record_mourn_inferior): Renamed to ...
|
|
|
|
|
(record_full_mourn_inferior): ... this. Updated all users.
|
|
|
|
|
(record_kill): Renamed to ...
|
|
|
|
|
(record_full_kill): ... this. Updated all users.
|
|
|
|
|
(record_stopped_data_address): Renamed to ...
|
|
|
|
|
(record_full_stopped_data_address): ... this. Updated all users.
|
|
|
|
|
(record_registers_change): Renamed to ...
|
|
|
|
|
(record_full_registers_change): ... this. Updated all users.
|
|
|
|
|
(record_store_registers): Renamed to ...
|
|
|
|
|
(record_full_store_registers): ... this. Updated all users.
|
|
|
|
|
(record_xfer_partial): Renamed to ...
|
|
|
|
|
(record_full_xfer_partial): ... this. Updated all users.
|
|
|
|
|
(record_breakpoint): Renamed to ...
|
|
|
|
|
(record_full_breakpoint): ... this. Updated all users.
|
|
|
|
|
(record_breakpoint_p): Renamed to ...
|
|
|
|
|
(record_full_breakpoint_p): ... this. Updated all users.
|
|
|
|
|
(record_breakpoints): Renamed to ...
|
|
|
|
|
(record_full_breakpoints): ... this. Updated all users.
|
|
|
|
|
(record_sync_record_breakpoints): Renamed to ...
|
|
|
|
|
(record_full_sync_record_breakpoints): ... this.
|
|
|
|
|
Updated all users.
|
|
|
|
|
(record_init_record_breakpoints): Renamed to ...
|
|
|
|
|
(record_full_init_record_breakpoints): ... this.
|
|
|
|
|
Updated all users.
|
|
|
|
|
(record_insert_breakpoint): Renamed to ...
|
|
|
|
|
(record_full_insert_breakpoint): ... this. Updated all users.
|
|
|
|
|
(record_remove_breakpoint): Renamed to ...
|
|
|
|
|
(record_full_remove_breakpoint): ... this. Updated all users.
|
|
|
|
|
(record_can_execute_reverse): Renamed to ...
|
|
|
|
|
(record_full_can_execute_reverse): ... this. Updated all users.
|
|
|
|
|
(record_get_bookmark): Renamed to ...
|
|
|
|
|
(record_full_get_bookmark): ... this. Updated all users.
|
|
|
|
|
(record_goto_bookmark): Renamed to ...
|
|
|
|
|
(record_full_goto_bookmark): ... this. Updated all users.
|
|
|
|
|
(record_async): Renamed to ...
|
|
|
|
|
(record_full_async): ... this. Updated all users.
|
|
|
|
|
(record_can_async_p): Renamed to ...
|
|
|
|
|
(record_full_can_async_p): ... this. Updated all users.
|
|
|
|
|
(record_is_async_p): Renamed to ...
|
|
|
|
|
(record_full_is_async_p): ... this. Updated all users.
|
|
|
|
|
(record_execution_direction): Renamed to ...
|
|
|
|
|
(record_full_execution_direction): ... this. Updated all users.
|
|
|
|
|
(record_info): Renamed to ...
|
|
|
|
|
(record_full_info): ... this. Updated all users.
|
|
|
|
|
(record_delete): Renamed to ...
|
|
|
|
|
(record_full_delete): ... this. Updated all users.
|
|
|
|
|
(record_is_replaying): Renamed to ...
|
|
|
|
|
(record_full_is_replaying): ... this. Updated all users.
|
|
|
|
|
(record_goto_entry): Renamed to ...
|
|
|
|
|
(record_full_goto_entry): ... this. Updated all users.
|
|
|
|
|
(record_goto_begin): Renamed to ...
|
|
|
|
|
(record_full_goto_begin): ... this. Updated all users.
|
|
|
|
|
(record_goto_end): Renamed to ...
|
|
|
|
|
(record_full_goto_end): ... this. Updated all users.
|
|
|
|
|
(record_goto): Renamed to ...
|
|
|
|
|
(record_full_goto): ... this. Updated all users.
|
|
|
|
|
(init_record_ops): Renamed to ...
|
|
|
|
|
(init_record_full_ops): ... this. Updated all users.
|
|
|
|
|
(record_core_resume): Renamed to ...
|
|
|
|
|
(record_full_core_resume): ... this. Updated all users.
|
|
|
|
|
(record_core_kill): Renamed to ...
|
|
|
|
|
(record_full_core_kill): ... this. Updated all users.
|
|
|
|
|
(record_core_fetch_registers): Renamed to ...
|
|
|
|
|
(record_full_core_fetch_registers): ... this. Updated all users.
|
|
|
|
|
(record_core_prepare_to_store): Renamed to ...
|
|
|
|
|
(record_full_core_prepare_to_store): ... this. Updated all users.
|
|
|
|
|
(record_core_store_registers): Renamed to ...
|
|
|
|
|
(record_full_core_store_registers): ... this. Updated all users.
|
|
|
|
|
(record_core_xfer_partial): Renamed to ...
|
|
|
|
|
(record_full_core_xfer_partial): ... this. Updated all users.
|
|
|
|
|
(record_core_insert_breakpoint): Renamed to ...
|
|
|
|
|
(record_full_core_insert_breakpoint): ... this. Updated all users.
|
|
|
|
|
(record_core_remove_breakpoint): Renamed to ...
|
|
|
|
|
(record_full_core_remove_breakpoint): ... this. Updated all users.
|
|
|
|
|
(record_core_has_execution): Renamed to ...
|
|
|
|
|
(record_full_core_has_execution): ... this. Updated all users.
|
|
|
|
|
(init_record_core_ops): Renamed to ...
|
|
|
|
|
(init_record_full_core_ops): ... this. Updated all users.
|
|
|
|
|
(cmd_record_restore): Renamed to ...
|
|
|
|
|
(cmd_record_full_restore): ... this. Updated all users.
|
|
|
|
|
(record_save_cleanups): Renamed to ...
|
|
|
|
|
(record_full_save_cleanups): ... this. Updated all users.
|
|
|
|
|
(cmd_record_start): Renamed to ...
|
|
|
|
|
(cmd_record_full_start): ... this. Updated all users.
|
|
|
|
|
(set_record_insn_max_num): Renamed to ...
|
|
|
|
|
(set_record_full_insn_max_num): ... this. Updated all users.
|
|
|
|
|
(set_record_command): Renamed to ...
|
|
|
|
|
(set_record_full_command): ... this. Updated all users.
|
|
|
|
|
(show_record_command): Renamed to ...
|
|
|
|
|
(show_record_full_command): ... this. Updated all users.
|
|
|
|
|
(_initialize_record): Renamed to ...
|
|
|
|
|
(_initialize_record_full): ... this. Updated all users.
|
|
|
|
|
|
Split record.h into record.h and record-full.h.
Split record.c into record.c and record-full.c.
The split leaves the command part in record.c and moves the target part into
record-full.c.
gdb/
* record.h: Split into this and ...
* record-full.h: ... this.
* record.c: Split into this and ...
* record-full.c: ... this.
* target.h (target_ops): Add new fields to_info_record,
to_save_record, to_delete_record, to_record_is_replaying,
to_goto_record_begin, to_goto_record_end, to_goto_record.
(target_info_record): New.
(target_save_record): New.
(target_supports_delete_record): New.
(target_delete_record): New.
(target_record_is_replaying): New.
(target_goto_record_begin): New.
(target_goto_record_end): New.
(target_goto_record): New.
* target.c (target_info_record): New.
(target_save_record): New.
(target_supports_delete_record): New.
(target_delete_record): New.
(target_record_is_replaying): New.
(target_goto_record_begin): New.
(target_goto_record_end): New.
(target_goto_record): New.
* record.h: Declare struct cmd_list_element.
(record_cmdlist): New declaration.
(set_record_cmdlist): New declaration.
(show_record_cmdlist): New declaration.
(info_record_cmdlist): New declaration.
(cmd_record_goto): New declaration.
* record.c: Remove unnecessary includes.
Include inferior.h.
(cmd_record_goto): Remove declaration.
(record_cmdlist): Now extern. Initialize.
(set_record_cmdlist): Now extern. Initialize.
(show_record_cmdlist): Now extern. Initialize.
(info_record_cmdlist): Now extern. Initialize.
(find_record_target): New.
(require_record_target): New.
(cmd_record_start): Update.
(cmd_record_delete): Remove target-specific code.
Call target_delete_record.
(cmd_record_stop): Unpush any record target.
(set_record_insn_max_num): Move to record-full.c
(set_record_command): Add comment.
(show_record_command): Add comment.
(info_record_command): Update comment.
Remove target-specific code.
Call the record target's to_info_record.
(cmd_record_start): New.
(cmd_record_goto): Now extern.
Remove target-specific code.
Call target_goto_begin, target_goto_end, or target_goto.
(_initialize_record): Move record target ops initialization to
record-full.c.
Change "record" command help text.
Move "record restore", "record set", and "record show" commands to
record-full.c.
* Makefile.in (SFILES): Add record-full.c.
(HFILES_NO_SRCDIR): Add record-full.h.
(COMMON_OBS): Add record-full.o.
* amd64-linux-tdep.c: Include record-full.h instead of record.h.
* arm-tdep.c: Include record-full.h.
* i386-linux-tdep.c: Include record-full.h instead of record.h.
* i386-tdep.c: Include record-full.h.
* infrun.c: Include record-full.h.
* linux-record.c: Include record-full.h.
* moxie-tdep.c: Include record-full.h.
* record-full.c: Include record-full.h.
Change module comment.
(set_record_full_cmdlist): New.
(show_record_full_cmdlist): New.
(record_full_cmdlist): New.
(record_goto_insn): New declaration.
(record_save): New declaration.
(record_check_insn_num): Change query string.
(record_info): New.
(record_delete): New.
(record_is_replaying): New.
(record_goto_entry): New.
(record_goto_begin): New.
(record_goto_end): New.
(record_goto): New.
(init_record_ops): Update.
(init_record_core_ops): Update.
(cmd_record_save): Rename to record_save. Remove target and arg checks.
(cmd_record_start): New.
(set_record_insn_max_num): Moved from record.c
(set_record_full_command): New.
(show_record_full_command): New.
(_initialize_record_full): New.
2013-03-11 08:42:55 +00:00
|
|
|
|
2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
|
|
|
|
|
|
|
|
|
|
* record.h: Split into this and ...
|
|
|
|
|
* record-full.h: ... this.
|
|
|
|
|
* record.c: Split into this and ...
|
|
|
|
|
* record-full.c: ... this.
|
|
|
|
|
* target.h (target_ops): Add new fields to_info_record,
|
|
|
|
|
to_save_record, to_delete_record, to_record_is_replaying,
|
|
|
|
|
to_goto_record_begin, to_goto_record_end, to_goto_record.
|
|
|
|
|
(target_info_record): New.
|
|
|
|
|
(target_save_record): New.
|
|
|
|
|
(target_supports_delete_record): New.
|
|
|
|
|
(target_delete_record): New.
|
|
|
|
|
(target_record_is_replaying): New.
|
|
|
|
|
(target_goto_record_begin): New.
|
|
|
|
|
(target_goto_record_end): New.
|
|
|
|
|
(target_goto_record): New.
|
|
|
|
|
* target.c (target_info_record): New.
|
|
|
|
|
(target_save_record): New.
|
|
|
|
|
(target_supports_delete_record): New.
|
|
|
|
|
(target_delete_record): New.
|
|
|
|
|
(target_record_is_replaying): New.
|
|
|
|
|
(target_goto_record_begin): New.
|
|
|
|
|
(target_goto_record_end): New.
|
|
|
|
|
(target_goto_record): New.
|
|
|
|
|
* record.h: Declare struct cmd_list_element.
|
|
|
|
|
(record_cmdlist): New declaration.
|
|
|
|
|
(set_record_cmdlist): New declaration.
|
|
|
|
|
(show_record_cmdlist): New declaration.
|
|
|
|
|
(info_record_cmdlist): New declaration.
|
|
|
|
|
(cmd_record_goto): New declaration.
|
|
|
|
|
* record.c: Remove unnecessary includes.
|
|
|
|
|
Include inferior.h.
|
|
|
|
|
(cmd_record_goto): Remove declaration.
|
|
|
|
|
(record_cmdlist): Now extern. Initialize.
|
|
|
|
|
(set_record_cmdlist): Now extern. Initialize.
|
|
|
|
|
(show_record_cmdlist): Now extern. Initialize.
|
|
|
|
|
(info_record_cmdlist): Now extern. Initialize.
|
|
|
|
|
(find_record_target): New.
|
|
|
|
|
(require_record_target): New.
|
|
|
|
|
(cmd_record_start): Update.
|
|
|
|
|
(cmd_record_delete): Remove target-specific code.
|
|
|
|
|
Call target_delete_record.
|
|
|
|
|
(cmd_record_stop): Unpush any record target.
|
|
|
|
|
(set_record_insn_max_num): Move to record-full.c
|
|
|
|
|
(set_record_command): Add comment.
|
|
|
|
|
(show_record_command): Add comment.
|
|
|
|
|
(info_record_command): Update comment.
|
|
|
|
|
Remove target-specific code.
|
|
|
|
|
Call the record target's to_info_record.
|
|
|
|
|
(cmd_record_start): New.
|
|
|
|
|
(cmd_record_goto): Now extern.
|
|
|
|
|
Remove target-specific code.
|
|
|
|
|
Call target_goto_begin, target_goto_end, or target_goto.
|
|
|
|
|
(_initialize_record): Move record target ops initialization to
|
|
|
|
|
record-full.c.
|
|
|
|
|
Change "record" command help text.
|
|
|
|
|
Move "record restore", "record set", and "record show" commands to
|
|
|
|
|
record-full.c.
|
|
|
|
|
* Makefile.in (SFILES): Add record-full.c.
|
|
|
|
|
(HFILES_NO_SRCDIR): Add record-full.h.
|
|
|
|
|
(COMMON_OBS): Add record-full.o.
|
|
|
|
|
* amd64-linux-tdep.c: Include record-full.h instead of record.h.
|
|
|
|
|
* arm-tdep.c: Include record-full.h.
|
|
|
|
|
* i386-linux-tdep.c: Include record-full.h instead of record.h.
|
|
|
|
|
* i386-tdep.c: Include record-full.h.
|
|
|
|
|
* infrun.c: Include record-full.h.
|
|
|
|
|
* linux-record.c: Include record-full.h.
|
|
|
|
|
* moxie-tdep.c: Include record-full.h.
|
|
|
|
|
* record-full.c: Include record-full.h.
|
|
|
|
|
Change module comment.
|
|
|
|
|
(set_record_full_cmdlist): New.
|
|
|
|
|
(show_record_full_cmdlist): New.
|
|
|
|
|
(record_full_cmdlist): New.
|
|
|
|
|
(record_goto_insn): New declaration.
|
|
|
|
|
(record_save): New declaration.
|
|
|
|
|
(record_check_insn_num): Change query string.
|
|
|
|
|
(record_info): New.
|
|
|
|
|
(record_delete): New.
|
|
|
|
|
(record_is_replaying): New.
|
|
|
|
|
(record_goto_entry): New.
|
|
|
|
|
(record_goto_begin): New.
|
|
|
|
|
(record_goto_end): New.
|
|
|
|
|
(record_goto): New.
|
|
|
|
|
(init_record_ops): Update.
|
|
|
|
|
(init_record_core_ops): Update.
|
|
|
|
|
(cmd_record_save): Rename to record_save. Remove target and arg checks.
|
|
|
|
|
(cmd_record_start): New.
|
|
|
|
|
(set_record_insn_max_num): Moved from record.c
|
|
|
|
|
(set_record_full_command): New.
|
|
|
|
|
(show_record_full_command): New.
|
|
|
|
|
(_initialize_record_full): New.
|
|
|
|
|
|
2013-03-11 08:39:38 +00:00
|
|
|
|
2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
|
|
|
|
|
|
|
|
|
|
* target.h (add_deprecated_target_alias): New.
|
|
|
|
|
* target.c (add_deprecated_target_alias): New.
|
|
|
|
|
|
2013-03-11 08:38:27 +00:00
|
|
|
|
2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
|
|
|
|
|
|
|
|
|
|
* common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
|
|
|
|
|
and signal.h.
|
|
|
|
|
(linux_supports_btrace): Add kernel and
|
|
|
|
|
cpuid check.
|
|
|
|
|
(kernel_supports_btrace): New function.
|
|
|
|
|
(cpu_supports_btrace): New function.
|
|
|
|
|
(intel_supports_btrace): New function.
|
|
|
|
|
|
2013-03-11 08:35:11 +00:00
|
|
|
|
2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
|
|
|
|
|
|
|
|
|
|
* target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
|
|
|
|
|
* remote.c: Include btrace.h.
|
|
|
|
|
(struct btrace_target_info): New struct.
|
|
|
|
|
(remote_supports_btrace): New function.
|
|
|
|
|
(send_Qbtrace): New function.
|
|
|
|
|
(remote_enable_btrace): New function.
|
|
|
|
|
(remote_disable_btrace): New function.
|
|
|
|
|
(remote_teardown_btrace): New function.
|
|
|
|
|
(remote_read_btrace): New function.
|
|
|
|
|
(init_remote_ops): Add btrace ops.
|
|
|
|
|
(enum <unnamed>): Add btrace packets.
|
|
|
|
|
(struct protocol_feature remote_protocol_features[]): Add btrace packets.
|
|
|
|
|
(_initialize_remote): Add packet configuration for branch tracing.
|
|
|
|
|
|
2013-03-11 08:28:58 +00:00
|
|
|
|
2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
|
|
|
|
|
|
|
|
|
|
* features/btrace.dtd: New file.
|
|
|
|
|
* Makefile.in (XMLFILES): Add btrace.dtd.
|
|
|
|
|
* btrace.h (parse_xml_btrace): New declaration.
|
|
|
|
|
* btrace.c: Include xml-support.h.
|
|
|
|
|
(parse_xml_btrace): New function.
|
|
|
|
|
(parse_xml_btrace_block): New function.
|
|
|
|
|
(block_attributes): New struct.
|
|
|
|
|
(btrace_attributes): New struct.
|
|
|
|
|
(btrace_children): New struct.
|
|
|
|
|
(btrace_elements): New struct.
|
|
|
|
|
|
2013-03-11 08:25:58 +00:00
|
|
|
|
2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
|
|
|
|
|
|
|
|
|
|
* amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
|
|
|
|
|
(amd64_linux_enable_btrace): New.
|
|
|
|
|
(amd64_linux_disable_btrace): New.
|
|
|
|
|
(amd64_linux_teardown_btrace): New.
|
|
|
|
|
(_initialize_amd64_linux_nat): Initialize btrace ops.
|
|
|
|
|
* i386-linux.nat.c: Include btrace.h and linux-btrace.h.
|
|
|
|
|
(i386_linux_enable_btrace): New.
|
|
|
|
|
(i386_linux_disable_btrace): New.
|
|
|
|
|
(i386_linux_teardown_btrace): New.
|
|
|
|
|
(_initialize_i386_linux_nat): Initialize btrace ops.
|
|
|
|
|
* config/i386/linux.mh: Add linux-btrace.o.
|
|
|
|
|
* config/i386/linux64.mh: Add linux-btrace.o.
|
|
|
|
|
|
2013-03-11 08:24:07 +00:00
|
|
|
|
2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
|
|
|
|
|
|
|
|
|
|
* common/linux_btrace.h: New file.
|
|
|
|
|
* common/linux_btrace.c: New file.
|
|
|
|
|
* Makefile.in (SFILES): Add btrace.c.
|
|
|
|
|
(HFILES_NO_SRCDIR): Add common/linux-btrace.h.
|
|
|
|
|
(COMMON_OBS): Add btrace.o.
|
|
|
|
|
(linux-btrace.o): New rule.
|
|
|
|
|
|
2013-03-11 08:19:33 +00:00
|
|
|
|
2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
|
2013-03-11 08:17:08 +00:00
|
|
|
|
|
|
|
|
|
* target.h: Include btrace.h.
|
|
|
|
|
(struct target_ops) <to_supports_btrace, to_enable_btrace,
|
|
|
|
|
to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
|
|
|
|
|
* target.c (target_supports_btrace): New function.
|
|
|
|
|
(target_enable_btrace): New function.
|
|
|
|
|
(target_disable_btrace): New function.
|
|
|
|
|
(target_teardown_btrace): New function.
|
|
|
|
|
(target_read_btrace): New function.
|
|
|
|
|
* btrace.h: New file.
|
|
|
|
|
* btrace.c: New file.
|
|
|
|
|
* Makefile.in: Add btrace.c.
|
|
|
|
|
* gdbthread.h: Include btrace.h.
|
|
|
|
|
(struct thread_info): Add btrace field.
|
|
|
|
|
* thread.c: Include btrace.h.
|
|
|
|
|
(clear_thread_inferior_resources): Call target_teardown_btrace.
|
|
|
|
|
* common/btrace-common.h: New file.
|
|
|
|
|
|
2013-03-10 18:07:57 +00:00
|
|
|
|
2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
|
|
|
|
|
for CHILD, ignore PTRACE_KILL errors, move the inner block variable
|
|
|
|
|
kill_status to outer block.
|
|
|
|
|
|
2013-03-10 18:06:26 +00:00
|
|
|
|
2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
Fix entry-values if the callee called a noreturn function.
|
|
|
|
|
* dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
|
|
|
|
|
get_frame_address_in_block. Add new comment.
|
|
|
|
|
|
2013-03-10 18:04:00 +00:00
|
|
|
|
2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
Fix entry-values in C++ across CUs.
|
|
|
|
|
* dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
|
|
|
|
|
lookup_minimal_symbol. Add a comment.
|
|
|
|
|
* dwarf2read.c
|
|
|
|
|
(read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
|
|
|
|
|
DW_AT_linkage_name.
|
|
|
|
|
|
2013-03-08 15:35:06 +00:00
|
|
|
|
2013-03-08 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* tracepoint.c (_initialize_tracepoint): Indent the code.
|
|
|
|
|
|
2013-03-08 15:22:44 +00:00
|
|
|
|
2013-03-08 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
|
|
|
|
|
(parse_find_args, find_command): Change type of pattern buffer
|
|
|
|
|
locals to 'gdb_byte *'.
|
|
|
|
|
|
2013-03-09 12:05:20 +00:00
|
|
|
|
2013-03-08 Stan Shebs <stan@codesourcery.com>
|
2013-03-08 15:06:39 +00:00
|
|
|
|
Hafiz Abid Qadeer <abidh@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention set and show trace-buffer-size commands.
|
|
|
|
|
Mention new packet.
|
|
|
|
|
* target.h (struct target_ops): New method
|
|
|
|
|
to_set_trace_buffer_size.
|
|
|
|
|
(target_set_trace_buffer_size): New macro.
|
|
|
|
|
* target.c (update_current_target): Set up new method.
|
|
|
|
|
* tracepoint.c (trace_buffer_size): New global.
|
|
|
|
|
(start_tracing): Send it to the target.
|
|
|
|
|
(set_trace_buffer_size): New function.
|
|
|
|
|
(_initialize_tracepoint): Add new setshow for trace-buffer-size.
|
|
|
|
|
* remote.c (remote_set_trace_buffer_size): New function.
|
|
|
|
|
(_initialize_remote): Use it.
|
|
|
|
|
(QTBuffer:size) New remote command.
|
|
|
|
|
(PACKET_QTBuffer_size): New enum.
|
|
|
|
|
(remote_protocol_features): Add an entry for
|
|
|
|
|
PACKET_QTBuffer_size.
|
|
|
|
|
|
2013-03-08 14:42:23 +00:00
|
|
|
|
2013-03-08 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
|
|
|
|
|
variable.
|
|
|
|
|
|
2013-03-07 23:53:12 +00:00
|
|
|
|
2013-03-07 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* target.c (target_read_stralloc, target_fileio_read_alloc):
|
|
|
|
|
*Cast pointer to 'gdb_byte *' in target call.
|
|
|
|
|
|
2013-03-07 23:36:01 +00:00
|
|
|
|
2013-03-07 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* corefile.c (read_memory_string): Cast pointer to gdb_byte* in
|
|
|
|
|
call.
|
|
|
|
|
|
2013-03-07 21:57:30 +00:00
|
|
|
|
2013-03-07 Keith Seitz <keiths@redhat.com>
|
|
|
|
|
|
|
|
|
|
* breakpoint.c (catch_syscall_split_args): Use skip_spaces.
|
|
|
|
|
(trace_pass_command): Likewise.
|
|
|
|
|
* cli/cli-cmds.c: Include cli/cli-utils.h.
|
|
|
|
|
(source_command): Use skip-spaces.
|
|
|
|
|
(disassemble_command): Likewise.
|
|
|
|
|
* findcmd.c: Include cli/cli-utils.h.
|
|
|
|
|
(parse_find_args): Use skip_spaces.
|
|
|
|
|
* go32-nat.c: Include cli/cli-utils.h.
|
|
|
|
|
(go32_sldt): Use skip_spaces.
|
|
|
|
|
(go32_sgdt): Likewise.
|
|
|
|
|
(go32_sidt): Likewise.
|
|
|
|
|
(go32_pde): Likewise.
|
|
|
|
|
(go32_pte): Likewise.
|
|
|
|
|
(go32_pte_for_address): Likewise.
|
|
|
|
|
* infcmd.c: Include cli/cli-utils.h.
|
|
|
|
|
(registers_info): Use skip_spaces.
|
|
|
|
|
* linux-tdep.c (read_mapping): Use skip_spaces_const.
|
|
|
|
|
(linux_info_proc): Likewise.
|
|
|
|
|
* linux-thread-db.c: Include cli/cli-utils.h.
|
|
|
|
|
(info_auto_load_libthread_db): Use skip_spaces_const.
|
|
|
|
|
* m32r-rom.c: Include cli/cli-utils.h.
|
|
|
|
|
(m32r_upload_command): Use skip_spaces.
|
|
|
|
|
* maint.c: Include cli/cli-utils.h.
|
|
|
|
|
(maintenance_translate_address): Use skip_spaces.
|
|
|
|
|
* mi/mi-parse.c: Include cli/cli-utils.h.
|
|
|
|
|
(mi_parse_argv): Use skip_spaces.
|
|
|
|
|
(mi_parse): Likewise.
|
|
|
|
|
* minsyms.c: Include cli/cli-utils.h.
|
|
|
|
|
(msymbol_hash_iw): Use skip_spaces_const.
|
|
|
|
|
* objc-lang.c: Include cli/cli-utils.h.
|
|
|
|
|
(parse_selector): Use skip_spaces.
|
|
|
|
|
(parse_method): Likewise.
|
|
|
|
|
* python/python.c: Include cli/cli-utils.h.
|
|
|
|
|
(python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
|
|
|
|
|
(python_command)[HAVE_PYTHON]: Likewise.
|
|
|
|
|
(python_interactive_command)[!HAVE_PYTHON]: Likewise.
|
|
|
|
|
* remote-m32r-sdi.c: Include cli/cli-utils.h.
|
|
|
|
|
(m32r_load): Use skip_spaces.
|
|
|
|
|
* serial.c: Include cli/cli-utils.h.
|
|
|
|
|
(serial_open): Use skip_spaces_const.
|
|
|
|
|
* stack.c: Include cli/cli-utils.h.
|
|
|
|
|
(parse_frame_specification_1): Use skip_spaces_const.
|
|
|
|
|
* symfile.c: Include cli/cli-utils.h.
|
|
|
|
|
(set_ext_lang_command): Use skip_spaces.
|
|
|
|
|
* symtab.c: Include cli/cli-utils.h.
|
|
|
|
|
(rbreak_command): Use skip_spaces.
|
|
|
|
|
* thread.c (thread_name_command): Use skip_spaces.
|
|
|
|
|
* tracepoint.c (validate_actionline): Use skip_spaces.
|
|
|
|
|
(encode_actions_1): Likewise.
|
|
|
|
|
(trace_find_range_command): Likewise.
|
|
|
|
|
(trace_find_outside_command): Likewise.
|
|
|
|
|
(trace_dump_actions): Likewise.
|
|
|
|
|
|
2013-03-07 19:24:32 +00:00
|
|
|
|
2013-03-07 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* c-lang.c (parse_one_string): Cast argument to gdb_byte *.
|
|
|
|
|
* expprint.c (print_subexp_standard): Likewise.
|
|
|
|
|
* utils.c (host_char_to_target): Likewise.
|
|
|
|
|
* valprint.c (generic_emit_char, generic_printstr): Likewise.
|
|
|
|
|
* varobj.c (value_get_print_value): Change type of local to char*.
|
|
|
|
|
Cast it gdb_byte * in call to language printer.
|
|
|
|
|
|
2013-03-07 19:10:46 +00:00
|
|
|
|
2013-03-07 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* charset.c (struct wchar_iterator) <input>: Change type to 'const
|
|
|
|
|
gdb_byte *'.
|
|
|
|
|
(make_wchar_iterator): Remove cast to char*.
|
|
|
|
|
(wchar_iterate): Change type of local.
|
|
|
|
|
|
2013-03-07 18:59:54 +00:00
|
|
|
|
2013-03-07 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
|
|
|
|
|
for 'regcache->register_status'.
|
|
|
|
|
|
2013-03-07 18:50:53 +00:00
|
|
|
|
2013-03-07 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
2013-03-07 18:53:40 +00:00
|
|
|
|
* breakpoint.c (breakpoint_xfer_memory): Change type of local to
|
2013-03-07 18:50:53 +00:00
|
|
|
|
int.
|
|
|
|
|
|
2013-03-07 18:45:51 +00:00
|
|
|
|
2013-03-07 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* stap-probe.c (handle_stap_probe): Add cast to char*.
|
|
|
|
|
|
2013-03-07 18:29:05 +00:00
|
|
|
|
2013-03-07 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
|
|
|
|
|
RECORD_MSGRCV>: Pass a signed variable to
|
|
|
|
|
regcache_raw_read_signed, instead of an unsigned one.
|
|
|
|
|
|
2013-03-07 17:52:58 +00:00
|
|
|
|
2013-03-07 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* remote-notif.c (notif_debug): Change type to int.
|
|
|
|
|
* remote-notif.h (notif_debug): Likewise.
|
|
|
|
|
|
2013-03-07 17:36:25 +00:00
|
|
|
|
2013-03-07 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
|
|
|
|
|
|
2013-03-07 17:29:32 +00:00
|
|
|
|
2013-03-07 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* remote.c (hex2bin, bin2hex): Move extern declarations to ...
|
|
|
|
|
* remote.h (hex2bin, bin2hex): ... here.
|
|
|
|
|
* tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
|
|
|
|
|
|
2013-03-07 12:26:05 +00:00
|
|
|
|
2013-03-07 Eli Zaretskii <eliz@gnu.org>
|
|
|
|
|
|
|
|
|
|
* utils.c (initialize_utils): Improve doc strings of "set/show
|
|
|
|
|
width", "set/show height", and "set/show pagination".
|
|
|
|
|
|
2013-03-07 00:48:25 +00:00
|
|
|
|
2013-03-06 Keith Seitz <keiths@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ax-gdb.c (gen_printf): Make FORMAT const.
|
|
|
|
|
* ax-gdb.h (gen_printf): Likewise.
|
|
|
|
|
* ax-general.c (ax_string): Make STR const.
|
|
|
|
|
* ax.h (ax_string): Likewise.
|
|
|
|
|
|
2013-03-06 21:20:02 +00:00
|
|
|
|
2013-03-06 Doug Evans <dje@google.com>
|
|
|
|
|
|
|
|
|
|
* elfread.c (elf_symfile_read): Move debugging printf to more
|
|
|
|
|
logical location.
|
|
|
|
|
|
2013-03-06 19:51:18 +00:00
|
|
|
|
2013-03-06 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* python/py-utils.c (target_string_to_unicode): Delete function.
|
|
|
|
|
* python/python-internal.h (target_string_to_unicode): Delete
|
|
|
|
|
declaration.
|
|
|
|
|
|
2013-03-06 11:05:55 +00:00
|
|
|
|
2013-03-06 Pierre Muller <muller@sourceware.org>
|
|
|
|
|
|
|
|
|
|
* linespec.c (get_current_search_block): ARI fix, use (void)
|
|
|
|
|
for empty parameter list.
|
|
|
|
|
|
2013-03-05 21:15:34 +00:00
|
|
|
|
2013-03-05 Doug Evans <dje@google.com>
|
|
|
|
|
|
|
|
|
|
* ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
|
|
|
|
|
of old ada_lookup_symbol_list. In !full_search case, don't
|
|
|
|
|
search superblocks.
|
|
|
|
|
(ada_lookup_symbol_list): Delete arg full_search, all callers
|
|
|
|
|
updated. Call ada_lookup_symbol_list_worker.
|
|
|
|
|
(ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
|
|
|
|
|
* ada-lang.h (ada_lookup_symbol_list): Update.
|
|
|
|
|
* language.h (language_defn): Update comment for
|
|
|
|
|
la_iterate_over_symbols.
|
|
|
|
|
* linespec.c (iterate_over_file_blocks): New function.
|
|
|
|
|
(iterate_over_all_matching_symtabs): Call it.
|
|
|
|
|
(lookup_prefix_sym): Ditto.
|
|
|
|
|
(get_current_search_block): New function.
|
|
|
|
|
(get_search_block): Delete.
|
|
|
|
|
(find_label_symbols): Call get_current_search_block.
|
|
|
|
|
(add_matching_symbols_to_info): Call iterate_over_file_blocks.
|
|
|
|
|
* symtab.c (iterate_over_symbols): Don't search superblocks.
|
|
|
|
|
|
2013-03-05 14:23:23 +00:00
|
|
|
|
2013-03-05 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
|
|
|
|
|
parameter VAR's type from "unsigned int" to "int".
|
|
|
|
|
* command.h (var_zuinteger_unlimited): Update its comments.
|
|
|
|
|
(add_setshow_zuinteger_unlimited_cmd): Update the declaration.
|
|
|
|
|
|
2013-03-05 13:39:00 +00:00
|
|
|
|
2013-03-05 Corinna Vinschen <vinschen@redhat.de>
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention new target x86_64-*-cygwin*.
|
|
|
|
|
|
2013-03-05 13:37:11 +00:00
|
|
|
|
2013-03-05 Corinna Vinschen <vinschen@redhat.de>
|
|
|
|
|
|
|
|
|
|
* configure.host: Add x86_64-*-cygwin* as host.
|
|
|
|
|
* configure.tgt: Add x86_64-*-cygwin* as target.
|
|
|
|
|
* config/i386/cygwin64.mh: New file.
|
|
|
|
|
|
2013-03-04 19:38:02 +00:00
|
|
|
|
2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* linespec.c (decode_line_2): Fix duplicate request off by two message.
|
|
|
|
|
|
2013-03-04 19:30:28 +00:00
|
|
|
|
2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* linespec.c (struct linespec_canonical_name): New.
|
|
|
|
|
(struct linespec_state): Change canonical_names type to it.
|
|
|
|
|
(add_sal_to_sals): Change variable canonical_name to canonical. Change
|
|
|
|
|
xrealloc element size. Initialize the different CANONICAL fields.
|
|
|
|
|
(canonical_to_fullform): New.
|
|
|
|
|
(filter_results): Use it. Add variables canonical, fullform and
|
|
|
|
|
cleanup.
|
|
|
|
|
(struct decode_line_2_item, decode_line_2_compare_items): New.
|
|
|
|
|
(decode_line_2): Remove variables iter and item_names, add variables
|
|
|
|
|
items and items_count. Modify the code for these new variables.
|
|
|
|
|
|
2013-03-04 15:09:46 +00:00
|
|
|
|
2013-03-04 Corinna Vinschen <vinschen@redhat.com>
|
|
|
|
|
|
|
|
|
|
* coff-pe-read.c (read_pe_exported_syms): Don't return without
|
|
|
|
|
calling do_cleanup.
|
|
|
|
|
|
2013-03-04 13:52:46 +00:00
|
|
|
|
2013-03-04 Luis Machado <lgustavo@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* tracepoint.c (build_traceframe_info): Add code for byte order.
|
|
|
|
|
|
2013-03-02 18:26:30 +00:00
|
|
|
|
2013-03-02 Kevin Buettner <kevinb@redhat.com>
|
|
|
|
|
|
2013-03-02 18:34:13 +00:00
|
|
|
|
* v850-tdep.c: (v850e2_register_name): Revise system register
|
|
|
|
|
names to match current V850E2M architecture specifications.
|
|
|
|
|
Update register number enum comments too.
|
2013-03-02 18:26:30 +00:00
|
|
|
|
|
2013-03-02 01:34:40 +00:00
|
|
|
|
2013-03-01 Jiong Wang <jiwang@tilera.com>
|
|
|
|
|
Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
|
|
|
|
|
to END_ADDR.
|
|
|
|
|
(tilegx_skip_prologue): Limit prologue analysis to section end.
|
|
|
|
|
|
2013-03-01 21:18:21 +00:00
|
|
|
|
2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
|
|
|
|
|
use it.
|
|
|
|
|
|
Use gdb_byte for bytes from the program being debugged.
gdb_byte should be used for bytes from the program being debugged. We
have many places using char or unsigned char instead all over the
existing ports, and more ends up added over time due to copy/paste as
new code is based on old code.
I've greped the tree for "char buf[", and fixed all I found.
Tested by building with --enable-targets=all.
2013-03-01 Pedro Alves <palves@redhat.com>
Use gdb_byte for bytes from the program being debugged.
* arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
Change type of local 'buf' to gdb_byte.
* avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
* bfin-tdep.c (bfin_push_dummy_call): Likewise.
* cris-tdep.c (cris_sigcontext_addr)
(cris_sigtramp_frame_unwind_cache): Likewise.
* frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
(frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
Likewise.
* frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
* hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
(hppa32_hpux_search_dummy_call_sequence)
(hppa_hpux_supply_save_state): Likewise.
* hppa-linux-tdep.c (insns_match_pattern)
(hppa_linux_find_global_pointer): Likewise.
* hppa-tdep.c (hppa_in_function_epilogue_p)
(skip_prologue_hard_way, hppa_frame_cache): Likewise.
* i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
* i386fbsd-tdep.c (i386fbsd_supply_uthread)
(i386fbsd_collect_uthread): Likewise.
* ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
* ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
* ia64-tdep.c (examine_prologue, ia64_frame_cache)
(ia64_frame_prev_register, ia64_sigtramp_frame_cache)
(ia64_sigtramp_frame_prev_register, ia64_access_reg)
(ia64_access_rse_reg, ia64_libunwind_frame_this_id)
(ia64_libunwind_frame_prev_register)
(ia64_libunwind_sigtramp_frame_this_id)
(ia64_find_global_pointer_from_dynamic_section)
(find_extant_func_descr, find_func_descr, ia64_dummy_id)
(ia64_unwind_pc): Likewise.
* iq2000-tdep.c (iq2000_store_return_value): Likewise.
* m68hc11-tdep.c (m68hc11_push_dummy_call)
(m68hc11_extract_return_value): Likewise.
* m68klinux-nat.c (fetch_register, store_register): Likewise.
* mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
(mep_get_insn, mep_push_dummy_call): Likewise.
* mips-linux-tdep.c (mips_linux_get_longjmp_target)
(mips_linux_in_dynsym_stub): Likewise.
* mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
* ppc-linux-nat.c (fetch_register, store_register): Likewise.
* regcache.c (dump_endian_bytes): Change type of parameter 'buf'
to gdb_byte.
* remote-mips.c (mips_set_register): Likewise.
* remote-sim.c (gdbsim_fetch_register): Likewise.
* score-tdep.c (score7_fetch_inst): Change type of parameter
'memblock' and local 'buf' to gdb_byte.
(score7_malloc_and_get_memblock): Change return type to gdb_byte.
Change type of local 'buf' to gdb_byte. Adjust.
(score7_adjust_memblock_ptr): Change type of parameter 'memblock'
to gdb_byte**.
(score7_analyze_prologue): Change type of 'memblock' and
'memblock_ptr' locals to gdb_byte*.
* sh64-tdep.c (sh64_extract_return_value)
(sh64_store_return_value): Change type of local 'buf' to gdb_byte.
* solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
* solib-pa64.c (pa64_solib_create_inferior_hook)
(pa64_open_symbol_file_object): Remove local 'buf'.
* solib-som.c (som_solib_create_inferior_hook, link_map_start)
(som_open_symbol_file_object): Likewise.
* solib-spu.c (spu_current_sos): Likewise.
* spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
* spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
(spu_store_registers): Likewise.
* target.c (debug_print_register): Likewise.
* tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
* xstormy16-tdep.c (xstormy16_store_return_value)
(xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
(xstormy16_find_jmp_table_entry): Likewise.
2013-03-01 15:38:27 +00:00
|
|
|
|
2013-03-01 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
Use gdb_byte for bytes from the program being debugged.
|
|
|
|
|
|
|
|
|
|
* arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
|
|
|
|
|
Change type of local 'buf' to gdb_byte.
|
|
|
|
|
* avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
|
|
|
|
|
* bfin-tdep.c (bfin_push_dummy_call): Likewise.
|
|
|
|
|
* cris-tdep.c (cris_sigcontext_addr)
|
|
|
|
|
(cris_sigtramp_frame_unwind_cache): Likewise.
|
|
|
|
|
* frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
|
|
|
|
|
(frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
|
|
|
|
|
Likewise.
|
|
|
|
|
* frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
|
|
|
|
|
* hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
|
|
|
|
|
(hppa32_hpux_search_dummy_call_sequence)
|
|
|
|
|
(hppa_hpux_supply_save_state): Likewise.
|
|
|
|
|
* hppa-linux-tdep.c (insns_match_pattern)
|
|
|
|
|
(hppa_linux_find_global_pointer): Likewise.
|
|
|
|
|
* hppa-tdep.c (hppa_in_function_epilogue_p)
|
|
|
|
|
(skip_prologue_hard_way, hppa_frame_cache): Likewise.
|
|
|
|
|
* i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
|
|
|
|
|
* i386fbsd-tdep.c (i386fbsd_supply_uthread)
|
|
|
|
|
(i386fbsd_collect_uthread): Likewise.
|
|
|
|
|
* ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
|
|
|
|
|
* ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
|
|
|
|
|
* ia64-tdep.c (examine_prologue, ia64_frame_cache)
|
|
|
|
|
(ia64_frame_prev_register, ia64_sigtramp_frame_cache)
|
|
|
|
|
(ia64_sigtramp_frame_prev_register, ia64_access_reg)
|
|
|
|
|
(ia64_access_rse_reg, ia64_libunwind_frame_this_id)
|
|
|
|
|
(ia64_libunwind_frame_prev_register)
|
|
|
|
|
(ia64_libunwind_sigtramp_frame_this_id)
|
|
|
|
|
(ia64_find_global_pointer_from_dynamic_section)
|
|
|
|
|
(find_extant_func_descr, find_func_descr, ia64_dummy_id)
|
|
|
|
|
(ia64_unwind_pc): Likewise.
|
|
|
|
|
* iq2000-tdep.c (iq2000_store_return_value): Likewise.
|
|
|
|
|
* m68hc11-tdep.c (m68hc11_push_dummy_call)
|
|
|
|
|
(m68hc11_extract_return_value): Likewise.
|
|
|
|
|
* m68klinux-nat.c (fetch_register, store_register): Likewise.
|
|
|
|
|
* mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
|
|
|
|
|
(mep_get_insn, mep_push_dummy_call): Likewise.
|
|
|
|
|
* mips-linux-tdep.c (mips_linux_get_longjmp_target)
|
|
|
|
|
(mips_linux_in_dynsym_stub): Likewise.
|
|
|
|
|
* mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
|
|
|
|
|
* ppc-linux-nat.c (fetch_register, store_register): Likewise.
|
|
|
|
|
* regcache.c (dump_endian_bytes): Change type of parameter 'buf'
|
|
|
|
|
to gdb_byte.
|
|
|
|
|
* remote-mips.c (mips_set_register): Likewise.
|
|
|
|
|
* remote-sim.c (gdbsim_fetch_register): Likewise.
|
|
|
|
|
* score-tdep.c (score7_fetch_inst): Change type of parameter
|
|
|
|
|
'memblock' and local 'buf' to gdb_byte.
|
|
|
|
|
(score7_malloc_and_get_memblock): Change return type to gdb_byte.
|
|
|
|
|
Change type of local 'buf' to gdb_byte. Adjust.
|
|
|
|
|
(score7_adjust_memblock_ptr): Change type of parameter 'memblock'
|
|
|
|
|
to gdb_byte**.
|
|
|
|
|
(score7_analyze_prologue): Change type of 'memblock' and
|
|
|
|
|
'memblock_ptr' locals to gdb_byte*.
|
|
|
|
|
* sh64-tdep.c (sh64_extract_return_value)
|
|
|
|
|
(sh64_store_return_value): Change type of local 'buf' to gdb_byte.
|
|
|
|
|
* solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
|
|
|
|
|
* solib-pa64.c (pa64_solib_create_inferior_hook)
|
|
|
|
|
(pa64_open_symbol_file_object): Remove local 'buf'.
|
|
|
|
|
* solib-som.c (som_solib_create_inferior_hook, link_map_start)
|
|
|
|
|
(som_open_symbol_file_object): Likewise.
|
|
|
|
|
* solib-spu.c (spu_current_sos): Likewise.
|
|
|
|
|
* spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
|
|
|
|
|
* spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
|
|
|
|
|
(spu_store_registers): Likewise.
|
|
|
|
|
* target.c (debug_print_register): Likewise.
|
|
|
|
|
* tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
|
|
|
|
|
* xstormy16-tdep.c (xstormy16_store_return_value)
|
|
|
|
|
(xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
|
|
|
|
|
(xstormy16_find_jmp_table_entry): Likewise.
|
|
|
|
|
|
2013-03-01 11:02:23 +00:00
|
|
|
|
2013-03-01 Jiong Wang <jiwang@tilera.com>
|
2013-03-01 10:45:28 +00:00
|
|
|
|
|
|
|
|
|
* tilegx-tdep.c (tilegx_get_longjmp_target): New function.
|
|
|
|
|
(tilegx_gdbarch_init): Install it.
|
|
|
|
|
|
2013-02-28 20:14:08 +00:00
|
|
|
|
2013-02-28 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* python/py-arch.c (archpy_disassemble): Use PyInt_Check and
|
|
|
|
|
PyLong_Check.
|
|
|
|
|
|
2013-02-28 20:01:10 +00:00
|
|
|
|
2013-02-28 Doug Evans <dje@google.com>
|
|
|
|
|
|
|
|
|
|
* python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
|
|
|
|
|
* python/python.c (gdbpy_find_pc_line): Ditto.
|
|
|
|
|
|
2013-02-28 19:28:25 +00:00
|
|
|
|
2013-02-28 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* contrib/excheck.py: New file.
|
|
|
|
|
* contrib/exsummary.py: New file.
|
|
|
|
|
* contrib/gcc-with-excheck: New file.
|
|
|
|
|
|
2013-02-28 19:25:42 +00:00
|
|
|
|
2013-02-28 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* python/python.c (gdbpy_print_stack): Call begin_line and
|
|
|
|
|
fprintf_filtered inside TRY_CATCH.
|
|
|
|
|
|
2013-02-28 19:23:57 +00:00
|
|
|
|
2013-02-28 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* python/python.c (gdbpy_find_pc_line): Call find_pc_line
|
|
|
|
|
inside TRY_CATCH.
|
|
|
|
|
|
2013-02-28 19:21:44 +00:00
|
|
|
|
2013-02-28 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
|
|
|
|
|
frame_object_to_frame_info inside TRY_CATCH.
|
|
|
|
|
|
2013-02-28 19:01:54 +00:00
|
|
|
|
2013-02-28 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
|
|
|
|
|
TRY_CATCH.
|
|
|
|
|
|
2013-02-28 19:00:31 +00:00
|
|
|
|
2013-02-28 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
|
|
|
|
|
|
2013-02-27 19:42:26 +00:00
|
|
|
|
2013-02-27 Corinna Vinschen <vinschen@redhat.com>
|
|
|
|
|
|
|
|
|
|
* windows-nat.c: Throughout, fix format strings and casts of
|
|
|
|
|
printf-like functions to avoid type related warnings on all
|
|
|
|
|
platforms.
|
|
|
|
|
(handle_output_debug_string): Fetch context information address
|
|
|
|
|
from debug string using string_to_core_addr.
|
|
|
|
|
|
2013-02-27 14:58:18 +00:00
|
|
|
|
2013-02-27 Jiong Wang <jiwang@tilera.com>
|
|
|
|
|
|
|
|
|
|
* regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
|
|
|
|
|
* regformats/reg-tilegx32.dat: New.
|
|
|
|
|
|
2013-02-27 14:49:15 +00:00
|
|
|
|
2013-02-27 Jiong Wang <jiwang@tilera.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt (tilegx-*-linux*): Enable gdbserver.
|
|
|
|
|
|
2013-02-27 14:47:13 +00:00
|
|
|
|
2013-02-27 Jiong Wang <jiwang@tilera.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
|
|
|
|
|
|
2013-02-27 01:39:26 +00:00
|
|
|
|
2013-02-27 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* tracepoint.c (tfile_trace_find): For tfind
|
|
|
|
|
pc/tp/range/outside, look for the next trace frame instead of
|
|
|
|
|
always starting from frame 0.
|
|
|
|
|
|
2013-02-26 22:12:47 +00:00
|
|
|
|
2013-02-26 Anthony Green <green@moxielogic.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt: Add support for moxie-*-rtems* target.
|
|
|
|
|
|
2013-02-25 17:32:06 +00:00
|
|
|
|
2013-02-25 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
|
|
|
|
|
warning text.
|
|
|
|
|
|
2013-02-24 12:54:04 +00:00
|
|
|
|
2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
|
|
|
|
|
if $fp is used as the virtual frame pointer.
|
|
|
|
|
|
2013-02-22 23:24:24 +00:00
|
|
|
|
2013-02-23 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elfread.c (elf_symtab_read): Do not use udata.p here to find
|
|
|
|
|
symbol size.
|
|
|
|
|
* ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
|
|
|
|
|
* ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
|
|
|
|
|
* ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
|
|
|
|
|
* ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
|
|
|
|
|
|
2013-02-22 16:40:56 +00:00
|
|
|
|
2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
Code cleanup.
|
|
|
|
|
* elfread.c (build_id_bfd_get): Make the return type const.
|
|
|
|
|
(build_id_verify): Make the check parameter const.
|
|
|
|
|
(build_id_to_debug_filename): Make the build_id parameter and variable
|
|
|
|
|
data const.
|
|
|
|
|
(find_separate_debug_file_by_buildid): Make the variable build_id const.
|
|
|
|
|
|
bfd/
* elf-bfd.h (struct elf_build_id): Extracted from..
(struct elf_build_id_info): ..here. Delete.
(struct output_elf_obj_tdata): New, extracted from..
(struct elf_obj_tdata): ..here. Reorganize for better packing.
Add "o" field.
(elf_program_header_size): Reference tdata->o.
(elf_seg_map, elf_next_file_pos, elf_eh_frame_hdr, elf_linker,
elf_stack_flags, elf_shstrtab, elf_strtab_sec, elf_shstrtab_sec,
elf_section_syms, elf_num_section_syms, elf_flags_init): Likewise.
* elf.c (bfd_elf_allocate_object): Allocate output_elf_obj_tdata
when opening bfd in any mode that might write.
(_bfd_elf_write_object_contents): Use build_id field in
output_elf_obj_tdata.
(_bfd_elf_close_and_cleanup): Tweak elf_shstrtab test.
(elfobj_grok_gnu_build_id): Adjust for elf_tdata changes.
gdb/
* elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
ld/
* emultempl/elf32.em (write_build_id, setup_build_id): Adjust
for elf_tdata changes.
2013-02-21 04:35:22 +00:00
|
|
|
|
2013-02-21 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
|
|
|
|
|
|
2013-02-21 01:46:57 +00:00
|
|
|
|
2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
|
|
|
|
|
|
|
|
|
|
Add a new method 'disassemble' to gdb.Architecture class.
|
|
|
|
|
* python/py-arch.c (archpy_disassmble): Implementation of the
|
|
|
|
|
new method gdb.Architecture.disassemble.
|
|
|
|
|
(arch_object_methods): Add entry for the new method.
|
|
|
|
|
|
2013-02-20 07:45:14 +00:00
|
|
|
|
2013-02-20 Jiong Wang <jiwang@tilera.com>
|
|
|
|
|
|
|
|
|
|
* MAINTAINERS (Write After Approval): Add myself to the list.
|
|
|
|
|
|
2013-02-19 19:41:28 +00:00
|
|
|
|
2013-02-19 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
Garbage collect 'struct monitor_ops'::load_routine.
|
|
|
|
|
|
|
|
|
|
* monitor.h (struct monitor_ops) <load_routine>: Remove field.
|
|
|
|
|
* monitor.c (monitor_load): No longer call
|
|
|
|
|
current_monitor->load_routine.
|
|
|
|
|
* dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
|
|
|
|
|
* m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
|
|
|
|
|
* ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
|
|
|
|
|
|
2013-02-19 19:27:21 +00:00
|
|
|
|
2013-02-19 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR gdb/15161
|
|
|
|
|
|
|
|
|
|
Harmonize with generic_load.
|
|
|
|
|
|
|
|
|
|
* monitor.c: Include "readline/readline.h".
|
|
|
|
|
(monitor_load): Rename parameter 'file' to 'args'. Use build_argv
|
|
|
|
|
instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
|
|
|
|
|
long/strtol for the 'load_offset' local. Error out if no argument
|
|
|
|
|
is given or if too many arguments are given. Tilde expand the
|
|
|
|
|
passed in file name.
|
|
|
|
|
|
2013-02-19 18:31:49 +00:00
|
|
|
|
2013-02-19 Kai Tietz <ktietz@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR gdb/15161
|
|
|
|
|
* symfile.c (load_section_data): Change type of load_offset
|
|
|
|
|
to CORE_ADDR.
|
|
|
|
|
(generic_load): User strtoulst instead of strtoul for conversion
|
|
|
|
|
of load_offset.
|
|
|
|
|
|
2013-02-19 16:22:42 +00:00
|
|
|
|
2013-02-19 Jiong Wang <jiwang@tilera.com>
|
|
|
|
|
|
|
|
|
|
* tilegx-tdep.c (tilegx_analyze_prologue): add check for
|
|
|
|
|
for return address, "lr" register, saved on stack.
|
|
|
|
|
* tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
|
|
|
|
|
after we invoke tilegx_analyze_prologue.
|
|
|
|
|
|
2013-02-19 16:20:47 +00:00
|
|
|
|
2013-02-19 Jiong Wang <jiwang@tilera.com>
|
|
|
|
|
|
2013-02-19 16:21:29 +00:00
|
|
|
|
* tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
|
|
|
|
|
|
2013-02-19 16:22:42 +00:00
|
|
|
|
2013-02-19 Jiong Wang <jiwang@tilera.com>
|
2013-02-19 16:21:29 +00:00
|
|
|
|
|
2013-02-20 07:45:14 +00:00
|
|
|
|
* tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
|
2013-02-19 16:20:47 +00:00
|
|
|
|
|
2013-02-19 16:19:33 +00:00
|
|
|
|
2013-02-19 Jiong Wang <jiwang@tilera.com>
|
|
|
|
|
|
2013-02-20 07:45:14 +00:00
|
|
|
|
* tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
|
2013-02-19 16:19:33 +00:00
|
|
|
|
(tilegx_write_pc): New function.
|
|
|
|
|
(tilegx_cannot_reference_register): Return zero if REGNO
|
|
|
|
|
is TILEGX_FAULTNUM_REGNUM.
|
|
|
|
|
(tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
|
|
|
|
|
(tilegx_register_name): Add handling of "faultnum" register.
|
|
|
|
|
* tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
|
|
|
|
|
* tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
|
|
|
|
|
handling of TILEGX_FAULTNUM_REGNUM.
|
|
|
|
|
* tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
|
|
|
|
|
|
2013-02-19 16:09:13 +00:00
|
|
|
|
2013-02-19 Jiong Wang <jiwang@tilera.com>
|
|
|
|
|
|
|
|
|
|
* tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
|
2013-02-20 07:45:14 +00:00
|
|
|
|
should be aligned to 64bit.
|
2013-02-19 16:09:13 +00:00
|
|
|
|
|
2013-02-19 15:46:32 +00:00
|
|
|
|
2013-02-19 Kai Tietz <ktietz@redhat.com>
|
|
|
|
|
|
|
|
|
|
* windows-nat.c (windows_xfer_memory): Fix debug-output
|
|
|
|
|
for LLP64.
|
|
|
|
|
|
2013-02-19 07:50:30 +00:00
|
|
|
|
2013-02-19 Lei Liu <lei.liu2@windriver.com>
|
|
|
|
|
|
|
|
|
|
* mips-linux-nat.c (mips64_linux_regsets_store_registers):
|
|
|
|
|
Don't check DSP register number if HAVE_DSP is not set.
|
|
|
|
|
|
2013-02-18 23:50:32 +00:00
|
|
|
|
2013-02-19 Alan Modra <amodra@gmail.com>
|
|
|
|
|
|
|
|
|
|
* elfread.c (struct build_id): Delete. Use struct elf_build_id
|
|
|
|
|
throughout file instead.
|
|
|
|
|
(build_id_bfd_get): Update to use new elf_tdata build_id field.
|
|
|
|
|
Don't xmalloc return value.
|
|
|
|
|
(build_id_verify): Similarly. Don't xfree.
|
|
|
|
|
(build_id_to_debug_filename): Update.
|
|
|
|
|
(find_separate_debug_file_by_buildid): Update, don't xfree.
|
|
|
|
|
|
2013-02-18 21:04:28 +00:00
|
|
|
|
2013-02-18 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR gdb/15102:
|
|
|
|
|
* dwarf2read.c (read_subrange_type): Use result of
|
|
|
|
|
'check_typedef'.
|
|
|
|
|
|
2013-02-16 08:57:48 +00:00
|
|
|
|
2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
|
|
|
|
|
|
|
|
|
|
* frame.c: Remove one extra white space after #include
|
|
|
|
|
directive.
|
|
|
|
|
|
2013-02-15 20:30:16 +00:00
|
|
|
|
2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* contrib/cc-with-tweaks.sh: Extend the comment for -p option.
|
|
|
|
|
|
2013-02-15 20:28:24 +00:00
|
|
|
|
2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
|
|
|
|
|
and dir commands into an if block.
|
|
|
|
|
|
2013-02-15 17:12:29 +00:00
|
|
|
|
2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
|
|
|
|
|
|
|
|
|
|
* python/py-breakpoint (struct pybp_code): Use int instead of
|
|
|
|
|
enum type_code.
|
|
|
|
|
|
2013-02-15 09:47:50 +00:00
|
|
|
|
2013-02-15 Pedro Alves <pedro@codesourcery.com>
|
|
|
|
|
Hafiz Abid Qadeer <abidh@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention new field "trace-file".
|
|
|
|
|
* tracepoint.c (trace_status_mi): Output "trace-file" field.
|
|
|
|
|
(tfile_open): Record the trace file's filename in the trace
|
|
|
|
|
status.
|
|
|
|
|
(tfile_files_info): Mention the name of the trace file.
|
|
|
|
|
Check the "filename" field explicitely.
|
|
|
|
|
(trace_status_command): Explicitely check "filename" field.
|
|
|
|
|
(trace_find_command): Ditto.
|
|
|
|
|
(trace_find_pc_command): Ditto.
|
|
|
|
|
(trace_find_tracepoint_command): Ditto.
|
|
|
|
|
(trace_find_line_command): Ditto.
|
|
|
|
|
(trace_find_range_command): Ditto.
|
|
|
|
|
(trace_find_outside_command): Ditto.
|
|
|
|
|
* tracepoint.h (struct trace_status) <from_file>: Rename it
|
|
|
|
|
to "filename" and make it hold the trace file's filename
|
|
|
|
|
instead of a boolean.
|
|
|
|
|
* remote.c (remote_get_trace_status): Initialize "filename"
|
|
|
|
|
field with NULL instead of 0.
|
|
|
|
|
|
2013-02-15 03:37:12 +00:00
|
|
|
|
2013-02-15 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* remote.c: Fix a typo.
|
|
|
|
|
|
2013-02-14 21:08:35 +00:00
|
|
|
|
2013-02-14 Pierre Muller <muller@sourceware.org>
|
|
|
|
|
|
|
|
|
|
* contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
|
|
|
|
|
|
2013-02-14 17:11:41 +00:00
|
|
|
|
2013-02-14 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* utils.c (savestring): Don't #undef it. Move function to
|
|
|
|
|
common/common-utils.c.
|
|
|
|
|
* common/common-utils.c: Include gdb_string.h.
|
|
|
|
|
(savestring): Move here from utils.c.
|
|
|
|
|
* common/common-utils.h (savestring): Declare.
|
|
|
|
|
|
2013-02-14 17:09:00 +00:00
|
|
|
|
2013-02-14 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* utils.c (savestring): Rename parameter 'size' to 'len'.
|
|
|
|
|
|
2013-02-14 13:50:30 +00:00
|
|
|
|
2013-02-14 Pedro Alves <palves@redhat.com>
|
|
|
|
|
Yufeng Zhang <yufeng.zhang@arm.com>
|
|
|
|
|
|
|
|
|
|
* aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
|
|
|
|
|
(aarch64_inferior_data, struct aarch64_inferior_data):
|
|
|
|
|
Delete.
|
|
|
|
|
(struct aarch64_process_info): New.
|
|
|
|
|
(aarch64_process_list): New global.
|
|
|
|
|
(aarch64_find_process_pid, aarch64_add_process)
|
|
|
|
|
(aarch64_process_info_get): New functions.
|
|
|
|
|
(aarch64_inferior_data_get): Delete.
|
|
|
|
|
(aarch64_process_info_get): New function.
|
|
|
|
|
(aarch64_forget_process): New function.
|
|
|
|
|
(aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
|
|
|
|
|
(aarch64_linux_prepare_to_resume): Pass the lwp's pid to
|
|
|
|
|
aarch64_get_debug_reg_state.
|
|
|
|
|
(aarch64_notify_debug_reg_change): Use iterate_over_lwps
|
|
|
|
|
instead of linux_nat_iterate_watchpoint_lwps.
|
|
|
|
|
(aarch64_linux_new_fork): New function.
|
|
|
|
|
(aarch64_linux_child_post_startup_inferior): Use
|
|
|
|
|
aarch64_forget_process instead of aarch64_init_debug_reg_state.
|
|
|
|
|
(aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
|
|
|
|
|
(aarch64_linux_remove_hw_breakpoint)
|
|
|
|
|
(aarch64_handle_aligned_watchpoint)
|
|
|
|
|
(aarch64_handle_unaligned_watchpoint)
|
|
|
|
|
(aarch64_linux_insert_watchpoint)
|
|
|
|
|
(aarch64_linux_remove_watchpoint)
|
|
|
|
|
(aarch64_linux_stopped_data_address): Adjust to pass the current
|
|
|
|
|
process id to aarch64_debug_reg_state.
|
|
|
|
|
(_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
|
|
|
|
|
linux_nat_new_fork hook, and aarch64_forget_process as
|
|
|
|
|
linux_nat_forget_process hook; remove the call to
|
|
|
|
|
register_inferior_data_with_cleanup.
|
|
|
|
|
|
2013-02-14 12:43:46 +00:00
|
|
|
|
2013-02-14 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* eval.c (evaluate_subexp_for_address) <default_case_after_eval,
|
|
|
|
|
EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
|
|
|
|
|
lval_memory.
|
|
|
|
|
|
2013-02-14 10:19:39 +00:00
|
|
|
|
2013-02-14 Pedro Alves <pedro@codesourcery.com>
|
|
|
|
|
Hafiz Abid Qadeer <abidh@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* tracepoint.h (validate_trace_state_variable_name): Declare.
|
|
|
|
|
* tracepoint.c (validate_trace_state_variable_name): New.
|
|
|
|
|
(trace_variable_command): Parse the trace state variable's name
|
|
|
|
|
without using parse_expression. Do several validations.
|
|
|
|
|
* mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
|
|
|
|
|
trace state variable's name with parse_expression. Validate it.
|
|
|
|
|
|
2013-02-14 04:00:16 +00:00
|
|
|
|
2013-02-14 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* infcmd.c (breakpoint_proceeded): Remove it.
|
|
|
|
|
|
2013-02-14 03:57:13 +00:00
|
|
|
|
2013-02-14 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* tracepoint.c (end_actions_pseudocommand): Make it static.
|
|
|
|
|
(while_stepping_pseudocommand): Likewise.
|
|
|
|
|
* tracepoint.h (end_actions_pseudocommand): Remove the
|
|
|
|
|
declaration.
|
|
|
|
|
(while_stepping_pseudocommand): Likewise.
|
|
|
|
|
|
2013-02-14 03:39:42 +00:00
|
|
|
|
2013-02-14 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* cli/cli-decode.c (help_cmd): Remove the declaration of
|
|
|
|
|
"cmdlist".
|
|
|
|
|
(help_all): Likewise.
|
|
|
|
|
|
[native x86 GNU/Linux] Access debug register mirror from the corresponding process.
While reviewing the native AArch64 patch, I noticed a problem:
On 02/06/2013 08:46 PM, Pedro Alves wrote:
>
>> > +static void
>> > +aarch64_linux_prepare_to_resume (struct lwp_info *lwp)
>> > +{
>> > + struct arch_lwp_info *info = lwp->arch_private;
>> > +
>> > + /* NULL means this is the main thread still going through the shell,
>> > + or, no watchpoint has been set yet. In that case, there's
>> > + nothing to do. */
>> > + if (info == NULL)
>> > + return;
>> > +
>> > + if (DR_HAS_CHANGED (info->dr_changed_bp)
>> > + || DR_HAS_CHANGED (info->dr_changed_wp))
>> > + {
>> > + int tid = GET_LWP (lwp->ptid);
>> > + struct aarch64_debug_reg_state *state = aarch64_get_debug_reg_state ();
> Hmm. This is always fetching the debug_reg_state of
> the current inferior, but may not be the inferior of lwp.
> I see the same bug on x86. Sorry about that. I'll fix it.
A natural fix would be to make xxx_get_debug_reg_state take an
inferior argument, but that doesn't work because of the case where we
detach breakpoints/watchpoints from the child fork, at a time there's
no inferior for the child fork at all. We do a nasty hack in
i386_inferior_data_get, but that relies on all callers pointing the
current inferior to the correct inferior, which isn't actually being
done by all callers, and I don't think we want to enforce that -- deep
in the bowls of linux-nat.c, there are many cases we resume lwps
behind the scenes, and it's be better to not have that code rely on
global state (as it doesn't today).
The fix is to decouple the watchpoints code from inferiors, making it
track target processes instead. This way, we can freely keep track of
the watchpoint mirrors for these processes behind the core's back.
Checkpoints also play dirty tricks with swapping the process behind
the inferior, so they get special treatment too in the patch (which
just amounts to calling a new hook). Instead of the old hack in
i386_inferior_data_get, where we returned a copy of the current
inferior's debug registers mirror, as soon as we detect a fork in the
target, we copy the debug register mirror from the parent to the child
process.
I don't have an old kernel handy to test, but I stepped through gdb doing
the watchpoint removal in the fork child in the watchpoint-fork test
seeing that the debug registers end up cleared in the child.
I didn't find the need for linux_nat_iterate_watchpoint_lwps. If
we use plain iterate_over_lwps instead, what happens is that
when removing watchpoints, that iterate_over_lwps doesn't actually
iterate over anything, since the fork child is not added to the
lwp list until later, at detach time, in linux_child_follow_fork.
And if we don't iterate over that lwp, we don't mark its debug
registers as needing update. But linux_child_follow_fork takes
care of doing that explicitly:
child_lp = add_lwp (inferior_ptid);
child_lp->stopped = 1;
child_lp->last_resume_kind = resume_stop;
make_cleanup (delete_lwp_cleanup, child_lp);
/* CHILD_LP has new PID, therefore linux_nat_new_thread is not called for it.
See i386_inferior_data_get for the Linux kernel specifics.
Ensure linux_nat_prepare_to_resume will reset the hardware debug
registers. It is done by the linux_nat_new_thread call, which is
being skipped in add_lwp above for the first lwp of a pid. */
gdb_assert (num_lwps (GET_PID (child_lp->ptid)) == 1);
if (linux_nat_new_thread != NULL)
linux_nat_new_thread (child_lp);
if (linux_nat_prepare_to_resume != NULL)
linux_nat_prepare_to_resume (child_lp);
ptrace (PTRACE_DETACH, child_pid, 0, 0);
so unless I'm missing something (quite possible) it ends up all
the same. But, the !detach-on-fork, and the "follow-fork child" paths
should also call linux_nat_new_thread, and they don't presently. It
seems to me in those cases we're not clearing debug regs correctly
when that's needed. Instead of copying that bit that works around
add_lwp bypassing the linux_nat_new_thread call, I thought it'd
be better to add an add_initial_lwp call to be used in the case we
really need to bypass linux_nat_new_thread, and make
add_lwp always call linux_nat_new_thread.
i386_cleanup_dregs is rewritten to forget about the current process
debug mirrors, which takes cares of other i386 ports. Only a couple
of extra tweaks here and there were needed, as some targets wheren't
actually calling i386_cleanup_dregs.
Tested on Fedora 17 x86_64 -m64/-m32.
GDBserver already fetches the i386_debug_reg_state from the right
process, and, it doesn't handle forks at all, so no fix is needed over
there.
gdb/
2013-02-13 Pedro Alves <palves@redhat.com>
* amd64-linux-nat.c (update_debug_registers_callback):
Update comment.
(amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
iterate_over_lwps.
(amd64_linux_prepare_to_resume): Pass the lwp's pid to
i386_debug_reg_state.
(amd64_linux_new_fork): New function.
(_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
linux_nat_new_fork hook, and i386_forget_process as
linux_nat_forget_process hook.
* i386-linux-nat.c (update_debug_registers_callback):
Update comment.
(amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
iterate_over_lwps.
(i386_linux_prepare_to_resume): Pass the lwp's pid to
i386_debug_reg_state.
(i386_linux_new_fork): New function.
(_initialize_i386_linux_nat): Install i386_linux_new_fork as
linux_nat_new_fork hook, and i386_forget_process as
linux_nat_forget_process hook.
* i386-nat.c (i386_init_dregs): Delete.
(i386_inferior_data, struct i386_inferior_data):
Delete.
(struct i386_process_info): New.
(i386_process_list): New global.
(i386_find_process_pid, i386_add_process, i386_process_info_get):
New functions.
(i386_inferior_data_get): Delete.
(i386_process_info_get): New function.
(i386_debug_reg_state): New parameter 'pid'. Reimplement.
(i386_forget_process): New function.
(i386_cleanup_dregs): Rewrite.
(i386_update_inferior_debug_regs, i386_insert_watchpoint)
(i386_remove_watchpoint, i386_region_ok_for_watchpoint)
(i386_stopped_data_address, i386_insert_hw_breakpoint)
(i386_remove_hw_breakpoint): Adjust to pass the current process id
to i386_debug_reg_state.
(i386_use_watchpoints): Don't register inferior data.
* i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
adjust comment.
(i386_forget_process): Declare.
* linux-fork.c (delete_fork): Call linux_nat_forget_process.
* linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
New static globals.
(linux_child_follow_fork): Don't call linux_nat_new_thread here.
(add_initial_lwp): New, factored out from ...
(add_lwp): ... this. Don't check the number of lwps before
calling linux_nat_new_thread.
(linux_nat_iterate_watchpoint_lwps): Delete.
(linux_nat_attach): Use add_initial_lwp instead of add_lwp.
(linux_handle_extended_wait): Call the linux_nat_new_fork hook on
forks and vforks.
(linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
initial lwp.
(linux_nat_kill, linux_nat_mourn_inferior): Call
linux_nat_forget_process.
(linux_nat_set_new_fork, linux_nat_set_forget_process)
(linux_nat_forget_process): New functions.
* linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
type.
(linux_nat_iterate_watchpoint_lwps): Delete declaration.
(linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
types.
(linux_nat_set_new_fork, linux_nat_set_forget_process)
(linux_nat_forget_process): New declarations.
* amd64fbsd-nat.c (super_mourn_inferior): New global.
(amd64fbsd_mourn_inferior): New function.
(_initialize_amd64fbsd_nat): Override to_mourn_inferior.
* windows-nat.c (windows_detach): Call i386_cleanup_dregs.
2013-02-13 14:59:49 +00:00
|
|
|
|
2013-02-13 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* amd64-linux-nat.c (update_debug_registers_callback):
|
|
|
|
|
Update comment.
|
|
|
|
|
(amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
|
|
|
|
|
iterate_over_lwps.
|
|
|
|
|
(amd64_linux_prepare_to_resume): Pass the lwp's pid to
|
|
|
|
|
i386_debug_reg_state.
|
|
|
|
|
(amd64_linux_new_fork): New function.
|
|
|
|
|
(_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
|
|
|
|
|
linux_nat_new_fork hook, and i386_forget_process as
|
|
|
|
|
linux_nat_forget_process hook.
|
|
|
|
|
* i386-linux-nat.c (update_debug_registers_callback):
|
|
|
|
|
Update comment.
|
2013-02-13 15:06:50 +00:00
|
|
|
|
(i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
|
[native x86 GNU/Linux] Access debug register mirror from the corresponding process.
While reviewing the native AArch64 patch, I noticed a problem:
On 02/06/2013 08:46 PM, Pedro Alves wrote:
>
>> > +static void
>> > +aarch64_linux_prepare_to_resume (struct lwp_info *lwp)
>> > +{
>> > + struct arch_lwp_info *info = lwp->arch_private;
>> > +
>> > + /* NULL means this is the main thread still going through the shell,
>> > + or, no watchpoint has been set yet. In that case, there's
>> > + nothing to do. */
>> > + if (info == NULL)
>> > + return;
>> > +
>> > + if (DR_HAS_CHANGED (info->dr_changed_bp)
>> > + || DR_HAS_CHANGED (info->dr_changed_wp))
>> > + {
>> > + int tid = GET_LWP (lwp->ptid);
>> > + struct aarch64_debug_reg_state *state = aarch64_get_debug_reg_state ();
> Hmm. This is always fetching the debug_reg_state of
> the current inferior, but may not be the inferior of lwp.
> I see the same bug on x86. Sorry about that. I'll fix it.
A natural fix would be to make xxx_get_debug_reg_state take an
inferior argument, but that doesn't work because of the case where we
detach breakpoints/watchpoints from the child fork, at a time there's
no inferior for the child fork at all. We do a nasty hack in
i386_inferior_data_get, but that relies on all callers pointing the
current inferior to the correct inferior, which isn't actually being
done by all callers, and I don't think we want to enforce that -- deep
in the bowls of linux-nat.c, there are many cases we resume lwps
behind the scenes, and it's be better to not have that code rely on
global state (as it doesn't today).
The fix is to decouple the watchpoints code from inferiors, making it
track target processes instead. This way, we can freely keep track of
the watchpoint mirrors for these processes behind the core's back.
Checkpoints also play dirty tricks with swapping the process behind
the inferior, so they get special treatment too in the patch (which
just amounts to calling a new hook). Instead of the old hack in
i386_inferior_data_get, where we returned a copy of the current
inferior's debug registers mirror, as soon as we detect a fork in the
target, we copy the debug register mirror from the parent to the child
process.
I don't have an old kernel handy to test, but I stepped through gdb doing
the watchpoint removal in the fork child in the watchpoint-fork test
seeing that the debug registers end up cleared in the child.
I didn't find the need for linux_nat_iterate_watchpoint_lwps. If
we use plain iterate_over_lwps instead, what happens is that
when removing watchpoints, that iterate_over_lwps doesn't actually
iterate over anything, since the fork child is not added to the
lwp list until later, at detach time, in linux_child_follow_fork.
And if we don't iterate over that lwp, we don't mark its debug
registers as needing update. But linux_child_follow_fork takes
care of doing that explicitly:
child_lp = add_lwp (inferior_ptid);
child_lp->stopped = 1;
child_lp->last_resume_kind = resume_stop;
make_cleanup (delete_lwp_cleanup, child_lp);
/* CHILD_LP has new PID, therefore linux_nat_new_thread is not called for it.
See i386_inferior_data_get for the Linux kernel specifics.
Ensure linux_nat_prepare_to_resume will reset the hardware debug
registers. It is done by the linux_nat_new_thread call, which is
being skipped in add_lwp above for the first lwp of a pid. */
gdb_assert (num_lwps (GET_PID (child_lp->ptid)) == 1);
if (linux_nat_new_thread != NULL)
linux_nat_new_thread (child_lp);
if (linux_nat_prepare_to_resume != NULL)
linux_nat_prepare_to_resume (child_lp);
ptrace (PTRACE_DETACH, child_pid, 0, 0);
so unless I'm missing something (quite possible) it ends up all
the same. But, the !detach-on-fork, and the "follow-fork child" paths
should also call linux_nat_new_thread, and they don't presently. It
seems to me in those cases we're not clearing debug regs correctly
when that's needed. Instead of copying that bit that works around
add_lwp bypassing the linux_nat_new_thread call, I thought it'd
be better to add an add_initial_lwp call to be used in the case we
really need to bypass linux_nat_new_thread, and make
add_lwp always call linux_nat_new_thread.
i386_cleanup_dregs is rewritten to forget about the current process
debug mirrors, which takes cares of other i386 ports. Only a couple
of extra tweaks here and there were needed, as some targets wheren't
actually calling i386_cleanup_dregs.
Tested on Fedora 17 x86_64 -m64/-m32.
GDBserver already fetches the i386_debug_reg_state from the right
process, and, it doesn't handle forks at all, so no fix is needed over
there.
gdb/
2013-02-13 Pedro Alves <palves@redhat.com>
* amd64-linux-nat.c (update_debug_registers_callback):
Update comment.
(amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
iterate_over_lwps.
(amd64_linux_prepare_to_resume): Pass the lwp's pid to
i386_debug_reg_state.
(amd64_linux_new_fork): New function.
(_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
linux_nat_new_fork hook, and i386_forget_process as
linux_nat_forget_process hook.
* i386-linux-nat.c (update_debug_registers_callback):
Update comment.
(amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
iterate_over_lwps.
(i386_linux_prepare_to_resume): Pass the lwp's pid to
i386_debug_reg_state.
(i386_linux_new_fork): New function.
(_initialize_i386_linux_nat): Install i386_linux_new_fork as
linux_nat_new_fork hook, and i386_forget_process as
linux_nat_forget_process hook.
* i386-nat.c (i386_init_dregs): Delete.
(i386_inferior_data, struct i386_inferior_data):
Delete.
(struct i386_process_info): New.
(i386_process_list): New global.
(i386_find_process_pid, i386_add_process, i386_process_info_get):
New functions.
(i386_inferior_data_get): Delete.
(i386_process_info_get): New function.
(i386_debug_reg_state): New parameter 'pid'. Reimplement.
(i386_forget_process): New function.
(i386_cleanup_dregs): Rewrite.
(i386_update_inferior_debug_regs, i386_insert_watchpoint)
(i386_remove_watchpoint, i386_region_ok_for_watchpoint)
(i386_stopped_data_address, i386_insert_hw_breakpoint)
(i386_remove_hw_breakpoint): Adjust to pass the current process id
to i386_debug_reg_state.
(i386_use_watchpoints): Don't register inferior data.
* i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
adjust comment.
(i386_forget_process): Declare.
* linux-fork.c (delete_fork): Call linux_nat_forget_process.
* linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
New static globals.
(linux_child_follow_fork): Don't call linux_nat_new_thread here.
(add_initial_lwp): New, factored out from ...
(add_lwp): ... this. Don't check the number of lwps before
calling linux_nat_new_thread.
(linux_nat_iterate_watchpoint_lwps): Delete.
(linux_nat_attach): Use add_initial_lwp instead of add_lwp.
(linux_handle_extended_wait): Call the linux_nat_new_fork hook on
forks and vforks.
(linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
initial lwp.
(linux_nat_kill, linux_nat_mourn_inferior): Call
linux_nat_forget_process.
(linux_nat_set_new_fork, linux_nat_set_forget_process)
(linux_nat_forget_process): New functions.
* linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
type.
(linux_nat_iterate_watchpoint_lwps): Delete declaration.
(linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
types.
(linux_nat_set_new_fork, linux_nat_set_forget_process)
(linux_nat_forget_process): New declarations.
* amd64fbsd-nat.c (super_mourn_inferior): New global.
(amd64fbsd_mourn_inferior): New function.
(_initialize_amd64fbsd_nat): Override to_mourn_inferior.
* windows-nat.c (windows_detach): Call i386_cleanup_dregs.
2013-02-13 14:59:49 +00:00
|
|
|
|
iterate_over_lwps.
|
|
|
|
|
(i386_linux_prepare_to_resume): Pass the lwp's pid to
|
|
|
|
|
i386_debug_reg_state.
|
|
|
|
|
(i386_linux_new_fork): New function.
|
|
|
|
|
(_initialize_i386_linux_nat): Install i386_linux_new_fork as
|
|
|
|
|
linux_nat_new_fork hook, and i386_forget_process as
|
|
|
|
|
linux_nat_forget_process hook.
|
|
|
|
|
* i386-nat.c (i386_init_dregs): Delete.
|
|
|
|
|
(i386_inferior_data, struct i386_inferior_data):
|
|
|
|
|
Delete.
|
|
|
|
|
(struct i386_process_info): New.
|
|
|
|
|
(i386_process_list): New global.
|
|
|
|
|
(i386_find_process_pid, i386_add_process, i386_process_info_get):
|
|
|
|
|
New functions.
|
|
|
|
|
(i386_inferior_data_get): Delete.
|
|
|
|
|
(i386_process_info_get): New function.
|
|
|
|
|
(i386_debug_reg_state): New parameter 'pid'. Reimplement.
|
|
|
|
|
(i386_forget_process): New function.
|
|
|
|
|
(i386_cleanup_dregs): Rewrite.
|
|
|
|
|
(i386_update_inferior_debug_regs, i386_insert_watchpoint)
|
|
|
|
|
(i386_remove_watchpoint, i386_region_ok_for_watchpoint)
|
|
|
|
|
(i386_stopped_data_address, i386_insert_hw_breakpoint)
|
|
|
|
|
(i386_remove_hw_breakpoint): Adjust to pass the current process id
|
|
|
|
|
to i386_debug_reg_state.
|
|
|
|
|
(i386_use_watchpoints): Don't register inferior data.
|
|
|
|
|
* i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
|
|
|
|
|
adjust comment.
|
|
|
|
|
(i386_forget_process): Declare.
|
|
|
|
|
* linux-fork.c (delete_fork): Call linux_nat_forget_process.
|
|
|
|
|
* linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
|
|
|
|
|
New static globals.
|
|
|
|
|
(linux_child_follow_fork): Don't call linux_nat_new_thread here.
|
|
|
|
|
(add_initial_lwp): New, factored out from ...
|
|
|
|
|
(add_lwp): ... this. Don't check the number of lwps before
|
|
|
|
|
calling linux_nat_new_thread.
|
|
|
|
|
(linux_nat_iterate_watchpoint_lwps): Delete.
|
|
|
|
|
(linux_nat_attach): Use add_initial_lwp instead of add_lwp.
|
|
|
|
|
(linux_handle_extended_wait): Call the linux_nat_new_fork hook on
|
|
|
|
|
forks and vforks.
|
|
|
|
|
(linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
|
|
|
|
|
initial lwp.
|
|
|
|
|
(linux_nat_kill, linux_nat_mourn_inferior): Call
|
|
|
|
|
linux_nat_forget_process.
|
|
|
|
|
(linux_nat_set_new_fork, linux_nat_set_forget_process)
|
|
|
|
|
(linux_nat_forget_process): New functions.
|
|
|
|
|
* linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
|
|
|
|
|
type.
|
|
|
|
|
(linux_nat_iterate_watchpoint_lwps): Delete declaration.
|
|
|
|
|
(linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
|
|
|
|
|
types.
|
|
|
|
|
(linux_nat_set_new_fork, linux_nat_set_forget_process)
|
|
|
|
|
(linux_nat_forget_process): New declarations.
|
|
|
|
|
|
|
|
|
|
* amd64fbsd-nat.c (super_mourn_inferior): New global.
|
|
|
|
|
(amd64fbsd_mourn_inferior): New function.
|
|
|
|
|
(_initialize_amd64fbsd_nat): Override to_mourn_inferior.
|
|
|
|
|
* windows-nat.c (windows_detach): Call i386_cleanup_dregs.
|
|
|
|
|
|
2013-02-13 14:32:56 +00:00
|
|
|
|
2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
|
|
|
|
|
2013-02-14 03:51:59 +00:00
|
|
|
|
* aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
|
|
|
|
|
Adding _().
|
2013-02-13 14:32:56 +00:00
|
|
|
|
|
2013-02-13 13:42:39 +00:00
|
|
|
|
2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
|
|
|
|
|
|
|
|
|
* aarch64-linux-nat.c (debug_reg_change_callback)
|
|
|
|
|
(aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
|
|
|
|
|
%s and phex().
|
|
|
|
|
|
2013-02-13 13:41:12 +00:00
|
|
|
|
2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
|
|
|
|
|
|
|
|
|
* aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
|
|
|
|
|
with LONGEST.
|
|
|
|
|
|
2013-02-13 10:41:11 +00:00
|
|
|
|
2013-02-13 Pedro Alves <palves@redhat.com>
|
|
|
|
|
Hafiz Abid Qadeer <abidh@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
|
|
|
|
|
|
2013-02-12 20:27:36 +00:00
|
|
|
|
2013-02-12 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR symtab/11464:
|
|
|
|
|
* c-exp.y (lex_one_token): Initialize other fields of yylval on
|
|
|
|
|
NAME return.
|
|
|
|
|
(classify_inner_name): Remove 'first_name' argument, add
|
|
|
|
|
'context'. Remove unused variable.
|
|
|
|
|
(yylex): Explicitly maintain the context type. Exit loop earlier
|
|
|
|
|
if NAME result is seen.
|
|
|
|
|
|
2013-02-12 19:03:57 +00:00
|
|
|
|
2013-02-12 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* amd64-darwin-tdep.c: Add (C) after Copyright.
|
|
|
|
|
* cli/cli-cmds.h: Ditto.
|
|
|
|
|
* cli/cli-decode.c: Ditto.
|
|
|
|
|
* cli/cli-decode.h: Ditto.
|
|
|
|
|
* cli/cli-dump.c: Ditto.
|
|
|
|
|
* cli/cli-dump.h: Ditto.
|
|
|
|
|
* cli/cli-interp.c: Ditto.
|
|
|
|
|
* cli/cli-logging.c: Ditto.
|
|
|
|
|
* cli/cli-script.c: Ditto.
|
|
|
|
|
* cli/cli-script.h: Ditto.
|
|
|
|
|
* cli/cli-setshow.c: Ditto.
|
|
|
|
|
* cli/cli-setshow.h: Ditto.
|
|
|
|
|
* cli/cli-utils.c: Ditto.
|
|
|
|
|
* cli/cli-utils.h: Ditto.
|
|
|
|
|
* config/alpha/nm-osf3.h: Ditto.
|
|
|
|
|
* config/djgpp/djconfig.sh: Ditto.
|
|
|
|
|
* config/i386/nm-fbsd.h: Ditto.
|
|
|
|
|
* config/i386/nm-i386gnu.h: Ditto.
|
|
|
|
|
* config/nm-linux.h: Ditto.
|
|
|
|
|
* config/nm-nto.h: Ditto.
|
|
|
|
|
* config/rs6000/nm-rs6000.h: Ditto.
|
|
|
|
|
* config/sparc/nm-sol2.h: Ditto.
|
|
|
|
|
* darwin-nat-info.c: Ditto.
|
|
|
|
|
* dfp.c: Ditto.
|
|
|
|
|
* dfp.h: Ditto.
|
|
|
|
|
* gdb-demangle.h: Ditto.
|
|
|
|
|
* i386-darwin-nat.c: Ditto.
|
|
|
|
|
* i386-darwin-tdep.c: Ditto.
|
|
|
|
|
* linux-fork.h: Ditto.
|
|
|
|
|
* m32c-tdep.c: Ditto.
|
|
|
|
|
* microblaze-linux-tdep.c: Ditto.
|
|
|
|
|
* microblaze-rom.c: Ditto.
|
|
|
|
|
* microblaze-tdep.c: Ditto.
|
|
|
|
|
* microblaze-tdep.h: Ditto.
|
|
|
|
|
* mips-linux-tdep.h: Ditto.
|
|
|
|
|
* ppc-ravenscar-thread.c: Ditto.
|
|
|
|
|
* ppc-ravenscar-thread.h: Ditto.
|
|
|
|
|
* prologue-value.c: Ditto.
|
|
|
|
|
* prologue-value.h: Ditto.
|
|
|
|
|
* ravenscar-thread.c: Ditto.
|
|
|
|
|
* ravenscar-thread.h: Ditto.
|
|
|
|
|
* sparc-ravenscar-thread.c: Ditto.
|
|
|
|
|
* sparc-ravenscar-thread.h: Ditto.
|
|
|
|
|
* tilegx-linux-tdep.c: Ditto.
|
|
|
|
|
* unwind_stop_reasons.def: Ditto.
|
|
|
|
|
* windows-nat.h: Ditto.
|
|
|
|
|
* xtensa-linux-tdep.c: Ditto.
|
|
|
|
|
* xtensa-xtregs.c: Ditto.
|
|
|
|
|
* regformats/regdat.sh: Ditto.
|
|
|
|
|
* regformats/regdef.h: Ditto.
|
|
|
|
|
|
2013-02-12 18:27:29 +00:00
|
|
|
|
2013-02-12 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* break-catch-sig.c: Update copyright years.
|
|
|
|
|
|
2013-02-12 01:47:49 +00:00
|
|
|
|
2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
|
|
|
|
|
|
|
|
|
|
Add support for a destructor for ui_out data and use it to
|
|
|
|
|
provide a ui_out destructor.
|
|
|
|
|
* ui-out.h: Declare the new ui_out destructor.
|
|
|
|
|
(ui_out_impl): Add a field for data destructor in ui_out_impl.
|
|
|
|
|
* ui-out.c (default_data_destroy): Add a default data destructor
|
|
|
|
|
which does nothing.
|
|
|
|
|
(default_ui_out_impl): Set the new data_destroy field to
|
|
|
|
|
default_data_destroy
|
|
|
|
|
(uo_data_destroy): Local function which invokes the data
|
|
|
|
|
destructor if present.
|
|
|
|
|
(clear_table): Local function which clears the table data of a
|
|
|
|
|
ui_out object.
|
|
|
|
|
(ui_out_destroy): Public function which frees a ui_out object.
|
|
|
|
|
(ui_out_table_end): Use the new clear_table function.
|
|
|
|
|
* cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
|
|
|
|
|
NULL.
|
|
|
|
|
* mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
|
|
|
|
|
to NULL.
|
|
|
|
|
|
2013-02-11 22:04:58 +00:00
|
|
|
|
2013-02-11 Doug Evans <dje@google.com>
|
|
|
|
|
|
|
|
|
|
* printcmd.c (printf_c_string,printf_wide_c_string): New functions.
|
|
|
|
|
(printf_decfloat): New function. Broken out from ui_printf.
|
|
|
|
|
Remove unnecessary code to shift the entire format string down.
|
|
|
|
|
(printf_pointer): New function.
|
|
|
|
|
(ui_printf): Code to print C strings, wide C strings, decfloats,
|
|
|
|
|
and pointers moved to separate functions.
|
|
|
|
|
|
2013-02-11 18:05:35 +00:00
|
|
|
|
2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
|
|
|
|
|
|
|
|
|
|
* valops.c (value_assign): Handling bitfield offset in
|
|
|
|
|
`lval_internalvar_component' case.
|
|
|
|
|
|
2013-02-08 22:52:20 +00:00
|
|
|
|
2013-02-08 Doug Evans <dje@google.com>
|
|
|
|
|
|
|
|
|
|
* common/format.c (parse_format_string): Fix whitespace.
|
|
|
|
|
|
2013-02-08 13:55:14 +00:00
|
|
|
|
2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
|
|
|
|
|
|
|
|
|
|
* stack.c (return_command): Work around uninitialized variable
|
|
|
|
|
warning.
|
|
|
|
|
|
2013-02-08 12:46:28 +00:00
|
|
|
|
2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
|
|
|
|
|
|
|
|
|
|
* aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
|
|
|
|
|
number of the registers from 36 to 34.
|
|
|
|
|
|
2013-02-08 11:11:47 +00:00
|
|
|
|
2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention new AArch64 native and target support.
|
|
|
|
|
|
2013-02-08 09:12:35 +00:00
|
|
|
|
2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
|
|
|
|
|
|
|
|
|
* MAINTAINERS (Write After Approval): Add myself.
|
|
|
|
|
|
2013-02-08 09:00:35 +00:00
|
|
|
|
2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
|
|
|
|
|
Marcus Shawcroft <marcus.shawcroft@arm.com>
|
|
|
|
|
Nigel Stephens <nigel.stephens@arm.com>
|
|
|
|
|
Yufeng Zhang <yufeng.zhang@arm.com>
|
|
|
|
|
|
|
|
|
|
* aarch64-linux-nat.c: New file.
|
|
|
|
|
* config/aarch64/linux.mh: New file.
|
|
|
|
|
* configure.host: Add AArch64.
|
|
|
|
|
* Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
|
|
|
|
|
|
2013-02-07 20:38:23 +00:00
|
|
|
|
2013-02-07 Doug Evans <dje@google.com>
|
|
|
|
|
|
|
|
|
|
* cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
|
|
|
|
|
disassemble command.
|
|
|
|
|
|
2013-02-07 10:49:29 +00:00
|
|
|
|
2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
|
|
|
|
|
|
|
|
|
* aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
|
|
|
|
|
set_gdbarch_fetch_tls_load_module_address.
|
|
|
|
|
|
2013-02-06 19:40:04 +00:00
|
|
|
|
2013-02-06 David S. Miller <davem@davemloft.net>
|
|
|
|
|
|
|
|
|
|
* sparc-tdep.c (sparc32_return_value): Handle writing return value when
|
|
|
|
|
using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
|
|
|
|
|
* value.c (struct_return_convention): New function.
|
|
|
|
|
(using_struct_return): Implement in terms of struct_return_convention.
|
|
|
|
|
* value.h (struct_return_convention): Declare.
|
|
|
|
|
* stack.c (return_command): Allow successful overriding of the return
|
|
|
|
|
value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
|
|
|
|
|
|
2013-02-06 17:05:22 +00:00
|
|
|
|
2013-02-06 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* python/py-type.c (typy_strip_typedefs): Don't call check_typedef
|
|
|
|
|
outside of TRY_CATCH.
|
|
|
|
|
|
2013-02-06 14:45:20 +00:00
|
|
|
|
2013-02-06 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* mi/mi-interp.c: Include "tracepoint.h".
|
|
|
|
|
(mi_tsv_modified): Declare.
|
|
|
|
|
(mi_tsv_created, mi_tsv_deleted): Update declaration.
|
|
|
|
|
(mi_interpreter_init): Call observer_attach_tsv_modified.
|
|
|
|
|
(mi_tsv_modified): New.
|
|
|
|
|
(mi_tsv_created, mi_tsv_deleted): Update.
|
|
|
|
|
* tracepoint.c (trace_variable_command): Call
|
|
|
|
|
observer_notify_tsv_modified if the initial value of tsv is
|
|
|
|
|
changed.
|
|
|
|
|
(delete_trace_state_variable): Call
|
|
|
|
|
observer_notify_tsv_deleted earlier.
|
|
|
|
|
(trace_variable_command): Caller update.
|
|
|
|
|
(create_tsv_from_upload): Likewise.
|
|
|
|
|
* observer.sh: Declare "struct trace_state_variable".
|
|
|
|
|
|
|
|
|
|
* NEWS: Mention the new MI notification "=tsv-modified".
|
|
|
|
|
|
2013-02-05 21:31:31 +00:00
|
|
|
|
2013-02-05 Doug Evans <dje@google.com>
|
|
|
|
|
|
|
|
|
|
* completer.c (location_completer): Fix typo in comment.
|
|
|
|
|
|
2013-02-05 20:23:19 +00:00
|
|
|
|
2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* breakpoint.c (add_location_to_breakpoint): Insert the location with
|
|
|
|
|
ADDRESS sorted.
|
|
|
|
|
|
2013-02-05 13:54:38 +00:00
|
|
|
|
2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
|
|
|
|
|
|
|
|
|
|
* aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
|
|
|
|
|
Refactor if statement to avoid trailing || operator.
|
|
|
|
|
|
2013-02-05 05:59:55 +00:00
|
|
|
|
2013-02-05 Andreas Tobler <andreast@fgznet.ch>
|
|
|
|
|
|
|
|
|
|
* NEWS: Add PowerPC FreeBSD as a new native configuration.
|
|
|
|
|
|
2013-02-04 20:48:53 +00:00
|
|
|
|
2013-02-04 Andreas Tobler <andreast@fgznet.ch>
|
|
|
|
|
|
|
|
|
|
* Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
|
|
|
|
|
* configure.host: Add powerpc*-*-freebsd* target.
|
|
|
|
|
* configure.tgt: Add target info for powerpc*-*-freebsd*.
|
|
|
|
|
* ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
|
|
|
|
|
* config/powerpc/fbsd.mh: New file.
|
|
|
|
|
|
2013-02-04 18:40:41 +00:00
|
|
|
|
2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
|
|
|
|
|
Denys Vlasenko <dvlasenk@redhat.com>
|
|
|
|
|
Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
|
|
|
|
|
(struct elf_internal_linux_prpsinfo): Forward declare.
|
|
|
|
|
* gdbarch.h, gdbarch.c: Regenerate.
|
|
|
|
|
* linux-tdep.c: Include `cli/cli-utils.h'.
|
|
|
|
|
(linux_fill_prpsinfo): New function.
|
|
|
|
|
(linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
|
|
|
|
|
an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
|
|
|
|
|
elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
|
|
|
|
|
depending on gdbarch pointer bitness.
|
|
|
|
|
* ppc-linux-tdep.c: Include elf-bfd.h.
|
|
|
|
|
(ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
|
|
|
|
|
on 32-bit.
|
|
|
|
|
|
2013-02-04 18:20:05 +00:00
|
|
|
|
2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
|
|
|
|
|
Marcus Shawcroft <marcus.shawcroft@arm.com>
|
|
|
|
|
Nigel Stephens <nigel.stephens@arm.com>
|
|
|
|
|
Yufeng Zhang <yufeng.zhang@arm.com>
|
|
|
|
|
|
|
|
|
|
* configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
|
|
|
|
|
|
2013-02-04 12:57:44 +00:00
|
|
|
|
2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
|
|
|
|
|
Marcus Shawcroft <marcus.shawcroft@arm.com>
|
|
|
|
|
Nigel Stephens <nigel.stephens@arm.com>
|
|
|
|
|
Yufeng Zhang <yufeng.zhang@arm.com>
|
|
|
|
|
|
|
|
|
|
* aarch64-newlib-tdep.c: New file.
|
|
|
|
|
* configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
|
|
|
|
|
aarch64*-*-elf.
|
|
|
|
|
* defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
|
|
|
|
|
* Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
|
|
|
|
|
(ALLDEPFILES): Add aarch64-newlib-tdep.c.
|
|
|
|
|
* osabi.c (gdb_osabi_names): Add "Newlib".
|
|
|
|
|
|
2013-02-04 12:53:59 +00:00
|
|
|
|
2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
|
|
|
|
|
Marcus Shawcroft <marcus.shawcroft@arm.com>
|
|
|
|
|
Nigel Stephens <nigel.stephens@arm.com>
|
|
|
|
|
Yufeng Zhang <yufeng.zhang@arm.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
|
|
|
|
|
(ALLDEPFILES): Add aarch64-linux-tdep.c.
|
|
|
|
|
* aarch64-linux-tdep.c: New file.
|
|
|
|
|
* aarch64-linux-tdep.h: New file.
|
|
|
|
|
* aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
|
|
|
|
|
* configure.tgt: Add aarch64-none-linux-gnu.
|
|
|
|
|
|
2013-02-04 12:48:37 +00:00
|
|
|
|
2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
|
|
|
|
|
Marcus Shawcroft <marcus.shawcroft@arm.com>
|
|
|
|
|
Nigel Stephens <nigel.stephens@arm.com>
|
|
|
|
|
Yufeng Zhang <yufeng.zhang@arm.com>
|
|
|
|
|
|
|
|
|
|
* Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
|
|
|
|
|
(HFILES_NO_SRCDIR): Add aarch64-tdep.h.
|
|
|
|
|
(ALLDEPFILES): Add aarch64-tdep.c.
|
|
|
|
|
* aarch64-tdep.c: New file.
|
|
|
|
|
* aarch64-tdep.h: New file.
|
|
|
|
|
* configure.tgt: Add AArch64.
|
|
|
|
|
* features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
|
|
|
|
|
(aarch64-expedite): New definition.
|
|
|
|
|
* features/aarch64-core.xml: New file.
|
|
|
|
|
* features/aarch64-fpu.xml: New file.
|
|
|
|
|
* features/aarch64-without-fpu.c: New file (generated).
|
|
|
|
|
* features/aarch64-without-fpu.xml: New file.
|
|
|
|
|
* features/aarch64.c: New file (generated).
|
|
|
|
|
* features/aarch64.xml: New file.
|
|
|
|
|
* regformats/aarch64-without-fpu.dat: New file (generated).
|
|
|
|
|
* regformats/aarch64.dat: New file (generated).
|
|
|
|
|
|
2013-02-03 16:27:57 +00:00
|
|
|
|
2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* contrib/expect-read1.c: New file.
|
|
|
|
|
* contrib/expect-read1.sh: New file.
|
|
|
|
|
|
2013-02-03 16:25:56 +00:00
|
|
|
|
2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2read.c (file_file_name): New function with code from
|
|
|
|
|
file_full_name.
|
|
|
|
|
(file_full_name): Move most of the code to file_file_name.
|
|
|
|
|
(macro_start_file): Rename variable full_name to file_name and use
|
|
|
|
|
file_file_name for it. Add comp_dir parameter to new_macro_table.
|
|
|
|
|
* macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
|
|
|
|
|
macro_source_file->filename access by macro_source_fullname call.
|
|
|
|
|
* macroscope.c (_initialize_macroscope): Update the new_macro_table
|
|
|
|
|
caller.
|
|
|
|
|
* macrotab.c (struct macro_table): New field comp_dir.
|
|
|
|
|
(macro_include): New variables link_fullname and source_fullname.
|
|
|
|
|
Replace any macro_source_file->filename access by macro_source_fullname
|
|
|
|
|
call.
|
|
|
|
|
(macro_lookup_inclusion): Remove the partial filenames checking code.
|
|
|
|
|
(check_for_redefinition): New variables source_fullname and
|
|
|
|
|
found_key_fullname. Replace any macro_source_file->filename access by
|
|
|
|
|
macro_source_fullname call.
|
|
|
|
|
(macro_undef): New variables source_fullname and key_fullname. Replace
|
|
|
|
|
any macro_source_file->filename access by macro_source_fullname call.
|
|
|
|
|
(macro_lookup_definition): New variables retval and source_fullname.
|
|
|
|
|
Replace any macro_source_file->filename access by macro_source_fullname
|
|
|
|
|
call.
|
|
|
|
|
(foreach_macro): New variable key_fullname. Replace any
|
|
|
|
|
macro_source_file->filename access by macro_source_fullname call.
|
|
|
|
|
(foreach_macro_in_scope): New variable datum_fullname. Replace any
|
|
|
|
|
macro_source_file->filename access by macro_source_fullname call.
|
|
|
|
|
(new_macro_table): Add parameter comp_dir. Initialize T with it.
|
|
|
|
|
(macro_source_fullname): New function.
|
|
|
|
|
* macrotab.h (struct macro_source_file): Extent the filename field
|
|
|
|
|
comment.
|
|
|
|
|
(new_macro_table): New parameter comp_dir, add a comment for it.
|
|
|
|
|
(macro_source_fullname): new declaration.
|
|
|
|
|
|
2013-02-03 16:22:29 +00:00
|
|
|
|
2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
|
|
|
|
|
this_real_name to outer block. Use it also for
|
|
|
|
|
compare_filenames_for_search.
|
|
|
|
|
(dw2_expand_symtabs_matching): New variable this_real_name. Use it
|
|
|
|
|
with dw2_get_real_path for file_matcher, considering also
|
|
|
|
|
BASENAMES_MAY_DIFFER.
|
|
|
|
|
(file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
|
|
|
|
|
|
2013-02-03 16:20:20 +00:00
|
|
|
|
2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
|
|
|
|
|
to the file_matcher parameter. Pass 0 to it.
|
|
|
|
|
(dwarf2_create_include_psymtab): Copy also DIRNAME.
|
|
|
|
|
* psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
|
|
|
|
|
NULL psymtab_to_fullname result.
|
|
|
|
|
(psymtab_to_fullname): Remove variable r. Never return NULL, assemble
|
|
|
|
|
an expected filename instead.
|
|
|
|
|
(expand_symtabs_matching_via_partial): Add basenames parameter to the
|
|
|
|
|
file_matcher parameter. Call also psymtab_to_fullname, after newly
|
|
|
|
|
considering BASENAMES_MAY_DIFFER.
|
|
|
|
|
* source.c (rewrite_source_path): Remove static.
|
|
|
|
|
* source.h (rewrite_source_path): New declaration.
|
|
|
|
|
* symfile.h (struct quick_symbol_functions): Add basenames parameter to
|
|
|
|
|
the expand_symtabs_matching field. Comment it.
|
|
|
|
|
* symtab.c (file_matches): New function comment. Add parameter
|
|
|
|
|
basenames, implement it.
|
|
|
|
|
(search_symbols_file_matches): Add basenames parameter. Update the
|
|
|
|
|
file_matches caller.
|
|
|
|
|
(search_symbols): Match FILES also against symtab_to_fullname.
|
|
|
|
|
Optimize it for BASENAMES_MAY_DIFFER.
|
|
|
|
|
|
2013-02-03 16:16:42 +00:00
|
|
|
|
2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* source.c (print_source_lines_base): Print for TUI also "fullname".
|
|
|
|
|
* tui/tui-data.c (init_content_element): Change tui_locator_element
|
|
|
|
|
field to full_name.
|
|
|
|
|
* tui/tui-data.h (struct tui_locator_element): Likewise.
|
|
|
|
|
* tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
|
|
|
|
|
tui_update_locator_filename calls to tui_update_locator_fullname.
|
|
|
|
|
Replace symtab->filename refererence by symtab_to_fullname call.
|
|
|
|
|
* tui/tui-out.c (tui_field_string): Check for "fullname" now.
|
|
|
|
|
* tui/tui-source.c (tui_set_source_content): Change tui_locator_element
|
|
|
|
|
field to full_name. Replace symtab->filename refererence by
|
|
|
|
|
symtab_to_fullname call.
|
|
|
|
|
(tui_show_symtab_source): Rename parameter to fullname. Change
|
|
|
|
|
tui_locator_element field to full_name.
|
|
|
|
|
* tui/tui-stack.c: Include source.h.
|
|
|
|
|
(tui_set_locator_filename): Rename the declaration to ...
|
|
|
|
|
(tui_set_locator_fullname): ... here. Rename its parameter to
|
|
|
|
|
fullname, updates its comment.
|
|
|
|
|
(tui_set_locator_info): Rename its parameter to fullname.
|
|
|
|
|
(tui_set_locator_filename): Rename the definition to ...
|
|
|
|
|
(tui_set_locator_fullname): ... here. Rename its parameter to
|
|
|
|
|
fullname, updates its comment. Change tui_locator_element field to
|
|
|
|
|
full_name.
|
|
|
|
|
(tui_set_locator_info): Rename its parameter to fullname.
|
|
|
|
|
(tui_set_locator_info): Rename callee to tui_set_locator_fullname.
|
|
|
|
|
(tui_update_locator_filename): Rename to ...
|
|
|
|
|
(tui_update_locator_fullname): ... here. Rename callee to
|
|
|
|
|
tui_set_locator_fullname.
|
|
|
|
|
(tui_show_frame_info): Replace symtab->filename refererence by
|
|
|
|
|
symtab_to_fullname call.
|
|
|
|
|
* tui/tui-stack.h (tui_update_locator_filename): Rename to ...
|
|
|
|
|
(tui_update_locator_fullname): ... here.
|
|
|
|
|
* tui/tui-winsource.c (tui_display_main): Rename the callee to
|
|
|
|
|
tui_update_locator_fullname. Replace symtab->filename refererence by
|
|
|
|
|
symtab_to_fullname call.
|
|
|
|
|
* tui/tui.c (tui_show_source): Rename its parameter to fullname.
|
|
|
|
|
Rename the callee to tui_update_locator_fullname.
|
|
|
|
|
* tui/tui.h (tui_show_source): Rename its parameter to fullname.
|
|
|
|
|
|
gdb/
* ada-lang.c (user_select_syms): Replace symtab->filename refererences
by symtab_to_filename_for_display calls.
* breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
(clear_command): New variable sal_fullname, initialize it. Replace
compare_filenames_for_search by filename_cmp with sal_fullname.
(say_where, update_static_tracepoint): Replace symtab->filename
refererences by symtab_to_filename_for_display calls.
* cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
Likewise.
* dwarf2read.c: Include source.h.
(fixup_go_packaging): Replace symtab->filename refererences by
symtab_to_filename_for_display calls.
* linespec.c (add_sal_to_sals): Rename variable filename to fullname.
Replace symtab->filename refererences by symtab_to_filename_for_display
calls.
(create_sals_line_offset, convert_linespec_to_sals): New variable
fullname, initialize it, replace symtab->filename reference by the
variable.
* linux-fork.c: Include source.h.
(info_checkpoints_command): Replace symtab->filename refererences by
symtab_to_filename_for_display calls.
* macroscope.c (sal_macro_scope): Replace symtab->filename refererences
by symtab_to_filename_for_display calls.
* mdebugread.c: Include source.h.
(psymtab_to_symtab_1): Replace symtab->filename refererences by
symtab_to_filename_for_display calls.
* mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
(mi_cmd_file_list_exec_source_files): Likewise.
* printcmd.c: Include source.h.
(build_address_symbolic): Replace symtab->filename refererences by
symtab_to_filename_for_display calls.
* psymtab.c (partial_map_symtabs_matching_filename)
(read_psymtabs_with_fullname): Call compare_filenames_for_search also
with psymtab_to_fullname.
* python/py-symtab.c (stpy_str): Replace symtab->filename refererences
by symtab_to_filename_for_display calls.
(stpy_get_filename): New variable filename, initialize it, use instead
of symtab->filename refererences.
(salpy_str): Make variable filename const char *. Replace
symtab->filename refererences by symtab_to_filename_for_display calls.
* skip.c: Include source.h and filenames.h.
(skip_file_command): Remove const from the symtab variable. Replace
symtab->filename refererences by symtab_to_fullname call.
(function_name_is_marked_for_skip): New variables searched_for_fullname
and fullname. Use them to search also with symtab's fullname.
* source.c (find_source_lines): Replace symtab->filename refererences
by symtab_to_filename_for_display calls.
(print_source_lines_base): New variable filename, use it instead of
symtab->filename. Replace symtab->filename refererences by
symtab_to_filename_for_display calls.
(line_info, forward_search_command): Replace symtab->filename
refererences by symtab_to_filename_for_display calls.
(reverse_search_command): Replace symtab->filename refererences by
symtab_to_filename_for_display calls. New variable filename for it.
* stack.c (frame_info): Likewise.
* symmisc.c: Include source.h.
(dump_objfile, dump_symtab_1, maintenance_print_symbols)
(maintenance_info_symtabs): Replace symtab->filename refererences by
symtab_to_filename_for_display calls.
* symtab.c (iterate_over_some_symtabs): Call
compare_filenames_for_search also with symtab_to_fullname.
(lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
symtab->filename refererences by symtab_to_filename_for_display calls.
(find_line_symtab): Replace symtab->filename refererences by
symtab_to_filename_for_display calls.
(file_matches): Replace filename_cmp by compare_filenames_for_search.
(print_symbol_info): Make the last parameter const char *. New
variable s_filename. Use it in the function.
(symtab_symbol_info): Make the last_filename variable const char *.
Replace symtab->filename refererences by symtab_to_filename_for_display
calls.
(rbreak_command): New variable fullname. Use it. Replace
symtab->filename refererence by symtab_to_filename_for_display call.
* tracepoint.c (set_traceframe_context, trace_find_line_command)
(print_one_static_tracepoint_marker): Replace symtab->filename
refererences by symtab_to_filename_for_display calls.
* tui/tui-source.c (tui_set_source_content): New variables filename and
s_filename. Replace symtab->filename refererences by this variable.
Replace other symtab->filename refererences by
symtab_to_filename_for_display calls.
2013-02-03 16:13:31 +00:00
|
|
|
|
2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ada-lang.c (user_select_syms): Replace symtab->filename refererences
|
|
|
|
|
by symtab_to_filename_for_display calls.
|
|
|
|
|
* breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
|
|
|
|
|
(clear_command): New variable sal_fullname, initialize it. Replace
|
|
|
|
|
compare_filenames_for_search by filename_cmp with sal_fullname.
|
|
|
|
|
(say_where, update_static_tracepoint): Replace symtab->filename
|
|
|
|
|
refererences by symtab_to_filename_for_display calls.
|
|
|
|
|
* cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
|
|
|
|
|
Likewise.
|
|
|
|
|
* dwarf2read.c: Include source.h.
|
|
|
|
|
(fixup_go_packaging): Replace symtab->filename refererences by
|
|
|
|
|
symtab_to_filename_for_display calls.
|
|
|
|
|
* linespec.c (add_sal_to_sals): Rename variable filename to fullname.
|
|
|
|
|
Replace symtab->filename refererences by symtab_to_filename_for_display
|
|
|
|
|
calls.
|
|
|
|
|
(create_sals_line_offset, convert_linespec_to_sals): New variable
|
|
|
|
|
fullname, initialize it, replace symtab->filename reference by the
|
|
|
|
|
variable.
|
|
|
|
|
* linux-fork.c: Include source.h.
|
|
|
|
|
(info_checkpoints_command): Replace symtab->filename refererences by
|
|
|
|
|
symtab_to_filename_for_display calls.
|
|
|
|
|
* macroscope.c (sal_macro_scope): Replace symtab->filename refererences
|
|
|
|
|
by symtab_to_filename_for_display calls.
|
|
|
|
|
* mdebugread.c: Include source.h.
|
|
|
|
|
(psymtab_to_symtab_1): Replace symtab->filename refererences by
|
|
|
|
|
symtab_to_filename_for_display calls.
|
|
|
|
|
* mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
|
|
|
|
|
(mi_cmd_file_list_exec_source_files): Likewise.
|
|
|
|
|
* printcmd.c: Include source.h.
|
|
|
|
|
(build_address_symbolic): Replace symtab->filename refererences by
|
|
|
|
|
symtab_to_filename_for_display calls.
|
|
|
|
|
* psymtab.c (partial_map_symtabs_matching_filename)
|
|
|
|
|
(read_psymtabs_with_fullname): Call compare_filenames_for_search also
|
|
|
|
|
with psymtab_to_fullname.
|
|
|
|
|
* python/py-symtab.c (stpy_str): Replace symtab->filename refererences
|
|
|
|
|
by symtab_to_filename_for_display calls.
|
|
|
|
|
(stpy_get_filename): New variable filename, initialize it, use instead
|
|
|
|
|
of symtab->filename refererences.
|
|
|
|
|
(salpy_str): Make variable filename const char *. Replace
|
|
|
|
|
symtab->filename refererences by symtab_to_filename_for_display calls.
|
|
|
|
|
* skip.c: Include source.h and filenames.h.
|
|
|
|
|
(skip_file_command): Remove const from the symtab variable. Replace
|
|
|
|
|
symtab->filename refererences by symtab_to_fullname call.
|
|
|
|
|
(function_name_is_marked_for_skip): New variables searched_for_fullname
|
|
|
|
|
and fullname. Use them to search also with symtab's fullname.
|
|
|
|
|
* source.c (find_source_lines): Replace symtab->filename refererences
|
|
|
|
|
by symtab_to_filename_for_display calls.
|
|
|
|
|
(print_source_lines_base): New variable filename, use it instead of
|
|
|
|
|
symtab->filename. Replace symtab->filename refererences by
|
|
|
|
|
symtab_to_filename_for_display calls.
|
|
|
|
|
(line_info, forward_search_command): Replace symtab->filename
|
|
|
|
|
refererences by symtab_to_filename_for_display calls.
|
|
|
|
|
(reverse_search_command): Replace symtab->filename refererences by
|
|
|
|
|
symtab_to_filename_for_display calls. New variable filename for it.
|
|
|
|
|
* stack.c (frame_info): Likewise.
|
|
|
|
|
* symmisc.c: Include source.h.
|
|
|
|
|
(dump_objfile, dump_symtab_1, maintenance_print_symbols)
|
|
|
|
|
(maintenance_info_symtabs): Replace symtab->filename refererences by
|
|
|
|
|
symtab_to_filename_for_display calls.
|
|
|
|
|
* symtab.c (iterate_over_some_symtabs): Call
|
|
|
|
|
compare_filenames_for_search also with symtab_to_fullname.
|
|
|
|
|
(lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
|
|
|
|
|
symtab->filename refererences by symtab_to_filename_for_display calls.
|
|
|
|
|
(find_line_symtab): Replace symtab->filename refererences by
|
|
|
|
|
symtab_to_filename_for_display calls.
|
|
|
|
|
(file_matches): Replace filename_cmp by compare_filenames_for_search.
|
|
|
|
|
(print_symbol_info): Make the last parameter const char *. New
|
|
|
|
|
variable s_filename. Use it in the function.
|
|
|
|
|
(symtab_symbol_info): Make the last_filename variable const char *.
|
|
|
|
|
Replace symtab->filename refererences by symtab_to_filename_for_display
|
|
|
|
|
calls.
|
|
|
|
|
(rbreak_command): New variable fullname. Use it. Replace
|
|
|
|
|
symtab->filename refererence by symtab_to_filename_for_display call.
|
|
|
|
|
* tracepoint.c (set_traceframe_context, trace_find_line_command)
|
|
|
|
|
(print_one_static_tracepoint_marker): Replace symtab->filename
|
|
|
|
|
refererences by symtab_to_filename_for_display calls.
|
|
|
|
|
* tui/tui-source.c (tui_set_source_content): New variables filename and
|
|
|
|
|
s_filename. Replace symtab->filename refererences by this variable.
|
|
|
|
|
Replace other symtab->filename refererences by
|
|
|
|
|
symtab_to_filename_for_display calls.
|
|
|
|
|
|
2013-02-03 16:09:33 +00:00
|
|
|
|
2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
|
|
|
|
|
Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
Add a new variable that controls a way in which filenames are
|
|
|
|
|
displayed.
|
|
|
|
|
* NEWS (set filename-display): New entry.
|
|
|
|
|
* source.c (filename_display_basename, filename_display_relative)
|
|
|
|
|
(filename_display_absolute, filename_display_kind_names)
|
|
|
|
|
(filename_display_string, show_filename_display_string)
|
|
|
|
|
(symtab_to_filename_for_display): New.
|
|
|
|
|
(_initialize_source): Added initialization of 'filename-display'
|
|
|
|
|
variable.
|
|
|
|
|
* source.h (symtab_to_filename_for_display): Added declaration.
|
|
|
|
|
* stack.c (print_frame): Added new variable and calling of a new
|
|
|
|
|
function and condition with this variable. Changed third argument of
|
|
|
|
|
calling of a function.
|
|
|
|
|
|
2013-02-03 16:05:09 +00:00
|
|
|
|
2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
|
|
|
|
|
Rename field reference filename to fullname.
|
|
|
|
|
* tui/tui-data.h (struct tui_source_info): Rename field filename to
|
|
|
|
|
fullname. New comment for it.
|
|
|
|
|
* tui/tui-source.c (tui_set_source_content): Rename field reference
|
|
|
|
|
filename to fullname. Initialize field by symtab_to_fullname now.
|
|
|
|
|
* tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
|
|
|
|
|
reference filename to fullname. Use symtab_to_fullname during
|
|
|
|
|
comparison.
|
|
|
|
|
|
2013-02-03 16:03:07 +00:00
|
|
|
|
2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
Code cleanup.
|
|
|
|
|
* dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
|
|
|
|
|
(dw2_expand_symtabs_with_fullname): ... here. Rename parameter
|
|
|
|
|
filename to fullname. Rename variable this_name to this_fullname.
|
|
|
|
|
Lowercase FILENAME_CMP call.
|
|
|
|
|
(dw2_find_symbol_file): New comment for the returned string.
|
|
|
|
|
(dwarf2_gdb_index_functions): Rename the function to
|
|
|
|
|
dw2_expand_symtabs_with_fullname.
|
|
|
|
|
* psymtab.c (read_psymtabs_with_filename): Rename to ...
|
|
|
|
|
(read_psymtabs_with_fullname): ... here. Rename parameter filename to
|
|
|
|
|
fullname.
|
|
|
|
|
(psym_functions): Rename the function to read_psymtabs_with_fullname.
|
|
|
|
|
* symfile.h (struct quick_symbol_functions): Rename field
|
|
|
|
|
expand_symtabs_with_filename to expand_symtabs_with_fullname and its
|
|
|
|
|
parameter filename to fullname. Document returned string meaning for
|
|
|
|
|
find_symbol_file.
|
|
|
|
|
* symtab.c (find_line_symtab): Rename the called function to
|
|
|
|
|
expand_symtabs_with_fullname.
|
|
|
|
|
|
2013-02-03 16:00:36 +00:00
|
|
|
|
2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
Code cleanup.
|
|
|
|
|
* breakpoint.c (clear_command): Remove variable is_abs, unify the
|
|
|
|
|
call of filename_cmp with compare_filenames_for_search.
|
|
|
|
|
* dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
|
|
|
|
|
is_abs, unify the call of FILENAME_CMP with
|
|
|
|
|
compare_filenames_for_search. New gdb_asserts for real_path and name.
|
|
|
|
|
Unify the call of compare_filenames_for_search with FILENAME_CMP.
|
|
|
|
|
* psymtab.c (partial_map_symtabs_matching_filename): Likewise.
|
|
|
|
|
* symfile.h (struct quick_symbol_functions): Extend the comment for
|
|
|
|
|
map_symtabs_matching_filename.
|
|
|
|
|
* symtab.c (compare_filenames_for_search): Remove the function comment
|
|
|
|
|
relative path requirement. Handle absolute filenames, with a comment.
|
|
|
|
|
(iterate_over_some_symtabs): Remove variable is_abs, unify the call of
|
|
|
|
|
FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
|
|
|
|
|
real_path and name. Unify the call of compare_filenames_for_search
|
|
|
|
|
with FILENAME_CMP.
|
|
|
|
|
(iterate_over_symtabs): New gdb_assert on REAL_PATH.
|
|
|
|
|
|
2013-02-03 15:57:07 +00:00
|
|
|
|
2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
Code cleanup.
|
|
|
|
|
* breakpoint.c (print_breakpoint_location): Replace bp_location field
|
|
|
|
|
source_file references by symtab field references. Remove variables
|
|
|
|
|
sal and fullname.
|
|
|
|
|
(momentary_breakpoint_from_master, add_location_to_breakpoint):
|
|
|
|
|
(clear_command, say_where): Replace bp_location field source_file
|
|
|
|
|
references by symtab field references.
|
|
|
|
|
(bp_location_dtor): Remove the source_file reference.
|
|
|
|
|
(update_static_tracepoint): Replace bp_location field source_file
|
|
|
|
|
references by symtab field references.
|
|
|
|
|
(breakpoint_free_objfile): New function.
|
|
|
|
|
* breakpoint.h (struct bp_location): Extend the comment for line_number.
|
|
|
|
|
Replace the field source_file by field symtab, extend its comment.
|
|
|
|
|
(breakpoint_free_objfile): New declaration.
|
|
|
|
|
* objfiles.c (free_objfile): Call breakpoint_free_objfile.
|
|
|
|
|
* tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
|
|
|
|
|
field source_file references by symtab field references.
|
|
|
|
|
|
2013-02-03 15:54:18 +00:00
|
|
|
|
2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
Replace xfullpath calls by gdb_realpath calls.
|
|
|
|
|
* cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
|
|
|
|
|
function comment.
|
|
|
|
|
* dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
|
|
|
|
|
Remove it from the iterate_over_some_symtabs call.
|
|
|
|
|
(dw2_map_symtabs_matching_filename): Remove parameter full_path.
|
|
|
|
|
Remove it from the dw2_map_expand_apply calls, remove a block handling
|
|
|
|
|
it.
|
|
|
|
|
* psymtab.c (partial_map_expand_apply): Remove parameter full_path.
|
|
|
|
|
Remove it from the iterate_over_some_symtabs call.
|
|
|
|
|
(partial_map_symtabs_matching_filename): Remove parameter full_path.
|
|
|
|
|
Remove it from the partial_map_expand_apply calls, remove a block
|
|
|
|
|
handling it. Drop gdb_realpath call and cleanups from the real_path
|
|
|
|
|
handling.
|
|
|
|
|
* source.c (openp): Drop the comment part about xfullpath. Replace
|
|
|
|
|
xfullpath calls by gdb_realpath calls.
|
|
|
|
|
(find_and_open_source): Replace xfullpath call by gdb_realpath call.
|
|
|
|
|
* symfile.h (struct quick_symbol_functions): Remove parameter full_path
|
|
|
|
|
from method map_symtabs_matching_filename and its comment.
|
|
|
|
|
* symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
|
|
|
|
|
gdb_realpath call.
|
|
|
|
|
* symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
|
|
|
|
|
remove it also from the function comment, remove a block handling it.
|
|
|
|
|
Drop gdb_realpath call and cleanups from the real_path handling.
|
|
|
|
|
(iterate_over_symtabs): Drop variable full_path and its use.
|
|
|
|
|
* symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
|
|
|
|
|
* utils.c (xfullpath): Remove.
|
|
|
|
|
* utils.h (xfullpath): Remove.
|
|
|
|
|
|
2013-02-01 20:54:18 +00:00
|
|
|
|
2013-02-01 Andreas Tobler <andreast@fgznet.ch>
|
|
|
|
|
|
|
|
|
|
* Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
|
|
|
|
|
(HFILES_NO_SRCDIR): Add ppc64-tdep.h.
|
|
|
|
|
(ALLDEPFILES): Add ppc64-tdep.c.
|
|
|
|
|
* configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
|
|
|
|
|
ppc64-tdep.o to gdb_target_obs.
|
|
|
|
|
* ppc64-tdep.h: New file.
|
|
|
|
|
* ppc64-tdep.c: New file.
|
|
|
|
|
(insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
|
|
|
|
|
ppc-linux-tdep.c to here.
|
|
|
|
|
(PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
|
|
|
|
|
(PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
|
|
|
|
|
(ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
|
|
|
|
|
(ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
|
|
|
|
|
from ppc-linux-tdep.c to here.
|
|
|
|
|
(ppc64_convert_from_func_ptr_addr): Rename from
|
|
|
|
|
ppc64_linux_convert_from_func_ptr_addr to
|
|
|
|
|
ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
|
|
|
|
|
here.
|
|
|
|
|
* rs6000-tdep.c:
|
|
|
|
|
(read_insn): Move from ppc-linux-tdep.c to here.
|
|
|
|
|
(insns_match_pattern, insn_d_field, insn_ds_field): Move
|
|
|
|
|
from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
|
|
|
|
|
* ppc-linux-tdep.c: Include ppc64-tdep.h.
|
|
|
|
|
Removed above functions.
|
|
|
|
|
(ppc_linux_init_abi): Adjust.
|
|
|
|
|
|
2013-02-01 20:08:45 +00:00
|
|
|
|
2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
|
|
|
|
|
|
|
|
|
|
* ada-valprint.c (ada_print_floating): Remove unused 'len'.
|
|
|
|
|
|
2013-02-01 20:06:35 +00:00
|
|
|
|
2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
|
|
|
|
|
|
|
|
|
|
* ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
|
|
|
|
|
|
2013-02-01 19:58:04 +00:00
|
|
|
|
2013-02-01 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
|
|
|
|
|
* frame.h (deprecated_pc_in_call_dummy): Delete declaration.
|
|
|
|
|
|
2013-02-01 19:39:04 +00:00
|
|
|
|
2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* elfread.c (elf_symfile_read): Limit separate debug info additions to
|
|
|
|
|
files with no separate debug info.
|
|
|
|
|
* objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
|
|
|
|
|
* symfile.c (read_symbols): Call find_separate_debug_file_in_section
|
|
|
|
|
only for files with no separate debug info.
|
|
|
|
|
|
2013-01-31 19:55:15 +00:00
|
|
|
|
2013-01-31 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* jit.c (jit_program_space_data): Rename from jit_inferior_data;
|
|
|
|
|
change type.
|
|
|
|
|
(struct jit_program_space_data): Rename from jit_inferior_data.
|
|
|
|
|
Update comments.
|
|
|
|
|
(get_jit_program_space_data): Rename from get_jit_inferior_data.
|
|
|
|
|
Change return type. Attach data to program space.
|
|
|
|
|
(jit_program_space_data_cleanup): Rename from
|
|
|
|
|
jit_inferior_data_cleanup; change argument type.
|
|
|
|
|
(jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
|
|
|
|
|
change type.
|
|
|
|
|
(jit_register_code): Update.
|
|
|
|
|
(jit_update_inferior_cache): Remove.
|
|
|
|
|
(jit_breakpoint_deleted): Get jit data from the location's program
|
|
|
|
|
space.
|
|
|
|
|
(jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
|
|
|
|
|
'ps_data', change type.
|
|
|
|
|
(jit_inferior_init, jit_breakpoint_re_set_internal)
|
|
|
|
|
(jit_event_handler): Update.
|
|
|
|
|
(free_objfile_data): Get data from objfile's program space.
|
|
|
|
|
(_initialize_jit): Update.
|
|
|
|
|
|
2013-01-31 19:52:03 +00:00
|
|
|
|
2013-01-31 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR gdb/13987:
|
|
|
|
|
* jit.c (struct jit_inferior_data) <cached_code_address,
|
|
|
|
|
jit_breakpoint>: New fields.
|
|
|
|
|
(jit_breakpoint_re_set_internal): Fix logging. Only create
|
|
|
|
|
breakpoint if cached address has changed.
|
|
|
|
|
(jit_update_inferior_cache, jit_breakpoint_deleted): New
|
|
|
|
|
functions.
|
|
|
|
|
(_initialize_jit): Register breakpoint deleted observer.
|
|
|
|
|
|
2013-01-31 19:18:59 +00:00
|
|
|
|
2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
|
|
|
|
|
|
|
|
|
|
* infrun.c (handle_syscall_event): Remove unused gdbarch.
|
|
|
|
|
(save_infcall_suspend_state): Ifdef out unused inf.
|
|
|
|
|
(restore_infcall_suspend_state): Ifdef out unused inf.
|
|
|
|
|
* jit.c (jit_register_code): Remove unused i, b, inf_data.
|
|
|
|
|
(jit_frame_sniffer): Remove unused inf_data.
|
|
|
|
|
|
2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
* c-exp.y (classify_inner_name): Remove unused type.
* c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
need_escape.
(c_get_string): Remove unused kind.
* c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
Reference: http://sourceware.org/ml/gdb-patches/2013-01/msg00759.html
2013-01-31 18:46:11 +00:00
|
|
|
|
2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
|
|
|
|
|
|
|
|
|
|
* c-exp.y (classify_inner_name): Remove unused type.
|
|
|
|
|
* c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
|
|
|
|
|
in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
|
|
|
|
|
need_escape.
|
|
|
|
|
(c_get_string): Remove unused kind.
|
|
|
|
|
* c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
|
|
|
|
|
|
2013-01-31 18:37:39 +00:00
|
|
|
|
2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
|
|
|
|
|
|
|
|
|
|
* charset.c (intermediate_encoding): Remove unused i.
|
|
|
|
|
* completer.c (signal_completer): Remove unused i.
|
|
|
|
|
* continuations.c (discard_my_continuations_1): Remove unused
|
|
|
|
|
continuation_ptr.
|
|
|
|
|
* corelow.c (core_close): Remove unuseD name.
|
|
|
|
|
(get_core_siginfo): Remove unused pid.
|
|
|
|
|
* cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
|
|
|
|
|
i, cps.
|
|
|
|
|
* dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
|
|
|
|
|
(loclist_describe_location): Remove unused first.
|
|
|
|
|
* event-top.c (command_line_handler): Remove unused got_eof.
|
|
|
|
|
* exec.c (exec_close_1): Remove unused need_symtab_cleanup.
|
|
|
|
|
(resize_section_table): Remove unused old_value.
|
|
|
|
|
* gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
|
|
|
|
|
* gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
|
|
|
|
|
* i386-tdep.c (i386_process_record): Remove unused rex.
|
|
|
|
|
* infcmd.c (get_return_value): Remove unused uiout.
|
|
|
|
|
* jv-lang.c (type_from_class): Remove unused is_array.
|
|
|
|
|
* jv-valprint.c (java_val_print): Remove unused i.
|
|
|
|
|
* linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
|
|
|
|
|
* linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
|
|
|
|
|
* m2-typeprint.c (m2_print_type): Remove unused code.
|
|
|
|
|
* macroexp.c (get_character_constant): Remove unused body_start.
|
|
|
|
|
(macro_stringify): Remove unused result.
|
|
|
|
|
* objc-lang.c (find_methods): Remove unused gdbarch.
|
|
|
|
|
* objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
|
|
|
|
|
* regcache.c (regcache_cooked_read): Remove unused gdbarch.
|
|
|
|
|
* stack.c (print_frame_args): Remove unused summary.
|
|
|
|
|
* thread.c (thread_apply_command): Remove unused p.
|
|
|
|
|
* valarith.c (value_x_unop): Remove unused mangle_ptr.
|
|
|
|
|
* valops.c (search_struct_method): Remove unused skip.
|
|
|
|
|
* valprint.c (generic_val_print): Remove unused byte_order.
|
|
|
|
|
* varobj.c (varobj_update): Remove unused changed.
|
|
|
|
|
* cli/cli-cmds.c (complete_command): Remove unused next_item.
|
|
|
|
|
(alias_command): Remove unused c.
|
|
|
|
|
* mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
|
|
|
|
|
* mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
|
|
|
|
|
format.
|
|
|
|
|
(mi_cmd_data_write_memory): Remove unused word_format.
|
|
|
|
|
(mi_cmd_data_write_memory_bytes): Remove unused r.
|
|
|
|
|
* python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
|
|
|
|
|
p_start, p_end.
|
|
|
|
|
* python/python.c (_initialize_python): Remove unused cmd_name, cmd.
|
|
|
|
|
* tui/tui-disasm.c (tui_set_disassem_content): Remove unused
|
|
|
|
|
line_width.
|
|
|
|
|
|
2013-01-31 18:31:48 +00:00
|
|
|
|
2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
|
|
|
|
|
* symtab.c (iterate_over_symtabs): Remove unused s.
|
|
|
|
|
(find_pc_sect_symtab): Remove unused pspAce.
|
|
|
|
|
(find_pc_sect_line): Remove unused alt_symtab.
|
|
|
|
|
(find_pcs_for_symtab_line): Remove unused ix, previous_function.
|
|
|
|
|
(completion_list_add_name): Remove unused newsize.
|
|
|
|
|
|
2013-01-31 17:41:09 +00:00
|
|
|
|
2013-01-31 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR c++/14998:
|
|
|
|
|
* dwarf2read.c (read_tag_ptr_to_member_type): Handle
|
|
|
|
|
TYPE_CODE_FUNC.
|
|
|
|
|
|
2013-01-31 16:32:44 +00:00
|
|
|
|
2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
|
|
|
|
|
|
|
|
|
|
* target.c (target_read_string): Remove unused origlen.
|
|
|
|
|
|
2013-01-31 16:27:50 +00:00
|
|
|
|
2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
|
|
|
|
|
|
|
|
|
|
* auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
|
|
|
|
|
* ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
|
|
|
|
|
* ax-general.c (ax_print): Remove unused is_float.
|
|
|
|
|
* blockframe.c (block_innermost_frame): Remove unused start, end.
|
|
|
|
|
* break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
|
|
|
|
|
|
2013-01-31 13:52:52 +00:00
|
|
|
|
2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
|
|
|
|
|
|
|
|
|
|
* solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
|
|
|
|
|
(svr4_read_so_list): Remove unused lmo.
|
|
|
|
|
* solib-target.c (solib_target_relocate_section_addresses): Remove
|
|
|
|
|
unused flags.
|
|
|
|
|
|
2013-01-30 20:42:11 +00:00
|
|
|
|
2013-01-30 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
|
|
|
|
|
|
2013-01-30 20:38:04 +00:00
|
|
|
|
2013-01-30 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
|
|
|
|
|
* utils.c (gnu_debuglink_crc32): Remove.
|
|
|
|
|
* utils.h (gnu_debuglink_crc32): Don't declare.
|
|
|
|
|
|
2013-01-30 18:45:39 +00:00
|
|
|
|
2013-01-30 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
|
|
|
|
|
(read_structure_type, read_enumeration_type): Remove cast.
|
|
|
|
|
|
2013-01-30 17:19:57 +00:00
|
|
|
|
2013-01-30 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2read.c (read_namespace_type): Remove cast.
|
|
|
|
|
(read_typedef): Likewise.
|
|
|
|
|
|
2013-01-29 19:26:22 +00:00
|
|
|
|
2013-01-29 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2read.c (free_dwo_file): Remove assert.
|
|
|
|
|
|
2013-01-29 18:54:24 +00:00
|
|
|
|
2013-01-29 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* value.c (deprecated_set_value_modifiable): Remove.
|
|
|
|
|
* value.h (deprecated_set_value_modifiable): Remove.
|
|
|
|
|
|
2013-01-28 18:02:48 +00:00
|
|
|
|
2013-01-28 Doug Evans <dje@google.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
|
|
|
|
|
to addresses from dwo files.
|
|
|
|
|
|
2013-01-25 22:31:43 +00:00
|
|
|
|
2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
|
|
|
|
|
|
|
|
|
|
* valops.c (find_overload_match): Remove unused argument 'lax'.
|
|
|
|
|
* value.h: Remove unused argument 'lax' from the declaration of
|
|
|
|
|
find_overload_match.
|
|
|
|
|
* eval.c (value_subexp_standard): Do not pass a 'lax' argument
|
|
|
|
|
to find_overload_match.
|
|
|
|
|
* valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
|
|
|
|
|
argument to find_overload_match.
|
|
|
|
|
|
2013-01-25 17:57:31 +00:00
|
|
|
|
2013-01-25 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2read.c (processing_has_namespace_info): Remove.
|
|
|
|
|
(struct dwarf2_cu) <processing_has_namespace_info>: New field.
|
|
|
|
|
(process_die, read_func_scope, dwarf2_start_symtab)
|
|
|
|
|
(new_symbol_full): Update.
|
|
|
|
|
|
2013-01-25 17:55:24 +00:00
|
|
|
|
2013-01-25 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* cp-namespace.c (cp_set_block_scope): Remove.
|
|
|
|
|
* cp-support.h (cp_set_block_scope): Remove.
|
|
|
|
|
* dbxread.c: Include block.h.
|
|
|
|
|
(cp_set_block_scope): New function.
|
|
|
|
|
(process_one_symbol): Update.
|
|
|
|
|
* dwarf2read.c (read_func_scope): Use block_set_scope.
|
|
|
|
|
|
2013-01-25 17:38:00 +00:00
|
|
|
|
2013-01-25 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* remote.c (add_current_inferior_and_thread): Tweak comment.
|
|
|
|
|
|
2013-01-25 17:36:01 +00:00
|
|
|
|
2013-01-25 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
|
|
|
|
|
(cp_add_using_directive): Add 'copy_names' argument.
|
|
|
|
|
* cp-support.h (cp_add_using_directive): Update.
|
|
|
|
|
(struct using_direct) <import_src, import_dest, alias,
|
|
|
|
|
declaration>: Now const.
|
|
|
|
|
* dwarf2read.c (read_import_statement): Use obconcat.
|
|
|
|
|
Don't copy names passed to cp_add_using_directive.
|
|
|
|
|
|
2013-01-25 17:34:03 +00:00
|
|
|
|
2013-01-25 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
|
|
|
|
|
|
Fix GDB internal error against targets that return a thread in T stop replies but don't support qC.
Yao writes:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
GDB gets an internal error when it connects to GDBserver started with
'--disable-packet=qC'.
Sending packet: $QNonStop:0#8c...Packet received: OK
Sending packet: $?#3f...Packet received: T0505:00000000;04:00f0ffbf;08:b0c2e44c;thread:p4255.4255;core:1;
Sending packet: $Hc-1#09...Packet received: E01
Sending packet: $qC#b4...Packet received:
Sending packet: $qAttached:a410#bf...Packet received: E01
Packet qAttached (query-attached) is supported
warning: Remote failure reply: E01
Sending packet: $qOffsets#4b...Packet received:
../../../git/gdb/target.c:3248: internal-error: Can't determine the current address space of thread Thread 16981
When start remote, the call chain is as follows,
remote_start_remote
add_current_inferior_and_thread <--[1]
...
start_remote
wait_for_inferior
remote_wait_as
process_stop_reply
get_thread_arch_regcache <--[2]
remote_notice_new_inferior <--[3]
GDB sends packet "qC" in [1] and adds the thread/inferior if the remote
stubs understands "qC". In [2], GDB looks for the inferior to build a
regcache, and notices a new inferior in [3]. As we can see, GDB assumes
that the inferior can be found in [2]. Once the remote stub doesn't
support "qC", GDB can't look for the inferior in [2], and emits an
internal error.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Right after the initial connection, we query the target for its state,
with the ? packet. We store the resulting wait status / stop reply
aside, and query the target for the current thread, using qC, which
fails, so we fake a ptid for the target's thread. We then later,
after the initial setup, end up consuming that set-aside wait status,
parsing the T stop reply, which contains a "thread" "register" (which
was the thread the target would have replied to qC). We get into
trouble because the ptid in that stop reply doesn't match our faked up
ptid in the initial setup, although the target threads are the same...
So we had the T stop reply handy all along. We might as well extract
the thread's ptid from it, and avoid all the resulting issues.
qC is also used after vRun, in order to discover the new process'es
main thread. But, vRun's reply is also a wait status, just like
'?''s, which is quite convenient.
This means that if we have a "Txx thread: ptid" reply, then we don't
really need qC. The patch makes GDB look in the T reply first, and if
not found, try with qC. The packet handling seems to have been added
in gdb-4.18 (1999), and I see that in that same release, "Txx thread:
ptid" didn't exist yet, which probably explains why nobody though of
doing this before.
Regression tested against a gdbserver with qC disabled (and then
enabled), on x86_64 Fedora 17.
2013-01-25 Pedro Alves <palves@redhat.com>
* remote.c (stop_reply_extract_thread): New.
(add_current_inferior_and_thread): New parameter 'wait_status'.
Handle it.
(remote_start_remote): Pass wait status to
add_current_inferior_and_thread.
(extended_remote_run): Update comment.
(extended_remote_create_inferior_1): Pass wait status to
add_current_inferior_and_thread.
2013-01-25 17:25:59 +00:00
|
|
|
|
2013-01-25 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* remote.c (stop_reply_extract_thread): New.
|
|
|
|
|
(add_current_inferior_and_thread): New parameter 'wait_status'.
|
|
|
|
|
Handle it.
|
|
|
|
|
(remote_start_remote): Pass wait status to
|
|
|
|
|
add_current_inferior_and_thread.
|
|
|
|
|
(extended_remote_run): Update comment.
|
|
|
|
|
(extended_remote_create_inferior_1): Pass wait status to
|
|
|
|
|
add_current_inferior_and_thread.
|
|
|
|
|
|
2013-01-25 17:16:43 +00:00
|
|
|
|
2013-01-25 Andrew Burgess <aburgess@broadcom.com>
|
|
|
|
|
Ulrich Weigand <uweigand@de.ibm.com>
|
|
|
|
|
|
|
|
|
|
* valarith.c (value_vector_widen): New function for replicating a
|
|
|
|
|
scalar into a vector.
|
|
|
|
|
(value_binop): Use value_vector_widen to widen scalar to vector
|
|
|
|
|
rather than casting, this better matches gcc C behaviour.
|
|
|
|
|
* valops.c (value_casst): Update logic for casting between vector
|
|
|
|
|
types, and for casting from scalar to vector, try to match gcc C
|
|
|
|
|
behaviour.
|
|
|
|
|
* value.h (value_vector_widen): Declare.
|
|
|
|
|
* opencl-lang.c (opencl_value_cast): New opencl specific casting
|
|
|
|
|
function, handle special case for casting scalar to vector.
|
|
|
|
|
(opencl_relop): Use opencl_value_cast.
|
|
|
|
|
(evaluate_subexp_opencl): Use opencl_value_cast instead of
|
|
|
|
|
value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
|
|
|
|
|
in order to use opencl_value_cast.
|
|
|
|
|
|
2013-01-25 14:17:10 +00:00
|
|
|
|
2013-01-25 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* event-loop.c: Include "queue.h".
|
|
|
|
|
(gdb_event_p): New typedef.
|
|
|
|
|
(DECLARE_QUEUE_P): Use.
|
|
|
|
|
(DEFINE_QUEUE_P): Use.
|
|
|
|
|
(async_queue_event): Remove.
|
|
|
|
|
(gdb_event_xfree): New.
|
|
|
|
|
(initialize_event_loop): New.
|
|
|
|
|
(process_event): Use QUEUE macros.
|
|
|
|
|
(event_queue): Remove.
|
|
|
|
|
(gdb_wait_for_event): Caller update.
|
|
|
|
|
(check_async_event_handlers): Likewise.
|
|
|
|
|
(poll_timers): Likewise.
|
|
|
|
|
* event-loop.h (initialize_event_loop): Declare.
|
|
|
|
|
* event-loop.c (gdb_event_xfree): New.
|
|
|
|
|
* top.c (gdb_init): Call initialize_event_loop.
|
|
|
|
|
|
2013-01-25 14:14:18 +00:00
|
|
|
|
2013-01-25 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* event-loop.c (async_queue_event): Remove one parameter
|
|
|
|
|
'position'. Remove code handling 'position' == TAIL.
|
|
|
|
|
(gdb_wait_for_event): Caller update.
|
|
|
|
|
(check_async_event_handlers): Caller update.
|
|
|
|
|
(poll_timers): Caller update.
|
|
|
|
|
* event-loop.h (enum queue_position): Remove.
|
|
|
|
|
|
2013-01-25 04:22:01 +00:00
|
|
|
|
2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
|
|
|
|
|
|
|
|
|
|
* MAINTAINERS: Update my email.
|
|
|
|
|
|
2013-01-25 00:46:19 +00:00
|
|
|
|
2013-01-25 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* main.c (print_gdb_help): Remove "--epoch" from the help
|
|
|
|
|
message.
|
|
|
|
|
|
2013-01-24 20:36:03 +00:00
|
|
|
|
2013-01-24 Ulrich Weigand <uweigand@de.ibm.com>
|
|
|
|
|
|
|
|
|
|
* symtab.c (skip_prologue_using_sal): Consider a file
|
|
|
|
|
change the same as an increased line number
|
|
|
|
|
|
2013-01-24 20:25:18 +00:00
|
|
|
|
2013-01-24 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
|
|
|
|
|
|
2013-02-18 23:50:32 +00:00
|
|
|
|
* MAINTAINERS (Write After Approval): Add myself to the list.
|
2013-01-24 20:25:18 +00:00
|
|
|
|
|
2013-01-24 18:04:34 +00:00
|
|
|
|
2013-01-24 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* ada-lang.h (ada_decode_symbol): Make return type const.
|
|
|
|
|
* ada-lang.c (ada_decode_symbol): Likewise.
|
|
|
|
|
|
2013-01-23 20:07:39 +00:00
|
|
|
|
2013-01-23 Doug Evans <dje@google.com>
|
|
|
|
|
|
|
|
|
|
* linespec.c (find_linespec_symbols): Make static.
|
|
|
|
|
|
2013-01-23 20:03:18 +00:00
|
|
|
|
2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
|
|
|
|
|
|
|
|
|
|
* ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
|
|
|
|
|
type on float conversion for complex type.
|
|
|
|
|
|
2013-01-23 19:59:13 +00:00
|
|
|
|
2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
|
|
|
|
|
|
|
|
|
|
Add a new class gdb.Architecture which exposes GDB's
|
|
|
|
|
internal representation of architecture via GDB Python API.
|
|
|
|
|
* Makefile.in: Add entries corresponding to the new file
|
|
|
|
|
python/py-arch.c.
|
|
|
|
|
* NEWS (Python Scripting): Add entries for the new class
|
|
|
|
|
gdb.Architecture and the new method gdb.Frame.architecture.
|
|
|
|
|
* python/py-arch.c: Implement gdb.Architecture class.
|
|
|
|
|
* python/py-frame.c (frapy_arch): Implement the method
|
|
|
|
|
gdb.Frame.architecture().
|
|
|
|
|
(frame_object_methods): Add 'architecture' to the method table.
|
|
|
|
|
* python/python-internal.h: Add declarations of new utility
|
|
|
|
|
functions.
|
|
|
|
|
* python/python.c (_initialize_python): Initialize
|
|
|
|
|
gdb.Architecture class.
|
|
|
|
|
|
2013-01-23 18:47:51 +00:00
|
|
|
|
2013-01-23 Doug Evans <dje@google.com>
|
|
|
|
|
|
|
|
|
|
Work around binutils/15021.
|
|
|
|
|
* dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
|
|
|
|
|
type_unit_group out of union s. All uses updated.
|
|
|
|
|
(read_index_from_section): Watch for index version 8.
|
|
|
|
|
(follow_die_sig): If using .gdb_index version <= 7, record the TU as
|
|
|
|
|
an imported symtab.
|
|
|
|
|
(write_psymtabs_to_index): Increment version number to 8.
|
|
|
|
|
|
2013-01-22 20:22:39 +00:00
|
|
|
|
2013-01-22 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* annotate.c (breakpoint_changed): Skip if breakpoint is not
|
|
|
|
|
user-visible.
|
|
|
|
|
|
All annotate_breakpoints_changed calls are along-side
observer_notify_breakpoints_changed calls. All, except the
init_raw_breakpoint one. But that one is actually wrong. The
breakpoint is being constructed at that point, and hasn't been placed
on the breakpoint chain yet. It would be better placed in
install_breakpoint, and I actually started out that way. But once the
annotate_breakpoints_changed are parallel to the observer calls, we
can fully move annotations to observers too.
One issue is that this changes the order of annotations a bit.
Before, we'd emit the annotation, and after call "mention()" on the
breakpoint (which prints the breakpoint number, etc.). But, we call
the observers _after_ mention is called, so the annotation output will
change a little:
void
install_breakpoint (int internal, struct breakpoint *b, int update_gll)
{
add_to_breakpoint_chain (b);
set_breakpoint_number (internal, b);
if (is_tracepoint (b))
set_tracepoint_count (breakpoint_count);
if (!internal)
mention (b);
observer_notify_breakpoint_created (b);
if (update_gll)
update_global_location_list (1);
}
I believe this order doesn't really matter (the frontend needs to wait
for the prompt anyway), so I just adjust the expected output in the
tests. Emacs in annotations mode doesn't seem to complain. Couple
that with the previous patch that suppressed duplicated annotations,
and, the fact that some annotations calls were actually missing (were
we do have observer calls), more changes to the tests are needed
anyway.
Tested on x86_64 Fedora 17.
gdb/
2013-01-22 Pedro Alves <palves@redhat.com>
* annotate.c (annotate_breakpoints_changed): Rename to ...
(annotate_breakpoints_invalid): ... this. Make static.
(breakpoint_changed): Adjust.
(_initialize_annotate): Always install the observers. Install a
"breakpoint_created" observer.
* annotate.h (annotate_breakpoints_changed): Delete declaration.
* breakpoint.c (set_breakpoint_condition)
(breakpoint_set_commands, do_map_commands_command)
(init_raw_breakpoint, clear_command, set_ignore_count)
(enable_breakpoint_disp): No longer call
annotate_breakpoints_changed.
gdb/testsuite/
2013-01-22 Pedro Alves <palves@redhat.com>
* gdb.base/annota1.exp (breakpoints_invalid): New variable.
Adjust tests to breakpoints-invalid changes.
* gdb.cp/annota2.exp (breakpoints_invalid, frames_invalid): New
variables.
Adjust tests to breakpoints-invalid changes.
2013-01-22 20:19:40 +00:00
|
|
|
|
2013-01-22 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* annotate.c (annotate_breakpoints_changed): Rename to ...
|
|
|
|
|
(annotate_breakpoints_invalid): ... this. Make static.
|
|
|
|
|
(breakpoint_changed): Adjust.
|
|
|
|
|
(_initialize_annotate): Always install the observers. Install a
|
|
|
|
|
"breakpoint_created" observer.
|
|
|
|
|
* annotate.h (annotate_breakpoints_changed): Delete declaration.
|
|
|
|
|
* breakpoint.c (set_breakpoint_condition)
|
|
|
|
|
(breakpoint_set_commands, do_map_commands_command)
|
|
|
|
|
(init_raw_breakpoint, clear_command, set_ignore_count)
|
|
|
|
|
(enable_breakpoint_disp): No longer call
|
|
|
|
|
annotate_breakpoints_changed.
|
|
|
|
|
|
With some changes to how software single-step (SSS) breakpoints are
handled, one of those being to place SSS breakpoints on the breakpoint
chain as all other breakpoints, annota1.exp times out with lots and
lots of breakpoint-invalid and frame-changed annotations. All those
extra annotations are actually unnecessary. For one, SSS breakpoints
are internal breakpoints, so the frontend shouldn't care if they were
added, removed or changed. Then, there's really no point in emitting
"breakpoints-invalid" or "frames-invalid" more than once between times
the frontend/user can actually issues GDB commands; the frontend will
have to wait for the GDB prompt to refresh its state, so emitting
those annotations at most once between prompts is enough. Non-stop or
async would complicate this, but no frontend will be using annotations
in those modes (one of goes of emacs switching to MI was non-stop mode
support, AFAIK). The previous patch reveals there has been an
intention in the past to suppress multiple breakpoints-invalid
annotations caused by ignore count changes. As the previous patch
shows, that's always been broken, but in any case, this patch actually
makes it work. The next patch will remove several annotation-specific
calls in breakpoint.c in favor of always using the breakpoint modified
& friends observers, and that causes yet more of these annotations,
because several calls to the corresponding annotate_* functions in
breakpoint.c are missing, particularly in newer code.
So all in all, here's a simple mechanism that avoids sending the same
annotation to the frontend more than once until gdb is ready to accept
further commands.
Tested on x86_64 Fedora 17.
2013-01-22 Pedro Alves <palves@redhat.com>
* annotate.c: Include "inferior.h".
(frames_invalid_emitted)
(breakpoints_invalid_emitted): New globals.
(async_background_execution_p): New function.
(annotate_breakpoints_changed, annotate_frames_invalid): Skip
emitting the annotation if it has already been emitted.
(annotate_display_prompt): New function.
* annotate.h (annotate_display_prompt): New declaration.
* event-top.c: Include annotate.h.
(display_gdb_prompt): Call annotate_display_prompt.
2013-01-22 20:17:10 +00:00
|
|
|
|
2013-01-22 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* annotate.c: Include "inferior.h".
|
|
|
|
|
(frames_invalid_emitted)
|
|
|
|
|
(breakpoints_invalid_emitted): New globals.
|
|
|
|
|
(async_background_execution_p): New function.
|
|
|
|
|
(annotate_breakpoints_changed, annotate_frames_invalid): Skip
|
|
|
|
|
emitting the annotation if it has already been emitted.
|
|
|
|
|
(annotate_display_prompt): New function.
|
|
|
|
|
* annotate.h (annotate_display_prompt): New declaration.
|
|
|
|
|
* event-top.c: Include annotate.h.
|
|
|
|
|
(display_gdb_prompt): Call annotate_display_prompt.
|
|
|
|
|
|
There's code in annotate.c and breakpoint.c that is supposed to
suppress multiple breakpoints-invalid annotations when the ignore
count of a breakpoint changes, up until the target actually stops.
But, the code is bogus:
void
annotate_breakpoints_changed (void)
{
if (annotation_level == 2)
{
target_terminal_ours ();
printf_unfiltered (("\n\032\032breakpoints-invalid\n"));
if (ignore_count_changed)
ignore_count_changed = 0; /* Avoid multiple break annotations. */
}
}
The "ignore_count_changed" flag isn't actually guarding the output of
the annotation at all. It would have been better written something
like:
void
annotate_breakpoints_changed (void)
{
if (annotation_level == 2 && !ignore_count_changed)
{
target_terminal_ours ();
printf_unfiltered (("\n\032\032breakpoints-invalid\n"));
ignore_count_changed = 0; /* Avoid multiple break annotations. */
}
}
but, it wasn't. AFAICS, that goes all the way back to the original
patch'es submission and check in, at
<http://sourceware.org/ml/gdb-patches/1999-q4/msg00106.html>. I
looked a tar of HP's wdb from 1999, and even though that contains
local changes in the annotate code, this suppression seems borked
there too to me.
The original patch added a test to supposedly exercise this
suppression, but, it actually doesn't. It merely tests that
"breakpoints-invalid" is output after "stopped", but doesn't check
whether the duplicates supression actually works (IOW, check that only
_one_ annotation is seen). I was going to simply delete the tests
too, but a following patch will eliminate the duplicates in a
different way (which I needed for a different reason), so instead, I'm
making the tests actually fail if a duplicate annotation is seen.
Worry not, the test doesn't actually fail! The reason is that
breakpoint.c does:
else if (b->ignore_count > 0)
{
b->ignore_count--;
annotate_ignore_count_change ();
bs->stop = 0;
/* Increase the hit count even though we don't stop. */
++(b->hit_count);
observer_notify_breakpoint_modified (b);
}
where the annotate_ignore_count_change call is meant to inform the
"breakpoint_modified" annotation observer to ignore the notification.
All sounds good. But, the trouble is that nowadays annotate.c only
installs the observers if GDB is started with annotations enabled with
a command line option (gdb --annotate=2):
void
_initialize_annotate (void)
{
if (annotation_level == 2)
{
observer_attach_breakpoint_deleted (breakpoint_changed);
observer_attach_breakpoint_modified (breakpoint_changed);
}
}
and annota1.exp, to enable annotations, starts GDB normally, and
afterwards does "set annotate 2", so the observers aren't installed
when annota1.exp is run, and therefore changing the ignore count isn't
triggering any annotation at all...
gdb/
2013-01-22 Pedro Alves <palves@redhat.com>
* annotate.c (ignore_count_changed): Delete.
(annotate_breakpoints_changed): Don't clear ignore_count_changed.
(annotate_ignore_count_change): Delete.
(annotate_stopped): Don't emit a delayed breakpoints-changed
annotation.
* annotate.h (annotate_ignore_count_change): Delete.
* breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
annotate_ignore_count_change.
gdb/testsuite/
2013-01-22 Pedro Alves <palves@redhat.com>
* gdb.base/annota1.exp (annotate ignore count change): Add
expected output for failure case.
2013-01-22 20:08:30 +00:00
|
|
|
|
2013-01-22 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* annotate.c (ignore_count_changed): Delete.
|
|
|
|
|
(annotate_breakpoints_changed): Don't clear ignore_count_changed.
|
|
|
|
|
(annotate_ignore_count_change): Delete.
|
|
|
|
|
(annotate_stopped): Don't emit a delayed breakpoints-changed
|
|
|
|
|
annotation.
|
|
|
|
|
* annotate.h (annotate_ignore_count_change): Delete.
|
|
|
|
|
* breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
|
|
|
|
|
annotate_ignore_count_change.
|
|
|
|
|
|
2013-01-22 15:57:28 +00:00
|
|
|
|
2013-01-22 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
|
|
|
|
|
require_rvalue for a register location.
|
|
|
|
|
|
2013-01-22 00:06:26 +00:00
|
|
|
|
2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
|
|
|
|
|
|
|
|
|
|
* breakpoint.c (print_one_breakpoint_location): Add MI
|
|
|
|
|
field 'thread-groups' when printing a breakpoint.
|
|
|
|
|
(output_thread_groups): New function.
|
|
|
|
|
|
2013-01-21 21:44:57 +00:00
|
|
|
|
2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
|
|
|
|
|
|
|
|
|
|
* python/lib/gdb/commands/explore.py
|
|
|
|
|
(CompoundExplorer.explore_expr): Correct the name of a method
|
|
|
|
|
being invoked.
|
|
|
|
|
(ExploreTypeCommand.invoke): Add a missing 'return'.
|
|
|
|
|
|
2013-01-21 18:15:32 +00:00
|
|
|
|
2013-01-21 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* gdb_obstack.h (obconcat): Move declaration here, from...
|
|
|
|
|
* symfile.h (obconcat): ... here.
|
|
|
|
|
* gdb_obstack.c: New file.
|
|
|
|
|
(obconcat): Move from...
|
|
|
|
|
* symfile.c (obconcat): ... here.
|
|
|
|
|
* Makefile.in (SFILES): Add gdb_obstack.c.
|
|
|
|
|
(COMMON_OBS): Add gdb_obstack.o.
|
|
|
|
|
|
* symfile.h (obsavestring): Don't declare.
* symfile.c (obsavestring): Remove.
* ada-exp.y: Use obstack_copy0, not obsavestring.
* ada-lang.c: Use obstack_copy0, not obsavestring.
* coffread.c: Use obstack_copy0, not obsavestring.
* cp-namespace.c: Use obstack_copy0, not obsavestring.
* dbxread.c: Use obstack_copy0, not obsavestring.
* dwarf2read.c: Use obstack_copy0, not obsavestring.
* jit.c: Use obstack_copy0, not obsavestring.
* mdebugread.c: Use obstack_copy0, not obsavestring.
* psymtab.c: Use obstack_copy0, not obsavestring.
* stabsread.c: Use obstack_copy0, not obsavestring.
* xcoffread.c: Use obstack_copy0, not obsavestring.
2013-01-21 18:13:14 +00:00
|
|
|
|
2013-01-21 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* symfile.h (obsavestring): Don't declare.
|
|
|
|
|
* symfile.c (obsavestring): Remove.
|
|
|
|
|
* ada-exp.y: Use obstack_copy0, not obsavestring.
|
|
|
|
|
* ada-lang.c: Use obstack_copy0, not obsavestring.
|
|
|
|
|
* coffread.c: Use obstack_copy0, not obsavestring.
|
|
|
|
|
* cp-namespace.c: Use obstack_copy0, not obsavestring.
|
|
|
|
|
* dbxread.c: Use obstack_copy0, not obsavestring.
|
|
|
|
|
* dwarf2read.c: Use obstack_copy0, not obsavestring.
|
|
|
|
|
* jit.c: Use obstack_copy0, not obsavestring.
|
|
|
|
|
* mdebugread.c: Use obstack_copy0, not obsavestring.
|
|
|
|
|
* psymtab.c: Use obstack_copy0, not obsavestring.
|
|
|
|
|
* stabsread.c: Use obstack_copy0, not obsavestring.
|
|
|
|
|
* xcoffread.c: Use obstack_copy0, not obsavestring.
|
|
|
|
|
|
2013-01-21 18:10:33 +00:00
|
|
|
|
2013-01-21 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2read.c (fixup_go_packaging): Save package name
|
|
|
|
|
on objfile obstack.
|
|
|
|
|
* gdbtypes.c (init_type): Don't copy name.
|
|
|
|
|
|
* dwarf2read.c (struct partial_die_info) <name, scope>: Now
const.
(struct attribute) <u.str>: Now const.
(struct fnfieldlist) <name>: Now const.
(dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
(partial_die_parent_scope): Make return type const.
(partial_die_full_name, add_partial_symbol): Update.
(dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
'name' const.
(find_file_and_directory): Make 'name' and 'comp_dir' const.
(read_file_scope, read_func_scope, dwarf2_add_field)
(dwarf2_add_member_fn, read_structure_type)
(process_enumeration_scope, read_array_type, read_module_type)
(read_base_type, read_subrange_type): Update.
(dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
(new_symbol_full, guess_full_die_structure_name): Update.
(dwarf2_canonicalize_name): Return const type. Make 'name' const.
(dwarf2_name): Return const type.
(dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
const.
2013-01-21 18:08:53 +00:00
|
|
|
|
2013-01-21 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2read.c (struct partial_die_info) <name, scope>: Now
|
|
|
|
|
const.
|
|
|
|
|
(struct attribute) <u.str>: Now const.
|
|
|
|
|
(struct fnfieldlist) <name>: Now const.
|
|
|
|
|
(dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
|
|
|
|
|
(partial_die_parent_scope): Make return type const.
|
|
|
|
|
(partial_die_full_name, add_partial_symbol): Update.
|
|
|
|
|
(dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
|
|
|
|
|
'name' const.
|
|
|
|
|
(find_file_and_directory): Make 'name' and 'comp_dir' const.
|
|
|
|
|
(read_file_scope, read_func_scope, dwarf2_add_field)
|
|
|
|
|
(dwarf2_add_member_fn, read_structure_type)
|
|
|
|
|
(process_enumeration_scope, read_array_type, read_module_type)
|
|
|
|
|
(read_base_type, read_subrange_type): Update.
|
|
|
|
|
(dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
|
|
|
|
|
(new_symbol_full, guess_full_die_structure_name): Update.
|
|
|
|
|
(dwarf2_canonicalize_name): Return const type. Make 'name' const.
|
|
|
|
|
(dwarf2_name): Return const type.
|
|
|
|
|
(dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
|
|
|
|
|
const.
|
|
|
|
|
|
2013-01-21 18:07:03 +00:00
|
|
|
|
2013-01-21 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* gdbtypes.c (init_type): Make 'name' const.
|
|
|
|
|
* gdbtypes.h (init_type): Update.
|
|
|
|
|
|
2013-01-21 18:05:13 +00:00
|
|
|
|
2013-01-21 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* buildsym.c (patch_subfile_names): Use set_last_source_file.
|
|
|
|
|
(start_symtab): Make 'name' and 'dirname' const. Use
|
|
|
|
|
set_last_source_file.
|
|
|
|
|
(restart_symtab, reset_symtab_globals): Use set_last_source_file.
|
|
|
|
|
(last_source_file): Define. Now static.
|
|
|
|
|
(set_last_source_file, get_last_source_file): New functions.
|
|
|
|
|
* buildsym.h (last_source_file): Don't declare.
|
|
|
|
|
(start_symtab): Update.
|
|
|
|
|
(set_last_source_file, get_last_source_file): Declare.
|
|
|
|
|
* coffread.c (complete_symtab): Use set_last_source_file.
|
|
|
|
|
(coff_end_symtab): Likewise.
|
|
|
|
|
(coff_symtab_read): Use set_last_source_file, get_last_source_file.
|
|
|
|
|
* dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
|
|
|
|
|
set_last_source_file.
|
|
|
|
|
(process_one_symbol): Use get_last_source_file.
|
|
|
|
|
* mdebugread.c (parse_partial_symbols): Use set_last_source_file.
|
|
|
|
|
(psymtab_to_symtab_1): Use get_last_source_file.
|
|
|
|
|
* xcoffread.c (process_linenos): Use get_last_source_file.
|
|
|
|
|
(complete_symtab): Use set_last_source_file.
|
|
|
|
|
(read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
|
|
|
|
|
(scan_xcoff_symtab): Use set_last_source_file.
|
|
|
|
|
|
2013-01-21 18:03:08 +00:00
|
|
|
|
2013-01-21 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* symtab.c (struct demangled_name_entry) <mangled>: Now const.
|
|
|
|
|
(symbol_set_names): Remove casts. Handle field const-ness.
|
|
|
|
|
|
2013-01-21 18:01:34 +00:00
|
|
|
|
2013-01-21 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2read.c (new_symbol_full): Remove cast.
|
|
|
|
|
* symtab.c (symbol_set_demangled_name): Make 'name' const.
|
|
|
|
|
* symtab.h (symbol_set_demangled_name): Update.
|
|
|
|
|
|
2013-01-21 17:32:10 +00:00
|
|
|
|
2013-01-21 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* main.c (captured_main): Call bfd_init.
|
|
|
|
|
|
2013-01-21 17:29:39 +00:00
|
|
|
|
2013-01-21 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
|
|
|
|
|
* gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
|
|
|
|
|
* minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
|
|
|
|
|
* NEWS: Update.
|
|
|
|
|
|
2013-01-21 17:14:33 +00:00
|
|
|
|
2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
|
|
|
|
|
|
2013-01-21 16:46:12 +00:00
|
|
|
|
2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
Fix gdb.fortran/common-block.exp crash in PIE mode.
|
|
|
|
|
* dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
|
|
|
|
|
LOC_COMMON_BLOCK.
|
|
|
|
|
* f-valprint.c (info_common_command_for_block): Expect
|
|
|
|
|
LOC_COMMON_BLOCK in gdb_assert.
|
|
|
|
|
* symtab.h (struct general_symbol_info): Update comment for the
|
|
|
|
|
common_block member.
|
|
|
|
|
(domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
|
|
|
|
|
(enum address_class): New member LOC_COMMON_BLOCK.
|
|
|
|
|
|
2013-01-18 21:42:58 +00:00
|
|
|
|
2013-01-18 David Blaikie <dblaikie@gmail.com>
|
|
|
|
|
|
|
|
|
|
* MAINTAINERS (Write After Approval): Add "David Blaikie".
|
2013-01-18 19:26:07 +00:00
|
|
|
|
|
2013-01-18 18:32:35 +00:00
|
|
|
|
2013-01-18 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR c++/14999:
|
|
|
|
|
* dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
|
|
|
|
|
Call require_rvalue.
|
|
|
|
|
|
2013-01-18 03:09:42 +00:00
|
|
|
|
2013-01-18 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
|
|
|
|
|
(dbx_read_symtab): New declaration.
|
|
|
|
|
(dbx_psymtab_to_symtab): Delete.
|
|
|
|
|
(dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
|
|
|
|
|
Rename parameter PST to SELF. Exchanged two parameters.
|
|
|
|
|
(start_psymtab): Caller update.
|
|
|
|
|
* dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
|
|
|
|
|
(dwarf2_read_symtab): New declaration.
|
|
|
|
|
(dwarf2_psymtab_to_symtab): Delete.
|
|
|
|
|
(dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
|
|
|
|
|
Rename parameter PST to SELF. Exchanged two parameters.
|
|
|
|
|
(create_partial_symtab): Caller update.
|
|
|
|
|
* mdebugread.c (mdebug_psymtab_to_symtab): Delete.
|
|
|
|
|
(mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
|
|
|
|
|
Rename parameter PST to SELF. Exchanged two parameters.
|
|
|
|
|
(parse_partial_symbols, new_psymtab): Caller update.
|
|
|
|
|
* psympriv.h (struct partial_symtab) <read_symtab>: Exchange
|
|
|
|
|
two parameters.
|
|
|
|
|
* psymtab.c (psymtab_to_symtab): Caller update.
|
|
|
|
|
* xcoffread.c (xcoff_psymtab_to_symtab): Delete.
|
|
|
|
|
(xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
|
|
|
|
|
Rename parameter PST to SELF. Exchanged two parameters.
|
|
|
|
|
(xcoff_start_psymtab): Caller update.
|
|
|
|
|
|
2013-01-18 03:03:42 +00:00
|
|
|
|
2013-01-18 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* infrun.c (proceed): Rename local variable 'oneproc' to
|
|
|
|
|
'force_step'.
|
|
|
|
|
|
2013-01-17 23:17:43 +00:00
|
|
|
|
2013-01-17 Doug Evans <dje@google.com>
|
|
|
|
|
|
2013-01-17 23:21:41 +00:00
|
|
|
|
* dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
|
|
|
|
|
(dw2_build_type_unit_groups): Delete. All uses updated.
|
|
|
|
|
|
2013-01-17 23:17:43 +00:00
|
|
|
|
* symtab.h (struct symbol_search): Add comment.
|
|
|
|
|
|
2013-01-17 20:40:44 +00:00
|
|
|
|
2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* symtab.c (compare_filenames_for_search): New comment for
|
|
|
|
|
HAS_DRIVE_SPEC.
|
|
|
|
|
|
2013-01-17 20:26:14 +00:00
|
|
|
|
2013-01-17 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* cp-abi.c (cp_abi_completer): Fix typo in assignment.
|
|
|
|
|
|
2013-01-17 19:55:18 +00:00
|
|
|
|
2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* symtab.c (iterate_over_some_symtabs): New variable cleanups,
|
|
|
|
|
initialize it by existing make_cleanup. Call new do_cleanups.
|
|
|
|
|
|
2013-01-17 16:27:35 +00:00
|
|
|
|
2013-01-17 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* cp-abi.c (cp_abi_completer): New function.
|
|
|
|
|
(_initialize_cp_abi): Set completer for "set cp-abi".
|
|
|
|
|
|
2013-01-17 15:23:38 +00:00
|
|
|
|
2013-01-17 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* mem-break.c: Remove obsolete comment.
|
|
|
|
|
* bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
|
|
|
|
|
|
2013-01-17 14:17:16 +00:00
|
|
|
|
2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
|
|
|
|
|
|
|
|
|
|
* jit.c (jit_reader_load_command): Interpret the jit reader name
|
|
|
|
|
as an absolute path if it begins with a forward slash.
|
|
|
|
|
|
2013-01-17 14:11:27 +00:00
|
|
|
|
2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
|
|
|
|
|
|
|
|
|
|
PR gdb/14550
|
|
|
|
|
|
|
|
|
|
* jit.c (finalize_symtab): Ensure that only the global block has a
|
|
|
|
|
NULL superblock.
|
|
|
|
|
|
2013-01-17 11:06:26 +00:00
|
|
|
|
2013-01-17 Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
* acinclude.m4: Include ../config/plugins.m4,
|
|
|
|
|
../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
|
|
|
|
|
* Makefile.in (aclocal_m4_deps): Update.
|
|
|
|
|
* aclocal.m4: Renegerate.
|
|
|
|
|
|
2013-01-16 22:02:16 +00:00
|
|
|
|
2013-01-16 Doug Evans <dje@google.com>
|
|
|
|
|
|
|
|
|
|
* contrib/cc-with-tweaks.sh: Add references to Fission docs.
|
|
|
|
|
|
2013-01-16 17:31:40 +00:00
|
|
|
|
2013-01-16 Pedro Alves <palves@redhat.com>
|
|
|
|
|
Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR cli/7221:
|
|
|
|
|
* NEWS: Add "catch signal".
|
|
|
|
|
* breakpoint.c (base_breakpoint_ops): No longer static.
|
|
|
|
|
(bpstat_explains_signal): New function.
|
|
|
|
|
(init_catchpoint): No longer static.
|
|
|
|
|
(base_breakpoint_explains_signal): New function.
|
|
|
|
|
(base_breakpoint_ops): Initialize new field.
|
|
|
|
|
* breakpoint.h (enum bpstat_signal_value): New.
|
|
|
|
|
(struct breakpoint_ops) <explains_signal>: New field.
|
|
|
|
|
(bpstat_explains_signal): Remove macro, declare as function.
|
|
|
|
|
(base_breakpoint_ops, init_catchpoint): Declare.
|
|
|
|
|
* break-catch-sig.c: New file.
|
|
|
|
|
* inferior.h (signal_catch_update): Declare.
|
|
|
|
|
* infrun.c (signal_catch): New global.
|
|
|
|
|
(handle_syscall_event): Update for change to
|
|
|
|
|
bpstat_explains_signal.
|
|
|
|
|
(handle_inferior_event): Likewise. Always handle random signals
|
|
|
|
|
via bpstats.
|
|
|
|
|
(signal_cache_update): Check signal_catch.
|
|
|
|
|
(signal_catch_update): New function.
|
|
|
|
|
(_initialize_infrun): Initialize signal_catch.
|
|
|
|
|
* Makefile.in (SFILES): Add break-catch-sig.c.
|
|
|
|
|
(COMMON_OBS): Add break-catch-sig.o.
|
|
|
|
|
|
2013-01-16 17:27:53 +00:00
|
|
|
|
2013-01-16 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
|
|
|
|
|
(print_one_catch_solib, print_one_catch_syscall)
|
|
|
|
|
(print_one_catch_exec, print_one_exception_catchpoint): Emit
|
|
|
|
|
"catch-type".
|
|
|
|
|
|
2013-01-16 14:53:24 +00:00
|
|
|
|
2013-01-16 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* printcmd.c (current_display_number): Make it static.
|
|
|
|
|
|
2013-01-16 14:44:03 +00:00
|
|
|
|
2013-01-16 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* infcmd.c (step_once): Don't check '!single_inst' as it was
|
|
|
|
|
checked before.
|
|
|
|
|
|
2013-01-15 21:32:36 +00:00
|
|
|
|
2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* dwarf2read.c (psymtab_include_file_name): Extend the function comment.
|
|
|
|
|
|
2013-01-14 21:05:07 +00:00
|
|
|
|
2013-01-14 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
|
|
|
|
|
set command.
|
|
|
|
|
* command.h (add_setshow_string_noescape_cmd): Update.
|
|
|
|
|
* corefile.c (set_gnutarget_command): Remove trailing whitespace.
|
|
|
|
|
(complete_set_gnutarget): New function.
|
|
|
|
|
(_initialize_core): Set the "set gnutarget" completer.
|
|
|
|
|
|
2013-01-14 20:59:27 +00:00
|
|
|
|
2013-01-14 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR symtab/14442:
|
|
|
|
|
* c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
|
|
|
|
|
(c_type_print_modifier): Likewise.
|
|
|
|
|
* dwarf2read.c (read_tag_restrict_type): New function.
|
|
|
|
|
(read_type_die_1): Handle DW_TAG_restrict_type.
|
|
|
|
|
* gdbtypes.c (make_restrict_type): New function.
|
|
|
|
|
(recursive_dump_type): Handle TYPE_RESTRICT.
|
|
|
|
|
* gdbtypes.h (enum type_flag_values): Renumber.
|
|
|
|
|
(enum type_instance_flag_value): Add
|
|
|
|
|
TYPE_INSTANCE_FLAG_RESTRICT.
|
|
|
|
|
(TYPE_RESTRICT): New macro.
|
|
|
|
|
(make_restrict_type): Declare.
|
|
|
|
|
|
2013-01-14 20:51:48 +00:00
|
|
|
|
2013-01-14 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR symtab/14931:
|
|
|
|
|
* psymtab.c (struct psymtab_state): New.
|
|
|
|
|
(discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
|
|
|
|
|
functions.
|
|
|
|
|
* psympriv.h (make_cleanup_discard_psymtabs): Declare.
|
|
|
|
|
* dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
|
|
|
|
|
|
2013-01-14 18:06:21 +00:00
|
|
|
|
2013-01-14 Richard Sharman <richard_sharman@mitel.com>
|
|
|
|
|
Pedro Alves <palves@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR remote/14786
|
|
|
|
|
|
|
|
|
|
* remote.c (remote_threads_info): Make a copy of the reply from
|
|
|
|
|
qfThreadInfo and use that instead of rs->buf.
|
|
|
|
|
|
2013-01-14 10:39:33 +00:00
|
|
|
|
2013-01-14 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
|
|
|
|
|
(dbx_psymtab_to_symtab): Likewise.
|
|
|
|
|
* dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
|
|
|
|
|
* mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
|
|
|
|
|
* xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
|
|
|
|
|
|
2013-01-13 18:57:01 +00:00
|
|
|
|
2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* parse.c (parse_exp_in_context): New variable inner_chain. Call
|
|
|
|
|
make_cleanup_restore_current_language. Call set_language. Move
|
|
|
|
|
OLD_CHAIN and INNER_CHAIN cleanups.
|
|
|
|
|
* utils.c (do_restore_current_language)
|
|
|
|
|
(make_cleanup_restore_current_language): New functions.
|
|
|
|
|
* utils.h (make_cleanup_restore_current_language): New declaration.
|
|
|
|
|
|
2013-01-13 18:52:45 +00:00
|
|
|
|
2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* source.c (symtab_to_fullname): Apply rewrite_source_path also for
|
|
|
|
|
non-existing files.
|
|
|
|
|
|
2013-01-13 18:53:51 +00:00
|
|
|
|
* source.c (symtab_to_fullname): Do not prepend DIRNAME for
|
|
|
|
|
non-existing files if FILENAME is already absolute.
|
|
|
|
|
|
2013-01-11 21:34:29 +00:00
|
|
|
|
2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
* macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
|
|
|
|
|
fputs_filtered. Append trailing newline.
|
|
|
|
|
|
2013-01-11 00:56:05 +00:00
|
|
|
|
2013-01-11 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
Stan Shebs <stan@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* psymtab.c (init_psymbol_list): Clarify the comment.
|
|
|
|
|
|
2013-01-11 00:41:08 +00:00
|
|
|
|
2013-01-11 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* breakpoint.c (print_one_breakpoint_location): Remove dead code.
|
|
|
|
|
(update_dprintf_command_list): Assert that 'printf_line' is
|
|
|
|
|
non-null. Remove condition check.
|
|
|
|
|
|
2013-01-10 21:15:51 +00:00
|
|
|
|
2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
|
|
|
|
|
|
|
|
|
|
Code cleanup.
|
|
|
|
|
* psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
|
|
|
|
|
type const char *.
|
|
|
|
|
* tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
|
|
|
|
|
const char *.
|
|
|
|
|
* tui/tui-source.h (tui_source_is_displayed): Likewise.
|
|
|
|
|
|
2013-01-09 21:51:18 +00:00
|
|
|
|
2013-01-09 Anthony Green <green@moxielogic.com>
|
|
|
|
|
|
|
|
|
|
* cp-abi.c (cplus_print_vtable): Don't return value from void
|
|
|
|
|
function.
|
|
|
|
|
* ada-lang.c (re_set_catch_assert): Ditto.
|
|
|
|
|
|
2013-01-09 20:46:03 +00:00
|
|
|
|
2013-01-09 Doug Evans <dje@google.com>
|
|
|
|
|
|
|
|
|
|
* symfile.h (quick_symbol_functions): Delete member
|
|
|
|
|
pre_expand_symtabs_matching. All uses removed.
|
|
|
|
|
* dwarf2read.c (dw2_lookup_symbol): Implement.
|
|
|
|
|
(dw2_do_expand_symtabs_matching): Delete.
|
|
|
|
|
(dw2_pre_expand_symtabs_matching): Delete.
|
|
|
|
|
(struct dw2_symtab_iterator): New type.
|
|
|
|
|
(dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
|
|
|
|
|
(dw2_expand_symtabs_for_function): Rewrite.
|
|
|
|
|
(dwarf2_gdb_index_functions): Update.
|
|
|
|
|
* psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
|
|
|
|
|
(psym_functions): Update.
|
|
|
|
|
|
2013-01-09 17:21:36 +00:00
|
|
|
|
2013-01-09 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
|
|
|
|
|
* configure: Rebuild.
|
|
|
|
|
* configure.ac: Add somread.o to the build if BFD has SOM
|
|
|
|
|
support.
|
|
|
|
|
* somread.c: Include som/aout.h, not syms.h.
|
|
|
|
|
(som_symtab_read): Use som_external_symbol_dictionary_record.
|
|
|
|
|
Unpack records manually.
|
|
|
|
|
(_initialize_somread): Declare.
|
|
|
|
|
|
2013-01-08 19:38:51 +00:00
|
|
|
|
2012-01-08 Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
|
|
* common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
|
|
|
|
|
Cast return_address to 64bits.
|
|
|
|
|
|
2013-01-08 02:00:34 +00:00
|
|
|
|
2013-01-08 Hui Zhu <hui_zhu@mentor.com>
|
|
|
|
|
|
|
|
|
|
* printcmd.c: Remove define of function output_command.
|
|
|
|
|
* tracepoint.c: Remove extern of function output_command.
|
|
|
|
|
* valprint.h: (output_command): New extern.
|
|
|
|
|
|
2013-01-07 16:51:47 +00:00
|
|
|
|
2013-01-07 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
|
|
|
|
|
Remove.
|
|
|
|
|
(objc_language_defn): Use c_printchar, c_printstr,
|
|
|
|
|
c_emit_char.
|
|
|
|
|
|
2013-01-07 16:40:39 +00:00
|
|
|
|
2013-01-07 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
PR cli/7719:
|
|
|
|
|
* NEWS: Update.
|
|
|
|
|
* ada-valprint.c (printstr, print_field_values): Remove
|
|
|
|
|
"inspect_it" code.
|
|
|
|
|
* cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
|
|
|
|
|
code.
|
|
|
|
|
* jv-valprint.c (java_print_value_fields): Remove "inspect_it"
|
|
|
|
|
code.
|
|
|
|
|
* m2-lang.c (m2_printstr): Remove "inspect_it" code.
|
|
|
|
|
* main.c (captured_main): Remove "epoch" argument.
|
|
|
|
|
* objc-lang.c (objc_printstr): Remove "inspect_it" code.
|
|
|
|
|
* p-lang.c (pascal_printstr): Remove "inspect_it" code.
|
|
|
|
|
* p-valprint.c (pascal_object_print_value_fields): Remove
|
|
|
|
|
"inspect_it" code.
|
|
|
|
|
* printcmd.c (print_command_1): Remove 'inspect' argument.
|
|
|
|
|
(print_command, call_command): Update.
|
|
|
|
|
(inspect_command): Remove.
|
|
|
|
|
(_initialize_printcmd): Make "inspect" an alias for "print".
|
|
|
|
|
* top.c (epoch_interface): Remove.
|
|
|
|
|
* top.h (epoch_interface): Remove.
|
|
|
|
|
* valprint.c (user_print_options): Update.
|
|
|
|
|
(print_converted_chars_to_obstack): Remove "inspect_it" code.
|
|
|
|
|
* valprint.h (struct value_print_options) <inspect_it>: Remove
|
|
|
|
|
field.
|
|
|
|
|
|
|
|
|
|
2013-01-04 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* valprint.h (read_string): Add 'extern'.
|
|
|
|
|
|
2013-01-07 11:14:37 +00:00
|
|
|
|
2013-01-07 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
|
|
|
|
|
used to decide whether to define darwin_read_dyld_info or not.
|
|
|
|
|
|
2013-01-03 22:18:35 +00:00
|
|
|
|
2013-01-03 Pierre Muller <muller@sourceware.org>
|
|
|
|
|
|
|
|
|
|
* main.c (relocate_gdb_directory): Avoid calling stat function
|
|
|
|
|
if DIR is empty.
|
|
|
|
|
|
2013-01-03 07:17:52 +00:00
|
|
|
|
2013-01-03 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* psymtab.c (fixup_psymbol_section): Update declaration.
|
|
|
|
|
(fixup_psymbol_section): Remove code returning value.
|
|
|
|
|
|
2013-01-03 07:13:28 +00:00
|
|
|
|
2013-01-03 Yao Qi <yao@codesourcery.com>
|
|
|
|
|
|
|
|
|
|
* symtab.h: Remove some out of date comments.
|
|
|
|
|
(enum exception_event_kind): Move it ...
|
|
|
|
|
* breakpoint.c: ... here.
|
|
|
|
|
|
2013-01-02 21:06:30 +00:00
|
|
|
|
2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
|
|
|
|
|
|
2013-01-02 21:07:53 +00:00
|
|
|
|
PR gdb/14405
|
2013-01-02 21:06:30 +00:00
|
|
|
|
* darwin-nat.c (darwin_read_dyld_info): Only build if
|
|
|
|
|
TASK_DYLD_INFO_COUNT is defined.
|
|
|
|
|
(darwin_xfer_partial): Call darwin_read_dyld_info only if
|
|
|
|
|
TASK_DYLD_INFO_COUNT is defined.
|
|
|
|
|
|
2013-01-02 18:52:07 +00:00
|
|
|
|
2013-01-02 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* symfile.h (struct ecoff_debug_hack): Remove.
|
|
|
|
|
* objfiles.c: Don't include mdebugread.h.
|
|
|
|
|
|
2013-01-02 14:58:15 +00:00
|
|
|
|
2013-01-02 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
|
|
|
|
|
* configure.ac: Check for Mach-O support in BFD. Update
|
|
|
|
|
CONFIG_OBS.
|
|
|
|
|
* configure: Rebuild.
|
|
|
|
|
|
2013-01-02 14:54:17 +00:00
|
|
|
|
2013-01-02 Tom Tromey <tromey@redhat.com>
|
|
|
|
|
|
|
|
|
|
* acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
|
|
|
|
|
* configure.ac: Use GDB_AC_CHECK_BFD.
|
|
|
|
|
* configure: Rebuild.
|
|
|
|
|
|
2013-01-02 04:49:56 +00:00
|
|
|
|
2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
|
|
|
|
|
|
|
|
|
|
* MAINTAINERS: Update my email.
|
|
|
|
|
|
2013-01-01 07:38:02 +00:00
|
|
|
|
2013-01-01 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
|
|
|
|
|
|
2013-01-01 11:04:34 +00:00
|
|
|
|
2013-01-01 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
* rs6000-nat.c (bss_data_overlap): New function.
|
|
|
|
|
(vmap_symtab): Use it to adjust the .bss section's offset.
|
|
|
|
|
|
2013-01-01 06:33:28 +00:00
|
|
|
|
2013-01-01 Joel Brobecker <brobecker@adacore.com>
|
|
|
|
|
|
|
|
|
|
Update year range in copyright notice of all files.
|
|
|
|
|
|
2013-01-07 16:40:39 +00:00
|
|
|
|
2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
|
2013-01-01 05:45:22 +00:00
|
|
|
|
|
|
|
|
|
* top.c (print_gdb_version): Update copyright year.
|
|
|
|
|
|
2013-01-01 05:30:40 +00:00
|
|
|
|
For older changes see ChangeLog-2012.
|
1999-04-16 01:35:26 +00:00
|
|
|
|
|
|
|
|
|
Local Variables:
|
|
|
|
|
mode: change-log
|
|
|
|
|
left-margin: 8
|
|
|
|
|
fill-column: 74
|
|
|
|
|
version-control: never
|
2007-08-09 22:44:38 +00:00
|
|
|
|
coding: utf-8
|
1999-04-16 01:35:26 +00:00
|
|
|
|
End:
|