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
Eli Zaretskii
5362e076aa
* config/djgpp/fnchange.lst: Update to fix ARI-reported problems.
2009-03-27 13:38:31 +00:00
Doug Evans
88fc996f58
* thread.c (do_restore_current_thread_cleanup): Redo test for
...
whether to restore old->inferior_ptid.
* gdb.mi/mi-nonstop-exit.exp: New file.
* gdb.mi/non-stop-exit.c: New file.
2009-03-27 02:44:51 +00:00
Tom Tromey
56ef84b1f1
gdb
...
* breakpoint.c (resolve_sal_pc): Preserve original line number
when skipping prologue.
gdb/testsuite
Update for change to prologue skipping:
* gdb.mi/mi2-simplerun.exp: Update.
* gdb.mi/mi2-break.exp: Update.
* gdb.mi/mi-simplerun.exp: Update.
* gdb.mi/mi-break.exp: Update.
* gdb.base/ending-run.exp: Update.
2009-03-26 23:30:12 +00:00
Doug Evans
a5321aa4d5
* thread.c (inferior_thread) Remove "extern" in definition.
2009-03-26 21:30:26 +00:00
Thiago Jung Bauermann
def2b0009c
gdb/
...
Add gdb.Value.is_optimized_out attribute.
* python/python-value.c (valpy_get_is_optimized_out): New
function.
(value_object_getset): New variable.
(value_object_type): Initialize tp_getset element.
gdb/doc/
* gdb.texinfo (Values From Inferior): Document is_optimized_out
attribute.
gdb/testsuite/
* gdb.python/python-value.exp (test_value_in_inferior): Test
gdb.Value.is_optimized_out attribute.
2009-03-26 20:58:11 +00:00
Jan Kratochvil
442ddf5987
gdb/
...
Recognize missing DW_AT_location as <value optimized out>.
* dwarf2read.c
(new_symbol <DW_TAG_variable> <!DW_AT_location> <!DW_AT_external>):
Call add_symbol_to_list.
gdb/testsuite/
* gdb.dwarf2/dw2-noloc-main.c: New file.
* gdb.dwarf2/dw2-noloc.S: New symbols matrix.
(.text): Remove.
(.data): New.
(DW_AT_stmt_list, .debug_line, DW_AT_frame_base): Remove.
(DW_AT_low_pc, DW_AT_high_pc): Reference `dw2-noloc-main.c'.
(DW_TAG_subprogram func_cu1, noloc): Remove.
(main): New.
* gdb.dwarf2/dw2-noloc.exp: Use prepare_for_testing, compile also
`dw2-noloc-main.c'. Test the new DIEs from `dw2-noloc.S'.
(file_symbols): New procedure.
2009-03-26 14:47:19 +00:00
Tom Tromey
78485d59c6
* gdbtypes.h (CHECK_TYPEDEF): Don't yield a value.
...
* stack.c (print_this_frame_argument_p): Use check_typedef.
2009-03-26 01:27:45 +00:00
Tom Tromey
94ae171419
* configure: Rebuild.
...
* acinclude.m4 (AM_ICONV): Set am_cv_use_build_libiconv.
Rearrange flags setting. Add comments.
2009-03-26 01:18:35 +00:00
Pierre Muller
2bc57ae31d
* config/i386/nm-i386.h: Remove code within
...
I386_WATCHPOINTS_IN_TARGET_VECTOR conditional.
* config/i386/nm-cygwin.h: Remove I386_WATCHPOINTS_IN_TARGET_VECTOR
macro.
* config/i386/nm-cygwin64.h: Ditto.
* config/i386/nm-fbsd.h: Ditto.
* config/i386/nm-go32.h: Ditto.
* config/i386/nm-linux.h: Ditto.
* config/i386/nm-linux64.h: Ditto.
2009-03-26 00:18:46 +00:00
Pierre Muller
549ba0f80a
ARI fix: "xasprintf" rule.
...
* printcmd.c (sym_info): Replace xasprintf by xstrprintf.
2009-03-25 22:38:46 +00:00
Pedro Alves
68c976001a
* remote.c (remote_start_remote): In non-stop mode, call
...
init_wait_for_inferior before adding threads and inferiors.
2009-03-25 22:27:49 +00:00
Joel Brobecker
a6f1cd9667
* breakpoint.c (breakpoint_thread_match): Split a large condition
...
into several smaller conditions. No behavior change.
2009-03-25 22:08:29 +00:00
Joel Brobecker
dbfb4bc7c9
Fix the date in the last entry.
2009-03-25 22:07:16 +00:00
Pedro Alves
a07daef34e
gdb/
...
* infrun.c (infrun_thread_thread_exit): New.
(_initialize_infrun): Attach it to the thread_exit observer.
* thread.c (delete_thread_1): Always call the observer, passing it
the silent flag.
* mi/mi-interp.c (mi_thread_exit): Add "silent" parameter. If
SILENT, return immediately.
gdb/doc/
* observer.texi (thread_exit): Add "silent" parameter.
2009-03-25 21:53:11 +00:00
Pedro Alves
d729566a19
* infrun.c (normal_stop): Use has_stack_frames instead of
...
target_has_stack.
* mi/mi-main.c (mi_execute_command): Avoid calling inferior_thread
when there is no thread selected.
(mi_cmd_execute): Don't special case commands that can run without
a valid selected thread.
* top.c (execute_command): Don't special case commands that can
run without a valid selected thread. Use has_stack_frames.
* infcmd.c (ensure_valid_thread): New.
(continue_1, step_1, jump_command, signal_command): Use it.
(detach_command): Error out if there's no selected thread/inferior.
* thread.c (print_thread_info): Allow having no thread selected.
(switch_to_thread): Don't read the PC if there is no current thread.
(do_restore_current_thread_cleanup): Don't record the current
frame if there is no current thread.
(make_cleanup_restore_current_thread): Don't read frame info if
there is no selected thread.
(_initialize_thread): Don't mark commands as
"no_selected_thread_ok".
* frame.c (get_current_frame): Error out if there is no valid
selected thread.
(has_stack_frames): Return false if there is no valid
selected thread.
* cli/cli-cmds.c (init_cli_cmds): Don't mark commands as
"no_selected_thread_ok".
* cli/cli-decode.c (set_cmd_no_selected_thread_ok)
(get_cmd_no_selected_thread_ok): Delete.
* cli/cli-decode.h (CMD_NO_SELECTED_THREAD_OK): Delete.
(set_cmd_no_selected_thread_ok, get_cmd_no_selected_thread_ok):
Delete declaration.
* stack.c (get_selected_block): Use has_stack_frames.
2009-03-25 21:42:35 +00:00
Thiago Jung Bauermann
f04c6d38e2
gdb/
...
Fix size of FPSCR in Power 7 processors.
* ppc-linux-nat.c (PPC_FEATURE_ARCH_2_05): Remove #define.
(PPC_FEATURE_HAS_DFP): New #define.
(ppc_linux_read_description): Check for DFP feature instead of
ISA 2.05 to decide on size of the FPSCR.
gdbserver/
Fix size of FPSCR in Power 7 processors.
* linux-ppc-low.c (PPC_FEATURE_ARCH_2_05): Remove #define.
(PPC_FEATURE_HAS_DFP): New #define.
(ppc_arch_setup): Check for DFP feature instead of ISA 2.05 to decide on
size of the FPSCR.
2009-03-25 21:15:04 +00:00
Kevin Buettner
6c02c64c31
* mn10300-tdep.c (trad-frame.h): Don't include.
...
(prologue-value.h): Include.
(mn10300_frame_unwind_cache, set_reg_offsets): Delete.
(struct mn10300_prologue): Define.
(push_reg, translate_rreg, check_for_saved): New functions.
(mn10300_analyze_prologue): Rewrite, using prologue-value
machinery. Handle more instructions than before. Permit
instructions to occur in any order.
(mn10300_skip_prologue): Find the extents of the function
in question; mn10300_analyze_prologue no longer does this.
(mn10300_analyze_frame_prologue): New function.
(mn10300_frame_base): New function.
(mn10300_frame_this_id): Rewrite, no longer using trad-frame
implementation.
(mn10300_frame_prev_register): Likewise.
(mn10300_frame_base_address, mn10300_frame_base struct): Delete.
(mn10300_unwind_pc, mn10300_unwind_sp): Rename `next_frame' to
`this_frame'.
(mn10300_frame_unwind_init): Don't call frame_base_set_default().
2009-03-25 13:40:05 +00:00
Pierre Muller
67c296a2d7
Fix completer problem for filename completion on the first try.
...
* gdb/completer.h (gdb_completion_word_break_characters): New function.
* gdb/completer.c: Include gdb_assert.h.
(complete_line_internal_reason): New enum.
(complete_line_internal): Change last argument type to
complete_line_internal_reason.
Modify function to handle the different complete_line_internal_reason
argument values.
(complete_line): Adapt to change in complete_line_internal.
(command_completer): Ditto.
(gdb_completion_word_break_characters): Implement new function.
* top.c (init_main): Set rl_completion_word_break_hook to
gdb_completion_word_break_characters.
2009-03-25 10:50:57 +00:00
Pierre Muller
1a6d2f2ff6
ARI fix: "strlen d_name" rule.
...
* linux-nat.c (linux_nat_xfer_osdata): Use NAMELEN macro.
2009-03-25 10:02:13 +00:00
Tom Tromey
fc3b640d97
2009-03-24 Tom Tromey <tromey@redhat.com>
...
Pedro Alves <pedro@codesourcery.com>
* configure, config.in: Rebuild.
* configure.ac: Check for libiconvlist.
* charset.c: Check HAVE_LIBICONVLIST.
* acinclude.m4 (AM_ICONV): Don't subst LIBICONV, LIBICONV_INCLUDE,
LIBICONV_LIBDIR. Update CPPFLAGS and LIBS.
* Makefile.in (LIBICONV, LIBICONV_INCLUDE, LIBICONV_LIBDIR):
Remove.
(INTERNAL_CFLAGS_BASE): Update.
(INTERNAL_LDFLAGS): Update.
(CLIBS): Update.
2009-03-25 00:58:37 +00:00
Jan Kratochvil
76a39ba7a1
* configure.ac: Initialize the variable $PREFER_CURSES.
...
* configure: Regenerated.
2009-03-24 17:01:34 +00:00
Jan Kratochvil
bd8a8e1b9c
* configure.ac: Enable $PREFER_CURSES even with default $ENABLE_TUI.
...
* configure: Regenerated.
2009-03-24 16:54:35 +00:00
Pierre Muller
a3224241d3
ARI fix: "strerror" rule.
...
* darwin-nat.c (darwin_ptrace): Use safe_strerror.
(darwin_stop_inferior, darwin_attach, darwin_detach): Ditto.
2009-03-24 07:19:46 +00:00
Joel Brobecker
6cdd57f45d
* ada-exp.y (get_symbol_field_type): Make sure to resolve typedefs
...
before looking up the fields inside our struct type.
2009-03-24 02:08:23 +00:00
Joel Brobecker
17466c1a8a
* ada-lang.c (resolve_subexp) [UNOP_QUAL]: Resolve typedefs before
...
trying to resolve the type qualification.
2009-03-24 02:07:07 +00:00
Joel Brobecker
8008e2653f
* ada-lang.c (ada_evaluate_subexp) [UNOP_IN_RANGE]: make sure
...
we try to apply the attribute on the real type, rather than
its associated typedef.
2009-03-24 02:04:19 +00:00
Joel Brobecker
31dedfee60
* ada-lang.c (ada_evaluate_subexp) [OP_ATR_MODULUS]: Use check_typdef
...
to make sure we try to get the modulus of the actual type, not the
associated typedef.
2009-03-24 02:00:51 +00:00
Joel Brobecker
5bc23cb38a
* ada-lang.c (ada_evaluate_subexp): [OP_ATR_FIRST, OP_ATR_LAST]
...
[OP_ATR_LENGTH]: When using the attribute on a type, make sure
to get the real type, not the associated typedef.
2009-03-24 01:58:22 +00:00
Joel Brobecker
e0cfd8e38b
Fix typo (sleep -> usleep).
2009-03-24 01:52:16 +00:00
Joel Brobecker
872c8b510d
* ada-lang.c (ada_get_field_index): Add handling of the case
...
when TYPE is a typedef of a struct.
2009-03-24 01:51:48 +00:00
Joel Brobecker
dcb626be9b
* gdb_usleep.h, gdb_usleep.c: New files.
...
* Makefile.in (SFILES): Add gdb_usleep.c.
(HFILES_NO_SRCDIR): Add gdb_usleep.h.
(COMMON_OBS): Add gdb_usleep.o.
* ser-unix.c (hardwire_send_break): Replace call to gdb_select
by call to gdb_usleep.
2009-03-24 01:37:48 +00:00
Joel Brobecker
24be086dc4
* buildsym.c (end_symtab): If we ignore the subfiles, then
...
unlink the associated symtabs if they were already allocated.
2009-03-24 01:32:46 +00:00