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