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