Tom Tromey
d2afef13c2
* 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.
2013-01-21 18:15:32 +00:00
Tom Tromey
10f0c4bbfa
* 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
Tom Tromey
86f62fd71f
* dwarf2read.c (fixup_go_packaging): Save package name
...
on objfile obstack.
* gdbtypes.c (init_type): Don't copy name.
2013-01-21 18:10:33 +00:00
Tom Tromey
15d034d05c
* 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
Tom Tromey
748e18ae85
* gdbtypes.c (init_type): Make 'name' const.
...
* gdbtypes.h (init_type): Update.
2013-01-21 18:07:03 +00:00
Tom Tromey
46212e0bb5
* 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:05:13 +00:00
Tom Tromey
9d2ceabe7f
* symtab.c (struct demangled_name_entry) <mangled>: Now const.
...
(symbol_set_names): Remove casts. Handle field const-ness.
2013-01-21 18:03:08 +00:00
Tom Tromey
cfc594ee56
* 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 18:01:34 +00:00
Tom Tromey
5484b13a88
* main.c (captured_main): Call bfd_init.
2013-01-21 17:32:10 +00:00
Tom Tromey
1605ef261f
* 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:29:39 +00:00
Jan Kratochvil
3b74cdc362
gdb/
...
* symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
2013-01-21 17:14:33 +00:00
Jan Kratochvil
5a352474f9
gdb/
...
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-21 16:46:12 +00:00
gdbadmin
0a2c562b63
*** empty log message ***
2013-01-21 00:00:39 +00:00
gdbadmin
6cc660d295
*** empty log message ***
2013-01-20 00:00:03 +00:00
gdbadmin
44fc9657c5
*** empty log message ***
2013-01-19 00:00:04 +00:00
David Blaikie
c60797fda4
gdb
...
* ChangeLog: Fix errors in my previous commit: whitespace->tabs, date,
and trailing blank line. (from review by Sergio Durigan Junior)
2013-01-18 21:42:58 +00:00
David Blaikie
0cae7dfbf5
gdb
...
* MAINTAINERS (Write After Approval): Add "David Blaikie".
2013-01-18 19:26:07 +00:00
David Blaikie
2d8c5d7cdd
gdb/testsuite
...
* gdb.base/label.c (main): Correct the type of the second
parameter.
2013-01-18 19:14:51 +00:00
Tom Tromey
46f352282b
PR c++/14999:
...
* dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
Call require_rvalue.
gdb/testsuite
* gdb.dwarf2/trace-crash.s: New file.
* gdb.dwarf2/trace-crash.exp: New file.
2013-01-18 18:32:35 +00:00
Hafiz Abid Qadeer
5965d69d9d
2013-01-18 Hafiz Abid Qadeer<abidh@codesourcery.com>
...
PR gdb/13443
* gdb.base/checkpoint.exp: Update test messages to make them
unique.
2013-01-18 10:50:15 +00:00
Yao Qi
5ae4861a11
gdb/gdbserver:
...
* ax.h (struct eval_agent_expr_context): New.
(gdb_eval_agent_expr): Update declaration.
* ax.c (gdb_eval_agent_expr): Remove argument REGCACHE and
TFRAME. Add new argument CTX.
* server.h (struct eval_agent_expr_context): Declare.
(agent_mem_read, agent_tsv_read): Update declaration.
(agent_mem_read_string): Likewise.
* tracepoint.c (eval_tracepoint_agent_expr): Remove.
(add_traceframe_block): Add new argument TPOINT.
Increase TPOINT->traceframe_usage.
(do_action_at_tracepoint): Call gdb_eval_agent_expr instead of
eval_tracepoint_agent_expr.
(condition_true_at_tracepoint): Likewise.
(agent_mem_read): Remove argument TFRAME. Add argument CTX.
(agent_mem_read_string, agent_tsv_read): Likewise.
Callers update.
gdb/testsuite:
* gdb.trace/infotrace.exp: Check 'traceframe usage' in the
output of 'info tracepoints'.
* gdb.trace/disconnected-tracing.exp (disconnected_tracing):
Likewise.
* gdb.trace/tstatus.exp (run_trace_experiment): Likewise.
* gdb.trace/disconnected-tracing.c (struct foo): New.
2013-01-18 06:40:58 +00:00
Yao Qi
257e7a0972
gdb/
...
* 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:09:42 +00:00
Yao Qi
0de5618e23
gdb/
...
* infrun.c (proceed): Rename local variable 'oneproc' to
'force_step'.
2013-01-18 03:03:42 +00:00
gdbadmin
ce24f61737
*** empty log message ***
2013-01-18 00:00:02 +00:00
Doug Evans
848e3e78ef
* dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
...
(dw2_build_type_unit_groups): Delete. All uses updated.
2013-01-17 23:21:41 +00:00
Doug Evans
5c04624b7a
* symtab.h (struct symbol_search): Add comment.
2013-01-17 23:17:43 +00:00
Jan Kratochvil
d84fca2cf4
gdb/
...
* symtab.c (compare_filenames_for_search): New comment for
HAS_DRIVE_SPEC.
gdb/testsuite/
* gdb.dwarf2/dw2-dos-drive.S: New file.
* gdb.dwarf2/dw2-dos-drive.exp: New file.
2013-01-17 20:40:44 +00:00
Tom Tromey
6108433d1a
* cp-abi.c (cp_abi_completer): Fix typo in assignment.
2013-01-17 20:26:14 +00:00
Doug Evans
2782d5126a
* boards/dwarf4-gdb-index.exp: Use any existing CC_FOR_TARGET,
...
CXX_FOR_TARGET.
2013-01-17 20:17:15 +00:00
Jan Kratochvil
c89ffd8620
gdb/
...
* symtab.c (iterate_over_some_symtabs): New variable cleanups,
initialize it by existing make_cleanup. Call new do_cleanups.
2013-01-17 19:55:18 +00:00
Doug Evans
aebb1cc98b
* boards/cc-with-tweaks.exp: New file.
2013-01-17 19:20:37 +00:00
Tom Tromey
db2b2972f1
* cp-abi.c (cp_abi_completer): New function.
...
(_initialize_cp_abi): Set completer for "set cp-abi".
gdb/testsuite
* gdb.base/completion.exp: Add "set cp-abi" completion test.
2013-01-17 16:27:35 +00:00
Tom Tromey
be7d37a2c3
* mem-break.c: Remove obsolete comment.
...
* bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
2013-01-17 15:23:38 +00:00
Pedro Alves
963437740b
Merge dg-extract-results.sh from gcc upstream (svn 195224).
...
gdb/testsuite/
2013-01-17 Pedro Alves <palves@redhat.com>
Merge dg-extract-results.sh from upstream (svn 195224).
2013-01-15 David Blaikie <dblaikie@gmail.com>
* dg-extract-results.sh: Fix order of summary counts.
2013-01-15 David Blaikie <dblaikie@gmail.com>
* dg-extract-results.sh: Constrain the start-of-log pattern.
2013-01-15 David Blaikie <dblaikie@gmail.com>
* dg-extract-results.sh: Handle KPASSes.
2010-05-25 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
* dg-extract-results.sh: Redirect grep output to /dev/null instead
of grep -q.
2013-01-17 14:31:11 +00:00
Sanjoy Das
675921c059
gdb/testsuite
...
* gdb.base/jit-reader.exp: New file. Test case for the jit-reader
interface.
* gdb.base/jithost.c: New file.
* gdb.base/jithost.h: New file.
* gdb.base/jitreader.c : New file.
* gdb.base/jit-protocol.h: New file.
2013-01-17 14:21:46 +00:00
Sanjoy Das
c9fb1240f2
* 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:17:16 +00:00
Sanjoy Das
db334a0164
PR gdb/14550
...
* jit.c (finalize_symtab): Ensure that only the global block has a
NULL superblock.
2013-01-17 14:11:27 +00:00
Pedro Alves
7d928dac62
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-17 11:06:26 +00:00
gdbadmin
e46c088e6b
*** empty log message ***
2013-01-17 00:00:03 +00:00
Doug Evans
fb8cf7c532
* contrib/cc-with-tweaks.sh: Add references to Fission docs.
2013-01-16 22:02:16 +00:00
Tom Tromey
ab04a2af2b
2013-01-03 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.
gdb/doc
* gdb.texinfo (Set Catchpoints): Document "catch signal".
(Signals): Likewise.
gdb/testsuite
* gdb.base/catch-signal.c: New file.
* gdb.base/catch-signal.exp: New file.
2013-01-16 17:31:40 +00:00
Tom Tromey
8ac3646fbb
* 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".
gdb/doc
* gdb.texinfo (GDB/MI Breakpoint Information): Document
"catch-type" field.
(GDB/MI Catchpoint Commands): Add "catch-type" to examples.
gdb/testsuite
* gdb.mi/mi-catch-load.exp: Look for "catch-type".
2013-01-16 17:27:53 +00:00
Yao Qi
5a18e30239
gdb/
...
* printcmd.c (current_display_number): Make it static.
2013-01-16 14:53:24 +00:00
Yao Qi
85e00e8548
gdb/gdbserver/
...
* linux-low.c (linux_resume_one_lwp): Don't check
'lwp->bp_reinsert != 0'.
2013-01-16 14:46:17 +00:00
Yao Qi
3f01d0d042
gdb/
...
* infcmd.c (step_once): Don't check '!single_inst' as it was
checked before.
2013-01-16 14:44:03 +00:00
gdbadmin
c3fac5e480
*** empty log message ***
2013-01-16 00:00:41 +00:00
Jan Kratochvil
1ed5917465
gdb/
...
* dwarf2read.c (psymtab_include_file_name): Extend the function comment.
2013-01-15 21:32:36 +00:00
Jan Kratochvil
22fc223eb8
gdb/testsuite/
...
* gdb.dwarf2/dw2-restrict.exp: Skip compilation on non-x86_64 targets.
2013-01-15 15:11:09 +00:00
gdbadmin
c7176ed465
*** empty log message ***
2013-01-15 00:00:34 +00:00
Tom Tromey
44478ab340
* 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.
gdb/testsuite
* gdb.base/completion.exp: Add "set gnutarget" test.
2013-01-14 21:05:07 +00:00
Tom Tromey
06d66ee9d9
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.
gdb/testsuite
* gdb.dwarf2/dw2-restrict.S: New file.
* gdb.dwarf2/dw2-restrict.c: New file.
* gdb.dwarf2/dw2-restrict.exp: New file.
2013-01-14 20:59:27 +00:00
Tom Tromey
c9bf062262
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.
gdb/testsuite
* gdb.dwarf2/dw2-error.exp: New file.
* gdb.dwarf2/dw2-error.c: New file.
* gdb.dwarf2/dw2-error.S: New file.
2013-01-14 20:51:48 +00:00
Pedro Alves
44d594fd82
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 18:06:21 +00:00
Yao Qi
442e4d9c87
gdb/
...
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-14 10:39:33 +00:00
gdbadmin
2f8132d61f
*** empty log message ***
2013-01-14 00:00:03 +00:00
Jan Kratochvil
5b12a61c76
gdb/
...
* 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.
gdb/testsuite/
* gdb.cp/parse-lang.cc: New file.
* gdb.cp/parse-lang.exp: New file.
2013-01-13 18:57:01 +00:00
Jan Kratochvil
57b3c00c27
gdb/
...
* source.c (symtab_to_fullname): Do not prepend DIRNAME for
non-existing files if FILENAME is already absolute.
2013-01-13 18:53:51 +00:00
Jan Kratochvil
f0a4b570b4
gdb/
...
* source.c (symtab_to_fullname): Apply rewrite_source_path also for
non-existing files.
gdb/testsuite/
* gdb.mi/mi-fullname-deleted.exp: Set srcfileabssubst and initdir.
(set substitute-path): New test.
(fullname present): Remove content.
(substituted fullname): New test.
2013-01-13 18:52:45 +00:00
Joel Brobecker
f751cc976c
Fix gdb.python/py-finish-breakpoint.exp ERROR.
...
This patch fixes the following error, when running gdb.python/
py-finish-breakpoint.exp:
ERROR: can't read "gdb_py_is_py24": no such variable
while executing
"if { $gdb_py_is_py24 == 1 } {
gdb/testsuite/ChangeLog:
* gdb.python/py-finish-breakpoint.exp: Add skip_python_tests
check. Move $gdb_py_is_py24 value check right after.
2013-01-13 08:24:22 +00:00
gdbadmin
98cc398724
*** empty log message ***
2013-01-13 00:00:03 +00:00
gdbadmin
fc35658155
*** empty log message ***
2013-01-12 00:00:03 +00:00
Jan Kratochvil
daefa85476
gdb/
...
* macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
fputs_filtered. Append trailing newline.
2013-01-11 21:34:29 +00:00
Jan Kratochvil
04164e8e6d
gdb/testsuite/
...
* gdb.base/dprintf.exp (dprintf info 1): Fix expectation on 64-bit
targets.
2013-01-11 15:21:14 +00:00
Yao Qi
ca9c6ee2b7
gdb/
...
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:56:05 +00:00
Yao Qi
f28045c2aa
gdb/
...
* 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-11 00:41:08 +00:00
Yao Qi
5bf480a5cb
gdb/testsuite/
...
* gdb.base/dprintf.exp: Check the output of 'info breakpoints'
for dprintf.
* gdb.mi/mi-breakpoint-changed.exp (test_insert_delete_modify):
Check the fields in "=breakpoint-created" for dprintf.
2013-01-11 00:31:58 +00:00
gdbadmin
067ff88c91
*** empty log message ***
2013-01-11 00:00:03 +00:00
Jan Kratochvil
da5132d379
gdb/
...
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-10 21:15:51 +00:00
gdbadmin
40c134978a
*** empty log message ***
2013-01-10 00:00:33 +00:00
Anthony Green
843e694d6a
Fixes for solaris compiler
2013-01-09 21:51:18 +00:00
Doug Evans
da51c34722
* 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 20:46:03 +00:00
Tom Tromey
b2259038ba
* 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-09 17:21:36 +00:00
gdbadmin
6eb576033d
*** empty log message ***
2013-01-09 00:00:33 +00:00
Mike Frysinger
bdad418017
gdb: x86: fix x32 builds with inline asm
...
We need to cast the pointer up to 64bits so that the push works on x32
targets. For 64bit targets, this makes no difference.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2013-01-08 19:38:51 +00:00
Hui Zhu
03cdf6804a
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-08 02:00:34 +00:00
gdbadmin
b85fba34f7
*** empty log message ***
2013-01-08 00:00:04 +00:00
Tom Tromey
8a80855445
* 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:51:47 +00:00
Tom Tromey
e93a877490
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.
doc
* gdb.texinfo (Mode Options): Don't mention -epoch.
(Data, Emacs): Remove obsolete comments.
2013-01-07 16:40:39 +00:00
Joel Brobecker
4039cf45c2
Simplifly ptrace_request_to_str's implementation...
...
... following Pedro's advice of using a temporary macro.
gdb/gdbserver/ChangeLog:
* lynx-low.c (ptrace_request_to_str): Define a temporary
macro and use it to simplify this function's implementation.
2013-01-07 11:43:42 +00:00
Joel Brobecker
9044dee230
Add ptrace error handling in lynx_resume
...
gdb/gdbserver/ChangeLog:
* lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace
sets errno.
2013-01-07 11:43:16 +00:00
Joel Brobecker
e6352c8f63
Make x86-lynx GDBserver pass XML register map to GDB.
...
This is not strictly needed, since both GDB and GDBserver seem
to agree on the register numbering without this. But this allows
us to make sure that this is always going to be the case.
gdb/gdbserver/ChangeLog:
* configure.srv (i[34567]86-*-lynxos*): Set srv_xmlfiles.
2013-01-07 11:42:53 +00:00
Joel Brobecker
50681a2705
Allow powerpc-*-lynxos* GDBserver to send register map via XML...
...
... back to GDB. The transfer occurs when GDB sends the
'qXfer:features:read:target.xml' packet. This allows us to make
sure that GDB and GDBserver use the same register numbering.
This is important on Lynx 178, where GDB selects the rs6000:6000
architecture by default instead of the powerpc:common architecture.
gdb/gdbserver/ChangeLog:
* configure.srv (powerpc-*-lynxos*): Set srv_xmlfiles.
2013-01-07 11:39:25 +00:00
Joel Brobecker
3f6e77ef16
LynxOS: Resume the same thread when receiving a thread create/exit event.
...
Before this patch, the ptid passed to lynx_resume was completely
ignored, and we used the current_inferior. This resulted in trying
to resume the inferior execution using the wrong ptid after having
received a thread create/exit event, because the inferior_ptid
was still set to the ptid prior to receiving the signal.
gdb/gdbserver/ChangeLog:
* lynx-low.c (lynx_resume): Use the resume_info parameter
to determine the ptid for the lynx_ptrace call, unless
it is equal to minus_one_ptid, in which case we use the
ptid of the current_inferior.
(lynx_wait_1): After having received a thread create/exit
event, resume the inferior's execution using the signaling
thread's ptid, rather than the old ptid.
2013-01-07 11:39:00 +00:00
Joel Brobecker
7fda33ae8d
Delete unused variable in lynx_resume
...
gdb/gdbserver/ChangeLog:
* lynx-low.c (lynx_resume): Delete variable ret.
2013-01-07 11:38:35 +00:00
Joel Brobecker
b967eb24ed
Fix build failure on darwin due to darwin_read_dyld_info not being defined.
...
gdb/ChangeLog:
* 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-07 11:14:37 +00:00
gdbadmin
fb8dbbe2dc
*** empty log message ***
2013-01-07 00:00:03 +00:00
gdbadmin
2986b02de0
*** empty log message ***
2013-01-06 00:00:33 +00:00
gdbadmin
1292e4d3b4
*** empty log message ***
2013-01-05 00:00:35 +00:00
gdbadmin
659a41b14d
*** empty log message ***
2013-01-04 00:00:34 +00:00
Pierre Muller
78a8b30e9d
* main.c (relocate_gdb_directory): Avoid calling stat function
...
if DIR is empty.
2013-01-03 22:18:35 +00:00
Yao Qi
50da2f2530
gdb/
...
* psymtab.c (fixup_psymbol_section): Update declaration.
(fixup_psymbol_section): Remove code returning value.
2013-01-03 07:17:52 +00:00
Yao Qi
e7e8980f5d
gdb/
...
* symtab.h: Remove some out of date comments.
(enum exception_event_kind): Move it ...
* breakpoint.c: ... here.
2013-01-03 07:13:28 +00:00
gdbadmin
4eaba4b21f
*** empty log message ***
2013-01-03 00:00:33 +00:00
Mike Frysinger
9f9d9a9649
add bug number to previous commit
2013-01-02 21:07:53 +00:00
Mike Frysinger
569283d40e
gdb: fix building on Darwin 9
...
TASK_DYLD_INFO_COUNT etc. are not defined.
2013-01-02 21:06:30 +00:00
Tom Tromey
2e36fbea4c
* symfile.h (struct ecoff_debug_hack): Remove.
...
* objfiles.c: Don't include mdebugread.h.
2013-01-02 18:52:07 +00:00
Tom Tromey
54516a0bdf
* gdb.texinfo (GDB/MI Output Records): Update menu.
...
(GDB/MI Breakpoint Information): New node.
(GDB/MI Breakpoint Commands) <-break-info>: Link to new node.
<-break-insert>: Likewise.
2013-01-02 15:00:34 +00:00
Tom Tromey
4f05add48d
* 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:58:15 +00:00
Tom Tromey
def63ff00a
* acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
...
* configure.ac: Use GDB_AC_CHECK_BFD.
* configure: Rebuild.
2013-01-02 14:54:17 +00:00
Maxim Kuvyrkov
60c5dd9394
* MAINTAINERS: Update my email.
2013-01-02 04:49:56 +00:00