1 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
3 * mips-tdep.c (mips32_bc1_pc): New function.
4 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
5 BPOSGE32 and BPOSGE64 instructions.
6 (deal_with_atomic_sequence): Likewise.
7 (mips32_instruction_has_delay_slot): Likewise.
9 2012-03-01 Maciej W. Rozycki <macro@mips.com>
10 Chris Dearman <chris@mips.com>
11 Maciej W. Rozycki <macro@codesourcery.com>
12 Joseph Myers <joseph@codesourcery.com>
14 * features/mips-dsp.xml: New file.
15 * features/mips64-dsp.xml: New file.
16 * features/mips-dsp-linux.xml: New file.
17 * features/mips64-dsp-linux.xml: New file.
18 * features/Makefile (WHICH): Add mips-dsp-linux and
20 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
21 * features/mips-dsp-linux.c: New file.
22 * features/mips64-dsp-linux.c: New file.
23 * regformats/mips-dsp-linux.dat: New file.
24 * regformats/mips64-dsp-linux.dat: New file.
25 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
27 (mips64_linux_register_addr): Likewise.
28 (mips64_linux_regsets_fetch_registers): Likewise.
29 (mips64_linux_regsets_store_registers): Likewise.
30 (mips64_linux_fetch_registers): Update call to
31 mips64_linux_regsets_fetch_registers.
32 (mips64_linux_store_registers): Update call to
33 mips64_linux_regsets_store_registers.
34 (mips_linux_read_description): Probe for DSP registers.
35 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
36 and initialize_tdesc_mips64_dsp_linux.
37 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
38 Remove padding of no longer used embedded register slots.
39 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
40 (MIPS_RESTART_REGNUM): Redefine enum value.
41 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
43 (mips_tx39_reg_names): Likewise.
44 (mips_linux_reg_names): New array of register names for Linux
46 (mips_register_name): Check for a null pointer in
47 mips_processor_reg_names and return an empty string.
48 (mips_register_type): Exclude embedded registers for the IRIX
50 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
51 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
53 (mips_stab_reg_to_regnum): Handle DSP accumulators.
54 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
55 (mips_gdbarch_init): Likewise. Initialize internal register
56 indices for the Linux ABI. Use dynamic numbers to refer to
57 registers, as applicable, while parsing the target description.
58 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
60 2012-03-01 Joel Brobecker <brobecker@adacore.com>
62 * frame.h (read_frame_register_unsigned): Fix typo in function
65 2012-03-01 Pedro Alves <palves@redhat.com>
67 * jit-reader.in [!__cplusplus]
68 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
70 2012-03-01 Pedro Alves <palves@redhat.com>
72 * configure.ac (build_warnings): Add -Wmissing-prototypes.
73 * configure: Regenerate.
75 2012-03-01 Pedro Alves <palves@redhat.com>
77 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
78 * breakpoint.c (create_exception_master_breakpoint, trace_command)
79 (ftrace_command, strace_command): Make static.
80 * d-lang.c (_initialize_d_language): Declare.
81 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
82 * dwarf2loc.c (_initialize_dwarf2loc):
83 * dwarf2read.c (process_psymtab_comp_unit): Make static.
84 * exec.c (exec_get_section_table): Make static.
85 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
86 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
87 * inferior.c (remove_inferior_command, add_inferior_command)
88 (clone_inferior_command): Make static.
89 * linux-nat.c (linux_nat_thread_address_space)
90 (linux_nat_core_of_thread): Make static.
91 * linux-tdep.c (_initialize_linux_tdep): Declare.
92 * objc-lang.c (_initialize_objc_lang): Declare.
93 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
95 (_initialize_opencl_language): Declare.
96 * record.c (_initialize_record): Declare.
97 * remote.c (demand_private_info, remote_get_tib_address)
98 (remote_supports_cond_tracepoints)
99 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
101 * skip.c (_initialize_step_skip): Declare.
102 * symtab.c (skip_prologue_using_lineinfo): Make static.
103 * tracepoint.c (delete_trace_state_variable)
104 (trace_variable_command, delete_trace_variable_command)
105 (get_uploaded_tsv, find_matching_tracepoint_location)
106 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
108 * value.c (pack_unsigned_long): Make static.
109 * varobj.c (varobj_ensure_python_env): Make static.
110 * windows-tdep.c (_initialize_windows_tdep): Declare.
111 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
113 2012-03-01 Pedro Alves <palves@redhat.com>
115 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
117 (linux_init_abi): Install it as has_shared_address_space gdbarch
120 2012-03-01 Pedro Alves <palves@redhat.com>
122 * observer.c (observer_test_first_notification_function)
123 (observer_test_second_notification_function)
124 (observer_test_third_notification_function): Add declarations.
126 2012-03-01 Pedro Alves <palves@redhat.com>
128 * common/signals.c (default_target_signal_to_host)
129 (default_target_signal_from_host): Move ...
130 * arch-utils.c: ... here.
131 * arch-utils.h (default_target_signal_to_host)
132 (default_target_signal_from_host): Declare.
134 * common/signals.c (target_signal_from_command): Move ...
135 * infrun.c: ... here.
136 * inferior.h (target_signal_from_command): Declare.
137 * target.h (target_signal_from_command)
138 (default_target_signal_from_host, default_target_signal_to_host):
141 * common/signals.c (_initialize_signals): Delete.
143 2012-03-01 Pedro Alves <palves@redhat.com>
145 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
146 both __cplusplus and !__cplusplus.
148 2012-03-01 Pedro Alves <palves@redhat.com>
150 * psymtab.c (find_and_open_source): Delete declaration.
151 * source.c (find_and_open_source): Move comment ...
152 * source.h (find_and_open_source): ... to this new declaration.
154 2012-03-01 Pedro Alves <palves@redhat.com>
156 * inline-frame.c: Include inline-frame.h.
158 2012-03-01 Pedro Alves <palves@redhat.com>
160 * tui/tui-data.c (set_gen_win_origin): Delete.
161 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
162 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
164 2012-03-01 Pedro Alves <palves@redhat.com>
166 * remote.c (encode_actions): Delete declaration.
167 * tracepoint.c (encode_actions): Make extern.
168 * tracepoint.h (encode_actions): Declare.
170 2012-03-01 Pedro Alves <palves@redhat.com>
172 * python/py-breakpoint.c: Include python.h.
173 * python/py-continueevent.c (create_continue_event_object): Make
175 * python/py-lazy-string.c (stpy_get_type): Make static.
176 * python/py-newobjfileevent.c (create_new_objfile_event_object):
178 * python/py-utils.c (unicode_to_target_python_string): Make
180 * python/py-value.c: Include python.h.
182 2012-03-01 Pedro Alves <palves@redhat.com>
184 * inferior.c (delete_threads_of_inferior): Delete.
186 2012-03-01 Pedro Alves <palves@redhat.com>
188 Import fallback definitions from glibc.
190 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
191 ps_prochandle): Forward declare.
192 (ps_err_e): Use glibc's comments.
193 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
194 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
195 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
196 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
197 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
198 (struct ps_prochandle): Adjust comment.
200 2012-03-01 Pedro Alves <palves@redhat.com>
202 * ada-lang.c (ada_modulus_from_name): Delete.
203 * ada-lex.l (lexer_init): Make static.
205 2012-03-01 Pedro Alves <palves@redhat.com>
209 * frame.c (read_frame_register_unsigned): New.
210 * frame.h (read_frame_register_unsigned): Declare.
211 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
213 (print_i387_control_word): New parameter `control_p'. Handle it.
214 (i387_print_float_info): Handle unavailable float registers.
216 2012-03-01 Keith Seitz <keiths@redhat.com>
218 * linespec.c (decode_line_2): Sort the list of methods
219 alphabetically before presenting the user with a selection
222 2012-03-01 Doug Evans <dje@google.com>
224 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
226 (dwarf2_read_abbrevs): Remove corresponding initialization.
228 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
230 * NEWS: Mention new python command class gdb.COMMAND_USER.
231 * cli/cli-cmds.c (show_user): Print error when used on a python
233 (init_cli_cmds): Update documentation strings for "show user" and
234 "set/show max-user-call-depth" to clarify that it does not apply to
236 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
238 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
240 * top.c (execute_command): Only execute a user-defined command as a
241 legacy macro if c->user_commands is set.
243 2012-03-01 Tom Tromey <tromey@redhat.com>
245 * valprint.h (struct generic_val_print_decorations): New.
246 (generic_val_print): Declare.
247 * valprint.c (generic_val_print): New function.
248 * p-valprint.c (p_decorations): New global.
249 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
250 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
251 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
252 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
253 * m2-valprint.c (m2_decorations): New global.
254 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
255 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
256 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
257 TYPE_CODE_ERROR>: Call generic_val_print.
258 * f-valprint.c (f_decorations): New global.
259 (f_val_print): Use print_function_pointer_address.
260 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
261 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
262 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
264 * c-valprint.c (c_decorations): New global.
265 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
266 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
267 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
268 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
269 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
270 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
273 2012-03-01 Tom Tromey <tromey@redhat.com>
275 * valprint.c (val_print): Update.
276 * p-valprint (pascal_val_print): Return void.
277 * p-lang.h (pascal_val_print): Return void.
278 * m2-valprint.c (m2_val_print): Return void.
279 * m2-lang.h (m2_val_print): Return void.
280 * language.h (struct language_defn) <la_val_print>: Return void.
281 * language.c (unk_lang_val_print): Return void.
282 * jv-valprint.c (java_val_print): Return void.
283 * jv-lang.h (java_val_print): Return void.
284 * f-valprint.c (f_val_print): Return void.
285 * f-lang.h (f_val_print): Return void.
286 * d-valprint.c (d_val_print): Return void.
287 (dynamic_array_type): Update.
288 * d-lang.h (d_val_print): Return void.
289 * c-valprint.c (c_val_print): Return void.
290 * c-lang.h (c_val_print): Return void.
291 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
293 * ada-lang.h (ada_val_print): Return void.
295 2012-03-01 Tom Tromey <tromey@redhat.com>
297 * value.h (val_print): Return void.
298 * valprint.c (val_print): Return void.
300 2012-03-01 Tom Tromey <tromey@redhat.com>
302 * value.h (common_val_print): Return void.
303 * valprint.c (common_val_print): Return void.
305 2012-03-01 Tom Tromey <tromey@redhat.com>
307 * value.h (value_print): Return void.
308 * valprint.c (value_print): Return void.
309 * p-valprint.c (pascal_value_print): Return void.
310 * p-lang.h (pascal_value_print): Return void.
311 * language.h (struct language_defn) <la_value_print>: Return
313 * language.c (unk_lang_value_print): Return void.
314 * jv-valprint.c (java_value_print): Return void.
315 * jv-lang.h (java_value_print): Return void.
316 * f-valprint.c (c_value_print): Don't declare.
318 * c-valprint.c (c_value_print): Return void.
319 * c-lang.h (c_value_print): Return void.
320 * ada-valprint.c (ada_value_print): Return void.
321 * ada-lang.h (ada_value_print): Return void.
323 2012-03-01 Tom Tromey <tromey@redhat.com>
325 * value.c (value_primitive_field): Handle virtual base classes.
327 2012-03-01 Tom Tromey <tromey@redhat.com>
329 * gdbtypes.h (struct vbase): Remove.
331 2012-03-01 Tom Tromey <tromey@redhat.com>
333 * c-valprint.c (print_function_pointer_address): Move...
334 * valprint.c: ... here. Make non-static.
335 * m2-valprint.c (print_function_pointer_address): Remove.
336 * valprint.h (print_function_pointer_address): Declare.
338 2012-03-01 Joel Brobecker <brobecker@adacore.com>
340 * NEWS: Document the fact that one can provide a condition when
341 creating an Ada exception catchpoint.
343 2012-03-01 Tom Tromey <tromey@redhat.com>
345 * valprint.c (val_print_type_code_flags): Fix placement of
348 2012-03-01 Joel Brobecker <brobecker@adacore.com>
350 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
351 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
352 environment variable before calling update-copyright.
354 2012-03-01 Joel Brobecker <brobecker@adacore.com>
356 * gnulib/extra/update-copyright: Update to the latest from
357 gnulib's git repository.
358 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
359 variable to 2 instead of 1.
361 2012-02-29 Joel Brobecker <brobecker@adacore.com>
363 * varobj.c (c_value_of_variable): Remove dead code.
365 2012-02-29 Joel Brobecker <brobecker@adacore.com>
367 * ada-lex.p (processId): Do not modify already encoded IDs.
368 Update function documentation.
370 2012-02-29 Joel Brobecker <brobecker@adacore.com>
372 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
373 "name" with "struct symbol *name_sym".
374 * ada-exp.y (write_var_or_type): Update call to
375 ada_find_renaming_symbol.
376 "name" with "struct symbol *name_sym". Adjust Implementation
377 accordingly. Adjust the function documentation.
379 2012-02-29 Joel Brobecker <brobecker@adacore.com>
381 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
382 * ada-lang.c (ada_find_any_type): Add advance declaration.
383 Make static. Replace ada_find_any_symbol by
384 ada_find_any_type_symbol.
385 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
386 Improve function description. Make static.
387 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
388 Replace ada_find_any_symbol by ada_find_any_type_symbol.
390 2012-02-29 Joel Brobecker <brobecker@adacore.com>
392 * ada-lang.c (struct tag_args): Delete.
393 (ada_get_tsd_type): Function body moved up in source file.
394 (ada_tag_name_1, ada_tag_name_2): Delete.
395 (ada_get_tsd_from_tag): New function.
396 (ada_tag_name_from_tsd): New function.
397 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
398 to determine the tag name.
400 2012-02-29 Joel Brobecker <brobecker@adacore.com>
402 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
404 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
407 2012-02-29 Joel Brobecker <brobecker@adacore.com>
409 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
411 2012-02-29 Joel Brobecker <brobecker@adacore.com>
413 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
416 2012-02-29 Joel Brobecker <brobecker@adacore.com>
418 * ada-lang.c (constrained_packed_array_type): If there is a
419 parallel XA type, use it to determine the array index type.
421 2012-02-29 Joel Brobecker <brobecker@adacore.com>
423 * ada-valprint.c (ada_val_print_1): If our value is a reference
424 to an array descriptor, dereference it before converting it
427 2012-02-29 Joel Brobecker <brobecker@adacore.com>
429 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
430 creating fixed value.
431 (ada_value_ind, ada_coerce_ref, assign_component)
432 (ada_evaluate_subexp): Remove call to unwrap_value before
433 call to ada_to_fixed_value.
435 2012-02-29 Joel Brobecker <brobecker@adacore.com>
437 * ada-lang.c (to_fixed_array_type): Set result's type name.
439 2012-02-29 Joel Brobecker <brobecker@adacore.com>
441 * ada-lang.c (catch_ada_exception_command_split): Add new
442 argument cond_string. Add support for condition at end of
443 "catch exception" commands.
444 (ada_decode_exception_location): Add new argument cond_string.
445 Update call to catch_ada_exception_command_split.
446 (create_ada_exception_catchpoint): Add new argument cond_string.
447 Set the breakpoint condition if needed.
448 (catch_ada_exception_command): Update call to
449 ada_decode_exception_location.
450 (ada_decode_assert_location): Add function documentation.
451 Add support for condition at end of "catch assert" command.
452 (catch_assert_command): Update calls to ada_decode_assert_location
453 and create_ada_exception_catchpoint.
455 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
457 Fix disp-step-syscall.exp: fork: single step over fork.
458 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
459 (i386_linux_get_syscall_number_from_regcache): ... here, new function
460 comment, change parameters gdbarch and ptid to regcache. Remove
461 parameter regcache, initialize gdbarch from regcache here.
462 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
464 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
466 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
467 'syscall'. Make the 'int' check more strict.
469 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
471 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
472 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
473 (i386_linux_intx80_sysenter_syscall_record): ... here.
474 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
475 Use the renamed function name.
477 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
479 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
480 * breakpoint.c (until_break_command): Likewise.
481 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
482 * infcall.c (call_function_by_hand): Likewise.
483 * infcmd.c (finish_forward): Likewise.
484 * infrun.c (insert_exception_resume_breakpoint): Likewise.
486 2012-02-28 Joel Brobecker <brobecker@adacore.com>
488 From Tristan Gingold <gingold@adacore.com>.
489 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
490 avoid variable assignments inside condition.
492 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
494 Fix static analysis issue found by cppcheck.
495 * microblaze-tdep.c (microblaze_extract_return_value): Fix
496 uninitialized BUF for size 2.
498 2012-02-27 Chris Dearman <chris@mips.com>
499 Nathan Froyd <froydnj@codesourcery.com>
500 Maciej W. Rozycki <macro@codesourcery.com>
502 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
503 (mips16_instruction_has_delay_slot): Likewise.
504 (mips_segment_boundary): Likewise.
505 (mips_adjust_breakpoint_address): Likewise.
506 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
508 2012-02-27 Maciej W. Rozycki <macro@mips.com>
509 Maciej W. Rozycki <macro@codesourcery.com>
511 * infrun.c (handle_inferior_event): Don't proceed through
512 shared library trampolines if stepping at the machine
515 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
517 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
520 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
522 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
523 (sh_stub_unwind_sniffer): New functions.
524 (sh_stub_unwind): New variable.
525 (sh_gdbarch_init): Wire everything.
527 2012-02-27 Pedro Alves <palves@redhat.com>
529 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
530 (linux_nat_post_attach_wait): Adjust to use
531 linux_proc_pid_is_stopped.
532 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
533 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
534 based on pid_is_stopped from both linux-nat.c and
535 gdbserver/linux-low.c, and renamed.
537 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
539 * remote.c (remote_watchpoint_addr_within_range): New function.
540 (init_remote_ops): Use it.
542 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
544 * target.h (target_watchpoint_addr_within_range): Document macro.
546 2012-02-24 Pedro Alves <palves@redhat.com>
548 * stack.c (set_last_displayed_sal): Issue internal_error instead
549 of warning, and issue it after clearing the last displayed sal.
551 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
552 Pedro Alves <palves@redhat.com>
554 * breakpoint.c (until_break_command): Install breakpoints after
555 all frame manipulations.
557 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
559 * remote.c (remote_supports_cond_breakpoints): New forward
561 (remote_add_target_side_condition): New function.
562 (remote_insert_breakpoint): Add target-side breakpoint
563 conditional if supported.
564 (remote_insert_hw_breakpoint): Likewise.
565 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
568 * target.c (update_current_target): Inherit
569 to_supports_evaluation_of_breakpoint_conditions.
570 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
572 * target.h (struct target_ops)
573 <to_supports_evaluation_of_breakpoint_conditions>: New field.
574 (target_supports_evaluation_of_breakpoint_conditions): New #define.
576 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
577 (condition_evaluation_both, condition_evaluation_auto,
578 condition_evaluation_host, condition_evaluation_target,
579 condition_evaluation_enums, condition_evaluation_mode_1,
580 condition_evaluation_mode): New static globals.
581 (translate_condition_evaluation_mode): New function.
582 (breakpoint_condition_evaluation_mode): New function.
583 (gdb_evaluates_breakpoint_condition_p): New function.
584 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
585 (mark_breakpoint_modified): New function.
586 (mark_breakpoint_location_modified): New function.
587 (set_condition_evaluation_mode): New function.
588 (show_condition_evaluation_mode): New function.
589 (bp_location_compare_addrs): New function.
590 (get_first_location_gte_addr): New helper function.
591 (set_breakpoint_condition): Free condition bytecode if locations
592 has become unconditional. Call mark_breakpoint_modified (...).
593 (condition_command): Call update_global_location_list (1) for
595 (breakpoint_xfer_memory): Use is_breakpoint (...).
596 (is_breakpoint): New function.
597 (parse_cond_to_aexpr): New function.
598 (build_target_condition_list): New function.
599 (insert_bp_location): Handle target-side conditional
600 breakpoints and call build_target_condition_list (...).
601 (update_inserted_breakpoint_locations): New function.
602 (insert_breakpoint_locations): Handle target-side conditional
604 (bpstat_check_breakpoint_conditions): Add comment.
605 (bp_condition_evaluator): New function.
606 (bp_location_condition_evaluator): New function.
607 (print_breakpoint_location): Print information on where the condition
609 (print_one_breakpoint_location): Likewise.
610 (init_bp_location): Call mark_breakpoint_location_modified (...) for
612 (force_breakpoint_reinsertion): New functions.
613 (update_global_location_list): Handle target-side breakpoint
615 Reinsert locations that are already inserted if conditions have
617 (bp_location_dtor): Free agent expression bytecode.
618 (disable_breakpoint): Call mark_breakpoint_modified (...).
619 Call update_global_location_list (...) with parameter 1 for breakpoints.
620 (disable_command): Call mark_breakpoint_location_modified (...).
621 Call update_global_location_list (...) with parameter 1 for breakpoints.
622 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
623 (enable_command): mark_breakpoint_location_modified (...).
624 (_initialize_breakpoint): Update documentation and add
625 condition-evaluation breakpoint subcommand.
627 * breakpoint.h: Include ax.h.
628 (condition_list): New data structure.
629 (condition_status): New enum.
630 (bp_target_info) <cond_list>: New field.
631 (bp_location) <condition_changed, cond_bytecode>: New fields.
632 (is_breakpoint): New prototype.
634 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
636 * remote.c (remote_state) <cond_breakpoints>: New field.
637 (PACKET_ConditionalBreakpoints): New enum.
638 (remote_cond_breakpoint_feature): New function.
639 (remote_protocol_features): Add new ConditionalBreakpoints entry.
640 (remote_supports_cond_breakpoints): New function.
641 (_initialize_remote): Add new packet configuration for
642 target-side conditional breakpoints.
644 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
646 * NEWS: Mention target-side conditional breakpoint support,
647 new condition-evaluation breakpoint subcommand and remote
650 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
652 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
655 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
657 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
658 (after_prologue): Remove.
660 2012-02-23 Tom Tromey <tromey@redhat.com>
662 * jv-valprint.c (java_val_print): Remove dead code.
664 2012-02-23 Tristan Gingold <gingold@adacore.com>
666 * ada-tasks.c (struct ada_tasks_inferior_data): Add
667 known_tasks_element and known_tasks_length fields.
668 (read_known_tasks_array): Change argument type. Use pointer type
669 and number of elements from DATA. Adjust.
670 (read_known_tasks_list): Likewise.
671 (get_known_tasks_addr): Remove.
672 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
673 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
674 type and array length. Merge former get_known_tasks_addr code.
676 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
679 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
680 it after set_momentary_breakpoint.
682 2012-02-22 Sterling Augustine <saugustine@google.com>
685 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
687 2012-02-22 Gary Benson <gbenson@redhat.com>
689 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
690 (find_slot_in_mapped_hash): Likewise.
692 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
695 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
696 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
697 * configure: Regenerate.
699 2012-02-21 Tristan Gingold <gingold@adacore.com>
700 Pedro Alves <palves@redhat.com>
702 * ia64-tdep.c: Do not include libunwind-ia64.h.
703 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
704 Include libunwind-ia64.h instead of libunwind.h.
705 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
706 for libunwind.h existence.
707 * configure, config.in: Regenerate.
709 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
711 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
712 instead of value_rtti_target_type.
713 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
714 instead of value_rtti_target_type.
715 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
716 value_rtti_target_type.
717 * valops.c (value_ind): Extract function readjust_indirect_value_type.
718 (value_rtti_target_type): Rename to ...
719 (value_rtti_indirect_type): ... here and make it indirect. Update
721 * value.c (readjust_indirect_value_type): New function.
722 (coerce_ref): Support for enclosing type setting for references
723 with readjust_indirect_value_type.
724 * value.h (readjust_value_type): New declaration.
725 (value_rtti_target_type): Rename to ...
726 (value_rtti_indirect_type): ... here.
728 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
730 * MAINTAINERS (Write After Approval): Add myself to the list.
732 2012-02-20 Doug Evans <dje@google.com>
734 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
735 Rename objfile_p_char parameter to objfilep.
736 (build_objfile_section_table): Result is now void. All callers
738 * objfiles.h (struct objfile): Tweak comments, whitespace.
739 (build_objfile_section_table): Update.
741 * elfread.c (elf_symfile_segments): Fix warning text.
743 2012-02-20 Tom Tromey <tromey@redhat.com>
746 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
747 particular set of file names once.
748 (dw2_map_symbol_filenames): Likewise.
750 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
753 * main.c (write_files): Remove the declaration.
754 (external_editor_command): Move the declaration ...
755 [GDBTK] (external_editor_command): ... here. Fix the comment.
757 2012-02-20 Tom Tromey <tromey@redhat.com>
759 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
762 2012-02-20 Tristan Gingold <gingold@adacore.com>
764 * darwin-nat.h (enum darwin_msg_state): Add comments.
766 2012-02-20 Tristan Gingold <gingold@adacore.com>
768 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
771 2012-20-18 Joel Brobecker <brobecker@adacore.com>
773 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
774 between function description and implementation.
776 2012-02-17 Tom Tromey <tromey@redhat.com>
779 * python/py-event.c (event_object_getset): New global.
780 (event_object_type): Reference it.
781 * python/py-type.c (field_object_getset): New global.
782 (field_object_type): Reference it.
783 * python/python-internal.h (gdb_py_generic_dict): Declare.
784 * python/py-utils.c (gdb_py_generic_dict): New function.
786 2012-02-17 Tristan Gingold <gingold@adacore.com>
788 * solib-darwin.c (darwin_current_sos): Check magic and filetype
790 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
792 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
793 TYPE_CALLING_CONVENTION annotation.
795 2012-02-16 Kevin Buettner <kevinb@redhat.com>
797 * MAINTAINERS: Add rx to target ISA section.
798 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
799 (ALLDEPFILES): Add rx-tdep.c.
801 2012-02-16 Tom Tromey <tromey@redhat.com>
803 * symfile.c (symbol_file_add_main_1): Use inferior's
805 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
806 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
808 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
810 (follow_exec): Use inferior's symfile_flags.
811 * inferior.h (struct inferior) <symfile_flags>: New field.
813 2012-02-16 Mike Frysinger <vapier@gentoo.org>
816 * remote-sim.c (gdbsim_create_inferior): Call error() when
817 sim_create_inferior() fails.
819 2012-02-16 Josh Matthews <josh@joshmatthews.net>
821 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
823 2012-02-16 Tom Tromey <tromey@redhat.com>
826 * thread.c (struct current_thread_cleanup) <was_removable>: New
828 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
829 (make_cleanup_restore_current_thread): Initialize new field.
831 2012-02-15 Kevin Buettner <kevinb@redhat.com>
833 * MAINTAINERS: Add rl78 to target ISA section.
834 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
835 (ALLDEPFILES): Add rl78-tdep.c.
836 * NEWS: Mention rl78 as a new target.
838 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
840 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
842 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
844 2012-02-15 Tom Tromey <tromey@redhat.com>
847 * infcmd.c (registers_info): Print just the current register's
850 2012-02-15 Tom Tromey <tromey@redhat.com>
852 * python/py-symbol.c (sympy_value): Use _().
854 2012-02-15 Pedro Alves <palves@redhat.com>
856 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
857 output to be like native targets'.
858 (remote_pid_to_str): Special case the null ptid.
860 2012-02-14 Stan Shebs <stan@codesourcery.com>
862 * NEWS: Mention enable count command.
863 * breakpoint.h (struct breakpoint): New field enable_count.
864 * breakpoint.c (enable_breakpoint_disp): Add count argument.
865 (enable_breakpoint): Add arg to call.
866 (struct disp_data): New struct.
867 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
868 (do_map_enable_once_breakpoint): Create a struct and pass it.
869 (do_map_enable_delete_breakpoint): Ditto.
870 (do_map_enable_count_breakpoint): New function.
871 (enable_count_command): New function.
872 (bpstat_stop_status): Decrement enable_count.
873 (print_one_breakpoint_location): Report enable count.
874 (_initialize_breakpoint): Add enable count command.
876 2012-02-14 Kevin Buettner <kevinb@redhat.com>
878 * rl78-tdep.c (reggroups.h): Include.
879 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
880 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
881 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
882 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
883 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
884 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
885 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
886 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
887 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
888 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
889 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
890 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
891 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
892 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
893 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
894 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
895 beginning of register list.
896 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
897 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
898 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
899 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
900 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
901 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
902 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
903 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
904 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
905 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
906 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
907 the pseudo registers. Rearrange other pseudo registers too so
908 that the bank registers appear at the end.
909 (rl78_register_type): Account for the fact that the byte sized
910 bank registers are now pseudo-registers.
911 (rl78_register_name): Rearrange the register name array. Make
912 initial set of raw banked registers inaccessible.
913 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
914 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
915 case for copying bytes back and forth between raw and pseudo
916 versions of the banked registers. Update other cases to reflect
918 (rl78_return_value): Update to account for changed names of
920 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
921 rl78_register_sim_regno().
923 2012-02-14 Kevin Buettner <kevinb@redhat.com>
925 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
926 the name parameter being passed to find_pc_partial_function().
928 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
930 * MAINTAINERS: Step down from being ia64 target maintainer.
932 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
934 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
937 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
939 Fix crash on loaded shlibs without loaded exec_bfd.
940 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
941 (set_section_command): Replace exec_bfd by p->bfd.
943 2012-02-10 Tom Tromey <tromey@redhat.com>
945 * linespec.c (decode_line_internal): Skip symtabs_from_filename
946 when we have a C++ qualified name.
948 2012-02-10 Pedro Alves <palves@redhat.com>
950 * inferior.c (inferior_pid_to_str): New.
951 (print_inferior, inferior_command): Use it.
953 2012-02-10 Pedro Alves <palves@redhat.com>
955 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
957 * configure: Regenerate.
959 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
961 * linespec.c (decode_line_internal): Fix comment correctness.
963 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
966 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
967 * amd64bsd-nat.c: Add support for debug registers (adapted from
969 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
970 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
971 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
972 (amd64bsd_dr_get_control): New functions.
973 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
974 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
975 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
976 watchpoints initialization.
977 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
979 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
981 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
983 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
985 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
987 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
989 2012-02-08 Joel Brobecker <brobecker@adacore.com>
991 * language.h (symbol_name_cmp_ftype): Renames
992 symbol_name_match_p_ftype.
993 (struct language_defn)[la_get_symbol_name_cmp]: Renames
994 la_get_symbol_name_match_p.
995 * ada-lang.c (ada_get_symbol_name_cmp): Renames
996 ada_get_symbol_name_match_p. Update comment.
997 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
998 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
999 Renames symbol_name_match_p. Update field type.
1000 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
1001 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
1002 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
1003 "la_get_symbol_name_cmp" in comments.
1004 * language.c: Likewise.
1006 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1008 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
1010 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
1011 (amd64_sol2_gregset32_reg_offs): Likewise.
1013 2012-02-08 Joel Brobecker <brobecker@adacore.com>
1015 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
1016 of the returned BFD is allocated by GDB.
1018 2012-02-07 Tom Tromey <tromey@redhat.com>
1021 * python/python-internal.h (frame_object_type): Declare.
1022 * python/py-symbol.c (sympy_needs_frame): New function.
1023 (sympy_value): New function.
1024 (symbol_object_getset): Add "needs_frame".
1025 (symbol_object_methods): Add "value".
1026 * python/py-frame.c (frame_object_type): No longer static.
1028 2012-02-07 Tom Tromey <tromey@redhat.com>
1031 * python/py-symbol.c (sympy_line): New function.
1032 (symbol_object_getset): Add "line".
1034 2012-02-07 Tom Tromey <tromey@redhat.com>
1036 * charset.c (find_charset_names): Check 'in' against NULL.
1038 2012-02-06 Doug Evans <dje@google.com>
1040 * gdbtypes.h (struct main_type): Change type of name,tag_name,
1041 and fields.name members from char * to const char *. All uses updated.
1042 (struct cplus_struct_type): Change type of fn_fieldlists.name member
1043 from char * to const char *. All uses updated.
1044 (type_name_no_tag): Update.
1045 (lookup_unsigned_typename, lookup_signed_typename): Update.
1046 * gdbtypes.c (type_name_no_tag): Change result type
1047 from char * to const char *. All callers updated.
1048 (lookup_unsigned_typename, lookup_signed_typename): Change type of
1049 name parameter from char * to const char *.
1050 * symtab.h (struct cplus_specific): Change type of demangled_name
1051 member from char * to const char *. All uses updated.
1052 (struct general_symbol_info): Change type of name and
1053 mangled_lang.demangled_name members from char * to const char *.
1055 (symbol_get_demangled_name, symbol_natural_name): Update.
1056 (symbol_demangled_name, symbol_search_name): Update.
1057 * symtab.c (symbol_get_demangled_name): Change result type
1058 from char * to const char *. All callers updated.
1059 (symbol_natural_name, symbol_demangled_name): Ditto.
1060 (symbol_search_name): Ditto.
1061 (completion_list_add_name): Change type of symname,sym_text,
1062 text,word parameters from char * to const char *.
1063 (completion_list_objc_symbol): Change type of sym_text,
1064 text,word parameters from char * to const char *.
1065 * ada-lang.c (find_struct_field): Change type of name parameter
1066 from char * to const char *.
1067 (encoded_ordered_before): Similarly for N0,N1 parameters.
1068 (old_renaming_is_invisible): Similarly for function_name parameter.
1069 (ada_type_name): Change result type from char * to const char *.
1070 All callers updated.
1071 * ada-lang.h (ada_type_name): Update.
1072 * buildsym.c (hashname): Change type of name parameter
1073 from char * to const char *.
1074 * buildsym.h (hashname): Update.
1075 * dbxread.c (end_psymtab): Change type of include_list parameter
1076 from char ** to const char **.
1077 * dwarf2read.c (determine_prefix): Change result type
1078 from char * to const char *. All callers updated.
1079 * f-lang.c (find_common_for_function): Change type of name, funcname
1080 parameters from char * to const char *.
1081 * f-lang.c (find_common_for_function): Update.
1082 * f-valprint.c (list_all_visible_commons): Change type of funcname
1083 parameters from char * to const char *.
1084 * gdbarch.sh (static_transform_name): Change type of name parameter
1085 and result from char * to const char *.
1086 * gdbarch.c: Regenerate.
1087 * gdbarch.h: Regenerate.
1088 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
1089 of name parameter from char * to const char *.
1090 * jv-lang.c (java_primitive_type_from_name): Ditto.
1091 (java_demangled_signature_length): Similarly for signature parameter.
1092 (java_demangled_signature_copy): Ditto.
1093 (java_demangle_type_signature): Ditto.
1094 * jv-lang.h (java_primitive_type_from_name): Update.
1095 (java_demangle_type_signature): Update.
1096 * objc-lang.c (specialcmp): Change type of a,b parameters
1097 from char * to const char *.
1098 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
1099 from char * to const char *. All callers updated.
1100 * p-lang.h (is_pascal_string_type): Update.
1101 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
1102 of name parameter from char * to const char *.
1103 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
1104 * utils.c (fprintf_symbol_filtered): Ditto.
1105 * defs.h (fprintf_symbol_filtered): Update.
1106 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
1107 * stabsread.h (end_psymtab): Update.
1108 * stack.c (find_frame_funname): Change type of funname parameter
1109 from char ** to const char **.
1110 * stack.h (find_frame_funname): Update.
1111 * typeprint.c (type_print): Change type of varstring parameter
1112 from char * to const char *.
1113 * value.h (type_print): Update.
1114 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
1115 from char * to const char *. All callers updated.
1116 (xcoff_end_psymtab): Change type of include_list parameter
1117 from char ** to const char **. All callers updated.
1118 (swap_sym): Similarly for name parameter. All callers updated.
1119 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
1121 (process_coff_symbol): Use xstrdup.
1122 * stabsread.c (stabs_method_name_from_physname): Renamed from
1123 update_method_name_from_physname. Change result type from void
1124 to char *. All callers updated.
1125 (read_member_functions): In has_destructor case, store name in objfile
1126 obstack instead of malloc space. In !has_stub case, fix mem leak.
1128 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
1130 * configure: Rebuild.
1131 * configure.ac: Put -L../bfd and -L../libiberty at the front of
1134 2012-02-03 Kevin Buettner <kevinb@redhat.com>
1136 * configure.tgt (rl78-*-elf): New target.
1137 * rl78-tdep.c: New file.
1139 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1141 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
1142 and continue the loop. Add QUIT statement.
1144 2012-02-03 Tom Tromey <tromey@redhat.com>
1147 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
1148 bfd_lookup_symbol_from_symtab.
1149 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1150 gdb_bfd_lookup_symbol_from_symtab.
1152 2012-02-03 Joel Brobecker <brobecker@adacore.com>
1154 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
1155 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
1156 symbol. Add assertion that sym2 is never NULL.
1158 2012-02-02 Doug Evans <dje@google.com>
1160 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
1161 "name" parameter to const char ** from char **. All callers updated.
1162 (find_pc_partial_function): Ditto.
1163 (cache_pc_function_name): Change type to const char * from char *.
1164 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
1165 (find_pc_partial_function): Update.
1166 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
1167 type of "name" parameter to const char * from char *.
1169 * arch-utils.c (generic_in_solib_return_trampoline): Change
1170 type of "name" parameter to const char * from char *.
1171 * arch-utils.h (generic_in_solib_return_trampoline): Update.
1172 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
1173 type of "name" parameter to const char * from char *.
1174 * gdbarch.sh (in_solib_return_trampoline): Ditto.
1175 * gdbarch.c: Regenerate.
1176 * gdbarch.h: Regenerate.
1177 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
1178 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
1179 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
1180 type of "name" parameter to const char * from char *.
1181 * skip.c (skip_function_pc): Ditto.
1182 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
1183 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
1184 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
1185 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
1186 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
1187 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
1188 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
1189 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
1190 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
1192 2012-02-02 Pedro Alves <palves@redhat.com>
1194 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
1195 the current inferior has no execution. Make sure the current
1196 remote process matches gdb's current inferior.
1198 2012-02-02 Tom Tromey <tromey@redhat.com>
1201 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
1204 2012-02-02 Tom Tromey <tromey@redhat.com>
1207 * symtab.c (lookup_language_this): Set block_found.
1209 2012-02-01 Tom Tromey <tromey@redhat.com>
1212 * jit.c (struct jit_inferior_data): Rewrite.
1213 (struct jit_objfile_data): New.
1214 (get_jit_objfile_data): New function.
1215 (add_objfile_entry): Update.
1216 (jit_read_descriptor): Return int. Replace descriptor_addr
1217 argument with inf_data. Update. Don't call error.
1218 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
1220 (jit_inferior_init): Don't look up descriptor. Don't call error.
1221 (jit_reset_inferior_data_and_breakpoints)
1222 (jit_inferior_created_observer): Remove.
1223 (jit_inferior_exit_hook): Update.
1224 (jit_executable_changed_observer): Remove.
1225 (jit_event_handler): Update.
1226 (free_objfile_data): Reset inferior data if needed.
1227 (_initialize_jit): Update.
1229 2012-02-01 Tom Tromey <tromey@redhat.com>
1231 * jit.c (bfd_open_from_target_memory): Move higher in file.
1233 2012-02-01 Tristan Gingold <gingold@adacore.com>
1235 * libunwind-frame.c (libunwind_load): Display message if dlopen
1238 2012-02-01 Gary Benson <gbenson@redhat.com>
1240 * symtab.h (symbol_name_match_p_ftype): New typedef.
1241 (iterate_over_symbols): Use the above.
1242 * symtab.c (iterate_over_symbols): Likewise.
1243 * language.h (language_defn->la_iterate_over_symbols): Likewise.
1244 * ada-lang.c (ada_iterate_over_symbols): Likewise.
1245 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
1246 (iterate_name_matcher): Document return values.
1247 (collect_one_symbol): Likewise.
1248 (collect_function_symbols): Likewise.
1249 (collect_symbols): Likewise.
1251 2012-02-01 Tom Tromey <tromey@redhat.com>
1253 * ada-lang.c (resolve_subexp): Update.
1254 (ada_lookup_symbol_list): Add 'full_search' argument.
1255 (ada_iterate_over_symbols): Pass 0 as full_search argument to
1256 ada_lookup_symbol_list.
1257 (ada_lookup_encoded_symbol): Update.
1258 (get_var_value): Update.
1259 * ada-exp.y (block_lookup): Update.
1260 (write_var_or_type): Update.
1261 (write_name_assoc): Update.
1262 * ada-lang.h (ada_lookup_symbol_list): Update.
1264 2012-01-31 Tom Tromey <tromey@redhat.com>
1266 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
1269 2012-01-31 Doug Evans <dje@google.com>
1271 * symtab.h: Remove outdated comment.
1272 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
1274 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
1276 Fix build error in Darwin port.
1277 * i386-darwin-nat.c: Include i386-nat.h.
1279 2012-01-30 Tom Tromey <tromey@redhat.com>
1281 PR breakpoints/13568:
1282 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
1283 argument. Check for recursive includes.
1284 (dwarf_decode_macros): Create an include hash.
1286 2012-01-30 Michael Eager <eager@eagercon.com>
1288 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
1289 * ppc-linux-tdep.c: Include glibc-tdep.h.
1290 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
1291 (powerpc_linux_in_plt_stub): New function.
1292 (powerpc_linux_in_dynsym_resolve_code): New function.
1293 (ppc_skip_trampoline_code): New function.
1294 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
1295 Use glibc_skip_solib_resolver.
1297 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1299 Code cleanup: Make 1440 bytes of data segment read-only.
1300 * arch-utils.c (endian_enum): Make it const char *const [].
1301 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
1303 * breakpoint.c (always_inserted_enums): Likewise.
1304 * cli/cli-cmds.c (script_ext_enums): Likewise.
1305 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
1306 enumlist parameter const char *const *.
1307 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
1308 const char *const *.
1309 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
1310 parameter const char *const *.
1311 * cris-tdep.c (cris_modes): Make it const char *const [].
1312 * filesystem.c (target_file_system_kinds): Likewise.
1313 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
1314 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
1315 (can_use_displaced_stepping_enum, scheduler_enums)
1316 (exec_direction_names): Likewise.
1317 * language.c (_initialize_language): Make the type_or_range_names and
1318 case_sensitive_names variables const char *const [].
1319 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
1320 * python/python.c (python_excp_enums): Likewise.
1321 * remote.c (interrupt_sequence_modes): Likewise.
1322 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
1323 * serial.c (logbase_enums): Likewise.
1324 * sh-tdep.c (sh_cc_enum): Likewise.
1325 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
1327 * symtab.c (multiple_symbols_modes): Likewise.
1328 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
1330 * utils.c (internal_problem_modes): Likewise.
1332 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1334 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
1335 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
1338 2012-01-27 Doug Evans <dje@google.com>
1340 * configure.ac (with_python): Fix absolute path handling for win32.
1341 * configure: Regenerate.
1343 2012-01-26 Doug Evans <dje@google.com>
1345 * symtab.c: Whitespace cleanup, no code changes.
1347 * symtab.c (lookup_symbol_in_language): Improve comment.
1348 (lookup_symbol_aux): Fix comment.
1350 * psymtab.c (add_psymbol_to_list): Result is now "void".
1351 * psympriv.h (add_psymbol_to_list): Update.
1353 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
1355 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1357 Do not open script filenames twice.
1358 * cli/cli-cmds.c (source_script_from_stream): Pass to
1359 source_python_script also STREAM.
1360 * python/py-auto-load.c (source_section_scripts): Pass to
1361 source_python_script_for_objfile also STREAM.
1362 (auto_load_objfile_script): Pass to source_python_script_for_objfile
1364 * python/python-internal.h (source_python_script_for_objfile): New
1365 parameter file, rename parameter file to filename.
1366 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
1367 instead if !_WIN32. Update the function comment.
1368 (source_python_script, source_python_script_for_objfile)
1369 (source_python_script): New parameter file, rename parameter file to
1370 filename. Pass FILENAME to python_run_simple_file.
1371 * python/python.h (source_python_script): New parameter file, rename
1372 parameter file to filename.
1374 2012-01-26 Pedro Alves <palves@redhat.com>
1376 * corelow.c (core_has_fake_pid): Delete.
1377 (core_close): Delete references to `core_has_fake_pid'.
1378 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
1379 (core_open): Delete references to `core_has_fake_pid'.
1380 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
1383 2012-01-26 Joel Brobecker <brobecker@adacore.com>
1385 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
1386 Remove language parameter from name_matcher. Adjust the comment.
1387 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
1388 Remove language parameter.
1389 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
1390 * linespec.c (iterate_name_matcher): Likewise.
1391 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
1392 name_matcher. Adjust call accordingly.
1393 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
1394 (maintenance_check_symtabs): Adjust type of parameter "fun".
1395 * psymtab.h (maintenance_check_symtabs): Likewise.
1397 2012-01-26 Joel Brobecker <brobecker@adacore.com>
1399 * language.h (symbol_name_match_p_ftype): New typedef.
1400 (struct language_defn): Replace field la_symbol_name_compare
1401 by la_get_symbol_name_match_p.
1402 * ada-lang.c (ada_get_symbol_name_match_p): New function.
1403 (ada_language_defn): Use it.
1404 * linespec.c (struct symbol_matcher_data): New type.
1405 (iterate_name_matcher): Rewrite.
1406 (iterate_over_all_matching_symtabs): Pass a pointer to
1407 a symbol_matcher_data struct to expand_symtabs_matching
1408 instead of just the lookup name.
1409 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
1410 opencl-lang.c, p-lang.c, language.c: Delete field
1411 la_symbol_name_compare, and replace by NULL for new field
1412 la_get_symbol_name_match_p.
1413 * symfile.h (struct quick_symbol_functions): Update comment.
1415 2012-01-25 Tom Tromey <tromey@redhat.com>
1417 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
1420 2012-01-24 Tom Tromey <tromey@redhat.com>
1423 * solib.c (update_solib_list): Update the program space's
1424 added_solibs and deleted_solibs fields.
1425 * progspace.h (struct program_space) <added_solibs,
1426 deleted_solibs>: New fields.
1427 (clear_program_space_solib_cache): Declare.
1428 * progspace.c (release_program_space): Call
1429 clear_program_space_solib_cache.
1430 (clear_program_space_solib_cache): New function.
1431 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
1432 bpstat_stop_status. Use handle_solib_event.
1433 * breakpoint.c: Include gdb_regex.h.
1434 (print_solib_event): New function.
1435 (bpstat_print): Use print_solib_event.
1436 (bpstat_stop_status): Add special case for bp_shlib_event.
1437 (handle_solib_event): New function.
1438 (bpstat_what): Use handle_solib_event.
1439 (struct solib_catchpoint): New.
1440 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
1441 (breakpoint_hit_catch_solib, check_status_catch_solib)
1442 (print_it_catch_solib, print_one_catch_solib)
1443 (print_mention_catch_solib, print_recreate_catch_solib): New
1445 (catch_solib_breakpoint_ops): New global.
1446 (catch_load_or_unload, catch_load_command_1)
1447 (catch_unload_command_1): New functions.
1448 (internal_bkpt_check_status): Add special case for
1450 (internal_bkpt_print_it): Use print_solib_event.
1451 (initialize_breakpoint_ops): Initialize
1452 catch_solib_breakpoint_ops.
1453 (_initialize_breakpoint): Register "catch load" and "catch
1455 * breakpoint.h (handle_solib_event): Declare.
1456 * NEWS: Add entry for "catch load" and "catch unload".
1458 2012-01-24 Tom Tromey <tromey@redhat.com>
1460 * ada-lang.c: Include gdb_vecs.h.
1461 * charset.c: Include gdb_vecs.h.
1462 * tracepoint.h: Include gdb_vecs.h.
1463 * gdb_vecs.h: New file.
1465 2012-01-24 Pedro Alves <pedro@codesourcery.com>
1467 * breakpoint.c (breakpoint_hit_catch_fork)
1468 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
1469 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
1470 * infrun.c (inferior_has_forked, inferior_has_vforked)
1471 (inferior_has_execd, inferior_has_called_syscall): Delete.
1472 (handle_syscall_event): Get syscall_number from the execution
1473 control state's wait status.
1474 (wait_for_inferior): Don't clear syscall_number.
1476 2012-01-24 Pedro Alves <palves@redhat.com>
1478 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
1479 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
1480 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
1481 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
1483 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
1484 false for events other than TARGET_SIGNAL_TRAP.
1485 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
1487 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
1488 events other than TARGET_SIGNAL_TRAP.
1489 (tracepoint_breakpoint_hit): Add `ws' parameter.
1490 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
1492 (bpstat_stop_status): Same.
1493 (pc_at_non_inline_function): Same.
1494 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
1495 to pass the current event's waitstatus to bpstat_stop_status
1496 and pc_at_non_inline_function.
1498 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1501 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
1502 Update the function comment for it.
1503 (source_script_with_search): Call make_cleanup_fclose for STREAM.
1504 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
1507 2012-01-24 Pedro Alves <palves@redhat.com>
1509 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
1510 outside `bs->stop' block.
1511 (bpstat_what): Rework bp_shlib_event handling.
1512 (internal_bkpt_check_status): If the breakpoint is a
1513 bp_shlib_event, then set bs->stop and bs->print if
1514 stop_on_solib_events is set.
1516 2012-01-24 Gary Benson <gbenson@redhat.com>
1518 Delete #if 0'd out code.
1519 * stack.c (print_frame_label_vars): Remove.
1520 (catch_info): Likewise.
1521 (_initialize_stack): Remove "info catch" command.
1522 * NEWS: Mention the above.
1524 2012-01-24 Pedro Alves <palves@redhat.com>
1526 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
1528 (remote_notice_new_inferior): If the remote end doesn't support
1529 the multiprocess extensions, then the PID is fake.
1530 (add_current_inferior_and_thread): New.
1531 (remote_start_remote): Use it.
1532 (extended_remote_attach_1): Adjust.
1533 (extended_remote_create_inferior_1): Use
1534 add_current_inferior_and_thread.
1536 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1538 Fix watchpoints to be specific for each inferior.
1539 * breakpoint.c (watchpoint_in_thread_scope): Verify also
1540 current_program_space.
1541 * i386-nat.c (i386_inferior_data_cleanup): New.
1542 (i386_inferior_data_get): Replace variable inf_data_local by an
1544 (i386_use_watchpoints): Initialize i386_inferior_data.
1545 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
1546 specific iterate_over_lwps.
1548 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1550 Fix watchpoints across inferior fork.
1551 * amd64-linux-nat.c (update_debug_registers_callback): Update the
1552 comment for linux_nat_iterate_watchpoint_lwps.
1553 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
1554 linux_nat_iterate_watchpoint_lwps.
1555 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
1556 * i386-linux-nat.c (update_debug_registers_callback): Update the
1557 comment for linux_nat_iterate_watchpoint_lwps.
1558 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
1559 linux_nat_iterate_watchpoint_lwps.
1560 (i386_linux_prepare_to_resume): New comment on Linux kernel.
1561 * i386-nat.c: Include inferior.h.
1562 (dr_mirror): Remove.
1563 (i386_inferior_data, struct i386_inferior_data)
1564 (i386_inferior_data_get): New.
1565 (i386_debug_reg_state): Use i386_inferior_data_get.
1566 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
1567 (i386_insert_watchpoint, i386_remove_watchpoint)
1568 (i386_stopped_data_address, i386_insert_hw_breakpoint)
1569 (i386_remove_hw_breakpoint): New variable state, use
1570 i386_debug_reg_state instead of DR_MIRROR.
1571 * linux-nat.c (delete_lwp): New declaration.
1572 (num_lwps): Move here from downwards.
1573 (delete_lwp_cleanup): New.
1574 (linux_child_follow_fork): Create new child_lp, call
1575 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
1577 (num_lwps): Move upwards.
1578 (linux_nat_iterate_watchpoint_lwps): New.
1579 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
1580 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
1582 2012-01-24 Joel Brobecker <brobecker@adacore.com>
1586 2012-01-23 Pedro Alves <palves@redhat.com>
1588 * top.c (caution): Rename to ...
1589 (confirm): ... this.
1590 (show_caution): Rename to ...
1591 (show_confirm): ... this.
1592 (quit_cover): Adjust.
1593 (init_main): Adjust.
1594 * top.h (caution): Rename to ...
1595 (confirm): ... this.
1596 * utils.c (internal_vproblem, defaulted_query): Adjust.
1598 2012-01-23 Pedro Alves <palves@redhat.com>
1600 * top.c (caution): Update comment.
1601 (execute_command): Don't consider the current value of `caution'.
1603 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1605 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
1607 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
1609 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
1610 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
1611 * target.c (target_fileio_pwrite): Remove buffer address from
1613 (target_fileio_pread): Likewise.
1615 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1617 * NEWS: Document remote "info proc" and "generate-core-file".
1619 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1621 * gdbarch.sh (find_memory_regions): New callback.
1622 * gdbarch.c, gdbarch.h: Regenerate.
1624 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
1625 callback before falling back to target method.
1627 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
1628 (linux_target_install_ops): No longer install it.
1630 * linux-tdep.c (linux_find_memory_regions): New function.
1631 (linux_init_abi): Install it.
1633 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1635 * gdbarch.sh (make_corefile_notes): New architecture callback.
1636 * gdbarch.c: Regenerate.
1637 * gdbarch.h: Likewise.
1639 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
1640 before target_make_corefile_notes. If NULL is returned, the
1641 target does not support core file generation.
1643 * linux-nat.c: Include "linux-tdep.h".
1644 (find_signalled_thread, find_stop_signal): Remove.
1645 (linux_nat_do_thread_registers): Likewise.
1646 (struct linux_nat_corefile_thread_data): Likewise.
1647 (linux_nat_corefile_thread_callback): Likewise.
1648 (iterate_over_spus): Likewise.
1649 (struct linux_spu_corefile_data): Likewise.
1650 (linux_spu_corefile_callback): Likewise.
1651 (linux_spu_make_corefile_notes): Likewise.
1652 (linux_nat_collect_thread_registers): New function.
1653 (linux_nat_make_corefile_notes): Replace contents by call to
1654 linux_make_corefile_notes passing linux_nat_collect_thread_registers
1655 as native-only callback.
1657 * linux-tdep.h: Include "bfd.h".
1658 (struct regcache): Add forward declaration.
1659 (linux_collect_thread_registers_ftype): New typedef.
1660 (linux_make_corefile_notes): Add prototype.
1661 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
1662 "regset.h", and "elf-bfd.h".
1663 (find_signalled_thread, find_stop_signal): New functions.
1664 (linux_spu_make_corefile_notes): Likewise.
1665 (linux_collect_thread_registers): Likewise.
1666 (struct linux_corefile_thread_data): New data structure.
1667 (linux_corefile_thread_callback): New funcion.
1668 (linux_make_corefile_notes): Likewise.
1669 (linux_make_corefile_notes_1): Likewise.
1670 (linux_init_abi): Install it.
1672 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1674 * gdbarch.sh (info_proc): New callback.
1675 * gdbarch.c, gdbarch.h: Regenerate.
1677 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
1678 before falling back to the target info_proc callback.
1680 * linux-nat.c: Do not include "cli/cli-utils.h".
1681 (linux_nat_info_proc): Remove.
1682 (linux_target_install_ops): No longer install it.
1684 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
1685 (read_mapping): New function.
1686 (linux_info_proc): Likewise.
1687 (linux_init_abi): Install it.
1689 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1691 * defs.h (enum info_proc_what): Moved here from linux-nat.c
1692 * infcmd.c: (info_proc_cmd_1): New function.
1693 (info_proc_cmd): New function, moved here from equivalent routine
1694 orignally in linux-nat.c.
1695 (info_proc_cmd_mappings): Likewise.
1696 (info_proc_cmd_stat): Likewise.
1697 (info_proc_cmd_status): Likewise.
1698 (info_proc_cmd_cwd): Likewise.
1699 (info_proc_cmd_cmdline): Likewise.
1700 (info_proc_cmd_exe): Likewise.
1701 (info_proc_cmd_all): Likewise.
1702 (_initialize_infcmd): Install "info proc" command and subcommands.
1704 * target.h (struct target_ops): Add to_info_proc.
1705 (target_info_proc): Add prototype.
1706 * target.c (target_info_proc): New function.
1708 * procfs.c (procfs_info_proc): Add prototype.
1709 (info_proc_cmd): Rename into ...
1710 (procfs_info_proc): ... this. Update argument types as appropriate
1711 for a to_info_proc implementation. Handle "what" argument.
1712 (procfs_target): Install procfs_info_proc.
1713 (_initialize_procfs): No longer install "info proc" command.
1715 * linux-nat.c: (enum info_proc_what): Remove.
1716 (linux_nat_info_proc_cmd_1): Rename into ...
1717 (linux_nat_info_proc): ... this. Update argument types as appropriate
1718 for a to_info_proc implementation.
1719 (linux_nat_info_proc_cmd): Remove.
1720 (linux_nat_info_proc_cmd_mappings): Likewise.
1721 (linux_nat_info_proc_cmd_stat): Likewise.
1722 (linux_nat_info_proc_cmd_status): Likewise.
1723 (linux_nat_info_proc_cmd_cwd): Likewise.
1724 (linux_nat_info_proc_cmd_cmdline): Likewise.
1725 (linux_nat_info_proc_cmd_exe): Likewise.
1726 (linux_nat_info_proc_cmd_all): Likewise.
1727 (linux_target_install_ops): Install linux_nat_info_proc.
1728 (_initialize_linux_nat): No longer install "info proc" command
1731 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1733 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
1734 * config.in, configure: Regenerate.
1736 * target.h (struct target_ops): Add to_fileio_readlink.
1737 (target_fileio_readlink): Add prototype.
1738 * target.c (target_fileio_readlink): New function.
1740 * inf-child.c: Conditionally include <sys/param.h>.
1741 (inf_child_fileio_readlink): New function.
1742 (inf_child_target): Install it.
1744 * remote.c (PACKET_vFile_readlink): New enum value.
1745 (remote_hostio_readlink): New function.
1746 (init_remote_ops): Install it.
1747 (_initialize_remote): Handle vFile:readlink packet type.
1749 2012-01-20 Pedro Alves <palves@redhat.com>
1750 Ulrich Weigand <ulrich.weigand@linaro.org>
1752 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
1753 * config.in, configure: Regenerate.
1755 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
1756 to_fileio_pread, to_fileio_close, to_fileio_unlink.
1757 (target_fileio_open): Add prototype.
1758 (target_fileio_pwrite): Likewise.
1759 (target_fileio_pread): Likewise.
1760 (target_fileio_close): Likewise.
1761 (target_fileio_unlink): Likewise.
1762 (target_fileio_read_alloc): Likewise.
1763 (target_fileio_read_stralloc): Likewise.
1765 * target.c: Include "gdb/fileio.h".
1766 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
1767 (default_fileio_target): New function.
1768 (target_fileio_open): Likewise.
1769 (target_fileio_pwrite): Likewise.
1770 (target_fileio_pread): Likewise.
1771 (target_fileio_close): Likewise.
1772 (target_fileio_unlink): Likewise.
1773 (target_fileio_close_cleanup): Likewise.
1774 (target_fileio_read_alloc_1): Likewise.
1775 (target_fileio_read_alloc): Likewise.
1776 (target_fileio_read_stralloc): Likewise.
1778 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
1779 <fcntl.h>, and <unistd.h>.
1780 (inf_child_fileio_open_flags_to_host): New function.
1781 (inf_child_errno_to_fileio_error): Likewise.
1782 (inf_child_fileio_open): Likewise.
1783 (inf_child_fileio_pwrite): Likewise.
1784 (inf_child_fileio_pread): Likewise.
1785 (inf_child_fileio_close): Likewise.
1786 (inf_child_fileio_unlink): Likewise.
1787 (inf_child_target): Install to_fileio routines.
1789 * remote.c (init_remote_ops): Install to_fileio routines.
1791 2012-01-20 Pedro Alves <palves@redhat.com>
1792 Ulrich Weigand <ulrich.weigand@linaro.org>
1794 * remote.c (remote_multi_process_p): Only check for multi-process
1795 protocol feature, do not check for extended protocol.
1796 (remote_supports_multi_process): Check for extended protocol here.
1797 (set_general_process): Likewise.
1798 (extended_remote_kill): Likewise.
1799 (remote_pid_to_str): Likewise.
1800 (remote_query_supported): Always query multiprocess mode.
1802 2012-01-20 Pedro Alves <palves@redhat.com>
1803 Ulrich Weigand <ulrich.weigand@linaro.org>
1805 * inferior.h (struct inferior): Add fake_pid_p.
1806 * inferior.c (exit_inferior_1): Clear fake_pid_p.
1807 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
1808 magic_null_ptid since the remote side doesn't provide a real PID.
1810 2012-01-19 Tom Tromey <tromey@redhat.com>
1812 * NEWS: Combine the two Python sections.
1814 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1816 * target.h (target_close): Update comment on the target's unpush state.
1818 2012-01-19 Pedro Alves <palves@redhat.com>
1820 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
1821 linux_nat_async directly instead of going through the target
1823 * target.c (unpush_target): Close target after unpushing it, not
1826 2012-01-19 Gary Benson <gbenson@redhat.com>
1828 * mdebugread.c (sort_blocks): Replace integer constants with ones
1829 derived from FIRST_LOCAL_BLOCK.
1831 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
1832 Jan Kratochvil <jan.kratochvil@redhat.com>
1835 * symfile.c (find_separate_debug_file): New function.
1836 (terminate_after_last_dir_separator): Likewise.
1837 (find_separate_debug_file_by_debuglink): Also try realpath.
1838 * configure.ac (AC_CHECK_FUNCS): Add lstat.
1839 * configure: Regenerate.
1840 * config.in: Regenerate.
1842 2012-01-18 Doug Evans <dje@google.com>
1844 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
1845 (main.o): Remove rule.
1846 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
1847 (--with-sysroot): Rewrite.
1848 * configure: Regenerate.
1849 * config.in: Regenerate.
1851 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
1853 * parse.c (initialize_expout): New function.
1854 (reallocate_expout): Likewise.
1855 (parse_exp_in_context): Use `initialize_expout' and
1856 `reallocate_expout' when appropriate.
1858 2012-01-18 Pedro Alves <palves@redhat.com>
1860 * record.c (struct record_breakpoint, record_breakpoint_p)
1861 (record_breakpoints): New.
1862 (record_insert_breakpoint, record_remove_breakpoint): Manage
1863 record breakpoints list. Only remove breakpoints from the
1864 inferior if they had been inserted there in the first place.
1866 2012-01-17 Doug Evans <dje@google.com>
1868 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
1869 if we know we don't have a file name to look for.
1871 2012-01-17 Pedro Alves <palves@redhat.com>
1873 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
1874 the frame's stop reason is UNWIND_UNAVAILABLE.
1876 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1878 Fix compilation error.
1879 * m2-exp.y (yyerror): Use ANSI C prototype.
1881 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
1883 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
1884 (growbuf_by_size): Likewise.
1885 (yyerror): Likewise.
1886 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
1887 (modblock): Remove variable (was #if 0'ed).
1888 (parse_number): Convert prototype from K&R to ANSI C.
1889 (yyerror): Likewise.
1890 * objc-exp.y (parse_number): Likewise.
1891 (yyerror): Likewise.
1892 (yylex): Remove #if 0'ed code.
1893 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
1894 (yyerror): Likewise.
1896 2012-01-16 Tom Tromey <tromey@redhat.com>
1899 * symtab.h (compare_filenames_for_search): Declare.
1900 * symtab.c (compare_filenames_for_search): New function.
1901 (iterate_over_some_symtabs): Use it.
1902 * symfile.h (struct quick_symbol_functions)
1903 <map_symtabs_matching_filename>: Change spec.
1904 * psymtab.c (partial_map_symtabs_matching_filename): Use
1905 compare_filenames_for_search. Update for new spec.
1906 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
1907 compare_filenames_for_search. Update for new spec.
1908 * breakpoint.c (clear_command): Use compare_filenames_for_search.
1910 2012-01-16 Tom Tromey <tromey@redhat.com>
1913 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
1914 (struct main_type) <flag_flag_enum>: New field.
1915 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
1916 * NEWS: Add entries.
1917 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
1919 * python/lib/gdb/printing.py (_EnumInstance): New class.
1920 (FlagEnumerationPrinter): Likewise.
1922 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
1924 * breakpoint.c (create_sals_from_address_default): New function.
1925 (create_breakpoints_sal_default): Likewise.
1926 (decode_linespec_default): Likewise.
1927 (is_marker_spec): Removed.
1928 (strace_marker_p): New function.
1929 (init_breakpoint_sal): Using `strace_marker_p' instead of
1931 (create_breakpoint): Call method `create_sals_from_address' from
1932 breakpoint_ops, replacing code that created SALs conditionally
1933 on the type of the breakpoint. Call method `create_breakpoints_sal',
1934 replacing code that created breakpoints conditionally on the type
1936 (base_breakpoint_create_sals_from_address): New function.
1937 (base_breakpoint_create_breakpoints_sal): Likewise.
1938 (base_breakpoint_decode_linespec): Likewise.
1939 (base_breakpoint_ops): Add methods
1940 `base_breakpoint_create_sals_from_address',
1941 `base_breakpoint_create_breakpoints_sal' and
1942 `base_breakpoint_decode_linespec'.
1943 (bkpt_create_sals_from_address): New function.
1944 (bkpt_create_breakpoints_sal): Likewise.
1945 (bkpt_decode_linespec): Likewise.
1946 (tracepoint_create_sals_from_address): Likewise.
1947 (tracepoint_create_breakpoints_sal): Likewise.
1948 (tracepoint_decode_linespec): Likewise.
1949 (strace_marker_create_sals_from_address): Likewise.
1950 (strace_marker_create_breakpoints_sal): Likewise.
1951 (strace_marker_decode_linespec): Likewise.
1952 (strace_marker_breakpoint_ops): New variable.
1953 (addr_string_to_sals): Remove `marker_spec'. Call method
1954 `decode_linespec' from breakpoint_ops, replacing code that decoded
1955 an address string into a SAL. Use `strace_marker_p' instead of
1957 (strace_command): Decide whether we are dealing with a static
1958 tracepoint with marker or not. Use the appropriate breakpoint_ops.
1959 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
1960 * breakpoint.h (linespec_result, linespec_sals): New forward
1962 (breakpoint_ops) <create_sals_from_address>,
1963 <create_breakpoints_sal>, <decode_linespec>: New methods.
1965 2012-01-14 Doug Evans <dje@google.com>
1967 * NEWS: Update text for "maint set python print-stack".
1968 It is deprecated in gdb 7.4 and deleted in 7.5.
1970 2012-01-13 Eli Zaretskii <eliz@gnu.org>
1972 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
1975 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1977 * configure: Regenerate.
1978 * config.in: Regenerate.
1980 2012-01-12 Keith Seitz <keiths@redhat.com>
1983 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
1984 (ANONYMOUS_UNION_NAME): Define.
1985 (is_path_expr_parent): New function.
1986 (get_path_expr_parent): New function.
1987 (is_anonymous_child): New function.
1988 (create_child_with_value): If the child is anonymous and without
1989 a name, assign an object name to it.
1990 (c_describe_child): Use get_path_expr_parent to determine
1991 the parent expression.
1992 If there field represents an anonymous struct or union and
1993 has no name, set an appropriate display name and expression.
1994 (cplus_describe_child): Likewise.
1996 2012-01-12 Pedro Alves <palves@redhat.com>
1998 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
1999 available when %ebp is found to be zero (outermost).
2001 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
2003 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
2004 an internal gdb_static_assert.
2005 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
2007 2012-01-11 Tom Tromey <tromey@redhat.com>
2010 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
2011 catch" and "catch throw".
2013 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
2015 * blockframe.c (block_innermost_frame): Start search from selected
2016 frame, if present, or otherwise the current frame.
2018 * c-exp.y (variable): Update innermost_block for
2019 'block COLONCOLON NAME' clause.
2020 * m2-exp.y (variable): Ditto.
2021 * objc-exp.y (variable): Ditto.
2023 2012-01-10 Tom Tromey <tromey@redhat.com>
2026 * python/python.c (finish_python_initialization): Set sys.argv.
2028 2012-01-10 Doug Evans <dje@google.com>
2030 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
2031 "want_line_info". All callers updated.
2032 (dwarf_decode_lines_1): New function.
2033 (handle_DW_AT_stmt_list): Add function comment.
2034 New arg "want_line_info". All callers updated.
2035 (read_file_scope,read_type_unit_scope): Move comment from
2036 handle_DW_AT_stmt_list to here.
2038 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2040 Fix regression after libiberty/ update for GCC PR 6057 and others.
2041 * c-exp.y (operator) <OPERATOR DELETE>
2042 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
2043 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
2044 (make_builtin_type, make_name): New variable i, add gdb_assert.
2045 (operator) <OPERATOR NEW>: Update ARGS to 3.
2046 (operator) <OPERATOR DELETE>: Add trailing space.
2047 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
2048 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
2049 * cp-support.c (cp_canonicalize_string): Check NULL from
2050 cp_comp_to_string, call warning and return.
2052 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2054 Fix duplicate .o files after omitting libbfd.a.
2055 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
2056 (SFILES): Add corelow.c.
2057 (COMMON_OBS): Add corelow.o.
2058 (ALLDEPFILES): Remove corelow.c.
2059 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
2060 * config/alpha/alpha-osf3.mh: Likewise.
2061 * config/alpha/fbsd.mh: Likewise.
2062 * config/arm/nbsdaout.mh: Likewise.
2063 * config/arm/nbsdelf.mh: Likewise.
2064 * config/i386/i386gnu.mh: Likewise.
2065 * config/ia64/hpux.mh: Likewise.
2066 * config/ia64/linux.mh: Likewise.
2067 * config/m32r/linux.mh: Likewise.
2068 * config/m68k/linux.mh: Likewise.
2069 * config/mips/irix5.mh: Likewise.
2070 * config/mips/irix6.mh: Likewise.
2071 * config/pa/hpux.mh: Likewise.
2072 * config/pa/linux.mh: Likewise.
2073 * config/powerpc/aix.mh: Likewise.
2074 * config/sparc/linux.mh: Likewise.
2075 * config/sparc/linux64.mh: Likewise.
2076 * config/sparc/sol2.mh: Likewise.
2077 * config/vax/vax.mh: Likewise.
2078 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
2079 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
2080 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
2081 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
2082 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
2083 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
2084 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
2085 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
2086 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
2087 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
2088 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
2089 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
2090 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
2091 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
2092 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
2093 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
2094 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
2095 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
2096 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
2097 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
2098 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
2099 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
2100 corelow.o from gdb_target_obs.
2101 * corefile.c (core_target): Update the comment on NULL value.
2102 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
2103 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
2104 MATCHES. Drop YUMMY set on NULL.
2105 (core_close): Do not call exit_inferior_silent on zero PID. Do not
2106 reclaim CORE_DATA if it is already NULL.
2108 2012-01-09 Doug Evans <dje@google.com>
2110 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
2111 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
2113 2012-01-09 Keith Seitz <keiths@redhat.com>
2115 * breakpoint.c (wrapper.h): Don't include.
2117 2012-01-09 Keith Seitz <keiths@redhat.com>
2119 * Makefile.in (SFILES): Remove wrapper.c.
2120 (HFILES_NO_SRCDIR): Remove wrapper.h.
2121 (COMMON_OBS): Remove wrapper.o.
2122 * cli/cli-interp.c: Don't inlude wrapper.h.
2123 * corelow.c: Likewise.
2124 (core_open): Replace gdb_target_find_new_threads with
2125 TRY_CATCH around target_find_new_threads.
2126 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
2127 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
2128 * varobj.c (varobj_create): Likewise for parse_exp_1 and
2129 evaluate_expression.
2130 (varobj_set_value): Likewise for evaluate_expression and
2132 (install_new_variable): Likewise for value_fetch_lazy.
2133 (adjust_value_for_child_access): Likewise for value_ind.
2134 (c_describe_child): Likewise for value_subscript and
2136 (c_value_of_root): Likewise for evaluate_expression.
2137 * wrapper.c: Remove.
2138 * wrapper.h: Remove.
2140 2012-01-09 Doug Evans <dje@google.com>
2142 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
2143 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
2144 "abfd" args with "section". All callers updated.
2145 Error checking code moved ...
2146 (error_check_comp_unit_head): ... here. New function.
2147 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
2148 Delete arg "abfd". New arg "type_offset". All callers updated.
2149 (create_debug_types_hash_table): Simplify by using
2150 read_and_check_type_unit_head.
2152 * parser-defs.h (namecopy): Delete.
2153 * parse.c (namecopy, namecopy_size): Move into copy_name.
2155 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2157 Partially fix duplicate .o files after omitting libbfd.a.
2158 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
2159 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2160 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
2161 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2162 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
2163 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
2164 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2166 2012-01-09 Pedro Alves <palves@redhat.com>
2168 * MAINTAINERS: Update my email address.
2170 2012-01-08 Doug Evans <dje@google.com>
2172 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
2173 n_type_units. Rename type_comp_units to all_type_units.
2175 (add_signatured_type_cu_to_table): Renamed from
2176 add_signatured_type_cu_to_list. All callers updated.
2178 * gdbtypes.h (struct cplus_struct_type): Delete member
2179 nfn_fields_total. All uses removed.
2181 2012-01-06 Doug Evans <dje@google.com>
2183 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
2185 (dwarf2_find_comp_unit): Delete.
2186 (process_psymtab_comp_unit): Make result "void".
2187 Delete args buffer, info_ptr, buffer_size, and replace with
2188 "section". All callers updated.
2189 (dwarf2_build_psymtabs_hard): Simplify.
2191 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
2192 Thiago Jung Bauermann <bauerman@br.ibm.com>
2194 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
2195 before `struct gdb_exception'.
2196 * breakpoint.c (update_global_location_list_nothrow)
2197 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
2198 * cp-abi.c (value_rtti_type): Likewise.
2199 * cp-support.c (cp_validate_operator): Likewise.
2200 * infrun.c (insert_exception_resume_breakpoint)
2201 (check_exception_resume, keep_going): Likewise.
2202 * mi-interp.c (mi_breakpoint_created)
2203 (mi_breakpoint_modified): Likewise.
2204 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
2205 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
2206 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
2208 2012-01-05 Doug Evans <dje@google.com>
2210 * dwarf2read.c (statement_prologue): Delete, unused.
2212 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
2213 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
2215 * dwarf2read.c (comp_unit_header): Delete, unused.
2217 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
2219 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
2220 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
2222 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
2224 * infrun.c (normal_stop): Don't skip calling the normal_stop
2225 observers if the thread was doing a multi-step, but stopped for
2226 some reason other than stepping.
2228 2012-01-05 Pedro Alves <alves.ped@gmail.com>
2230 * cli/cli-decode.h: Add comments.
2231 (CMD_LIST_AMBIGUOUS): Moved to command.h
2232 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2233 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
2234 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
2235 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
2236 (add_com, add_com_alias, add_info, add_info_alias)
2237 (complete_on_cmdlist, complete_on_enum, help_list): Remove
2239 * command.h: Add and adjust comments.
2240 (CMD_LIST_AMBIGUOUS): Moved here.
2241 (help_cmd, help_cmd_list): Delete declarations.
2243 2012-01-04 Doug Evans <dje@google.com>
2245 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
2246 All callers updated.
2247 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
2248 Replace all arguments with "per_cu". All callers updated.
2250 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
2252 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
2253 New arg "per_cu". All callers updated.
2255 Delete #if 0'd out code.
2256 * language.c (binop_result_type): Delete.
2257 (simple_type, ordered_type, same_type, integral_type): Delete.
2258 (numeric_type, character_type, string_type, boolean_type): Delete.
2259 (float_type, structured_type): Delete.
2260 * language.h: Update.
2262 2012-01-04 Tom Tromey <tromey@redhat.com>
2264 * python/py-value.c (valpy_binop): Initialize 'res_val'.
2266 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2268 * corefile.c (close_exec_file): Delete.
2269 (reopen_exec_file): Remove commented out code that seems related
2270 to close_exec_file, which is being deleted here.
2271 * inferior.h (close_exec_file): Delete.
2272 * fork-child.c (fork_inferior): Remove call to fork_inferior.
2274 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2276 * ada-lang.c: #include "cli/cli-utils.h".
2277 (get_selections): Use skip_spaces.
2278 (ada_get_next_arg): Use skip_spaces and skip_to_space.
2279 (catch_ada_exception_command_split): Use skip_spaces.
2280 (ada_decode_assert_location): Likewise.
2282 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2284 * linespec.c (decode_line_internal): Check for C++ or Java
2285 compound constructs only if the current language is C, C++
2288 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2291 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2292 Joel Brobecker <brobecker@adacore.com>
2293 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
2294 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
2296 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
2297 fall through into AT_ENTRY_POINT.
2298 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
2300 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
2301 PPC_INSN_SIZE skip to 3 times.
2303 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2305 * linespec.c (add_minsym): Preserve function descriptors.
2307 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2309 * breakpoint.c (all_locations_are_pending): Consider locations
2310 in program spaces executing during startup pending as well.
2312 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2314 Copyright year update in most files of the GDB Project.
2316 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2318 * copyright.sh: Delete.
2319 * copyright.py: Rewrite.
2321 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2323 * gnulib/extra/update-copyright: New file, imported from gnulib.
2325 2012-01-04 Joel Brobecker <brobecker@adacore.com>
2327 * README (Copyright and License Notices): New section.
2329 2012-01-03 Tom Tromey <tromey@redhat.com>
2332 * python/py-value.c (valpy_dereference, valpy_get_address
2333 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
2334 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
2335 (valpy_absolute, valpy_richcompare): Free intermediate values.
2337 2011-01-03 Joel Brobecker <brobecker@adacore.com>
2339 * ada-lang.c: Reformat the copyright notice.
2341 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2343 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
2344 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
2345 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
2346 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
2347 Revert this part of:
2348 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2349 Build gdb directly from *.o files not using libgdb.a.
2350 * Makefile.in (COMMON_OBS): Remove solib-target.o.
2352 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2354 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
2355 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
2356 Reformat the copyright header.
2358 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2360 Revert this part of:
2361 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2362 Remove the gdbtui binary.
2363 * gdb.c (main): Remove args.interpreter_p initialization.
2364 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
2365 * main.h (struct captured_main_args): Remove interpreter_p.
2367 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2369 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
2371 2012-01-02 Joel Brobecker <brobecker@adacore.com>
2373 * top.c (print_gdb_version): Update copyright year.
2375 2012-01-02 Yao Qi <yao@codesourcery.com>
2377 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
2379 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2380 Joel Brobecker <brobecker@adacore.com>
2382 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
2383 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
2385 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
2386 fall through into AT_ENTRY_POINT.
2387 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
2389 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
2390 PPC_INSN_SIZE skip to 3 times.
2392 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2394 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
2396 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
2398 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2400 Build gdb directly from *.o files not using libgdb.a.
2401 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
2402 (COMMON_OBS): Remove solib-target.o.
2403 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
2404 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
2405 (LIBGDB_OBS, libgdb.a): Move it above.
2406 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
2407 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
2408 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
2409 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
2410 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
2411 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
2412 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
2413 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
2414 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
2415 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
2416 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
2417 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
2418 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
2419 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
2420 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
2421 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
2422 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
2423 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
2424 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
2425 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
2426 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
2427 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
2428 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
2429 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
2430 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
2431 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
2432 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
2434 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2436 Remove the gdbtui binary.
2437 * .gitignore (/gdbtui): Remove.
2438 * Makefile.in (TUI): Remove.
2439 (SUBDIR_TUI_OBS): Remove tui-main.o.
2440 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
2441 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
2442 (tui-main.o): Remove.
2443 (all_object_files): Remove tui-main.o.
2444 * NEWS: New note for the gdbtui removal.
2445 * configure: Rebuilt.
2446 * configure.ac: No longer add all-tui, clean-tui, install-tui and
2447 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
2448 CONFIG_UNINSTALL respectively.
2449 * gdb.c (main): Remove args.interpreter_p initialization.
2450 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
2451 * main.h (struct captured_main_args): Remove interpreter_p.
2452 * tui/tui-main.c: Remove.
2454 2012-01-01 Doug Evans <dje@google.com>
2456 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
2457 (dwarf2_physname, read_import_statement): Ditto.
2458 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
2459 (process_structure_scope read_subroutine_type): Ditto.
2460 (read_typedef, load_partial_dies, read_partial_die): Ditto.
2461 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
2462 (dwarf2_fetch_die_location_block): Ditto.
2463 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
2465 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
2466 All callers updated.
2467 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
2468 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
2469 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
2471 * dwarf2read.c (load_cu): Move assert to more useful location.
2473 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
2474 All callers updated.
2476 * dwarf2read.c (dwarf2_per_objfile): Add comment.
2477 (dwarf2_elf_names): Minor reformat.
2478 (dwarf2_per_cu_data): Tweak comment.
2479 (dwarf2_read_section): Fix comment.
2480 (create_all_comp_units): Fix comment.
2481 (load_full_comp_unit): Fix comment.
2482 (process_full_comp_unit): Fix comment.
2483 (read_signatured_type): Fix comment.
2485 For older changes see ChangeLog-2011.
2491 version-control: never