aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2008-06-16*** empty log message ***gdbadmin1-1/+1
2008-06-15*** empty log message ***gdbadmin1-1/+1
2008-06-14*** empty log message ***gdbadmin1-1/+1
2008-06-13 Don't suppress *running when doing finish.Vladimir Prus6-14/+34
* infcall.c (call_function_by_hand): Set both suppress_resume_observer and suppress_stop_observer. * infcmd.c (suppress_run_stop_observers): Split into... (suppress_resume_observer, suppress_stop_observer): ...those. (finish_command_continuation): Clear suppress_stop_observer. (finish_command): Set suppress_stop_observer. * inferior.h (suppress_run_stop_observers): Split into... (suppress_resume_observer, suppress_stop_observer): ...those. * infrun.c (normal_stop): Check for suppress_stop_observer. * thread.c (set_running): Check for suppress_resume_observer.
2008-06-13 Robustify mi-simplerun.Vladimir Prus5-10/+13
* gdb.mi/basics.c (main): Add a call to sleep. * gdb.mi/mi-cli.exp: Adjust for change in line numbers. * gdb.mi/mi2-cli.exp: Likewise. * gdb.mi/mi-break.exp: Likewise.
2008-06-13*** empty log message ***gdbadmin1-1/+1
2008-06-12*** empty log message ***gdbadmin1-1/+1
2008-06-11 * gdbarch.sh (gdbarch_skip_main_prologue): New.Pierre Muller8-0/+102
* gdbarch.h, gdbarch.c: Regenerate. * i386-tdep.h (i386_skip_main_prologue): Declare. * i386-tdep.c (i386_skip_main_prologue): New. * i386-cygwin-tdep.c (i386_cygwin_init_abi): Register i386_skip_main_prologue as gdbarch_skip_main_prologue gdbarch callback. * symtab.c (find_function_start_sal): When pc points at the "main" function, call gdbarch_skip_main_prologue.
2008-06-11 * value.c (value_primitive_field): Fetch lazy register values.Daniel Jacobowitz2-2/+16
2008-06-11Fix date in changelog entryVladimir Prus1-1/+1
2008-06-11 * gdb.mi/mi-break.exp (test_ignore_count): Use mi_expect_stop.Vladimir Prus2-11/+6
2008-06-11 * NEWS: Mention support removal of undocumented S AA p PID stopPedro Alves3-6/+13
reply packet. * remote.c (remote_wait): Remove undocumented S AA p PID support.
2008-06-11*** empty log message ***gdbadmin1-1/+1
2008-06-102008-06-10 Stan Shebs <stan@codesourcery.com>Stan Shebs2-3/+7
* MAINTAINERS: Update my affiliation and address.
2008-06-10(print_gdb_version): Don't print final newline.Andreas Schwab2-1/+5
2008-06-10 Implement *running.Vladimir Prus20-34/+176
* Makefile.in: Update dependencies. * gdbthread.h (struct thread_info): New field running_. (set_running, is_running): New. * thread.c (set_running, is_running): New. * inferior.h (suppress_normal_stop_observer): Rename to... (suppress_run_stop_observers): ..this. * infcmd.c (suppress_normal_stop_observer): Rename to... (suppress_run_stop_observers): ..this. (finish_command_continuation, finish_command): Adjust. * infcall.c (call_function_by_hand): Adjust. * infrun.c (normal_stop): Call set_running. * target.c (target_resume): New. Call set_running. * target.h (target_resume): Convert from macro to a function. * mi/mi-interp.c (mi_on_resume): New. (mi_interpreter_init): Register mi_on_resume.
2008-06-10 Use observers to report stop events in MI.Vladimir Prus9-89/+114
* mi/mi-interp.c (mi_on_normal_stop): New. (mi_interpreter_init): Register mi_on_normal_stop. (mi_interpreter_exec_continuation): Remove. (mi_cmd_interpreter_exec): Don't register the above. * mi/mi-main.c (captured_mi_execute_command): Don't care about sync_execution. (mi_execute_async_cli_command): Don't install continuation. Don't print *stopped. (mi_exec_async_cli_cmd_continuation): Remove.
2008-06-10 Suppress normal stop observer when it's problematic.Vladimir Prus5-2/+34
* inferior.h (suppress_normal_stop_observer): New. * infcall.c (call_function_by_hand): Disable stop events when doing function calls. * infmcd.c (suppress_normal_stop_observer): New. (finish_command_continuation): Call normal_stop observer explicitly. (finish_command): Disable stop events inside proceed. * infrun.c (normal_stop): Don't call normal stop observer if suppressed of if multi-step is in progress.
2008-06-10 Remove stale code.Vladimir Prus2-6/+9
* infrun.c (finish_command): Don't pass cleanup to continuation. (finish_command_continuation): Don't grab cleanup from the passed data, as we don't use, and cannot, use it anyway.
2008-06-10 Introduce common cleanup for restoring integers.Vladimir Prus4-11/+69
* defs.h (make_cleanup_restore_integer): New declaration. (struct cleanup): New field free_arg. (make_my_cleanup_2): New. * utils.c (restore_integer_closure, restore_integer) (make_cleanup_restore_integer): New. (make_my_cleanup): Initialize the free_arg field and renamed to make_my_cleanup_2. (do_my_cleanups): Call free_arg. (discard_cleanups): Call free_arg. * breakpoint.c (restore_always_inserted_mode): Remove. (update_breakpoints_after_exec): Use make_cleanup_restore_integer.
2008-06-10*** empty log message ***gdbadmin1-1/+1
2008-06-09 * remote.c (remote_wait): Include beginning of malformed packetDoug Evans2-2/+9
in error output.
2008-06-09gdbTom Tromey5-7/+55
* completer.c (complete_line): Don't special-case expression_completer. (expression_completer): Only pass last word to location_completer. * c-exp.y (yylex): Check 'token', not 'operator'. gdb/testsuite * gdb.base/completion.exp: New tests for field name completion with spaces, and field name completion with '->'.
2008-06-09 * configure.ac (build_warnings): Add -Wno-format for mingw.Daniel Jacobowitz3-0/+17
* configure: Regenerated.
2008-06-09*** empty log message ***gdbadmin1-1/+1
2008-06-08*** empty log message ***gdbadmin1-1/+1
2008-06-07 * NEWS: Make indentation consistent. Move exec tracing entry outDaniel Jacobowitz2-8/+13
of remote packet list.
2008-06-07*** empty log message ***gdbadmin1-1/+1
2008-06-06 * Makefile.in (gdbreplay.o): New rule.Daniel Jacobowitz2-0/+5
2008-06-06gdbTom Tromey18-30/+451
* value.h (evaluate_subexpression_type, extract_field_op): Declare. * printcmd.c (_initialize_printcmd): Use expression_completer for 'p', 'inspect', 'call'. * parser-defs.h (parse_field_expression): Declare. * parse.c: Include exceptions.h. (in_parse_field, expout_last_struct): New globals. (mark_struct_expression): New function. (prefixify_expression): Return int. (prefixify_subexp): Return int. Use expout_last_struct. (parse_exp_1): Update. (parse_exp_in_context): Add 'out_subexp' argument. Handle in_parse_field. (parse_field_expression): New function. * expression.h (parse_field_expression): Declare. (in_parse_field): Likewise. * eval.c (evaluate_subexpression_type): New function. (extract_field_op): Likewise. * completer.h (expression_completer): Declare. * completer.c (expression_completer): New function. (count_struct_fields, add_struct_fields): New functions. * c-exp.y (yyparse): Redefine. (COMPLETE): New token. (exp): New productions. (saw_name_at_eof, last_was_structop): New globals. (yylex): Return COMPLETE when needed. Recognize in_parse_field. (c_parse): New function. * breakpoint.c (_initialize_breakpoint): Use expression_completer for watch, awatch, and rwatch. * Makefile.in (parse.o): Depend on exceptions_h. gdb/testsuite * gdb.base/break1.c (struct some_struct): New struct. (values): New global. * gdb.base/completion.exp: Add field name completion test. gdb/doc * gdb.texinfo (Completion): Add field name example.
2008-06-06 * gdbreplay.c (gdbreplay_version): Say gdbreplay in versionJoseph Myers2-2/+7
message, not gdbserver.
2008-06-062008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov3-0/+22
* gdb.cp/call-c.exp: Test for incorrect handling of reference to pointer. * gdb.cp/call-c.cc: Likewise.
2008-06-062008-06-06 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov2-1/+8
PR gdb/1147 * gdb/valopts.c (find_overload_match): Handle references to pointers.
2008-06-062008-06-05 Marc Khouzam <marc.khouzam@ericsson.com>Marc Khouzam2-3/+12
* gdb.texinfo (GDB/MI Program Context): Added example to -exec-arguments
2008-06-06ada_value_assign: Correct big-endian case to take into account the bitsizePaul N. Hilfinger2-3/+10
of the 'from' operand.
2008-06-06 * annotate.h (annotate_thread_changed): Declare.Pedro Alves2-0/+5
2008-06-06*** empty log message ***Nick Roberts2-0/+10
2008-06-06(thread_switch): Test for thread-changed annotation.Nick Roberts1-0/+11
2008-06-06(Multi-threaded Apps): Add entry for thread-changed annotation.Nick Roberts1-6/+13
2008-06-06* annotate.c (annotate_thread_changed): New function.Nick Roberts3-0/+11
* thread.c (thread_command) : Use it. * infrun.c (normal_stop): Use it.
2008-06-06*** empty log message ***Nick Roberts1-0/+6
2008-06-06*** empty log message ***gdbadmin1-1/+1
2008-06-052008-06-05 Vladimir Prus <vladimir@codesourcery.com>Joseph Myers20-29/+471
Nathan Sidwell <nathan@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * acinclude.m4: Include ../config/acx.m4. * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL. * configure, config.in: Regenerate. * main.c (print_gdb_help): Use REPORT_BUGS_TO for bug-reporting address. * top.c (print_gdb_version): Use PKGVERSION and REPORT_BUGS_TO. doc: 2008-06-05 Vladimir Prus <vladimir@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * configure.ac: Include ../../config/acx.m4. Use ACX_PKGVERSION and ACX_BUGURL. * configure: Regenerate. * Makefile.in (PKGVERSION, BUGURL_TEXI): Define. (GDBvn.texi): Define VERSION_PACKAGE, BUGURL and BUGURL_DEFAULT. * gdb.texinfo: Use VERSION_PACKAGE and BUGURL. Remove mailing-list-specific text about bug reporting unless BUGURL_DEFAULT. gdbserver: 2008-06-05 Vladimir Prus <vladimir@codesourcery.com> Nathan Sidwell <nathan@codesourcery.com> Joseph Myers <joseph@codesourcery.com> * acinclude.m4: Include ../../config/acx.m4. * configure.ac: Use ACX_PKGVERSION and ACX_BUGURL. * configure, config.in: Regenerate. * Makefile.in (gdbreplay$(EXEEXT)): Add version.o. * server.c (gdbserver_version): Print PKGVERSION. (gdbsrever_usage): Add stream parameter. Print REPORT_BUGS_TO. (main): Adjust gdbserver_usage calls. * gdbreplay.c (version, host_name): Add declarations. (gdbreplay_version, gdbreplay_usage): New. (main): Accept --version and --help options.
2008-06-05 Replace 'target async' by 'maintenance set remote-async' andPedro Alves4-437/+167
'target remote' combination. * remote.c (remote_async_wait): Merge into remote_wait, and remove. (remote_async_permitted, remote_async_permitted_set): New variables. (set_maintenance_remote_async_permitted) (show_maintenance_remote_async_permitted): New functions. (remote_async_ops, extended_async_remote_ops): Delete. (remote_async_open, extended_remote_async_open): Delete. (remote_open_1): Drop async_p parameter. Update callers. Replace async_p with remote_async_permitted checks. (extended_async_remote_attach): Delete. (remote_resume, remote_async_resume): Merge and leave remote_resume. (remote_async_terminal_inferior): Rename to... (remote_terminal_inferior): ... this, and add remote_async_termitted check. (remote_async_terminal_ours): Rename to... (remote_terminal_ours): ... this, and add remote_async_termitted check. (remote_wait, remote_async_wait): Merge and leave remote_wait only. (remote_kill, remote_async_kill): Merge and leave remote_kill only. (remote_async_mourn, extended_async_remote_mourn): Delete. (extended_remote_create_inferior_1): Drop async_p parameter. Update callers. Always use extended_remote_ops. (extended_remote_async_create_inferior): Delete. (remote_return_zero): Delete. (init_remote_ops): Register remote_can_async_p, remote_async, remote_async_mask, remote_terminal_inferior and remote_terminal_ours. (remote_can_async_p, remote_is_async_p): Check for remote_async_permitted. (init_remote_async_ops, init_extended_async_remote_ops): Remove. (set_remote_cmd): Don't add async and extended-async targets. (_initialize_remote): Add set/show remote-async maintenance commands. gdb/doc/ * gdb.texinfo (-target-select): Remove reference to target async. (Maintenance Commands): Document "maint set/show remote-async".
2008-06-05 * remote.c (kill_kludge): Delete.Pedro Alves2-24/+6
(remote_wait, remote_async_wait): Don't set it. (remote_kill, remote_async_kill): Don't do anything with it.
2008-06-05gdb/Pedro Alves6-1/+169
* linux-thread-db.c (thread_db_wait): Don't trim event ptid. testsuite/ * gdb.threads/execl.c, gdb.threads/execl1.c, gdb.threads/execl.exp: New tests.
2008-06-05 * bcache.c (bcache_data): Call deprecated_bcache_added function.Aleksandar Ristovski4-45/+122
(deprecated_bcache_added): New function name. Body of function bcache_data is used here with the addition of 'added' argument. * bcache.h (deprecated_bcache_added): New function. * symfile.c (add_psymbol_to_bcache): New helper function, takes part of work from add_psymbol_to_list - initialises partial symbol and stashes it in objfile's cache. (append_psymbol_to_list): New helper function, takes other part of work from add_psymbol_to_list - adds partial symbol to the given list. (add_psymbol_to_list): Call helper functions instead of doing work here. If adding to global list, do not duplicate partial symbols in the partial symtab.
2008-06-05 * gdb.cp/exception.exp: Activate test, make it work with pendingAleksandar Ristovski2-52/+63
catchpoints.
2008-06-05 * dw2-ref-missing-frame.S, dw2-ref-missing-frame.exp: New files.Jan Kratochvil3-0/+367
2008-06-05 * breakpoint.c (print_exception_catchpoint): Put 'exception' back toAleksandar Ristovski2-2/+7
'exception caught|thrown' message.