Tom Tromey
9c482037a9
* dwarf2expr.c (execute_stack_op) <DW_OP_GNU_uninit>: Fix typo in
...
error message.
2009-03-23 21:06:08 +00:00
Paul Pluzhnikov
e2dd7057cf
2009-03-23 Paul Pluzhnikov <ppluzhnikov@google.com>
...
* breakpoint.c (disable_breakpoints_in_unloaded_shlib): Use
solib_contains_address_p instead of searching.
2009-03-23 18:34:03 +00:00
Tom Tromey
0dd7fb99eb
* charset.c (ICONV_CONST) <PHONY_ICONV>: Define.
...
(iconv): Make 'inbuf' argument const.
(convert_between_encodings): Use ICONV_CONST.
(wchar_iterate): Likewise.
2009-03-23 17:48:09 +00:00
Pedro Alves
78e5cee680
* server.c (handle_query) Whitespace and formatting.
2009-03-23 00:22:54 +00:00
gdbadmin
ba0f336fa5
*** empty log message ***
2009-03-23 00:00:33 +00:00
Pedro Alves
1b3f60162b
* i387-fp.c, linux-arm-low.c, linux-cris-low.c,
...
linux-crisv32-low.c, linux-i386-low.c, linux-low.c,
linux-mips-low.c, linux-s390-low.c, linux-sparc-low.c,
linux-x86-64-low.c, linux-xtensa-low.c, proc-service.c,
regcache.c, remote-utils.c, server.c, spu-low.c, target.h,
thread-db.c, win32-low.c, xtensa-xtregs.c, gdbreplay.c,
Makefile.in, configure.ac: Fix whitespace throughout.
* configure: Regenerate.
2009-03-22 23:57:10 +00:00
Pedro Alves
a07b2135db
* inferiors.c (find_inferior): Make it safe for the callback
...
function to delete the currently iterated inferior.
2009-03-22 22:34:04 +00:00
Pedro Alves
67cc2626af
* Makefile.in (linuw_low_h): Move higher.
...
(thread-db.o): Depend on $(linux_low_h).
2009-03-22 22:19:34 +00:00
Christopher Faylor
418c6cb3ce
* windows-nat.c (AdjustTokenPrivileges): Implement macro wraparound for
...
dynamically loaded function.
(LookupPrivilegeValueA): Ditto.
(OpenProcessToken): Ditto.
(AdjustTokenPrivileges): Rename and define placeholder for address of
dynamically loaded function.
(LookupPrivilegeValueA): Ditto.
(OpenProcessToken): Ditto.
(set_process_privilege): Remove check for loaded functions.
(bad_OpenProcessToken): Define.
(_initialize_loadable): Load token functions from advapi here, setting
OpenProcessToken function to a dummy static function which always return error
if OS doesn't support this functionality.
2009-03-22 22:13:21 +00:00
Christopher Faylor
695de547fc
* win32-nat.c (ctrl_c_handler): New function.
...
(win32_wait): Register ctrl_c_handler as Ctrl-C handler if the inferior is run
in a separate console.
2009-03-22 21:43:56 +00:00
Christopher Faylor
2b008701dc
* windows-nat.c (DebugActiveProcessStop): Implement macro wraparound for
...
dynamically loaded function.
(DebugBreakProcess): Ditto.
(DebugSetProcessKillOnExit): Ditto.
(EnumProcessModules): Ditto.
(GetModuleFileNameExA): Ditto.
(GetModuleInformation): Ditto.
(DebugActiveProcessStop): Rename and define placeholder for address of
dynamically loaded function. for dynamically loaded function.
(DebugBreakProcess): Ditto.
(DebugSetProcessKillOnExit): Ditto.
(EnumProcessModules): Ditto.
(GetModuleFileNameExA): Ditto.
(GetModuleInformation): Ditto.
(psapi_loaded): Delete.
(get_module_name): Don't check psapi_loaded, just rely on the fact that
dynamically loaded functions will return failure if they weren't previously
found.
(has_detach_ability): Delete.
(windows_attach): Remove call to has_detach_ability (). Just rely on functions
being callable.
(bad_DebugActiveProcessStop): Define.
(bad_DebugBreakProcess): Ditto.
(bad_DebugSetProcessKillOnExit): Ditto.
(bad_EnumProcessModules): Ditto.
(bad_GetModuleFileNameExA): Ditto.
(bad_GetModuleInformation): Ditto.
(_initialize_loadable): Rename from _initialize_psapi. Initialize all dynamic
storage here, setting nonexistent functions to dummy static functions which
always return error.
2009-03-22 21:27:30 +00:00
Jan Kratochvil
bcd5727bdd
Fix a racy FAIL.
...
* gdb.base/auxv.exp (fetch_auxv): Fix trailing newlines consumption.
* gdb.base/callfuncs.exp (fetch_all_registers): Likewise.
2009-03-22 21:11:45 +00:00
Pedro Alves
f3b1572e1a
gdb/
...
* mi/mi-interp.c (mi_interpreter_init): Attach mi_about_to_proceed
to the about_to_proceed observer notification.
(mi_about_to_proceed): New.
(mi_on_resume): Only output ^running and the prompt here if the
target was proceeded.
* breakpoint.c (breakpoint_proceeded): New static.
(breakpoint_about_to_proceed): New.
(_initialize_breakpoints): Attach breakpoint_about_to_proceed to
the about_to_proceed observer notification.
* inferior.h (breakpoint_proceeded): Delete declaration.
* infrun.c (clear_proceed_status): Don't set breakpoint_proceeded.
Notify the about_to_proceed observers.
(struct inferior_status): Delete breakpoint_proceeded member.
(save_inferior_status): Don't save it.
(restore_inferior_status): Don't restore it.
* mi-main.h (mi_proceeded): Declare.
* mi/mi-main.c (mi_cmd_execute): Clear mi_proceeded before running
a command.
gdb/doc/
* observer.texi (about_to_proceed): New.
2009-03-22 18:06:07 +00:00
Pedro Alves
c5a4d20bb9
* gdbthread.h (struct thread_info): Add in_infcall member.
...
* infcall.c (run_inferior_call): Save, set and restore in_infcall.
Remove reverences to suppress_resume_observer. Refresh
`call_thread' after returning from `proceed'.
* infcmd.c (suppress_resume_observer): Delete.
* inferior.h (suppress_resume_observer): Delete declaration.
* mi/mi-interp.c (mi_on_resume): Suppress output while calling an
inferior function.
* thread.c (set_running): Remove references to
suppress_resume_observer.
* infrun.c (struct inferior_status): Add in_infcall member.
(save_inferior_status): Save it.
(restore_inferior_status): Restore it.
2009-03-22 17:59:59 +00:00
Pedro Alves
41d2bdb467
* infcall.c (run_inferior_call): Remove references to
...
suppress_stop_observer.
* infcmd.c (suppress_stop_observer): Delete.
(finish_command_continuation): Remove NOTE. Don't clear
suppress_stop_observer anymore.
(finish_command_continuation_free_arg): Likewise.
(finish_forward): Remove references to suppress_stop_observer.
Call normal_stop observer if we haven't already.
* inferior.h (suppress_stop_observer): Delete.
* infrun.c (normal_stop): When deciding to suppress the
normal_stop observer, check for proceed_to_finish instead of
suppress_stop_observer.
2009-03-22 17:57:11 +00:00
Pedro Alves
065a2c74b5
* symfile.c (symfile_relocate_debug_section): Remove check for
...
SEC_DEBUGGING.
2009-03-22 17:32:16 +00:00
gdbadmin
bb668620ab
*** empty log message ***
2009-03-22 00:00:03 +00:00
Eli Zaretskii
1db612985f
From Jeremy Bennett <jeremy.bennett@embecosm.com>:
...
* stack_frame.eps: Version of image for TeX DVI output.
2009-03-21 14:35:04 +00:00
Eli Zaretskii
587afa3811
From Jeremy Bennett <jeremy.bennett@embecosm.com>:
...
* gdbint.texinfo (everywhere): Use braces {} in @deftypeXX type
field throughout to handle types with spaces in them. Fix typos
found by aspell.
(Summary, Requirements, Contributors): New first chapter,
"Summary" added, old Requirements section moved there, and new
section, "Contributors" added.
(Initializing a New Architecture, Register Representation)
(Frame Interpretation, Inferior Call Setup, Adding a New Target)
(Porting gdb): These sections extended and updated.
(Compiler Characteristics): This section (empty) deleted.
(Defining Other Architecture Features): This section renamed and
duplicate material removed from (formerly "Target Conditionals").
Use braces {} in @deftypeXX type field throughout to handle types
with spaces in them. Typos found by aspell fixed.
* stack_frame.svg: New file, source of image for gdbint.texinfo.
* stack_frame.pdf: Version of image for PDF output.
* stack_frame.png: Version of image for HTML output and for Emacs.
* stack_frame.txt: Version of image for Info output.
2009-03-21 10:24:35 +00:00
Eli Zaretskii
10af6951e8
* gdb.texinfo (Character Sets): Fix last change.
2009-03-21 08:33:14 +00:00
Thiago Jung Bauermann
cc924cad91
gdb/
...
2009-03-21 Jan Kratochvil <jan.kratochvil@redhat.com>
Jim Blandy <jimb@red-bean.com>
Thiago Jung Bauermann <bauerman@br.ibm.com>
Tom Tromey <tromey@redhat.com>
Miscellaneous fixes to the Python code.
* python/python-cmd.c (cmdpy_init): Accept keyword
arguments.
* python/python-value.c (valpy_string): Accept keyword
arguments.
(valpy_binop): Use `break' to exit from the TRY_CATCH block.
Do not call value_to_value_object on NULL RES_VAL.
(value_object_methods): Change `string' entry to also accept
keyword arguments.
(convert_value_from_python): Return a copy of the value if obj is
a gdb.Value object.
(value_object_methods): Mark the `string' method as accepting
keywords, and show method "prototype" in the doc string.
* python/python.c (get_parameter): Don't return inside a
TRY_CATCH.
gdb/doc/
2009-03-21 Thiago Jung Bauermann <bauerman@br.ibm.com>
* gdb.texinfo (Values From Inferior): Fix optional arguments
markup.
(Commands In Python): Adjust argument names of gdb.Command.__init__
to what the function accepts as keywords.
gdb/testsuite/
2009-03-21 Thiago Jung Bauermann <bauerman@br.ibm.com>
* gdb.python/python-cmd.exp: Add tests for keyword arguments.
* gdb.python/python-function.exp: Add test for function returning
a GDB value.
2009-03-21 03:13:02 +00:00
Thiago Jung Bauermann
bc3b79fd1a
gdb/
...
2009-03-05 Tom Tromey <tromey@redhat.com>
Add support for convenience functions in Python.
* Makefile.in (SUBDIR_PYTHON_OBS): Add python-function.o.
(SUBDIR_PYTHON_SRCS): Add python-function.c.
(python-function.o): New target.
* eval.c: Include "python/python.h" and <ctype.h>.
(evaluate_subexp_standard): Handle values of type
TYPE_CODE_INTERNAL_FUNCTION.
* gdbtypes.h (type_code): Add TYPE_CODE_INTERNAL_FUNCTION.
* parse.c (write_exp_string): Remove duplicate word in comment.
* python/python-function.c: New file.
* python/python-internal.h (gdbpy_initialize_functions): Add
prototype.
* python/python.c (_initialize_python): Call
gdbpy_initialize_functions.
* valprint.c (value_check_printable): Handle values of type
TYPE_CODE_INTERNAL_FUNCTION.
* value.c: Include "cli/cli-decode.h".
(internal_function): New struct.
(functionlist, internal_fn_type): New static variables.
(lookup_only_internalvar,
lookup_internalvar): Add const qualifier to name argument.
(create_internalvar): Likewise. Initialize new field.
(set_internal_var): Fix typo in comment. Don't allow assignment
to canonical variable.
(value_create_internal_function, value_internal_function_name,
call_internal_function, function_command, function_destroyer,
add_internal_function): New functions.
(_initialize_values): Create `function' placeholder command.
Initialize internal_fn_type.
* value.h (lookup_only_internalvar, create_internalvar,
lookup_internalvar): Add const qualifier to name argument.
(internal_function_fn, add_internal_function, call_internal_function,
value_internal_function_name): Add prototypes.
(struct internalvar) <canonical>: New field.
gdb/doc/
2008-03-05 Tom Tromey <tromey@redhat.com>
* gdb.texinfo (Convenience Vars): Document convenience functions.
(Functions In Python): New node.
(Python API): Update.
gdb/testsuite/
2009-03-05 Thiago Jung Bauermann <bauerman@br.ibm.com>
* gdb.python/python-function.exp: New file.
2009-03-21 03:03:56 +00:00
Tom Tromey
546e879ee8
* c-lang.c (evaluate_subexp_c): Call check_typedef.
2009-03-21 00:46:17 +00:00
gdbadmin
ced4bf0cb4
*** empty log message ***
2009-03-21 00:00:33 +00:00
Tom Tromey
6c7a06a3fa
gdb:
...
2009-03-19 Tom Tromey <tromey@redhat.com>
Julian Brown <julian@codesourcery.com>
PR i18n/7220, PR i18n/7821, PR exp/8815, PR exp/9103,
PR i18n/9401, PR exp/9613:
* NEWS: Update
* value.h (value_typed_string): Declare.
(val_print_string): Update.
* valprint.h (print_char_chars): Update.
* valprint.c (print_char_chars): Add type argument. Update.
(val_print_string): Likewise.
* valops.c (value_typed_string): New function.
* utils.c (host_char_to_target): New function.
(parse_escape): Use host_char_to_target, host_hex_value. Update.
Remove '^' case.
(no_control_char_error): Remove.
* typeprint.c (print_type_scalar): Update.
* scm-valprint.c (scm_scmval_print): Update.
* scm-lang.h (scm_printchar, scm_printstr): Update.
* scm-lang.c (scm_printchar): Add type argument.
(scm_printstr): Likewise.
* printcmd.c (print_formatted): Update.
(print_scalar_formatted): Update.
(printf_command) <wide_string_arg, wide_char_arg>: New constants.
Handle '%lc' and '%ls'.
* parser-defs.h (struct typed_stoken): New type.
(struct stoken_vector): Likewise.
(write_exp_string_vector): Declare.
* parse.c (write_exp_string_vector): New function.
* p-valprint.c (pascal_val_print): Update.
* p-lang.h (is_pascal_string_type, pascal_printchar,
pascal_printstr): Update.
* p-lang.c (is_pascal_string_type): Remove 'char_size' argument.
Add 'char_type' argument.
(pascal_emit_char): Add type argument.
(pascal_printchar): Likewise.
(pascal_printstr): Likewise.
* objc-lang.c (objc_emit_char): Add type argument.
(objc_printchar): Likewise.
(objc_printstr): Likewise.
* macroexp.c (get_character_constant): Handle unicode characters.
Use c_parse_escape.
(get_string_literal): Handle unicode strings. Use
c_parse_escape.
* m2-valprint.c (print_unpacked_pointer): Update.
(m2_print_array_contents): Update.
(m2_val_print): Update.
* m2-lang.c (m2_emit_char): Add type argument.
(m2_printchar): Likewise.
(m2_printstr): Likewise.
* language.h (struct language_defn) <la_printchar>: Add type
argument.
<la_printstr, la_emitchar>: Likewise.
(LA_PRINT_CHAR): Likewise.
(LA_PRINT_STRING): Likewise.
(LA_EMIT_CHAR): Likewise.
* language.c (unk_lang_emit_char): Add type argument.
(unk_lang_printchar): Likewise.
(unk_lang_printstr): Likewise.
* jv-valprint.c (java_val_print): Update.
* jv-lang.c (java_emit_char): Add type argument.
* f-valprint.c (f_val_print): Update.
* f-lang.c (f_emit_char): Add type argument.
(f_printchar): Likewise.
(f_printstr): Likewise.
* expprint.c (print_subexp_standard): Update.
* charset.h (target_wide_charset): Declare.
(c_target_char_has_backslash_escape, c_parse_backslash,
host_char_print_literally, host_char_to_target,
target_char_to_host, target_char_to_control_char): Remove.
(enum transliterations): New type.
(convert_between_encodings): Declare.
(HOST_ESCAPE_CHAR): New define.
(host_letter_to_control_character, host_hex_value): Declare.
(enum wchar_iterate_result): New enum.
(struct wchar_iterator): Declare.
(make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
wchar_push_back): Declare.
* charset-list.h: New file.
* c-valprint.c (textual_name): New function.
(textual_element_type): Handle wide character types.
(c_val_print): Pass original type to textual_element_type. Handle
wide character types.
(c_value_print): Use textual_element_type. Pass original type of
value to val_print.
* c-lang.h (enum c_string_type): New type.
(c_printchar, c_printstr): Update.
* c-lang.c (classify_type): New function.
(print_wchar): Likewise.
(c_emit_char): Add type argument. Handle wide characters.
(c_printchar): Likewise.
(c_printstr): Add type argument. Handle wide and multibyte
character sets.
(convert_ucn): New function.
(emit_numeric_character): Likewise.
(convert_octal): Likewise.
(convert_hex): Likewise.
(ADVANCE): New macro.
(convert_escape): New function.
(parse_one_string): Likewise.
(evaluate_subexp_c): Likewise.
(exp_descriptor_c): New global.
(c_language_defn): Use exp_descriptor_c.
(cplus_language_defn): Likewise.
(asm_language_defn): Likewise.
(minimal_language_defn): Likewise.
(charset_for_string_type): New function.
* c-exp.y (%union): Add 'svec' and 'tsval'.
(CHAR): New token.
(exp): Add CHAR production.
(string_exp): Rewrite.
(exp) <string_exp>: Rewrite.
(tempbuf): Now global.
(tempbuf_init): New global.
(parse_string_or_char): New function.
(yylex) <tempbuf>: Now global.
<tokptr, tempbufindex, tempbufsize, token_string, class_prefix>:
Remove.
Handle 'u', 'U', and 'L' prefixes. Call parse_string_or_char.
(c_parse_escape): New function.
* auxv.c (fprint_target_auxv): Update.
* ada-valprint.c (ada_emit_char): Add type argument.
(ada_printchar): Likewise.
(ada_print_scalar): Update.
(printstr): Add type argument. Update calls to ada_emit_char.
(ada_printstr): Add type argument.
(ada_val_print_array): Update.
(ada_val_print_1): Likewise.
* ada-lang.c (emit_char): Add type argument.
* ada-lang.h (ada_emit_char, ada_printchar, ada_printstr): Add
type arguments.
* gdb_locale.h: Include langinfo.h.
* charset.c (_initialize_charset): Set default host charset from
the locale. Don't register charsets. Add target-wide-charset
commands. Call find_charset_names.
(struct charset, struct translation): Remove.
(GDB_DEFAULT_HOST_CHARSET): Remove.
(GDB_DEFAULT_TARGET_WIDE_CHARSET): New define.
(target_wide_charset_name): New global.
(show_host_charset_name): Handle "auto".
(show_target_wide_charset_name): New function.
(host_charset_enum, target_charset_enum): Remove.
(charset_enum): New global.
(all_charsets, register_charset, lookup_charset, all_translations,
register_translation, lookup_translation): Remove.
(simple_charset, ascii_print_literally, ascii_to_control): Remove.
(iso_8859_print_literally, iso_8859_to_control,
iso_8859_family_charset): Remove.
(ebcdic_print_literally, ebcdic_to_control,
ebcdic_family_charset): Remove.
(struct cached_iconv, check_iconv_cache, cached_iconv_convert,
register_iconv_charsets): Remove.
(target_wide_charset_be_name, target_wide_charset_le_name): New
globals.
(identity_either_char_to_other): Remove.
(set_be_le_names, validate): New functions.
(backslashable, backslashed, represented): Remove.
(default_c_target_char_has_backslash_escape): Remove.
(default_c_parse_backslash, iconv_convert): Remove.
(ascii_to_iso_8859_1_table, ascii_to_ebcdic_us_table,
ascii_to_ibm1047_table, iso_8859_1_to_ascii_table,
iso_8859_1_to_ebcdic_us_table, iso_8859_1_to_ibm1047_table,
ebcdic_us_to_ascii_table, ebcdic_us_to_iso_8859_1_table,
ebcdic_us_to_ibm1047_table, ibm1047_to_ascii_table,
ibm1047_to_iso_8859_1_table, ibm1047_to_ebcdic_us_table): Remove.
(table_convert_char, table_translation, simple_table_translation):
Remove.
(current_host_charset, current_target_charset,
c_target_char_has_backslash_escape_func,
c_target_char_has_backslash_escape_baton): Remove.
(c_parse_backslash_func, c_parse_backslash_baton): Remove.
(host_char_to_target_func, host_char_to_target_baton): Remove.
(target_char_to_host_func, target_char_to_host_baton): Remove.
(cached_iconv_host_to_target, cached_iconv_target_to_host):
Remove.
(lookup_charset_or_error, check_valid_host_charset): Remove.
(set_host_and_target_charsets): Remove.
(set_host_charset, set_target_charset): Remove.
(set_host_charset_sfunc, set_target_charset_sfunc): Rewrite.
(set_target_wide_charset_sfunc): New function.
(show_charset): Print target wide character set.
(host_charset, target_charset): Rewrite.
(target_wide_charset): New function.
(c_target_char_has_backslash_escape): Remove.
(c_parse_backslash): Remove.
(host_letter_to_control_character): New function.
(host_char_print_literally): Remove.
(host_hex_value): New function.
(target_char_to_control_char): Remove.
(cleanup_iconv): New function.
(convert_between_encodings): New function.
(target_char_to_host): Remove.
(struct wchar_iterator): Define.
(make_wchar_iterator, make_cleanup_wchar_iterator, wchar_iterator,
wchar_push_back): New functions.
(do_cleanup_iterator): New function.
(char_ptr): New typedef.
(charsets): New global.
(add_one, find_charset_names): New functions.
(default_charset_names): New global.
(auto_host_charset_name): Likewise.
* aclocal.m4, config.in, configure: Rebuild.
* configure.ac: Call AM_LANGINFO_CODESET.
(GDB_DEFAULT_HOST_CHARSET): Default to UTF-8.
(AM_ICONV): Invoke earlier.
* acinclude.m4: Include codeset.m4. Subst LIBICONV_INCLUDE and
LIBICONV_LIBDIR. Check for libiconv in build tree.
* Makefile.in (LIBICONV_LIBDIR, LIBICONV_INCLUDE): New macros.
(INTERNAL_CFLAGS_BASE): Add LIBICONV_INCLUDE.
(INTERNAL_LDFLAGS): Add LIBICONV_LIBDIR.
* gdb_obstack.h (obstack_grow_wstr): New define.
* gdb_wchar.h: New file.
* defs.h: Include it.
gdb/testsuite:
* gdb.base/store.exp: Update for change to escape output.
* gdb.base/callfuncs.exp (fetch_all_registers): Update for change
to escape output.
* gdb.base/pointers.exp: Update for change to escape output.
* gdb.base/long_long.exp (gdb_test_long_long): Update for change
to escape output.
* gdb.base/constvars.exp (do_constvar_tests): Update for change to
escape output.
* gdb.base/call-rt-st.exp (print_struct_call): Update for change
to escape output.
* gdb.cp/ref-types.exp (gdb_start_again): Update for change to
escape output.
* gdb.base/setvar.exp: Update for change to escape output.
* lib/gdb.exp (default_gdb_start): Set LC_CTYPE to C.
* gdb.base/printcmds.exp (test_print_all_chars): Update for change
to escape output.
(test_print_string_constants): Likewise.
* gdb.base/charset.exp (valid_host_charset): Check size of
wchar_t. Handle UCS-2 and UCS-4. Add tests for wide and unicode
cases. Handle "auto"-related output.
* gdb.base/charset.c (char16_t, char32_t): New typedefs.
(uvar, Uvar): New globals.
gdb/doc:
* gdb.texinfo (Character Sets): Remove obsolete text. Document
set target-wide-charset.
(Requirements): Mention iconv.
2009-03-20 23:04:40 +00:00
Tom Tromey
cb249c71f6
2009-03-20 Tom Tromey <tromey@redhat.com>
...
Jan Kratochvil <jan.kratochvil@redhat.com>
* dwarf2read.c (process_die): Handle DW_TAG_typedef.
* eval.c (evaluate_subexp_standard) <OP_TYPE>: Strip a single
typedef.
* ada-lang.c (decode_packed_array_type): Call CHECK_TYPEDEF on the
SYMBOL_TYPE result.
* ada-typeprint.c (print_array_type): Do the NULL check
unconditionally.
2009-03-20 22:00:11 +00:00
gdbadmin
e00e5ec5a1
*** empty log message ***
2009-03-20 00:00:33 +00:00
Tom Tromey
16ad93705c
* utils.c (do_obstack_free): New function.
...
(make_cleanup_obstack_free): Likewise.
* defs.h (make_cleanup_obstack_free): Declare.
2009-03-19 17:39:31 +00:00
Jerome Guitton
c31af87b2e
* gdb.ada/fixed_points/fixed_points.adb: Add a test on overprecise
...
deltas.
* gdb.ada/fixed_points.exp: Ditto.
2009-03-19 14:08:50 +00:00
gdbadmin
7728216e03
*** empty log message ***
2009-03-19 00:00:33 +00:00
Doug Evans
89ecc4f5e7
* linux-nat.c (linux_nat_find_memory_regions): Result of PIDGET is an
...
int, not a long long.
(linux_nat_info_proc_cmd): Store pid in long instead of long long.
2009-03-18 16:47:45 +00:00
Doug Evans
a411cd0e60
* expprint.c (dump_raw_expression): Print note if non-NULL.
2009-03-18 16:38:18 +00:00
Doug Evans
36dc683c52
* printcmd.c (display_uses_solib_p): Redo loop, scan element list
...
backwards.
2009-03-18 16:22:50 +00:00
Pedro Alves
51272cf2e9
* return-nodebug.c: Don't include stdio.h.
...
(init): Delete.
(func): Delete definition and provide extern declaration.
(t): New.
(main): Don't call printf. Call func and store its result in t.
* return-nodebug1.c: New.
* return-nodebug.exp: Don't expect stdio output. Instead, print
the global variable t. Drop printf formatters and cast types from
foreach loop. Don't use prepare_for_testing. Compile
return-nodebug.c and return-nodebug1.c in separate steps. Don't
define FORMAT or CAST.
2009-03-18 15:36:01 +00:00
Nathan Sidwell
5b1ba0e546
* Makefile.in: Update license to GPLv3.
...
* ada-exp.y: Update license to GPLv3.
* ada-lex.l: Update license to GPLv3.
* c-exp.y: Update license to GPLv3.
* cp-name-parser.y: Update license to GPLv3.
* darwin-nat-info.c: Update license to GPLv3.
* f-exp.y: Update license to GPLv3.
* gdb_thread_db.h: Update license to GPLv3.
* hppanbsd-nat.c: Update license to GPLv3.
* hppanbsd-tdep.c: Update license to GPLv3.
* hppaobsd-tdep.c: Update license to GPLv3.
* jv-exp.y: Update license to GPLv3.
* m2-exp.y: Update license to GPLv3.
* objc-exp.y: Update license to GPLv3.
* p-exp.y: Update license to GPLv3.
* reply_mig_hack.awk: Update license to GPLv3.
* reverse.c: Update license to GPLv3.
* xtensa-xtregs.c: Update license to GPLv3.
2009-03-18 08:51:11 +00:00
Paul Pluzhnikov
d24948ac99
2009-03-17 Paul Pluzhnikov <ppluzhnikov@google.com>
...
* gdb.base/solib-display.exp: Disable test for remote targers.
2009-03-18 05:43:55 +00:00
Pedro Alves
8a2492ee53
* remote.c (remote_close): Don't call generic_mourn_inferior.
...
(remote_mourn_1): Call generic_mourn_inferior after closing the
target.
2009-03-18 02:24:02 +00:00
Pedro Alves
5338cef16a
* remote.c (remote_start_remote): Add missing call to
...
init_wait_for_inferior in non-stop mode.
2009-03-18 01:29:27 +00:00
Pedro Alves
717a8278b1
* breakpoint.c (bpstat_should_step): Only consider software
...
watchpoints that have a location.
2009-03-18 01:13:19 +00:00
gdbadmin
5b548f9aa4
*** empty log message ***
2009-03-18 00:00:33 +00:00
Christopher Faylor
f3b6bd6097
Correct typo which gave me an accidental promotion.
2009-03-17 22:57:34 +00:00
Pedro Alves
54a0b537b8
Rename "process" to "lwp" throughout.
...
* linux-low.c (all_processes): Rename to...
(all_lwps): ... this.
(inferior_pid, handle_extended_wait, get_stop_pc): Adjust.
(add_process): Rename to ...
(add_lwp): ... this. Adjust.
(linux_create_inferior): Adjust.
(linux_attach_lwp): Adjust.
(linux_attach): Adjust.
(linux_kill_one_process): Rename to ...
(linux_kill_one_lwp): ... this. Adjust.
(linux_kill): Adjust.
(linux_detach_one_process): Rename to ...
(linux_detach_one_lwp): ... this. Adjust.
(linux_detach): Adjust.
(check_removed_breakpoint): Adjust.
(status_pending_p): Adjust.
(linux_wait_for_process): Rename to ...
(linux_wait_for_lwp): ... this. Adjust.
(linux_wait_for_event): Adjust.
(send_sigstop): Adjust.
(wait_for_sigstop): Adjust.
(stop_all_processes): Rename to ...
(stop_all_lwps): ... this.
(linux_resume_one_process): Rename to ...
(linux_resume_one_lwp): ... this. Adjust.
(linux_set_resume_request, linux_continue_one_thread)
(linux_queue_one_thread, resume_status_pending_p)
(usr_store_inferior_registers, regsets_store_inferior_registers)
(linux_request_interrupt, linux_read_offsets, linux_xfer_siginfo):
Adjust.
* linux-low.h (get_process): Rename to ...
(get_lwp): ... this. Adjust.
(get_thread_process): Rename to ...
(get_thread_lwp): ... this. Adjust.
(get_process_thread): Rename to ...
(get_lwp_thread): ... this. Adjust.
(struct process_info): Rename to ...
(struct lwp_info): ... this.
(all_processes): Rename to ...
(all_lwps): ... this.
* proc-service.c (ps_lgetregs): Adjust.
* thread-db.c (thread_db_create_event, find_one_thread)
(maybe_attach_thread, thread_db_get_tls_address): Adjust.
2009-03-17 20:25:35 +00:00
Joel Brobecker
7d85a9c0e3
Add a target_ops parameter to the to_kill method in struct target_ops.
...
* target.h (struct target_ops): Add a "target_ops *" parameter to
method to_kill.
(target_kill): Remove macro. Add declaration.
* target.c (debug_to_kill): Delete, no longer necessary.
(target_kill): New function.
(update_current_target): Stop inheriting the to_kill method.
Do not de_fault it to no_process either.
(setup_target_debug): Do not set current_target.to_kill.
* gnu-nat.c, go32-nat.c, hpux-thread.c, inf-ptrace.c, inf-ttrace.c,
linux-nat.c, monitor.c, nto-procfs.c, procfs.c, remote-m32r-sdi.c,
remote-mips.c, remote-sim.c, remote.c, windows-nat.c: Update
accordingly.
2009-03-17 19:28:09 +00:00
Doug Evans
14064aa202
* amd64-linux-nat.c (si_timerid,si_overrun): Provide definition for
...
glibc 2.3.2 and earlier.
2009-03-17 18:39:08 +00:00
Joel Brobecker
f06eadd9d4
* frame.c (get_prev_frame_1): Do not perform the inner_frame
...
sanity check if this_frame is not NORMAL.
(frame_id_inner): Update the description of this function.
2009-03-17 17:26:52 +00:00
Hui Zhu
b646ddd43a
* gdb.texinfo: Change the introduce of "disassemble-next-line".
2009-03-17 06:01:10 +00:00
Hui Zhu
481df73e07
* stack.c: Change the introduce of "disassemble-next-line".
2009-03-17 05:59:34 +00:00
Pedro Alves
6b251945f5
* mi/mi-main.h (mi_print_timing_maybe): Add strict prototype,
...
declare as extern.
2009-03-17 05:18:45 +00:00
Pedro Alves
dafb3b4167
Add missing space.
2009-03-17 05:17:37 +00:00
Hui Zhu
91440f573c
* gdb.texinfo: Add documentation for disassemble-next-line.
2009-03-17 05:14:01 +00:00
Hui Zhu
30c33a9f4b
*stack.c: Include valprint.h.
...
(disassemble_next_line): New enum.
(show_disassemble_next_line): New function. Show the current
value of disassemble-next-line.
(gdb_disassembly_stub_args): New struct for argument passing
between function do_gdb_disassembly and function
gdb_disassembly_stub.
(gdb_disassembly_stub): New function. Helper for
gdb_disassembly.
(do_gdb_disassembly): New function. Use TRY_CATCH to catch
the exception from the gdb_disassembly because it will be
broken by filter sometime.
(print_frame_info): If disassemble-next-line is set to auto
or on and doesn't have the line debug messages for $pc,
output the next instruction.
If disassemble-next-line is set to on and there is line debug
messages, output assembly codes for next line.
(_initialize_stack): Make the "set disassemble-next-line"
command an auto-boolean command. Change its class to
class_stack. Place it in the top level set list. Extend help
to describe the auto mode.
2009-03-17 05:11:40 +00:00
Pedro Alves
fee0be5dee
* infrun.c (normal_stop): Don't overwrite old_chain.
2009-03-17 04:49:47 +00:00
gdbadmin
2df6516ba2
*** empty log message ***
2009-03-17 00:00:03 +00:00
Joel Brobecker
a624e1115a
* remote-mips.c (mips_load): Replace call to regcache_set_valid_p,
...
which is undefined, by call to regcache_invalidate, which should
do what the original author wanted to do.
2009-03-16 21:12:46 +00:00
Joel Brobecker
383c038998
* remote-mips.c (mips_mourn_inferior): Add missing ops parameter.
...
(mips_create_inferior): Likewise.
2009-03-16 19:38:33 +00:00
Joel Brobecker
267fbcde30
* go32-nat.c (go32_create_inferior): Add missing ops parameter.
2009-03-16 19:00:27 +00:00
Joel Brobecker
da66f6a6bc
* darwin-nat.c (darwin_resume): Fix a compiler warning when
...
building on x86_64-darwin.
2009-03-16 15:57:08 +00:00
Joel Brobecker
58529c0267
* configure.tgt: Add handling for x86_64-darwin.
2009-03-16 15:04:15 +00:00
Jan Kratochvil
ba30a4e951
gdb/
...
* auxv.c (fprint_target_auxv): New TAG for AT_RANDOM.
2009-03-16 09:58:25 +00:00
Thiago Jung Bauermann
8fd4122798
* gdb.texinfo (Commands In Python): Remove tindex entries.
2009-03-16 03:34:45 +00:00
gdbadmin
fc7593dfa0
*** empty log message ***
2009-03-16 00:00:32 +00:00
Joel Brobecker
7fc0c7b58f
* aix-thread.c (aix_thread_thread_alive, aix_thread_pid_to_str):
...
Use the ops parameter to get to the target beneath, rather than
using the current_target global. Using the current_target global
was an unintended accident.
2009-03-15 21:05:41 +00:00
Joel Brobecker
1ba0a4eebc
Fix an error happening while loading symbols from a core file
...
(on AIX).
* rs6000-nat.c (xcoff_relocate_symtab): Use target_has_execution
to detect whether we're debugging a core file or not.
2009-03-15 20:26:11 +00:00
Joel Brobecker
d30acaa715
Modernize the aix-thread later by getting rid of the base_target
...
global. This brings back to life the AIX port which was otherwise
crashing all the time.
* aix-thread.c (base_target): Delete.
(pd_enable): Do not set base_target.
(aix_thread_attach): Use find_target_beneath instead of base_target.
(aix_thread_detach, aix_thread_resume, aix_thread_wait)
(aix_thread_fetch_registers, aix_thread_store_registers),
(aix_thread_xfer_partial, aix_thread_mourn_inferior)
(aix_thread_thread_alive, aix_thread_pid_to_str): Likewise.
(aix_thread_kill): Delete. Does not seem necessary.
(init_aix_thread_ops): Do not set aix_thread_ops.to_kill.
2009-03-15 19:38:42 +00:00
Jan Kratochvil
61ff14c69a
gdb/
...
* stack.c (return_command <retval_exp>): New variables retval_expr
and old_chain. Inline parse_and_eval to initialize retval_expr. Check
RETVAL_EXPR for UNOP_CAST and set RETURN_TYPE to the RETURN_VALUE type
if RETURN_TYPE is NULL.
gdb/doc/
* gdb.texinfo (Returning): New description for missing debug info.
gdb/testsuite/
* gdb.base/return-nodebug.exp, gdb.base/return-nodebug.c: New.
2009-03-15 09:19:40 +00:00
gdbadmin
0d34de9aea
*** empty log message ***
2009-03-15 00:00:32 +00:00
Jan Kratochvil
cb4dce936e
Fix a racy FAIL.
...
* gdb.base/multi-forks.exp (continue_to_exit_bp_loc): New function with
code from `follow parent, print pids'.
(`follow child, print pids', `follow parent, print pids'): Call it.
Replace `gdb_test "break..."' by gdb_breakpoint.
2009-03-14 14:25:55 +00:00
Pedro Alves
0b16c5cfaf
2009-03-14 Pedro Alves <pedro@codesourcery.com>
...
gdb/
* remote.c (PACKET_qAttached): New.
(remote_query_attached): New.
(remote_add_inferior): Add new `attached' argument. Handle it.
(remote_notice_new_inferior, remote_start_remote): Adjust to pass
-1 to remote_add_inferior in new parameter.
(extended_remote_attach_1): Adjust to pass 1 to
remote_add_inferior in the new parameter.
(extended_remote_create_inferior_1): Adjust to pass 0 to
remote_add_inferior in the new parameter.
(_initialize_remote): Add "set/show remote query-attached-packet"
commands.
2009-03-14 Pedro Alves <pedro@codesourcery.com>
gdb/gdbserver/
* server.c (handle_query): Handle "qAttached".
2009-03-14 Pedro Alves <pedro@codesourcery.com>
gdb/doc/
* gdb.texinfo (Remote Configuration): Document query-attached.
(General Query Packets): Document qAttached.
2009-03-14 01:38:08 +00:00
gdbadmin
eac8f8e089
*** empty log message ***
2009-03-14 00:00:05 +00:00
Tom Tromey
9ee6bb930d
* symtab.c (lookup_symbol_in_language): Use a cleanup.
2009-03-13 21:02:58 +00:00
Doug Evans
787274f042
* exceptions.h: Clean up some comments on catch_exceptions usage.
...
* exceptions.c: Ditto. Plus mark catch_errors as superseded by
catch_exceptions.
2009-03-13 17:26:59 +00:00
Vladimir Prus
f7c60c5e2b
* gdb.mi/mi-cli.exp: Adjust for output difference in
...
sync and async modes.
2009-03-13 10:55:08 +00:00
Nathan Sidwell
32de4b9db9
* Makefile.in, hostio-errno.c, errno.c, xtensa-xtregs.c: Change to
...
GPLv3, update license URL.
2009-03-13 07:57:47 +00:00
Joel Brobecker
24f818742e
* source.c (source_full_path_of): Constify parameter filename.
...
* defs.h (source_full_path_of): Update declaration accordingly.
2009-03-13 02:34:13 +00:00
Joel Brobecker
e15780428b
* ada-lang.c (ada_evaluate_subexp): Merge case BINOP_REM and
...
BINOP_MOD cases with the handling of case BINOP_DIV and BINOP_MUL.
Remove useless op value checks when EVAL_AVOID_SIDE_EFFECTS.
2009-03-13 02:30:55 +00:00
Joel Brobecker
383ace49f8
* gdb.ada/ptype_arith_binop.exp: Remove some commented-out code
...
that was checked in by mistake. Remove loading of ada.exp, since
this is not necessary in this case.
2009-03-13 02:24:38 +00:00
Joel Brobecker
4ce102af1e
* gdb.ada/ptype_arith_binop.exp: New testcase.
2009-03-13 02:15:36 +00:00
Joel Brobecker
9c2be529f5
* ada-lang.c (ada_evaluate_subexp) <BINOP_DIV>: make sure to
...
promote the operands when noside is EVAL_AVOID_SIDE_EFFECTS.
2009-03-13 02:15:01 +00:00
Joel Brobecker
2360f94a42
Fix the author name in the last entry.
2009-03-13 01:52:33 +00:00
Joel Brobecker
e22dccb54c
* ada-tasks.c (ada_task_is_alive): Move up and make static.
...
* ada-lang.h (ada_task_is_alive): Remove declaration.
2009-03-13 01:51:17 +00:00
Joel Brobecker
facc390f02
* ada-lang.c (ada_delta): Change the type of numerators and
...
denominators to DOUBLEST, as they may not fit into a long.
(scaling_factor): Ditto.
2009-03-13 01:28:05 +00:00
Joel Brobecker
5c20fa2ae3
Improve the last changelog entry.
2009-03-13 01:13:33 +00:00
Joel Brobecker
47e729a854
* language.c (lang_bool_type): Return a builtin bool type in the
...
Ada case.
2009-03-13 01:12:21 +00:00
Joel Brobecker
b79819baf7
* ada-lang.c (ada_evaluate_subexp) [OP_VAR_VALUE]: For tagged
...
types, if we are unable to determine the actual symbol type
from its tag, then use the static approximation instead.
2009-03-13 00:57:52 +00:00
gdbadmin
ef6f706809
*** empty log message ***
2009-03-13 00:00:32 +00:00
Joel Brobecker
529a2aefc2
* gdb.ada/mod_from_name: New testcase.
2009-03-12 23:42:05 +00:00
Joel Brobecker
0056e4d574
Fix crash printing packed record with packed array.
...
* ada-lang.c (ada_modulus_from_name): New function.
(ada_modulus): In the case where the type length is bigger than
the size of the type used to hold the bounds, try determining
the modulus from the type name.
(ada_value_primitive_packed_val): Fix bug in the computation of
ntarg causing an out-of-buffer invalid access.
2009-03-12 23:41:16 +00:00
Joel Brobecker
8a38181c39
* gdb.ada/tick_last_segv: New testcase.
2009-03-12 23:19:35 +00:00
Joel Brobecker
3c513ee699
Fix segfault when printing short_integer'last.
...
* ada-lang.c (ada_find_any_type): Search in the primitive types
if a symbol could not be found.
2009-03-12 23:17:33 +00:00
Joel Brobecker
680f3fadee
* ada-tasks.c (task_states,long_task_states): Add new states
...
Activating and Acceptor_Delay_Sleep. Update the description
of state Acceptor_Sleep.
2009-03-12 22:53:38 +00:00
Joel Brobecker
2ab1c2d936
Fix a build failure on Darwin following some changes in
...
the profile of some target_ops methods.
* darwin-nat.c (darwin_kill_inferior): Add target_ops parameter
where missing.
(darwin_stop_inferior, darwin_detach): Likewise.
2009-03-12 22:29:30 +00:00
Vladimir Prus
11436dee51
* gdb.mi/mi-cli.exp: Remove debug print.
2009-03-12 20:16:06 +00:00
Vladimir Prus
1f31650a61
Include token in ^running notification for CLI commands.
...
* mi/mi-main.c (mi_execute_command): Set current_token here.
(mi_cmd_execute): Do not set current_token here.
2009-03-12 20:08:04 +00:00
Vladimir Prus
4333ada327
Fix MI timings.
...
* mi/mi-main.c (mi_print_timing_maybe): New.
(captured_mi_execute_command): Simplify. Output timings to
CLI commands, too.
(mi_execute_async_cli_command): Do not print timings.
* mi/mi-main.h (mi_print_timing_maybe): Declare.
* mi/mi-interp.c (mi_on_normal_stop): Call mi_print_timing_maybe.
2009-03-12 19:54:54 +00:00
Joel Brobecker
c5933f6db9
* xcoffread.c (process_linenos): Check if the line in the
...
include table refers to the main source file and, if so,
add them to the main subfile.
2009-03-12 17:56:20 +00:00
Joel Brobecker
c7660128e8
Fix a build failure on AIX introduced after a change in the profile
...
of some of the "methods" in the target_ops structure.
* aix-thread.c: Add missing target_ops parameter throughout.
Implement Ada task switching on AIX.
* aix-thread.c (aix_thread_get_ada_task_ptid): New function.
(init_aix_thread_ops): Set aix_thread_ops.to_get_ada_task_ptid.
2009-03-12 17:44:29 +00:00
gdbadmin
e671f9d32e
*** empty log message ***
2009-03-12 00:00:33 +00:00
Daniel Jacobowitz
c5bc3a77a2
* breakpoint.c (bpstat_check_breakpoint_conditions): Use
...
value_mark and value_free_to_mark.
* objfiles.c (free_objfile): Call objfile_free_data before
freeing the BFD.
2009-03-11 20:26:02 +00:00
gdbadmin
d6b7435fbe
*** empty log message ***
2009-03-11 00:00:34 +00:00
Hui Zhu
55518360d8
* disasm.c (gdb_disassembly): Remove unused argument
...
"line_num".
* disasm.h (gdb_disassembly): Ditto.
* cli/cli-cmds.c (print_disassembly): Ditto.
* mi/mi-cmd-disas.c (mi_cmd_disassemble): Ditto.
2009-03-10 08:53:53 +00:00