1 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3 Fix -Wmissing-prototypes build.
4 * cris-tdep.c (cris_can_use_hardware_watchpoint)
5 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
7 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9 Fix -Wmissing-prototypes build.
10 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
11 (frv_have_stopped_data_address): Remove.
13 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
15 Fix -Wmissing-prototypes build.
16 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
17 * sh-tdep.c: Include sh64-tdep.h.
18 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
19 * sh64-tdep.c: Include sh64-tdep.h.
20 * sh64-tdep.h: New file.
22 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
24 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
26 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
28 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
29 sp_regnum once the gdbarch_init_osabi hook has been called.
31 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
33 * mips-tdep.c (mips32_bc1_pc): New function.
34 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
35 BPOSGE32 and BPOSGE64 instructions.
36 (deal_with_atomic_sequence): Likewise.
37 (mips32_instruction_has_delay_slot): Likewise.
39 2012-03-01 Maciej W. Rozycki <macro@mips.com>
40 Chris Dearman <chris@mips.com>
41 Maciej W. Rozycki <macro@codesourcery.com>
42 Joseph Myers <joseph@codesourcery.com>
44 * features/mips-dsp.xml: New file.
45 * features/mips64-dsp.xml: New file.
46 * features/mips-dsp-linux.xml: New file.
47 * features/mips64-dsp-linux.xml: New file.
48 * features/Makefile (WHICH): Add mips-dsp-linux and
50 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
51 * features/mips-dsp-linux.c: New file.
52 * features/mips64-dsp-linux.c: New file.
53 * regformats/mips-dsp-linux.dat: New file.
54 * regformats/mips64-dsp-linux.dat: New file.
55 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
57 (mips64_linux_register_addr): Likewise.
58 (mips64_linux_regsets_fetch_registers): Likewise.
59 (mips64_linux_regsets_store_registers): Likewise.
60 (mips64_linux_fetch_registers): Update call to
61 mips64_linux_regsets_fetch_registers.
62 (mips64_linux_store_registers): Update call to
63 mips64_linux_regsets_store_registers.
64 (mips_linux_read_description): Probe for DSP registers.
65 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
66 and initialize_tdesc_mips64_dsp_linux.
67 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
68 Remove padding of no longer used embedded register slots.
69 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
70 (MIPS_RESTART_REGNUM): Redefine enum value.
71 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
73 (mips_tx39_reg_names): Likewise.
74 (mips_linux_reg_names): New array of register names for Linux
76 (mips_register_name): Check for a null pointer in
77 mips_processor_reg_names and return an empty string.
78 (mips_register_type): Exclude embedded registers for the IRIX
80 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
81 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
83 (mips_stab_reg_to_regnum): Handle DSP accumulators.
84 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
85 (mips_gdbarch_init): Likewise. Initialize internal register
86 indices for the Linux ABI. Use dynamic numbers to refer to
87 registers, as applicable, while parsing the target description.
88 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
90 2012-03-01 Joel Brobecker <brobecker@adacore.com>
92 * frame.h (read_frame_register_unsigned): Fix typo in function
95 2012-03-01 Pedro Alves <palves@redhat.com>
97 * jit-reader.in [!__cplusplus]
98 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
100 2012-03-01 Pedro Alves <palves@redhat.com>
102 * configure.ac (build_warnings): Add -Wmissing-prototypes.
103 * configure: Regenerate.
105 2012-03-01 Pedro Alves <palves@redhat.com>
107 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
108 * breakpoint.c (create_exception_master_breakpoint, trace_command)
109 (ftrace_command, strace_command): Make static.
110 * d-lang.c (_initialize_d_language): Declare.
111 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
112 * dwarf2loc.c (_initialize_dwarf2loc):
113 * dwarf2read.c (process_psymtab_comp_unit): Make static.
114 * exec.c (exec_get_section_table): Make static.
115 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
116 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
117 * inferior.c (remove_inferior_command, add_inferior_command)
118 (clone_inferior_command): Make static.
119 * linux-nat.c (linux_nat_thread_address_space)
120 (linux_nat_core_of_thread): Make static.
121 * linux-tdep.c (_initialize_linux_tdep): Declare.
122 * objc-lang.c (_initialize_objc_lang): Declare.
123 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
125 (_initialize_opencl_language): Declare.
126 * record.c (_initialize_record): Declare.
127 * remote.c (demand_private_info, remote_get_tib_address)
128 (remote_supports_cond_tracepoints)
129 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
131 * skip.c (_initialize_step_skip): Declare.
132 * symtab.c (skip_prologue_using_lineinfo): Make static.
133 * tracepoint.c (delete_trace_state_variable)
134 (trace_variable_command, delete_trace_variable_command)
135 (get_uploaded_tsv, find_matching_tracepoint_location)
136 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
138 * value.c (pack_unsigned_long): Make static.
139 * varobj.c (varobj_ensure_python_env): Make static.
140 * windows-tdep.c (_initialize_windows_tdep): Declare.
141 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
143 2012-03-01 Pedro Alves <palves@redhat.com>
145 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
147 (linux_init_abi): Install it as has_shared_address_space gdbarch
150 2012-03-01 Pedro Alves <palves@redhat.com>
152 * observer.c (observer_test_first_notification_function)
153 (observer_test_second_notification_function)
154 (observer_test_third_notification_function): Add declarations.
156 2012-03-01 Pedro Alves <palves@redhat.com>
158 * common/signals.c (default_target_signal_to_host)
159 (default_target_signal_from_host): Move ...
160 * arch-utils.c: ... here.
161 * arch-utils.h (default_target_signal_to_host)
162 (default_target_signal_from_host): Declare.
164 * common/signals.c (target_signal_from_command): Move ...
165 * infrun.c: ... here.
166 * inferior.h (target_signal_from_command): Declare.
167 * target.h (target_signal_from_command)
168 (default_target_signal_from_host, default_target_signal_to_host):
171 * common/signals.c (_initialize_signals): Delete.
173 2012-03-01 Pedro Alves <palves@redhat.com>
175 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
176 both __cplusplus and !__cplusplus.
178 2012-03-01 Pedro Alves <palves@redhat.com>
180 * psymtab.c (find_and_open_source): Delete declaration.
181 * source.c (find_and_open_source): Move comment ...
182 * source.h (find_and_open_source): ... to this new declaration.
184 2012-03-01 Pedro Alves <palves@redhat.com>
186 * inline-frame.c: Include inline-frame.h.
188 2012-03-01 Pedro Alves <palves@redhat.com>
190 * tui/tui-data.c (set_gen_win_origin): Delete.
191 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
192 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
194 2012-03-01 Pedro Alves <palves@redhat.com>
196 * remote.c (encode_actions): Delete declaration.
197 * tracepoint.c (encode_actions): Make extern.
198 * tracepoint.h (encode_actions): Declare.
200 2012-03-01 Pedro Alves <palves@redhat.com>
202 * python/py-breakpoint.c: Include python.h.
203 * python/py-continueevent.c (create_continue_event_object): Make
205 * python/py-lazy-string.c (stpy_get_type): Make static.
206 * python/py-newobjfileevent.c (create_new_objfile_event_object):
208 * python/py-utils.c (unicode_to_target_python_string): Make
210 * python/py-value.c: Include python.h.
212 2012-03-01 Pedro Alves <palves@redhat.com>
214 * inferior.c (delete_threads_of_inferior): Delete.
216 2012-03-01 Pedro Alves <palves@redhat.com>
218 Import fallback definitions from glibc.
220 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
221 ps_prochandle): Forward declare.
222 (ps_err_e): Use glibc's comments.
223 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
224 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
225 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
226 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
227 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
228 (struct ps_prochandle): Adjust comment.
230 2012-03-01 Pedro Alves <palves@redhat.com>
232 * ada-lang.c (ada_modulus_from_name): Delete.
233 * ada-lex.l (lexer_init): Make static.
235 2012-03-01 Pedro Alves <palves@redhat.com>
239 * frame.c (read_frame_register_unsigned): New.
240 * frame.h (read_frame_register_unsigned): Declare.
241 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
243 (print_i387_control_word): New parameter `control_p'. Handle it.
244 (i387_print_float_info): Handle unavailable float registers.
246 2012-03-01 Keith Seitz <keiths@redhat.com>
248 * linespec.c (decode_line_2): Sort the list of methods
249 alphabetically before presenting the user with a selection
252 2012-03-01 Doug Evans <dje@google.com>
254 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
256 (dwarf2_read_abbrevs): Remove corresponding initialization.
258 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
260 * NEWS: Mention new python command class gdb.COMMAND_USER.
261 * cli/cli-cmds.c (show_user): Print error when used on a python
263 (init_cli_cmds): Update documentation strings for "show user" and
264 "set/show max-user-call-depth" to clarify that it does not apply to
266 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
268 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
270 * top.c (execute_command): Only execute a user-defined command as a
271 legacy macro if c->user_commands is set.
273 2012-03-01 Tom Tromey <tromey@redhat.com>
275 * valprint.h (struct generic_val_print_decorations): New.
276 (generic_val_print): Declare.
277 * valprint.c (generic_val_print): New function.
278 * p-valprint.c (p_decorations): New global.
279 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
280 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
281 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
282 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
283 * m2-valprint.c (m2_decorations): New global.
284 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
285 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
286 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
287 TYPE_CODE_ERROR>: Call generic_val_print.
288 * f-valprint.c (f_decorations): New global.
289 (f_val_print): Use print_function_pointer_address.
290 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
291 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
292 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
294 * c-valprint.c (c_decorations): New global.
295 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
296 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
297 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
298 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
299 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
300 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
303 2012-03-01 Tom Tromey <tromey@redhat.com>
305 * valprint.c (val_print): Update.
306 * p-valprint (pascal_val_print): Return void.
307 * p-lang.h (pascal_val_print): Return void.
308 * m2-valprint.c (m2_val_print): Return void.
309 * m2-lang.h (m2_val_print): Return void.
310 * language.h (struct language_defn) <la_val_print>: Return void.
311 * language.c (unk_lang_val_print): Return void.
312 * jv-valprint.c (java_val_print): Return void.
313 * jv-lang.h (java_val_print): Return void.
314 * f-valprint.c (f_val_print): Return void.
315 * f-lang.h (f_val_print): Return void.
316 * d-valprint.c (d_val_print): Return void.
317 (dynamic_array_type): Update.
318 * d-lang.h (d_val_print): Return void.
319 * c-valprint.c (c_val_print): Return void.
320 * c-lang.h (c_val_print): Return void.
321 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
323 * ada-lang.h (ada_val_print): Return void.
325 2012-03-01 Tom Tromey <tromey@redhat.com>
327 * value.h (val_print): Return void.
328 * valprint.c (val_print): Return void.
330 2012-03-01 Tom Tromey <tromey@redhat.com>
332 * value.h (common_val_print): Return void.
333 * valprint.c (common_val_print): Return void.
335 2012-03-01 Tom Tromey <tromey@redhat.com>
337 * value.h (value_print): Return void.
338 * valprint.c (value_print): Return void.
339 * p-valprint.c (pascal_value_print): Return void.
340 * p-lang.h (pascal_value_print): Return void.
341 * language.h (struct language_defn) <la_value_print>: Return
343 * language.c (unk_lang_value_print): Return void.
344 * jv-valprint.c (java_value_print): Return void.
345 * jv-lang.h (java_value_print): Return void.
346 * f-valprint.c (c_value_print): Don't declare.
348 * c-valprint.c (c_value_print): Return void.
349 * c-lang.h (c_value_print): Return void.
350 * ada-valprint.c (ada_value_print): Return void.
351 * ada-lang.h (ada_value_print): Return void.
353 2012-03-01 Tom Tromey <tromey@redhat.com>
355 * value.c (value_primitive_field): Handle virtual base classes.
357 2012-03-01 Tom Tromey <tromey@redhat.com>
359 * gdbtypes.h (struct vbase): Remove.
361 2012-03-01 Tom Tromey <tromey@redhat.com>
363 * c-valprint.c (print_function_pointer_address): Move...
364 * valprint.c: ... here. Make non-static.
365 * m2-valprint.c (print_function_pointer_address): Remove.
366 * valprint.h (print_function_pointer_address): Declare.
368 2012-03-01 Joel Brobecker <brobecker@adacore.com>
370 * NEWS: Document the fact that one can provide a condition when
371 creating an Ada exception catchpoint.
373 2012-03-01 Tom Tromey <tromey@redhat.com>
375 * valprint.c (val_print_type_code_flags): Fix placement of
378 2012-03-01 Joel Brobecker <brobecker@adacore.com>
380 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
381 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
382 environment variable before calling update-copyright.
384 2012-03-01 Joel Brobecker <brobecker@adacore.com>
386 * gnulib/extra/update-copyright: Update to the latest from
387 gnulib's git repository.
388 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
389 variable to 2 instead of 1.
391 2012-02-29 Joel Brobecker <brobecker@adacore.com>
393 * varobj.c (c_value_of_variable): Remove dead code.
395 2012-02-29 Joel Brobecker <brobecker@adacore.com>
397 * ada-lex.p (processId): Do not modify already encoded IDs.
398 Update function documentation.
400 2012-02-29 Joel Brobecker <brobecker@adacore.com>
402 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
403 "name" with "struct symbol *name_sym".
404 * ada-exp.y (write_var_or_type): Update call to
405 ada_find_renaming_symbol.
406 "name" with "struct symbol *name_sym". Adjust Implementation
407 accordingly. Adjust the function documentation.
409 2012-02-29 Joel Brobecker <brobecker@adacore.com>
411 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
412 * ada-lang.c (ada_find_any_type): Add advance declaration.
413 Make static. Replace ada_find_any_symbol by
414 ada_find_any_type_symbol.
415 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
416 Improve function description. Make static.
417 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
418 Replace ada_find_any_symbol by ada_find_any_type_symbol.
420 2012-02-29 Joel Brobecker <brobecker@adacore.com>
422 * ada-lang.c (struct tag_args): Delete.
423 (ada_get_tsd_type): Function body moved up in source file.
424 (ada_tag_name_1, ada_tag_name_2): Delete.
425 (ada_get_tsd_from_tag): New function.
426 (ada_tag_name_from_tsd): New function.
427 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
428 to determine the tag name.
430 2012-02-29 Joel Brobecker <brobecker@adacore.com>
432 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
434 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
437 2012-02-29 Joel Brobecker <brobecker@adacore.com>
439 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
441 2012-02-29 Joel Brobecker <brobecker@adacore.com>
443 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
446 2012-02-29 Joel Brobecker <brobecker@adacore.com>
448 * ada-lang.c (constrained_packed_array_type): If there is a
449 parallel XA type, use it to determine the array index type.
451 2012-02-29 Joel Brobecker <brobecker@adacore.com>
453 * ada-valprint.c (ada_val_print_1): If our value is a reference
454 to an array descriptor, dereference it before converting it
457 2012-02-29 Joel Brobecker <brobecker@adacore.com>
459 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
460 creating fixed value.
461 (ada_value_ind, ada_coerce_ref, assign_component)
462 (ada_evaluate_subexp): Remove call to unwrap_value before
463 call to ada_to_fixed_value.
465 2012-02-29 Joel Brobecker <brobecker@adacore.com>
467 * ada-lang.c (to_fixed_array_type): Set result's type name.
469 2012-02-29 Joel Brobecker <brobecker@adacore.com>
471 * ada-lang.c (catch_ada_exception_command_split): Add new
472 argument cond_string. Add support for condition at end of
473 "catch exception" commands.
474 (ada_decode_exception_location): Add new argument cond_string.
475 Update call to catch_ada_exception_command_split.
476 (create_ada_exception_catchpoint): Add new argument cond_string.
477 Set the breakpoint condition if needed.
478 (catch_ada_exception_command): Update call to
479 ada_decode_exception_location.
480 (ada_decode_assert_location): Add function documentation.
481 Add support for condition at end of "catch assert" command.
482 (catch_assert_command): Update calls to ada_decode_assert_location
483 and create_ada_exception_catchpoint.
485 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
487 Fix disp-step-syscall.exp: fork: single step over fork.
488 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
489 (i386_linux_get_syscall_number_from_regcache): ... here, new function
490 comment, change parameters gdbarch and ptid to regcache. Remove
491 parameter regcache, initialize gdbarch from regcache here.
492 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
494 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
496 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
497 'syscall'. Make the 'int' check more strict.
499 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
501 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
502 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
503 (i386_linux_intx80_sysenter_syscall_record): ... here.
504 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
505 Use the renamed function name.
507 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
509 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
510 * breakpoint.c (until_break_command): Likewise.
511 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
512 * infcall.c (call_function_by_hand): Likewise.
513 * infcmd.c (finish_forward): Likewise.
514 * infrun.c (insert_exception_resume_breakpoint): Likewise.
516 2012-02-28 Joel Brobecker <brobecker@adacore.com>
518 From Tristan Gingold <gingold@adacore.com>.
519 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
520 avoid variable assignments inside condition.
522 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
524 Fix static analysis issue found by cppcheck.
525 * microblaze-tdep.c (microblaze_extract_return_value): Fix
526 uninitialized BUF for size 2.
528 2012-02-27 Chris Dearman <chris@mips.com>
529 Nathan Froyd <froydnj@codesourcery.com>
530 Maciej W. Rozycki <macro@codesourcery.com>
532 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
533 (mips16_instruction_has_delay_slot): Likewise.
534 (mips_segment_boundary): Likewise.
535 (mips_adjust_breakpoint_address): Likewise.
536 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
538 2012-02-27 Maciej W. Rozycki <macro@mips.com>
539 Maciej W. Rozycki <macro@codesourcery.com>
541 * infrun.c (handle_inferior_event): Don't proceed through
542 shared library trampolines if stepping at the machine
545 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
547 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
550 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
552 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
553 (sh_stub_unwind_sniffer): New functions.
554 (sh_stub_unwind): New variable.
555 (sh_gdbarch_init): Wire everything.
557 2012-02-27 Pedro Alves <palves@redhat.com>
559 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
560 (linux_nat_post_attach_wait): Adjust to use
561 linux_proc_pid_is_stopped.
562 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
563 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
564 based on pid_is_stopped from both linux-nat.c and
565 gdbserver/linux-low.c, and renamed.
567 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
569 * remote.c (remote_watchpoint_addr_within_range): New function.
570 (init_remote_ops): Use it.
572 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
574 * target.h (target_watchpoint_addr_within_range): Document macro.
576 2012-02-24 Pedro Alves <palves@redhat.com>
578 * stack.c (set_last_displayed_sal): Issue internal_error instead
579 of warning, and issue it after clearing the last displayed sal.
581 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
582 Pedro Alves <palves@redhat.com>
584 * breakpoint.c (until_break_command): Install breakpoints after
585 all frame manipulations.
587 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
589 * remote.c (remote_supports_cond_breakpoints): New forward
591 (remote_add_target_side_condition): New function.
592 (remote_insert_breakpoint): Add target-side breakpoint
593 conditional if supported.
594 (remote_insert_hw_breakpoint): Likewise.
595 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
598 * target.c (update_current_target): Inherit
599 to_supports_evaluation_of_breakpoint_conditions.
600 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
602 * target.h (struct target_ops)
603 <to_supports_evaluation_of_breakpoint_conditions>: New field.
604 (target_supports_evaluation_of_breakpoint_conditions): New #define.
606 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
607 (condition_evaluation_both, condition_evaluation_auto,
608 condition_evaluation_host, condition_evaluation_target,
609 condition_evaluation_enums, condition_evaluation_mode_1,
610 condition_evaluation_mode): New static globals.
611 (translate_condition_evaluation_mode): New function.
612 (breakpoint_condition_evaluation_mode): New function.
613 (gdb_evaluates_breakpoint_condition_p): New function.
614 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
615 (mark_breakpoint_modified): New function.
616 (mark_breakpoint_location_modified): New function.
617 (set_condition_evaluation_mode): New function.
618 (show_condition_evaluation_mode): New function.
619 (bp_location_compare_addrs): New function.
620 (get_first_location_gte_addr): New helper function.
621 (set_breakpoint_condition): Free condition bytecode if locations
622 has become unconditional. Call mark_breakpoint_modified (...).
623 (condition_command): Call update_global_location_list (1) for
625 (breakpoint_xfer_memory): Use is_breakpoint (...).
626 (is_breakpoint): New function.
627 (parse_cond_to_aexpr): New function.
628 (build_target_condition_list): New function.
629 (insert_bp_location): Handle target-side conditional
630 breakpoints and call build_target_condition_list (...).
631 (update_inserted_breakpoint_locations): New function.
632 (insert_breakpoint_locations): Handle target-side conditional
634 (bpstat_check_breakpoint_conditions): Add comment.
635 (bp_condition_evaluator): New function.
636 (bp_location_condition_evaluator): New function.
637 (print_breakpoint_location): Print information on where the condition
639 (print_one_breakpoint_location): Likewise.
640 (init_bp_location): Call mark_breakpoint_location_modified (...) for
642 (force_breakpoint_reinsertion): New functions.
643 (update_global_location_list): Handle target-side breakpoint
645 Reinsert locations that are already inserted if conditions have
647 (bp_location_dtor): Free agent expression bytecode.
648 (disable_breakpoint): Call mark_breakpoint_modified (...).
649 Call update_global_location_list (...) with parameter 1 for breakpoints.
650 (disable_command): Call mark_breakpoint_location_modified (...).
651 Call update_global_location_list (...) with parameter 1 for breakpoints.
652 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
653 (enable_command): mark_breakpoint_location_modified (...).
654 (_initialize_breakpoint): Update documentation and add
655 condition-evaluation breakpoint subcommand.
657 * breakpoint.h: Include ax.h.
658 (condition_list): New data structure.
659 (condition_status): New enum.
660 (bp_target_info) <cond_list>: New field.
661 (bp_location) <condition_changed, cond_bytecode>: New fields.
662 (is_breakpoint): New prototype.
664 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
666 * remote.c (remote_state) <cond_breakpoints>: New field.
667 (PACKET_ConditionalBreakpoints): New enum.
668 (remote_cond_breakpoint_feature): New function.
669 (remote_protocol_features): Add new ConditionalBreakpoints entry.
670 (remote_supports_cond_breakpoints): New function.
671 (_initialize_remote): Add new packet configuration for
672 target-side conditional breakpoints.
674 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
676 * NEWS: Mention target-side conditional breakpoint support,
677 new condition-evaluation breakpoint subcommand and remote
680 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
682 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
685 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
687 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
688 (after_prologue): Remove.
690 2012-02-23 Tom Tromey <tromey@redhat.com>
692 * jv-valprint.c (java_val_print): Remove dead code.
694 2012-02-23 Tristan Gingold <gingold@adacore.com>
696 * ada-tasks.c (struct ada_tasks_inferior_data): Add
697 known_tasks_element and known_tasks_length fields.
698 (read_known_tasks_array): Change argument type. Use pointer type
699 and number of elements from DATA. Adjust.
700 (read_known_tasks_list): Likewise.
701 (get_known_tasks_addr): Remove.
702 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
703 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
704 type and array length. Merge former get_known_tasks_addr code.
706 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
709 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
710 it after set_momentary_breakpoint.
712 2012-02-22 Sterling Augustine <saugustine@google.com>
715 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
717 2012-02-22 Gary Benson <gbenson@redhat.com>
719 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
720 (find_slot_in_mapped_hash): Likewise.
722 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
725 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
726 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
727 * configure: Regenerate.
729 2012-02-21 Tristan Gingold <gingold@adacore.com>
730 Pedro Alves <palves@redhat.com>
732 * ia64-tdep.c: Do not include libunwind-ia64.h.
733 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
734 Include libunwind-ia64.h instead of libunwind.h.
735 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
736 for libunwind.h existence.
737 * configure, config.in: Regenerate.
739 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
741 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
742 instead of value_rtti_target_type.
743 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
744 instead of value_rtti_target_type.
745 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
746 value_rtti_target_type.
747 * valops.c (value_ind): Extract function readjust_indirect_value_type.
748 (value_rtti_target_type): Rename to ...
749 (value_rtti_indirect_type): ... here and make it indirect. Update
751 * value.c (readjust_indirect_value_type): New function.
752 (coerce_ref): Support for enclosing type setting for references
753 with readjust_indirect_value_type.
754 * value.h (readjust_value_type): New declaration.
755 (value_rtti_target_type): Rename to ...
756 (value_rtti_indirect_type): ... here.
758 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
760 * MAINTAINERS (Write After Approval): Add myself to the list.
762 2012-02-20 Doug Evans <dje@google.com>
764 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
765 Rename objfile_p_char parameter to objfilep.
766 (build_objfile_section_table): Result is now void. All callers
768 * objfiles.h (struct objfile): Tweak comments, whitespace.
769 (build_objfile_section_table): Update.
771 * elfread.c (elf_symfile_segments): Fix warning text.
773 2012-02-20 Tom Tromey <tromey@redhat.com>
776 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
777 particular set of file names once.
778 (dw2_map_symbol_filenames): Likewise.
780 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
783 * main.c (write_files): Remove the declaration.
784 (external_editor_command): Move the declaration ...
785 [GDBTK] (external_editor_command): ... here. Fix the comment.
787 2012-02-20 Tom Tromey <tromey@redhat.com>
789 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
792 2012-02-20 Tristan Gingold <gingold@adacore.com>
794 * darwin-nat.h (enum darwin_msg_state): Add comments.
796 2012-02-20 Tristan Gingold <gingold@adacore.com>
798 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
801 2012-20-18 Joel Brobecker <brobecker@adacore.com>
803 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
804 between function description and implementation.
806 2012-02-17 Tom Tromey <tromey@redhat.com>
809 * python/py-event.c (event_object_getset): New global.
810 (event_object_type): Reference it.
811 * python/py-type.c (field_object_getset): New global.
812 (field_object_type): Reference it.
813 * python/python-internal.h (gdb_py_generic_dict): Declare.
814 * python/py-utils.c (gdb_py_generic_dict): New function.
816 2012-02-17 Tristan Gingold <gingold@adacore.com>
818 * solib-darwin.c (darwin_current_sos): Check magic and filetype
820 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
822 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
823 TYPE_CALLING_CONVENTION annotation.
825 2012-02-16 Kevin Buettner <kevinb@redhat.com>
827 * MAINTAINERS: Add rx to target ISA section.
828 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
829 (ALLDEPFILES): Add rx-tdep.c.
831 2012-02-16 Tom Tromey <tromey@redhat.com>
833 * symfile.c (symbol_file_add_main_1): Use inferior's
835 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
836 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
838 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
840 (follow_exec): Use inferior's symfile_flags.
841 * inferior.h (struct inferior) <symfile_flags>: New field.
843 2012-02-16 Mike Frysinger <vapier@gentoo.org>
846 * remote-sim.c (gdbsim_create_inferior): Call error() when
847 sim_create_inferior() fails.
849 2012-02-16 Josh Matthews <josh@joshmatthews.net>
851 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
853 2012-02-16 Tom Tromey <tromey@redhat.com>
856 * thread.c (struct current_thread_cleanup) <was_removable>: New
858 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
859 (make_cleanup_restore_current_thread): Initialize new field.
861 2012-02-15 Kevin Buettner <kevinb@redhat.com>
863 * MAINTAINERS: Add rl78 to target ISA section.
864 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
865 (ALLDEPFILES): Add rl78-tdep.c.
866 * NEWS: Mention rl78 as a new target.
868 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
870 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
872 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
874 2012-02-15 Tom Tromey <tromey@redhat.com>
877 * infcmd.c (registers_info): Print just the current register's
880 2012-02-15 Tom Tromey <tromey@redhat.com>
882 * python/py-symbol.c (sympy_value): Use _().
884 2012-02-15 Pedro Alves <palves@redhat.com>
886 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
887 output to be like native targets'.
888 (remote_pid_to_str): Special case the null ptid.
890 2012-02-14 Stan Shebs <stan@codesourcery.com>
892 * NEWS: Mention enable count command.
893 * breakpoint.h (struct breakpoint): New field enable_count.
894 * breakpoint.c (enable_breakpoint_disp): Add count argument.
895 (enable_breakpoint): Add arg to call.
896 (struct disp_data): New struct.
897 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
898 (do_map_enable_once_breakpoint): Create a struct and pass it.
899 (do_map_enable_delete_breakpoint): Ditto.
900 (do_map_enable_count_breakpoint): New function.
901 (enable_count_command): New function.
902 (bpstat_stop_status): Decrement enable_count.
903 (print_one_breakpoint_location): Report enable count.
904 (_initialize_breakpoint): Add enable count command.
906 2012-02-14 Kevin Buettner <kevinb@redhat.com>
908 * rl78-tdep.c (reggroups.h): Include.
909 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
910 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
911 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
912 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
913 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
914 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
915 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
916 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
917 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
918 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
919 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
920 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
921 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
922 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
923 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
924 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
925 beginning of register list.
926 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
927 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
928 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
929 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
930 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
931 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
932 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
933 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
934 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
935 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
936 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
937 the pseudo registers. Rearrange other pseudo registers too so
938 that the bank registers appear at the end.
939 (rl78_register_type): Account for the fact that the byte sized
940 bank registers are now pseudo-registers.
941 (rl78_register_name): Rearrange the register name array. Make
942 initial set of raw banked registers inaccessible.
943 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
944 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
945 case for copying bytes back and forth between raw and pseudo
946 versions of the banked registers. Update other cases to reflect
948 (rl78_return_value): Update to account for changed names of
950 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
951 rl78_register_sim_regno().
953 2012-02-14 Kevin Buettner <kevinb@redhat.com>
955 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
956 the name parameter being passed to find_pc_partial_function().
958 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
960 * MAINTAINERS: Step down from being ia64 target maintainer.
962 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
964 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
967 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
969 Fix crash on loaded shlibs without loaded exec_bfd.
970 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
971 (set_section_command): Replace exec_bfd by p->bfd.
973 2012-02-10 Tom Tromey <tromey@redhat.com>
975 * linespec.c (decode_line_internal): Skip symtabs_from_filename
976 when we have a C++ qualified name.
978 2012-02-10 Pedro Alves <palves@redhat.com>
980 * inferior.c (inferior_pid_to_str): New.
981 (print_inferior, inferior_command): Use it.
983 2012-02-10 Pedro Alves <palves@redhat.com>
985 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
987 * configure: Regenerate.
989 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
991 * linespec.c (decode_line_internal): Fix comment correctness.
993 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
996 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
997 * amd64bsd-nat.c: Add support for debug registers (adapted from
999 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
1000 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
1001 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
1002 (amd64bsd_dr_get_control): New functions.
1003 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
1004 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
1005 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
1006 watchpoints initialization.
1007 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
1009 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1011 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
1013 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
1015 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1017 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
1019 2012-02-08 Joel Brobecker <brobecker@adacore.com>
1021 * language.h (symbol_name_cmp_ftype): Renames
1022 symbol_name_match_p_ftype.
1023 (struct language_defn)[la_get_symbol_name_cmp]: Renames
1024 la_get_symbol_name_match_p.
1025 * ada-lang.c (ada_get_symbol_name_cmp): Renames
1026 ada_get_symbol_name_match_p. Update comment.
1027 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
1028 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
1029 Renames symbol_name_match_p. Update field type.
1030 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
1031 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
1032 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
1033 "la_get_symbol_name_cmp" in comments.
1034 * language.c: Likewise.
1036 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1038 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
1040 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
1041 (amd64_sol2_gregset32_reg_offs): Likewise.
1043 2012-02-08 Joel Brobecker <brobecker@adacore.com>
1045 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
1046 of the returned BFD is allocated by GDB.
1048 2012-02-07 Tom Tromey <tromey@redhat.com>
1051 * python/python-internal.h (frame_object_type): Declare.
1052 * python/py-symbol.c (sympy_needs_frame): New function.
1053 (sympy_value): New function.
1054 (symbol_object_getset): Add "needs_frame".
1055 (symbol_object_methods): Add "value".
1056 * python/py-frame.c (frame_object_type): No longer static.
1058 2012-02-07 Tom Tromey <tromey@redhat.com>
1061 * python/py-symbol.c (sympy_line): New function.
1062 (symbol_object_getset): Add "line".
1064 2012-02-07 Tom Tromey <tromey@redhat.com>
1066 * charset.c (find_charset_names): Check 'in' against NULL.
1068 2012-02-06 Doug Evans <dje@google.com>
1070 * gdbtypes.h (struct main_type): Change type of name,tag_name,
1071 and fields.name members from char * to const char *. All uses updated.
1072 (struct cplus_struct_type): Change type of fn_fieldlists.name member
1073 from char * to const char *. All uses updated.
1074 (type_name_no_tag): Update.
1075 (lookup_unsigned_typename, lookup_signed_typename): Update.
1076 * gdbtypes.c (type_name_no_tag): Change result type
1077 from char * to const char *. All callers updated.
1078 (lookup_unsigned_typename, lookup_signed_typename): Change type of
1079 name parameter from char * to const char *.
1080 * symtab.h (struct cplus_specific): Change type of demangled_name
1081 member from char * to const char *. All uses updated.
1082 (struct general_symbol_info): Change type of name and
1083 mangled_lang.demangled_name members from char * to const char *.
1085 (symbol_get_demangled_name, symbol_natural_name): Update.
1086 (symbol_demangled_name, symbol_search_name): Update.
1087 * symtab.c (symbol_get_demangled_name): Change result type
1088 from char * to const char *. All callers updated.
1089 (symbol_natural_name, symbol_demangled_name): Ditto.
1090 (symbol_search_name): Ditto.
1091 (completion_list_add_name): Change type of symname,sym_text,
1092 text,word parameters from char * to const char *.
1093 (completion_list_objc_symbol): Change type of sym_text,
1094 text,word parameters from char * to const char *.
1095 * ada-lang.c (find_struct_field): Change type of name parameter
1096 from char * to const char *.
1097 (encoded_ordered_before): Similarly for N0,N1 parameters.
1098 (old_renaming_is_invisible): Similarly for function_name parameter.
1099 (ada_type_name): Change result type from char * to const char *.
1100 All callers updated.
1101 * ada-lang.h (ada_type_name): Update.
1102 * buildsym.c (hashname): Change type of name parameter
1103 from char * to const char *.
1104 * buildsym.h (hashname): Update.
1105 * dbxread.c (end_psymtab): Change type of include_list parameter
1106 from char ** to const char **.
1107 * dwarf2read.c (determine_prefix): Change result type
1108 from char * to const char *. All callers updated.
1109 * f-lang.c (find_common_for_function): Change type of name, funcname
1110 parameters from char * to const char *.
1111 * f-lang.c (find_common_for_function): Update.
1112 * f-valprint.c (list_all_visible_commons): Change type of funcname
1113 parameters from char * to const char *.
1114 * gdbarch.sh (static_transform_name): Change type of name parameter
1115 and result from char * to const char *.
1116 * gdbarch.c: Regenerate.
1117 * gdbarch.h: Regenerate.
1118 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
1119 of name parameter from char * to const char *.
1120 * jv-lang.c (java_primitive_type_from_name): Ditto.
1121 (java_demangled_signature_length): Similarly for signature parameter.
1122 (java_demangled_signature_copy): Ditto.
1123 (java_demangle_type_signature): Ditto.
1124 * jv-lang.h (java_primitive_type_from_name): Update.
1125 (java_demangle_type_signature): Update.
1126 * objc-lang.c (specialcmp): Change type of a,b parameters
1127 from char * to const char *.
1128 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
1129 from char * to const char *. All callers updated.
1130 * p-lang.h (is_pascal_string_type): Update.
1131 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
1132 of name parameter from char * to const char *.
1133 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
1134 * utils.c (fprintf_symbol_filtered): Ditto.
1135 * defs.h (fprintf_symbol_filtered): Update.
1136 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
1137 * stabsread.h (end_psymtab): Update.
1138 * stack.c (find_frame_funname): Change type of funname parameter
1139 from char ** to const char **.
1140 * stack.h (find_frame_funname): Update.
1141 * typeprint.c (type_print): Change type of varstring parameter
1142 from char * to const char *.
1143 * value.h (type_print): Update.
1144 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
1145 from char * to const char *. All callers updated.
1146 (xcoff_end_psymtab): Change type of include_list parameter
1147 from char ** to const char **. All callers updated.
1148 (swap_sym): Similarly for name parameter. All callers updated.
1149 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
1151 (process_coff_symbol): Use xstrdup.
1152 * stabsread.c (stabs_method_name_from_physname): Renamed from
1153 update_method_name_from_physname. Change result type from void
1154 to char *. All callers updated.
1155 (read_member_functions): In has_destructor case, store name in objfile
1156 obstack instead of malloc space. In !has_stub case, fix mem leak.
1158 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
1160 * configure: Rebuild.
1161 * configure.ac: Put -L../bfd and -L../libiberty at the front of
1164 2012-02-03 Kevin Buettner <kevinb@redhat.com>
1166 * configure.tgt (rl78-*-elf): New target.
1167 * rl78-tdep.c: New file.
1169 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1171 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
1172 and continue the loop. Add QUIT statement.
1174 2012-02-03 Tom Tromey <tromey@redhat.com>
1177 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
1178 bfd_lookup_symbol_from_symtab.
1179 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1180 gdb_bfd_lookup_symbol_from_symtab.
1182 2012-02-03 Joel Brobecker <brobecker@adacore.com>
1184 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
1185 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
1186 symbol. Add assertion that sym2 is never NULL.
1188 2012-02-02 Doug Evans <dje@google.com>
1190 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
1191 "name" parameter to const char ** from char **. All callers updated.
1192 (find_pc_partial_function): Ditto.
1193 (cache_pc_function_name): Change type to const char * from char *.
1194 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
1195 (find_pc_partial_function): Update.
1196 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
1197 type of "name" parameter to const char * from char *.
1199 * arch-utils.c (generic_in_solib_return_trampoline): Change
1200 type of "name" parameter to const char * from char *.
1201 * arch-utils.h (generic_in_solib_return_trampoline): Update.
1202 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
1203 type of "name" parameter to const char * from char *.
1204 * gdbarch.sh (in_solib_return_trampoline): Ditto.
1205 * gdbarch.c: Regenerate.
1206 * gdbarch.h: Regenerate.
1207 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
1208 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
1209 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
1210 type of "name" parameter to const char * from char *.
1211 * skip.c (skip_function_pc): Ditto.
1212 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
1213 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
1214 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
1215 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
1216 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
1217 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
1218 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
1219 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
1220 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
1222 2012-02-02 Pedro Alves <palves@redhat.com>
1224 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
1225 the current inferior has no execution. Make sure the current
1226 remote process matches gdb's current inferior.
1228 2012-02-02 Tom Tromey <tromey@redhat.com>
1231 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
1234 2012-02-02 Tom Tromey <tromey@redhat.com>
1237 * symtab.c (lookup_language_this): Set block_found.
1239 2012-02-01 Tom Tromey <tromey@redhat.com>
1242 * jit.c (struct jit_inferior_data): Rewrite.
1243 (struct jit_objfile_data): New.
1244 (get_jit_objfile_data): New function.
1245 (add_objfile_entry): Update.
1246 (jit_read_descriptor): Return int. Replace descriptor_addr
1247 argument with inf_data. Update. Don't call error.
1248 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
1250 (jit_inferior_init): Don't look up descriptor. Don't call error.
1251 (jit_reset_inferior_data_and_breakpoints)
1252 (jit_inferior_created_observer): Remove.
1253 (jit_inferior_exit_hook): Update.
1254 (jit_executable_changed_observer): Remove.
1255 (jit_event_handler): Update.
1256 (free_objfile_data): Reset inferior data if needed.
1257 (_initialize_jit): Update.
1259 2012-02-01 Tom Tromey <tromey@redhat.com>
1261 * jit.c (bfd_open_from_target_memory): Move higher in file.
1263 2012-02-01 Tristan Gingold <gingold@adacore.com>
1265 * libunwind-frame.c (libunwind_load): Display message if dlopen
1268 2012-02-01 Gary Benson <gbenson@redhat.com>
1270 * symtab.h (symbol_name_match_p_ftype): New typedef.
1271 (iterate_over_symbols): Use the above.
1272 * symtab.c (iterate_over_symbols): Likewise.
1273 * language.h (language_defn->la_iterate_over_symbols): Likewise.
1274 * ada-lang.c (ada_iterate_over_symbols): Likewise.
1275 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
1276 (iterate_name_matcher): Document return values.
1277 (collect_one_symbol): Likewise.
1278 (collect_function_symbols): Likewise.
1279 (collect_symbols): Likewise.
1281 2012-02-01 Tom Tromey <tromey@redhat.com>
1283 * ada-lang.c (resolve_subexp): Update.
1284 (ada_lookup_symbol_list): Add 'full_search' argument.
1285 (ada_iterate_over_symbols): Pass 0 as full_search argument to
1286 ada_lookup_symbol_list.
1287 (ada_lookup_encoded_symbol): Update.
1288 (get_var_value): Update.
1289 * ada-exp.y (block_lookup): Update.
1290 (write_var_or_type): Update.
1291 (write_name_assoc): Update.
1292 * ada-lang.h (ada_lookup_symbol_list): Update.
1294 2012-01-31 Tom Tromey <tromey@redhat.com>
1296 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
1299 2012-01-31 Doug Evans <dje@google.com>
1301 * symtab.h: Remove outdated comment.
1302 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
1304 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
1306 Fix build error in Darwin port.
1307 * i386-darwin-nat.c: Include i386-nat.h.
1309 2012-01-30 Tom Tromey <tromey@redhat.com>
1311 PR breakpoints/13568:
1312 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
1313 argument. Check for recursive includes.
1314 (dwarf_decode_macros): Create an include hash.
1316 2012-01-30 Michael Eager <eager@eagercon.com>
1318 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
1319 * ppc-linux-tdep.c: Include glibc-tdep.h.
1320 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
1321 (powerpc_linux_in_plt_stub): New function.
1322 (powerpc_linux_in_dynsym_resolve_code): New function.
1323 (ppc_skip_trampoline_code): New function.
1324 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
1325 Use glibc_skip_solib_resolver.
1327 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1329 Code cleanup: Make 1440 bytes of data segment read-only.
1330 * arch-utils.c (endian_enum): Make it const char *const [].
1331 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
1333 * breakpoint.c (always_inserted_enums): Likewise.
1334 * cli/cli-cmds.c (script_ext_enums): Likewise.
1335 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
1336 enumlist parameter const char *const *.
1337 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
1338 const char *const *.
1339 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
1340 parameter const char *const *.
1341 * cris-tdep.c (cris_modes): Make it const char *const [].
1342 * filesystem.c (target_file_system_kinds): Likewise.
1343 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
1344 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
1345 (can_use_displaced_stepping_enum, scheduler_enums)
1346 (exec_direction_names): Likewise.
1347 * language.c (_initialize_language): Make the type_or_range_names and
1348 case_sensitive_names variables const char *const [].
1349 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
1350 * python/python.c (python_excp_enums): Likewise.
1351 * remote.c (interrupt_sequence_modes): Likewise.
1352 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
1353 * serial.c (logbase_enums): Likewise.
1354 * sh-tdep.c (sh_cc_enum): Likewise.
1355 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
1357 * symtab.c (multiple_symbols_modes): Likewise.
1358 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
1360 * utils.c (internal_problem_modes): Likewise.
1362 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1364 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
1365 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
1368 2012-01-27 Doug Evans <dje@google.com>
1370 * configure.ac (with_python): Fix absolute path handling for win32.
1371 * configure: Regenerate.
1373 2012-01-26 Doug Evans <dje@google.com>
1375 * symtab.c: Whitespace cleanup, no code changes.
1377 * symtab.c (lookup_symbol_in_language): Improve comment.
1378 (lookup_symbol_aux): Fix comment.
1380 * psymtab.c (add_psymbol_to_list): Result is now "void".
1381 * psympriv.h (add_psymbol_to_list): Update.
1383 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
1385 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1387 Do not open script filenames twice.
1388 * cli/cli-cmds.c (source_script_from_stream): Pass to
1389 source_python_script also STREAM.
1390 * python/py-auto-load.c (source_section_scripts): Pass to
1391 source_python_script_for_objfile also STREAM.
1392 (auto_load_objfile_script): Pass to source_python_script_for_objfile
1394 * python/python-internal.h (source_python_script_for_objfile): New
1395 parameter file, rename parameter file to filename.
1396 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
1397 instead if !_WIN32. Update the function comment.
1398 (source_python_script, source_python_script_for_objfile)
1399 (source_python_script): New parameter file, rename parameter file to
1400 filename. Pass FILENAME to python_run_simple_file.
1401 * python/python.h (source_python_script): New parameter file, rename
1402 parameter file to filename.
1404 2012-01-26 Pedro Alves <palves@redhat.com>
1406 * corelow.c (core_has_fake_pid): Delete.
1407 (core_close): Delete references to `core_has_fake_pid'.
1408 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
1409 (core_open): Delete references to `core_has_fake_pid'.
1410 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
1413 2012-01-26 Joel Brobecker <brobecker@adacore.com>
1415 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
1416 Remove language parameter from name_matcher. Adjust the comment.
1417 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
1418 Remove language parameter.
1419 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
1420 * linespec.c (iterate_name_matcher): Likewise.
1421 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
1422 name_matcher. Adjust call accordingly.
1423 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
1424 (maintenance_check_symtabs): Adjust type of parameter "fun".
1425 * psymtab.h (maintenance_check_symtabs): Likewise.
1427 2012-01-26 Joel Brobecker <brobecker@adacore.com>
1429 * language.h (symbol_name_match_p_ftype): New typedef.
1430 (struct language_defn): Replace field la_symbol_name_compare
1431 by la_get_symbol_name_match_p.
1432 * ada-lang.c (ada_get_symbol_name_match_p): New function.
1433 (ada_language_defn): Use it.
1434 * linespec.c (struct symbol_matcher_data): New type.
1435 (iterate_name_matcher): Rewrite.
1436 (iterate_over_all_matching_symtabs): Pass a pointer to
1437 a symbol_matcher_data struct to expand_symtabs_matching
1438 instead of just the lookup name.
1439 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
1440 opencl-lang.c, p-lang.c, language.c: Delete field
1441 la_symbol_name_compare, and replace by NULL for new field
1442 la_get_symbol_name_match_p.
1443 * symfile.h (struct quick_symbol_functions): Update comment.
1445 2012-01-25 Tom Tromey <tromey@redhat.com>
1447 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
1450 2012-01-24 Tom Tromey <tromey@redhat.com>
1453 * solib.c (update_solib_list): Update the program space's
1454 added_solibs and deleted_solibs fields.
1455 * progspace.h (struct program_space) <added_solibs,
1456 deleted_solibs>: New fields.
1457 (clear_program_space_solib_cache): Declare.
1458 * progspace.c (release_program_space): Call
1459 clear_program_space_solib_cache.
1460 (clear_program_space_solib_cache): New function.
1461 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
1462 bpstat_stop_status. Use handle_solib_event.
1463 * breakpoint.c: Include gdb_regex.h.
1464 (print_solib_event): New function.
1465 (bpstat_print): Use print_solib_event.
1466 (bpstat_stop_status): Add special case for bp_shlib_event.
1467 (handle_solib_event): New function.
1468 (bpstat_what): Use handle_solib_event.
1469 (struct solib_catchpoint): New.
1470 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
1471 (breakpoint_hit_catch_solib, check_status_catch_solib)
1472 (print_it_catch_solib, print_one_catch_solib)
1473 (print_mention_catch_solib, print_recreate_catch_solib): New
1475 (catch_solib_breakpoint_ops): New global.
1476 (catch_load_or_unload, catch_load_command_1)
1477 (catch_unload_command_1): New functions.
1478 (internal_bkpt_check_status): Add special case for
1480 (internal_bkpt_print_it): Use print_solib_event.
1481 (initialize_breakpoint_ops): Initialize
1482 catch_solib_breakpoint_ops.
1483 (_initialize_breakpoint): Register "catch load" and "catch
1485 * breakpoint.h (handle_solib_event): Declare.
1486 * NEWS: Add entry for "catch load" and "catch unload".
1488 2012-01-24 Tom Tromey <tromey@redhat.com>
1490 * ada-lang.c: Include gdb_vecs.h.
1491 * charset.c: Include gdb_vecs.h.
1492 * tracepoint.h: Include gdb_vecs.h.
1493 * gdb_vecs.h: New file.
1495 2012-01-24 Pedro Alves <pedro@codesourcery.com>
1497 * breakpoint.c (breakpoint_hit_catch_fork)
1498 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
1499 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
1500 * infrun.c (inferior_has_forked, inferior_has_vforked)
1501 (inferior_has_execd, inferior_has_called_syscall): Delete.
1502 (handle_syscall_event): Get syscall_number from the execution
1503 control state's wait status.
1504 (wait_for_inferior): Don't clear syscall_number.
1506 2012-01-24 Pedro Alves <palves@redhat.com>
1508 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
1509 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
1510 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
1511 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
1513 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
1514 false for events other than TARGET_SIGNAL_TRAP.
1515 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
1517 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
1518 events other than TARGET_SIGNAL_TRAP.
1519 (tracepoint_breakpoint_hit): Add `ws' parameter.
1520 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
1522 (bpstat_stop_status): Same.
1523 (pc_at_non_inline_function): Same.
1524 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
1525 to pass the current event's waitstatus to bpstat_stop_status
1526 and pc_at_non_inline_function.
1528 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1531 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
1532 Update the function comment for it.
1533 (source_script_with_search): Call make_cleanup_fclose for STREAM.
1534 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
1537 2012-01-24 Pedro Alves <palves@redhat.com>
1539 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
1540 outside `bs->stop' block.
1541 (bpstat_what): Rework bp_shlib_event handling.
1542 (internal_bkpt_check_status): If the breakpoint is a
1543 bp_shlib_event, then set bs->stop and bs->print if
1544 stop_on_solib_events is set.
1546 2012-01-24 Gary Benson <gbenson@redhat.com>
1548 Delete #if 0'd out code.
1549 * stack.c (print_frame_label_vars): Remove.
1550 (catch_info): Likewise.
1551 (_initialize_stack): Remove "info catch" command.
1552 * NEWS: Mention the above.
1554 2012-01-24 Pedro Alves <palves@redhat.com>
1556 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
1558 (remote_notice_new_inferior): If the remote end doesn't support
1559 the multiprocess extensions, then the PID is fake.
1560 (add_current_inferior_and_thread): New.
1561 (remote_start_remote): Use it.
1562 (extended_remote_attach_1): Adjust.
1563 (extended_remote_create_inferior_1): Use
1564 add_current_inferior_and_thread.
1566 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1568 Fix watchpoints to be specific for each inferior.
1569 * breakpoint.c (watchpoint_in_thread_scope): Verify also
1570 current_program_space.
1571 * i386-nat.c (i386_inferior_data_cleanup): New.
1572 (i386_inferior_data_get): Replace variable inf_data_local by an
1574 (i386_use_watchpoints): Initialize i386_inferior_data.
1575 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
1576 specific iterate_over_lwps.
1578 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1580 Fix watchpoints across inferior fork.
1581 * amd64-linux-nat.c (update_debug_registers_callback): Update the
1582 comment for linux_nat_iterate_watchpoint_lwps.
1583 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
1584 linux_nat_iterate_watchpoint_lwps.
1585 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
1586 * i386-linux-nat.c (update_debug_registers_callback): Update the
1587 comment for linux_nat_iterate_watchpoint_lwps.
1588 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
1589 linux_nat_iterate_watchpoint_lwps.
1590 (i386_linux_prepare_to_resume): New comment on Linux kernel.
1591 * i386-nat.c: Include inferior.h.
1592 (dr_mirror): Remove.
1593 (i386_inferior_data, struct i386_inferior_data)
1594 (i386_inferior_data_get): New.
1595 (i386_debug_reg_state): Use i386_inferior_data_get.
1596 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
1597 (i386_insert_watchpoint, i386_remove_watchpoint)
1598 (i386_stopped_data_address, i386_insert_hw_breakpoint)
1599 (i386_remove_hw_breakpoint): New variable state, use
1600 i386_debug_reg_state instead of DR_MIRROR.
1601 * linux-nat.c (delete_lwp): New declaration.
1602 (num_lwps): Move here from downwards.
1603 (delete_lwp_cleanup): New.
1604 (linux_child_follow_fork): Create new child_lp, call
1605 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
1607 (num_lwps): Move upwards.
1608 (linux_nat_iterate_watchpoint_lwps): New.
1609 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
1610 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
1612 2012-01-24 Joel Brobecker <brobecker@adacore.com>
1616 2012-01-23 Pedro Alves <palves@redhat.com>
1618 * top.c (caution): Rename to ...
1619 (confirm): ... this.
1620 (show_caution): Rename to ...
1621 (show_confirm): ... this.
1622 (quit_cover): Adjust.
1623 (init_main): Adjust.
1624 * top.h (caution): Rename to ...
1625 (confirm): ... this.
1626 * utils.c (internal_vproblem, defaulted_query): Adjust.
1628 2012-01-23 Pedro Alves <palves@redhat.com>
1630 * top.c (caution): Update comment.
1631 (execute_command): Don't consider the current value of `caution'.
1633 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1635 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
1637 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
1639 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
1640 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
1641 * target.c (target_fileio_pwrite): Remove buffer address from
1643 (target_fileio_pread): Likewise.
1645 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1647 * NEWS: Document remote "info proc" and "generate-core-file".
1649 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1651 * gdbarch.sh (find_memory_regions): New callback.
1652 * gdbarch.c, gdbarch.h: Regenerate.
1654 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
1655 callback before falling back to target method.
1657 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
1658 (linux_target_install_ops): No longer install it.
1660 * linux-tdep.c (linux_find_memory_regions): New function.
1661 (linux_init_abi): Install it.
1663 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1665 * gdbarch.sh (make_corefile_notes): New architecture callback.
1666 * gdbarch.c: Regenerate.
1667 * gdbarch.h: Likewise.
1669 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
1670 before target_make_corefile_notes. If NULL is returned, the
1671 target does not support core file generation.
1673 * linux-nat.c: Include "linux-tdep.h".
1674 (find_signalled_thread, find_stop_signal): Remove.
1675 (linux_nat_do_thread_registers): Likewise.
1676 (struct linux_nat_corefile_thread_data): Likewise.
1677 (linux_nat_corefile_thread_callback): Likewise.
1678 (iterate_over_spus): Likewise.
1679 (struct linux_spu_corefile_data): Likewise.
1680 (linux_spu_corefile_callback): Likewise.
1681 (linux_spu_make_corefile_notes): Likewise.
1682 (linux_nat_collect_thread_registers): New function.
1683 (linux_nat_make_corefile_notes): Replace contents by call to
1684 linux_make_corefile_notes passing linux_nat_collect_thread_registers
1685 as native-only callback.
1687 * linux-tdep.h: Include "bfd.h".
1688 (struct regcache): Add forward declaration.
1689 (linux_collect_thread_registers_ftype): New typedef.
1690 (linux_make_corefile_notes): Add prototype.
1691 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
1692 "regset.h", and "elf-bfd.h".
1693 (find_signalled_thread, find_stop_signal): New functions.
1694 (linux_spu_make_corefile_notes): Likewise.
1695 (linux_collect_thread_registers): Likewise.
1696 (struct linux_corefile_thread_data): New data structure.
1697 (linux_corefile_thread_callback): New funcion.
1698 (linux_make_corefile_notes): Likewise.
1699 (linux_make_corefile_notes_1): Likewise.
1700 (linux_init_abi): Install it.
1702 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1704 * gdbarch.sh (info_proc): New callback.
1705 * gdbarch.c, gdbarch.h: Regenerate.
1707 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
1708 before falling back to the target info_proc callback.
1710 * linux-nat.c: Do not include "cli/cli-utils.h".
1711 (linux_nat_info_proc): Remove.
1712 (linux_target_install_ops): No longer install it.
1714 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
1715 (read_mapping): New function.
1716 (linux_info_proc): Likewise.
1717 (linux_init_abi): Install it.
1719 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1721 * defs.h (enum info_proc_what): Moved here from linux-nat.c
1722 * infcmd.c: (info_proc_cmd_1): New function.
1723 (info_proc_cmd): New function, moved here from equivalent routine
1724 orignally in linux-nat.c.
1725 (info_proc_cmd_mappings): Likewise.
1726 (info_proc_cmd_stat): Likewise.
1727 (info_proc_cmd_status): Likewise.
1728 (info_proc_cmd_cwd): Likewise.
1729 (info_proc_cmd_cmdline): Likewise.
1730 (info_proc_cmd_exe): Likewise.
1731 (info_proc_cmd_all): Likewise.
1732 (_initialize_infcmd): Install "info proc" command and subcommands.
1734 * target.h (struct target_ops): Add to_info_proc.
1735 (target_info_proc): Add prototype.
1736 * target.c (target_info_proc): New function.
1738 * procfs.c (procfs_info_proc): Add prototype.
1739 (info_proc_cmd): Rename into ...
1740 (procfs_info_proc): ... this. Update argument types as appropriate
1741 for a to_info_proc implementation. Handle "what" argument.
1742 (procfs_target): Install procfs_info_proc.
1743 (_initialize_procfs): No longer install "info proc" command.
1745 * linux-nat.c: (enum info_proc_what): Remove.
1746 (linux_nat_info_proc_cmd_1): Rename into ...
1747 (linux_nat_info_proc): ... this. Update argument types as appropriate
1748 for a to_info_proc implementation.
1749 (linux_nat_info_proc_cmd): Remove.
1750 (linux_nat_info_proc_cmd_mappings): Likewise.
1751 (linux_nat_info_proc_cmd_stat): Likewise.
1752 (linux_nat_info_proc_cmd_status): Likewise.
1753 (linux_nat_info_proc_cmd_cwd): Likewise.
1754 (linux_nat_info_proc_cmd_cmdline): Likewise.
1755 (linux_nat_info_proc_cmd_exe): Likewise.
1756 (linux_nat_info_proc_cmd_all): Likewise.
1757 (linux_target_install_ops): Install linux_nat_info_proc.
1758 (_initialize_linux_nat): No longer install "info proc" command
1761 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1763 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
1764 * config.in, configure: Regenerate.
1766 * target.h (struct target_ops): Add to_fileio_readlink.
1767 (target_fileio_readlink): Add prototype.
1768 * target.c (target_fileio_readlink): New function.
1770 * inf-child.c: Conditionally include <sys/param.h>.
1771 (inf_child_fileio_readlink): New function.
1772 (inf_child_target): Install it.
1774 * remote.c (PACKET_vFile_readlink): New enum value.
1775 (remote_hostio_readlink): New function.
1776 (init_remote_ops): Install it.
1777 (_initialize_remote): Handle vFile:readlink packet type.
1779 2012-01-20 Pedro Alves <palves@redhat.com>
1780 Ulrich Weigand <ulrich.weigand@linaro.org>
1782 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
1783 * config.in, configure: Regenerate.
1785 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
1786 to_fileio_pread, to_fileio_close, to_fileio_unlink.
1787 (target_fileio_open): Add prototype.
1788 (target_fileio_pwrite): Likewise.
1789 (target_fileio_pread): Likewise.
1790 (target_fileio_close): Likewise.
1791 (target_fileio_unlink): Likewise.
1792 (target_fileio_read_alloc): Likewise.
1793 (target_fileio_read_stralloc): Likewise.
1795 * target.c: Include "gdb/fileio.h".
1796 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
1797 (default_fileio_target): New function.
1798 (target_fileio_open): Likewise.
1799 (target_fileio_pwrite): Likewise.
1800 (target_fileio_pread): Likewise.
1801 (target_fileio_close): Likewise.
1802 (target_fileio_unlink): Likewise.
1803 (target_fileio_close_cleanup): Likewise.
1804 (target_fileio_read_alloc_1): Likewise.
1805 (target_fileio_read_alloc): Likewise.
1806 (target_fileio_read_stralloc): Likewise.
1808 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
1809 <fcntl.h>, and <unistd.h>.
1810 (inf_child_fileio_open_flags_to_host): New function.
1811 (inf_child_errno_to_fileio_error): Likewise.
1812 (inf_child_fileio_open): Likewise.
1813 (inf_child_fileio_pwrite): Likewise.
1814 (inf_child_fileio_pread): Likewise.
1815 (inf_child_fileio_close): Likewise.
1816 (inf_child_fileio_unlink): Likewise.
1817 (inf_child_target): Install to_fileio routines.
1819 * remote.c (init_remote_ops): Install to_fileio routines.
1821 2012-01-20 Pedro Alves <palves@redhat.com>
1822 Ulrich Weigand <ulrich.weigand@linaro.org>
1824 * remote.c (remote_multi_process_p): Only check for multi-process
1825 protocol feature, do not check for extended protocol.
1826 (remote_supports_multi_process): Check for extended protocol here.
1827 (set_general_process): Likewise.
1828 (extended_remote_kill): Likewise.
1829 (remote_pid_to_str): Likewise.
1830 (remote_query_supported): Always query multiprocess mode.
1832 2012-01-20 Pedro Alves <palves@redhat.com>
1833 Ulrich Weigand <ulrich.weigand@linaro.org>
1835 * inferior.h (struct inferior): Add fake_pid_p.
1836 * inferior.c (exit_inferior_1): Clear fake_pid_p.
1837 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
1838 magic_null_ptid since the remote side doesn't provide a real PID.
1840 2012-01-19 Tom Tromey <tromey@redhat.com>
1842 * NEWS: Combine the two Python sections.
1844 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1846 * target.h (target_close): Update comment on the target's unpush state.
1848 2012-01-19 Pedro Alves <palves@redhat.com>
1850 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
1851 linux_nat_async directly instead of going through the target
1853 * target.c (unpush_target): Close target after unpushing it, not
1856 2012-01-19 Gary Benson <gbenson@redhat.com>
1858 * mdebugread.c (sort_blocks): Replace integer constants with ones
1859 derived from FIRST_LOCAL_BLOCK.
1861 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
1862 Jan Kratochvil <jan.kratochvil@redhat.com>
1865 * symfile.c (find_separate_debug_file): New function.
1866 (terminate_after_last_dir_separator): Likewise.
1867 (find_separate_debug_file_by_debuglink): Also try realpath.
1868 * configure.ac (AC_CHECK_FUNCS): Add lstat.
1869 * configure: Regenerate.
1870 * config.in: Regenerate.
1872 2012-01-18 Doug Evans <dje@google.com>
1874 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
1875 (main.o): Remove rule.
1876 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
1877 (--with-sysroot): Rewrite.
1878 * configure: Regenerate.
1879 * config.in: Regenerate.
1881 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
1883 * parse.c (initialize_expout): New function.
1884 (reallocate_expout): Likewise.
1885 (parse_exp_in_context): Use `initialize_expout' and
1886 `reallocate_expout' when appropriate.
1888 2012-01-18 Pedro Alves <palves@redhat.com>
1890 * record.c (struct record_breakpoint, record_breakpoint_p)
1891 (record_breakpoints): New.
1892 (record_insert_breakpoint, record_remove_breakpoint): Manage
1893 record breakpoints list. Only remove breakpoints from the
1894 inferior if they had been inserted there in the first place.
1896 2012-01-17 Doug Evans <dje@google.com>
1898 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
1899 if we know we don't have a file name to look for.
1901 2012-01-17 Pedro Alves <palves@redhat.com>
1903 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
1904 the frame's stop reason is UNWIND_UNAVAILABLE.
1906 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1908 Fix compilation error.
1909 * m2-exp.y (yyerror): Use ANSI C prototype.
1911 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
1913 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
1914 (growbuf_by_size): Likewise.
1915 (yyerror): Likewise.
1916 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
1917 (modblock): Remove variable (was #if 0'ed).
1918 (parse_number): Convert prototype from K&R to ANSI C.
1919 (yyerror): Likewise.
1920 * objc-exp.y (parse_number): Likewise.
1921 (yyerror): Likewise.
1922 (yylex): Remove #if 0'ed code.
1923 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
1924 (yyerror): Likewise.
1926 2012-01-16 Tom Tromey <tromey@redhat.com>
1929 * symtab.h (compare_filenames_for_search): Declare.
1930 * symtab.c (compare_filenames_for_search): New function.
1931 (iterate_over_some_symtabs): Use it.
1932 * symfile.h (struct quick_symbol_functions)
1933 <map_symtabs_matching_filename>: Change spec.
1934 * psymtab.c (partial_map_symtabs_matching_filename): Use
1935 compare_filenames_for_search. Update for new spec.
1936 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
1937 compare_filenames_for_search. Update for new spec.
1938 * breakpoint.c (clear_command): Use compare_filenames_for_search.
1940 2012-01-16 Tom Tromey <tromey@redhat.com>
1943 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
1944 (struct main_type) <flag_flag_enum>: New field.
1945 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
1946 * NEWS: Add entries.
1947 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
1949 * python/lib/gdb/printing.py (_EnumInstance): New class.
1950 (FlagEnumerationPrinter): Likewise.
1952 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
1954 * breakpoint.c (create_sals_from_address_default): New function.
1955 (create_breakpoints_sal_default): Likewise.
1956 (decode_linespec_default): Likewise.
1957 (is_marker_spec): Removed.
1958 (strace_marker_p): New function.
1959 (init_breakpoint_sal): Using `strace_marker_p' instead of
1961 (create_breakpoint): Call method `create_sals_from_address' from
1962 breakpoint_ops, replacing code that created SALs conditionally
1963 on the type of the breakpoint. Call method `create_breakpoints_sal',
1964 replacing code that created breakpoints conditionally on the type
1966 (base_breakpoint_create_sals_from_address): New function.
1967 (base_breakpoint_create_breakpoints_sal): Likewise.
1968 (base_breakpoint_decode_linespec): Likewise.
1969 (base_breakpoint_ops): Add methods
1970 `base_breakpoint_create_sals_from_address',
1971 `base_breakpoint_create_breakpoints_sal' and
1972 `base_breakpoint_decode_linespec'.
1973 (bkpt_create_sals_from_address): New function.
1974 (bkpt_create_breakpoints_sal): Likewise.
1975 (bkpt_decode_linespec): Likewise.
1976 (tracepoint_create_sals_from_address): Likewise.
1977 (tracepoint_create_breakpoints_sal): Likewise.
1978 (tracepoint_decode_linespec): Likewise.
1979 (strace_marker_create_sals_from_address): Likewise.
1980 (strace_marker_create_breakpoints_sal): Likewise.
1981 (strace_marker_decode_linespec): Likewise.
1982 (strace_marker_breakpoint_ops): New variable.
1983 (addr_string_to_sals): Remove `marker_spec'. Call method
1984 `decode_linespec' from breakpoint_ops, replacing code that decoded
1985 an address string into a SAL. Use `strace_marker_p' instead of
1987 (strace_command): Decide whether we are dealing with a static
1988 tracepoint with marker or not. Use the appropriate breakpoint_ops.
1989 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
1990 * breakpoint.h (linespec_result, linespec_sals): New forward
1992 (breakpoint_ops) <create_sals_from_address>,
1993 <create_breakpoints_sal>, <decode_linespec>: New methods.
1995 2012-01-14 Doug Evans <dje@google.com>
1997 * NEWS: Update text for "maint set python print-stack".
1998 It is deprecated in gdb 7.4 and deleted in 7.5.
2000 2012-01-13 Eli Zaretskii <eliz@gnu.org>
2002 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
2005 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2007 * configure: Regenerate.
2008 * config.in: Regenerate.
2010 2012-01-12 Keith Seitz <keiths@redhat.com>
2013 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
2014 (ANONYMOUS_UNION_NAME): Define.
2015 (is_path_expr_parent): New function.
2016 (get_path_expr_parent): New function.
2017 (is_anonymous_child): New function.
2018 (create_child_with_value): If the child is anonymous and without
2019 a name, assign an object name to it.
2020 (c_describe_child): Use get_path_expr_parent to determine
2021 the parent expression.
2022 If there field represents an anonymous struct or union and
2023 has no name, set an appropriate display name and expression.
2024 (cplus_describe_child): Likewise.
2026 2012-01-12 Pedro Alves <palves@redhat.com>
2028 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
2029 available when %ebp is found to be zero (outermost).
2031 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
2033 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
2034 an internal gdb_static_assert.
2035 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
2037 2012-01-11 Tom Tromey <tromey@redhat.com>
2040 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
2041 catch" and "catch throw".
2043 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
2045 * blockframe.c (block_innermost_frame): Start search from selected
2046 frame, if present, or otherwise the current frame.
2048 * c-exp.y (variable): Update innermost_block for
2049 'block COLONCOLON NAME' clause.
2050 * m2-exp.y (variable): Ditto.
2051 * objc-exp.y (variable): Ditto.
2053 2012-01-10 Tom Tromey <tromey@redhat.com>
2056 * python/python.c (finish_python_initialization): Set sys.argv.
2058 2012-01-10 Doug Evans <dje@google.com>
2060 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
2061 "want_line_info". All callers updated.
2062 (dwarf_decode_lines_1): New function.
2063 (handle_DW_AT_stmt_list): Add function comment.
2064 New arg "want_line_info". All callers updated.
2065 (read_file_scope,read_type_unit_scope): Move comment from
2066 handle_DW_AT_stmt_list to here.
2068 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2070 Fix regression after libiberty/ update for GCC PR 6057 and others.
2071 * c-exp.y (operator) <OPERATOR DELETE>
2072 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
2073 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
2074 (make_builtin_type, make_name): New variable i, add gdb_assert.
2075 (operator) <OPERATOR NEW>: Update ARGS to 3.
2076 (operator) <OPERATOR DELETE>: Add trailing space.
2077 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
2078 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
2079 * cp-support.c (cp_canonicalize_string): Check NULL from
2080 cp_comp_to_string, call warning and return.
2082 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2084 Fix duplicate .o files after omitting libbfd.a.
2085 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
2086 (SFILES): Add corelow.c.
2087 (COMMON_OBS): Add corelow.o.
2088 (ALLDEPFILES): Remove corelow.c.
2089 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
2090 * config/alpha/alpha-osf3.mh: Likewise.
2091 * config/alpha/fbsd.mh: Likewise.
2092 * config/arm/nbsdaout.mh: Likewise.
2093 * config/arm/nbsdelf.mh: Likewise.
2094 * config/i386/i386gnu.mh: Likewise.
2095 * config/ia64/hpux.mh: Likewise.
2096 * config/ia64/linux.mh: Likewise.
2097 * config/m32r/linux.mh: Likewise.
2098 * config/m68k/linux.mh: Likewise.
2099 * config/mips/irix5.mh: Likewise.
2100 * config/mips/irix6.mh: Likewise.
2101 * config/pa/hpux.mh: Likewise.
2102 * config/pa/linux.mh: Likewise.
2103 * config/powerpc/aix.mh: Likewise.
2104 * config/sparc/linux.mh: Likewise.
2105 * config/sparc/linux64.mh: Likewise.
2106 * config/sparc/sol2.mh: Likewise.
2107 * config/vax/vax.mh: Likewise.
2108 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
2109 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
2110 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
2111 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
2112 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
2113 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
2114 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
2115 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
2116 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
2117 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
2118 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
2119 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
2120 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
2121 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
2122 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
2123 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
2124 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
2125 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
2126 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
2127 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
2128 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
2129 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
2130 corelow.o from gdb_target_obs.
2131 * corefile.c (core_target): Update the comment on NULL value.
2132 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
2133 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
2134 MATCHES. Drop YUMMY set on NULL.
2135 (core_close): Do not call exit_inferior_silent on zero PID. Do not
2136 reclaim CORE_DATA if it is already NULL.
2138 2012-01-09 Doug Evans <dje@google.com>
2140 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
2141 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
2143 2012-01-09 Keith Seitz <keiths@redhat.com>
2145 * breakpoint.c (wrapper.h): Don't include.
2147 2012-01-09 Keith Seitz <keiths@redhat.com>
2149 * Makefile.in (SFILES): Remove wrapper.c.
2150 (HFILES_NO_SRCDIR): Remove wrapper.h.
2151 (COMMON_OBS): Remove wrapper.o.
2152 * cli/cli-interp.c: Don't inlude wrapper.h.
2153 * corelow.c: Likewise.
2154 (core_open): Replace gdb_target_find_new_threads with
2155 TRY_CATCH around target_find_new_threads.
2156 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
2157 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
2158 * varobj.c (varobj_create): Likewise for parse_exp_1 and
2159 evaluate_expression.
2160 (varobj_set_value): Likewise for evaluate_expression and
2162 (install_new_variable): Likewise for value_fetch_lazy.
2163 (adjust_value_for_child_access): Likewise for value_ind.
2164 (c_describe_child): Likewise for value_subscript and
2166 (c_value_of_root): Likewise for evaluate_expression.
2167 * wrapper.c: Remove.
2168 * wrapper.h: Remove.
2170 2012-01-09 Doug Evans <dje@google.com>
2172 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
2173 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
2174 "abfd" args with "section". All callers updated.
2175 Error checking code moved ...
2176 (error_check_comp_unit_head): ... here. New function.
2177 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
2178 Delete arg "abfd". New arg "type_offset". All callers updated.
2179 (create_debug_types_hash_table): Simplify by using
2180 read_and_check_type_unit_head.
2182 * parser-defs.h (namecopy): Delete.
2183 * parse.c (namecopy, namecopy_size): Move into copy_name.
2185 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2187 Partially fix duplicate .o files after omitting libbfd.a.
2188 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
2189 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2190 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
2191 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2192 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
2193 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
2194 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2196 2012-01-09 Pedro Alves <palves@redhat.com>
2198 * MAINTAINERS: Update my email address.
2200 2012-01-08 Doug Evans <dje@google.com>
2202 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
2203 n_type_units. Rename type_comp_units to all_type_units.
2205 (add_signatured_type_cu_to_table): Renamed from
2206 add_signatured_type_cu_to_list. All callers updated.
2208 * gdbtypes.h (struct cplus_struct_type): Delete member
2209 nfn_fields_total. All uses removed.
2211 2012-01-06 Doug Evans <dje@google.com>
2213 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
2215 (dwarf2_find_comp_unit): Delete.
2216 (process_psymtab_comp_unit): Make result "void".
2217 Delete args buffer, info_ptr, buffer_size, and replace with
2218 "section". All callers updated.
2219 (dwarf2_build_psymtabs_hard): Simplify.
2221 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
2222 Thiago Jung Bauermann <bauerman@br.ibm.com>
2224 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
2225 before `struct gdb_exception'.
2226 * breakpoint.c (update_global_location_list_nothrow)
2227 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
2228 * cp-abi.c (value_rtti_type): Likewise.
2229 * cp-support.c (cp_validate_operator): Likewise.
2230 * infrun.c (insert_exception_resume_breakpoint)
2231 (check_exception_resume, keep_going): Likewise.
2232 * mi-interp.c (mi_breakpoint_created)
2233 (mi_breakpoint_modified): Likewise.
2234 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
2235 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
2236 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
2238 2012-01-05 Doug Evans <dje@google.com>
2240 * dwarf2read.c (statement_prologue): Delete, unused.
2242 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
2243 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
2245 * dwarf2read.c (comp_unit_header): Delete, unused.
2247 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
2249 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
2250 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
2252 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
2254 * infrun.c (normal_stop): Don't skip calling the normal_stop
2255 observers if the thread was doing a multi-step, but stopped for
2256 some reason other than stepping.
2258 2012-01-05 Pedro Alves <alves.ped@gmail.com>
2260 * cli/cli-decode.h: Add comments.
2261 (CMD_LIST_AMBIGUOUS): Moved to command.h
2262 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2263 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
2264 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
2265 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
2266 (add_com, add_com_alias, add_info, add_info_alias)
2267 (complete_on_cmdlist, complete_on_enum, help_list): Remove
2269 * command.h: Add and adjust comments.
2270 (CMD_LIST_AMBIGUOUS): Moved here.
2271 (help_cmd, help_cmd_list): Delete declarations.
2273 2012-01-04 Doug Evans <dje@google.com>
2275 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
2276 All callers updated.
2277 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
2278 Replace all arguments with "per_cu". All callers updated.
2280 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
2282 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
2283 New arg "per_cu". All callers updated.
2285 Delete #if 0'd out code.
2286 * language.c (binop_result_type): Delete.
2287 (simple_type, ordered_type, same_type, integral_type): Delete.
2288 (numeric_type, character_type, string_type, boolean_type): Delete.
2289 (float_type, structured_type): Delete.
2290 * language.h: Update.
2292 2012-01-04 Tom Tromey <tromey@redhat.com>
2294 * python/py-value.c (valpy_binop): Initialize 'res_val'.
2296 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2298 * corefile.c (close_exec_file): Delete.
2299 (reopen_exec_file): Remove commented out code that seems related
2300 to close_exec_file, which is being deleted here.
2301 * inferior.h (close_exec_file): Delete.
2302 * fork-child.c (fork_inferior): Remove call to fork_inferior.
2304 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2306 * ada-lang.c: #include "cli/cli-utils.h".
2307 (get_selections): Use skip_spaces.
2308 (ada_get_next_arg): Use skip_spaces and skip_to_space.
2309 (catch_ada_exception_command_split): Use skip_spaces.
2310 (ada_decode_assert_location): Likewise.
2312 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2314 * linespec.c (decode_line_internal): Check for C++ or Java
2315 compound constructs only if the current language is C, C++
2318 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2321 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2322 Joel Brobecker <brobecker@adacore.com>
2323 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
2324 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
2326 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
2327 fall through into AT_ENTRY_POINT.
2328 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
2330 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
2331 PPC_INSN_SIZE skip to 3 times.
2333 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2335 * linespec.c (add_minsym): Preserve function descriptors.
2337 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2339 * breakpoint.c (all_locations_are_pending): Consider locations
2340 in program spaces executing during startup pending as well.
2342 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2344 Copyright year update in most files of the GDB Project.
2346 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2348 * copyright.sh: Delete.
2349 * copyright.py: Rewrite.
2351 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2353 * gnulib/extra/update-copyright: New file, imported from gnulib.
2355 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2357 * README (Copyright and License Notices): New section.
2359 2012-01-03 Tom Tromey <tromey@redhat.com>
2362 * python/py-value.c (valpy_dereference, valpy_get_address
2363 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
2364 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
2365 (valpy_absolute, valpy_richcompare): Free intermediate values.
2367 2011-01-03 Joel Brobecker <brobecker@adacore.com>
2369 * ada-lang.c: Reformat the copyright notice.
2371 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2373 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
2374 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
2375 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
2376 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
2377 Revert this part of:
2378 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2379 Build gdb directly from *.o files not using libgdb.a.
2380 * Makefile.in (COMMON_OBS): Remove solib-target.o.
2382 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2384 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
2385 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
2386 Reformat the copyright header.
2388 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2390 Revert this part of:
2391 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2392 Remove the gdbtui binary.
2393 * gdb.c (main): Remove args.interpreter_p initialization.
2394 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
2395 * main.h (struct captured_main_args): Remove interpreter_p.
2397 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2399 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
2401 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2403 * top.c (print_gdb_version): Update copyright year.
2405 2012-01-02 Yao Qi <yao@codesourcery.com>
2407 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
2409 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2410 Joel Brobecker <brobecker@adacore.com>
2412 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
2413 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
2415 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
2416 fall through into AT_ENTRY_POINT.
2417 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
2419 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
2420 PPC_INSN_SIZE skip to 3 times.
2422 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2424 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
2426 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
2428 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2430 Build gdb directly from *.o files not using libgdb.a.
2431 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
2432 (COMMON_OBS): Remove solib-target.o.
2433 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
2434 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
2435 (LIBGDB_OBS, libgdb.a): Move it above.
2436 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
2437 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
2438 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
2439 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
2440 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
2441 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
2442 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
2443 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
2444 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
2445 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
2446 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2447 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
2448 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
2449 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
2450 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
2451 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
2452 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
2453 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
2454 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
2455 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
2456 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
2457 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
2458 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
2459 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
2460 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
2461 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
2462 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
2464 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2466 Remove the gdbtui binary.
2467 * .gitignore (/gdbtui): Remove.
2468 * Makefile.in (TUI): Remove.
2469 (SUBDIR_TUI_OBS): Remove tui-main.o.
2470 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
2471 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
2472 (tui-main.o): Remove.
2473 (all_object_files): Remove tui-main.o.
2474 * NEWS: New note for the gdbtui removal.
2475 * configure: Rebuilt.
2476 * configure.ac: No longer add all-tui, clean-tui, install-tui and
2477 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
2478 CONFIG_UNINSTALL respectively.
2479 * gdb.c (main): Remove args.interpreter_p initialization.
2480 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
2481 * main.h (struct captured_main_args): Remove interpreter_p.
2482 * tui/tui-main.c: Remove.
2484 2012-01-01 Doug Evans <dje@google.com>
2486 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
2487 (dwarf2_physname, read_import_statement): Ditto.
2488 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
2489 (process_structure_scope read_subroutine_type): Ditto.
2490 (read_typedef, load_partial_dies, read_partial_die): Ditto.
2491 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
2492 (dwarf2_fetch_die_location_block): Ditto.
2493 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
2495 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
2496 All callers updated.
2497 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
2498 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
2499 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
2501 * dwarf2read.c (load_cu): Move assert to more useful location.
2503 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
2504 All callers updated.
2506 * dwarf2read.c (dwarf2_per_objfile): Add comment.
2507 (dwarf2_elf_names): Minor reformat.
2508 (dwarf2_per_cu_data): Tweak comment.
2509 (dwarf2_read_section): Fix comment.
2510 (create_all_comp_units): Fix comment.
2511 (load_full_comp_unit): Fix comment.
2512 (process_full_comp_unit): Fix comment.
2513 (read_signatured_type): Fix comment.
2515 For older changes see ChangeLog-2011.
2521 version-control: never