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