Tom Tromey
49c4e619f8
* ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
...
* breakpoint.c (catch_syscall_completer): Return a VEC.
* cli/cli-cmds.c (complete_command): Update.
* cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
(complete_on_enum): Likewise.
* command.h: Include gdb_vecs.h.
(completer_ftype): Change return type.
(complete_on_cmdlist, complete_on_enum): Likewise.
* completer.c (noop_completer, filename_completer)
(location_completer): Return a VEC.
(add_struct_fields): Remove 'nextp' argument. Change 'output'
to a VEC.
(expression_completer, complete_line_internal, complete_line)
(command_completer): Return a VEC.
(gdb_completion_word_break_characters, line_completion_function):
Update.
* completer.h: Include gdb_vecs.h.
(complete_line, noop_completer, filename_completer)
(expression_completer, location_completer, command_completer):
Update.
* f-lang.c (f_word_break_characters): Return a VEC.
* interps.c (interpreter_completer): Return a VEC.
* language.h (struct language_defn)
<la_make_symbol_completion_list>: Return a VEC.
* python/py-cmd.c (cmdpy_completer): Return a VEC.
* symtab.c (free_completion_list): Take a VEC.
(return_val_size, return_val_index): Remove.
(return_val): Now a VEC.
(completion_list_add_name): Update.
(default_make_symbol_completion_list_break_on)
(default_make_symbol_completion_list, make_symbol_completion_list)
(make_symbol_completion_list_fn, make_file_symbol_completion_list):
Return a VEC.
(add_filename_to_list): Update.
(struct add_partial_filename_data) <list_used, list_alloced>: Remove.
<list>: Now a VEC.
(maybe_add_partial_symtab_filename): Update.
(make_source_files_completion_list): Return a VEC.
* symtab.h (default_make_symbol_completion_list_break_on)
(default_make_symbol_completion_list, make_symbol_completion_list)
(make_symbol_completion_list_fn, make_file_symbol_completion_list)
(make_source_files_completion_list): Update.
2012-06-13 15:47:16 +00:00
Tom Tromey
625e8578d7
* breakpoint.c (add_catch_command): Use completer_ftype.
...
* breakpoint.h: Include command.h.
(add_catch_command): Use completer_ftype.
* cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
* cli/cli-decode.h (struct cmd_list_element) <completer>:
Use completer_ftype.
* command.h (completer_ftype): New typedef.
(set_cmd_completer): Use it.
* python/py-cmd.c (struct cmdpy_completer) <completer>: Use
completer_ftype.
2012-06-13 15:41:24 +00:00
Pedro Alves
5eb3b0622d
2012-06-13 Pedro Alves <palves@redhat.com>
...
Partial revert of previous change.
* serial.c (scb_base): New global.
(serial_for_fd): New.
(serial_open, serial_fdopen_ops): Link new serial in open serials
chain.
(do_serial_close): Unlink serial from the open serials chain.
2012-06-13 11:06:52 +00:00
Yao Qi
2f8f6aed0e
gdb/gdbserver:
...
* server.c (start_inferior): Remove duplicated writes to fields
'last_resume_kind' and 'last_status' of 'current_inferior'.
2012-06-13 02:35:01 +00:00
gdbadmin
22cdfed9c1
*** empty log message ***
2012-06-13 00:00:33 +00:00
Pedro Alves
8b3ee56d30
2012-06-12 Pedro Alves <palves@redhat.com>
...
* infrun.c (infrun_thread_stop_requested_callback): Don't switch
threads here.
(prepare_for_detach): No longer context switch here in non-stop
mode.
(fetch_inferior_event): Ditto.
(handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
to the event thread before removing breakpoints. Switch to the
event thread before inserting breakpoints and resuming.
(handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
event thread before resuming.
(handle_inferior_event) <stepping_past_singlestep_breakpoint>:
Switch to the event thread before removing breakpoints.
2012-06-12 18:30:26 +00:00
Eli Zaretskii
5d60742e2d
Fix quoting of special characters for the MinGW build.
...
infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
special characters correctly for the Windows shells. See
http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
report.
[!__MINGW32__]: Remove extra double quote character from special
characters.
2012-06-12 16:36:42 +00:00
Yao Qi
0c9070b30a
gdb/gdbserver:
...
* linux-low.c (linux_set_resume_request): Simplify predicate. Add
comment.
* server.c (handle_v_cont): Extend comment.
2012-06-12 14:02:15 +00:00
Stan Shebs
a6feecf744
* ui-out.h: Remove #if 0 declarations.
...
* ui-out.c: Remove #if 0 functions.
2012-06-12 00:58:56 +00:00
gdbadmin
83b18be2fd
*** empty log message ***
2012-06-12 00:00:33 +00:00
Pedro Alves
ddefb60ff8
2012-06-11 Pedro Alves <palves@redhat.com>
...
* ser-base.c (run_async_handler_and_reschedule): New.
(fd_event, push_event): Use it.
* serial.c (serial_open, serial_fdopen_ops): Set the initial
reference count to 1.
(do_serial_close): Set the bufp field to NULL. Use serial_unref
instead of xfree.
(serial_is_open, serial_ref, serial_unref): New.
* serial.h (serial_open): Adjust comment.
(serial_is_open): Declare.
(serial_close): Adjust comment.
(serial_ref, serial_unref) Declare.
(struct serial): New field 'refcnt'.
2012-06-11 20:36:53 +00:00
Pedro Alves
d5ad6aa5ce
2012-06-11 Pedro Alves <palves@redhat.com>
...
Remove #if 0'd "connect" command, and unnecessary associated
refcounting and serial reuse bits.
* serial.h (struct serial): Remove fields 'next' and 'refcnt'.
* serial.c (last_serial_opened): Delete.
(scb_base): Delete.
(serial_open): Adjust.
(serial_for_fd): Delete.
(serial_fdopen_ops, do_serial_close): Adjust.
(serial_fdopen_ops): Adjust.
2012-06-11 20:33:56 +00:00
Pedro Alves
318aa544a8
2012-06-11 Pedro Alves <palves@redhat.com>
...
* serial.c (do_serial_close): Remove early return when SCB is
null.
2012-06-11 20:32:29 +00:00
Tom Tromey
0726159622
* dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
2012-06-11 20:19:22 +00:00
Jan Kratochvil
cc80f26716
gdb/
...
Fix regression by the "ambiguous linespec" series.
* breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
get_last_displayed_symtab and get_last_displayed_line and depending
on CURSAL.
gdb/testsuite/
Fix regression by the "ambiguous linespec" series.
* gdb.base/break.exp (list marker1, break lineno, delete $bpnum): New
tests.
2012-06-11 19:16:24 +00:00
Tom Tromey
356d9f9d9e
* dwarf2read.c (dw2_get_primary_filename_reader): New function.
...
(dw2_find_symbol_file): Use it.
2012-06-11 18:45:01 +00:00
Jan Kratochvil
bb2af9ccc5
gdb/testsuite/
...
* lib/future.exp: Set $use_gdb_compile even if only find_go_linker is
missing.
2012-06-11 17:44:07 +00:00
Michael Eager
232b87049a
*** empty log message ***
2012-06-11 16:08:21 +00:00
Tom Tromey
e81a37f7ed
* infrun.c (handle_inferior_event)
...
<BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
breakpoint.
<BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
exception logic in all cases. Update comments.
(insert_longjmp_resume_breakpoint): Set the exception resume
breakpoint.
testsuite
* gdb.base/longjmp.c (hidden_longjmp): Move expected catch
location...
(main): ...here.
2012-06-11 15:15:06 +00:00
Maciej W. Rozycki
2e81047f91
* mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
2012-06-11 10:11:14 +00:00
Yao Qi
c52daf705d
gdb/gdbserver:
...
* linux-low.c (linux_attach): Add 'static'.
2012-06-11 07:24:15 +00:00
gdbadmin
35bf4b57ae
*** empty log message ***
2012-06-11 00:00:02 +00:00
gdbadmin
4edd7033e2
*** empty log message ***
2012-06-10 00:00:02 +00:00
Siva Chandra Reddy
4e32eda7cb
2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
...
* valarith.c (binop_types_user_defined_p): Fix a typo.
2012-06-09 07:36:43 +00:00
gdbadmin
d2e1b1b7a8
*** empty log message ***
2012-06-09 00:00:33 +00:00
Yao Qi
18648a3749
gdb/
...
* arch-utils.c (default_return_in_first_hidden_param_p): New.
* arch-utils.h: Declare.
* gdbarch.sh: Add return_in_first_hidden_param_p.
* gdbarch.c, gdbarch.h: Regenerated.
* infcall.c (call_function_by_hand): Call
gdbarch_return_in_first_hidden_param_p instead of
language_pass_by_reference.
* m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
(m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
* sh-tdep.c (sh_return_in_first_hidden_param_p): New.
(sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
* tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
`cplus_return_struct_by_reference'.
(tic6x_return_value): Handle language cplusplus.
(tic6x_return_in_first_hidden_param_p): New.
(tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
2012-06-08 14:24:57 +00:00
Yao Qi
16bdd41fc6
gdb/doc:
...
* gdb.texinfo (In-Process Agent): Add 'In-Process Agent
Protocol'.
(In-Process Agent Protocol, IPA Protocol Objects)
(IPA Protocol Commands): New nodes.
(Tracepoint Packets): Add anchors.
2012-06-08 13:05:55 +00:00
gdbadmin
75ecb895f0
*** empty log message ***
2012-06-08 00:01:03 +00:00
Doug Evans
034e5797f0
* dwarf2read.c (dwarf2_cu): Add comment.
2012-06-07 17:30:12 +00:00
Yao Qi
8efd7788e8
gdb/testsuite/
...
* gdb.trace/strace.exp: Shorten some too-long lines.
2012-06-07 15:07:03 +00:00
gdbadmin
8f68367581
*** empty log message ***
2012-06-07 00:00:32 +00:00
Maciej W. Rozycki
6a00aa1e22
* mips-tdep.c (mips_pseudo_register_type): Remove tdep local
...
variable.
(mips_eabi_push_dummy_call): Likewise.
(mips_n32n64_push_dummy_call): Likewise.
(mips_o32_push_dummy_call): Likewise.
(mips_o64_push_dummy_call): Likewise.
2012-06-06 21:34:12 +00:00
Maciej W. Rozycki
eaa05d599e
* mips-tdep.c (mips_convert_register_p): Correct coding style.
2012-06-06 21:27:37 +00:00
Maciej W. Rozycki
de13fcf2f4
* mips-tdep.c (mips_pseudo_register_type): Use
...
mips_float_register_p.
2012-06-06 19:34:31 +00:00
Pedro Alves
c3a01a2280
2012-06-06 Pedro Alves <palves@redhat.com>
...
* infrun.c (handle_inferior_event): Remove calls to
reinit_frame_cache that follow a context_switch call.
2012-06-06 19:27:23 +00:00
Pedro Alves
d25f45d93a
2012-06-06 Pedro Alves <palves@redhat.com>
...
* infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
context_switch and remove stale comment.
2012-06-06 18:40:06 +00:00
Pedro Alves
359f5fe60e
gdb/
...
2012-06-06 Pedro Alves <palves@redhat.com >
* infrun.c (struct execution_control_state): Remove
`new_thread_event' field.
(handle_inferior_event): Simplify new threads handling; don't
resume the inferior if we find a new thread.
gdb/testsuite/
2012-06-06 Pedro Alves <palves@redhat.com >
* gdb.threads/clone-new-thread-event.c: New file.
* gdb.threads/clone-new-thread-event.exp: New file.
2012-06-06 18:10:17 +00:00
Thomas Schwinge
2d4c29c5e6
gdb/
...
* NEWS: Document the deprecation of SH's 'regs' command.
* inferior.h (all_registers_info): Add function declaration.
* sh-tdep.c (sh_show_regs): Remove variable.
(sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
(sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
(sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
(sh_show_regs_command): Remove functions.
(sh_gdbarch_init): Don't set sh_show_regs.
(_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
'info all-registers'.
* sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
(sh64_show_regs): Remove functions.
* sh64-tdep.h (sh64_show_regs): Remove function declaration.
gdb/doc/
* gdb.texinfo: Document the deprecation of SH's 'regs' command.
2012-06-06 18:03:54 +00:00
Jan Kratochvil
f5f1cdb612
gdb/
...
* configure.ac: Move development=true below AC_INIT.
* configure: Regenerate.
2012-06-06 16:57:38 +00:00
Yao Qi
7b2fe205fd
gdb/testsuite/
...
* gdb.base/dprintf.c (main): Add extra parameter when calling
printf and fprintf.
(bar): New function. It is a dead function, but to ensure
'malloc' is linked explicitly.
2012-06-06 08:51:22 +00:00
Yao Qi
3eca55e89d
gdb/testsuite/
...
* gdb.base/info-proc.exp: Return if target doesn't support
'info proc'.
2012-06-06 08:47:04 +00:00
Yao Qi
d38bbb0a50
gdb/gdbserver/
...
* ax.c (gdb_eval_agent_expr): Print `top' in hex.
2012-06-06 08:31:31 +00:00
Yao Qi
6bd110c5c1
gdb/doc/
...
* gdb.texinfo: Update copyright year.
2012-06-06 08:20:12 +00:00
Stan Shebs
bf6309af86
* mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
...
gdb_stdout.
2012-06-06 06:04:46 +00:00
gdbadmin
479dd5e6fa
*** empty log message ***
2012-06-06 00:00:32 +00:00
Jan Kratochvil
45aa465930
gdb/
...
* corefile.c (read_memory, read_stack, write_memory): Accept LEN
argument as ssize_t.
* gdbcore.h (read_memory, read_stack, write_memory): Likewise.
* remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
* target.c (target_read_stack, target_write_memory)
(target_write_raw_memory): Likewise.
* target.h (target_read_stack, target_write_memory)
(target_write_raw_memory): Likewise.
2012-06-05 21:22:31 +00:00
Jan Kratochvil
1b162304d1
gdb/
...
* symfile-mem.c: Change gdb_static_assert to ssize_t.
(target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
* target.c (target_read_memory): Change LEN to ssize_t.
* target.h (target_read_memory): Change LEN to ssize_t.
2012-06-05 21:18:05 +00:00
Pedro Alves
8556afb4f5
2012-06-05 Pedro Alves <palves@redhat.com>
...
PR backtrace/13866
* breakpoint.c (until_break_command): Only fetch the selected
frame after decode_line_1.
2012-06-05 19:50:50 +00:00
Jan Kratochvil
91cc9324e0
gdb/testsuite/
...
* gdb.base/freebpcmd.exp (set lines): Check valid range of I.
(run program with breakpoint commands): XFAIl if it is not.
2012-06-05 19:06:20 +00:00
Pedro Alves
fb139f3251
2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
...
* solib-svr4.c (enable_break): Don't fallback to setting the solib
event breakpoint at _start, __start or main if a program
interpreter is not found.
2012-06-05 15:44:03 +00:00