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