aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2012-02-172012-02-17 Tristan Gingold <gingold@adacore.com>Tristan Gingold2-2/+26
* solib-darwin.c (darwin_current_sos): Check magic and filetype
2012-02-17gdb/testsuite/Yao Qi2-0/+12
* gdb.trace/strace.exp (strace_info_marker): Test `info threads'.
2012-02-17 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling ofThomas Schwinge2-3/+23
TYPE_CALLING_CONVENTION annotation.
2012-02-17*** empty log message ***gdbadmin1-1/+1
2012-02-16 * MAINTAINERS: Add rx to target ISA section.Kevin Buettner3-0/+10
* Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o. (ALLDEPFILES): Add rx-tdep.c.
2012-02-16 * symfile.c (symbol_file_add_main_1): Use inferior'sTom Tromey6-4/+33
symfile_flags. * solib.c (solib_read_symbols): Use inferior's symfile_flags. * linux-nat.c (linux_child_follow_fork): Set symfile_flags on inferior. * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on inferior. (follow_exec): Use inferior's symfile_flags. * inferior.h (struct inferior) <symfile_flags>: New field.
2012-02-16gdb: sim: check return value of sim_create_inferiorMike Frysinger2-1/+10
The current gdbsim_create_inferior func doesn't check the return value of sim_create_inferior which can be problematic when that func doesn't return success. So, if it fails, call error() and be done. Reported-by: Richard Stuckey <richard.stuckey@arc.com> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-02-162012-02-16 Josh Matthews <josh@joshmatthews.net>Tristan Gingold2-1/+5
* machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
2012-02-16 * gdb.base/inferior-died.c: Don't include stdio.h.Tom Tromey2-1/+4
2012-02-16 PR c++/13653:Tom Tromey5-0/+114
* thread.c (struct current_thread_cleanup) <was_removable>: New field. (do_restore_current_thread_cleanup): Restore 'removable' field. (restore_current_thread_cleanup_dtor): Likewise. (make_cleanup_restore_current_thread): Initialize new field. testsuite/gdb * gdb.base/inferior-died.c: New file. * gdb.base/inferior-died.exp: New file.
2012-02-16gdb/gdbserver/Yao Qi5-87/+125
* inferiors.c: Move code to ... * dll.c: .... here. New. * server.h: Declare clear_dlls. * Makefile.in (SFILES): Add dll.c. (OBS): Add dll.o (dll.o): New rule.
2012-02-16*** empty log message ***gdbadmin1-1/+1
2012-02-15 * MAINTAINERS: Add rl78 to target ISA section.Kevin Buettner4-0/+15
* Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o. (ALLDEPFILES): Add rl78-tdep.c. * NEWS: Mention rl78 as a new target.
2012-02-15 * frame.c (find_frame_sal): Initialize sal->pspace field from frameAleksandar Ristovski6-0/+75
data. * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL. testuite: * gdb.base/break-inline.exp: New file. * gdb.base/break-inline.c: New file.
2012-02-15 PR gdb/12659:Tom Tromey4-8/+17
* infcmd.c (registers_info): Print just the current register's name. gdb/testsuite * gdb.base/pc-fp.exp: Add "info register" tests.
2012-02-15 * gdb.base/regs.exp: Remove.Tom Tromey2-78/+4
2012-02-152012-02-15 Pedro Alves <palves@redhat.com>Pedro Alves12-32/+26
* gdb.trace/backtrace.exp: Issue UNSUPPORTED instead of PASS when the target doesn't support tracepoints. * gdb.trace/circ.exp: Ditto. * gdb.trace/collection.exp: Ditto. * gdb.trace/packetlen.exp: Ditto. * gdb.trace/passc-dyn.exp: Ditto. * gdb.trace/report.exp: Ditto. * gdb.trace/tfind.exp: Ditto. * gdb.trace/tspeed.exp: Ditto. * gdb.trace/tsv.exp: Ditto. * gdb.trace/unavailable.exp: Ditto. * gdb.trace/while-dyn.exp: Ditto.
2012-02-15 * python/py-symbol.c (sympy_value): Use _().Tom Tromey2-2/+6
2012-02-152012-02-15 Pedro Alves <palves@redhat.com>Pedro Alves2-6/+34
* gdb.trace/circ.exp (trace_buffer_normal): Rewrite using gdb_test_multiple, and call unsupported instead of fail, if the remote side does not support the request.
2012-02-152012-02-15 Pedro Alves <palves@redhat.com>Pedro Alves7-1/+35
* gdb.server/ext-attach.exp: Make sure gdb is disconnected. * gdb.server/ext-run.exp: Make sure gdb is disconnected. * gdb.server/file-transfer.exp: Make sure gdb is disconnected. * gdb.server/server-mon.exp: Make sure gdb is disconnected. * gdb.server/server-run.exp: Make sure gdb is disconnected. * lib/gdbserver-support.exp (gdbserver_start_extended): Only prepend "extended-" to $gdbserver_protocol if $gdbserver_protocol doesn't start with "extended-" already.
2012-02-15gdb/Pedro Alves5-22/+71
2012-02-15 Pedro Alves <palves@redhat.com> * remote.c (remote_detach_1, extended_remote_attach_1): Tweak output to be like native targets'. (remote_pid_to_str): Special case the null ptid. gdb/testsuite/ 2012-02-15 Pedro Alves <palves@redhat.com> Support extended-remote. Avoid cascading timeouts. * gdb.base/attach.exp (do_attach_tests): Add expected output for the extended-remote target. If attaching with no file fails, load the file manually. * gdb.server/ext-attach.exp: Adjust expected attach/detach output.
2012-02-15*** empty log message ***gdbadmin1-1/+1
2012-02-142012-02-14 Stan Shebs <stan@codesourcery.com>Stan Shebs8-10/+145
* NEWS: Mention enable count command. * breakpoint.h (struct breakpoint): New field enable_count. * breakpoint.c (enable_breakpoint_disp): Add count argument. (enable_breakpoint): Add arg to call. (struct disp_data): New struct. (do_enable_breakpoint_disp): Interp arg as disp_data and unpack. (do_map_enable_once_breakpoint): Create a struct and pass it. (do_map_enable_delete_breakpoint): Ditto. (do_map_enable_count_breakpoint): New function. (enable_count_command): New function. (bpstat_stop_status): Decrement enable_count. (print_one_breakpoint_location): Report enable count. (_initialize_breakpoint): Add enable count command. * gdb.texinfo (Disabling Breakpoints): Document enable count. * gdb.base/ena-dis-br.exp: Add enable count test.
2012-02-14rl78-tdep.c: Rearrange order in which registers are displayed.Kevin Buettner2-68/+251
2012-02-14 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type ofKevin Buettner2-1/+6
the name parameter being passed to find_pc_partial_function().
2012-02-14gdb/Jan Kratochvil2-1/+4
* MAINTAINERS: Step down from being ia64 target maintainer.
2012-02-14*** empty log message ***gdbadmin1-1/+1
2012-02-13gdb/doc/Pedro Alves14-163/+34
2012-02-13 Pedro Alves <palves@redhat.com> * gdb.texinfo (MIPS boards): Refer to mips-elf instead of mips-idt-ecoff. gdb/testsuite/ 2012-02-13 Pedro Alves <palves@redhat.com> * config/mips-idt.exp: Delete. * gdb.base/a2-run.exp: Remove mips-idt xfails. * gdb.base/bitfields.exp: Remove mips-idt restarts. * gdb.base/break.exp: Remove mips-idt references. * gdb.base/chng-syms.exp: Ditto. * gdb.base/default.exp: Ditto. * gdb.base/funcargs.exp (funcargs_reload): Delete. (top level): Don't call it. * gdb.base/opaque.exp: Remove mips-idt restarts. * gdb.base/ptype.exp: Remove mips-idt xfails. * gdb.base/scope.exp: Remove mips-idt restarts. * gdb.base/sepdebug.exp: Remove mips-idt references. * gdb.base/watchpoint.exp (maybe_clean_restart) (maybe_reinitialize): Delete. (test_disabling_watchpoints, test_disabling_watchpoints) (test_watchpoint_triggered_in_syscall) (test_watchpoint_and_breakpoint, test_inaccessible_watchpoint): Don't call them.
2012-02-13*** empty log message ***gdbadmin1-1/+1
2012-02-12gdb/Jan Kratochvil2-4/+13
* ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing compilation warning.
2012-02-12gdb/Jan Kratochvil4-3/+45
Fix crash on loaded shlibs without loaded exec_bfd. * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD. (set_section_command): Replace exec_bfd by p->bfd. gdb/testsuite/ * gdb.server/server-exec-info.exp: New file.
2012-02-12*** empty log message ***gdbadmin1-1/+1
2012-02-11gdb/gdbserver/Yao Qi2-2/+8
* server.c: (handle_monitor_command): Add a new parameter `own_buf'. (handle_query): Update caller.
2012-02-11*** empty log message ***gdbadmin1-1/+1
2012-02-10 * linespec.c (decode_line_internal): Skip symtabs_from_filenameTom Tromey2-2/+9
when we have a C++ qualified name.
2012-02-102012-02-10 Pedro Alves <palves@redhat.com>Pedro Alves2-5/+10
* gdb.base/break-interp.exp (test_attach_gdb): Assume $file is always non-empty. (test_attach): Always pass $exec to test_attach_gdb.
2012-02-102012-02-10 Pedro Alves <palves@redhat.com>Pedro Alves2-6/+20
* inferior.c (inferior_pid_to_str): New. (print_inferior, inferior_command): Use it.
2012-02-102012-02-10 Pedro Alves <palves@redhat.com>Pedro Alves3-2/+14
* configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of the test CFLAGS. * configure: Regenerate.
2012-02-10gdb/Jan Kratochvil2-1/+5
* linespec.c (decode_line_internal): Fix comment correctness.
2012-02-10gdb/doc/Yao Qi2-0/+5
* gdb.texinfo (Symbols In Python): Add missing `@end defvar'.
2012-02-10*** empty log message ***gdbadmin1-1/+1
2012-02-09[gdbserver] return ENOSYS if readlink not supported.Joel Brobecker5-2/+16
This reproduces on the GDBserver side what GDB does when readlink is not supported. gdb/gdbserver/ChangeLog: * configure.ac: Add readlink to AC_CHECK_FUNCS list. * configure, config.in: Regenerate. * hostio.c: Provide an alternate implementation if HAVE_READLINK is not defined.
2012-02-092012-02-09 Valery Khromov <valery.khromov@gmail.com>Pedro Alves6-2/+141
PR gdb/12953 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h. * amd64bsd-nat.c: Add support for debug registers (adapted from i386bsd-nat.c). [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set) (amd64bsd_dr_set_control, amd64bsd_dr_set_addr) (amd64bsd_dr_get_addr, amd64bsd_dr_get_status) (amd64bsd_dr_get_control): New functions. * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h). * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h". [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware watchpoints initialization. * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
2012-02-09gdb/Jan Kratochvil2-2/+8
* gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print flds_bnds.fields. (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
2012-02-09gdb/Jan Kratochvil2-4/+9
* breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
2012-02-09*** empty log message ***gdbadmin1-1/+1
2012-02-08 * gdb.python/py-symbol.exp: Use lookup_global_symbol for testsTom Tromey2-4/+10
before inferior is started.
2012-02-08Rename la_get_symbol_name_match_p into la_get_symbol_name_cmpJoel Brobecker13-26/+42
The la_get_symbol_name_match_p language hook was poorly named, as it suggested that the function should return nonzero if the names match, whereas it is the exact opposite. This patch therefore renames the hook and associated typedef, as well some of the code that uses that hook. gdb/ChangeLog: * language.h (symbol_name_cmp_ftype): Renames symbol_name_match_p_ftype. (struct language_defn)[la_get_symbol_name_cmp]: Renames la_get_symbol_name_match_p. * ada-lang.c (ada_get_symbol_name_cmp): Renames ada_get_symbol_name_match_p. Update comment. (ada_language_defn)[la_get_symbol_name_cmp]: Update value. * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]: Renames symbol_name_match_p. Update field type. (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust. * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by "la_get_symbol_name_cmp" in comments. * language.c: Likewise.
2012-02-08 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): CorrectRainer Orth3-3/+10
%eflags offset. * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs) (amd64_sol2_gregset32_reg_offs): Likewise.
2012-02-082012-02-08 Joel Brobecker <brobecker@adacore.com>Tristan Gingold2-0/+11
* solib-darwin.c (darwin_bfd_open): Make sure that the filename of the returned BFD is allocated by GDB.