aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2013-01-07Simplifly ptrace_request_to_str's implementation...Joel Brobecker2-147/+58
... 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-07Add ptrace error handling in lynx_resumeJoel Brobecker2-0/+9
gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_resume): Call perror_with_name if lynx_ptrace sets errno.
2013-01-07Make x86-lynx GDBserver pass XML register map to GDB.Joel Brobecker2-0/+7
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-07Allow powerpc-*-lynxos* GDBserver to send register map via XML...Joel Brobecker2-0/+7
... 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-07LynxOS: Resume the same thread when receiving a thread create/exit event.Joel Brobecker2-4/+17
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-07Delete unused variable in lynx_resumeJoel Brobecker2-2/+5
gdb/gdbserver/ChangeLog: * lynx-low.c (lynx_resume): Delete variable ret.
2013-01-07Fix build failure on darwin due to darwin_read_dyld_info not being defined.Joel Brobecker2-1/+6
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*** empty log message ***gdbadmin1-1/+1
2013-01-06*** empty log message ***gdbadmin1-1/+1
2013-01-05*** empty log message ***gdbadmin1-1/+1
2013-01-04*** empty log message ***gdbadmin1-1/+1
2013-01-03 * main.c (relocate_gdb_directory): Avoid calling stat functionPierre Muller2-1/+6
if DIR is empty.
2013-01-03gdb/Yao Qi2-12/+11
* psymtab.c (fixup_psymbol_section): Update declaration. (fixup_psymbol_section): Remove code returning value.
2013-01-03gdb/Yao Qi3-15/+13
* symtab.h: Remove some out of date comments. (enum exception_event_kind): Move it ... * breakpoint.c: ... here.
2013-01-03*** empty log message ***gdbadmin1-1/+1
2013-01-02add bug number to previous commitMike Frysinger1-0/+1
2013-01-02gdb: fix building on Darwin 9Mike Frysinger2-1/+13
TASK_DYLD_INFO_COUNT etc. are not defined.
2013-01-02 * symfile.h (struct ecoff_debug_hack): Remove.Tom Tromey3-8/+5
* objfiles.c: Don't include mdebugread.h.
2013-01-02 * gdb.texinfo (GDB/MI Output Records): Update menu.Tom Tromey2-19/+134
(GDB/MI Breakpoint Information): New node. (GDB/MI Breakpoint Commands) <-break-info>: Link to new node. <-break-insert>: Likewise.
2013-01-02 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.Tom Tromey4-1/+67
* configure.ac: Check for Mach-O support in BFD. Update CONFIG_OBS. * configure: Rebuild.
2013-01-02 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.Tom Tromey4-48/+66
* configure.ac: Use GDB_AC_CHECK_BFD. * configure: Rebuild.
2013-01-02 * MAINTAINERS: Update my email.Maxim Kuvyrkov2-1/+5
2013-01-02*** empty log message ***gdbadmin1-1/+1
2013-01-01ppc-aix: .bss relocation problem when overlapping with the .data sectionJoel Brobecker1-0/+5
Add missing ChangeLog entry.
2013-01-01ppc-aix: .bss relocation problem when overlapping with the .data sectionJoel Brobecker1-0/+69
It has been observed that the GNU linker can sometimes improperly set the address of the .bss section in such a way that it overlaps with the end of the .data section. This causes problems in GDB when trying to print the value of variables located in that section, because the loader appears to be gracefully but silently adjusting the address of the .bss section to avoid the overlap, thus causing a mismatch between the address where GDB thinks it is, vs the address where it actually lives. This patch works around the problem while it a fix in the linker is being explored. gdb/ChangeLog: * rs6000-nat.c (bss_data_overlap): New function. (vmap_symtab): Use it to adjust the .bss section's offset.
2013-01-01Add make_cleanup_free_command_lines declaration "extern".Joel Brobecker2-1/+6
gdb/ChangeLog: * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
2013-01-01Update years in copyright notice for the GDB files.Joel Brobecker700-753/+700
Two modifications: 1. The addition of 2013 to the copyright year range for every file; 2. The use of a single year range, instead of potentially multiple year ranges, as approved by the FSF.
2013-01-01Update years in copyright notice for the GDB files.Joel Brobecker2202-2465/+2210
Two modifications: 1. The addition of 2013 to the copyright year range for every file; 2. The use of a single year range, instead of potentially multiple year ranges, as approved by the FSF.
2013-01-01Update copyright year in gdb/gdbserver/gdbreplay version output.Joel Brobecker5-3/+12
gdb/ChangeLog: * top.c (print_gdb_version): Update copyright year. gdb/gdbserver/ChangeLog: * gdbreplay.c (gdbreplay_version): Update copyright year. * server.c (gdbserver_version): Likewise.
2013-01-01Rotate gdb's ChangeLog file.Joel Brobecker3-13320/+13330
gdb: * ChangeLog-2012: Renamed from ChangeLog: * ChangeLog: New file. * config/djgpp/fnchange.lst: Add entry for ChangeLog-2012.
2013-01-01*** empty log message ***gdbadmin1-1/+1
2012-12-31gdb/doc/Yao Qi2-58/+90
* gdb.texinfo (Remote Non-Stop): Move paragraphs to ... (Packets): Move "vStopped" packet to ... (Notification Packets): ... here. Describe the components of notification. Add a table of supported notifications. Add an example on the process of he async notification.
2012-12-31*** empty log message ***gdbadmin1-1/+1
2012-12-30*** empty log message ***gdbadmin1-1/+1
2012-12-29*** empty log message ***gdbadmin1-1/+1
2012-12-28gdb/Jan Kratochvil2-1/+7
* symtab.c (find_line_symtab): Call symtab_to_fullname instead of accessing FULLNAME directly.
2012-12-28*** empty log message ***gdbadmin1-1/+1
2012-12-27*** empty log message ***gdbadmin1-1/+1
2012-12-26*** empty log message ***gdbadmin1-1/+1
2012-12-252012-12-25 Sergio Durigan Junior <sergiodj@redhat.com>Sergio Durigan Junior2-1/+5
* frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Fix typo.
2012-12-25gdb/Jan Kratochvil14-85/+124
* ada-lang.c (is_known_support_routine): New variable fullname. Use access call to verify the symtab_to_fullname result. * breakpoint.c (print_breakpoint_location, update_static_tracepoint): Remove NULL check of symtab_to_fullname result. * cli/cli-cmds.c (edit_command): Likewise. * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file) (mi_cmd_file_list_exec_source_files): Likewise. * python/py-symtab.c (stpy_fullname): Likewise. * source.c (symtab_to_fullname): Update function comment. Rename variable r to fd, move it to inner block. Always provide non-NULL result. (print_source_lines_base): Remove NULL check of symtab_to_fullname result. * stack.c (print_frame): Likewise. * symtab.c (iterate_over_some_symtabs, find_line_symtab, sources_info): Likewise. * tracepoint.c (print_one_static_tracepoint_marker): Likewise. gdb/doc/ * gdb.texinfo (GDB/MI Data Manipulation) (fullname): Make it always present. (GDB/MI File Commands) (-file-list-exec-source-files): Make the fullname output always present. gdb/testsuite/ * gdb.mi/mi-fullname-deleted.exp: New file.
2012-12-25*** empty log message ***gdbadmin1-1/+1
2012-12-24gdb/Jan Kratochvil9-10/+24
Code cleanup. * dwarf2read.c (fixup_go_packaging): Do not check symtab->FILENAME for NULL. * linespec.c (add_sal_to_sals): Likewise. * psympriv.h (allocate_psymtab): Add ATTRIBUTE_NONNULL. * stack.c (print_frame): Do not check symtab->FILENAME for NULL. * symfile.h (allocate_symtab): Add ATTRIBUTE_NONNULL. * symtab.h (struct symtab): Add comment it is never NULL for filename. * tracepoint.c (set_traceframe_context): Do not check symtab->FILENAME for NULL. * tui/tui-source.c (tui_set_source_content): Likewise.
2012-12-24gdb/Jan Kratochvil10-277/+218
* breakpoint.c (breakpoint_re_set): Remove the skip_re_set call. * infrun.c (handle_inferior_event): Rename the called function to function_name_is_marked_for_skip, pass it TMP_SAL. * skip.c (struct skiplist_entry): Update function_name comment. Remove fields pc, gdbarch and pending. (skip_function_pc): Rename this forward declaration to ... (skip_function): ... here. (skip_file_command): Remove variable pending and its use, remove initialization of E fields pending and gdbarch. Do not use SYMTAB filename, use the specified one. (skip_function_command): Remove variable func_pc, do not set it. Update the caller of skip_function. Replace decode_line_1 call by a lookup_symbol call. Remove variables orig_arg, decode_exception and sals. Update the caller of skip_function. (skip_info): Remove variable address_width and its use. Do not print address (PC). Renumber column 5 to 4. (skip_function_pc): Rename to ... (skip_function): ... here and remove its parameters pc, arch and pending. Update the function comment and no longer use those parameters. (function_pc_is_marked_for_skip): Rename to ... (function_name_is_marked_for_skip): ... here, update function comment just to a skip.h reference, replace pc parameter by function_name and function_sal. No longer use E field pending and pc. Remove variables searched_for_sal, sal and filename. Call compare_filenames_for_search instead of just strcmp. (skip_re_set): Remove the function. * skip.h (struct symtab_and_line): New declaration. (function_pc_is_marked_for_skip): Rename to ... (function_name_is_marked_for_skip): ... here, replace pc parameter by function_name and function_sal, update the function comment. gdb/testsuite/ * gdb.base/skip-solib.exp (info skip with pending file): Update the expected output. (info skip with pending file): Remove. (ignoring function in solib, info skip for function multiply): Update the expected output. * gdb.base/skip.ex (skip (main), skip function baz, info skip) (info skip (delete 1), info skip after disabling all) (info skip after enabling all, info skip after disabling 4 2-3) (info skip after enabling 2-3, info skip 2-3) (info skip after deleting 2 3): Update the expected output. * gdb.linespec/base/two/thefile.cc (n): New variable v, split the statement to its initialization and return. * gdb.linespec/skip-two.exp: New file.
2012-12-24*** empty log message ***gdbadmin1-1/+1
2012-12-23*** empty log message ***gdbadmin1-1/+1
2012-12-22 * ui-file.h (tee_file_new): Add extern modifier in header declaration.Pierre Muller2-4/+8
2012-12-22 * gdbint.texinfo (Function prototypes): Require use of "extern"Pierre Muller2-1/+7
modifier for function prototypes in headers.
2012-12-22*** empty log message ***gdbadmin1-1/+1
2012-12-21*** empty log message ***gdbadmin1-1/+1