]> Git Repo - binutils.git/blame - gdb/ChangeLog
PR gdb/13596:
[binutils.git] / gdb / ChangeLog
CommitLineData
e009ee71
TT
12012-02-03 Tom Tromey <[email protected]>
2
3 PR gdb/13596:
4 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
5 bfd_lookup_symbol_from_symtab.
6 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
7 gdb_bfd_lookup_symbol_from_symtab.
8
f7e44f65
JB
92012-02-03 Joel Brobecker <[email protected]>
10
11 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
12 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
13 symbol. Add assertion that sym2 is never NULL.
14
2c02bd72
DE
152012-02-02 Doug Evans <[email protected]>
16
17 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
18 "name" parameter to const char ** from char **. All callers updated.
19 (find_pc_partial_function): Ditto.
20 (cache_pc_function_name): Change type to const char * from char *.
21 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
22 (find_pc_partial_function): Update.
23 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
24 type of "name" parameter to const char * from char *.
25 All uses updated.
26 * arch-utils.c (generic_in_solib_return_trampoline): Change
27 type of "name" parameter to const char * from char *.
28 * arch-utils.h (generic_in_solib_return_trampoline): Update.
29 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
30 type of "name" parameter to const char * from char *.
31 * gdbarch.sh (in_solib_return_trampoline): Ditto.
32 * gdbarch.c: Regenerate.
33 * gdbarch.h: Regenerate.
34 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
35 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
36 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
37 type of "name" parameter to const char * from char *.
38 * skip.c (skip_function_pc): Ditto.
39 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
40 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
41 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
42 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
43 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
44 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
45 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
46 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
47 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
48
e886a173
PA
492012-02-02 Pedro Alves <[email protected]>
50
51 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
52 the current inferior has no execution. Make sure the current
53 remote process matches gdb's current inferior.
54
c709a7c2
TT
552012-02-02 Tom Tromey <[email protected]>
56
57 PR gdb/13405:
58 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
59 read-only memory.
60
f149aabd
TT
612012-02-02 Tom Tromey <[email protected]>
62
63 PR gdb/9307:
64 * symtab.c (lookup_language_this): Set block_found.
65
03bef283
TT
662012-02-01 Tom Tromey <[email protected]>
67
68 PR gdb/13431:
69 * jit.c (struct jit_inferior_data): Rewrite.
70 (struct jit_objfile_data): New.
71 (get_jit_objfile_data): New function.
72 (add_objfile_entry): Update.
73 (jit_read_descriptor): Return int. Replace descriptor_addr
74 argument with inf_data. Update. Don't call error.
75 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
76 descriptor here.
77 (jit_inferior_init): Don't look up descriptor. Don't call error.
78 (jit_reset_inferior_data_and_breakpoints)
79 (jit_inferior_created_observer): Remove.
80 (jit_inferior_exit_hook): Update.
81 (jit_executable_changed_observer): Remove.
82 (jit_event_handler): Update.
83 (free_objfile_data): Reset inferior data if needed.
84 (_initialize_jit): Update.
85
f0bbc364
TT
862012-02-01 Tom Tromey <[email protected]>
87
88 * jit.c (bfd_open_from_target_memory): Move higher in file.
89
47c1316c
TG
902012-02-01 Tristan Gingold <[email protected]>
91
92 * libunwind-frame.c (libunwind_load): Display message if dlopen
93 failed.
94
8e704927
GB
952012-02-01 Gary Benson <[email protected]>
96
97 * symtab.h (symbol_name_match_p_ftype): New typedef.
98 (iterate_over_symbols): Use the above.
99 * symtab.c (iterate_over_symbols): Likewise.
100 * language.h (language_defn->la_iterate_over_symbols): Likewise.
101 * ada-lang.c (ada_iterate_over_symbols): Likewise.
102 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
103 (iterate_name_matcher): Document return values.
104 (collect_one_symbol): Likewise.
105 (collect_function_symbols): Likewise.
106 (collect_symbols): Likewise.
107
d9680e73
TT
1082012-02-01 Tom Tromey <[email protected]>
109
110 * ada-lang.c (resolve_subexp): Update.
111 (ada_lookup_symbol_list): Add 'full_search' argument.
112 (ada_iterate_over_symbols): Pass 0 as full_search argument to
113 ada_lookup_symbol_list.
114 (ada_lookup_encoded_symbol): Update.
115 (get_var_value): Update.
116 * ada-exp.y (block_lookup): Update.
117 (write_var_or_type): Update.
118 (write_name_assoc): Update.
119 * ada-lang.h (ada_lookup_symbol_list): Update.
120
72e1143f
TT
1212012-01-31 Tom Tromey <[email protected]>
122
123 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
124 comment.
125
ab2d2ad3
DE
1262012-01-31 Doug Evans <[email protected]>
127
128 * symtab.h: Remove outdated comment.
e9111bf7 129 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 130
bc884eba
JB
1312012-02-01 Josh Matthews <[email protected]> (tiny change)
132
133 Fix build error in Darwin port.
134 * i386-darwin-nat.c: Include i386-nat.h.
135
8fc3fc34
TT
1362012-01-30 Tom Tromey <[email protected]>
137
138 PR breakpoints/13568:
139 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
140 argument. Check for recursive includes.
141 (dwarf_decode_macros): Create an include hash.
142
5d853008
ME
1432012-01-30 Michael Eager <[email protected]>
144
145 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
146 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 147 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
148 (powerpc_linux_in_plt_stub): New function.
149 (powerpc_linux_in_dynsym_resolve_code): New function.
150 (ppc_skip_trampoline_code): New function.
151 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
152 Use glibc_skip_solib_resolver.
153
40478521
JK
1542012-01-28 Jan Kratochvil <[email protected]>
155
156 Code cleanup: Make 1440 bytes of data segment read-only.
157 * arch-utils.c (endian_enum): Make it const char *const [].
158 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
159 Likewise.
160 * breakpoint.c (always_inserted_enums): Likewise.
161 * cli/cli-cmds.c (script_ext_enums): Likewise.
162 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
163 enumlist parameter const char *const *.
164 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
165 const char *const *.
166 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
167 parameter const char *const *.
168 * cris-tdep.c (cris_modes): Make it const char *const [].
169 * filesystem.c (target_file_system_kinds): Likewise.
170 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
171 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
172 (can_use_displaced_stepping_enum, scheduler_enums)
173 (exec_direction_names): Likewise.
174 * language.c (_initialize_language): Make the type_or_range_names and
175 case_sensitive_names variables const char *const [].
176 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
177 * python/python.c (python_excp_enums): Likewise.
178 * remote.c (interrupt_sequence_modes): Likewise.
179 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
180 * serial.c (logbase_enums): Likewise.
181 * sh-tdep.c (sh_cc_enum): Likewise.
182 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
183 Likewise.
184 * symtab.c (multiple_symbols_modes): Likewise.
185 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
186 Likewise.
187 * utils.c (internal_problem_modes): Likewise.
188
b3b8b934
JK
1892012-01-27 Jan Kratochvil <[email protected]>
190
191 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
192 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
193 result.
194
8c85a4e2
DE
1952012-01-27 Doug Evans <[email protected]>
196
197 * configure.ac (with_python): Fix absolute path handling for win32.
198 * configure: Regenerate.
199
78d8b4d7
DE
2002012-01-26 Doug Evans <[email protected]>
201
eca864fe
DE
202 * symtab.c: Whitespace cleanup, no code changes.
203
7e082072
DE
204 * symtab.c (lookup_symbol_in_language): Improve comment.
205 (lookup_symbol_aux): Fix comment.
206
7dc25483
DE
207 * psymtab.c (add_psymbol_to_list): Result is now "void".
208 * psympriv.h (add_psymbol_to_list): Update.
209
78d8b4d7
DE
210 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
211
4c63965b
JK
2122012-01-26 Jan Kratochvil <[email protected]>
213
214 Do not open script filenames twice.
215 * cli/cli-cmds.c (source_script_from_stream): Pass to
216 source_python_script also STREAM.
217 * python/py-auto-load.c (source_section_scripts): Pass to
218 source_python_script_for_objfile also STREAM.
219 (auto_load_objfile_script): Pass to source_python_script_for_objfile
220 also INPUT.
221 * python/python-internal.h (source_python_script_for_objfile): New
222 parameter file, rename parameter file to filename.
223 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
224 instead if !_WIN32. Update the function comment.
225 (source_python_script, source_python_script_for_objfile)
226 (source_python_script): New parameter file, rename parameter file to
227 filename. Pass FILENAME to python_run_simple_file.
228 * python/python.h (source_python_script): New parameter file, rename
229 parameter file to filename.
230
88f38a04
PA
2312012-01-26 Pedro Alves <[email protected]>
232
233 * corelow.c (core_has_fake_pid): Delete.
234 (core_close): Delete references to `core_has_fake_pid'.
235 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
236 (core_open): Delete references to `core_has_fake_pid'.
237 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
238 the removed global.
239
e078317b
JB
2402012-01-26 Joel Brobecker <[email protected]>
241
242 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
243 Remove language parameter from name_matcher. Adjust the comment.
244 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
245 Remove language parameter.
246 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
247 * linespec.c (iterate_name_matcher): Likewise.
248 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
249 name_matcher. Adjust call accordingly.
250 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
251 (maintenance_check_symtabs): Adjust type of parameter "fun".
252 * psymtab.h (maintenance_check_symtabs): Likewise.
253
74ccd7f5
JB
2542012-01-26 Joel Brobecker <[email protected]>
255
256 * language.h (symbol_name_match_p_ftype): New typedef.
257 (struct language_defn): Replace field la_symbol_name_compare
258 by la_get_symbol_name_match_p.
259 * ada-lang.c (ada_get_symbol_name_match_p): New function.
260 (ada_language_defn): Use it.
261 * linespec.c (struct symbol_matcher_data): New type.
262 (iterate_name_matcher): Rewrite.
263 (iterate_over_all_matching_symtabs): Pass a pointer to
264 a symbol_matcher_data struct to expand_symtabs_matching
265 instead of just the lookup name.
266 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
267 opencl-lang.c, p-lang.c, language.c: Delete field
268 la_symbol_name_compare, and replace by NULL for new field
269 la_get_symbol_name_match_p.
270 * symfile.h (struct quick_symbol_functions): Update comment.
271
5d268276
TT
2722012-01-25 Tom Tromey <[email protected]>
273
274 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
275 dereferencing.
276
edcc5120
TT
2772012-01-24 Tom Tromey <[email protected]>
278
279 PR symtab/12406:
280 * solib.c (update_solib_list): Update the program space's
281 added_solibs and deleted_solibs fields.
282 * progspace.h (struct program_space) <added_solibs,
283 deleted_solibs>: New fields.
284 (clear_program_space_solib_cache): Declare.
285 * progspace.c (release_program_space): Call
286 clear_program_space_solib_cache.
287 (clear_program_space_solib_cache): New function.
288 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
289 bpstat_stop_status. Use handle_solib_event.
290 * breakpoint.c: Include gdb_regex.h.
291 (print_solib_event): New function.
292 (bpstat_print): Use print_solib_event.
293 (bpstat_stop_status): Add special case for bp_shlib_event.
294 (handle_solib_event): New function.
295 (bpstat_what): Use handle_solib_event.
296 (struct solib_catchpoint): New.
297 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
298 (breakpoint_hit_catch_solib, check_status_catch_solib)
299 (print_it_catch_solib, print_one_catch_solib)
300 (print_mention_catch_solib, print_recreate_catch_solib): New
301 functions.
302 (catch_solib_breakpoint_ops): New global.
303 (catch_load_or_unload, catch_load_command_1)
304 (catch_unload_command_1): New functions.
305 (internal_bkpt_check_status): Add special case for
306 bp_shlib_event.
307 (internal_bkpt_print_it): Use print_solib_event.
308 (initialize_breakpoint_ops): Initialize
309 catch_solib_breakpoint_ops.
310 (_initialize_breakpoint): Register "catch load" and "catch
311 unload".
312 * breakpoint.h (handle_solib_event): Declare.
313 * NEWS: Add entry for "catch load" and "catch unload".
314
fa864999
TT
3152012-01-24 Tom Tromey <[email protected]>
316
317 * ada-lang.c: Include gdb_vecs.h.
318 * charset.c: Include gdb_vecs.h.
319 * tracepoint.h: Include gdb_vecs.h.
320 * gdb_vecs.h: New file.
321
f90263c1
TT
3222012-01-24 Pedro Alves <[email protected]>
323
324 * breakpoint.c (breakpoint_hit_catch_fork)
325 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
326 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
327 * infrun.c (inferior_has_forked, inferior_has_vforked)
328 (inferior_has_execd, inferior_has_called_syscall): Delete.
329 (handle_syscall_event): Get syscall_number from the execution
330 control state's wait status.
331 (wait_for_inferior): Don't clear syscall_number.
332
09ac7c10
TT
3332012-01-24 Pedro Alves <[email protected]>
334
335 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
336 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
337 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
338 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
339 `ws' parameter.
340 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
341 false for events other than TARGET_SIGNAL_TRAP.
342 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
343 Add `ws' parameter.
344 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
345 events other than TARGET_SIGNAL_TRAP.
346 (tracepoint_breakpoint_hit): Add `ws' parameter.
347 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
348 parameter.
349 (bpstat_stop_status): Same.
350 (pc_at_non_inline_function): Same.
351 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
352 to pass the current event's waitstatus to bpstat_stop_status
353 and pc_at_non_inline_function.
354
86eb7e95
JK
3552012-01-24 Jan Kratochvil <[email protected]>
356
357 Code cleanup.
358 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
359 Update the function comment for it.
360 (source_script_with_search): Call make_cleanup_fclose for STREAM.
361 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
362 for STREAM.
363
a9b3a50f
PA
3642012-01-24 Pedro Alves <[email protected]>
365
366 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
367 outside `bs->stop' block.
368 (bpstat_what): Rework bp_shlib_event handling.
369 (internal_bkpt_check_status): If the breakpoint is a
370 bp_shlib_event, then set bs->stop and bs->print if
371 stop_on_solib_events is set.
372
53fe1783
GB
3732012-01-24 Gary Benson <[email protected]>
374
375 Delete #if 0'd out code.
376 * stack.c (print_frame_label_vars): Remove.
377 (catch_info): Likewise.
378 (_initialize_stack): Remove "info catch" command.
379 * NEWS: Mention the above.
380
49c62f2e
PA
3812012-01-24 Pedro Alves <[email protected]>
382
383 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
384 it.
385 (remote_notice_new_inferior): If the remote end doesn't support
386 the multiprocess extensions, then the PID is fake.
387 (add_current_inferior_and_thread): New.
388 (remote_start_remote): Use it.
389 (extended_remote_attach_1): Adjust.
390 (extended_remote_create_inferior_1): Use
391 add_current_inferior_and_thread.
392
d0d8b0c6
JK
3932012-01-24 Jan Kratochvil <[email protected]>
394
395 Fix watchpoints to be specific for each inferior.
396 * breakpoint.c (watchpoint_in_thread_scope): Verify also
397 current_program_space.
398 * i386-nat.c (i386_inferior_data_cleanup): New.
399 (i386_inferior_data_get): Replace variable inf_data_local by an
400 inferior_data call.
401 (i386_use_watchpoints): Initialize i386_inferior_data.
402 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
403 specific iterate_over_lwps.
404
4403d8e9
JK
4052012-01-24 Jan Kratochvil <[email protected]>
406
407 Fix watchpoints across inferior fork.
408 * amd64-linux-nat.c (update_debug_registers_callback): Update the
409 comment for linux_nat_iterate_watchpoint_lwps.
410 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
411 linux_nat_iterate_watchpoint_lwps.
412 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
413 * i386-linux-nat.c (update_debug_registers_callback): Update the
414 comment for linux_nat_iterate_watchpoint_lwps.
415 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
416 linux_nat_iterate_watchpoint_lwps.
417 (i386_linux_prepare_to_resume): New comment on Linux kernel.
418 * i386-nat.c: Include inferior.h.
419 (dr_mirror): Remove.
420 (i386_inferior_data, struct i386_inferior_data)
421 (i386_inferior_data_get): New.
422 (i386_debug_reg_state): Use i386_inferior_data_get.
423 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
424 (i386_insert_watchpoint, i386_remove_watchpoint)
425 (i386_stopped_data_address, i386_insert_hw_breakpoint)
426 (i386_remove_hw_breakpoint): New variable state, use
427 i386_debug_reg_state instead of DR_MIRROR.
428 * linux-nat.c (delete_lwp): New declaration.
429 (num_lwps): Move here from downwards.
430 (delete_lwp_cleanup): New.
431 (linux_child_follow_fork): Create new child_lp, call
432 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
433 PTRACE_DETACH.
434 (num_lwps): Move upwards.
435 (linux_nat_iterate_watchpoint_lwps): New.
436 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
437 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
438
2992c9a7 4392012-01-24 Joel Brobecker <[email protected]>
440
441 GDB 7.4 released.
442
e360902b
PA
4432012-01-23 Pedro Alves <[email protected]>
444
445 * top.c (caution): Rename to ...
446 (confirm): ... this.
447 (show_caution): Rename to ...
448 (show_confirm): ... this.
449 (quit_cover): Adjust.
450 (init_main): Adjust.
451 * top.h (caution): Rename to ...
452 (confirm): ... this.
453 * utils.c (internal_vproblem, defaulted_query): Adjust.
454
050a2e1d
PA
4552012-01-23 Pedro Alves <[email protected]>
456
457 * top.c (caution): Update comment.
458 (execute_command): Don't consider the current value of `caution'.
459
77a35dd8
JK
4602012-01-23 Jan Kratochvil <[email protected]>
461
462 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
463
a71b5a38
UW
4642012-01-23 Ulrich Weigand <[email protected]>
465
466 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
467 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
468 * target.c (target_fileio_pwrite): Remove buffer address from
469 debug output.
470 (target_fileio_pread): Likewise.
471
d99bd577
UW
4722012-01-20 Ulrich Weigand <[email protected]>
473
474 * NEWS: Document remote "info proc" and "generate-core-file".
475
35c2fab7
UW
4762012-01-20 Ulrich Weigand <[email protected]>
477
478 * gdbarch.sh (find_memory_regions): New callback.
479 * gdbarch.c, gdbarch.h: Regenerate.
480
481 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
482 callback before falling back to target method.
483
484 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
485 (linux_target_install_ops): No longer install it.
486
487 * linux-tdep.c (linux_find_memory_regions): New function.
488 (linux_init_abi): Install it.
489
6432734d
UW
4902012-01-20 Ulrich Weigand <[email protected]>
491
492 * gdbarch.sh (make_corefile_notes): New architecture callback.
493 * gdbarch.c: Regenerate.
494 * gdbarch.h: Likewise.
495
496 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
497 before target_make_corefile_notes. If NULL is returned, the
498 target does not support core file generation.
499
500 * linux-nat.c: Include "linux-tdep.h".
501 (find_signalled_thread, find_stop_signal): Remove.
502 (linux_nat_do_thread_registers): Likewise.
503 (struct linux_nat_corefile_thread_data): Likewise.
504 (linux_nat_corefile_thread_callback): Likewise.
505 (iterate_over_spus): Likewise.
506 (struct linux_spu_corefile_data): Likewise.
507 (linux_spu_corefile_callback): Likewise.
508 (linux_spu_make_corefile_notes): Likewise.
509 (linux_nat_collect_thread_registers): New function.
510 (linux_nat_make_corefile_notes): Replace contents by call to
511 linux_make_corefile_notes passing linux_nat_collect_thread_registers
512 as native-only callback.
513
514 * linux-tdep.h: Include "bfd.h".
515 (struct regcache): Add forward declaration.
516 (linux_collect_thread_registers_ftype): New typedef.
517 (linux_make_corefile_notes): Add prototype.
518 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
519 "regset.h", and "elf-bfd.h".
520 (find_signalled_thread, find_stop_signal): New functions.
521 (linux_spu_make_corefile_notes): Likewise.
522 (linux_collect_thread_registers): Likewise.
523 (struct linux_corefile_thread_data): New data structure.
524 (linux_corefile_thread_callback): New funcion.
525 (linux_make_corefile_notes): Likewise.
526 (linux_make_corefile_notes_1): Likewise.
527 (linux_init_abi): Install it.
528
3030c96e
UW
5292012-01-20 Ulrich Weigand <[email protected]>
530
531 * gdbarch.sh (info_proc): New callback.
532 * gdbarch.c, gdbarch.h: Regenerate.
533
534 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
535 before falling back to the target info_proc callback.
536
537 * linux-nat.c: Do not include "cli/cli-utils.h".
538 (linux_nat_info_proc): Remove.
539 (linux_target_install_ops): No longer install it.
540
541 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
542 (read_mapping): New function.
543 (linux_info_proc): Likewise.
544 (linux_init_abi): Install it.
545
145b16a9
UW
5462012-01-20 Ulrich Weigand <[email protected]>
547
548 * defs.h (enum info_proc_what): Moved here from linux-nat.c
549 * infcmd.c: (info_proc_cmd_1): New function.
550 (info_proc_cmd): New function, moved here from equivalent routine
551 orignally in linux-nat.c.
552 (info_proc_cmd_mappings): Likewise.
553 (info_proc_cmd_stat): Likewise.
554 (info_proc_cmd_status): Likewise.
555 (info_proc_cmd_cwd): Likewise.
556 (info_proc_cmd_cmdline): Likewise.
557 (info_proc_cmd_exe): Likewise.
558 (info_proc_cmd_all): Likewise.
559 (_initialize_infcmd): Install "info proc" command and subcommands.
560
561 * target.h (struct target_ops): Add to_info_proc.
562 (target_info_proc): Add prototype.
563 * target.c (target_info_proc): New function.
564
565 * procfs.c (procfs_info_proc): Add prototype.
566 (info_proc_cmd): Rename into ...
567 (procfs_info_proc): ... this. Update argument types as appropriate
568 for a to_info_proc implementation. Handle "what" argument.
569 (procfs_target): Install procfs_info_proc.
570 (_initialize_procfs): No longer install "info proc" command.
571
572 * linux-nat.c: (enum info_proc_what): Remove.
573 (linux_nat_info_proc_cmd_1): Rename into ...
574 (linux_nat_info_proc): ... this. Update argument types as appropriate
575 for a to_info_proc implementation.
576 (linux_nat_info_proc_cmd): Remove.
577 (linux_nat_info_proc_cmd_mappings): Likewise.
578 (linux_nat_info_proc_cmd_stat): Likewise.
579 (linux_nat_info_proc_cmd_status): Likewise.
580 (linux_nat_info_proc_cmd_cwd): Likewise.
581 (linux_nat_info_proc_cmd_cmdline): Likewise.
582 (linux_nat_info_proc_cmd_exe): Likewise.
583 (linux_nat_info_proc_cmd_all): Likewise.
584 (linux_target_install_ops): Install linux_nat_info_proc.
585 (_initialize_linux_nat): No longer install "info proc" command
586 and subcommands.
587
b9e7b9c3
UW
5882012-01-20 Ulrich Weigand <[email protected]>
589
590 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
591 * config.in, configure: Regenerate.
592
593 * target.h (struct target_ops): Add to_fileio_readlink.
594 (target_fileio_readlink): Add prototype.
595 * target.c (target_fileio_readlink): New function.
596
597 * inf-child.c: Conditionally include <sys/param.h>.
598 (inf_child_fileio_readlink): New function.
599 (inf_child_target): Install it.
600
601 * remote.c (PACKET_vFile_readlink): New enum value.
602 (remote_hostio_readlink): New function.
603 (init_remote_ops): Install it.
604 (_initialize_remote): Handle vFile:readlink packet type.
605
7313baad
UW
6062012-01-20 Pedro Alves <[email protected]>
607 Ulrich Weigand <[email protected]>
608
609 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
610 * config.in, configure: Regenerate.
611
612 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
613 to_fileio_pread, to_fileio_close, to_fileio_unlink.
614 (target_fileio_open): Add prototype.
615 (target_fileio_pwrite): Likewise.
616 (target_fileio_pread): Likewise.
617 (target_fileio_close): Likewise.
618 (target_fileio_unlink): Likewise.
619 (target_fileio_read_alloc): Likewise.
620 (target_fileio_read_stralloc): Likewise.
621
622 * target.c: Include "gdb/fileio.h".
623 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
624 (default_fileio_target): New function.
625 (target_fileio_open): Likewise.
626 (target_fileio_pwrite): Likewise.
627 (target_fileio_pread): Likewise.
628 (target_fileio_close): Likewise.
629 (target_fileio_unlink): Likewise.
630 (target_fileio_close_cleanup): Likewise.
631 (target_fileio_read_alloc_1): Likewise.
632 (target_fileio_read_alloc): Likewise.
633 (target_fileio_read_stralloc): Likewise.
634
635 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
636 <fcntl.h>, and <unistd.h>.
637 (inf_child_fileio_open_flags_to_host): New function.
638 (inf_child_errno_to_fileio_error): Likewise.
639 (inf_child_fileio_open): Likewise.
640 (inf_child_fileio_pwrite): Likewise.
641 (inf_child_fileio_pread): Likewise.
642 (inf_child_fileio_close): Likewise.
643 (inf_child_fileio_unlink): Likewise.
644 (inf_child_target): Install to_fileio routines.
645
646 * remote.c (init_remote_ops): Install to_fileio routines.
647
901f9912
UW
6482012-01-20 Pedro Alves <[email protected]>
649 Ulrich Weigand <[email protected]>
650
651 * remote.c (remote_multi_process_p): Only check for multi-process
652 protocol feature, do not check for extended protocol.
653 (remote_supports_multi_process): Check for extended protocol here.
654 (set_general_process): Likewise.
655 (extended_remote_kill): Likewise.
656 (remote_pid_to_str): Likewise.
657 (remote_query_supported): Always query multiprocess mode.
658
e714e1bf
UW
6592012-01-20 Pedro Alves <[email protected]>
660 Ulrich Weigand <[email protected]>
661
662 * inferior.h (struct inferior): Add fake_pid_p.
663 * inferior.c (exit_inferior_1): Clear fake_pid_p.
664 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
665 magic_null_ptid since the remote side doesn't provide a real PID.
666
50897289
TT
6672012-01-19 Tom Tromey <[email protected]>
668
669 * NEWS: Combine the two Python sections.
670
1afc2033
JK
6712012-01-19 Jan Kratochvil <[email protected]>
672
673 * target.h (target_close): Update comment on the target's unpush state.
674
305436e0
PA
6752012-01-19 Pedro Alves <[email protected]>
676
677 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
678 linux_nat_async directly instead of going through the target
679 vector.
680 * target.c (unpush_target): Close target after unpushing it, not
681 before.
682
49323895
GB
6832012-01-19 Gary Benson <[email protected]>
684
685 * mdebugread.c (sort_blocks): Replace integer constants with ones
686 derived from FIRST_LOCAL_BLOCK.
687
1db33378
PP
6882012-01-18 Paul Pluzhnikov <[email protected]>
689 Jan Kratochvil <[email protected]>
690
691 PR gdb/9538
692 * symfile.c (find_separate_debug_file): New function.
693 (terminate_after_last_dir_separator): Likewise.
694 (find_separate_debug_file_by_debuglink): Also try realpath.
695 * configure.ac (AC_CHECK_FUNCS): Add lstat.
696 * configure: Regenerate.
697 * config.in: Regenerate.
698
f83d8a90
DE
6992012-01-18 Doug Evans <[email protected]>
700
701 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
702 (main.o): Remove rule.
703 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
704 (--with-sysroot): Rewrite.
705 * configure: Regenerate.
706 * config.in: Regenerate.
707
2dbca4d6
SDJ
7082012-01-18 Sergio Durigan Junior <[email protected]>
709
710 * parse.c (initialize_expout): New function.
711 (reallocate_expout): Likewise.
712 (parse_exp_in_context): Use `initialize_expout' and
713 `reallocate_expout' when appropriate.
714
0695b514
PA
7152012-01-18 Pedro Alves <[email protected]>
716
717 * record.c (struct record_breakpoint, record_breakpoint_p)
718 (record_breakpoints): New.
719 (record_insert_breakpoint, record_remove_breakpoint): Manage
720 record breakpoints list. Only remove breakpoints from the
721 inferior if they had been inserted there in the first place.
722
136e1c30
DE
7232012-01-17 Doug Evans <[email protected]>
724
725 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
726 if we know we don't have a file name to look for.
727
c0bf857d
PA
7282012-01-17 Pedro Alves <[email protected]>
729
730 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
731 the frame's stop reason is UNWIND_UNAVAILABLE.
732
b486de60
JK
7332012-01-17 Jan Kratochvil <[email protected]>
734
735 Fix compilation error.
736 * m2-exp.y (yyerror): Use ANSI C prototype.
737
d04550a6
SDJ
7382012-01-16 Sergio Durigan Junior <[email protected]>
739
740 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
741 (growbuf_by_size): Likewise.
742 (yyerror): Likewise.
743 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
744 (modblock): Remove variable (was #if 0'ed).
745 (parse_number): Convert prototype from K&R to ANSI C.
746 (yyerror): Likewise.
747 * objc-exp.y (parse_number): Likewise.
748 (yyerror): Likewise.
749 (yylex): Remove #if 0'ed code.
750 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
751 (yyerror): Likewise.
752
4aac40c8
TT
7532012-01-16 Tom Tromey <[email protected]>
754
755 * NEWS: Add item.
756 * symtab.h (compare_filenames_for_search): Declare.
757 * symtab.c (compare_filenames_for_search): New function.
758 (iterate_over_some_symtabs): Use it.
759 * symfile.h (struct quick_symbol_functions)
760 <map_symtabs_matching_filename>: Change spec.
761 * psymtab.c (partial_map_symtabs_matching_filename): Use
762 compare_filenames_for_search. Update for new spec.
763 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
764 compare_filenames_for_search. Update for new spec.
765 * breakpoint.c (clear_command): Use compare_filenames_for_search.
766
cafec441
TT
7672012-01-16 Tom Tromey <[email protected]>
768
769 PR python/13281:
770 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
771 (struct main_type) <flag_flag_enum>: New field.
772 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
773 * NEWS: Add entries.
774 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
775 enums.
776 * python/lib/gdb/printing.py (_EnumInstance): New class.
777 (FlagEnumerationPrinter): Likewise.
778
983af33b
SDJ
7792012-01-16 Sergio Durigan Junior <[email protected]>
780
781 * breakpoint.c (create_sals_from_address_default): New function.
782 (create_breakpoints_sal_default): Likewise.
783 (decode_linespec_default): Likewise.
784 (is_marker_spec): Removed.
785 (strace_marker_p): New function.
786 (init_breakpoint_sal): Using `strace_marker_p' instead of
787 `is_marker_spec'.
788 (create_breakpoint): Call method `create_sals_from_address' from
789 breakpoint_ops, replacing code that created SALs conditionally
790 on the type of the breakpoint. Call method `create_breakpoints_sal',
791 replacing code that created breakpoints conditionally on the type
792 wanted.
793 (base_breakpoint_create_sals_from_address): New function.
794 (base_breakpoint_create_breakpoints_sal): Likewise.
795 (base_breakpoint_decode_linespec): Likewise.
796 (base_breakpoint_ops): Add methods
797 `base_breakpoint_create_sals_from_address',
798 `base_breakpoint_create_breakpoints_sal' and
799 `base_breakpoint_decode_linespec'.
800 (bkpt_create_sals_from_address): New function.
801 (bkpt_create_breakpoints_sal): Likewise.
802 (bkpt_decode_linespec): Likewise.
803 (tracepoint_create_sals_from_address): Likewise.
804 (tracepoint_create_breakpoints_sal): Likewise.
805 (tracepoint_decode_linespec): Likewise.
806 (strace_marker_create_sals_from_address): Likewise.
807 (strace_marker_create_breakpoints_sal): Likewise.
808 (strace_marker_decode_linespec): Likewise.
809 (strace_marker_breakpoint_ops): New variable.
810 (addr_string_to_sals): Remove `marker_spec'. Call method
811 `decode_linespec' from breakpoint_ops, replacing code that decoded
812 an address string into a SAL. Use `strace_marker_p' instead of
813 `marker_spec'.
814 (strace_command): Decide whether we are dealing with a static
815 tracepoint with marker or not. Use the appropriate breakpoint_ops.
816 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
817 * breakpoint.h (linespec_result, linespec_sals): New forward
818 declarations.
819 (breakpoint_ops) <create_sals_from_address>,
820 <create_breakpoints_sal>, <decode_linespec>: New methods.
821
4795f398
DE
8222012-01-14 Doug Evans <[email protected]>
823
824 * NEWS: Update text for "maint set python print-stack".
825 It is deprecated in gdb 7.4 and deleted in 7.5.
826
ee5106fe
EZ
8272012-01-13 Eli Zaretskii <[email protected]>
828
829 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
830 including curses.h.
831
b161e06f
JK
8322012-01-12 Jan Kratochvil <[email protected]>
833
834 * configure: Regenerate.
835 * config.in: Regenerate.
836
85254831
KS
8372012-01-12 Keith Seitz <[email protected]>
838
839 PR mi/10586
840 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
841 (ANONYMOUS_UNION_NAME): Define.
842 (is_path_expr_parent): New function.
843 (get_path_expr_parent): New function.
844 (is_anonymous_child): New function.
845 (create_child_with_value): If the child is anonymous and without
846 a name, assign an object name to it.
847 (c_describe_child): Use get_path_expr_parent to determine
848 the parent expression.
849 If there field represents an anonymous struct or union and
850 has no name, set an appropriate display name and expression.
851 (cplus_describe_child): Likewise.
852
620fa63a
PA
8532012-01-12 Pedro Alves <[email protected]>
854
855 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
856 available when %ebp is found to be zero (outermost).
857
2efa2c79
AT
8582012-01-11 Andreas Tobler <[email protected]>
859
860 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
861 an internal gdb_static_assert.
862 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
863
88e7d25d
TT
8642012-01-11 Tom Tromey <[email protected]>
865
866 PR gdb/9598:
867 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
868 catch" and "catch throw".
869
72384ba3
PH
8702012-01-11 Paul Hilfinger <[email protected]>
871
872 * blockframe.c (block_innermost_frame): Start search from selected
873 frame, if present, or otherwise the current frame.
874
875 * c-exp.y (variable): Update innermost_block for
876 'block COLONCOLON NAME' clause.
877 * m2-exp.y (variable): Ditto.
878 * objc-exp.y (variable): Ditto.
879
065a711f
TT
8802012-01-10 Tom Tromey <[email protected]>
881
882 PR python/13199:
883 * python/python.c (finish_python_initialization): Set sys.argv.
884
f3f5162e
DE
8852012-01-10 Doug Evans <[email protected]>
886
887 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
888 "want_line_info". All callers updated.
889 (dwarf_decode_lines_1): New function.
890 (handle_DW_AT_stmt_list): Add function comment.
891 New arg "want_line_info". All callers updated.
892 (read_file_scope,read_type_unit_scope): Move comment from
893 handle_DW_AT_stmt_list to here.
894
9934703b
JK
8952012-01-10 Jan Kratochvil <[email protected]>
896
897 Fix regression after libiberty/ update for GCC PR 6057 and others.
898 * c-exp.y (operator) <OPERATOR DELETE>
899 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
900 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
901 (make_builtin_type, make_name): New variable i, add gdb_assert.
902 (operator) <OPERATOR NEW>: Update ARGS to 3.
903 (operator) <OPERATOR DELETE>: Add trailing space.
904 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
905 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
906 * cp-support.c (cp_canonicalize_string): Check NULL from
907 cp_comp_to_string, call warning and return.
908
06b9f45f
JK
9092012-01-10 Jan Kratochvil <[email protected]>
910
911 Fix duplicate .o files after omitting libbfd.a.
912 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
913 (SFILES): Add corelow.c.
914 (COMMON_OBS): Add corelow.o.
915 (ALLDEPFILES): Remove corelow.c.
916 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
917 * config/alpha/alpha-osf3.mh: Likewise.
918 * config/alpha/fbsd.mh: Likewise.
919 * config/arm/nbsdaout.mh: Likewise.
920 * config/arm/nbsdelf.mh: Likewise.
921 * config/i386/i386gnu.mh: Likewise.
922 * config/ia64/hpux.mh: Likewise.
923 * config/ia64/linux.mh: Likewise.
924 * config/m32r/linux.mh: Likewise.
925 * config/m68k/linux.mh: Likewise.
926 * config/mips/irix5.mh: Likewise.
927 * config/mips/irix6.mh: Likewise.
928 * config/pa/hpux.mh: Likewise.
929 * config/pa/linux.mh: Likewise.
930 * config/powerpc/aix.mh: Likewise.
931 * config/sparc/linux.mh: Likewise.
932 * config/sparc/linux64.mh: Likewise.
933 * config/sparc/sol2.mh: Likewise.
934 * config/vax/vax.mh: Likewise.
935 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
936 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
937 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
938 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
939 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
940 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
941 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
942 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
943 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
944 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
945 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
946 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
947 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
948 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
949 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
950 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
951 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
952 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
953 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
954 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
955 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
956 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
957 corelow.o from gdb_target_obs.
958 * corefile.c (core_target): Update the comment on NULL value.
959 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
960 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
961 MATCHES. Drop YUMMY set on NULL.
962 (core_close): Do not call exit_inferior_silent on zero PID. Do not
963 reclaim CORE_DATA if it is already NULL.
964
34365054
DE
9652012-01-09 Doug Evans <[email protected]>
966
967 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
968 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
969
696166a3
KS
9702012-01-09 Keith Seitz <[email protected]>
971
972 * breakpoint.c (wrapper.h): Don't include.
973
8e7b59a5
KS
9742012-01-09 Keith Seitz <[email protected]>
975
976 * Makefile.in (SFILES): Remove wrapper.c.
977 (HFILES_NO_SRCDIR): Remove wrapper.h.
978 (COMMON_OBS): Remove wrapper.o.
979 * cli/cli-interp.c: Don't inlude wrapper.h.
980 * corelow.c: Likewise.
981 (core_open): Replace gdb_target_find_new_threads with
982 TRY_CATCH around target_find_new_threads.
983 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
984 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
985 * varobj.c (varobj_create): Likewise for parse_exp_1 and
986 evaluate_expression.
987 (varobj_set_value): Likewise for evaluate_expression and
988 value_assign.
989 (install_new_variable): Likewise for value_fetch_lazy.
990 (adjust_value_for_child_access): Likewise for value_ind.
991 (c_describe_child): Likewise for value_subscript and
992 value_ind.
993 (c_value_of_root): Likewise for evaluate_expression.
994 * wrapper.c: Remove.
995 * wrapper.h: Remove.
996
1a4eeb98
DE
9972012-01-09 Doug Evans <[email protected]>
998
9ff913ba
DE
999 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
1000 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
1001 "abfd" args with "section". All callers updated.
1002 Error checking code moved ...
1003 (error_check_comp_unit_head): ... here. New function.
1004 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
1005 Delete arg "abfd". New arg "type_offset". All callers updated.
1006 (create_debug_types_hash_table): Simplify by using
1007 read_and_check_type_unit_head.
1008
1a4eeb98
DE
1009 * parser-defs.h (namecopy): Delete.
1010 * parse.c (namecopy, namecopy_size): Move into copy_name.
1011
2e6af8c0
JK
10122012-01-09 Jan Kratochvil <[email protected]>
1013
1014 Partially fix duplicate .o files after omitting libbfd.a.
1015 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
1016 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1017 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
1018 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1019 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
1020 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
1021 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
1022
9f2f828a
PA
10232012-01-09 Pedro Alves <[email protected]>
1024
1025 * MAINTAINERS: Update my email address.
1026
4d72c0bc
DE
10272012-01-08 Doug Evans <[email protected]>
1028
d467dd73
DE
1029 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
1030 n_type_units. Rename type_comp_units to all_type_units.
1031 All uses updated.
1032 (add_signatured_type_cu_to_table): Renamed from
1033 add_signatured_type_cu_to_list. All callers updated.
1034
4d72c0bc
DE
1035 * gdbtypes.h (struct cplus_struct_type): Delete member
1036 nfn_fields_total. All uses removed.
1037
21b2bd31
DE
10382012-01-06 Doug Evans <[email protected]>
1039
1040 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
1041 to top of file.
1042 (dwarf2_find_comp_unit): Delete.
1043 (process_psymtab_comp_unit): Make result "void".
1044 Delete args buffer, info_ptr, buffer_size, and replace with
1045 "section". All callers updated.
1046 (dwarf2_build_psymtabs_hard): Simplify.
1047
bfd189b1
SDJ
10482012-01-06 Sergio Durigan Junior <[email protected]>
1049 Thiago Jung Bauermann <[email protected]>
1050
1051 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
1052 before `struct gdb_exception'.
1053 * breakpoint.c (update_global_location_list_nothrow)
1054 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
1055 * cp-abi.c (value_rtti_type): Likewise.
1056 * cp-support.c (cp_validate_operator): Likewise.
1057 * infrun.c (insert_exception_resume_breakpoint)
1058 (check_exception_resume, keep_going): Likewise.
1059 * mi-interp.c (mi_breakpoint_created)
1060 (mi_breakpoint_modified): Likewise.
1061 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
1062 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
1063 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
1064
6b07635f
DE
10652012-01-05 Doug Evans <[email protected]>
1066
0b30b85c
DE
1067 * dwarf2read.c (statement_prologue): Delete, unused.
1068
98714339
DE
1069 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
1070 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
1071
6b07635f
DE
1072 * dwarf2read.c (comp_unit_header): Delete, unused.
1073
761f4555
UW
10742012-01-05 Ulrich Weigand <[email protected]>
1075
1076 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
1077 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
1078
2ca0b532
PA
10792012-01-05 Khoo Yit Phang <[email protected]>
1080
1081 * infrun.c (normal_stop): Don't skip calling the normal_stop
1082 observers if the thread was doing a multi-step, but stopped for
1083 some reason other than stepping.
1084
50aeff07
PA
10852012-01-05 Pedro Alves <[email protected]>
1086
1087 * cli/cli-decode.h: Add comments.
1088 (CMD_LIST_AMBIGUOUS): Moved to command.h
1089 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
1090 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
1091 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
1092 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
1093 (add_com, add_com_alias, add_info, add_info_alias)
1094 (complete_on_cmdlist, complete_on_enum, help_list): Remove
1095 declarations.
1096 * command.h: Add and adjust comments.
1097 (CMD_LIST_AMBIGUOUS): Moved here.
1098 (help_cmd, help_cmd_list): Delete declarations.
1099
5953832c
DE
11002012-01-04 Doug Evans <[email protected]>
1101
e5fe5e75
DE
1102 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
1103 All callers updated.
1104 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
1105 Replace all arguments with "per_cu". All callers updated.
1106
28dee7f5
DE
1107 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
1108
23745b47
DE
1109 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
1110 New arg "per_cu". All callers updated.
1111
5953832c
DE
1112 Delete #if 0'd out code.
1113 * language.c (binop_result_type): Delete.
1114 (simple_type, ordered_type, same_type, integral_type): Delete.
1115 (numeric_type, character_type, string_type, boolean_type): Delete.
1116 (float_type, structured_type): Delete.
1117 * language.h: Update.
1118
0f5b7562
TT
11192012-01-04 Tom Tromey <[email protected]>
1120
1121 * python/py-value.c (valpy_binop): Initialize 'res_val'.
1122
78218f56
JB
11232012-01-04 Joel Brobecker <[email protected]>
1124
1125 * corefile.c (close_exec_file): Delete.
1126 (reopen_exec_file): Remove commented out code that seems related
1127 to close_exec_file, which is being deleted here.
1128 * inferior.h (close_exec_file): Delete.
1129 * fork-child.c (fork_inferior): Remove call to fork_inferior.
1130
0fcd72ba
JB
11312012-01-04 Joel Brobecker <[email protected]>
1132
1133 * ada-lang.c: #include "cli/cli-utils.h".
1134 (get_selections): Use skip_spaces.
1135 (ada_get_next_arg): Use skip_spaces and skip_to_space.
1136 (catch_ada_exception_command_split): Use skip_spaces.
1137 (ada_decode_assert_location): Likewise.
1138
1dabb4c4
JB
11392012-01-04 Joel Brobecker <[email protected]>
1140
1141 * linespec.c (decode_line_internal): Check for C++ or Java
1142 compound constructs only if the current language is C, C++
1143 or Java.
1144
5931a2fa
JK
11452012-01-04 Jan Kratochvil <[email protected]>
1146
1147 Revert:
1148 2012-01-02 Jan Kratochvil <[email protected]>
1149 Joel Brobecker <[email protected]>
1150 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
1151 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
1152 3 times.
1153 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
1154 fall through into AT_ENTRY_POINT.
1155 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
1156 DUMMY_ADDR with it.
1157 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
1158 PPC_INSN_SIZE skip to 3 times.
1159
1a2da5ee
JB
11602012-01-04 Joel Brobecker <[email protected]>
1161
1162 * linespec.c (add_minsym): Preserve function descriptors.
1163
8645ff69
UW
11642012-01-04 Ulrich Weigand <[email protected]>
1165
1166 * breakpoint.c (all_locations_are_pending): Consider locations
1167 in program spaces executing during startup pending as well.
1168
0b302171
JB
11692012-01-04 Joel Brobecker <[email protected]>
1170
1171 Copyright year update in most files of the GDB Project.
1172
8ba098ad
JB
11732012-01-04 Joel Brobecker <[email protected]>
1174
1175 * copyright.sh: Delete.
1176 * copyright.py: Rewrite.
1177
09c01c30
JB
11782012-01-04 Joel Brobecker <[email protected]>
1179
1180 * gnulib/extra/update-copyright: New file, imported from gnulib.
1181
3c36c0af
JB
11822012-01-04 Joel Brobecker <[email protected]>
1183
1184 * README (Copyright and License Notices): New section.
1185
888fe1e1
TT
11862012-01-03 Tom Tromey <[email protected]>
1187
1188 PR python/12533:
1189 * python/py-value.c (valpy_dereference, valpy_get_address
1190 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
1191 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
1192 (valpy_absolute, valpy_richcompare): Free intermediate values.
1193
6e681866
JB
11942011-01-03 Joel Brobecker <[email protected]>
1195
1196 * ada-lang.c: Reformat the copyright notice.
1197
0cd09acb
JK
11982012-01-02 Jan Kratochvil <[email protected]>
1199
1200 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
1201 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
1202 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
1203 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
1204 Revert this part of:
1205 2012-01-02 Jan Kratochvil <[email protected]>
1206 Build gdb directly from *.o files not using libgdb.a.
1207 * Makefile.in (COMMON_OBS): Remove solib-target.o.
1208
12c3e59c
JB
12092012-01-02 Joel Brobecker <[email protected]>
1210
1211 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
1212 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
1213 Reformat the copyright header.
1214
11bf1490
JK
12152012-01-02 Jan Kratochvil <[email protected]>
1216
1217 Revert this part of:
1218 2012-01-02 Jan Kratochvil <[email protected]>
1219 Remove the gdbtui binary.
1220 * gdb.c (main): Remove args.interpreter_p initialization.
1221 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
1222 * main.h (struct captured_main_args): Remove interpreter_p.
1223
1fef196f
JB
12242012-01-02 Joel Brobecker <[email protected]>
1225
1226 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
1227
67827812
JB
12282012-01-02 Joel Brobecker <[email protected]>
1229
1230 * top.c (print_gdb_version): Update copyright year.
1231
a4d0b831
YQ
12322012-01-02 Yao Qi <[email protected]>
1233
1234 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
1235
b5914469
JK
12362012-01-02 Jan Kratochvil <[email protected]>
1237 Joel Brobecker <[email protected]>
1238
1239 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
1240 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
1241 3 times.
1242 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
1243 fall through into AT_ENTRY_POINT.
1244 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
1245 DUMMY_ADDR with it.
1246 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
1247 PPC_INSN_SIZE skip to 3 times.
1248
8da828f7
JK
12492012-01-02 Jan Kratochvil <[email protected]>
1250
1251 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
1252 the return value.
1253 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
1254
8574e74b
JK
12552012-01-02 Jan Kratochvil <[email protected]>
1256
1257 Build gdb directly from *.o files not using libgdb.a.
1258 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
1259 (COMMON_OBS): Remove solib-target.o.
1260 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
1261 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
1262 (LIBGDB_OBS, libgdb.a): Move it above.
1263 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
1264 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
1265 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
1266 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
1267 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
1268 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
1269 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
1270 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
1271 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
1272 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
1273 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
1274 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
1275 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
1276 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
1277 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
1278 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
1279 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
1280 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
1281 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
1282 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
1283 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
1284 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
1285 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
1286 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
1287 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
1288 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
1289 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
1290
217bff3e
JK
12912012-01-02 Jan Kratochvil <[email protected]>
1292
1293 Remove the gdbtui binary.
1294 * .gitignore (/gdbtui): Remove.
1295 * Makefile.in (TUI): Remove.
1296 (SUBDIR_TUI_OBS): Remove tui-main.o.
1297 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
1298 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
1299 (tui-main.o): Remove.
1300 (all_object_files): Remove tui-main.o.
1301 * NEWS: New note for the gdbtui removal.
1302 * configure: Rebuilt.
1303 * configure.ac: No longer add all-tui, clean-tui, install-tui and
1304 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
1305 CONFIG_UNINSTALL respectively.
1306 * gdb.c (main): Remove args.interpreter_p initialization.
1307 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
1308 * main.h (struct captured_main_args): Remove interpreter_p.
1309 * tui/tui-main.c: Remove.
1310
9cdd5dbd
DE
13112012-01-01 Doug Evans <[email protected]>
1312
bb5ed363
DE
1313 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
1314 (dwarf2_physname, read_import_statement): Ditto.
1315 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
1316 (process_structure_scope read_subroutine_type): Ditto.
1317 (read_typedef, load_partial_dies, read_partial_die): Ditto.
1318 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
1319 (dwarf2_fetch_die_location_block): Ditto.
1320 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
1321
a0f42c21
DE
1322 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
1323 All callers updated.
1324 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
1325 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
1326 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
1327
2dc860c0
DE
1328 * dwarf2read.c (load_cu): Move assert to more useful location.
1329
68dc6402
DE
1330 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
1331 All callers updated.
1332
9cdd5dbd
DE
1333 * dwarf2read.c (dwarf2_per_objfile): Add comment.
1334 (dwarf2_elf_names): Minor reformat.
1335 (dwarf2_per_cu_data): Tweak comment.
1336 (dwarf2_read_section): Fix comment.
1337 (create_all_comp_units): Fix comment.
1338 (load_full_comp_unit): Fix comment.
1339 (process_full_comp_unit): Fix comment.
1340 (read_signatured_type): Fix comment.
1341
0c10e53e 1342For older changes see ChangeLog-2011.
c906108c
SS
1343\f
1344Local Variables:
1345mode: change-log
1346left-margin: 8
1347fill-column: 74
1348version-control: never
57da7796 1349coding: utf-8
c906108c 1350End:
This page took 3.039632 seconds and 4 git commands to generate.