aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2011-08-24Move common linux procfs code to common/Luis Machado24-64/+159
2011-08-24Fix a change log format issue.Hui Zhu1-2/+4
2011-08-242011-08-24 Hui Zhu <teawater@gmail.com>Hui Zhu2-1/+21
* tracepoint.c (cond_string_is_same): New function. (find_matching_tracepoint): Add condition check by cond_string_is_same.
2011-08-24*** empty log message ***gdbadmin1-1/+1
2011-08-23gdb/Jan Kratochvil2-0/+6
Fix build error in Darwin port. * darwin-nat-info.c (darwin_debug_regions_recurse): New variable uiout.
2011-08-23*** empty log message ***gdbadmin1-1/+1
2011-08-22*** empty log message ***gdbadmin1-1/+1
2011-08-21gdb/Jan Kratochvil3-20/+33
Code cleanup. * breakpoint.c (bpstat_clear_actions): Remove clearing of commands_left. (command_line_is_silent): New function. (bpstat_do_actions_1): No longer use commands_left, use command_line_is_silent for commands. (bpstat_alloc): Remove clearing of commands_left. (bpstat_stop_status): Remove initialization of commands_left, use command_line_is_silent. * breakpoint.h (struct bpstats): Remove commands_left.
2011-08-21*** empty log message ***gdbadmin1-1/+1
2011-08-20*** empty log message ***gdbadmin1-1/+1
2011-08-19*** empty log message ***gdbadmin1-1/+1
2011-08-18 * gdb.cp/meth-typedefs.cc: New file.Keith Seitz3-0/+317
* gdb.cp/meth-typedefs.exp: New file.
2011-08-18 PR c++/12266Keith Seitz6-62/+665
* cp-name-parser.y (struct demangle_info): Remove unused member PREV. (d_grab): Likewise. (allocate_info): Change return type to struct demangle_info *. Always allocate a new demangle_info. Remove unused PREV pointer. (cp_new_demangle_parse_info): New function. (cp_demangled_name_parse_free): New function. (do_demangled_name_parse_free_cleanup): New function. (make_cleanup_cp_demangled_name_parse_free): New function. (cp_demangled_name_to_comp): Change return type to struct demangle_parse_info *. Allocate a new storage for each call. (main): Update usage for cp_demangled_name_to_comp API change. * cp-support.h (struct demangle_parse_info): New structure. (cp_demangled_name_to_comp): Update API change for return type. (cp_new_demangle_parse_info): Declare. (make_cleanup_cp_demangled_name_parse_free): New declaration. (cp_demangled_name_parse_free): Declare. * cp-support.c (cp_canonicalize_string): Update API change for cp_demangled_name_to_comp. (mangled_name_to_comp): Likewise. Return struct demangle_parse_info, too. (cp_class_name_from_physname): Update mangled_name_to_comp API change. (method_name_from_physname): Likewise. (cp_func_name): Update API change for cp_demangled_name_to_comp. (cp_remove_params): Likewise. * python/py-type.c (typy_legacy_template_argument): Likewise. * cp-support.h (cp_canonicalize_string_no_typedefs): Declare. (cp_merge_demangle_parse_infos): Declare. * cp-support.c (ignore_typedefs): New file global. (copy_string_to_obstack): New function. (inspect_type): New function. (replace_typedefs): New function. (replace_typedefs_qualified_name): New function. (cp_canonicalize_string_no_typedefs): New function. * cp-name-parser.y (cp_merge_demangle_parse_infos): New function. (cp_new_demangle__parse_info): Allocate and initialize the obstack. * linespec.c (find_methods): Use cp_canonicalize_string_no_typedefs instead of cp_canonicalize_string. (find_method): Likewise. (decode_compound): Before looking up the name, call cp_canonicalize_string_no_typedefs. (decode_variable): Likewise.
2011-08-18*** empty log message ***gdbadmin1-1/+1
2011-08-172011-08-17 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon9-2/+361
Tom Tromey <tromey@redhat.com> Matt Rice <ratmice@gmail.com> * python/lib/gdb/prompt.py: New file. * python/lib/gdb/command/prompt.py: New file. * NEWS: Document set extended-prompt and gdb.prompt library 2011-08-17 Phil Muldoon <pmuldoon@redhat.com> * gdb.texinfo (Prompt): Add set/show extended-prompt documentation (Basic Python): Add prompt_hook anchor. (Python modules): Reword module text to reflect multiple modules. (gdb.prompt): Document gdb.prompt module. 2011-08-17 Phil Muldoon <pmuldoon@redhat.com> * gdb.python/python.exp: Add extended-prompt tests.
2011-08-17*** empty log message ***gdbadmin1-1/+1
2011-08-16gdb/Yao Qi3-3/+8
* tic6x-linux-tdep.c: Move const arrays definition from here... * tic6x-tdep.c: to here ...
2011-08-16*** empty log message ***gdbadmin1-1/+1
2011-08-15gdb/testsuite/Jan Kratochvil2-2/+8
* gdb.arch/i386-dr3-watch.exp (watchpoint on gap1 does not fit debug registers) (delete all watchpoints): Fix racy expect strings.
2011-08-15*** empty log message ***gdbadmin1-1/+1
2011-08-14gdb/Yao Qi2-0/+8
* NEWS: New port to Texas Instruments TMS320C6x.
2011-08-14gdb/gdbserver/Yao Qi3-2/+7
* target.h (struct target_ops): Fix indent. * win32-low.c (win32_target_ops): Fix comment.
2011-08-14gdb/testsuite/Yao Qi6-2/+42
* gdb.base/maint.exp: set data_section to ".neardata". * gdb.base/savedregs.c (thrower): Trigger SIGILL on NO-MMU machine. * gdb.base/savedregs.exp: Handle SIGILL. * gdb.mi/mi-syn-frame.c (bar): Trigger SIGILL on NO-MMU machine. * gdb.xml/tdesc-regs.exp: Set core-regs for tic6x-*-*.
2011-08-14gdb/gdbserver/Yao Qi5-0/+376
* Makefile.in (clean): Remove tic6x-*.c files. (linux-tic6x-low.o, tic6x-c62x-linux.o, tic6x-c64x-linux.o): New rules. (tic6x-c64xp-linux.o, tic6x-c62x-linux.c, tic6x-c64x-linux.c): Likewise. (tic6x-c64xp-linux.c): Likewise. * configure.srv: Add support for tic6x-*-uclinux. * linux-tic6x-low.c: New. * linux-low.c (PT_TEXT_ADDR, PT_DATA_ADDR, PT_TEXT_END_ADDR): Define.
2011-08-14 gdb/Yao Qi6-0/+2947
* configure.tgt: Handle tic6x-*-*linux and tic6x-*-*. * solib-dsbt.c: New file. Support DSBT shared object. * tic6x-linux-tdep.c: New file. * tic6x-tdep.c: New file. * tic6x-tdep.h: New file.
2011-08-14 gdb/Yao Qi10-1/+143
* remote.c (PACKET_qXfer_fdpic): New enum value. (remote_protocol_features): Add qXfer:fdpic:read packet. (remote_xfer_partial): Support TARGET_OBJECT_FDPIC. (_initialize_remote): Add set/show remote read-fdpic-loadmap command. * target.h (enum target_object): Add TARGET_OBJECT_FDPIC. gdb/gdbserver: * target.h (struct target_ops): Add read_loadmap. * linux-low.c (struct target_loadseg): New type. (struct target_loadmap): New type. (linux_read_loadmap): New function. (linux_target_ops): Add linux_read_loadmap. * server.c (handle_query): Support qXfer:fdpic:read packet. * win32-low.c (win32_target_ops): Initialize field `read_loadmap' to NULL. gdb/doc/ * gdb.texinfo : Document qXfer:fdpic:read packet.
2011-08-14Add files missed in previous commit.Yao Qi21-0/+1018
2011-08-14 gdb/doc/Yao Qi5-1/+74
* gdb.texinfo (Standard Target Features): Document C6x features. (TIC6x Features): New node. gdb/ * features/Makefile (WHICH): Add tic6x-c64xp tic6x-c64x tic6x-c62x tic6x-c64xp-linux tic6x-c64x-linux and tic6x-c62x-linux. * features/tic6x-c6xp.xml, features/tic6x-core.xml: New. * features/tic6x-gp.xml, features/tic6x-c62x.xml: New. * features/tic6x-c64x.xml, features/tic6x-c64xp.xml: New. * features/tic6x-c62x-linux.xml, features/tic6x-c64x-linux.xml: New. * features/tic6x-c64xp-linux.xml: New. * features/tic6x-c64xp.c, features/tic6x-c64x.c: Generated. * features/tic6x-c62x.c, features/tic6x-c64xp-linux.c: Generated. * features/tic6x-c64x-linux.c, features/tic6x-c62x-linux.c: Generated. * regformats/tic6x-c62x.dat, regformats/tic6x-c64x.dat: Generated. * regformats/tic6x-c64xp.dat, regformats/tic6x-c62x-linux.dat: Generated. * regformats/tic6x-c64x-linux.dat, regformats/tic6x-c64xp-linux.dat: Generated. * config/djgpp/fnchange.lst: Add features/tic6x-*.xml and features/tic6x-*.c files. Add regformats/tic6x-*.dat files.
2011-08-14*** empty log message ***gdbadmin1-1/+1
2011-08-13*** empty log message ***gdbadmin1-1/+1
2011-08-12 * NEWS: Mention new "type" attribute of python gdb.Symbol objects.Doug Evans7-0/+45
* python/py-symbol.c (sympy_get_type): New function. (symbol_object_getset): Add "type". doc/ * gdb.texinfo (Symbols In Python): Document symbol.type. testsuite/ * gdb.python/py-symbol.exp: Add test for symbol.type.
2011-08-122011-08-12 Pedro Alves <pedro@codesourcery.com>Pedro Alves2-25/+45
PR tui/13073 gdb/ * tui/tui-regs.c (tui_show_register_group): Skip registers with an empty name. (tui_show_register_group): Don't store a byte buffer in the data element's value. (tui_register_format): Skip registers with an empty name. (tui_get_register): Store a struct value in the data element's value field instead of a byte buffer holding the raw register contents. Account for optimized-out and unavailable registers when comparing register contents.
2011-08-12 * gdb.threads/pthreads.exp: Enable on non-native configurations.Ulrich Weigand5-20/+7
* gdb.mi/mi-pthreads.exp: Likewise. * gdb.mi/mi2-pthreads.exp: Likewise. * gdb.mi/gdb669.exp.exp: Likewise.
2011-08-12*** empty log message ***gdbadmin1-1/+1
2011-08-11*** empty log message ***gdbadmin1-1/+1
2011-08-10*** empty log message ***gdbadmin1-1/+1
2011-08-092011-08-09 Pedro Alves <pedro@codesourcery.com>Pedro Alves8-8/+19
gdb/testsuite/ * lib/mi-support.exp (detect_async): Rename to... (mi_detect_async): ... this. * gdb.mi/mi-nonstop-exit.exp: Adjust. * gdb.mi/mi-nonstop.exp: Adjust. * gdb.mi/mi-ns-stale-regcache.exp: Adjust. * gdb.mi/mi-nsintrall.exp: Adjust. * gdb.mi/mi-nsmoribund.exp: Adjust. * gdb.mi/mi-nsthrexec.exp: Adjust.
2011-08-092011-08-09 Pedro Alves <pedro@codesourcery.com>Pedro Alves5-22/+69
gdb/ * printcmd.c (current_display_number): Update comment. (disable_current_display_cleanup): Delete. (do_one_display): Use make_cleanup_restore_integer. Gracefully catch errors thrown while evaluating and printing the display. gdb/testsuite/ * gdb.base/display.c (do_loops): New `p_i' local. * gdb.base/display.exp: Test displaying a variable that is temporarily at a bad address.
2011-08-09 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Fix typo.Tom Tromey2-1/+5
2011-08-09Fix "ditto" dependency order.Pedro Alves1-2/+2
2011-08-092011-08-09 Pedro Alves <pedro@codesourcery.com>Pedro Alves10-692/+150
gdb/ * elfread.c (elf_symtab_read): Ditto. * maint.c (maintenance_command): Ditto. * somread.c (som_symtab_read): Ditto. * solib.c (solib_find, solib_map_sections, update_solib_list) (solib_add, info_sharedlibrary_command, solib_name_from_address) (solib_create_inferior_hook, in_solib_dynsym_resolve_code) (sharedlibrary_command, no_shared_libraries): Rework comments. * solib-irix.c (locate_base, disable_break, enable_break) (irix_solib_create_inferior_hook, irix_solib_create_inferior_hook) (irix_current_sos, irix_open_symbol_file_object) (irix_special_symbol_handling): Ditto. * solib-sunos.c (locate_base, first_link_map_member) (sunos_current_sos, disable_break, enable_break) (sunos_special_symbol_handling, sunos_solib_create_inferior_hook): Ditto. * solib-svr4.c (bfd_lookup_symbol, elf_locate_base, locate_base) (open_symbol_file_object, svr4_current_sos, enable_break) (svr4_special_symbol_handling, svr4_solib_create_inferior_hook): Ditto. * solib-frv.c (bfd_lookup_symbol, open_symbol_file_object) (frv_current_sos, enable_break, frv_special_symbol_handling) (frv_solib_create_inferior_hook): Ditto. * solist.h (struct target_so_ops): Extend the comments of the special_symbol_handling, current_sos and open_symbol_file_object methods.
2011-08-092011-08-09 Phil Muldoon <pmuldoon@redhat.com>Phil Muldoon7-4/+55
* python/lib/gdb/__init__.py: Auto-load files in command and function directories. * python/python.c (finish_python_initialization): Use os.path.join. * python/lib/gdb/command/pretty_printers.py: Self register command. * NEWS: Document auto-loading. 2011-08-09 Phil Muldoon <pmuldoon@redhat.com> * gdb.texinfo (Python): Document command and function auto-loading.
2011-08-09*** empty log message ***gdbadmin1-1/+1
2011-08-08gdb/Jan Kratochvil5-2/+209
* dwarf2loc.c (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_STACK> (dwarf2_evaluate_loc_desc_full) <DWARF_VALUE_LITERAL>: New variable objfile_gdbarch. Fix BFD_ENDIAN_BIG case. gdb/testsuite/ * gdb.dwarf2/dw2-op-stack-value.S: New file. * gdb.dwarf2/dw2-op-stack-value.exp: New file.
2011-08-08gdb/testsuite/Jan Kratochvil2-2/+5
* gdb.dwarf2/dw2-case-insensitive.exp (regexp case-sensitive off) (p fuNC_symtab): Permit also ppc64 leading dot.
2011-08-08gdb/testsuite/Jan Kratochvil2-1/+5
* gdb.dwarf2/dw2-simple-locdesc.S: Replace .value by .2byte.
2011-08-08 * breakpoint.c (clean_up_filters): Remove.Tom Tromey2-9/+6
(catch_syscall_split_args): Use VEC_cleanup.
2011-08-08*** empty log message ***gdbadmin1-1/+1
2011-08-07*** empty log message ***gdbadmin1-1/+1
2011-08-06gdb/Jan Kratochvil2-2/+10
* cp-name-parser.y (xfree): Wrap the name free by CONCAT2. (main): Uncomment "Demangling error\n".