Pedro Alves
1554e9be88
* remote.c (remote_query_attached): Fix pasto in packet_ok result
...
checking.
2009-04-16 19:31:03 +00:00
Joel Brobecker
bf75638ec1
Undo the following change. Not correct, after all:
...
* procfs.c (solib_mappings_callback, find_memory_regions_callback):
Fix a compilation warning on mips-irix due to casting from
a pointer of different size.
2009-04-16 18:41:40 +00:00
Joel Brobecker
3705b1c591
* ada-lang.h (ada_adjust_exception_stop, ada_print_exception_stop)
...
(ada_get_current_task, ada_print_exception_breakpoint_nontask)
(ada_print_exception_breakpoint_task, ada_reset_thread_registers):
Remove declaration. These are non-existent functions.
2009-04-16 18:39:36 +00:00
Joel Brobecker
37da21bceb
* procfs.c (solib_mappings_callback, find_memory_regions_callback):
...
Fix a compilation warning on mips-irix due to casting from
a pointer of different size.
2009-04-16 17:25:38 +00:00
Joel Brobecker
6f38eac82e
* ada-lang.c (symtab_for_sym): Delete.
...
(user_select_syms): Use sym->symtab instead of calling symtab_for_sym.
2009-04-16 17:21:06 +00:00
Joel Brobecker
f9bc20b9be
* ada-lang.c (extract_string): Delete.
...
(ada_main_name): Reimplement using target_read_string instead of
extract_string.
2009-04-16 17:16:18 +00:00
Andreas Schwab
335d71d67e
* m68klinux-nat.c: Remove obsolete comment.
...
(fetch_register, store_register): Don't call
gdbarch_cannot_fetch_register or gdbarch_cannot_store_register,
which are always nops here.
2009-04-16 15:26:49 +00:00
Tom Tromey
732f6a935c
gdb
...
* c-lang.c (c_emit_char): Use INTERMEDIATE_ENCODING.
(c_printstr): Likewise.
* charset.c: Include gdb_wait.h.
(make_wchar_iterator): Use INTERMEDIATE_ENCODING.
(find_charset_names): Use pexecute. Handle libiconv's output.
Detect errors.
(_initialize_charset): Use xstrdup.
* gdb_wchar.h: Check HAVE_BTOWC. Split PHONY_ICONV and wchar
cases.
(INTERMEDIATE_ENCODING): New define.
* configure, config.in: Rebuild.
* configure.ac: Check for btowc.
gdb/doc
* gdb.texinfo (Character Sets): Document default character set.
2009-04-15 22:20:32 +00:00
Tom Tromey
334cc82d44
gdb
...
* c-lang.c (evaluate_subexp_c): Correctly handle EVAL_SKIP.
gdb/testsuite
* gdb.base/charset.exp: Add regression test.
2009-04-15 21:55:04 +00:00
Eli Zaretskii
27e3013dec
* utils.c (parse_escape): Initialize target_char to pacify GCC.
2009-04-15 20:40:51 +00:00
Jan Kratochvil
8ea5dfdf09
gdb/
...
* c-lang.c (c_get_string): Fix xfree crash on a failed string read.
2009-04-14 21:54:33 +00:00
Pierre Muller
88c15c3400
ARI fix: sprintf rule.
...
* ada-exp.y (convert_char_literal): Replace sprintf by xsnprintf.
* ada-lang.c (add_angle_brackets): Use xstrprintf.
(ada_decode): Replace sprintf by xsnprintf.
(find_old_style_renaming_symbol): Ditto.
(ada_to_fixed_type_1, ada_enum_name): Ditto.
2009-04-14 19:04:24 +00:00
Joel Brobecker
efbd6e753f
* target.c (target_mourn_inferior): Call bfd_cache_close_all
...
after having executed the target mourn_inferior routine.
2009-04-14 16:48:07 +00:00
Eli Zaretskii
b46df7a18c
config/djgpp/djconfig.sh (DEPDIR): Define to "_deps", if undefined.
2009-04-14 14:25:12 +00:00
David Daney
2facfe5cc4
2009-04-13 David Daney <ddaney@caviumnetworks.com>
...
* infrun.c (maybe_software_singlestep): New function.
(resume): Call maybe_software_singlestep.
(handle_inferior_event): Same.
2009-04-14 00:59:47 +00:00
Tom Tromey
18e8c3bc8a
gdb
...
* python/python-frame.c (frapy_richcompare): Return
Py_NotImplemented, not an error. Handle Py_NE as well.
gdb/testsuite
* gdb.python/python-frame.exp (gdb_py_test_silent_cmd): Test !=
operator on Frame.
2009-04-13 20:54:59 +00:00
Eli Zaretskii
e726d7841c
* charset.c (EILSEQ): Define if not defined by system headers.
2009-04-13 18:49:27 +00:00
Eli Zaretskii
c03b3c325a
*** empty log message ***
2009-04-11 19:21:10 +00:00
Eli Zaretskii
a2effb2e8e
*** empty log message ***
2009-04-11 18:06:02 +00:00
Eli Zaretskii
238f4807d1
* config/djgpp/config.sed: Tweak ac_config_files in intl/configure
...
to be consistent with renaming config.intl.h into config_intl.h.
2009-04-11 18:03:52 +00:00
Eli Zaretskii
685af672ca
* go32-nat.c (go32_attach, go32_detach:) Fix prototypes to be
...
consistent with the change from 2009-03-17.
2009-04-11 17:57:34 +00:00
Jan Kratochvil
f4a34a0895
gdb/
...
* varobj.c (varobj_invalidate): Fix formatting text width.
2009-04-10 16:00:49 +00:00
Jan Kratochvil
2dbd25e5eb
gdb/
...
* varobj.c (varobj_invalidate): Fix indentation.
2009-04-10 15:57:54 +00:00
Jan Kratochvil
c16abbdefa
* gdbtypes.c: Remove excessive parentheses at the return keywords.
2009-04-10 03:36:32 +00:00
Vladimir Prus
143260c9bf
Implement -exec-jump.
...
* mi/mi-cmds.h (mi_cmd_exec_jump): Declare.
* mi/mi-main.c (mi_cmd_exec_jump): New.
* mi/mi-cmds.c (mi_cmds): Register exec-jump.
2009-04-08 06:58:37 +00:00
Doug Evans
d10c338de3
* symfile.c (symbol_file_clear): Fix indentation.
2009-04-07 20:43:51 +00:00
Mark Kettenis
e5a6ba44d9
* sparc64nbsd-nat.c (sparc64nbsd_supply_pcb): Fix comment.
2009-04-05 22:37:20 +00:00
Ulrich Weigand
409c383c98
* ppc-linux-nat.c (ppc_linux_target_wordsize): New function.
...
(ppc_linux_auxv_parse): New function.
(ppc_linux_read_description): Use ppc_linux_target_wordsize.
(_initialize_ppc_linux_nat): Install ppc_linux_auxv_parse.
2009-04-03 16:07:04 +00:00
Ulrich Weigand
9592c5d011
* spu-linux-nat.c (spu_bfd_open): Set filename of in-memory
...
BFD to contents of SPU name note.
(spu_symbol_file_add_from_memory): Call symbol_file_add_from_bfd
with "from_tty" argument 1 instead of 0.
2009-04-03 14:37:57 +00:00
Jan Kratochvil
de40b933e2
gdb/
...
* dwarf2read.c
(new_symbol <DW_TAG_variable> <!DW_AT_location> <DW_AT_external>):
Create the symbol in local scope.
* symtab.h (cu->list_in_scope <LOC_UNRESOLVED>): New comment part.
gdb/testsuite/
* gdb.dwarf2/dw2-unresolved-main.c, gdb.dwarf2/dw2-unresolved.S,
gdb.dwarf2/dw2-unresolved.exp: New.
2009-04-02 21:01:41 +00:00
Keith Seitz
6cbbcdfe20
* stabsread.c (read_member_functions): GCC may emit an extra space
...
at the end of the names "__base_ctor" and "__base_dtor"; so ignore
whitespace when looking for these functions.
2009-04-02 17:34:25 +00:00
Joel Brobecker
476f7b68eb
* stack.c (print_frame_arguments): Set initial value to "scalars".
2009-04-01 22:05:30 +00:00
Aleksandar Ristovski
865093a3bf
* mips-tdep.c (mips_numeric_register_alieses): New definition.
...
(mips_gdbarch_init): Add user registers from
mips_numeric_register_aliases.
2009-04-01 19:13:42 +00:00
Joel Brobecker
5d3b6af6f9
* linux-nat.c (linux_nat_filter_event): Minor comment reformatting.
2009-04-01 19:07:50 +00:00
Joel Brobecker
9db037429b
* linux-nat.c (linux_nat_filter_events): Do not delete the lwp if
...
this is the last one.
2009-04-01 18:56:30 +00:00
Pedro Alves
0d8f58ca94
* remote.c (append_resumption): New.
...
(remote_vcont_resume): Use it.
2009-04-01 17:42:03 +00:00
Joel Brobecker
1e2f1c5caa
* windows-nat.c (+windows_get_ada_task_ptid): New function.
...
(init_windows_ops): Set windows_ops.to_get_ada_task_ptid.
2009-04-01 16:35:41 +00:00
Paul Pluzhnikov
1b88d5c487
[obvious] Kill left-over merge marker
2009-03-31 22:39:27 +00:00
Tom Tromey
71c25deab3
gdb
...
2009-03-31 Daniel Jacobowitz <dan@codesourcery.com>
Keith Seitz <keiths@redhat.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
PR gdb/6817
* Makefile.in (dbxread.o): Update.
* dbxread.c (read_dbx_symtab): Use cp_canonicalize_string.
* dwarf2read.c (GDB_FORM_cached_string): New.
(read_partial_die): Use dwarf2_canonicalize_name.
(dwarf2_linkage_name): Use dwarf2_name.
(dwarf2_canonicalize_name): New.
(dwarf2_name): Use dwarf2_canonicalize_name.
(dwarf_form_name, dump_die): Handle GDB_FORM_cached_string.
* stabsread.c (define_symbol, read_type): Use cp_canonicalize_string.
* symtab.c (lookup_symbol_in_language): Canonicalize input before
searching.
* cp-name-parser.y: operator() requires two parameters,
according to libiberty.
* minsyms.c (lookup_minimal_symbol): Canonicalize input
before searching.
* NEWS: Update.
gdb/testsuite
2009-03-31 Daniel Jacobowitz <dan@codesourcery.com>
Jan Kratochvil <jan.kratochvil@redhat.com>
PR gdb/931
* gdb.cp/gdb1355.exp (f_li, f_lui, f_si, f_sui): Allow canonical
output.
* gdb.cp/templates.exp: Allow canonical output. Remove KFAILs
for gdb/931.
* dw2-strp.S (DW_AT_language): Change to C++.
(DW_TAG_variable (name ""), Abbrev code 7, .Lemptyname): New.
2009-03-31 20:21:08 +00:00
Joel Brobecker
4a306c9a89
Provide support for (Ada) task-specific breakpoints.
...
* ada-lang.h (ada_get_task_number): Add declaration.
(breakpoint_ada_task_match): Delete declaration.
* ada-tasks.c (ada_get_task_number): Make non-static.
* breakpoint.h (struct breakpoint): Add field "task".
* breakpoint.c (print_one_breakpoint_location): Add handling of
task-specific breakpoints.
(create_breakpoint, create_breakpoints, find_condition_and_thread):
New parameter "task".
(break_command_really): Update calls to find_condition_and_thread
and create_breakpoints.
(breakpoint_re_set_one): Update call to find_condition_and_thread.
Set b->task.
2009-03-31 16:44:18 +00:00
Joel Brobecker
4a5a99175a
* ada-tasks.c (short_task_info): Eliminate the "Running" task state.
2009-03-31 16:31:24 +00:00
Pedro Alves
bad34192e5
* remote.c (remote_notice_new_inferior): Use ptid_is_pid. Check
...
if the thread's ptid without a thread id field is in the list
before calling thread_change_ptid.
(extended_remote_attach_1): In non-stop mode, do not rely on
querying the current thread, instead, query the thread list, and
select the first thread of the process.
* gdbthread.h (first_thread_of_process): Declare.
* thread.c (first_thread_of_process): Define.
2009-03-31 15:23:57 +00:00
Stan Shebs
1042e4c058
2009-03-30 Stan Shebs <stan@codesourcery.com>
...
Make tracepoints into a type of breakpoint.
* breakpoint.h (enum bptype): Add bp_tracepoint.
(struct breakpoint): Add fields step_count, pass_count, actions.
(get_tracepoint, get_tracepoint_by_number): Declare.
(all_tracepoints): Declare.
* breakpoint.c: Include tracepoint.h, readline.h.
(ALL_TRACEPOINTS): Move here from tracepoint.c.
(tracepoint_count): Ditto.
(should_be_inserted): GDB does not insert tracepoints itself.
(print_it_typical): Add tracepoint case.
(bpstat_what): Ditto.
(print_one_breakpoint_location): Ditto, and add printing for
pass count, step count, and action list.
(user_settable_breakpoint): Add tracepoint case.
(allocate_bp_location): Ditto.
(set_breakpoint_location_function): Ditto.
(disable_breakpoints_in_shlibs): Ditto.
(mention): Ditto.
(break_command_really): Add argument traceflag, use to choose
basic breakpoint type.
(break_command_1): Pass extra argument.
(set_breakpoint, handle_gnu_v3_exceptions): Ditto.
(breakpoint_re_set_one): Add tracepoint case.
(disable_command, enable_command): Ditto.
(set_tracepoint_count): Move here from tracepoint.c.
(trace_command): Move here from tracepoint.c and use
break_command_really.
(tracepoints_info): Move here from tracepoint.c and call
breakpoints_info.
(enable_trace_command): Move here from tracepoint.c and call
enable_command.
(disable_trace_command): Move here from tracepoint.c and call
disable_command.
(delete_trace_command): Move here from tracepoint.c and call
delete_breakpoint.
(trace_pass_command): Move here from tracepoint.c.
(get_tracepoint_by_number): Ditto.
(tracepoint_save_command): Ditto.
(get_tracepoint): New function.
(all_tracepoints): New function.
(_initialize_breakpoint): Move tracepoint init from tracepoint.c,
deprecate "enable trace" and "disable trace" commands.
* tracepoint.h (struct tracepoint): Remove.
(tracepoint_chain): Remove decl.
(deprecated_create_tracepoint_hook): Remove decl.
(deprecated_delete_tracepoint_hook): Remove decl.
(deprecated_modify_tracepoint_hook): Remove decl.
(ALL_TRACEPOINTS, ALL_TRACEPOINTS_SAFE): Remove.
(free_actions): Update signature.
(validate_actionline): Update signature.
(end_actions_pseudocommand): Declare.
(while_stepping_pseudocommand): Declare.
* tracepoint.c: Include breakpoint.h.
(tracepoint_chain, tracepoint_count): Remove.
(free_actions, make_cleanup_free_actions): Update signature.
(trace_command, set_raw_tracepoint): Remove.
(trace_mention): Remove.
(tracepoints_info): Remove.
(tracepoint_operation, map_args_over_tracepoints): Remove.
(get_tracepoint_by_number): Remove.
(enable_trace_command, disable_trace_command): Remove.
(delete_trace_command, trace_pass_command): Remove.
(trace_actions_command, read_actions): Update signature.
(validate_actionline): Update signature, use bp loc.
(encode_actions): Ditto.
(download_tracepoint): New function, body of trace_start_command.
(trace_start_command): Call it, use all_tracepoints.
(tracepoint_save_command): Remove.
(tracepoint_dump_command): Use get_tracepoint.
(end_actions_pseudocommand): Make globally visible.
(while_stepping_pseudocommand): Ditto.
(_initialize_tracepoint): Move command definitions to breakpoint.c.
doc/
* gdb.texinfo (Tracepoints): Describe tracepoints as a
special case of breakpoints.
(Enable and Disable Tracepoints): Mention deprecation.
(Listing Tracepoints): Update description and example.
testsuite/
* gdb.trace/actions.exp: Update to match new info trace format.
* gdb.trace/deltrace.exp: Ditto.
* gdb.trace/infotrace.exp: Ditto.
* gdb.trace/passcount.exp: Ditto.
* gdb.trace/save-trace.exp: Ditto.
* gdb.trace/while-stepping.exp: Ditto.
* gdb.trace/tracecmd.exp: Ditto, plus don't allow pending option.
gdbtk/
* generic/gdbtk-bp.c (gdb_actions_command): Update to handle
tracepoints as breakpoints.
(gdb_get_tracepoint_info): Ditto, plus use get_tracepoint and
breakpoint locations.
(tracepoint_exists): Ditto, plus use all_tracepoints.
2009-03-31 05:08:37 +00:00
Thiago Jung Bauermann
f8f6f20b6e
gdb/
...
Expose frames to Python.
* Makefile.in (SUBDIR_PYTHON_OBS): Add python-frame.o.
(SUBDIR_PYTHON_SRCS): Add python-frame.c.
(python-frame.o): New target.
* python/python-frame.c: New file.
* python/python-internal.h (gdbpy_frames, gdbpy_newest_frame,
gdbpy_frame_stop_reason_string, gdbpy_selected_frame,
gdbpy_initialize_frames): New prototypes.
* python/python.c (_initialize_python): Call gdbpy_initialize_frames.
(GdbMethods): Add `selected_frame' and `frame_stop_reason_string'
entries.
* stack.c (find_frame_funname): New function, factored out of
print_frame.
(print_frame): Call find_frame_funname.
* stack.h (find_frame_funname): Add prototype.
gdb/doc/
* gdb.texinfo (Frames in Python): New node.
(Python API): Update.
gdb/testsuite/
* gdb.python/python-frame.c: New file.
* gdb.python/python-frame.exp: New file.
2009-03-30 19:54:33 +00:00
Thiago Jung Bauermann
77316f4c7e
Remove unused value_object attribute `owned_by_gdb'.
...
* python/python-value.c (value_object): Remove owned_by_gdb
attribute.
(valpy_dealloc): Remove reference to self->owned_by_gdb.
(valpy_new): Likewise.
(value_to_value_object): Likewise.
2009-03-29 21:19:40 +00:00
Thiago Jung Bauermann
c0c6f77785
gdb/
...
Change gdb.Value.address from a method to an attribute.
* python/python-value.c (value_object): Add `address' element.
(valpy_dealloc): Decrement reference to self->address if set.
(valpy_new): Initialize val_obj->address.
(valpy_address): Rename to ...
(valpy_get_address): ... this. Change signature from method to
attribute. Update self->address if not set.
(value_to_value_object): Initialize val_obj->address.
(value_object_getset): Add `address' element.
(value_object_methods): Remove `address' element.
gdb/testsuite/
* gdb.python/python-value.exp: Add tests for the address
attribute.
gdb/doc/
* gdb.texinfo (Values From Inferior): Change gdb.Value.address
from a method to an attribute.
2009-03-29 21:11:11 +00:00
Andreas Schwab
c2c8d75b34
* observer.sh: Set LANG/LC_ALL to C, not c.
2009-03-29 13:36:27 +00:00
Kevin Buettner
1b31f75d63
* mn10300-tdep.c (mn10300_gdbarch_init): For mn10300, by default,
...
`char' is unsigned.
2009-03-28 04:56:42 +00:00
Pedro Alves
f91d3df5c6
* remote.c (remote_stop_ns): If multi-process extensions are off,
...
and GDB is requesting the whole process to stop, sent "vCont;t",
not "vCont;t:-1"
2009-03-28 01:15:13 +00:00
Pedro Alves
7b0e805131
* inf-loop.c (inferior_event_handler): Avoid calling is_running on
...
null inferior_ptid.
2009-03-28 00:58:31 +00:00