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