aboutsummaryrefslogtreecommitdiff
path: root/gdb
AgeCommit message (Collapse)AuthorFilesLines
2012-10-23Change target-wide-charset to UTF-16 on ppc-aix.Joel Brobecker2-0/+15
On ppc-aix, type wchar_t is 2 bytes long, so override the default target-wide-charset (UTF-32) with UTF-16. This allows us to print wide characters correctly. gdb/ChangeLog: * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function. (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
2012-10-23Set default target-wide-charset setting to "UTF-16" for x86_64-windows.Joel Brobecker2-0/+17
Type wchar_t is only 2 bytes long on x86_64-windows. gdb/ChangeLog: * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New function. (amd64_windows_init_abi): Set auto_wide_charset gdbarch method to amd64_windows_auto_wide_charset.
2012-10-23gdb/Yao Qi4-13/+17
* event-top.c (mark_async_signal_handler_wrapper): Remove. * event-top.h: Remove its declaration. (async_request_quit): Call mark_async_signal_handler instead of mark_async_signal_handler_wrapper. (async_do_nothing, async_disconnect): Likewise. (async_stop_sig): Likewise. * remote.c (handle_remote_sigint): Likewise. (handle_remote_sigint_twice): Likewise.
2012-10-23gdb/Yao Qi2-5/+11
* event-top.c (sigint_token, sighup_token): Replace 'void *' with 'static struct async_signal_handler *'. (sighup_token, sigquit_token, sigstp_token): Likewise.
2012-10-23*** empty log message ***gdbadmin1-1/+1
2012-10-22Ali Anwar <ali_anwar@codesourcery.com>Ali Anwar3-16/+22
* gdbarch.sh (function_list): Use 'pstring' when printing a variable which could return NULL. * gdbarch.c: Regenerate.
2012-10-22*** empty log message ***gdbadmin1-1/+1
2012-10-21*** empty log message ***gdbadmin1-1/+1
2012-10-20*** empty log message ***gdbadmin1-1/+1
2012-10-19ppc-aix osabi sniffer: Turn test of bfd flavour into assertionJoel Brobecker2-4/+16
Due to the way this function is registers, we know that given bfd's flavour should always be bfd_target_xcoff_flavour, thus making the former test always true, which means that this function should always return GDB_OSABI_AIX, and never return GDB_OSABI_UNKNOWN. This patch also fixes a typo detected by Tom Tromey that caused the test itself to be completely ineffective. gdb/ChangeLog (by Tom Tromey and Joel Brobecker): * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace inneffective if condition by gdb assertion. Add function description comment.
2012-10-19Document exp_descriptor.op_name should never return NULL.Joel Brobecker2-1/+9
This documents a constaint that struct exp_descriptor's "op_name" method implementation should obey. This might not have been part of the initial design, but is currently true of all instantiations, and already assumed by the current users. gdb/ChangeLog: * parser-defs.h (struct exp_descriptor): Document constraint on return value for "op_name" callbacks.
2012-10-19Correct my ChangeLog entryxuepeng guo1-3/+3
2012-10-19 * gdb.base/ctxobj.exp: Skip if skip_shlib_tests returns true.xuepeng guo4-0/+18
* gdb.base/print-file-var.exp: Likewise. * gdb.base/type-opaque.exp: Likewise.
2012-10-19*** empty log message ***gdbadmin1-1/+1
2012-10-18 * tracepoint.c (print_one_static_tracepoint_marker): Constify.Tom Tromey8-8/+20
* symtab.c (iterate_over_some_symtabs): Constify. * source.h (symtab_to_fullname): Return 'const char *'. * source.c (symtab_to_fullname): Return 'const char *'. * python/py-symtab.c (stpy_fullname): Constify. * cli/cli-cmds.c (edit_command): Constify. * breakpoint.c (print_breakpoint_location) (update_static_tracepoint): Constify.
2012-10-18 * breakpoint.c (compare_breakpoints): Fix comparison.Tom Tromey2-1/+5
2012-10-18 * valprint.c (generic_emit_char, generic_printstr): Pass size ofTom Tromey2-2/+7
gdb_wchar_t to convert_between_encodings.
2012-10-18*** empty log message ***gdbadmin1-1/+1
2012-10-17gdb:Yao Qi13-6/+186
* breakpoint.c (invalidate_bp_value_on_memory_change): Add one more parameter 'inferior'. * corefile.c (write_memory_with_notification): Caller update. * mi/mi-cmd-var.c: Include "mi-main.h". (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory to 1 and restore it later. * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory" and "data-write-memory-bytes. * mi/mi-interp.c: Include objfiles.h. (mi_interpreter_init): Call observer_attach_memory_changed. (mi_memory_changed): New. * mi/mi-main.h (struct mi_suppress_notification) <memory>: New field. * NEWS: Mention new MI notification "memory-changed". gdb/doc: * observer.texi (GDB Observers): Update observer 'memory_changed'. * gdb.texinfo (GDB/MI Async Records): Document for "memory-changed" notification. gdb/testsuite: * gdb.mi/mi-memory-changed.exp: New.
2012-10-17*** empty log message ***gdbadmin1-1/+1
2012-10-16gdb/testsuite/Yao Qi3-2/+15
* gdb.reverse/solib-precsave.exp: Skip if skip_shlib_test returns true. Call gdb_load_shlibs. * gdb.reverse/solib-reverse.exp: Likewise.
2012-10-16gdb/Jan Kratochvil2-3/+4
* dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
2012-10-16*** empty log message ***gdbadmin1-1/+1
2012-10-15 * lib/cp-support.exp (cp_test_ptype_class): Add supportKeith Seitz3-0/+51
for class typedefs. * gdb.cp/derivation.exp: Add tests for g_instance.
2012-10-15 New option -nh: inhibit loading of ~/.gdbinit.Doug Evans6-9/+62
* NEWS: Mention -nh. * main.c (captured_main): Recognize and process -nh. (print_gdb_help): Mention -nh. * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior. doc/ * gdb.texinfo (Mode Options): Document -nh. Elaborate on docs for -nx.
2012-10-15Remove sp_regnum_from_eax and pc_regnum_from_eaxH.J. Lu4-22/+11
PR backtrace/14646 PR gdb/14647 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and pc_regnum_from_eax. * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax nor pc_regnum_from_eax. * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax nor pc_regnum_from_eax.
2012-10-15gdb/Jan Kratochvil6-4/+791
Fix entry values resolving in inlined frames. * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr, gdbarch and caller_frame initialization later. Skip INLINE_FRAME entries of FRAME. gdb/testsuite/ Fix entry values resolving in inlined frames. * gdb.arch/amd64-entry-value-inline.S: New file. * gdb.arch/amd64-entry-value-inline.c: New file. * gdb.arch/amd64-entry-value-inline.exp: New file.
2012-10-15gdb/testsuite/Jan Kratochvil3-4/+12
Fix recent gdb_breakpoint regression. * gdb.java/jmisc.exp: gdb_breakpoint for $function - remove curly braces from the parameter. * gdb.java/jprint.exp: Likewise.
2012-10-15 * lib/gdb.exp (runto): Fix call to gdb_breakpoint.Doug Evans2-1/+8
2012-10-15Remove trailing '#' in gdb.dwarf2/dw2-icc-opaque.SJoel Brobecker2-1/+5
gdb/testsuite/ChangeLog: * gdb.dwarf2/dw2-icc-opaque.S: Remove '#'.
2012-10-15Build with -DMS_WIN64 on amd64-windows if Python enabled...Joel Brobecker3-0/+34
... and building with GCC. gdb/ChangeLog: * configure.ac: Build with -DMS_WIN64 if building with Python enabled using GCC on amd64-windows. * configure: Regenerate.
2012-10-15 PR python/14635:Tom Tromey4-1/+17
* python/py-symtab.c (del_objfile_sal): Set 'symtab' field to Py_None. testsuite * gdb.python/py-symtab.exp: Test sal and symtab destructors.
2012-10-15 PR python/14634:Tom Tromey4-1/+11
* python/py-symbol.c (sympy_dealloc): Check for NULL symbol. testsuite * gdb.python/py-symbol.exp: Test symbol destructor.
2012-10-15*** empty log message ***gdbadmin1-1/+1
2012-10-14gdb/testsuite/Yao Qi22-3395/+29
* gdb.mi/mi2-cli.exp: Move to mi-cli.exp. * gdb.mi/mi-cli.exp: New. * gdb.mi/mi2-basics.exp: Remove. * gdb.mi/mi2-break.exp: Remove. * gdb.mi/mi2-console.exp: Remove. * gdb.mi/mi2-disassemble.exp: Remove. * gdb.mi/mi2-eval.exp: Remove. * gdb.mi/mi2-file.exp: Remove. * gdb.mi/mi2-hack-cli.exp: Remove. * gdb.mi/mi2-pthreads.exp: Remove. * gdb.mi/mi2-read-memory.exp: Remove. * gdb.mi/mi2-regs.exp: Remove. * gdb.mi/mi2-return.exp: Remove. * gdb.mi/mi2-simplerun.exp: Remove. * gdb.mi/mi2-stack.exp: Remove. * gdb.mi/mi2-stepi.exp: Remove. * gdb.mi/mi2-syn-frame.exp: Remove. * gdb.mi/mi2-until.exp: Remove. * gdb.mi/mi2-watch.exp: Remove. * gdb.mi/mi2-var-block.exp: Remove. * gdb.mi/mi2-var-cmd.exp: Remove. * gdb.mi/mi2-var-display.exp: Remove.
2012-10-14*** empty log message ***gdbadmin1-1/+1
2012-10-13*** empty log message ***gdbadmin1-1/+1
2012-10-12gdb/testsuite/Yao Qi2-3/+8
* gdb.mi/mi-breakpoint-changed.exp (test_pending_resolved): Remove trail '.*' on matching patterns.
2012-10-12*** empty log message ***gdbadmin1-1/+1
2012-10-11http://sourceware.org/ml/gdb-patches/2012-10/msg00032.htmlAndrew Burgess2-0/+8
gdb/ChangeLog * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to reset thread numbering back to 1.
2012-10-11Use is_x86_like_target to check x86 targetsH.J. Lu9-8/+19
* gdb.arch/i386-bp_permanent.exp: Skip if not is_x86_like_target. * gdb.arch/i386-cfi-notcurrent.exp: Likewise. * gdb.arch/i386-disp-step.exp: Likewise. * gdb.arch/i386-gnu-cfi.exp: Likewise. * gdb.arch/i386-prologue.exp: Likewise. * gdb.arch/i386-size-overlap.exp: Likewise. * gdb.arch/i386-size.exp: Likewise. * gdb.arch/i386-unwind.exp: Likewise.
2012-10-11Check byte/word registers on x86_64H.J. Lu3-2/+7
* gdb.arch/i386-byte.exp: Remove is_ilp32_target check. * gdb.arch/i386-word.exp: Likewise.
2012-10-11Check is_amd64_regs_target to to set nr_regsH.J. Lu3-6/+12
* gdb.arch/i386-avx.exp: Check is_amd64_regs_target instead of is_ilp32_target to set nr_regs. * gdb.arch/i386-sse.exp: Likewise.
2012-10-11 PR breakpoints/14643.Doug Evans6-3/+107
* linespec.c (struct ls_parser): New member keyword_ok. (linespec_lexer_lex_string): Add comment. (linespec_lexer_lex_one): Ignore keywords if it's the wrong place for one. (parse_linespec): Set keyword_ok. testsuite/ * gdb.linespec/ls-errs.exp: Change tests of "b if|task|thread". * gdb.linespec/thread.c: New file. * gdb.linespec/thread.exp: New file.
2012-10-11 * lib/gdb.exp (gdb_breakpoint): Fix varargs scan.Doug Evans2-23/+105
Recognize "message" -> print pass and fail. Add eof case. (runto): Recognize message, no-message. Print pass/fail if requested, with same treatment as gdb_breakpoint. (runto_main): Pass no-message to runto. (gdb_internal_error_resync): Add log message. (gdb_file_cmd): Tweak internal error fail text for consistency.
2012-10-11 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicateDoug Evans2-1/+4
"0x" prefix on address in log message.
2012-10-11 * dwarf2read.c (read_1_byte): Add const to buf parameter.Doug Evans2-17/+25
(read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto. (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto. (lookup_dwo_file): Add const to dwo_name parameter. (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
2012-10-11*** empty log message ***gdbadmin1-1/+1
2012-10-10*** empty log message ***gdbadmin1-1/+1
2012-10-09*** empty log message ***gdbadmin1-1/+1