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