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