2012-03-13 Hui Zhu <teawater@gmail.com>
[deliverable/binutils-gdb.git] / gdb / ChangeLog
... / ...
CommitLineData
12012-03-13 Hui Zhu <teawater@gmail.com>
2 Pedro Alves <palves@redhat.com>
3
4 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
5 CREATE_BREAKPOINT_FLAGS_INSERTED.
6 (create_breakpoint_sal, create_breakpoints_sal)
7 (base_breakpoint_create_breakpoints_sal)
8 (tracepoint_create_breakpoints_sal)
9 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
10 down.
11 (break_command_1, handle_gnu_v3_exceptions, trace_command)
12 (ftrace_command, strace_command): Adjust.
13 (create_tracepoint_from_upload): Pass
14 CREATE_BREAKPOINT_FLAGS_INSERTED.
15 * breakpoint.h (enum breakpoint_create_flags): New.
16 (create_breakpoint): New flags parameter.
17 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
18 * python/py-breakpoint.c (bppy_init): Adjust.
19 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
20 * spu-tdep.c (spu_catch_start): Adjust.
21
222012-03-13 Pedro Alves <palves@redhat.com>
23 Hui Zhu <teawater@gmail.com>
24 Yao Qi <yao@codesourcery.com>
25
26 * remote.c (struct remote_state): New field `starting_up'.
27 (remote_start_remote): Set and clear it.
28 (remote_can_download_tracepoint): If starting up, return false.
29
302012-03-13 Yao Qi <yao@codesourcery.com>
31
32 * inferior.h (struct inferior): Remove fields any_syscall_count,
33 syscalls_counts and total_syscalls_count. Move them to new
34 struct catch_syscall_inferior_data in breakpoint.c.
35 * breakpoint.c: Call DEF_VEC_I(int).
36 (struct catch_syscall_inferior_data): New.
37 (get_catch_syscall_inferior_data): New.
38 (catch_syscall_inferior_data_cleanup): New.
39 (insert_catch_syscall): Update to access data in
40 struct catch_syscall_inferior_data.
41 (insert_catch_syscall): Likewise.
42 (remove_catch_syscall): Likewise.
43 (remove_catch_syscall): Likewise.
44 (is_syscall_catchpoint_enabled): Likewise.
45 (add_catch_command): Likewise.
46 (_initialize_breakpoint): Register cleanup.
47 * breakpoint.h: Removed DEF_VEC_I(int).
48 * dwarf2loc.c: Call DEF_VEC_I(int).
49 * mi/mi-main.c: Likewise.
50
512012-03-12 Mark Kettenis <kettenis@gnu.org>
52
53 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
54
552012-03-12 Chris January <chris.january@allinea.com>
56
57 * aix-thread.c (_initialize_aix_thread): Add prototype.
58 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
59 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
60
612012-03-12 Joel Brobecker <brobecker@adacore.com>
62
63 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
64 include of "amd64-nat.h".
65
662012-03-12 Tom Tromey <tromey@redhat.com>
67
68 * buildsym.c (record_pending_block): Now static.
69 * buildsym.h: (record_pending_block): Remove.
70
712012-03-12 Andreas Tobler <andreast@fgznet.ch>
72
73 * amd64bsd-nat.c: Include amd64bsd-nat.h.
74
752012-03-09 Tom Tromey <tromey@redhat.com>
76
77 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
78 producer_is_gxx_lt_4_6>: New fields.
79 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
80
812012-03-09 Tom Tromey <tromey@redhat.com>
82
83 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
84
852012-03-08 Joel Brobecker <brobecker@adacore.com>
86
87 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
88 prototype.
89
902012-03-08 Joel Brobecker <brobecker@adacore.com>
91
92 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
93
942012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
95
96 Fix -Wmissing-prototypes build.
97 * arm-linux-nat.c (get_thread_id): Make it static.
98 * xtensa-linux-nat.c (get_thread_id): Likewise.
99
1002012-03-08 Joel Brobecker <brobecker@adacore.com>
101
102 * server.c (process_point_options): If a conditional expression
103 is found, only print a message if remote_debug is nonzero.
104
1052012-03-08 Luis Machado <lgustavo@codesourcery.com>
106
107 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
108 of internal error for unknown/unsupported types.
109
1102012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
111
112 Fix CU relative vs. absolute DIE offsets.
113 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
114 offset to offset_in_cu.
115 * dwarf2read.c (process_enumeration_scope): Add CU offset to
116 TYPE_OFFSET.
117 (dwarf2_fetch_die_location_block): Rename parameter offset to
118 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
119
1202012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
121
122 * libunwind-frame.c: Rename to ...
123 * ia64-libunwind-tdep.c: ... here.
124 * libunwind-frame.h: Rename to ...
125 * ia64-libunwind-tdep.h: ... here.
126 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
127 ia64-libunwind-tdep.h.
128 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
129 * README (--with-libunwind): Rename to ...
130 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
131 * config.in: Regenerate.
132 * configure: Regenerate.
133 * configure.ac: New option --with-libunwind-ia64, make the
134 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
135 Remove AC_DEFINE for HAVE_LIBUNWIND.
136 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
137 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
138 Rename libunwind-frame in the general comment.
139 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
140 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
141 Move forward declarations inside #ifndef. Rename libunwind-frame in
142 the general comment.
143 * ia64-tdep.c: Rename libunwind-frame.h #include to
144 ia64-libunwind-tdep.h.
145 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
146 (ia64_libunwind_descr): Rename libunwind-frame to
147 ia64-libunwind-tdep in these function comments.
148 * ia64-tdep.h: Rename libunwind-frame.h #include to
149 ia64-libunwind-tdep.h.
150 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
151 ia64-libunwind-tdep in that data comment.
152
1532012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
154
155 * libunwind-frame.h (struct frame_unwind): New declaration.
156
1572012-03-08 Joel Brobecker <brobecker@adacore.com>
158
159 * breakpoint.c (_initialize_breakpoint): Fix error in help of
160 "set breakpoint condition-evaluation" command.
161
1622012-03-08 Tristan Gingold <gingold@adacore.com>
163
164 * sparc-stub.c: Move to stubs/
165 * sh-stub.c: Likewise.
166 * m68k-stub.c: Likewise.
167 * m32r-stub.c: Likewise.
168 * i386-stub.c: Likewise.
169
1702012-03-08 Andreas Schwab <schwab@linux-m68k.org>
171
172 * m68klinux-tdep.c (m68k_linux_init_abi): Register
173 linux_get_siginfo_type.
174
175 * m68klinux-nat.c: Include "gdb_proc_service.h".
176 (PTRACE_GET_THREAD_AREA): Define.
177 (ps_get_thread_area): New function.
178
1792012-03-08 Yao Qi <yao@codesourcery.com>
180
181 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
182 `xsnprintf'.
183 (remote_query_attached): Likewise.
184 (remote_static_tracepoint_marker_at): Likewise.
185 (remote_set_permissions): Likewise.
186 (remote_detach_1, extended_remote_attach_1): Likewise.
187 (send_g_packet, remote_vkill): Likewise.
188 (extended_remote_disable_randomization): Likewise.
189 (remote_add_target_side_condition): Likewise.
190 (remote_insert_breakpoint): Likewise.
191 (remote_remove_breakpoint): Likewise.
192 (remote_insert_watchpoint): Likewise.
193 (remote_remove_watchpoint): Likewise.
194 (remote_insert_hw_breakpoint): Likewise.
195 (remote_insert_hw_breakpoint): Likewise.
196 (remote_remove_hw_breakpoint): Likewise.
197 (remote_download_command_source): Likewise.
198 (remote_download_tracepoint): Likewise.
199 (remote_download_trace_state_variable): Likewise.
200 (remote_disable_tracepoint): Likewise.
201 (remote_trace_set_readonly_regions): Likewise.
202 (remote_get_tracepoint_status): Likewise.
203 (remote_trace_find): Likewise.
204 (remote_get_trace_state_variable_value): Likewise.
205 (remote_set_disconnected_tracing): Likewise.
206 (remote_set_circular_trace_buffer): Likewise.
207 (remote_get_min_fast_tracepoint_insn_len): Likewise.
208 (remote_use_agent): Likewise.
209 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
210 Update callers.
211
2122012-03-07 Pedro Alves <palves@redhat.com>
213
214 * NEWS: Mention QProgramSignals.
215 * inferior.h (update_signals_program_target): Declare.
216 * infrun.c: (update_signals_program_target): New.
217 (handle_command): Update the target of the new program signals
218 array changes.
219 * remote.c (PACKET_QProgramSignals): New enum.
220 (last_program_signals_packet): New global.
221 (remote_program_signals): New.
222 (remote_start_remote): Update the target with the program signals
223 list.
224 (remote_protocol_features): Add entry for QPassSignals.
225 (remote_open_1): Free anc clear last_program_signals_packet.
226 (init_remote_ops): Install remote_program_signals.
227 * target.c (update_current_target): Adjust.
228 (target_program_signals): New.
229 * target.h (struct target_ops) <to_program_signals>: New field.
230 (target_program_signals): Declare.
231
2322012-03-07 Pedro Alves <palves@redhat.com>
233
234 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
235 extensions.
236
2372012-03-07 Andreas Schwab <schwab@linux-m68k.org>
238
239 * m68klinux-nat.c (getregs_supplies): Make static.
240 (getfpregs_supplies): Likewise.
241 (have_ptrace_getregs): Likewise.
242
2432012-03-06 Joel Brobecker <brobecker@adacore.com>
244
245 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
246 in call to get_die_type_at_offset.
247
2482012-03-06 Stan Shebs <stan@codesourcery.com>
249
250 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
251 * mi/mi-cmd-disas.c: Ditto.
252 * mi/mi-cmd-env.c: Ditto.
253 * mi/mi-cmd-file.c: Ditto.
254 * mi/mi-cmd-stack.c: Ditto.
255 * mi/mi-cmd-target.c: Ditto.
256 * mi/mi-cmd-var.c: Ditto.
257 * mi/mi-cmds.c: Ditto.
258 * mi/mi-cmds.h: Ditto.
259 * mi/mi-console.c: Ditto.
260 * mi/mi-getopt.c: Ditto.
261 * mi/mi-getopt.h: Ditto.
262 * mi/mi-interp.c: Ditto.
263 * mi/mi-main.c: Ditto.
264 * mi/mi-out.c: Ditto.
265 * mi/mi-parse.c: Ditto.
266 * mi/mi-parse.h: Ditto.
267 * mi/mi-symbol-cmds.c: Ditto.
268
269 * mi/mi-getopt.h: Move mi_opt struct up.
270 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
271 return.
272 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
273
2742012-03-06 Tom Tromey <tromey@redhat.com>
275
276 * proc-service.c (ps_pglobal_lookup): Set the current program
277 space.
278
2792012-03-06 Pedro Alves <palves@redhat.com>
280
281 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
282
2832012-03-05 Joel Brobecker <brobecker@adacore.com>
284
285 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
286
2872012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
288
289 Code cleanup.
290 * common/linux-osdata.c (linux_common_core_of_thread): New function
291 comment.
292 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
293 call by linux_common_core_of_thread.
294 (linux_nat_core_of_thread_1): Remove.
295 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
296 * linux-thread-db.c: Include linux-osdata.h.
297 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
298 linux_common_core_of_thread.
299
3002012-03-05 Tom Tromey <tromey@redhat.com>
301
302 * value.c (value_primitive_field): Don't fetch contents for
303 non-virtual bases.
304
3052012-03-05 Tom Tromey <tromey@redhat.com>
306
307 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
308
3092012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
310
311 * s390-nat.c: Include "gregset.h".
312
3132012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
314
315 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
316 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
317 (libunwind_load): New variable so_error, use it for dlerror. Try to
318 load also LIBUNWIND_SO_7.
319
3202012-03-05 Pedro Alves <palves@redhat.com>
321
322 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
323 is not NULL, and remove resulting dead code.
324
3252012-03-05 Thomas Schwinge <thomas@codesourcery.com>
326
327 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
328 prologue to sh_analyze_prologue.
329 (sh_analyze_prologue): Make better use of such an upper limit, and
330 generally be more cautious about accessing memory.
331
3322012-03-05 Tom Tromey <tromey@redhat.com>
333
334 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
335 _initialize_ia64_hpux_tdep.
336
3372012-03-05 Pedro Alves <palves@redhat.com>
338
339 PR gdb/13766
340
341 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
342 the register state is clear, supply explicit zero, instead of
343 marking the register unavailable.
344
3452012-03-05 Tristan Gingold <gingold@adacore.com>
346
347 * NEWS: Mention OpenVMS ia64 new target.
348
3492012-03-05 Tristan Gingold <gingold@adacore.com>
350
351 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
352 (ia64_unw_accessors, ia64_unw_rse_accessors)
353 (ia64_libunwind_descr): Declare.
354 * ia64-vms-tdep.c: New file.
355 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
356 (ia64_libunwind_descr): Make them public.
357 * configure.tgt: Add ia64-*-*vms*.
358 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
359 (ALLDEPFILES): Add ia64-vms-tdep.c
360
3612012-03-05 Tristan Gingold <gingold@adacore.com>
362
363 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
364 * remote.c (PACKET_qXfer_uib): New enum value.
365 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
366 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
367 (_initialize_remote): Call add_packet_config_cmd for
368 xfer:uib packet.
369
3702012-03-05 Tristan Gingold <gingold@adacore.com>
371
372 * osabi.c (gdb_osabi_names): Add OpenVMS.
373 (generic_elf_osabi_sniffer): Likewise.
374 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
375
3762012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
377
378 Removed unused code.
379 * libunwind-frame.c (libunwind_frame_unwind)
380 (libunwind_frame_base_address): Remove.
381 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
382
3832012-03-04 Yao Qi <yao@codesourcery.com>
384
385 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
386 remove trailing new line.
387 (agent_run_command, agent_run_command): Add _ markup.
388 (agent_capability_check): Likewise.
389
3902012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
391
392 * breakpoint.c (set_condition_evaluation_mode): Set
393 CONDITION_EVALUATION_MODE unconditionally.
394
3952012-03-03 Yao Qi <yao@codesourcery.com>
396
397 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
398 * common/agent.h: Update declaration.
399 * inf-child.c (inf_child_use_agent): New.
400 (inf_child_can_use_agent): New.
401 (inf_child_target): Initialize fields `to_use_agent'
402 and `to_can_use_agent'.
403 * agent.c (agent_new_objfile): New.
404 (_initialize_agent): Add agent_new_objfile to new_objfile
405 observer.
406
407 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
408 New.
409 (linux_target_install_ops): Initialize field
410 `to_static_tracepoint_markers_by_strid'.
411 * remote.c (free_current_marker): Move it to ...
412 * tracepoint.c (free_current_marker): ... here. New.
413 (cleanup_target_stop): New.
414 * tracepoint.h: Declare free_current_marker.
415 * NEWS: Add one entry about `info static-tracepoint-marker'.
416
4172012-03-03 Yao Qi <yao@codesourcery.com>
418
419 * common/agent.c (agent_loaded_p): New.
420 (agent_look_up_symbols): New global.
421 * common/agent.h: Declare agent_loaded_p.
422
4232012-03-03 Yao Qi <yao@codesourcery.com>
424
425 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
426 (agent_capability_check, agent_capability_invalidate): New.
427 (symbol_list): New array element.
428 * common/agent.h (enum agent_capa): New.
429 * target.c (target_pre_inferior): Call agent_capability_invalidate.
430
4312012-03-03 Yao Qi <yao@codesourcery.com>
432
433 * target.h (struct target_ops) <to_use_agent>: New field.
434 (struct target_ops) <to_can_use_agent>: New field.
435 (target_use_agent, target_can_use_agent): New macro.
436 * target.c (update_current_target): Update.
437 * remote.c: New enum `PACKET_QAgent'.
438 (remote_protocol_features): Add a new element.
439 (remote_use_agent, remote_can_use_agent): New.
440 (init_remote_ops): Initialize field `can_use_agent' with
441 remote_can_use_agent. Intiailize field `use_agent' with
442 remote_use_agent.
443 * common/agent.c (use_agent): New global.
444 * common/agent.h: Declare it.
445 * tracepoint.c (info_static_tracepoint_markers_command): Add
446 comment.
447 * Makefile.in (SFILES): Add common/agent.c and agent.c.
448 (COMMON_OBS): Add common/agent.o and agent.o
449 (common-agent.o): New rule.
450 * agent.c: New.
451
4522012-03-03 Yao Qi <yao@codesourcery.com>
453
454 * common/agent.c: New.
455 * common/agent.h: New.
456 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
457 AC_CHECK_HEADERS.
458 * configure, configh.in: Regenerated.
459
4602012-03-02 Kevin Buettner <kevinb@redhat.com>
461
462 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
463 unless it exists for this architecture.
464
4652012-03-02 Joel Brobecker <brobecker@adacore.com>
466
467 * language.h (struct language_defn): New "method" la_read_var_value.
468 * findvar.c: #include "language.h".
469 (default_read_var_value): Renames read_var_value. Rewrite
470 function description.
471 (read_var_value): New function.
472 * value.h (default_read_var_value): Add prototype.
473 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
474 New functions.
475 (ada_language_defn): Add entry for la_read_var_value.
476 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
477 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
478 language_defn structures to add entry for new la_read_var_value
479 field.
480
4812012-03-02 Tom Tromey <tromey@redhat.com>
482 Pedro Alves <palves@redhat.com>
483
484 PR breakpoints/13776:
485 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
486 breakpoints.
487 (delete_longjmp_breakpoint_at_next_stop): New.
488 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
489 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
490 before deleting the inferior. Add comments.
491 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
492 breakpoints immediately, but only on next stop. Move that code
493 next to where we mark other breakpoints for deletion.
494
4952012-03-02 Joel Brobecker <brobecker@adacore.com>
496
497 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
498 marker.
499 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
500 violation.
501
5022012-03-02 Pedro Alves <palves@redhat.com>
503
504 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
505
5062012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
507
508 Fix -Wmissing-prototypes build.
509 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
510 * remote-sim.c (gdbsim_has_all_memory): Likewise.
511 (gdbsim_has_memory): Likewise.
512
5132012-03-02 Yao Qi <yao@codesourcery.com>
514
515 Fix -Wmissing-prototypes build.
516 * charset.c (phony_iconv_open): Make static.
517 (phony_iconv_close, phony_iconv): Likewise.
518 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
519 * i386-windows-nat.c (_initialize_i386_windows_nat): New
520 prototype.
521 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
522 * ser-mingw.c (create_select_thread): Make static.
523 * windows-termcap.c (tgetent): New prototype.
524 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
525
5262012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
527
528 Fix -Wmissing-prototypes build.
529 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
530 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
531 (_initialize_loadable): New prototypes.
532
5332012-03-02 Doug Evans <dje@google.com>
534
535 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
536 abbrev table, read_comp_unit will do it.
537
5382012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
539
540 Fix -Wmissing-prototypes build.
541 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
542 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
543 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
544 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
545 (_initialize_arm_symbian_tdep): New prototype.
546 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
547 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
548 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
549 static.
550 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
551 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
552 prototype.
553 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
554 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
555 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
556 static.
557 * moxie-tdep.c (moxie_process_record): Likewise.
558 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
559 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
560 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
561 (_initialize_rl78_tdep): New prototype.
562 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
563 (_initialize_rx_tdep): New prototype.
564 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
565 (_initialize_darwin_solib): New prototype.
566 * solib-spu.c: Include solib-spu.h.
567 (_initialize_spu_solib): New prototype.
568 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
569 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
570 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
571 (tic6x_software_single_step): Make it static.
572 (_initialize_tic6x_tdep): New prototype.
573
5742012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
575
576 Fix -Wmissing-prototypes build.
577 * cris-tdep.c (cris_can_use_hardware_watchpoint)
578 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
579
5802012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
581
582 Fix -Wmissing-prototypes build.
583 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
584 (frv_have_stopped_data_address): Remove.
585
5862012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
587
588 Fix -Wmissing-prototypes build.
589 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
590 * sh-tdep.c: Include sh64-tdep.h.
591 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
592 * sh64-tdep.c: Include sh64-tdep.h.
593 * sh64-tdep.h: New file.
594
5952012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
596
597 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
598
5992012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
600
601 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
602 sp_regnum once the gdbarch_init_osabi hook has been called.
603
6042012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
605
606 * mips-tdep.c (mips32_bc1_pc): New function.
607 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
608 BPOSGE32 and BPOSGE64 instructions.
609 (deal_with_atomic_sequence): Likewise.
610 (mips32_instruction_has_delay_slot): Likewise.
611
6122012-03-01 Maciej W. Rozycki <macro@mips.com>
613 Chris Dearman <chris@mips.com>
614 Maciej W. Rozycki <macro@codesourcery.com>
615 Joseph Myers <joseph@codesourcery.com>
616
617 * features/mips-dsp.xml: New file.
618 * features/mips64-dsp.xml: New file.
619 * features/mips-dsp-linux.xml: New file.
620 * features/mips64-dsp-linux.xml: New file.
621 * features/Makefile (WHICH): Add mips-dsp-linux and
622 mips64-dsp-linux.
623 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
624 * features/mips-dsp-linux.c: New file.
625 * features/mips64-dsp-linux.c: New file.
626 * regformats/mips-dsp-linux.dat: New file.
627 * regformats/mips64-dsp-linux.dat: New file.
628 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
629 registers.
630 (mips64_linux_register_addr): Likewise.
631 (mips64_linux_regsets_fetch_registers): Likewise.
632 (mips64_linux_regsets_store_registers): Likewise.
633 (mips64_linux_fetch_registers): Update call to
634 mips64_linux_regsets_fetch_registers.
635 (mips64_linux_store_registers): Update call to
636 mips64_linux_regsets_store_registers.
637 (mips_linux_read_description): Probe for DSP registers.
638 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
639 and initialize_tdesc_mips64_dsp_linux.
640 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
641 Remove padding of no longer used embedded register slots.
642 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
643 (MIPS_RESTART_REGNUM): Redefine enum value.
644 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
645 strings.
646 (mips_tx39_reg_names): Likewise.
647 (mips_linux_reg_names): New array of register names for Linux
648 targets.
649 (mips_register_name): Check for a null pointer in
650 mips_processor_reg_names and return an empty string.
651 (mips_register_type): Exclude embedded registers for the IRIX
652 and Linux ABIs.
653 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
654 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
655 DSP registers.
656 (mips_stab_reg_to_regnum): Handle DSP accumulators.
657 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
658 (mips_gdbarch_init): Likewise. Initialize internal register
659 indices for the Linux ABI. Use dynamic numbers to refer to
660 registers, as applicable, while parsing the target description.
661 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
662
6632012-03-01 Joel Brobecker <brobecker@adacore.com>
664
665 * frame.h (read_frame_register_unsigned): Fix typo in function
666 description.
667
6682012-03-01 Pedro Alves <palves@redhat.com>
669
670 * jit-reader.in [!__cplusplus]
671 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
672
6732012-03-01 Pedro Alves <palves@redhat.com>
674
675 * configure.ac (build_warnings): Add -Wmissing-prototypes.
676 * configure: Regenerate.
677
6782012-03-01 Pedro Alves <palves@redhat.com>
679
680 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
681 * breakpoint.c (create_exception_master_breakpoint, trace_command)
682 (ftrace_command, strace_command): Make static.
683 * d-lang.c (_initialize_d_language): Declare.
684 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
685 * dwarf2loc.c (_initialize_dwarf2loc):
686 * dwarf2read.c (process_psymtab_comp_unit): Make static.
687 * exec.c (exec_get_section_table): Make static.
688 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
689 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
690 * inferior.c (remove_inferior_command, add_inferior_command)
691 (clone_inferior_command): Make static.
692 * linux-nat.c (linux_nat_thread_address_space)
693 (linux_nat_core_of_thread): Make static.
694 * linux-tdep.c (_initialize_linux_tdep): Declare.
695 * objc-lang.c (_initialize_objc_lang): Declare.
696 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
697 Make static.
698 (_initialize_opencl_language): Declare.
699 * record.c (_initialize_record): Declare.
700 * remote.c (demand_private_info, remote_get_tib_address)
701 (remote_supports_cond_tracepoints)
702 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
703 Make static.
704 * skip.c (_initialize_step_skip): Declare.
705 * symtab.c (skip_prologue_using_lineinfo): Make static.
706 * tracepoint.c (delete_trace_state_variable)
707 (trace_variable_command, delete_trace_variable_command)
708 (get_uploaded_tsv, find_matching_tracepoint_location)
709 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
710 Make static.
711 * value.c (pack_unsigned_long): Make static.
712 * varobj.c (varobj_ensure_python_env): Make static.
713 * windows-tdep.c (_initialize_windows_tdep): Declare.
714 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
715
7162012-03-01 Pedro Alves <palves@redhat.com>
717
718 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
719 gdbarch parameter.
720 (linux_init_abi): Install it as has_shared_address_space gdbarch
721 callback.
722
7232012-03-01 Pedro Alves <palves@redhat.com>
724
725 * observer.c (observer_test_first_notification_function)
726 (observer_test_second_notification_function)
727 (observer_test_third_notification_function): Add declarations.
728
7292012-03-01 Pedro Alves <palves@redhat.com>
730
731 * common/signals.c (default_target_signal_to_host)
732 (default_target_signal_from_host): Move ...
733 * arch-utils.c: ... here.
734 * arch-utils.h (default_target_signal_to_host)
735 (default_target_signal_from_host): Declare.
736
737 * common/signals.c (target_signal_from_command): Move ...
738 * infrun.c: ... here.
739 * inferior.h (target_signal_from_command): Declare.
740 * target.h (target_signal_from_command)
741 (default_target_signal_from_host, default_target_signal_to_host):
742 Delete declarations.
743
744 * common/signals.c (_initialize_signals): Delete.
745
7462012-03-01 Pedro Alves <palves@redhat.com>
747
748 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
749 both __cplusplus and !__cplusplus.
750
7512012-03-01 Pedro Alves <palves@redhat.com>
752
753 * psymtab.c (find_and_open_source): Delete declaration.
754 * source.c (find_and_open_source): Move comment ...
755 * source.h (find_and_open_source): ... to this new declaration.
756
7572012-03-01 Pedro Alves <palves@redhat.com>
758
759 * inline-frame.c: Include inline-frame.h.
760
7612012-03-01 Pedro Alves <palves@redhat.com>
762
763 * tui/tui-data.c (set_gen_win_origin): Delete.
764 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
765 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
766
7672012-03-01 Pedro Alves <palves@redhat.com>
768
769 * remote.c (encode_actions): Delete declaration.
770 * tracepoint.c (encode_actions): Make extern.
771 * tracepoint.h (encode_actions): Declare.
772
7732012-03-01 Pedro Alves <palves@redhat.com>
774
775 * python/py-breakpoint.c: Include python.h.
776 * python/py-continueevent.c (create_continue_event_object): Make
777 static.
778 * python/py-lazy-string.c (stpy_get_type): Make static.
779 * python/py-newobjfileevent.c (create_new_objfile_event_object):
780 Make static.
781 * python/py-utils.c (unicode_to_target_python_string): Make
782 static.
783 * python/py-value.c: Include python.h.
784
7852012-03-01 Pedro Alves <palves@redhat.com>
786
787 * inferior.c (delete_threads_of_inferior): Delete.
788
7892012-03-01 Pedro Alves <palves@redhat.com>
790
791 Import fallback definitions from glibc.
792
793 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
794 ps_prochandle): Forward declare.
795 (ps_err_e): Use glibc's comments.
796 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
797 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
798 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
799 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
800 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
801 (struct ps_prochandle): Adjust comment.
802
8032012-03-01 Pedro Alves <palves@redhat.com>
804
805 * ada-lang.c (ada_modulus_from_name): Delete.
806 * ada-lex.l (lexer_init): Make static.
807
8082012-03-01 Pedro Alves <palves@redhat.com>
809
810 PR gdb/13767
811
812 * frame.c (read_frame_register_unsigned): New.
813 * frame.h (read_frame_register_unsigned): Declare.
814 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
815 Handle it.
816 (print_i387_control_word): New parameter `control_p'. Handle it.
817 (i387_print_float_info): Handle unavailable float registers.
818
8192012-03-01 Keith Seitz <keiths@redhat.com>
820
821 * linespec.c (decode_line_2): Sort the list of methods
822 alphabetically before presenting the user with a selection
823 menu.
824
8252012-03-01 Doug Evans <dje@google.com>
826
827 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
828 has_namespace_info.
829 (dwarf2_read_abbrevs): Remove corresponding initialization.
830
8312012-03-01 Scott J. Goldman <scottjg@vmware.com>
832
833 * NEWS: Mention new python command class gdb.COMMAND_USER.
834 * cli/cli-cmds.c (show_user): Print error when used on a python
835 command.
836 (init_cli_cmds): Update documentation strings for "show user" and
837 "set/show max-user-call-depth" to clarify that it does not apply to
838 python commands.
839 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
840 error check.
841 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
842 gdb python api.
843 * top.c (execute_command): Only execute a user-defined command as a
844 legacy macro if c->user_commands is set.
845
8462012-03-01 Tom Tromey <tromey@redhat.com>
847
848 * valprint.h (struct generic_val_print_decorations): New.
849 (generic_val_print): Declare.
850 * valprint.c (generic_val_print): New function.
851 * p-valprint.c (p_decorations): New global.
852 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
853 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
854 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
855 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
856 * m2-valprint.c (m2_decorations): New global.
857 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
858 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
859 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
860 TYPE_CODE_ERROR>: Call generic_val_print.
861 * f-valprint.c (f_decorations): New global.
862 (f_val_print): Use print_function_pointer_address.
863 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
864 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
865 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
866 generic_val_print.
867 * c-valprint.c (c_decorations): New global.
868 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
869 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
870 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
871 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
872 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
873 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
874 case.
875
8762012-03-01 Tom Tromey <tromey@redhat.com>
877
878 * valprint.c (val_print): Update.
879 * p-valprint (pascal_val_print): Return void.
880 * p-lang.h (pascal_val_print): Return void.
881 * m2-valprint.c (m2_val_print): Return void.
882 * m2-lang.h (m2_val_print): Return void.
883 * language.h (struct language_defn) <la_val_print>: Return void.
884 * language.c (unk_lang_val_print): Return void.
885 * jv-valprint.c (java_val_print): Return void.
886 * jv-lang.h (java_val_print): Return void.
887 * f-valprint.c (f_val_print): Return void.
888 * f-lang.h (f_val_print): Return void.
889 * d-valprint.c (d_val_print): Return void.
890 (dynamic_array_type): Update.
891 * d-lang.h (d_val_print): Return void.
892 * c-valprint.c (c_val_print): Return void.
893 * c-lang.h (c_val_print): Return void.
894 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
895 void.
896 * ada-lang.h (ada_val_print): Return void.
897
8982012-03-01 Tom Tromey <tromey@redhat.com>
899
900 * value.h (val_print): Return void.
901 * valprint.c (val_print): Return void.
902
9032012-03-01 Tom Tromey <tromey@redhat.com>
904
905 * value.h (common_val_print): Return void.
906 * valprint.c (common_val_print): Return void.
907
9082012-03-01 Tom Tromey <tromey@redhat.com>
909
910 * value.h (value_print): Return void.
911 * valprint.c (value_print): Return void.
912 * p-valprint.c (pascal_value_print): Return void.
913 * p-lang.h (pascal_value_print): Return void.
914 * language.h (struct language_defn) <la_value_print>: Return
915 void.
916 * language.c (unk_lang_value_print): Return void.
917 * jv-valprint.c (java_value_print): Return void.
918 * jv-lang.h (java_value_print): Return void.
919 * f-valprint.c (c_value_print): Don't declare.
920 Include c-lang.h.
921 * c-valprint.c (c_value_print): Return void.
922 * c-lang.h (c_value_print): Return void.
923 * ada-valprint.c (ada_value_print): Return void.
924 * ada-lang.h (ada_value_print): Return void.
925
9262012-03-01 Tom Tromey <tromey@redhat.com>
927
928 * value.c (value_primitive_field): Handle virtual base classes.
929
9302012-03-01 Tom Tromey <tromey@redhat.com>
931
932 * gdbtypes.h (struct vbase): Remove.
933
9342012-03-01 Tom Tromey <tromey@redhat.com>
935
936 * c-valprint.c (print_function_pointer_address): Move...
937 * valprint.c: ... here. Make non-static.
938 * m2-valprint.c (print_function_pointer_address): Remove.
939 * valprint.h (print_function_pointer_address): Declare.
940
9412012-03-01 Joel Brobecker <brobecker@adacore.com>
942
943 * NEWS: Document the fact that one can provide a condition when
944 creating an Ada exception catchpoint.
945
9462012-03-01 Tom Tromey <tromey@redhat.com>
947
948 * valprint.c (val_print_type_code_flags): Fix placement of
949 trailing brace.
950
9512012-03-01 Joel Brobecker <brobecker@adacore.com>
952
953 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
954 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
955 environment variable before calling update-copyright.
956
9572012-03-01 Joel Brobecker <brobecker@adacore.com>
958
959 * gnulib/extra/update-copyright: Update to the latest from
960 gnulib's git repository.
961 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
962 variable to 2 instead of 1.
963
9642012-02-29 Joel Brobecker <brobecker@adacore.com>
965
966 * varobj.c (c_value_of_variable): Remove dead code.
967
9682012-02-29 Joel Brobecker <brobecker@adacore.com>
969
970 * ada-lex.p (processId): Do not modify already encoded IDs.
971 Update function documentation.
972
9732012-02-29 Joel Brobecker <brobecker@adacore.com>
974
975 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
976 "name" with "struct symbol *name_sym".
977 * ada-exp.y (write_var_or_type): Update call to
978 ada_find_renaming_symbol.
979 "name" with "struct symbol *name_sym". Adjust Implementation
980 accordingly. Adjust the function documentation.
981
9822012-02-29 Joel Brobecker <brobecker@adacore.com>
983
984 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
985 * ada-lang.c (ada_find_any_type): Add advance declaration.
986 Make static. Replace ada_find_any_symbol by
987 ada_find_any_type_symbol.
988 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
989 Improve function description. Make static.
990 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
991 Replace ada_find_any_symbol by ada_find_any_type_symbol.
992
9932012-02-29 Joel Brobecker <brobecker@adacore.com>
994
995 * ada-lang.c (struct tag_args): Delete.
996 (ada_get_tsd_type): Function body moved up in source file.
997 (ada_tag_name_1, ada_tag_name_2): Delete.
998 (ada_get_tsd_from_tag): New function.
999 (ada_tag_name_from_tsd): New function.
1000 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
1001 to determine the tag name.
1002
10032012-02-29 Joel Brobecker <brobecker@adacore.com>
1004
1005 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
1006 declaration.
1007 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
1008 function.
1009
10102012-02-29 Joel Brobecker <brobecker@adacore.com>
1011
1012 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
1013
10142012-02-29 Joel Brobecker <brobecker@adacore.com>
1015
1016 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
1017 full searches.
1018
10192012-02-29 Joel Brobecker <brobecker@adacore.com>
1020
1021 * ada-lang.c (constrained_packed_array_type): If there is a
1022 parallel XA type, use it to determine the array index type.
1023
10242012-02-29 Joel Brobecker <brobecker@adacore.com>
1025
1026 * ada-valprint.c (ada_val_print_1): If our value is a reference
1027 to an array descriptor, dereference it before converting it
1028 to a simple array.
1029
10302012-02-29 Joel Brobecker <brobecker@adacore.com>
1031
1032 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
1033 creating fixed value.
1034 (ada_value_ind, ada_coerce_ref, assign_component)
1035 (ada_evaluate_subexp): Remove call to unwrap_value before
1036 call to ada_to_fixed_value.
1037
10382012-02-29 Joel Brobecker <brobecker@adacore.com>
1039
1040 * ada-lang.c (to_fixed_array_type): Set result's type name.
1041
10422012-02-29 Joel Brobecker <brobecker@adacore.com>
1043
1044 * ada-lang.c (catch_ada_exception_command_split): Add new
1045 argument cond_string. Add support for condition at end of
1046 "catch exception" commands.
1047 (ada_decode_exception_location): Add new argument cond_string.
1048 Update call to catch_ada_exception_command_split.
1049 (create_ada_exception_catchpoint): Add new argument cond_string.
1050 Set the breakpoint condition if needed.
1051 (catch_ada_exception_command): Update call to
1052 ada_decode_exception_location.
1053 (ada_decode_assert_location): Add function documentation.
1054 Add support for condition at end of "catch assert" command.
1055 (catch_assert_command): Update calls to ada_decode_assert_location
1056 and create_ada_exception_catchpoint.
1057
10582012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1059
1060 Fix disp-step-syscall.exp: fork: single step over fork.
1061 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
1062 (i386_linux_get_syscall_number_from_regcache): ... here, new function
1063 comment, change parameters gdbarch and ptid to regcache. Remove
1064 parameter regcache, initialize gdbarch from regcache here.
1065 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
1066 New functions.
1067 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
1068 instead.
1069 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
1070 'syscall'. Make the 'int' check more strict.
1071
10722012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1073
1074 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
1075 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
1076 (i386_linux_intx80_sysenter_syscall_record): ... here.
1077 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
1078 Use the renamed function name.
1079
10802012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
1081
1082 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
1083 * breakpoint.c (until_break_command): Likewise.
1084 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
1085 * infcall.c (call_function_by_hand): Likewise.
1086 * infcmd.c (finish_forward): Likewise.
1087 * infrun.c (insert_exception_resume_breakpoint): Likewise.
1088
10892012-02-28 Tristan Gingold <gingold@adacore.com>
1090
1091 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
1092 avoid variable assignments inside condition.
1093
10942012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1095
1096 Fix static analysis issue found by cppcheck.
1097 * microblaze-tdep.c (microblaze_extract_return_value): Fix
1098 uninitialized BUF for size 2.
1099
11002012-02-27 Chris Dearman <chris@mips.com>
1101 Nathan Froyd <froydnj@codesourcery.com>
1102 Maciej W. Rozycki <macro@codesourcery.com>
1103
1104 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
1105 (mips16_instruction_has_delay_slot): Likewise.
1106 (mips_segment_boundary): Likewise.
1107 (mips_adjust_breakpoint_address): Likewise.
1108 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
1109
11102012-02-27 Maciej W. Rozycki <macro@mips.com>
1111 Maciej W. Rozycki <macro@codesourcery.com>
1112
1113 * infrun.c (handle_inferior_event): Don't proceed through
1114 shared library trampolines if stepping at the machine
1115 instruction level.
1116
11172012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
1118
1119 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
1120 too.
1121
11222012-02-27 Thomas Schwinge <thomas@codesourcery.com>
1123
1124 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
1125 (sh_stub_unwind_sniffer): New functions.
1126 (sh_stub_unwind): New variable.
1127 (sh_gdbarch_init): Wire everything.
1128
11292012-02-27 Pedro Alves <palves@redhat.com>
1130
1131 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
1132 (linux_nat_post_attach_wait): Adjust to use
1133 linux_proc_pid_is_stopped.
1134 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
1135 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
1136 based on pid_is_stopped from both linux-nat.c and
1137 gdbserver/linux-low.c, and renamed.
1138
11392012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
1140
1141 * remote.c (remote_watchpoint_addr_within_range): New function.
1142 (init_remote_ops): Use it.
1143
11442012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
1145
1146 * target.h (target_watchpoint_addr_within_range): Document macro.
1147
11482012-02-24 Pedro Alves <palves@redhat.com>
1149
1150 * stack.c (set_last_displayed_sal): Issue internal_error instead
1151 of warning, and issue it after clearing the last displayed sal.
1152
11532012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1154 Pedro Alves <palves@redhat.com>
1155
1156 * breakpoint.c (until_break_command): Install breakpoints after
1157 all frame manipulations.
1158
11592012-02-24 Luis Machado <lgustavo@codesourcery.com>
1160
1161 * remote.c (remote_supports_cond_breakpoints): New forward
1162 declaration.
1163 (remote_add_target_side_condition): New function.
1164 (remote_insert_breakpoint): Add target-side breakpoint
1165 conditional if supported.
1166 (remote_insert_hw_breakpoint): Likewise.
1167 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
1168 hook.
1169
1170 * target.c (update_current_target): Inherit
1171 to_supports_evaluation_of_breakpoint_conditions.
1172 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
1173
1174 * target.h (struct target_ops)
1175 <to_supports_evaluation_of_breakpoint_conditions>: New field.
1176 (target_supports_evaluation_of_breakpoint_conditions): New #define.
1177
1178 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
1179 (condition_evaluation_both, condition_evaluation_auto,
1180 condition_evaluation_host, condition_evaluation_target,
1181 condition_evaluation_enums, condition_evaluation_mode_1,
1182 condition_evaluation_mode): New static globals.
1183 (translate_condition_evaluation_mode): New function.
1184 (breakpoint_condition_evaluation_mode): New function.
1185 (gdb_evaluates_breakpoint_condition_p): New function.
1186 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
1187 (mark_breakpoint_modified): New function.
1188 (mark_breakpoint_location_modified): New function.
1189 (set_condition_evaluation_mode): New function.
1190 (show_condition_evaluation_mode): New function.
1191 (bp_location_compare_addrs): New function.
1192 (get_first_location_gte_addr): New helper function.
1193 (set_breakpoint_condition): Free condition bytecode if locations
1194 has become unconditional. Call mark_breakpoint_modified (...).
1195 (condition_command): Call update_global_location_list (1) for
1196 breakpoints.
1197 (breakpoint_xfer_memory): Use is_breakpoint (...).
1198 (is_breakpoint): New function.
1199 (parse_cond_to_aexpr): New function.
1200 (build_target_condition_list): New function.
1201 (insert_bp_location): Handle target-side conditional
1202 breakpoints and call build_target_condition_list (...).
1203 (update_inserted_breakpoint_locations): New function.
1204 (insert_breakpoint_locations): Handle target-side conditional
1205 breakpoints.
1206 (bpstat_check_breakpoint_conditions): Add comment.
1207 (bp_condition_evaluator): New function.
1208 (bp_location_condition_evaluator): New function.
1209 (print_breakpoint_location): Print information on where the condition
1210 will be evaluated.
1211 (print_one_breakpoint_location): Likewise.
1212 (init_bp_location): Call mark_breakpoint_location_modified (...) for
1213 breakpoint location.
1214 (force_breakpoint_reinsertion): New functions.
1215 (update_global_location_list): Handle target-side breakpoint
1216 conditions.
1217 Reinsert locations that are already inserted if conditions have
1218 changed.
1219 (bp_location_dtor): Free agent expression bytecode.
1220 (disable_breakpoint): Call mark_breakpoint_modified (...).
1221 Call update_global_location_list (...) with parameter 1 for breakpoints.
1222 (disable_command): Call mark_breakpoint_location_modified (...).
1223 Call update_global_location_list (...) with parameter 1 for breakpoints.
1224 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
1225 (enable_command): mark_breakpoint_location_modified (...).
1226 (_initialize_breakpoint): Update documentation and add
1227 condition-evaluation breakpoint subcommand.
1228
1229 * breakpoint.h: Include ax.h.
1230 (condition_list): New data structure.
1231 (condition_status): New enum.
1232 (bp_target_info) <cond_list>: New field.
1233 (bp_location) <condition_changed, cond_bytecode>: New fields.
1234 (is_breakpoint): New prototype.
1235
12362012-02-24 Luis Machado <lgustavo@codesourcery.com>
1237
1238 * remote.c (remote_state) <cond_breakpoints>: New field.
1239 (PACKET_ConditionalBreakpoints): New enum.
1240 (remote_cond_breakpoint_feature): New function.
1241 (remote_protocol_features): Add new ConditionalBreakpoints entry.
1242 (remote_supports_cond_breakpoints): New function.
1243 (_initialize_remote): Add new packet configuration for
1244 target-side conditional breakpoints.
1245
12462012-02-24 Luis Machado <lgustavo@codesourcery.com>
1247
1248 * NEWS: Mention target-side conditional breakpoint support,
1249 new condition-evaluation breakpoint subcommand and remote
1250 packet extensions.
1251
12522012-02-24 Luis Machado <lgustavo@codesourcery.com>
1253
1254 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
1255 number.
1256
12572012-02-24 Thomas Schwinge <thomas@codesourcery.com>
1258
1259 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
1260 (after_prologue): Remove.
1261
12622012-02-23 Tom Tromey <tromey@redhat.com>
1263
1264 * jv-valprint.c (java_val_print): Remove dead code.
1265
12662012-02-23 Tristan Gingold <gingold@adacore.com>
1267
1268 * ada-tasks.c (struct ada_tasks_inferior_data): Add
1269 known_tasks_element and known_tasks_length fields.
1270 (read_known_tasks_array): Change argument type. Use pointer type
1271 and number of elements from DATA. Adjust.
1272 (read_known_tasks_list): Likewise.
1273 (get_known_tasks_addr): Remove.
1274 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
1275 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
1276 type and array length. Merge former get_known_tasks_addr code.
1277
12782012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
1279
1280 PR backtrace/13716
1281 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
1282 it after set_momentary_breakpoint.
1283
12842012-02-22 Sterling Augustine <saugustine@google.com>
1285
1286 PR 13689:
1287 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
1288
12892012-02-22 Gary Benson <gbenson@redhat.com>
1290
1291 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
1292 (find_slot_in_mapped_hash): Likewise.
1293
12942012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1295
1296 PR build/13638
1297 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
1298 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
1299 * configure: Regenerate.
1300
13012012-02-21 Tristan Gingold <gingold@adacore.com>
1302 Pedro Alves <palves@redhat.com>
1303
1304 * ia64-tdep.c: Do not include libunwind-ia64.h.
1305 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
1306 Include libunwind-ia64.h instead of libunwind.h.
1307 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
1308 for libunwind.h existence.
1309 * configure, config.in: Regenerate.
1310
13112012-02-21 Anton Gorenkov <xgsa@yandex.ru>
1312
1313 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
1314 instead of value_rtti_target_type.
1315 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
1316 instead of value_rtti_target_type.
1317 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
1318 value_rtti_target_type.
1319 * valops.c (value_ind): Extract function readjust_indirect_value_type.
1320 (value_rtti_target_type): Rename to ...
1321 (value_rtti_indirect_type): ... here and make it indirect. Update
1322 function comment.
1323 * value.c (readjust_indirect_value_type): New function.
1324 (coerce_ref): Support for enclosing type setting for references
1325 with readjust_indirect_value_type.
1326 * value.h (readjust_value_type): New declaration.
1327 (value_rtti_target_type): Rename to ...
1328 (value_rtti_indirect_type): ... here.
1329
13302012-02-21 Anton Gorenkov <xgsa@yandex.ru>
1331
1332 * MAINTAINERS (Write After Approval): Add myself to the list.
1333
13342012-02-20 Doug Evans <dje@google.com>
1335
1336 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
1337 Rename objfile_p_char parameter to objfilep.
1338 (build_objfile_section_table): Result is now void. All callers
1339 updated.
1340 * objfiles.h (struct objfile): Tweak comments, whitespace.
1341 (build_objfile_section_table): Update.
1342
1343 * elfread.c (elf_symfile_segments): Fix warning text.
1344
13452012-02-20 Tom Tromey <tromey@redhat.com>
1346
1347 PR gdb/13498:
1348 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
1349 particular set of file names once.
1350 (dw2_map_symbol_filenames): Likewise.
1351
13522012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1353
1354 Code cleanup.
1355 * main.c (write_files): Remove the declaration.
1356 (external_editor_command): Move the declaration ...
1357 [GDBTK] (external_editor_command): ... here. Fix the comment.
1358
13592012-02-20 Tom Tromey <tromey@redhat.com>
1360
1361 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
1362 extraneous block.
1363
13642012-02-20 Tristan Gingold <gingold@adacore.com>
1365
1366 * darwin-nat.h (enum darwin_msg_state): Add comments.
1367
13682012-02-20 Tristan Gingold <gingold@adacore.com>
1369
1370 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
1371 value.
1372
13732012-20-18 Joel Brobecker <brobecker@adacore.com>
1374
1375 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
1376 between function description and implementation.
1377
13782012-02-17 Tom Tromey <tromey@redhat.com>
1379
1380 PR python/12070:
1381 * python/py-event.c (event_object_getset): New global.
1382 (event_object_type): Reference it.
1383 * python/py-type.c (field_object_getset): New global.
1384 (field_object_type): Reference it.
1385 * python/python-internal.h (gdb_py_generic_dict): Declare.
1386 * python/py-utils.c (gdb_py_generic_dict): New function.
1387
13882012-02-17 Tristan Gingold <gingold@adacore.com>
1389
1390 * solib-darwin.c (darwin_current_sos): Check magic and filetype
1391
13922012-02-17 Thomas Schwinge <thomas@codesourcery.com>
1393
1394 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
1395 TYPE_CALLING_CONVENTION annotation.
1396
13972012-02-16 Kevin Buettner <kevinb@redhat.com>
1398
1399 * MAINTAINERS: Add rx to target ISA section.
1400 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
1401 (ALLDEPFILES): Add rx-tdep.c.
1402
14032012-02-16 Tom Tromey <tromey@redhat.com>
1404
1405 * symfile.c (symbol_file_add_main_1): Use inferior's
1406 symfile_flags.
1407 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
1408 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
1409 inferior.
1410 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
1411 inferior.
1412 (follow_exec): Use inferior's symfile_flags.
1413 * inferior.h (struct inferior) <symfile_flags>: New field.
1414
14152012-02-16 Mike Frysinger <vapier@gentoo.org>
1416
1417 PR gdb/9734:
1418 * remote-sim.c (gdbsim_create_inferior): Call error() when
1419 sim_create_inferior() fails.
1420
14212012-02-16 Josh Matthews <josh@joshmatthews.net>
1422
1423 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
1424
14252012-02-16 Tom Tromey <tromey@redhat.com>
1426
1427 PR c++/13653:
1428 * thread.c (struct current_thread_cleanup) <was_removable>: New
1429 field.
1430 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
1431 (make_cleanup_restore_current_thread): Initialize new field.
1432
14332012-02-15 Kevin Buettner <kevinb@redhat.com>
1434
1435 * MAINTAINERS: Add rl78 to target ISA section.
1436 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
1437 (ALLDEPFILES): Add rl78-tdep.c.
1438 * NEWS: Mention rl78 as a new target.
1439
14402012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
1441
1442 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
1443 data.
1444 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
1445
14462012-02-15 Tom Tromey <tromey@redhat.com>
1447
1448 PR gdb/12659:
1449 * infcmd.c (registers_info): Print just the current register's
1450 name.
1451
14522012-02-15 Tom Tromey <tromey@redhat.com>
1453
1454 * python/py-symbol.c (sympy_value): Use _().
1455
14562012-02-15 Pedro Alves <palves@redhat.com>
1457
1458 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
1459 output to be like native targets'.
1460 (remote_pid_to_str): Special case the null ptid.
1461
14622012-02-14 Stan Shebs <stan@codesourcery.com>
1463
1464 * NEWS: Mention enable count command.
1465 * breakpoint.h (struct breakpoint): New field enable_count.
1466 * breakpoint.c (enable_breakpoint_disp): Add count argument.
1467 (enable_breakpoint): Add arg to call.
1468 (struct disp_data): New struct.
1469 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
1470 (do_map_enable_once_breakpoint): Create a struct and pass it.
1471 (do_map_enable_delete_breakpoint): Ditto.
1472 (do_map_enable_count_breakpoint): New function.
1473 (enable_count_command): New function.
1474 (bpstat_stop_status): Decrement enable_count.
1475 (print_one_breakpoint_location): Report enable count.
1476 (_initialize_breakpoint): Add enable count command.
1477
14782012-02-14 Kevin Buettner <kevinb@redhat.com>
1479
1480 * rl78-tdep.c (reggroups.h): Include.
1481 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
1482 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
1483 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
1484 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
1485 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
1486 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
1487 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
1488 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
1489 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
1490 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
1491 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
1492 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
1493 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
1494 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
1495 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
1496 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
1497 beginning of register list.
1498 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
1499 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
1500 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
1501 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
1502 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
1503 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
1504 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
1505 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
1506 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
1507 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
1508 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
1509 the pseudo registers. Rearrange other pseudo registers too so
1510 that the bank registers appear at the end.
1511 (rl78_register_type): Account for the fact that the byte sized
1512 bank registers are now pseudo-registers.
1513 (rl78_register_name): Rearrange the register name array. Make
1514 initial set of raw banked registers inaccessible.
1515 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
1516 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
1517 case for copying bytes back and forth between raw and pseudo
1518 versions of the banked registers. Update other cases to reflect
1519 the changed names.
1520 (rl78_return_value): Update to account for changed names of
1521 raw registers.
1522 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
1523 rl78_register_sim_regno().
1524
15252012-02-14 Kevin Buettner <kevinb@redhat.com>
1526
1527 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
1528 the name parameter being passed to find_pc_partial_function().
1529
15302012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1531
1532 * MAINTAINERS: Step down from being ia64 target maintainer.
1533
15342012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1535
1536 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
1537 compilation warning.
1538
15392012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
1540
1541 Fix crash on loaded shlibs without loaded exec_bfd.
1542 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
1543 (set_section_command): Replace exec_bfd by p->bfd.
1544
15452012-02-10 Tom Tromey <tromey@redhat.com>
1546
1547 * linespec.c (decode_line_internal): Skip symtabs_from_filename
1548 when we have a C++ qualified name.
1549
15502012-02-10 Pedro Alves <palves@redhat.com>
1551
1552 * inferior.c (inferior_pid_to_str): New.
1553 (print_inferior, inferior_command): Use it.
1554
15552012-02-10 Pedro Alves <palves@redhat.com>
1556
1557 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
1558 the test CFLAGS.
1559 * configure: Regenerate.
1560
15612012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
1562
1563 * linespec.c (decode_line_internal): Fix comment correctness.
1564
15652012-02-09 Valery Khromov <valery.khromov@gmail.com>
1566
1567 PR gdb/12953
1568 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
1569 * amd64bsd-nat.c: Add support for debug registers (adapted from
1570 i386bsd-nat.c).
1571 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
1572 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
1573 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
1574 (amd64bsd_dr_get_control): New functions.
1575 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
1576 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
1577 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
1578 watchpoints initialization.
1579 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
1580
15812012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1582
1583 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
1584 flds_bnds.fields.
1585 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
1586
15872012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
1588
1589 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
1590
15912012-02-08 Joel Brobecker <brobecker@adacore.com>
1592
1593 * language.h (symbol_name_cmp_ftype): Renames
1594 symbol_name_match_p_ftype.
1595 (struct language_defn)[la_get_symbol_name_cmp]: Renames
1596 la_get_symbol_name_match_p.
1597 * ada-lang.c (ada_get_symbol_name_cmp): Renames
1598 ada_get_symbol_name_match_p. Update comment.
1599 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
1600 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
1601 Renames symbol_name_match_p. Update field type.
1602 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
1603 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
1604 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
1605 "la_get_symbol_name_cmp" in comments.
1606 * language.c: Likewise.
1607
16082012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1609
1610 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
1611 %eflags offset.
1612 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
1613 (amd64_sol2_gregset32_reg_offs): Likewise.
1614
16152012-02-08 Joel Brobecker <brobecker@adacore.com>
1616
1617 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
1618 of the returned BFD is allocated by GDB.
1619
16202012-02-07 Tom Tromey <tromey@redhat.com>
1621
1622 PR python/12027:
1623 * python/python-internal.h (frame_object_type): Declare.
1624 * python/py-symbol.c (sympy_needs_frame): New function.
1625 (sympy_value): New function.
1626 (symbol_object_getset): Add "needs_frame".
1627 (symbol_object_methods): Add "value".
1628 * python/py-frame.c (frame_object_type): No longer static.
1629
16302012-02-07 Tom Tromey <tromey@redhat.com>
1631
1632 PR python/13599:
1633 * python/py-symbol.c (sympy_line): New function.
1634 (symbol_object_getset): Add "line".
1635
16362012-02-07 Tom Tromey <tromey@redhat.com>
1637
1638 * charset.c (find_charset_names): Check 'in' against NULL.
1639
16402012-02-06 Doug Evans <dje@google.com>
1641
1642 * gdbtypes.h (struct main_type): Change type of name,tag_name,
1643 and fields.name members from char * to const char *. All uses updated.
1644 (struct cplus_struct_type): Change type of fn_fieldlists.name member
1645 from char * to const char *. All uses updated.
1646 (type_name_no_tag): Update.
1647 (lookup_unsigned_typename, lookup_signed_typename): Update.
1648 * gdbtypes.c (type_name_no_tag): Change result type
1649 from char * to const char *. All callers updated.
1650 (lookup_unsigned_typename, lookup_signed_typename): Change type of
1651 name parameter from char * to const char *.
1652 * symtab.h (struct cplus_specific): Change type of demangled_name
1653 member from char * to const char *. All uses updated.
1654 (struct general_symbol_info): Change type of name and
1655 mangled_lang.demangled_name members from char * to const char *.
1656 All uses updated.
1657 (symbol_get_demangled_name, symbol_natural_name): Update.
1658 (symbol_demangled_name, symbol_search_name): Update.
1659 * symtab.c (symbol_get_demangled_name): Change result type
1660 from char * to const char *. All callers updated.
1661 (symbol_natural_name, symbol_demangled_name): Ditto.
1662 (symbol_search_name): Ditto.
1663 (completion_list_add_name): Change type of symname,sym_text,
1664 text,word parameters from char * to const char *.
1665 (completion_list_objc_symbol): Change type of sym_text,
1666 text,word parameters from char * to const char *.
1667 * ada-lang.c (find_struct_field): Change type of name parameter
1668 from char * to const char *.
1669 (encoded_ordered_before): Similarly for N0,N1 parameters.
1670 (old_renaming_is_invisible): Similarly for function_name parameter.
1671 (ada_type_name): Change result type from char * to const char *.
1672 All callers updated.
1673 * ada-lang.h (ada_type_name): Update.
1674 * buildsym.c (hashname): Change type of name parameter
1675 from char * to const char *.
1676 * buildsym.h (hashname): Update.
1677 * dbxread.c (end_psymtab): Change type of include_list parameter
1678 from char ** to const char **.
1679 * dwarf2read.c (determine_prefix): Change result type
1680 from char * to const char *. All callers updated.
1681 * f-lang.c (find_common_for_function): Change type of name, funcname
1682 parameters from char * to const char *.
1683 * f-lang.c (find_common_for_function): Update.
1684 * f-valprint.c (list_all_visible_commons): Change type of funcname
1685 parameters from char * to const char *.
1686 * gdbarch.sh (static_transform_name): Change type of name parameter
1687 and result from char * to const char *.
1688 * gdbarch.c: Regenerate.
1689 * gdbarch.h: Regenerate.
1690 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
1691 of name parameter from char * to const char *.
1692 * jv-lang.c (java_primitive_type_from_name): Ditto.
1693 (java_demangled_signature_length): Similarly for signature parameter.
1694 (java_demangled_signature_copy): Ditto.
1695 (java_demangle_type_signature): Ditto.
1696 * jv-lang.h (java_primitive_type_from_name): Update.
1697 (java_demangle_type_signature): Update.
1698 * objc-lang.c (specialcmp): Change type of a,b parameters
1699 from char * to const char *.
1700 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
1701 from char * to const char *. All callers updated.
1702 * p-lang.h (is_pascal_string_type): Update.
1703 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
1704 of name parameter from char * to const char *.
1705 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
1706 * utils.c (fprintf_symbol_filtered): Ditto.
1707 * defs.h (fprintf_symbol_filtered): Update.
1708 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
1709 * stabsread.h (end_psymtab): Update.
1710 * stack.c (find_frame_funname): Change type of funname parameter
1711 from char ** to const char **.
1712 * stack.h (find_frame_funname): Update.
1713 * typeprint.c (type_print): Change type of varstring parameter
1714 from char * to const char *.
1715 * value.h (type_print): Update.
1716 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
1717 from char * to const char *. All callers updated.
1718 (xcoff_end_psymtab): Change type of include_list parameter
1719 from char ** to const char **. All callers updated.
1720 (swap_sym): Similarly for name parameter. All callers updated.
1721 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
1722 Use xstrdup.
1723 (process_coff_symbol): Use xstrdup.
1724 * stabsread.c (stabs_method_name_from_physname): Renamed from
1725 update_method_name_from_physname. Change result type from void
1726 to char *. All callers updated.
1727 (read_member_functions): In has_destructor case, store name in objfile
1728 obstack instead of malloc space. In !has_stub case, fix mem leak.
1729
17302012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
1731
1732 * configure: Rebuild.
1733 * configure.ac: Put -L../bfd and -L../libiberty at the front of
1734 LDFLAGS.
1735
17362012-02-03 Kevin Buettner <kevinb@redhat.com>
1737
1738 * configure.tgt (rl78-*-elf): New target.
1739 * rl78-tdep.c: New file.
1740
17412012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1742
1743 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
1744 and continue the loop. Add QUIT statement.
1745
17462012-02-03 Tom Tromey <tromey@redhat.com>
1747
1748 PR gdb/13596:
1749 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
1750 bfd_lookup_symbol_from_symtab.
1751 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1752 gdb_bfd_lookup_symbol_from_symtab.
1753
17542012-02-03 Joel Brobecker <brobecker@adacore.com>
1755
1756 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
1757 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
1758 symbol. Add assertion that sym2 is never NULL.
1759
17602012-02-02 Doug Evans <dje@google.com>
1761
1762 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
1763 "name" parameter to const char ** from char **. All callers updated.
1764 (find_pc_partial_function): Ditto.
1765 (cache_pc_function_name): Change type to const char * from char *.
1766 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
1767 (find_pc_partial_function): Update.
1768 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
1769 type of "name" parameter to const char * from char *.
1770 All uses updated.
1771 * arch-utils.c (generic_in_solib_return_trampoline): Change
1772 type of "name" parameter to const char * from char *.
1773 * arch-utils.h (generic_in_solib_return_trampoline): Update.
1774 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
1775 type of "name" parameter to const char * from char *.
1776 * gdbarch.sh (in_solib_return_trampoline): Ditto.
1777 * gdbarch.c: Regenerate.
1778 * gdbarch.h: Regenerate.
1779 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
1780 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
1781 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
1782 type of "name" parameter to const char * from char *.
1783 * skip.c (skip_function_pc): Ditto.
1784 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
1785 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
1786 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
1787 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
1788 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
1789 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
1790 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
1791 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
1792 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
1793
17942012-02-02 Pedro Alves <palves@redhat.com>
1795
1796 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
1797 the current inferior has no execution. Make sure the current
1798 remote process matches gdb's current inferior.
1799
18002012-02-02 Tom Tromey <tromey@redhat.com>
1801
1802 PR gdb/13405:
1803 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
1804 read-only memory.
1805
18062012-02-02 Tom Tromey <tromey@redhat.com>
1807
1808 PR gdb/9307:
1809 * symtab.c (lookup_language_this): Set block_found.
1810
18112012-02-01 Tom Tromey <tromey@redhat.com>
1812
1813 PR gdb/13431:
1814 * jit.c (struct jit_inferior_data): Rewrite.
1815 (struct jit_objfile_data): New.
1816 (get_jit_objfile_data): New function.
1817 (add_objfile_entry): Update.
1818 (jit_read_descriptor): Return int. Replace descriptor_addr
1819 argument with inf_data. Update. Don't call error.
1820 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
1821 descriptor here.
1822 (jit_inferior_init): Don't look up descriptor. Don't call error.
1823 (jit_reset_inferior_data_and_breakpoints)
1824 (jit_inferior_created_observer): Remove.
1825 (jit_inferior_exit_hook): Update.
1826 (jit_executable_changed_observer): Remove.
1827 (jit_event_handler): Update.
1828 (free_objfile_data): Reset inferior data if needed.
1829 (_initialize_jit): Update.
1830
18312012-02-01 Tom Tromey <tromey@redhat.com>
1832
1833 * jit.c (bfd_open_from_target_memory): Move higher in file.
1834
18352012-02-01 Tristan Gingold <gingold@adacore.com>
1836
1837 * libunwind-frame.c (libunwind_load): Display message if dlopen
1838 failed.
1839
18402012-02-01 Gary Benson <gbenson@redhat.com>
1841
1842 * symtab.h (symbol_name_match_p_ftype): New typedef.
1843 (iterate_over_symbols): Use the above.
1844 * symtab.c (iterate_over_symbols): Likewise.
1845 * language.h (language_defn->la_iterate_over_symbols): Likewise.
1846 * ada-lang.c (ada_iterate_over_symbols): Likewise.
1847 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
1848 (iterate_name_matcher): Document return values.
1849 (collect_one_symbol): Likewise.
1850 (collect_function_symbols): Likewise.
1851 (collect_symbols): Likewise.
1852
18532012-02-01 Tom Tromey <tromey@redhat.com>
1854
1855 * ada-lang.c (resolve_subexp): Update.
1856 (ada_lookup_symbol_list): Add 'full_search' argument.
1857 (ada_iterate_over_symbols): Pass 0 as full_search argument to
1858 ada_lookup_symbol_list.
1859 (ada_lookup_encoded_symbol): Update.
1860 (get_var_value): Update.
1861 * ada-exp.y (block_lookup): Update.
1862 (write_var_or_type): Update.
1863 (write_name_assoc): Update.
1864 * ada-lang.h (ada_lookup_symbol_list): Update.
1865
18662012-01-31 Tom Tromey <tromey@redhat.com>
1867
1868 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
1869 comment.
1870
18712012-01-31 Doug Evans <dje@google.com>
1872
1873 * symtab.h: Remove outdated comment.
1874 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
1875
18762012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
1877
1878 Fix build error in Darwin port.
1879 * i386-darwin-nat.c: Include i386-nat.h.
1880
18812012-01-30 Tom Tromey <tromey@redhat.com>
1882
1883 PR breakpoints/13568:
1884 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
1885 argument. Check for recursive includes.
1886 (dwarf_decode_macros): Create an include hash.
1887
18882012-01-30 Michael Eager <eager@eagercon.com>
1889
1890 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
1891 * ppc-linux-tdep.c: Include glibc-tdep.h.
1892 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
1893 (powerpc_linux_in_plt_stub): New function.
1894 (powerpc_linux_in_dynsym_resolve_code): New function.
1895 (ppc_skip_trampoline_code): New function.
1896 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
1897 Use glibc_skip_solib_resolver.
1898
18992012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1900
1901 Code cleanup: Make 1440 bytes of data segment read-only.
1902 * arch-utils.c (endian_enum): Make it const char *const [].
1903 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
1904 Likewise.
1905 * breakpoint.c (always_inserted_enums): Likewise.
1906 * cli/cli-cmds.c (script_ext_enums): Likewise.
1907 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
1908 enumlist parameter const char *const *.
1909 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
1910 const char *const *.
1911 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
1912 parameter const char *const *.
1913 * cris-tdep.c (cris_modes): Make it const char *const [].
1914 * filesystem.c (target_file_system_kinds): Likewise.
1915 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
1916 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
1917 (can_use_displaced_stepping_enum, scheduler_enums)
1918 (exec_direction_names): Likewise.
1919 * language.c (_initialize_language): Make the type_or_range_names and
1920 case_sensitive_names variables const char *const [].
1921 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
1922 * python/python.c (python_excp_enums): Likewise.
1923 * remote.c (interrupt_sequence_modes): Likewise.
1924 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
1925 * serial.c (logbase_enums): Likewise.
1926 * sh-tdep.c (sh_cc_enum): Likewise.
1927 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
1928 Likewise.
1929 * symtab.c (multiple_symbols_modes): Likewise.
1930 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
1931 Likewise.
1932 * utils.c (internal_problem_modes): Likewise.
1933
19342012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1935
1936 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
1937 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
1938 result.
1939
19402012-01-27 Doug Evans <dje@google.com>
1941
1942 * configure.ac (with_python): Fix absolute path handling for win32.
1943 * configure: Regenerate.
1944
19452012-01-26 Doug Evans <dje@google.com>
1946
1947 * symtab.c: Whitespace cleanup, no code changes.
1948
1949 * symtab.c (lookup_symbol_in_language): Improve comment.
1950 (lookup_symbol_aux): Fix comment.
1951
1952 * psymtab.c (add_psymbol_to_list): Result is now "void".
1953 * psympriv.h (add_psymbol_to_list): Update.
1954
1955 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
1956
19572012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1958
1959 Do not open script filenames twice.
1960 * cli/cli-cmds.c (source_script_from_stream): Pass to
1961 source_python_script also STREAM.
1962 * python/py-auto-load.c (source_section_scripts): Pass to
1963 source_python_script_for_objfile also STREAM.
1964 (auto_load_objfile_script): Pass to source_python_script_for_objfile
1965 also INPUT.
1966 * python/python-internal.h (source_python_script_for_objfile): New
1967 parameter file, rename parameter file to filename.
1968 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
1969 instead if !_WIN32. Update the function comment.
1970 (source_python_script, source_python_script_for_objfile)
1971 (source_python_script): New parameter file, rename parameter file to
1972 filename. Pass FILENAME to python_run_simple_file.
1973 * python/python.h (source_python_script): New parameter file, rename
1974 parameter file to filename.
1975
19762012-01-26 Pedro Alves <palves@redhat.com>
1977
1978 * corelow.c (core_has_fake_pid): Delete.
1979 (core_close): Delete references to `core_has_fake_pid'.
1980 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
1981 (core_open): Delete references to `core_has_fake_pid'.
1982 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
1983 the removed global.
1984
19852012-01-26 Joel Brobecker <brobecker@adacore.com>
1986
1987 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
1988 Remove language parameter from name_matcher. Adjust the comment.
1989 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
1990 Remove language parameter.
1991 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
1992 * linespec.c (iterate_name_matcher): Likewise.
1993 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
1994 name_matcher. Adjust call accordingly.
1995 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
1996 (maintenance_check_symtabs): Adjust type of parameter "fun".
1997 * psymtab.h (maintenance_check_symtabs): Likewise.
1998
19992012-01-26 Joel Brobecker <brobecker@adacore.com>
2000
2001 * language.h (symbol_name_match_p_ftype): New typedef.
2002 (struct language_defn): Replace field la_symbol_name_compare
2003 by la_get_symbol_name_match_p.
2004 * ada-lang.c (ada_get_symbol_name_match_p): New function.
2005 (ada_language_defn): Use it.
2006 * linespec.c (struct symbol_matcher_data): New type.
2007 (iterate_name_matcher): Rewrite.
2008 (iterate_over_all_matching_symtabs): Pass a pointer to
2009 a symbol_matcher_data struct to expand_symtabs_matching
2010 instead of just the lookup name.
2011 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
2012 opencl-lang.c, p-lang.c, language.c: Delete field
2013 la_symbol_name_compare, and replace by NULL for new field
2014 la_get_symbol_name_match_p.
2015 * symfile.h (struct quick_symbol_functions): Update comment.
2016
20172012-01-25 Tom Tromey <tromey@redhat.com>
2018
2019 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
2020 dereferencing.
2021
20222012-01-24 Tom Tromey <tromey@redhat.com>
2023
2024 PR symtab/12406:
2025 * solib.c (update_solib_list): Update the program space's
2026 added_solibs and deleted_solibs fields.
2027 * progspace.h (struct program_space) <added_solibs,
2028 deleted_solibs>: New fields.
2029 (clear_program_space_solib_cache): Declare.
2030 * progspace.c (release_program_space): Call
2031 clear_program_space_solib_cache.
2032 (clear_program_space_solib_cache): New function.
2033 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
2034 bpstat_stop_status. Use handle_solib_event.
2035 * breakpoint.c: Include gdb_regex.h.
2036 (print_solib_event): New function.
2037 (bpstat_print): Use print_solib_event.
2038 (bpstat_stop_status): Add special case for bp_shlib_event.
2039 (handle_solib_event): New function.
2040 (bpstat_what): Use handle_solib_event.
2041 (struct solib_catchpoint): New.
2042 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
2043 (breakpoint_hit_catch_solib, check_status_catch_solib)
2044 (print_it_catch_solib, print_one_catch_solib)
2045 (print_mention_catch_solib, print_recreate_catch_solib): New
2046 functions.
2047 (catch_solib_breakpoint_ops): New global.
2048 (catch_load_or_unload, catch_load_command_1)
2049 (catch_unload_command_1): New functions.
2050 (internal_bkpt_check_status): Add special case for
2051 bp_shlib_event.
2052 (internal_bkpt_print_it): Use print_solib_event.
2053 (initialize_breakpoint_ops): Initialize
2054 catch_solib_breakpoint_ops.
2055 (_initialize_breakpoint): Register "catch load" and "catch
2056 unload".
2057 * breakpoint.h (handle_solib_event): Declare.
2058 * NEWS: Add entry for "catch load" and "catch unload".
2059
20602012-01-24 Tom Tromey <tromey@redhat.com>
2061
2062 * ada-lang.c: Include gdb_vecs.h.
2063 * charset.c: Include gdb_vecs.h.
2064 * tracepoint.h: Include gdb_vecs.h.
2065 * gdb_vecs.h: New file.
2066
20672012-01-24 Pedro Alves <pedro@codesourcery.com>
2068
2069 * breakpoint.c (breakpoint_hit_catch_fork)
2070 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
2071 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
2072 * infrun.c (inferior_has_forked, inferior_has_vforked)
2073 (inferior_has_execd, inferior_has_called_syscall): Delete.
2074 (handle_syscall_event): Get syscall_number from the execution
2075 control state's wait status.
2076 (wait_for_inferior): Don't clear syscall_number.
2077
20782012-01-24 Pedro Alves <palves@redhat.com>
2079
2080 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
2081 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
2082 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
2083 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
2084 `ws' parameter.
2085 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
2086 false for events other than TARGET_SIGNAL_TRAP.
2087 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
2088 Add `ws' parameter.
2089 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
2090 events other than TARGET_SIGNAL_TRAP.
2091 (tracepoint_breakpoint_hit): Add `ws' parameter.
2092 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
2093 parameter.
2094 (bpstat_stop_status): Same.
2095 (pc_at_non_inline_function): Same.
2096 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
2097 to pass the current event's waitstatus to bpstat_stop_status
2098 and pc_at_non_inline_function.
2099
21002012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2101
2102 Code cleanup.
2103 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
2104 Update the function comment for it.
2105 (source_script_with_search): Call make_cleanup_fclose for STREAM.
2106 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
2107 for STREAM.
2108
21092012-01-24 Pedro Alves <palves@redhat.com>
2110
2111 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
2112 outside `bs->stop' block.
2113 (bpstat_what): Rework bp_shlib_event handling.
2114 (internal_bkpt_check_status): If the breakpoint is a
2115 bp_shlib_event, then set bs->stop and bs->print if
2116 stop_on_solib_events is set.
2117
21182012-01-24 Gary Benson <gbenson@redhat.com>
2119
2120 Delete #if 0'd out code.
2121 * stack.c (print_frame_label_vars): Remove.
2122 (catch_info): Likewise.
2123 (_initialize_stack): Remove "info catch" command.
2124 * NEWS: Mention the above.
2125
21262012-01-24 Pedro Alves <palves@redhat.com>
2127
2128 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
2129 it.
2130 (remote_notice_new_inferior): If the remote end doesn't support
2131 the multiprocess extensions, then the PID is fake.
2132 (add_current_inferior_and_thread): New.
2133 (remote_start_remote): Use it.
2134 (extended_remote_attach_1): Adjust.
2135 (extended_remote_create_inferior_1): Use
2136 add_current_inferior_and_thread.
2137
21382012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2139
2140 Fix watchpoints to be specific for each inferior.
2141 * breakpoint.c (watchpoint_in_thread_scope): Verify also
2142 current_program_space.
2143 * i386-nat.c (i386_inferior_data_cleanup): New.
2144 (i386_inferior_data_get): Replace variable inf_data_local by an
2145 inferior_data call.
2146 (i386_use_watchpoints): Initialize i386_inferior_data.
2147 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
2148 specific iterate_over_lwps.
2149
21502012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2151
2152 Fix watchpoints across inferior fork.
2153 * amd64-linux-nat.c (update_debug_registers_callback): Update the
2154 comment for linux_nat_iterate_watchpoint_lwps.
2155 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
2156 linux_nat_iterate_watchpoint_lwps.
2157 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
2158 * i386-linux-nat.c (update_debug_registers_callback): Update the
2159 comment for linux_nat_iterate_watchpoint_lwps.
2160 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
2161 linux_nat_iterate_watchpoint_lwps.
2162 (i386_linux_prepare_to_resume): New comment on Linux kernel.
2163 * i386-nat.c: Include inferior.h.
2164 (dr_mirror): Remove.
2165 (i386_inferior_data, struct i386_inferior_data)
2166 (i386_inferior_data_get): New.
2167 (i386_debug_reg_state): Use i386_inferior_data_get.
2168 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
2169 (i386_insert_watchpoint, i386_remove_watchpoint)
2170 (i386_stopped_data_address, i386_insert_hw_breakpoint)
2171 (i386_remove_hw_breakpoint): New variable state, use
2172 i386_debug_reg_state instead of DR_MIRROR.
2173 * linux-nat.c (delete_lwp): New declaration.
2174 (num_lwps): Move here from downwards.
2175 (delete_lwp_cleanup): New.
2176 (linux_child_follow_fork): Create new child_lp, call
2177 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
2178 PTRACE_DETACH.
2179 (num_lwps): Move upwards.
2180 (linux_nat_iterate_watchpoint_lwps): New.
2181 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
2182 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
2183
21842012-01-24 Joel Brobecker <brobecker@adacore.com>
2185
2186 GDB 7.4 released.
2187
21882012-01-23 Pedro Alves <palves@redhat.com>
2189
2190 * top.c (caution): Rename to ...
2191 (confirm): ... this.
2192 (show_caution): Rename to ...
2193 (show_confirm): ... this.
2194 (quit_cover): Adjust.
2195 (init_main): Adjust.
2196 * top.h (caution): Rename to ...
2197 (confirm): ... this.
2198 * utils.c (internal_vproblem, defaulted_query): Adjust.
2199
22002012-01-23 Pedro Alves <palves@redhat.com>
2201
2202 * top.c (caution): Update comment.
2203 (execute_command): Don't consider the current value of `caution'.
2204
22052012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
2206
2207 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
2208
22092012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
2210
2211 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
2212 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
2213 * target.c (target_fileio_pwrite): Remove buffer address from
2214 debug output.
2215 (target_fileio_pread): Likewise.
2216
22172012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2218
2219 * NEWS: Document remote "info proc" and "generate-core-file".
2220
22212012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2222
2223 * gdbarch.sh (find_memory_regions): New callback.
2224 * gdbarch.c, gdbarch.h: Regenerate.
2225
2226 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
2227 callback before falling back to target method.
2228
2229 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
2230 (linux_target_install_ops): No longer install it.
2231
2232 * linux-tdep.c (linux_find_memory_regions): New function.
2233 (linux_init_abi): Install it.
2234
22352012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2236
2237 * gdbarch.sh (make_corefile_notes): New architecture callback.
2238 * gdbarch.c: Regenerate.
2239 * gdbarch.h: Likewise.
2240
2241 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
2242 before target_make_corefile_notes. If NULL is returned, the
2243 target does not support core file generation.
2244
2245 * linux-nat.c: Include "linux-tdep.h".
2246 (find_signalled_thread, find_stop_signal): Remove.
2247 (linux_nat_do_thread_registers): Likewise.
2248 (struct linux_nat_corefile_thread_data): Likewise.
2249 (linux_nat_corefile_thread_callback): Likewise.
2250 (iterate_over_spus): Likewise.
2251 (struct linux_spu_corefile_data): Likewise.
2252 (linux_spu_corefile_callback): Likewise.
2253 (linux_spu_make_corefile_notes): Likewise.
2254 (linux_nat_collect_thread_registers): New function.
2255 (linux_nat_make_corefile_notes): Replace contents by call to
2256 linux_make_corefile_notes passing linux_nat_collect_thread_registers
2257 as native-only callback.
2258
2259 * linux-tdep.h: Include "bfd.h".
2260 (struct regcache): Add forward declaration.
2261 (linux_collect_thread_registers_ftype): New typedef.
2262 (linux_make_corefile_notes): Add prototype.
2263 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
2264 "regset.h", and "elf-bfd.h".
2265 (find_signalled_thread, find_stop_signal): New functions.
2266 (linux_spu_make_corefile_notes): Likewise.
2267 (linux_collect_thread_registers): Likewise.
2268 (struct linux_corefile_thread_data): New data structure.
2269 (linux_corefile_thread_callback): New funcion.
2270 (linux_make_corefile_notes): Likewise.
2271 (linux_make_corefile_notes_1): Likewise.
2272 (linux_init_abi): Install it.
2273
22742012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2275
2276 * gdbarch.sh (info_proc): New callback.
2277 * gdbarch.c, gdbarch.h: Regenerate.
2278
2279 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
2280 before falling back to the target info_proc callback.
2281
2282 * linux-nat.c: Do not include "cli/cli-utils.h".
2283 (linux_nat_info_proc): Remove.
2284 (linux_target_install_ops): No longer install it.
2285
2286 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
2287 (read_mapping): New function.
2288 (linux_info_proc): Likewise.
2289 (linux_init_abi): Install it.
2290
22912012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2292
2293 * defs.h (enum info_proc_what): Moved here from linux-nat.c
2294 * infcmd.c: (info_proc_cmd_1): New function.
2295 (info_proc_cmd): New function, moved here from equivalent routine
2296 orignally in linux-nat.c.
2297 (info_proc_cmd_mappings): Likewise.
2298 (info_proc_cmd_stat): Likewise.
2299 (info_proc_cmd_status): Likewise.
2300 (info_proc_cmd_cwd): Likewise.
2301 (info_proc_cmd_cmdline): Likewise.
2302 (info_proc_cmd_exe): Likewise.
2303 (info_proc_cmd_all): Likewise.
2304 (_initialize_infcmd): Install "info proc" command and subcommands.
2305
2306 * target.h (struct target_ops): Add to_info_proc.
2307 (target_info_proc): Add prototype.
2308 * target.c (target_info_proc): New function.
2309
2310 * procfs.c (procfs_info_proc): Add prototype.
2311 (info_proc_cmd): Rename into ...
2312 (procfs_info_proc): ... this. Update argument types as appropriate
2313 for a to_info_proc implementation. Handle "what" argument.
2314 (procfs_target): Install procfs_info_proc.
2315 (_initialize_procfs): No longer install "info proc" command.
2316
2317 * linux-nat.c: (enum info_proc_what): Remove.
2318 (linux_nat_info_proc_cmd_1): Rename into ...
2319 (linux_nat_info_proc): ... this. Update argument types as appropriate
2320 for a to_info_proc implementation.
2321 (linux_nat_info_proc_cmd): Remove.
2322 (linux_nat_info_proc_cmd_mappings): Likewise.
2323 (linux_nat_info_proc_cmd_stat): Likewise.
2324 (linux_nat_info_proc_cmd_status): Likewise.
2325 (linux_nat_info_proc_cmd_cwd): Likewise.
2326 (linux_nat_info_proc_cmd_cmdline): Likewise.
2327 (linux_nat_info_proc_cmd_exe): Likewise.
2328 (linux_nat_info_proc_cmd_all): Likewise.
2329 (linux_target_install_ops): Install linux_nat_info_proc.
2330 (_initialize_linux_nat): No longer install "info proc" command
2331 and subcommands.
2332
23332012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2334
2335 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
2336 * config.in, configure: Regenerate.
2337
2338 * target.h (struct target_ops): Add to_fileio_readlink.
2339 (target_fileio_readlink): Add prototype.
2340 * target.c (target_fileio_readlink): New function.
2341
2342 * inf-child.c: Conditionally include <sys/param.h>.
2343 (inf_child_fileio_readlink): New function.
2344 (inf_child_target): Install it.
2345
2346 * remote.c (PACKET_vFile_readlink): New enum value.
2347 (remote_hostio_readlink): New function.
2348 (init_remote_ops): Install it.
2349 (_initialize_remote): Handle vFile:readlink packet type.
2350
23512012-01-20 Pedro Alves <palves@redhat.com>
2352 Ulrich Weigand <ulrich.weigand@linaro.org>
2353
2354 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
2355 * config.in, configure: Regenerate.
2356
2357 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
2358 to_fileio_pread, to_fileio_close, to_fileio_unlink.
2359 (target_fileio_open): Add prototype.
2360 (target_fileio_pwrite): Likewise.
2361 (target_fileio_pread): Likewise.
2362 (target_fileio_close): Likewise.
2363 (target_fileio_unlink): Likewise.
2364 (target_fileio_read_alloc): Likewise.
2365 (target_fileio_read_stralloc): Likewise.
2366
2367 * target.c: Include "gdb/fileio.h".
2368 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
2369 (default_fileio_target): New function.
2370 (target_fileio_open): Likewise.
2371 (target_fileio_pwrite): Likewise.
2372 (target_fileio_pread): Likewise.
2373 (target_fileio_close): Likewise.
2374 (target_fileio_unlink): Likewise.
2375 (target_fileio_close_cleanup): Likewise.
2376 (target_fileio_read_alloc_1): Likewise.
2377 (target_fileio_read_alloc): Likewise.
2378 (target_fileio_read_stralloc): Likewise.
2379
2380 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
2381 <fcntl.h>, and <unistd.h>.
2382 (inf_child_fileio_open_flags_to_host): New function.
2383 (inf_child_errno_to_fileio_error): Likewise.
2384 (inf_child_fileio_open): Likewise.
2385 (inf_child_fileio_pwrite): Likewise.
2386 (inf_child_fileio_pread): Likewise.
2387 (inf_child_fileio_close): Likewise.
2388 (inf_child_fileio_unlink): Likewise.
2389 (inf_child_target): Install to_fileio routines.
2390
2391 * remote.c (init_remote_ops): Install to_fileio routines.
2392
23932012-01-20 Pedro Alves <palves@redhat.com>
2394 Ulrich Weigand <ulrich.weigand@linaro.org>
2395
2396 * remote.c (remote_multi_process_p): Only check for multi-process
2397 protocol feature, do not check for extended protocol.
2398 (remote_supports_multi_process): Check for extended protocol here.
2399 (set_general_process): Likewise.
2400 (extended_remote_kill): Likewise.
2401 (remote_pid_to_str): Likewise.
2402 (remote_query_supported): Always query multiprocess mode.
2403
24042012-01-20 Pedro Alves <palves@redhat.com>
2405 Ulrich Weigand <ulrich.weigand@linaro.org>
2406
2407 * inferior.h (struct inferior): Add fake_pid_p.
2408 * inferior.c (exit_inferior_1): Clear fake_pid_p.
2409 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
2410 magic_null_ptid since the remote side doesn't provide a real PID.
2411
24122012-01-19 Tom Tromey <tromey@redhat.com>
2413
2414 * NEWS: Combine the two Python sections.
2415
24162012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
2417
2418 * target.h (target_close): Update comment on the target's unpush state.
2419
24202012-01-19 Pedro Alves <palves@redhat.com>
2421
2422 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
2423 linux_nat_async directly instead of going through the target
2424 vector.
2425 * target.c (unpush_target): Close target after unpushing it, not
2426 before.
2427
24282012-01-19 Gary Benson <gbenson@redhat.com>
2429
2430 * mdebugread.c (sort_blocks): Replace integer constants with ones
2431 derived from FIRST_LOCAL_BLOCK.
2432
24332012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
2434 Jan Kratochvil <jan.kratochvil@redhat.com>
2435
2436 PR gdb/9538
2437 * symfile.c (find_separate_debug_file): New function.
2438 (terminate_after_last_dir_separator): Likewise.
2439 (find_separate_debug_file_by_debuglink): Also try realpath.
2440 * configure.ac (AC_CHECK_FUNCS): Add lstat.
2441 * configure: Regenerate.
2442 * config.in: Regenerate.
2443
24442012-01-18 Doug Evans <dje@google.com>
2445
2446 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
2447 (main.o): Remove rule.
2448 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
2449 (--with-sysroot): Rewrite.
2450 * configure: Regenerate.
2451 * config.in: Regenerate.
2452
24532012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
2454
2455 * parse.c (initialize_expout): New function.
2456 (reallocate_expout): Likewise.
2457 (parse_exp_in_context): Use `initialize_expout' and
2458 `reallocate_expout' when appropriate.
2459
24602012-01-18 Pedro Alves <palves@redhat.com>
2461
2462 * record.c (struct record_breakpoint, record_breakpoint_p)
2463 (record_breakpoints): New.
2464 (record_insert_breakpoint, record_remove_breakpoint): Manage
2465 record breakpoints list. Only remove breakpoints from the
2466 inferior if they had been inserted there in the first place.
2467
24682012-01-17 Doug Evans <dje@google.com>
2469
2470 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
2471 if we know we don't have a file name to look for.
2472
24732012-01-17 Pedro Alves <palves@redhat.com>
2474
2475 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
2476 the frame's stop reason is UNWIND_UNAVAILABLE.
2477
24782012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2479
2480 Fix compilation error.
2481 * m2-exp.y (yyerror): Use ANSI C prototype.
2482
24832012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
2484
2485 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
2486 (growbuf_by_size): Likewise.
2487 (yyerror): Likewise.
2488 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
2489 (modblock): Remove variable (was #if 0'ed).
2490 (parse_number): Convert prototype from K&R to ANSI C.
2491 (yyerror): Likewise.
2492 * objc-exp.y (parse_number): Likewise.
2493 (yyerror): Likewise.
2494 (yylex): Remove #if 0'ed code.
2495 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
2496 (yyerror): Likewise.
2497
24982012-01-16 Tom Tromey <tromey@redhat.com>
2499
2500 * NEWS: Add item.
2501 * symtab.h (compare_filenames_for_search): Declare.
2502 * symtab.c (compare_filenames_for_search): New function.
2503 (iterate_over_some_symtabs): Use it.
2504 * symfile.h (struct quick_symbol_functions)
2505 <map_symtabs_matching_filename>: Change spec.
2506 * psymtab.c (partial_map_symtabs_matching_filename): Use
2507 compare_filenames_for_search. Update for new spec.
2508 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
2509 compare_filenames_for_search. Update for new spec.
2510 * breakpoint.c (clear_command): Use compare_filenames_for_search.
2511
25122012-01-16 Tom Tromey <tromey@redhat.com>
2513
2514 PR python/13281:
2515 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
2516 (struct main_type) <flag_flag_enum>: New field.
2517 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
2518 * NEWS: Add entries.
2519 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
2520 enums.
2521 * python/lib/gdb/printing.py (_EnumInstance): New class.
2522 (FlagEnumerationPrinter): Likewise.
2523
25242012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
2525
2526 * breakpoint.c (create_sals_from_address_default): New function.
2527 (create_breakpoints_sal_default): Likewise.
2528 (decode_linespec_default): Likewise.
2529 (is_marker_spec): Removed.
2530 (strace_marker_p): New function.
2531 (init_breakpoint_sal): Using `strace_marker_p' instead of
2532 `is_marker_spec'.
2533 (create_breakpoint): Call method `create_sals_from_address' from
2534 breakpoint_ops, replacing code that created SALs conditionally
2535 on the type of the breakpoint. Call method `create_breakpoints_sal',
2536 replacing code that created breakpoints conditionally on the type
2537 wanted.
2538 (base_breakpoint_create_sals_from_address): New function.
2539 (base_breakpoint_create_breakpoints_sal): Likewise.
2540 (base_breakpoint_decode_linespec): Likewise.
2541 (base_breakpoint_ops): Add methods
2542 `base_breakpoint_create_sals_from_address',
2543 `base_breakpoint_create_breakpoints_sal' and
2544 `base_breakpoint_decode_linespec'.
2545 (bkpt_create_sals_from_address): New function.
2546 (bkpt_create_breakpoints_sal): Likewise.
2547 (bkpt_decode_linespec): Likewise.
2548 (tracepoint_create_sals_from_address): Likewise.
2549 (tracepoint_create_breakpoints_sal): Likewise.
2550 (tracepoint_decode_linespec): Likewise.
2551 (strace_marker_create_sals_from_address): Likewise.
2552 (strace_marker_create_breakpoints_sal): Likewise.
2553 (strace_marker_decode_linespec): Likewise.
2554 (strace_marker_breakpoint_ops): New variable.
2555 (addr_string_to_sals): Remove `marker_spec'. Call method
2556 `decode_linespec' from breakpoint_ops, replacing code that decoded
2557 an address string into a SAL. Use `strace_marker_p' instead of
2558 `marker_spec'.
2559 (strace_command): Decide whether we are dealing with a static
2560 tracepoint with marker or not. Use the appropriate breakpoint_ops.
2561 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
2562 * breakpoint.h (linespec_result, linespec_sals): New forward
2563 declarations.
2564 (breakpoint_ops) <create_sals_from_address>,
2565 <create_breakpoints_sal>, <decode_linespec>: New methods.
2566
25672012-01-14 Doug Evans <dje@google.com>
2568
2569 * NEWS: Update text for "maint set python print-stack".
2570 It is deprecated in gdb 7.4 and deleted in 7.5.
2571
25722012-01-13 Eli Zaretskii <eliz@gnu.org>
2573
2574 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
2575 including curses.h.
2576
25772012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2578
2579 * configure: Regenerate.
2580 * config.in: Regenerate.
2581
25822012-01-12 Keith Seitz <keiths@redhat.com>
2583
2584 PR mi/10586
2585 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
2586 (ANONYMOUS_UNION_NAME): Define.
2587 (is_path_expr_parent): New function.
2588 (get_path_expr_parent): New function.
2589 (is_anonymous_child): New function.
2590 (create_child_with_value): If the child is anonymous and without
2591 a name, assign an object name to it.
2592 (c_describe_child): Use get_path_expr_parent to determine
2593 the parent expression.
2594 If there field represents an anonymous struct or union and
2595 has no name, set an appropriate display name and expression.
2596 (cplus_describe_child): Likewise.
2597
25982012-01-12 Pedro Alves <palves@redhat.com>
2599
2600 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
2601 available when %ebp is found to be zero (outermost).
2602
26032012-01-11 Andreas Tobler <andreast@fgznet.ch>
2604
2605 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
2606 an internal gdb_static_assert.
2607 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
2608
26092012-01-11 Tom Tromey <tromey@redhat.com>
2610
2611 PR gdb/9598:
2612 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
2613 catch" and "catch throw".
2614
26152012-01-11 Paul Hilfinger <hilfingr@adacore.com>
2616
2617 * blockframe.c (block_innermost_frame): Start search from selected
2618 frame, if present, or otherwise the current frame.
2619
2620 * c-exp.y (variable): Update innermost_block for
2621 'block COLONCOLON NAME' clause.
2622 * m2-exp.y (variable): Ditto.
2623 * objc-exp.y (variable): Ditto.
2624
26252012-01-10 Tom Tromey <tromey@redhat.com>
2626
2627 PR python/13199:
2628 * python/python.c (finish_python_initialization): Set sys.argv.
2629
26302012-01-10 Doug Evans <dje@google.com>
2631
2632 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
2633 "want_line_info". All callers updated.
2634 (dwarf_decode_lines_1): New function.
2635 (handle_DW_AT_stmt_list): Add function comment.
2636 New arg "want_line_info". All callers updated.
2637 (read_file_scope,read_type_unit_scope): Move comment from
2638 handle_DW_AT_stmt_list to here.
2639
26402012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2641
2642 Fix regression after libiberty/ update for GCC PR 6057 and others.
2643 * c-exp.y (operator) <OPERATOR DELETE>
2644 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
2645 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
2646 (make_builtin_type, make_name): New variable i, add gdb_assert.
2647 (operator) <OPERATOR NEW>: Update ARGS to 3.
2648 (operator) <OPERATOR DELETE>: Add trailing space.
2649 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
2650 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
2651 * cp-support.c (cp_canonicalize_string): Check NULL from
2652 cp_comp_to_string, call warning and return.
2653
26542012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2655
2656 Fix duplicate .o files after omitting libbfd.a.
2657 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
2658 (SFILES): Add corelow.c.
2659 (COMMON_OBS): Add corelow.o.
2660 (ALLDEPFILES): Remove corelow.c.
2661 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
2662 * config/alpha/alpha-osf3.mh: Likewise.
2663 * config/alpha/fbsd.mh: Likewise.
2664 * config/arm/nbsdaout.mh: Likewise.
2665 * config/arm/nbsdelf.mh: Likewise.
2666 * config/i386/i386gnu.mh: Likewise.
2667 * config/ia64/hpux.mh: Likewise.
2668 * config/ia64/linux.mh: Likewise.
2669 * config/m32r/linux.mh: Likewise.
2670 * config/m68k/linux.mh: Likewise.
2671 * config/mips/irix5.mh: Likewise.
2672 * config/mips/irix6.mh: Likewise.
2673 * config/pa/hpux.mh: Likewise.
2674 * config/pa/linux.mh: Likewise.
2675 * config/powerpc/aix.mh: Likewise.
2676 * config/sparc/linux.mh: Likewise.
2677 * config/sparc/linux64.mh: Likewise.
2678 * config/sparc/sol2.mh: Likewise.
2679 * config/vax/vax.mh: Likewise.
2680 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
2681 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
2682 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
2683 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
2684 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
2685 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
2686 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
2687 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
2688 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
2689 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
2690 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
2691 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
2692 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
2693 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
2694 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
2695 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
2696 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
2697 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
2698 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
2699 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
2700 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
2701 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
2702 corelow.o from gdb_target_obs.
2703 * corefile.c (core_target): Update the comment on NULL value.
2704 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
2705 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
2706 MATCHES. Drop YUMMY set on NULL.
2707 (core_close): Do not call exit_inferior_silent on zero PID. Do not
2708 reclaim CORE_DATA if it is already NULL.
2709
27102012-01-09 Doug Evans <dje@google.com>
2711
2712 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
2713 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
2714
27152012-01-09 Keith Seitz <keiths@redhat.com>
2716
2717 * breakpoint.c (wrapper.h): Don't include.
2718
27192012-01-09 Keith Seitz <keiths@redhat.com>
2720
2721 * Makefile.in (SFILES): Remove wrapper.c.
2722 (HFILES_NO_SRCDIR): Remove wrapper.h.
2723 (COMMON_OBS): Remove wrapper.o.
2724 * cli/cli-interp.c: Don't inlude wrapper.h.
2725 * corelow.c: Likewise.
2726 (core_open): Replace gdb_target_find_new_threads with
2727 TRY_CATCH around target_find_new_threads.
2728 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
2729 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
2730 * varobj.c (varobj_create): Likewise for parse_exp_1 and
2731 evaluate_expression.
2732 (varobj_set_value): Likewise for evaluate_expression and
2733 value_assign.
2734 (install_new_variable): Likewise for value_fetch_lazy.
2735 (adjust_value_for_child_access): Likewise for value_ind.
2736 (c_describe_child): Likewise for value_subscript and
2737 value_ind.
2738 (c_value_of_root): Likewise for evaluate_expression.
2739 * wrapper.c: Remove.
2740 * wrapper.h: Remove.
2741
27422012-01-09 Doug Evans <dje@google.com>
2743
2744 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
2745 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
2746 "abfd" args with "section". All callers updated.
2747 Error checking code moved ...
2748 (error_check_comp_unit_head): ... here. New function.
2749 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
2750 Delete arg "abfd". New arg "type_offset". All callers updated.
2751 (create_debug_types_hash_table): Simplify by using
2752 read_and_check_type_unit_head.
2753
2754 * parser-defs.h (namecopy): Delete.
2755 * parse.c (namecopy, namecopy_size): Move into copy_name.
2756
27572012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
2758
2759 Partially fix duplicate .o files after omitting libbfd.a.
2760 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
2761 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2762 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
2763 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2764 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
2765 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
2766 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
2767
27682012-01-09 Pedro Alves <palves@redhat.com>
2769
2770 * MAINTAINERS: Update my email address.
2771
27722012-01-08 Doug Evans <dje@google.com>
2773
2774 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
2775 n_type_units. Rename type_comp_units to all_type_units.
2776 All uses updated.
2777 (add_signatured_type_cu_to_table): Renamed from
2778 add_signatured_type_cu_to_list. All callers updated.
2779
2780 * gdbtypes.h (struct cplus_struct_type): Delete member
2781 nfn_fields_total. All uses removed.
2782
27832012-01-06 Doug Evans <dje@google.com>
2784
2785 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
2786 to top of file.
2787 (dwarf2_find_comp_unit): Delete.
2788 (process_psymtab_comp_unit): Make result "void".
2789 Delete args buffer, info_ptr, buffer_size, and replace with
2790 "section". All callers updated.
2791 (dwarf2_build_psymtabs_hard): Simplify.
2792
27932012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
2794 Thiago Jung Bauermann <bauerman@br.ibm.com>
2795
2796 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
2797 before `struct gdb_exception'.
2798 * breakpoint.c (update_global_location_list_nothrow)
2799 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
2800 * cp-abi.c (value_rtti_type): Likewise.
2801 * cp-support.c (cp_validate_operator): Likewise.
2802 * infrun.c (insert_exception_resume_breakpoint)
2803 (check_exception_resume, keep_going): Likewise.
2804 * mi-interp.c (mi_breakpoint_created)
2805 (mi_breakpoint_modified): Likewise.
2806 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
2807 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
2808 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
2809
28102012-01-05 Doug Evans <dje@google.com>
2811
2812 * dwarf2read.c (statement_prologue): Delete, unused.
2813
2814 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
2815 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
2816
2817 * dwarf2read.c (comp_unit_header): Delete, unused.
2818
28192012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
2820
2821 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
2822 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
2823
28242012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
2825
2826 * infrun.c (normal_stop): Don't skip calling the normal_stop
2827 observers if the thread was doing a multi-step, but stopped for
2828 some reason other than stepping.
2829
28302012-01-05 Pedro Alves <alves.ped@gmail.com>
2831
2832 * cli/cli-decode.h: Add comments.
2833 (CMD_LIST_AMBIGUOUS): Moved to command.h
2834 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
2835 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
2836 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
2837 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
2838 (add_com, add_com_alias, add_info, add_info_alias)
2839 (complete_on_cmdlist, complete_on_enum, help_list): Remove
2840 declarations.
2841 * command.h: Add and adjust comments.
2842 (CMD_LIST_AMBIGUOUS): Moved here.
2843 (help_cmd, help_cmd_list): Delete declarations.
2844
28452012-01-04 Doug Evans <dje@google.com>
2846
2847 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
2848 All callers updated.
2849 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
2850 Replace all arguments with "per_cu". All callers updated.
2851
2852 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
2853
2854 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
2855 New arg "per_cu". All callers updated.
2856
2857 Delete #if 0'd out code.
2858 * language.c (binop_result_type): Delete.
2859 (simple_type, ordered_type, same_type, integral_type): Delete.
2860 (numeric_type, character_type, string_type, boolean_type): Delete.
2861 (float_type, structured_type): Delete.
2862 * language.h: Update.
2863
28642012-01-04 Tom Tromey <tromey@redhat.com>
2865
2866 * python/py-value.c (valpy_binop): Initialize 'res_val'.
2867
28682012-01-04 Joel Brobecker <brobecker@adacore.com>
2869
2870 * corefile.c (close_exec_file): Delete.
2871 (reopen_exec_file): Remove commented out code that seems related
2872 to close_exec_file, which is being deleted here.
2873 * inferior.h (close_exec_file): Delete.
2874 * fork-child.c (fork_inferior): Remove call to fork_inferior.
2875
28762012-01-04 Joel Brobecker <brobecker@adacore.com>
2877
2878 * ada-lang.c: #include "cli/cli-utils.h".
2879 (get_selections): Use skip_spaces.
2880 (ada_get_next_arg): Use skip_spaces and skip_to_space.
2881 (catch_ada_exception_command_split): Use skip_spaces.
2882 (ada_decode_assert_location): Likewise.
2883
28842012-01-04 Joel Brobecker <brobecker@adacore.com>
2885
2886 * linespec.c (decode_line_internal): Check for C++ or Java
2887 compound constructs only if the current language is C, C++
2888 or Java.
2889
28902012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2891
2892 Revert:
2893 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2894 Joel Brobecker <brobecker@adacore.com>
2895 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
2896 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
2897 3 times.
2898 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
2899 fall through into AT_ENTRY_POINT.
2900 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
2901 DUMMY_ADDR with it.
2902 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
2903 PPC_INSN_SIZE skip to 3 times.
2904
29052012-01-04 Joel Brobecker <brobecker@adacore.com>
2906
2907 * linespec.c (add_minsym): Preserve function descriptors.
2908
29092012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
2910
2911 * breakpoint.c (all_locations_are_pending): Consider locations
2912 in program spaces executing during startup pending as well.
2913
29142012-01-04 Joel Brobecker <brobecker@adacore.com>
2915
2916 Copyright year update in most files of the GDB Project.
2917
29182012-01-04 Joel Brobecker <brobecker@adacore.com>
2919
2920 * copyright.sh: Delete.
2921 * copyright.py: Rewrite.
2922
29232012-01-04 Joel Brobecker <brobecker@adacore.com>
2924
2925 * gnulib/extra/update-copyright: New file, imported from gnulib.
2926
29272012-01-04 Joel Brobecker <brobecker@adacore.com>
2928
2929 * README (Copyright and License Notices): New section.
2930
29312012-01-03 Tom Tromey <tromey@redhat.com>
2932
2933 PR python/12533:
2934 * python/py-value.c (valpy_dereference, valpy_get_address
2935 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
2936 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
2937 (valpy_absolute, valpy_richcompare): Free intermediate values.
2938
29392011-01-03 Joel Brobecker <brobecker@adacore.com>
2940
2941 * ada-lang.c: Reformat the copyright notice.
2942
29432012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2944
2945 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
2946 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
2947 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
2948 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
2949 Revert this part of:
2950 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2951 Build gdb directly from *.o files not using libgdb.a.
2952 * Makefile.in (COMMON_OBS): Remove solib-target.o.
2953
29542012-01-02 Joel Brobecker <brobecker@adacore.com>
2955
2956 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
2957 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
2958 Reformat the copyright header.
2959
29602012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2961
2962 Revert this part of:
2963 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2964 Remove the gdbtui binary.
2965 * gdb.c (main): Remove args.interpreter_p initialization.
2966 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
2967 * main.h (struct captured_main_args): Remove interpreter_p.
2968
29692012-01-02 Joel Brobecker <brobecker@adacore.com>
2970
2971 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
2972
29732012-01-02 Joel Brobecker <brobecker@adacore.com>
2974
2975 * top.c (print_gdb_version): Update copyright year.
2976
29772012-01-02 Yao Qi <yao@codesourcery.com>
2978
2979 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
2980
29812012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2982 Joel Brobecker <brobecker@adacore.com>
2983
2984 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
2985 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
2986 3 times.
2987 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
2988 fall through into AT_ENTRY_POINT.
2989 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
2990 DUMMY_ADDR with it.
2991 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
2992 PPC_INSN_SIZE skip to 3 times.
2993
29942012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2995
2996 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
2997 the return value.
2998 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
2999
30002012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3001
3002 Build gdb directly from *.o files not using libgdb.a.
3003 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
3004 (COMMON_OBS): Remove solib-target.o.
3005 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
3006 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
3007 (LIBGDB_OBS, libgdb.a): Move it above.
3008 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
3009 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
3010 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
3011 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
3012 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
3013 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
3014 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
3015 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
3016 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
3017 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
3018 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
3019 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
3020 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
3021 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
3022 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
3023 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
3024 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
3025 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
3026 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
3027 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
3028 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
3029 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
3030 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
3031 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
3032 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
3033 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
3034 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
3035
30362012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3037
3038 Remove the gdbtui binary.
3039 * .gitignore (/gdbtui): Remove.
3040 * Makefile.in (TUI): Remove.
3041 (SUBDIR_TUI_OBS): Remove tui-main.o.
3042 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
3043 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
3044 (tui-main.o): Remove.
3045 (all_object_files): Remove tui-main.o.
3046 * NEWS: New note for the gdbtui removal.
3047 * configure: Rebuilt.
3048 * configure.ac: No longer add all-tui, clean-tui, install-tui and
3049 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
3050 CONFIG_UNINSTALL respectively.
3051 * gdb.c (main): Remove args.interpreter_p initialization.
3052 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
3053 * main.h (struct captured_main_args): Remove interpreter_p.
3054 * tui/tui-main.c: Remove.
3055
30562012-01-01 Doug Evans <dje@google.com>
3057
3058 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
3059 (dwarf2_physname, read_import_statement): Ditto.
3060 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
3061 (process_structure_scope read_subroutine_type): Ditto.
3062 (read_typedef, load_partial_dies, read_partial_die): Ditto.
3063 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
3064 (dwarf2_fetch_die_location_block): Ditto.
3065 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
3066
3067 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
3068 All callers updated.
3069 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
3070 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
3071 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
3072
3073 * dwarf2read.c (load_cu): Move assert to more useful location.
3074
3075 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
3076 All callers updated.
3077
3078 * dwarf2read.c (dwarf2_per_objfile): Add comment.
3079 (dwarf2_elf_names): Minor reformat.
3080 (dwarf2_per_cu_data): Tweak comment.
3081 (dwarf2_read_section): Fix comment.
3082 (create_all_comp_units): Fix comment.
3083 (load_full_comp_unit): Fix comment.
3084 (process_full_comp_unit): Fix comment.
3085 (read_signatured_type): Fix comment.
3086
3087For older changes see ChangeLog-2011.
3088\f
3089Local Variables:
3090mode: change-log
3091left-margin: 8
3092fill-column: 74
3093version-control: never
3094coding: utf-8
3095End:
This page took 0.034284 seconds and 4 git commands to generate.