2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
[binutils-gdb.git] / gdb / ChangeLog
1 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2
3 * probe.c (compile_rx_or_error): Silence ARI warning about missing
4 gettext function on `error'.
5
6 2012-04-27 Doug Evans <dje@google.com>
7
8 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
9 is empty.
10
11 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
12 Tom Tromey <tromey@redhat.com>
13
14 * breakpoint.c (struct breakpoint_objfile_data)
15 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
16 <exception_probes>: New fields.
17 (free_breakpoint_probes): New function.
18 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
19 `_Unwind_DebugHook'.
20 (create_exception_master_breakpoint): Likewise.
21 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
22 * infrun.c: Including necessary header files for handling SystemTap
23 probes.
24 (handle_inferior_event): Handling longjmp breakpoint and exceptions
25 via SystemTap probes.
26 (check_exception_resume): Remove `func' argument. Handle exception
27 unwinding breakpoint set via a SystemTap probe.
28 (insert_exception_resume_from_probe): New function.
29
30 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
31 Tom Tromey <tromey@redhat.com>
32 Jan Kratochvil <jan.kratochvil@redhat.com>
33
34 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
35 (COMMON_OBS): Likewise.
36 (HFILES_NO_SRCDIR): Add `probe'.
37 * NEWS: Mention support for static and SystemTap probes.
38 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
39 SystemTap probes' arguments parser.
40 * arm-linux-tdep.c: Including headers needed to perform the parsing
41 of SystemTap probes' arguments.
42 (arm_stap_is_single_operand): New function.
43 (arm_stap_parse_special_token): Likewise.
44 (arm_linux_init_abi): Initializing proper fields used by SystemTap
45 probes' arguments parser.
46 * ax-gdb.c (require_rvalue): Removing static declaration.
47 (gen_expr): Likewise.
48 * ax-gdb.h (gen_expr): Declaring function.
49 (require_rvalue): Likewise.
50 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
51 (bkpt_probe_breakpoint_ops): New variable.
52 (momentary_breakpoint_from_master): Set the `probe' value.
53 (add_location_to_breakpoint): Likewise.
54 (break_command_1): Using proper breakpoint_ops according to the
55 argument passed by the user in the command line.
56 (bkpt_probe_insert_location): New function.
57 (bkpt_probe_remove_location): Likewise.
58 (bkpt_probe_create_sals_from_address): Likewise.
59 (bkpt_probe_decode_linespec): Likewise.
60 (tracepoint_probe_create_sals_from_address): Likewise.
61 (tracepoint_probe_decode_linespec): Likewise.
62 (tracepoint_probe_breakpoint_ops): New variable.
63 (trace_command): Using proper breakpoint_ops according to the
64 argument passed by the user in the command line.
65 (initialize_breakpoint_ops): Initializing breakpoint_ops for
66 static probes on breakpoints and tracepoints.
67 * breakpoint.h (struct bp_location) <probe>: New field.
68 * cli-utils.c (skip_spaces_const): New function.
69 (extract_arg): Likewise.
70 * cli-utils.h (skip_spaces_const): Likewise.
71 (extract_arg): Likewise.
72 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
73 * configure.ac: Append `stap-probe.o' to be generated when ELF
74 support is present.
75 * configure: Regenerate.
76 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
77 * elfread.c: Include `probe.h' and `arch-utils.h'.
78 (probe_key): New variable.
79 (elf_get_probes): New function.
80 (elf_get_probe_argument_count): Likewise.
81 (elf_evaluate_probe_argument): Likewise.
82 (elf_compile_to_ax): Likewise.
83 (elf_symfile_relocate_probe): Likewise.
84 (stap_probe_key_free): Likewise.
85 (elf_probe_fns): New variable.
86 (elf_sym_fns): Add `sym_probe_fns' value.
87 (elf_sym_fns_lazy_psyms): Likewise.
88 (elf_sym_fns_gdb_index): Likewise.
89 (_initialize_elfread): Initialize objfile cache for static
90 probes.
91 * gdb_vecs.h (struct probe): New forward declaration.
92 (probe_p): New VEC declaration.
93 * gdbarch.c: Regenerate.
94 * gdbarch.h: Regenerate.
95 * gdbarch.sh (stap_integer_prefix): New variable.
96 (stap_integer_suffix): Likewise.
97 (stap_register_prefix): Likewise.
98 (stap_register_suffix): Likewise.
99 (stap_register_indirection_prefix): Likewise.
100 (stap_register_indirection_suffix): Likewise.
101 (stap_gdb_register_prefix): Likewise.
102 (stap_gdb_register_suffix): Likewise.
103 (stap_is_single_operand): New function.
104 (stap_parse_special_token): Likewise.
105 (struct stap_parse_info): Forward declaration.
106 * i386-tdep.c: Including headers needed to perform the parsing
107 of SystemTap probes' arguments.
108 (i386_stap_is_single_operand): New function.
109 (i386_stap_parse_special_token): Likewise.
110 (i386_elf_init_abi): Initializing proper fields used by SystemTap
111 probes' arguments parser.
112 * i386-tdep.h (i386_stap_is_single_operand): New function.
113 (i386_stap_parse_special_token): Likewise.
114 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
115 * mipsread.c (ecoff_sym_fns): Likewise.
116 * objfiles.c (objfile_relocate1): Support relocation for static
117 probes.
118 * parse.c (prefixify_expression): Remove static declaration.
119 (initialize_expout): Likewise.
120 (reallocate_expout): Likewise.
121 * parser-defs.h (initialize_expout): Declare function.
122 (reallocate_expout): Likewise.
123 (prefixify_expression): Likewise.
124 * ppc-linux-tdep.c: Including headers needed to perform the parsing
125 of SystemTap probes' arguments.
126 (ppc_stap_is_single_operand): New function.
127 (ppc_stap_parse_special_token): Likewise.
128 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
129 probes' arguments parser.
130 * probe.c: New file, for generic statically defined probe support.
131 * probe.h: Likewise.
132 * s390-tdep.c: Including headers needed to perform the parsing of
133 SystemTap probes' arguments.
134 (s390_stap_is_single_operand): New function.
135 (s390_gdbarch_init): Initializing proper fields used by SystemTap
136 probes' arguments parser.
137 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
138 * stap-probe.c: New file, for SystemTap probe support.
139 * stap-probe.h: Likewise.
140 * symfile.h: Include `gdb_vecs.h'.
141 (struct sym_probe_fns): New struct.
142 (struct sym_fns) <sym_probe_fns>: New field.
143 * symtab.c (init_sal): Initialize `probe' field.
144 * symtab.h (struct probe): Forward declaration.
145 (struct symtab_and_line) <probe>: New field.
146 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
147 locations.
148 (stop_tracing): Likewise.
149 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
150
151 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
152 Tom Tromey <tromey@redhat.com>
153
154 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
155 and to compile agent expressions.
156 * infrun.c (siginfo_make_value): New argument `ignore'.
157 (siginfo_funcs): New struct.
158 (_initialize_infrun): New argument when calling
159 `create_internalvar_type_lazy'.
160 * thread.c (thread_id_make_value): New argument `ignore'.
161 (thread_funcs): New struct.
162 (_initialize_thread): New argument when calling
163 `create_internalvar_type_lazy'.
164 * tracepoint.c (sdata_make_value): New argument `ignore'.
165 (sdata_funcs): New struct.
166 (_initialize_tracepoint): New argument when calling
167 `create_internalvar_type_lazy'.
168 * value.c (make_value): New struct.
169 (create_internalvar_type_lazy): New argument `data'.
170 (compile_internalvar_to_ax): New function.
171 (value_of_internalvar): Properly handling `make_value' case.
172 (clear_internalvar): Likewise.
173 (show_convenience): Adding `TRY_CATCH' block.
174 * value.h (internalvar_make_value): Delete, replace by...
175 (struct internalvar_funcs): ... this.
176 (create_internalvar_type_lazy) <fun>: Delete argument.
177 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
178 (compile_internalvar_to_ax): New function.
179 * windows-tdep.c (tlb_make_value): New argument `ignore'.
180 (tlb_funcs): New struct.
181 (_initialize_windows_tdep): New argument when calling
182 `create_internalvar_type_lazy'.
183
184 2012-04-27 Mark Wielaard <mjw@redhat.com>
185
186 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
187 see whether it is an address or a constant offset from DW_AT_low_pc.
188 (dwarf2_record_block_ranges): Likewise.
189 (read_partial_die): Likewise.
190
191 2012-04-26 Mark Wielaard <mjw@redhat.com>
192
193 * MAINTAINERS (Write After Approval): Add myself to the list.
194
195 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
196
197 * proc-utils.h (proc_prettyprint_signalset): New prototype.
198 (proc_prettyprint_signal): Likewise.
199 (proc_prettyprint_faultset): Likewise.
200 (proc_prettyprint_fault): Likewise.
201 (proc_prettyprint_actionset): Likewise.
202 (proc_prettyprint_flags): Move to new proc-flags.c section.
203 (proc_prettyfprint_flags): New prototype.
204 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
205 (proc_syscall, proc_cursig): Likewise.
206 (proc_set_kill_on_last_close): Likewise.
207 (proc_unset_kill_on_last_close): Likewise.
208 (proc_set_watchpoint): Make static.
209 (proc_delete_dead_threads): Likewise.
210 (procfs_set_watchpoint): Likewise.
211 (_initialize_procfs): Add prototype.
212 * proc-events.c: Include proc-utils.h.
213 (init_syscall_table): Make static.
214 * proc-api.c (_initialize_proc_api): Add prototype.
215 * proc-flags.c: Include proc-utils.h.
216
217 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
218
219 * configure.ac: Add AC_ARG_PROGRAM.
220 * configure: Regenerate.
221
222 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
223
224 Fix DW_AT_lower_bound defaults for DWARF-4+.
225 * dwarf2read.c (read_subrange_type): Remove initialization of low and
226 high. New variable low_default_is_valid. Implement DWARF-4+
227 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
228 no default by the DWARF standard.
229
230 2012-04-26 Maciej W. Rozycki <macro@mips.com>
231 Maciej W. Rozycki <macro@codesourcery.com>
232
233 * infrun.c (handle_inferior_event): Move the check for return
234 trampolines ahead of the check for function trampolines.
235 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
236 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
237 (mips_str_mips16_ret_stub): Likewise.
238 (mips_str_call_fp_stub): Likewise.
239 (mips_str_call_stub): Likewise.
240 (mips_str_fn_stub): Likewise.
241 (mips_str_pic): Likewise.
242 (mips_in_frame_stub): New function.
243 (mips_unwind_pc): Return the return address rather than the PC
244 if the PC of an intermediate frame is inside a call thunk.
245 (mips_is_stub_suffix): New function.
246 (mips_is_stub_mode): Likewise.
247 (mips_get_mips16_fn_stub_pc): Likewise.
248 (mips_skip_mips16_trampoline_code): Update to handle all the
249 currently generated stub types. Don't recurse into __fn_stub
250 thunks. Remove heuristics to handle stubs beyond etext/_etext.
251 Use cooked register accesses.
252 (mips_in_return_stub): Reintroduce function.
253 (mips_skip_trampoline_code): Traverse trampolines recursively.
254 (mips_gdbarch_init): Handle MIPS16 return trampolines.
255
256 2012-04-26 Joel Brobecker <brobecker@adacore.com>
257
258 GDB 7.4.1 released.
259
260 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
261
262 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
263 * features/arm-with-m-vfp-d16.xml: New file. Describes
264 Cortex-M with VFPv4-sp-d16 FPU register layout.
265 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
266 * features/arm-with-m-vfp-d16.c: New. Generated from above.
267 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
268 (arm-register_g_packet_guesses): Add vfp-d16 guess.
269 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
270
271 2012-04-25 Doug Evans <dje@google.com>
272
273 * cli/cli-decode.c (print_doc_line): Use stream instead of
274 current_uiout.
275
276 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
277
278 * features/arm-with-iwmmxt.c: Regenerate.
279 * features/arm-with-m-fpa-layout.c: Likewise.
280 * features/arm-with-m.c: Likewise.
281 * features/arm-with-neon.c: Likewise.
282 * features/arm-with-vfpv2.c: Likewise.
283 * features/arm-with-vfpv3.c: Likewise.
284 * features/mips-dsp-linux.c: Likewise.
285 * features/mips-linux.c: Likewise.
286 * features/mips64-dsp-linux.c: Likewise.
287 * features/mips64-linux.c: Likewise.
288 * features/s390-linux32.c: Likewise.
289 * features/s390-linux32v1.c: Likewise.
290 * features/s390-linux32v2.c: Likewise.
291 * features/s390-linux64.c: Likewise.
292 * features/s390-linux64v1.c: Likewise.
293 * features/s390-linux64v2.c: Likewise.
294 * features/s390x-linux64.c: Likewise.
295 * features/s390x-linux64v1.c: Likewise.
296 * features/s390x-linux64v2.c: Likewise.
297 * features/tic6x-c62x-linux.c: Likewise.
298 * features/tic6x-c62x.c: Likewise.
299 * features/tic6x-c64x-linux.c: Likewise.
300 * features/tic6x-c64x.c: Likewise.
301 * features/tic6x-c64xp-linux.c: Likewise.
302 * features/tic6x-c64xp.c: Likewise.
303 * target-descriptions.c: Only generate `field_type' and `type'
304 variables when needed.
305
306 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
307
308 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
309
310 2012-04-25 Doug Evans <dje@google.com>
311
312 Initial pass at Go language support.
313 * NEWS: Mention Go.
314 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
315 go-valprint.c.
316 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
317 (YYFILES): Add go-exp.c.
318 (YYOBJ): Add go-exp.o.
319 (local-maintainer-clean): Delete go-exp.c.
320 * defs.h (enum language): Add language_go.
321 * dwarf2read.c: #include "go-lang.h".
322 (fixup_go_packaging): New function.
323 (process_full_comp_unit): Call it when processing Go CUs.
324 (dwarf2_physname): Add Go support.
325 (read_file_scope): Handle missing language spec for GNU Go.
326 (set_cu_language): Handle DW_LANG_Go.
327 * go-exp.y: New file.
328 * go-lang.h: New file.
329 * go-lang.c: New file.
330 * go-typeprint.c: New file.
331 * go-valprint.c: New file.
332 * symtab.c: #include "go-lang.h".
333 (symbol_set_language): Handle language_go.
334 (symbol_find_demangled_name, symbol_set_names): Ditto.
335 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
336
337 2012-04-24 Jim Meyering <meyering@redhat.com>
338
339 avoid a few strncpy-induced buffer overruns
340 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
341 fname and psargs before trying to concatenate.
342 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
343 "name" before applying strchr.
344
345 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
346
347 * CONTRIBUTE: Use unified diff instead of context diff when
348 generating patches.
349
350 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
351
352 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
353 code. Handle JR.HB correctly.
354
355 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
356
357 * mips-tdep.c
358 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
359 with the other MIPS16 helpers.
360
361 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
362
363 * observer.sh: Conditionally declare `args', thus cleaning up
364 unused instances of this variable.
365
366 2012-04-24 Yao Qi <yao@codesourcery.com>
367
368 Revert this patch to allow breakpoint always-inserted
369 in record target.
370 2011-12-05 Pedro Alves <pedro@codesourcery.com>
371 * breakpoint.c: Include record.h.
372 (breakpoints_always_inserted_mode): Return false when the record
373 target is in use.
374
375 * breakpoint.c (iterate_over_bp_locations): New.
376 * breakpoint.h: Declare.
377 New typedef walk_bp_location_callback.
378 * record.c (record_open): Call record_init_record_breakpoints.
379 (record_sync_record_breakpoints): New.
380 (record_init_record_breakpoints): New.
381 * NEWS: Mention supporting breakpoint always-inserted mode in
382 record target.
383
384 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
385
386 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
387 any thread.
388
389 2012-04-24 Yao Qi <yao@codesourcery.com>
390
391 * breakpoint.c (ep_is_catchpoint): Renamed to ...
392 (is_catchpoint): ... it.
393 (print_one_breakpoint_location): Caller update.
394 * breakpoint.h: Update declaration.
395
396 2012-04-23 David S. Miller <davem@davemloft.net>
397
398 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
399
400 2012-04-23 Tom Tromey <tromey@redhat.com>
401
402 * buildsym.c (add_free_pendings): Remove.
403 * buildsym.h (add_free_pendings): Remove.
404
405 2012-04-23 Doug Evans <dje@google.com>
406
407 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
408 attr.u.unsnd instead of attr.u.addr.
409 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
410 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
411 DW_FORM_ref_udata.
412 (dump_die_shallow): Update cases DW_FORM_ref_addr,
413 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
414 DW_FORM_ref_udata.
415 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
416
417 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
418
419 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
420 (mips_o32_return_value): Likewise.
421 (mips_o64_return_value): Likewise.
422
423 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
424
425 * ada-lang.c (ada_evaluate_subexp): Add cases for
426 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
427 their treatment in eval.c.
428
429 2012-04-21 David S. Miller <davem@davemloft.net>
430
431 * sparc-tdep.c (X_DISP10): Define.
432 (sparc_analyze_control_transfer): Handle compare-and-branch.
433
434 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
435
436 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
437 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
438
439 2012-04-20 Nigel Stephens <nigel@mips.com>
440 Maciej W. Rozycki <macro@codesourcery.com>
441
442 * mips-tdep.c (mips_float_register_p): New function.
443 (mips_convert_register_float_case_p): Use mips_float_register_p.
444 (mips_register_type): Likewise.
445 (mips_print_register): Likewise.
446 (print_gp_register_row): Likewise.
447 (mips_print_registers_info): Likewise.
448
449 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
450
451 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
452 of mips16 symbols.
453
454 2012-04-20 Andrew Pinski <apinski@cavium.com>
455
456 * MAINTAINERS (Write After Approval): Add myself to the list.
457
458 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
459
460 * MAINTAINERS: Update my e-mail address.
461
462 2012-04-20 Pedro Alves <palves@redhat.com>
463
464 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
465 $srcdir.
466 * configure: Regenerate.
467
468 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
469
470 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
471 declaration.
472 * gdb_vecs.h: Declare `const_char_ptr' VEC.
473
474 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
475
476 Fix compilation compatibility with python-2.4
477 * python/py-type.c (convert_field): Cast ADDRSTRING for
478 PyObject_SetAttrString as non-const. New comment.
479
480 2012-04-19 Tom Tromey <tromey@redhat.com>
481
482 * top.c (quit_target): Use all_cleanups.
483 * main.c (captured_command_loop): Use all_cleanups.
484 * exceptions.c (throw_exception): Use all_cleanups.
485
486 2012-04-19 Pedro Alves <palves@redhat.com>
487
488 * Makefile.in (GNULIB_BUILDDIR): New.
489 (LIBGNU, INCGNU, GNULIB_H): Adjust.
490 (SUBDIRS): Add $(GNULIB_BUILDDIR).
491 (CLEANDIRS). Remove gnulib/import.
492 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
493 (all-lib): Ditto.
494 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
495 (gnulib/import/Makefile): Replace gnulib/import with
496 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
497 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
498 (aclocal_m4_deps): Remove the gnulib dependencies. Add
499 acx_configure_dir.m4.
500 * acinclude.m4: Include acx_configure_dir.m4.
501 * acx_configure_dir.m4: New file.
502 * aclocal.m4: Regenerate.
503 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
504 calls. Configure gnulib using ACX_CONFIGURE_DIR.
505 (GNULIB): New variable.
506 (GNULIB_STDINT_H): Adjust.
507 (AC_OUTPUT): Don't output gnulib/Makefile.
508 * gdb/defs.h: Include build-gnulib/config.h.
509 * aclocal.m4: Regenerate.
510 * config.in: Regenerate.
511 * configure: Regenerate.
512
513 * gnulib/Makefile.in: New file.
514 * gnulib/configure.ac: New file.
515 * gnulib/aclocal.m4: New file.
516 * gnulib/config.in: New file.
517 * gnulib/configure: New file.
518 * gnulib/: Re-run gnulib-tool to adjust.
519
520 2012-04-19 Doug Evans <dje@google.com>
521
522 * cleanups.h (struct cleanup): Move to cleanups.c.
523 (make_cleanup_dtor_ftype): New typedef.
524 (make_cleanup_dtor): Use it.
525 (ALL_CLEANUPS): Replace with ...
526 (all_cleanups): ... this. Declare. All uses updated.
527 * cleanups.c: #include "gdb_assert.h".
528 (sentinel_cleanup): New static global.
529 (SENTINEL_CLEANUP): Define.
530 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
531 (make_my_cleanup2): Assert result is non-NULL.
532 (all_cleanups): New function.
533 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
534 of NULL.
535
536 2012-04-19 Pedro Alves <palves@redhat.com>
537
538 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
539 Adjust paths to gnulib imported files.
540
541 2012-04-19 Pedro Alves <palves@redhat.com>
542
543 * gnulib/: Move whole directory ...
544 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
545 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
546 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
547 (aclocal_m4_deps): Adjust.
548 * aclocal.m4: Regenerate.
549 * configure: Regenerate.
550 * configure.ac: Adjust AC_OUTPUT output.
551
552 2012-04-19 Yao Qi <yao@codesourcery.com>
553
554 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
555 (vec.o): New rule.
556 * vec.c: Move it ...
557 * common/vec.c: ... here.
558 * vec.h: Move it ...
559 * common/vec.h: ... here.
560
561 2012-04-19 Yao Qi <yao@codesourcery.com>
562
563 * gdb-code-style.el: New.
564
565 2012-04-18 Pedro Alves <palves@redhat.com>
566
567 Update gnulib from latest git.
568 (639ea5ae15e39fe48d43e04864b2997301e4b969)
569
570 * gnulib/Makefile.am: Update.
571 * gnulib/dummy.c: Update.
572 * gnulib/extra/arg-nonnull.h: Update.
573 * gnulib/extra/c++defs.h: Update.
574 * gnulib/extra/update-copyright: Update.
575 * gnulib/extra/warn-on-use.h: Update.
576 * gnulib/inttypes.in.h: Update.
577 * gnulib/m4/00gnulib.m4: Update.
578 * gnulib/m4/extensions.m4: Update.
579 * gnulib/m4/gnulib-cache.m4: Update.
580 * gnulib/m4/gnulib-common.m4: Update.
581 * gnulib/m4/gnulib-comp.m4: Update.
582 * gnulib/m4/gnulib-tool.m4: Update.
583 * gnulib/m4/include_next.m4: Update.
584 * gnulib/m4/inttypes-pri.m4: Update.
585 * gnulib/m4/inttypes.m4: Update.
586 * gnulib/m4/longlong.m4: Update.
587 * gnulib/m4/memchr.m4: Update.
588 * gnulib/m4/memmem.m4: Update.
589 * gnulib/m4/mmap-anon.m4: Update.
590 * gnulib/m4/multiarch.m4: Update.
591 * gnulib/m4/onceonly.m4: Update.
592 * gnulib/m4/stddef_h.m4: Update.
593 * gnulib/m4/stdint.m4: Update.
594 * gnulib/m4/string_h.m4: Update.
595 * gnulib/m4/warn-on-use.m4: Update.
596 * gnulib/m4/wchar_h.m4: Update.
597 * gnulib/m4/wchar_t.m4: Update.
598 * gnulib/m4/wint_t.m4: Update.
599 * gnulib/memchr.c: Update.
600 * gnulib/memmem.c: Update.
601 * gnulib/stddef.in.h: Update.
602 * gnulib/stdint.in.h: Update.
603 * gnulib/str-two-way.h: Update.
604 * gnulib/string.in.h: Update.
605 * gnulib/wchar.in.h: Update.
606
607 * gnulib/extra/arg-nonnull.h: Delete.
608 * gnulib/extra/c++defs.h: Delete.
609 * gnulib/extra/warn-on-use.h: Delete.
610 * gnulib/m4/wchar_h.m4: Delete.
611 * gnulib/m4/wint_t.m4: Delete.
612 * gnulib/wchar.in.h: Delete.
613
614 * gnulib/extra/snippets/arg-nonnull.h: New.
615 * gnulib/extra/snippets/c++defs.h: New.
616 * gnulib/extra/snippets/warn-on-use.h: New.
617
618 * aclocal.m4: Regenerate.
619 * config.in: Regenerate.
620 * configure: Regenerate.
621 * gnulib/Makefile.in: Regenerate.
622
623 2012-04-18 Pedro Alves <palves@redhat.com>
624
625 Reimport the update-copyright module from gnulib
626 (250b80067c1e1d8faa0c42fb572f721975b929c5).
627
628 * configure: Regenerate.
629 * gnulib/Makefile.am: Update.
630 * gnulib/Makefile.in: Regenerate.
631 * gnulib/extra/update-copyright: Update.
632 * gnulib/m4/gnulib-cache.m4: Update.
633 * gnulib/m4/gnulib-comp.m4: Update.
634
635 2012-04-18 Tristan Gingold <gingold@adacore.com>
636
637 * configure.ac (aix): Put -lpthread into libs.
638 * configure: Regenerate.
639
640 2012-04-18 Tom Tromey <tromey@redhat.com>
641
642 * linespec.c (convert_linespec_to_sals): Don't use
643 SYMBOL_OBJ_SECTION.
644 (compare_msymbols): Arguments are minsym_and_objfile, not
645 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
646
647 2012-04-18 Pedro Alves <palves@redhat.com>
648
649 Revert gnulib/ part of:
650 2011-01-01 Joel Brobecker <brobecker@adacore.com>
651 Copyright year update in most files (performed by copyright.sh).
652
653 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
654
655 Fix 64-bit constants on 32-bit hosts.
656 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
657 from unsigned long to ULONGEST.
658 (read_signed_leb128): Change declaration return type from long to
659 LONGEST.
660 (dwarf2_const_value_attr): Change declaration parameter value from long
661 to LONGEST.
662 (dwarf2_compute_name): Change variable value from long to LONGEST.
663 (read_unsigned_leb128): Change return type, variable result and some
664 casts from unsigned long to ULONGEST.
665 (read_signed_leb128): Change return type, variable result and some
666 casts from long to LONGEST.
667 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
668 value from long to LONGEST.
669 (dwarf2_const_value): Change variable value from long to LONGEST.
670 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
671 plongest and hex_string.
672 * symtab.h (struct general_symbol_info): Change ivalue from long to
673 LONGEST, remove the comment.
674 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
675 Change SYMBOL_VALUE format strings to use plongest and hex_string.
676
677 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
678
679 PR symtab/7259:
680 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
681 * ada-lang.c (ada_discrete_type_high_bound)
682 (ada_discrete_type_low_bound): Fix function comment. Use
683 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
684 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
685 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
686 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
687 Use TYPE_FIELD_ENUMVAL.
688 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
689 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
690 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
691 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
692 TYPE_CODE_ENUM.
693 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
694 * dwarf2read.c (process_enumeration_scope): Likewise.
695 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
696 field.bitpos.
697 (class StructMainTypePrettyPrinter): Support also
698 FIELD_LOC_KIND_ENUMVAL.
699 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
700 TYPE_CODE_ENUM.
701 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
702 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
703 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
704 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
705 field enumval.
706 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
707 accommodate enumval.
708 (struct call_site): Adjust loc_kind to accommodate enumval.
709 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
710 (TYPE_FIELD_ENUMVAL): New macros.
711 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
712 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
713 TYPE_CODE_ENUM.
714 * p-typeprint.c (pascal_type_print_base): Likewise.
715 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
716 enumval.
717 * python/lib/gdb/types.py (make_enum_dict): Likewise.
718 * python/py-type.c (convert_field): New variable addrstring. Use
719 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
720 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
721 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
722 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
723 TYPE_CODE_ENUM.
724 * valprint.c (generic_val_print): Likewise.
725
726 2012-04-17 Doug Evans <dje@google.com>
727
728 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
729
730 * dwarf2read.c: Whitespace fixes.
731 (lookup_signatured_type): Tweak comment.
732 (get_die_type_at_offset): Fix comment.
733
734 2012-04-17 Joel Brobecker <brobecker@adacore.com>
735
736 * xcoffread.c (xcoff_secnum_to_sections): New function.
737 (secnum_to_section, secnum_to_bfd_section): Reimplement
738 using xcoff_secnum_to_sections. Rename "secnum" parameter
739 into "n_scnum".
740 (RECORD_MINIMAL_SYMBOL): Delete.
741 (record_minimal_symbol): New function.
742 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
743 by call to record_minimal_symbol and set misc_func_recorded
744 to 1. Set last_csect_sec to the XCOFF section index instead
745 of GDB's section_offset index. Update calls to
746 prim_record_minimal_symbol_and_info to pass the BFD section
747 as well.
748
749 2012-04-17 Joel Brobecker <brobecker@adacore.com>
750
751 * xcoffread.c (read_xcoff_symtab): Delete variables
752 last_csect_val and last_csect_sec and associated code.
753
754 2012-04-17 Doug Evans <dje@google.com>
755
756 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
757 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
758 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
759 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
760
761 * cleanups.h: New file.
762 * cleanups.c: New file.
763 * Makefile.in (SFILES): Add cleanups.c.
764 (HFILES_NO_SRCDIR): Add cleanups.h.
765 (COMMON_OBS): Add cleanups.o.
766 * defs.h (struct cleanup): Moved to cleanups.h.
767 (do_cleanups,do_final_cleanups): Ditto.
768 (discard_cleanups,discard_final_cleanups): Ditto
769 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
770 (save_cleanups,save_final_cleanups): Ditto.
771 (restore_cleanups,restore_final_cleanups): Ditto.
772 (null_cleanup): Ditto.
773 (make_my_cleanup,make_my_cleanup2): Ditto.
774 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
775 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
776 (do_cleanups,do_final_cleanups): Ditto.
777 (discard_cleanups,discard_final_cleanups): Ditto
778 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
779 (save_cleanups,save_final_cleanups): Ditto.
780 (restore_cleanups,restore_final_cleanups): Ditto.
781 (null_cleanup): Ditto.
782 (make_my_cleanup,make_my_cleanup2): Ditto.
783 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
784
785 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
786 make_my_cleanup.
787 (make_cleanup_dyn_string_delete): Ditto.
788 (make_cleanup_ui_file_delete): Ditto.
789 (make_cleanup_ui_out_redirect_pop): Ditto.
790 (make_cleanup_free_section_addr_info): Ditto.
791 (make_cleanup_restore_integer): Ditto.
792 (make_cleanup_unpush_target): Ditto.
793 (make_cleanup_value_free_to_mark): Ditto.
794 (make_cleanup_value_free): Ditto.
795 (make_cleanup_free_so): Ditto.
796
797 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
798
799 New option "set debug auto-load".
800 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
801 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
802 (auto_load_safe_path_vec_update)
803 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
804 if DEBUG_AUTO_LOAD.
805 (file_is_auto_load_safe): New parameters debug_fmt and ....
806 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
807 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
808 caller by explanatory string.
809 (_initialize_auto_load): Register "set debug auto-load".
810 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
811 and ....
812 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
813 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
814 by explanatory string.
815 * main.c (captured_main): Likewise.
816 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
817 (source_section_scripts): Likewise.
818
819 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
820
821 New option "set auto-load safe-path".
822 * NEWS: New commands "set auto-load safe-path"
823 and "show auto-load safe-path".
824 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
825 (auto_load_safe_path, auto_load_safe_path_vec)
826 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
827 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
828 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
829 (source_gdb_script_for_objfile): New variable is_safe. Call
830 file_is_auto_load_safe. Return if it is not.
831 (struct loaded_script): New field loaded.
832 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
833 (print_script): Use LOADED indicator instead of FULL_PATH. Change
834 output "Missing" to "No".
835 (_initialize_auto_load): New variable cmd. Initialize
836 auto_load_safe_path. Register "set auto-load safe-path",
837 "show auto-load safe-path" and "add-auto-load-safe-path".
838 * auto-load.h (maybe_add_script): Add parameter loaded.
839 (file_is_auto_load_safe): New declaration.
840 * config.in: Regenerate.
841 * configure: Regenerate.
842 * configure.ac: New parameters --with-auto-load-safe-path
843 and --without-auto-load-safe-path.
844 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
845 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
846 * main.c (captured_main): Check file_is_auto_load_safe for
847 LOCAL_GDBINIT.
848 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
849 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
850 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
851 not.
852
853 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
854
855 auto-load: Implementation.
856 * NEWS: New descriptions for "info auto-load",
857 "info auto-load gdb-scripts", "info auto-load python-scripts",
858 "info auto-load local-gdbinit" and "info auto-load libthread-db".
859 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
860 and "show auto-load-scripts". New description for "set auto-load",
861 "show auto-load", "set auto-load gdb-scripts",
862 "show auto-load gdb-scripts", "set auto-load python-scripts",
863 "show auto-load python-scripts", "set auto-load local-gdbinit",
864 "show auto-load local-gdbinit", "set auto-load libthread-db" and
865 "show auto-load libthread-db".
866 * auto-load.c: Remove include python/python-internal.h. Add includes
867 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
868 cli/cli-setshow.h.
869 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
870 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
871 (gdbpy_global_auto_load): Rename to ...
872 (global_auto_load): ... here.
873 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
874 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
875 (script_language_gdb, source_gdb_script_for_objfile): New.
876 (struct loaded_script): New field language.
877 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
878 LANGUAGE.
879 (maybe_add_script): Add parameter language. Drop redundant
880 entry.full_path initialization. Initialize entry.language and
881 (*slot)->language.
882 (auto_load_objfile_script): Change parameter suffix to language.
883 Remove the call of maybe_add_script.
884 Call language->source_script_for_objfile.
885 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
886 New.
887 (collect_matching_scripts): Adjust it for
888 struct collect_matching_scripts_data.
889 (auto_load_info_scripts_pattern_nl): New variable.
890 (info_auto_load_scripts): Rename to ...
891 (auto_load_info_scripts): ... here, add parameter language. Adjust it
892 for struct collect_matching_scripts_data.
893 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
894 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
895 (auto_load_show_cmdlist_get, info_auto_load_cmd)
896 (auto_load_info_cmdlist_get): New.
897 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
898 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
899 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
900 "info auto-load local-gdbinit".
901 * auto-load.h (struct script_language): New.
902 (gdbpy_global_auto_load): Rename to ...
903 (global_auto_load): ... here.
904 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
905 (auto_load_local_gdbinit_loaded): New declarations.
906 (maybe_add_script): New parameter language.
907 (auto_load_objfile_script): Change parameter suffix to language.
908 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
909 (auto_load_info_scripts, auto_load_set_cmdlist_get)
910 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
911 declarations.
912 * linux-thread-db.c: Include auto-load.h and ctype.h.
913 (auto_load_thread_db, show_auto_load_thread_db): New.
914 (struct thread_db_info): New field filename.
915 (delete_thread_db_info): Call xfree for FILENAME.
916 (try_thread_db_load): Initialize FILENAME.
917 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
918 if !AUTO_LOAD_THREAD_DB.
919 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
920 (_initialize_thread_db): Install auto_load_thread_db
921 as "set auto-load libthread-db" and install info_auto_load_libthread_db
922 as "info auto-load libthread-db".
923 * main.c (captured_main): Rename gdbpy_global_auto_load to
924 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
925 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
926 (print_gdb_help): Extend the help for 'local init file'.
927 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
928 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
929 (auto_load_scripts): Rename to ...
930 (auto_load_python_scripts): ... here, update the comment.
931 (gdbpy_load_auto_script_for_objfile): New declaration.
932 (show_auto_load_python_scripts, script_language_python)
933 (gdbpy_load_auto_script_for_objfile): New.
934 (source_section_scripts): Refactor the code.
935 (load_auto_scripts_for_objfile): Rename to ...
936 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
937 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
938 (info_auto_load_python_scripts): New.
939 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
940 Rename "set auto-load-scripts" to "set auto-load python-scripts".
941 Register "set auto-load-scripts" as its deprecated alias. Register
942 "info auto-load python-scripts". Register "info auto-load-scripts" as
943 its deprecated alias.
944 (load_auto_scripts_for_objfile): Rename to ...
945 (gdbpy_load_auto_scripts_for_objfile): ... here.
946 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
947 (gdbpy_load_auto_scripts_for_objfile): ... here.
948
949 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
950
951 auto-load: Move files.
952 * Makefile.in (SFILES): Add auto-load.c.
953 (HFILES_NO_SRCDIR): Add auto-load.h.
954 (COMMON_OBS): Add auto-load.o.
955 (distclean): Change .gdbinit for gdb-gdb.gdb.
956 * auto-load.c: New file, with parts from python/py-auto-load.c.
957 * auto-load.h: New file, with parts from python/python.h.
958 * configure: Regenerate.
959 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
960 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
961 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
962 * main.c: Include auto-load.h.
963 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
964 command.h, observer.h and progspace.h to auto-load.c. Add include
965 auto-load.h.
966 (gdbpy_global_auto_load, struct auto_load_pspace_info)
967 (struct loaded_script, auto_load_pspace_data)
968 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
969 (hash_loaded_script_entry, eq_loaded_script_entry)
970 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
971 (maybe_add_script): Move to auto-load.c.
972 (source_section_scripts): Change maybe_add_script parameters passing,
973 use script_not_found_warning_print.
974 (clear_section_scripts, auto_load_objfile_script)
975 (auto_load_new_objfile, loaded_script_ptr)
976 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
977 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
978 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
979 auto_load_new_objfile and info_auto_load_scripts initizations to
980 auto-load.c.
981 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
982
983 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
984
985 Code cleanup.
986 * charset.c (find_charset_names): Remove variables ix and elt.
987 Use free_char_ptr_vec.
988 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
989 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
990 debugdir_end. New variable debugdir_len.
991 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
992 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
993 declarations.
994 * progspace.c (clear_program_space_solib_cache): Remove variables ix
995 and elt. Use free_char_ptr_vec.
996 * source.c (add_path): Remove variables argv, arg and argv_index.
997 New variables dir_vec, back_to, ix and name.
998 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
999 make_cleanup_freeargv. Remove variable separator. Simplify the code
1000 no longer expecting DIRNAME_SEPARATOR.
1001 (openp): Remove variable p, p1 and len. New variables dir_vec,
1002 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
1003 no longer expecting DIRNAME_SEPARATOR.
1004 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
1005 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
1006 debugdir_end.
1007 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
1008 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
1009 (dirnames_to_char_ptr_vec): New functions.
1010
1011 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1012
1013 Code cleanup.
1014 * source.c (add_path): Remove always true conditional 'p == 0' and
1015 unindent its code block.
1016
1017 2012-04-17 Pedro Alves <palves@redhat.com>
1018
1019 * gdbtypes.h (FIELD_BITPOS): Rename to ...
1020 (FIELD_BITPOS_LVAL): ... this.
1021 (FIELD_BITPOS): New.
1022 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
1023 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
1024 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
1025 SET_FIELD_BITPOS.
1026 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
1027 SET_FIELD_BITPOS.
1028 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
1029 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
1030 * target-descriptions.c (tdesc_gdb_type): Adjust to use
1031 SET_FIELD_BITPOS.
1032
1033 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1034
1035 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
1036 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
1037 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
1038 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
1039 * jv-lang.c (java_link_class_type): Likewise, once.
1040 * stabsread.c (read_enum_type): Likewise.
1041
1042 2012-04-16 Yao Qi <yao@codesourcery.com>
1043
1044 * common/agent.c (agent_run_command): Add one more parameter `len'.
1045 Update callers.
1046 * common/agent.h: Update declaration.
1047 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
1048 Update.
1049 (linux_child_static_tracepoint_markers_by_strid): Ditto.
1050
1051 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
1052
1053 PR mi/13393
1054 * value.c (value_actual_type): New function.
1055 * value.h (value_actual_type): New declaration.
1056 * varobj.c (update_type_if_necessary): New function.
1057 (varobj_create): Call value_actual_type instead of
1058 value_type.
1059 (install_dynamic_child): distinct changed and type changed MI variable
1060 objects.
1061 (update_dynamic_varobj_children): Updated for install_dynamic_child
1062 change. All callers updated.
1063 (varobj_update): Support for MI variable object type change if
1064 the value changed and RTTI is used to determine the type.
1065 (create_child_with_value): Call value_actual_type instead of
1066 value_type.
1067 (adjust_value_for_child_access): Extended with a new parameter which
1068 specify whether the given value should be casted to enclosing type.
1069 All callers updated.
1070
1071 2012-04-14 Yao Qi <yao@codesourcery.com>
1072
1073 Import gnulib module inttypes from git
1074 (250b80067c1e1d8faa0c42fb572f721975b929c5)
1075 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
1076 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
1077 gnulib/m4/inttypes-pri.m4
1078 * aclocal.m4, config.in, configure: Regenerated.
1079 * gnulib/Makefile.am: Update.
1080 * gnulib/Makefile.in: Update.
1081 * gnulib/m4/gnulib-cache.m4: Update.
1082 * gnulib/m4/gnulib-comp.m4: Update.
1083 * gnulib/inttypes.in.h: New.
1084 * gnulib/m4/inttypes-pri.m4: New.
1085 * gnulib/m4/inttypes.m4: New.
1086
1087 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
1088
1089 * infrun.c (resume): Update PC address to the real PC after
1090 preparing to do displaced stepping.
1091
1092 2012-04-12 Doug Evans <dje@google.com>
1093
1094 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
1095 All callers updated.
1096
1097 2012-04-12 Mark Kettenis <kettenis@gnu.org>
1098
1099 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
1100
1101 2012-04-12 Doug Evans <dje@google.com>
1102
1103 * dwarf2read.c (create_all_type_units): Renamed from
1104 create_debug_types_hash_table. All callers updated.
1105
1106 * dwarf2read.c (create_signatured_type_table_from_index): Rename
1107 local type_sig to sig_type, type_offset to type_offset_in_tu.
1108 (hash_signatured_type): Renamed from hash_type_signature,
1109 all callers updated.
1110 (eq_signatured_type): Renamed from eq_type_signature,
1111 all callers updated.
1112 (create_debug_types_hash_table): Rename local type_sig to sig_type.
1113 (process_enumeration_scope): Ditto.
1114 (lookup_signatured_type_at_offset): Ditto.
1115 (load_full_type_unit, read_signatured_type): Ditto.
1116
1117 2012-04-12 Yao Qi <yao@codesourcery.com>
1118
1119 * remote.c (async_remote_interrupt): Correct function name in
1120 debug message.
1121 (async_remote_interrupt_twice): Ditto.
1122
1123 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
1124
1125 * source.c (find_and_open_source): Consistently pass resulting
1126 full path through xfullpath.
1127
1128 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1129
1130 Provide more specific displaced-stepping memory error message.
1131 * infrun.c (displaced_step_prepare): New variable status. Call
1132 target_read_memory instead of read_memory, provide more specific
1133 error message.
1134
1135 2012-04-11 Tristan Gingold <gingold@adacore.com>
1136
1137 PR gdb/13901
1138 * darwin-nat.c (darwin_execvp): Revert previous patch.
1139
1140 2012-04-11 Tristan Gingold <gingold@adacore.com>
1141
1142 PR gdb/13901
1143 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
1144 in case of change.
1145
1146 2012-04-11 Tristan Gingold <gingold@adacore.com>
1147
1148 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
1149 warning.
1150
1151 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
1152
1153 New command 'explore' which helps explore values and types in
1154 scope.
1155 * NEWS: Add an entry about the new 'explore' command.
1156 * data-directory/Makefile.in: Add gdb/command/explore.py
1157 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
1158 command using the GDB Python API.
1159
1160 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
1161
1162 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
1163 extension in jump target calculation.
1164
1165 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
1166
1167 * mips-tdep.c (mips32_next_pc): Handle JALX.
1168
1169 2012-04-10 Yao Qi <yao@codesourcery.com>
1170
1171 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
1172
1173 2012-04-10 Yao Qi <yao@codesourcery.com>
1174
1175 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
1176 and gnulib/m4/gnulib-tool.m4.
1177
1178 2012-04-10 Doug Evans <dje@google.com>
1179
1180 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
1181 (load_partial_dies): Clarify comment.
1182 (find_partial_die): Support rereading type units.
1183 Clarify CU handling, if we know offset is in CU, don't search for the
1184 containing CU. Add comment regarding memory waste.
1185
1186 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
1187
1188 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
1189 i386/x32-avx and i386/x32-avx-linux.
1190 (i386/x32-expedite): New.
1191 (i386/x32-linux-expedite): Likewise.
1192 (i386/x32-avx-expedite): Likewise.
1193 (i386/x32-avx-linux-expedite): Likewise.
1194 ($(outdir)/i386/x32.dat): Likewise.
1195 ($(outdir)/i386/x32-linux.dat): Likewise.
1196 ($(outdir)/i386/x32-avx.dat): Likewise.
1197 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
1198
1199 * features/i386/x32-avx-linux.xml: New file.
1200 * features/i386/x32-avx.xml: Likewise.
1201 * features/i386/x32-core.xml: Likewise.
1202 * features/i386/x32-linux.xml: Likewise.
1203 * features/i386/x32.xml: Likewise.
1204
1205 * features/i386/x32-avx-linux.c: New. Generated.
1206 * features/i386/x32-avx.c: Likewise.
1207 * features/i386/x32-linux.c: Likewise.
1208 * features/i386/x32.c: Likewise.
1209 * regformats/i386/x32-avx-linux.dat: Likewise.
1210 * regformats/i386/x32-avx.dat: Likewise.
1211 * regformats/i386/x32-linux.dat: Likewise.
1212 * regformats/i386/x32.dat: Likewise.
1213
1214 2012-04-10 Tristan Gingold <gingold@adacore.com>
1215
1216 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
1217 code to kill the inferior.
1218
1219 2012-04-09 Mark Kettenis <kettenis@gnu.org>
1220
1221 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1222 defines.
1223 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1224 defines.
1225 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
1226 (yyvsp): New defines.
1227 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1228 defines.
1229 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1230 defines.
1231 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1232 defines.
1233 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1234 defines.
1235 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
1236 defines.
1237
1238 2012-04-09 Mark Kettenis <kettenis@gnu.org>
1239
1240 * sparc64-tdep.c (sparc64_store_arguments)
1241 (sparc64_store_arguments): Fix coding style.
1242
1243 2012-04-07 Mark Kettenis <kettenis@gnu.org>
1244
1245 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
1246 complex floats, adjust some related comments and tighten a related
1247 assertion.
1248 (sparc64_extract_return_value): Handle complex floats.
1249
1250 2012-04-07 Doug Evans <dje@google.com>
1251
1252 * dwarf2read.c (load_partial_dies): Change condition to assert.
1253
1254 2012-04-06 Doug Evans <dje@google.com>
1255
1256 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
1257 "mov %rsp,%rbp".
1258
1259 2012-04-05 Kevin Buettner <kevinb@redhat.com>
1260
1261 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
1262 fencepost error.
1263 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
1264 (v850_gdbarch_init): Set `num_regs' as appropriate for the
1265 architecture.
1266
1267 2012-04-05 Keith Seitz <keiths@redhat.com>
1268
1269 * linespec.c (decode_compound): Remove.
1270 (enum offset_relative_sign): New enum.
1271 (struct line_offset): New struct.
1272 (struct linespec): New struct.
1273 (struct linespec_state): Move file_symtabs,
1274 user_filename, and user_function into struct linespec.
1275 Make result an anonymous struct holding vectors of
1276 symbolp and minsym_and_objfile_d.
1277 Add language member.
1278 (enum ls_token_type): New enum.
1279 (linespec_keywords): New array.
1280 (struct ls_token): New struct.
1281 (struct ls_parser): New struct.
1282 (linespec_lexer_lex_number): New function.
1283 (linespec_lexer_lex_keyword): New function.
1284 (is_ada_operator): New function.
1285 (skip_quote_char): New function.
1286 (copy_token_string): New function.
1287 (is_closing_quote_enclosed): New function.
1288 (find_parameter_list_end): New function.
1289 (linespec_lexer_lex_string): New function.
1290 (linespec_lexer_lex_one): New function.
1291 (linespec_lexer_consume_token): New function.
1292 (linespec_lexer_peek_token): New function.
1293 (cplusplus_error): Remove unused function.
1294 (find_methods): Update comment.
1295 (find_toplevel_char): Return const.
1296 (is_objc_method_format): Remove unused function.
1297 (find_toplevel_string): New function.
1298 (is_linespec_boundary): Remove.
1299 (symbol_not_found_error): New function.
1300 (find_method_overload_end): Remove function.
1301 (unexpected_linespec_error): New function.
1302 (keep_name_info): Remove.
1303 (linespec_parse_line_offset): New function.
1304 (linespec_parse_basic): New function.
1305 (canonicalize_linespec): New function.
1306 (decode_line_internal): Remove.
1307 (create_sals_line_offset): New function adapted from
1308 decode_all_digits.
1309 (convert_linespec_to_sals): New function.
1310 (parse_linespec): New function.
1311 (linespec_parser_new): New function.
1312 (linespec_state_destructor): Change parameter type to
1313 struct linespec_state *.
1314 Add language parameter.
1315 Remove freeing of moved members.
1316 (linespec_parser_delete): New function.
1317 (decode_line_full): Use parse_linespec and linespec_parser_new.
1318 (decode_line_1): Likewise.
1319 (decode_indirect): Rename to ...
1320 (linespec_expression_to_pc): ... this and rewrite
1321 to simply find CORE_ADDR, storing this result for later
1322 conversion to SALs.
1323 (locate_first_half): Remove.
1324 (deocde_objc): Add parameter LS.
1325 Initialize new struct collect_info members.
1326 Handle minimal symbols, too.
1327 (decode_compound): Delete.
1328 (lookup_prefix_sym): Rewrite.
1329 (compare_msymbols): New function.
1330 (find_method): Rewrite.
1331 Do not call cplusplus_error.
1332 (symtabs_from_filename): Rewrite.
1333 (collect_function_symbols): Delete.
1334 (find_function_symbols): Rewrite without ARGPTR-style
1335 processing.
1336 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
1337 (decode_dollar): Adapted and renamed to ...
1338 (linespec_parse_variable): ... this.
1339 (find_linespec_symbols): New function.
1340 (decode_label): Adapted and renamed to ...
1341 (find_label_symbols): ... this.
1342 (decode_digits_list_mode): Add and use LS argument.
1343 (decode_digits_ordinary): Likewise.
1344 (collect_symbols): Do not collect SALs, just symbols and msymbols.
1345 If in list mode, allow any symbol class. Otherwise, only
1346 permit LOC_BLOCK symbols.
1347 (minsym_found): Update comments.
1348 (search_minsyms_for_name): Do not convert the matching symbol
1349 into a SAL. Simply push the symbol and objfile into the
1350 result vector.
1351 (decode_variable): Delete. Contents adapted into
1352 find_linespec_symbols.
1353
1354 * cp-support.c (SKIP_SPACE): Remove.
1355 (operator_tokens): Remove unused global.
1356 (cp_validate_operator): Remove.
1357 * cp-support.h (cp_validate_operator): Remove declaration.
1358
1359 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1360
1361 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
1362 for TYPE_VPTR_FIELDNO.
1363 * valprint.c (valprint_check_validity): Make it global, move the
1364 function comment ...
1365 * value.h (valprint_check_validity): ... to this new declaration.
1366
1367 2012-04-02 Tristan Gingold <gingold@adacore.com>
1368
1369 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
1370 the STATE32 api for i386 state.
1371 (i386_darwin_store_inferior_registers): Likewise.
1372
1373 2012-04-02 Tristan Gingold <gingold@adacore.com>
1374
1375 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
1376 SS offset.
1377 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
1378 format_string.
1379
1380 2012-04-02 Tristan Gingold <gingold@adacore.com>
1381
1382 PR gdb/13901
1383 * darwin-nat.c (darwin_execvp): Set binary preference.
1384
1385 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1386
1387 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
1388
1389 2012-03-30 Tom Tromey <tromey@redhat.com>
1390
1391 * python/python.c (gdbpy_decode_line): Move cleanup creation out
1392 of TRY_CATCH. Fix error handling.
1393 * python/py-value.c (convert_value_from_python): Move 'old'
1394 declaration to innermost scope.
1395
1396 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1397 Andrey Smirnov <andrew.smirnov@gmail.com>
1398
1399 -Wshadow warning fix.
1400 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
1401 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
1402 Adjust code accordingly.
1403
1404 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1405
1406 * ada-lang.c (symbol_completion_add): Rename parameter
1407 "encoded" into "encoded_p". Ajust code and documentation
1408 accordingly.
1409
1410 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1411 Andrey Smirnov <andrew.smirnov@gmail.com>
1412
1413 -Wshadow warning fix.
1414 * ada-lang.c (symbol_completion_add): Rename parameter
1415 "wild_match" into wild_match_p. Update code and documentation
1416 accordingly.
1417
1418 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1419
1420 * ada-lang.c (symbol_completion_match): Rename parameter
1421 "encoded" into "encoded_p". Ajust code and documentation
1422 accordingly.
1423
1424 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1425 Andrey Smirnov <andrew.smirnov@gmail.com>
1426
1427 -Wshadow warning fix.
1428 * ada-lang.c (symbol_completion_match): Rename parameter
1429 "wild_match" into "wild_match_p". Adjust code and function
1430 documentation accordingly.
1431
1432 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1433 Andrey Smirnov <andrew.smirnov@gmail.com>
1434
1435 -Wshadow warning fix.
1436 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
1437 "symbol_info" into "info". Adjust code accordingly.
1438 (ada_lookup_symbol): Likewise.
1439
1440 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1441
1442 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
1443 of this function's documentation.
1444
1445 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1446 Andrey Smirnov <andrew.smirnov@gmail.com>
1447
1448 -Wshadow warning fix.
1449 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
1450 variable into "wild_match_p". Adjust code accordingly.
1451
1452 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1453 Andrey Smirnov <andrew.smirnov@gmail.com>
1454
1455 -Wshadow warning fix.
1456 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
1457 parameter into "wild_match_p". Adjust code accordingly.
1458 Document this parameter in the function description.
1459
1460 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1461 Andrey Smirnov <andrew.smirnov@gmail.com>
1462
1463 -Wshadow warning fix.
1464 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
1465 "wild_match" parameter to "wild_match_p" (-Wshadow).
1466
1467 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1468
1469 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
1470 in function documentation.
1471
1472 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1473 Andrey Smirnov <andrew.smirnov@gmail.com>
1474
1475 -Wshadow warning fix.
1476 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
1477 variable into wild_match_p. Adjust code accordingly.
1478
1479 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1480 Andrey Smirnov <andrew.smirnov@gmail.com>
1481
1482 * ada-valprint.c (ada_val_print_1): Move the code handling
1483 TYPE_CODE_ENUM inside its own lexical block. Declare
1484 variables len and val there, instead of in the function's
1485 top level block. Avoid declaring deref_val again in a way
1486 that shadows another variable of the same name declared
1487 in one of the up-level blocks. Just re-use the up-level
1488 variable instead.
1489
1490 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1491
1492 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
1493 Replace block_found argument by symbol_info. Adjust
1494 implementation accordingly. Add function documentation.
1495 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
1496 Fix documentation.
1497 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
1498 * ada-exp.y (write_object_renaming): Adjust to new
1499 ada_lookup_encoded_symbol API.
1500
1501 2012-03-29 Joel Brobecker <brobecker@adacore.com>
1502
1503 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
1504 documentation.
1505
1506 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
1507
1508 * v850-tdep.c: Add the enum values for mpu and fpu registers.
1509 (v850_register_name): Add the mpu and fpu register names.
1510 (v850e_register_name): Add the mpu and fpu register names.
1511 (v850e2_register_name): New function.
1512 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
1513 bfd_mach_v850e2v3.
1514
1515 2012-03-28 Joel Brobecker <brobecker@adacore.com>
1516
1517 * NEWS: Add entry for Ada varobj support.
1518
1519 2012-03-28 Joel Brobecker <brobecker@adacore.com>
1520
1521 * varobj.c (default_value_is_changeable_p): New function,
1522 extracted from varobj_value_is_changeable_p. Add declaration.
1523 (ada_value_is_changeable_p): New function, extracted from
1524 varobj_value_is_changeable_p. Add declaration.
1525 (struct language_specific): New field "value_is_changeable_p".
1526 (languages): Add entries for new field.
1527 (varobj_create): Set language before calling install_new_value.
1528 (varobj_value_is_changeable_p): Reimplement to call the varobj's
1529 "value_is_changeable_p" language callback.
1530
1531 2012-03-28 Joel Brobecker <brobecker@adacore.com>
1532
1533 * ada-varobj.h, ada-varobj.c: New files.
1534 * Makefile.in (SFILES): Add ada-varobj.c.
1535 (HFILES_NO_SRCDIR): Add ada-varobj.h.
1536 (COMMON_OBS): Add ada-varobj.o.
1537
1538 2012-03-28 Joel Brobecker <brobecker@adacore.com>
1539
1540 * varobj.c (ada_value_has_mutated): Add declaration. New function.
1541 (struct language_specific): New field "value_has_mutated".
1542 (languages): Set field "value_has_mutated" in each entry of array.
1543 (varobj_value_has_mutated): New function.
1544 (varobj_udpdate): Add handling of type mutation.
1545 (value_of_root): Add handling of type mutation.
1546 (ada_value_has_mutated): New function.
1547
1548 2012-03-28 Pedro Alves <palves@redhat.com>
1549
1550 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
1551 Always supply $fr0 as 0.0 and $fr1 as 1.0.
1552
1553 2012-03-28 Tom Tromey <tromey@redhat.com>
1554
1555 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
1556 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
1557 before returning.
1558
1559 2012-03-28 Tom Tromey <tromey@redhat.com>
1560
1561 * .dir-locals.el: New file.
1562
1563 2012-03-28 Pedro Alves <palves@redhat.com>
1564
1565 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
1566
1567 2012-03-28 Joel Brobecker <brobecker@adacore.com>
1568
1569 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
1570 handling for r0.
1571
1572 2012-03-27 Pedro Alves <palves@redhat.com>
1573
1574 Eliminate struct ui_stream.
1575
1576 * ui-out.h (struct ui_stream): Delete.
1577 (ui_out_field_stream): Adjust prototype.
1578 (ui_out_stream_new, ui_out_stream_delete)
1579 (make_cleanup_ui_out_stream_delete): Delete declarations.
1580 * ui-out.c (ui_out_field_stream): Change prototype to take a
1581 ui_file instead of a ui_stream. Adjust.
1582 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
1583 (make_cleanup_ui_out_stream_delete): Delete.
1584 * breakpoint.c (print_breakpoint_location)
1585 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
1586 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
1587 * disasm.c (dump_insns): Ditto.
1588 (do_mixed_source_and_assembly, do_assembly_only): Adjust
1589 prototype.
1590 (gdb_disassembly): Use ui_file/mem_fileopen instead of
1591 ui_stream/ui_out_stream_new.
1592 * infcmd.c (print_return_value): Ditto.
1593 * osdata.c (info_osdata_command): Don't allocate a local
1594 ui_stream.
1595 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
1596 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
1597 * tracepoint.c (print_one_static_tracepoint_marker): Don't
1598 allocate a local ui_stream.
1599 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
1600 instead of ui_stream/ui_out_stream_new.
1601 (list_args_or_locals): Don't allocate a local ui_stream.
1602 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
1603 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
1604 ui_stream/ui_out_stream_new.
1605 * cli/cli-setshow.c (do_setshow_command): Ditto.
1606
1607 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
1608
1609 * arm-linux-tdep.c (arm_linux_init_abi): Call
1610 set_gdbarch_process_record. Initialize `arm_swi_record' field.
1611 * arm-tdep.c (arm_process_record): New function.
1612 (deallocate_reg_mem): New function.
1613 (decode_insn): New function.
1614 (thumb_record_branch): New function.
1615 (thumb_record_ldm_stm_swi(): New function.
1616 (thumb_record_misc): New function.
1617 (thumb_record_ld_st_stack): New function.
1618 (thumb_record_ld_st_imm_offset): New function.
1619 (thumb_record_ld_st_reg_offset(): New function.
1620 (thumb_record_add_sub_cmp_mov): New function.
1621 (thumb_record_shift_add_sub): New function.
1622 (arm_record_coproc_data_proc): New function.
1623 (arm_record_coproc): New function.
1624 (arm_record_b_bl): New function.
1625 (arm_record_ld_st_multiple): New function.
1626 (arm_record_ld_st_reg_offset): New function.
1627 (arm_record_ld_st_imm_offset): New function.
1628 (arm_record_data_proc_imm): New function.
1629 (arm_record_data_proc_misc_ld_str): New function.
1630 (arm_record_extension_space): New function.
1631 (arm_record_strx): New function.
1632 (sbo_sbz): New function.
1633 (struct insn_decode_record): New structure for arm insn record.
1634 (REG_ALLOC): New macro for reg allocations.
1635 (MEM_ALLOC): New macro for memory allocations.
1636 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
1637
1638 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
1639
1640 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
1641 (store_register): Likewise.
1642
1643 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
1644
1645 * MAINTAINERS (Write After Approval): Add myself to the list.
1646
1647 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
1648
1649 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
1650 Describe also the option "auto".
1651
1652 2012-03-22 Richard Henderson <rth@redhat.com>
1653
1654 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
1655 * sparc-nat.c (sparc_xfer_wcookie): Make static.
1656
1657 2012-03-22 Richard Henderson <rth@redhat.com>
1658
1659 * jit.c (jit_read_code_entry): Compute alignment and offset of
1660 int64_t member before computing entry_size.
1661
1662 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
1663
1664 Python scripting: Add new method Value.referenced_value to
1665 gdb.Value which can dereference pointer as well as reference
1666 values.
1667 * NEWS: Add entry under 'Python scripting' about the new method
1668 Value.referenced_value on gdb.Value objects.
1669 * python/py-value.c (valpy_referenced_value): New function
1670 defining a new method on gdb.Value objects which can dereference
1671 pointer and reference values.
1672
1673 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
1674
1675 * MAINTAINERS (Write After Approval): Add myself to the list.
1676
1677 2012-03-21 Kevin Buettner <kevinb@redhat.com>
1678
1679 * symtab.c (skip_prologue_sal): Change test to check for "main()"
1680 in addition to "main".
1681
1682 2012-03-21 Joel Brobecker <brobecker@adacore.com>
1683
1684 * expression.h (op_name): Add declaration.
1685 * expprint.c (op_name): Remove declaration. Make non-static.
1686 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
1687
1688 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
1689
1690 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
1691 of struct siginfo.
1692 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
1693 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
1694 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
1695 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
1696 (linux_nat_get_siginfo): Likewise.
1697 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
1698 (linux_nat_get_siginfo): Likewise.
1699 * linux-tdep.c (linux_get_siginfo_type): Likewise.
1700 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
1701 * procfs.c (gdb_siginfo_t): Likewise.
1702
1703 2012-03-21 Mike Frysinger <vapier@gentoo.org>
1704
1705 * .gitignore: Ignore more files.
1706
1707 2012-03-20 Pedro Alves <palves@redhat.com>
1708
1709 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
1710 returns.
1711
1712 2012-03-20 Yao Qi <yao@codesourcery.com>
1713
1714 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
1715 comment.
1716
1717 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1718
1719 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
1720 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
1721 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
1722 sect_offset.
1723 * dwarf2expr.h (cu_offset, sect_offset): New types.
1724 (struct dwarf_expr_context_funcs) <dwarf_call>
1725 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
1726 sect_offset.
1727 (struct dwarf_expr_context) <len>: Improve the comment.
1728 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
1729 cu_offset and sect_offset.
1730 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
1731 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
1732 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
1733 * dwarf2loc.h: Include dwarf2expr.h.
1734 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
1735 and sect_offset.
1736 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
1737 Improve the comment.
1738 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
1739 (struct signatured_type, struct line_header, struct partial_die_info)
1740 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
1741 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
1742 (get_die_type_at_offset, create_cus_from_index)
1743 (create_signatured_type_table_from_index, dw2_get_file_names)
1744 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
1745 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
1746 (create_debug_types_hash_table, process_psymtab_comp_unit)
1747 (load_partial_comp_unit, create_all_comp_units)
1748 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
1749 (load_full_comp_unit, dwarf2_physname, read_import_statement)
1750 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
1751 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
1752 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
1753 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
1754 (find_partial_die, read_attribute_value, lookup_die_type)
1755 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
1756 (is_ref_attr): New function comment.
1757 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
1758 Use cu_offset and sect_offset.
1759 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
1760 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
1761 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
1762 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
1763 (offset_and_type_hash, offset_and_type_eq, set_die_type)
1764 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
1765 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
1766 sect_offset.
1767
1768 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1769
1770 Code cleanup.
1771 * python/py-auto-load.c (source_section_scripts): New variable back_to.
1772 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
1773 with xfree.
1774 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
1775
1776 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1777
1778 * NEWS: Describe new options --init-command=FILE, -ix and
1779 --init-eval-command=COMMAND, -iex.
1780 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
1781 CMDARG_INIT_COMMAND.
1782 (captured_main): New enum items OPT_IX and OPT_IEX. Add
1783 "init-command", "init-eval-command", "ix" and "iex" to the variable
1784 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
1785 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
1786 (print_gdb_help): Describe --init-command=FILE, -ix and
1787 --init-eval-command=COMMAND, -iex.
1788
1789 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
1790
1791 Code cleanup.
1792 * main.c (struct cmdarg): Move it here from main. Add more comments.
1793 (cmdarg_s, VEC (cmdarg_s)): New.
1794 (main): Move struct cmdarg from here. New variables cmdarg_vec and
1795 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
1796 Install cleanup for cmdarg_vec. Update filling for options 'x' and
1797 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
1798 of CMDARG.
1799
1800 2012-03-19 Tom Tromey <tromey@redhat.com>
1801
1802 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
1803
1804 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1805
1806 PR symtab/13777
1807 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
1808 GCC >=4.5.
1809
1810 2012-03-16 Chris January <chris.january@allinea.com>
1811
1812 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
1813 of clear.
1814
1815 2012-03-16 Chris January <chris.january@allinea.com>
1816
1817 * source.c (add_path): Use memmove instead of strcpy because the
1818 strings overlap.
1819
1820 2012-03-16 Joel Brobecker <brobecker@adacore.com>
1821
1822 * value.h (set_value_parent): Add declaration.
1823 * value.c (set_value_parent): New function.
1824 (value_address): If VALUE->PARENT is not NULL, then use it as
1825 the base address instead of VALUE->LOCATION.address.
1826 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
1827 the same as OBJ's address. Adjust V's offset accordingly.
1828 Set V's parent.
1829
1830 2012-03-16 Gary Benson <gbenson@redhat.com>
1831
1832 PR breakpoints/10738
1833 * dwarf2read.c (use_deprecated_index_sections): New global.
1834 (struct partial_die_info): New member may_be_inlined.
1835 (read_partial_die): Set may_be_inlined where appropriate.
1836 (add_partial_subprogram): Add partial symbols for partial
1837 DIEs that may be inlined.
1838 (new_symbol_full): Add inlined subroutines to the current
1839 scope.
1840 (write_psymtabs_to_index): Bump version number.
1841 (dwarf2_read_index): Read only version 6 indices unless
1842 use_deprecated_index_sections is set.
1843 * linespec.c (symbol_and_data_callback): New structure.
1844 (iterate_inline_only): New function.
1845 (iterate_over_all_matching_symtabs): New argument
1846 "include_inline". If nonzero, also call the callback for
1847 symbols representing inlined subroutines.
1848 (lookup_prefix_sym): Pass extra argument to the above.
1849 (find_function_symbols): Likewise.
1850 (add_matching_symbols_to_info): Likewise.
1851 * NEWS: Mention that GDB can now set breakpoints on inlined
1852 functions.
1853
1854 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1855
1856 * p-typeprint.c (pascal_type_print_method_args):
1857 Fix display of parameter of methods.
1858
1859 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
1860
1861 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
1862 Add missing prototype.
1863
1864 2012-03-16 Yao Qi <yao@codesourcery.com>
1865 Jan Kratochvil <jan.kratochvil@redhat.com>
1866
1867 Fix false compilation warning.
1868 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
1869
1870 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
1871 Pedro Alves <pedro@codesourcery.com>
1872
1873 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
1874 (arm_register_g_packet_guesses): New function.
1875 (arm_gdbarch_init): Don't force a target description with
1876 registers when the executable is detected as M-profile. Instead
1877 set gdbarch->tdep->is_m. Register `g' packet guesses.
1878 (_initialize_arm_tdep): Initialize the new target description.
1879 * features/arm-with-m-fpa-layout.xml: New description.
1880 * features/arm-with-m-fpa-layout.c: New, generated.
1881
1882 2012-03-15 Joel Brobecker <brobecker@adacore.com>
1883
1884 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
1885 Update function description.
1886 (insert_bp_location): Do not wipe bl->target_info out.
1887 * mem-break.c: #include "gdb_string.h".
1888 (default_memory_insert_breakpoint): Do not call target_read_memory
1889 with a pointer to the breakpoint's shadow_contents buffer. Use
1890 a local buffer instead.
1891 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
1892
1893 2012-03-15 Tom Tromey <tromey@redhat.com>
1894
1895 * NEWS: Mention "info vtbl", not "info vtable".
1896 * cp-support.c (info_vtbl_command): Fix comment.
1897 (_initialize_cp_support): Fix text.
1898
1899 2012-03-15 Tom Tromey <tromey@redhat.com>
1900
1901 * cp-valprint.c (cp_print_value_fields): Use
1902 print_function_pointer_address for vtable slot.
1903
1904 2012-03-15 Tom Tromey <tromey@redhat.com>
1905
1906 * gnu-v3-abi.c (struct value_and_voffset): New.
1907 (hash_value_and_voffset, eq_value_and_voffset)
1908 (compare_value_and_voffset, compute_vtable_size)
1909 (print_one_vtable, gnuv3_print_vtable): New functions.
1910 (init_gnuv3_ops): Initialize 'print_vtable' field.
1911 * cp-support.c (info_vtbl_command): New function.
1912 (_initialize_cp_support): Add "info vtbl".
1913 * cp-abi.h (cplus_print_vtable): Declare.
1914 (struct cp_abi_ops) <print_vtable>: New field.
1915 * cp-abi.c (cplus_print_vtable): New function.
1916 * NEWS: Update.
1917
1918 2012-03-15 Tom Tromey <tromey@redhat.com>
1919
1920 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
1921 iterate_over_symbols.
1922
1923 2012-03-14 Doug Evans <dje@google.com>
1924
1925 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
1926 DW_OP_GNU_parameter_ref.
1927
1928 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1929
1930 Fix double prompt of 'interpreter-exec mi'.
1931 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
1932 (mi_interpreter_resume): use it.
1933 (mi_execute_command_input_handler): New function.
1934 * mi/mi-main.c (mi_execute_command): Move prompt printing to
1935 mi_execute_command_input_handler.
1936
1937 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
1938
1939 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
1940 prototype.
1941 (darwin_debug_port_info): Make static.
1942 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
1943 * machoread.c (_initialize_machoread): Add prototype.
1944 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
1945 (i386_darwin_set_control, i386_darwin_get_control)
1946 i386_darwin_dr_set_addr, i386_darwin_get_addr)
1947 i386_darwin_get_status, i386_darwin_get_control):
1948 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
1949
1950 2012-03-13 Joel Brobecker <brobecker@adacore.com>
1951
1952 * ax-gdb.c (gen_usual_unary): Remove special handling of
1953 enum and bool types.
1954
1955 2012-03-13 Joel Brobecker <brobecker@adacore.com>
1956
1957 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
1958
1959 2012-03-13 Joel Brobecker <brobecker@adacore.com>
1960
1961 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
1962
1963 2012-03-13 Chris January <chris.january@allinea.com>
1964
1965 * aix-thread.c (fill_sprs): Store the floating point registers
1966 at the correct offsets into vals.
1967
1968 2012-03-13 Doug Evans <dje@google.com>
1969
1970 * NEWS: Mention symbol-reloading has been deleted.
1971 * symfile.c (symbol_reloading): Delete.
1972 (show_symbol_reloading): Delete.
1973 (_initialize_symfile): Delete set/show symbol-reloading.
1974
1975 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
1976 read_in_chain until we have successfully read it in.
1977 (load_full_comp_unit): Ditto.
1978 (read_signatured_type): Add comment.
1979
1980 2012-03-13 Chris January <chris.january@allinea.com>
1981
1982 * stabsread.c (fix_common_block): Change type of valu argument
1983 to CORE_ADDR.
1984
1985 2012-03-13 Chris January <chris.january@allinea.com>
1986
1987 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
1988 instruction.
1989
1990 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1991
1992 * common/linux-procfs.c (linux_proc_get_int): New, from
1993 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
1994 field.
1995 (linux_proc_get_tgid): Only call linux_proc_get_int.
1996 (linux_proc_get_tracerpid): New.
1997 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
1998 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
1999 linux_proc_pid_has_state.
2000 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
2001 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
2002 (linux_ptrace_attach_warnings): New.
2003 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
2004 New declaration.
2005 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
2006 (linux_nat_attach): New variables ex, buffer, message and message_s.
2007 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
2008
2009 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2010
2011 * Makefile.in (linux-ptrace.o): New.
2012 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
2013 from linux-nat.c.
2014 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
2015 * common/linux-ptrace.c: New file.
2016 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
2017 * config/arm/linux.mh: Likewise.
2018 * config/i386/linux.mh: Likewise.
2019 * config/i386/linux64.mh: Likewise.
2020 * config/ia64/linux.mh: Likewise.
2021 * config/m32r/linux.mh: Likewise.
2022 * config/m68k/linux.mh: Likewise.
2023 * config/mips/linux.mh: Likewise.
2024 * config/pa/linux.mh: Likewise.
2025 * config/powerpc/linux.mh: Likewise.
2026 * config/powerpc/ppc64-linux.mh: Likewise.
2027 * config/powerpc/spu-linux.mh: Likewise.
2028 * config/s390/s390.mh: Likewise.
2029 * config/sparc/linux.mh: Likewise.
2030 * config/sparc/linux64.mh: Likewise.
2031 * config/xtensa/linux.mh: Likewise.
2032 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
2033 common/linux-procfs.c.
2034 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
2035
2036 2012-03-13 Hui Zhu <teawater@gmail.com>
2037 Pedro Alves <palves@redhat.com>
2038
2039 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
2040 CREATE_BREAKPOINT_FLAGS_INSERTED.
2041 (create_breakpoint_sal, create_breakpoints_sal)
2042 (base_breakpoint_create_breakpoints_sal)
2043 (tracepoint_create_breakpoints_sal)
2044 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
2045 down.
2046 (break_command_1, handle_gnu_v3_exceptions, trace_command)
2047 (ftrace_command, strace_command): Adjust.
2048 (create_tracepoint_from_upload): Pass
2049 CREATE_BREAKPOINT_FLAGS_INSERTED.
2050 * breakpoint.h (enum breakpoint_create_flags): New.
2051 (create_breakpoint): New flags parameter.
2052 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
2053 * python/py-breakpoint.c (bppy_init): Adjust.
2054 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
2055 * spu-tdep.c (spu_catch_start): Adjust.
2056
2057 2012-03-13 Pedro Alves <palves@redhat.com>
2058 Hui Zhu <teawater@gmail.com>
2059 Yao Qi <yao@codesourcery.com>
2060
2061 * remote.c (struct remote_state): New field `starting_up'.
2062 (remote_start_remote): Set and clear it.
2063 (remote_can_download_tracepoint): If starting up, return false.
2064
2065 2012-03-13 Yao Qi <yao@codesourcery.com>
2066
2067 * inferior.h (struct inferior): Remove fields any_syscall_count,
2068 syscalls_counts and total_syscalls_count. Move them to new
2069 struct catch_syscall_inferior_data in breakpoint.c.
2070 * breakpoint.c: Call DEF_VEC_I(int).
2071 (struct catch_syscall_inferior_data): New.
2072 (get_catch_syscall_inferior_data): New.
2073 (catch_syscall_inferior_data_cleanup): New.
2074 (insert_catch_syscall): Update to access data in
2075 struct catch_syscall_inferior_data.
2076 (insert_catch_syscall): Likewise.
2077 (remove_catch_syscall): Likewise.
2078 (remove_catch_syscall): Likewise.
2079 (is_syscall_catchpoint_enabled): Likewise.
2080 (add_catch_command): Likewise.
2081 (_initialize_breakpoint): Register cleanup.
2082 * breakpoint.h: Removed DEF_VEC_I(int).
2083 * dwarf2loc.c: Call DEF_VEC_I(int).
2084 * mi/mi-main.c: Likewise.
2085
2086 2012-03-12 Mark Kettenis <kettenis@gnu.org>
2087
2088 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
2089
2090 2012-03-12 Chris January <chris.january@allinea.com>
2091
2092 * aix-thread.c (_initialize_aix_thread): Add prototype.
2093 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
2094 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
2095
2096 2012-03-12 Joel Brobecker <brobecker@adacore.com>
2097
2098 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
2099 include of "amd64-nat.h".
2100
2101 2012-03-12 Tom Tromey <tromey@redhat.com>
2102
2103 * buildsym.c (record_pending_block): Now static.
2104 * buildsym.h: (record_pending_block): Remove.
2105
2106 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
2107
2108 * amd64bsd-nat.c: Include amd64bsd-nat.h.
2109
2110 2012-03-09 Tom Tromey <tromey@redhat.com>
2111
2112 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
2113 producer_is_gxx_lt_4_6>: New fields.
2114 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
2115
2116 2012-03-09 Tom Tromey <tromey@redhat.com>
2117
2118 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
2119
2120 2012-03-08 Joel Brobecker <brobecker@adacore.com>
2121
2122 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
2123 prototype.
2124
2125 2012-03-08 Joel Brobecker <brobecker@adacore.com>
2126
2127 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
2128
2129 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2130
2131 Fix -Wmissing-prototypes build.
2132 * arm-linux-nat.c (get_thread_id): Make it static.
2133 * xtensa-linux-nat.c (get_thread_id): Likewise.
2134
2135 2012-03-08 Joel Brobecker <brobecker@adacore.com>
2136
2137 * server.c (process_point_options): If a conditional expression
2138 is found, only print a message if remote_debug is nonzero.
2139
2140 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
2141
2142 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
2143 of internal error for unknown/unsupported types.
2144
2145 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2146
2147 Fix CU relative vs. absolute DIE offsets.
2148 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
2149 offset to offset_in_cu.
2150 * dwarf2read.c (process_enumeration_scope): Add CU offset to
2151 TYPE_OFFSET.
2152 (dwarf2_fetch_die_location_block): Rename parameter offset to
2153 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
2154
2155 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2156
2157 * libunwind-frame.c: Rename to ...
2158 * ia64-libunwind-tdep.c: ... here.
2159 * libunwind-frame.h: Rename to ...
2160 * ia64-libunwind-tdep.h: ... here.
2161 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
2162 ia64-libunwind-tdep.h.
2163 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
2164 * README (--with-libunwind): Rename to ...
2165 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
2166 * config.in: Regenerate.
2167 * configure: Regenerate.
2168 * configure.ac: New option --with-libunwind-ia64, make the
2169 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
2170 Remove AC_DEFINE for HAVE_LIBUNWIND.
2171 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
2172 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
2173 Rename libunwind-frame in the general comment.
2174 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
2175 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
2176 Move forward declarations inside #ifndef. Rename libunwind-frame in
2177 the general comment.
2178 * ia64-tdep.c: Rename libunwind-frame.h #include to
2179 ia64-libunwind-tdep.h.
2180 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
2181 (ia64_libunwind_descr): Rename libunwind-frame to
2182 ia64-libunwind-tdep in these function comments.
2183 * ia64-tdep.h: Rename libunwind-frame.h #include to
2184 ia64-libunwind-tdep.h.
2185 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
2186 ia64-libunwind-tdep in that data comment.
2187
2188 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
2189
2190 * libunwind-frame.h (struct frame_unwind): New declaration.
2191
2192 2012-03-08 Joel Brobecker <brobecker@adacore.com>
2193
2194 * breakpoint.c (_initialize_breakpoint): Fix error in help of
2195 "set breakpoint condition-evaluation" command.
2196
2197 2012-03-08 Tristan Gingold <gingold@adacore.com>
2198
2199 * sparc-stub.c: Move to stubs/
2200 * sh-stub.c: Likewise.
2201 * m68k-stub.c: Likewise.
2202 * m32r-stub.c: Likewise.
2203 * i386-stub.c: Likewise.
2204
2205 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
2206
2207 * m68klinux-tdep.c (m68k_linux_init_abi): Register
2208 linux_get_siginfo_type.
2209
2210 * m68klinux-nat.c: Include "gdb_proc_service.h".
2211 (PTRACE_GET_THREAD_AREA): Define.
2212 (ps_get_thread_area): New function.
2213
2214 2012-03-08 Yao Qi <yao@codesourcery.com>
2215
2216 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
2217 `xsnprintf'.
2218 (remote_query_attached): Likewise.
2219 (remote_static_tracepoint_marker_at): Likewise.
2220 (remote_set_permissions): Likewise.
2221 (remote_detach_1, extended_remote_attach_1): Likewise.
2222 (send_g_packet, remote_vkill): Likewise.
2223 (extended_remote_disable_randomization): Likewise.
2224 (remote_add_target_side_condition): Likewise.
2225 (remote_insert_breakpoint): Likewise.
2226 (remote_remove_breakpoint): Likewise.
2227 (remote_insert_watchpoint): Likewise.
2228 (remote_remove_watchpoint): Likewise.
2229 (remote_insert_hw_breakpoint): Likewise.
2230 (remote_insert_hw_breakpoint): Likewise.
2231 (remote_remove_hw_breakpoint): Likewise.
2232 (remote_download_command_source): Likewise.
2233 (remote_download_tracepoint): Likewise.
2234 (remote_download_trace_state_variable): Likewise.
2235 (remote_disable_tracepoint): Likewise.
2236 (remote_trace_set_readonly_regions): Likewise.
2237 (remote_get_tracepoint_status): Likewise.
2238 (remote_trace_find): Likewise.
2239 (remote_get_trace_state_variable_value): Likewise.
2240 (remote_set_disconnected_tracing): Likewise.
2241 (remote_set_circular_trace_buffer): Likewise.
2242 (remote_get_min_fast_tracepoint_insn_len): Likewise.
2243 (remote_use_agent): Likewise.
2244 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
2245 Update callers.
2246
2247 2012-03-07 Pedro Alves <palves@redhat.com>
2248
2249 * NEWS: Mention QProgramSignals.
2250 * inferior.h (update_signals_program_target): Declare.
2251 * infrun.c: (update_signals_program_target): New.
2252 (handle_command): Update the target of the new program signals
2253 array changes.
2254 * remote.c (PACKET_QProgramSignals): New enum.
2255 (last_program_signals_packet): New global.
2256 (remote_program_signals): New.
2257 (remote_start_remote): Update the target with the program signals
2258 list.
2259 (remote_protocol_features): Add entry for QPassSignals.
2260 (remote_open_1): Free anc clear last_program_signals_packet.
2261 (init_remote_ops): Install remote_program_signals.
2262 * target.c (update_current_target): Adjust.
2263 (target_program_signals): New.
2264 * target.h (struct target_ops) <to_program_signals>: New field.
2265 (target_program_signals): Declare.
2266
2267 2012-03-07 Pedro Alves <palves@redhat.com>
2268
2269 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
2270 extensions.
2271
2272 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
2273
2274 * m68klinux-nat.c (getregs_supplies): Make static.
2275 (getfpregs_supplies): Likewise.
2276 (have_ptrace_getregs): Likewise.
2277
2278 2012-03-06 Joel Brobecker <brobecker@adacore.com>
2279
2280 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
2281 in call to get_die_type_at_offset.
2282
2283 2012-03-06 Stan Shebs <stan@codesourcery.com>
2284
2285 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
2286 * mi/mi-cmd-disas.c: Ditto.
2287 * mi/mi-cmd-env.c: Ditto.
2288 * mi/mi-cmd-file.c: Ditto.
2289 * mi/mi-cmd-stack.c: Ditto.
2290 * mi/mi-cmd-target.c: Ditto.
2291 * mi/mi-cmd-var.c: Ditto.
2292 * mi/mi-cmds.c: Ditto.
2293 * mi/mi-cmds.h: Ditto.
2294 * mi/mi-console.c: Ditto.
2295 * mi/mi-getopt.c: Ditto.
2296 * mi/mi-getopt.h: Ditto.
2297 * mi/mi-interp.c: Ditto.
2298 * mi/mi-main.c: Ditto.
2299 * mi/mi-out.c: Ditto.
2300 * mi/mi-parse.c: Ditto.
2301 * mi/mi-parse.h: Ditto.
2302 * mi/mi-symbol-cmds.c: Ditto.
2303
2304 * mi/mi-getopt.h: Move mi_opt struct up.
2305 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
2306 return.
2307 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
2308
2309 2012-03-06 Tom Tromey <tromey@redhat.com>
2310
2311 * proc-service.c (ps_pglobal_lookup): Set the current program
2312 space.
2313
2314 2012-03-06 Pedro Alves <palves@redhat.com>
2315
2316 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
2317
2318 2012-03-05 Joel Brobecker <brobecker@adacore.com>
2319
2320 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
2321
2322 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2323
2324 Code cleanup.
2325 * common/linux-osdata.c (linux_common_core_of_thread): New function
2326 comment.
2327 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
2328 call by linux_common_core_of_thread.
2329 (linux_nat_core_of_thread_1): Remove.
2330 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
2331 * linux-thread-db.c: Include linux-osdata.h.
2332 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
2333 linux_common_core_of_thread.
2334
2335 2012-03-05 Tom Tromey <tromey@redhat.com>
2336
2337 * value.c (value_primitive_field): Don't fetch contents for
2338 non-virtual bases.
2339
2340 2012-03-05 Tom Tromey <tromey@redhat.com>
2341
2342 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
2343
2344 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
2345
2346 * s390-nat.c: Include "gregset.h".
2347
2348 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2349
2350 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
2351 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
2352 (libunwind_load): New variable so_error, use it for dlerror. Try to
2353 load also LIBUNWIND_SO_7.
2354
2355 2012-03-05 Pedro Alves <palves@redhat.com>
2356
2357 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
2358 is not NULL, and remove resulting dead code.
2359
2360 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
2361
2362 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
2363 prologue to sh_analyze_prologue.
2364 (sh_analyze_prologue): Make better use of such an upper limit, and
2365 generally be more cautious about accessing memory.
2366
2367 2012-03-05 Tom Tromey <tromey@redhat.com>
2368
2369 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
2370 _initialize_ia64_hpux_tdep.
2371
2372 2012-03-05 Pedro Alves <palves@redhat.com>
2373
2374 PR gdb/13766
2375
2376 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
2377 the register state is clear, supply explicit zero, instead of
2378 marking the register unavailable.
2379
2380 2012-03-05 Tristan Gingold <gingold@adacore.com>
2381
2382 * NEWS: Mention OpenVMS ia64 new target.
2383
2384 2012-03-05 Tristan Gingold <gingold@adacore.com>
2385
2386 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
2387 (ia64_unw_accessors, ia64_unw_rse_accessors)
2388 (ia64_libunwind_descr): Declare.
2389 * ia64-vms-tdep.c: New file.
2390 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
2391 (ia64_libunwind_descr): Make them public.
2392 * configure.tgt: Add ia64-*-*vms*.
2393 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
2394 (ALLDEPFILES): Add ia64-vms-tdep.c
2395
2396 2012-03-05 Tristan Gingold <gingold@adacore.com>
2397
2398 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
2399 * remote.c (PACKET_qXfer_uib): New enum value.
2400 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
2401 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
2402 (_initialize_remote): Call add_packet_config_cmd for
2403 xfer:uib packet.
2404
2405 2012-03-05 Tristan Gingold <gingold@adacore.com>
2406
2407 * osabi.c (gdb_osabi_names): Add OpenVMS.
2408 (generic_elf_osabi_sniffer): Likewise.
2409 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
2410
2411 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2412
2413 Removed unused code.
2414 * libunwind-frame.c (libunwind_frame_unwind)
2415 (libunwind_frame_base_address): Remove.
2416 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
2417
2418 2012-03-04 Yao Qi <yao@codesourcery.com>
2419
2420 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
2421 remove trailing new line.
2422 (agent_run_command, agent_run_command): Add _ markup.
2423 (agent_capability_check): Likewise.
2424
2425 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
2426
2427 * breakpoint.c (set_condition_evaluation_mode): Set
2428 CONDITION_EVALUATION_MODE unconditionally.
2429
2430 2012-03-03 Yao Qi <yao@codesourcery.com>
2431
2432 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
2433 * common/agent.h: Update declaration.
2434 * inf-child.c (inf_child_use_agent): New.
2435 (inf_child_can_use_agent): New.
2436 (inf_child_target): Initialize fields `to_use_agent'
2437 and `to_can_use_agent'.
2438 * agent.c (agent_new_objfile): New.
2439 (_initialize_agent): Add agent_new_objfile to new_objfile
2440 observer.
2441
2442 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
2443 New.
2444 (linux_target_install_ops): Initialize field
2445 `to_static_tracepoint_markers_by_strid'.
2446 * remote.c (free_current_marker): Move it to ...
2447 * tracepoint.c (free_current_marker): ... here. New.
2448 (cleanup_target_stop): New.
2449 * tracepoint.h: Declare free_current_marker.
2450 * NEWS: Add one entry about `info static-tracepoint-marker'.
2451
2452 2012-03-03 Yao Qi <yao@codesourcery.com>
2453
2454 * common/agent.c (agent_loaded_p): New.
2455 (agent_look_up_symbols): New global.
2456 * common/agent.h: Declare agent_loaded_p.
2457
2458 2012-03-03 Yao Qi <yao@codesourcery.com>
2459
2460 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
2461 (agent_capability_check, agent_capability_invalidate): New.
2462 (symbol_list): New array element.
2463 * common/agent.h (enum agent_capa): New.
2464 * target.c (target_pre_inferior): Call agent_capability_invalidate.
2465
2466 2012-03-03 Yao Qi <yao@codesourcery.com>
2467
2468 * target.h (struct target_ops) <to_use_agent>: New field.
2469 (struct target_ops) <to_can_use_agent>: New field.
2470 (target_use_agent, target_can_use_agent): New macro.
2471 * target.c (update_current_target): Update.
2472 * remote.c: New enum `PACKET_QAgent'.
2473 (remote_protocol_features): Add a new element.
2474 (remote_use_agent, remote_can_use_agent): New.
2475 (init_remote_ops): Initialize field `can_use_agent' with
2476 remote_can_use_agent. Intiailize field `use_agent' with
2477 remote_use_agent.
2478 * common/agent.c (use_agent): New global.
2479 * common/agent.h: Declare it.
2480 * tracepoint.c (info_static_tracepoint_markers_command): Add
2481 comment.
2482 * Makefile.in (SFILES): Add common/agent.c and agent.c.
2483 (COMMON_OBS): Add common/agent.o and agent.o
2484 (common-agent.o): New rule.
2485 * agent.c: New.
2486
2487 2012-03-03 Yao Qi <yao@codesourcery.com>
2488
2489 * common/agent.c: New.
2490 * common/agent.h: New.
2491 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
2492 AC_CHECK_HEADERS.
2493 * configure, configh.in: Regenerated.
2494
2495 2012-03-02 Kevin Buettner <kevinb@redhat.com>
2496
2497 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
2498 unless it exists for this architecture.
2499
2500 2012-03-02 Joel Brobecker <brobecker@adacore.com>
2501
2502 * language.h (struct language_defn): New "method" la_read_var_value.
2503 * findvar.c: #include "language.h".
2504 (default_read_var_value): Renames read_var_value. Rewrite
2505 function description.
2506 (read_var_value): New function.
2507 * value.h (default_read_var_value): Add prototype.
2508 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
2509 New functions.
2510 (ada_language_defn): Add entry for la_read_var_value.
2511 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
2512 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
2513 language_defn structures to add entry for new la_read_var_value
2514 field.
2515
2516 2012-03-02 Tom Tromey <tromey@redhat.com>
2517 Pedro Alves <palves@redhat.com>
2518
2519 PR breakpoints/13776:
2520 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
2521 breakpoints.
2522 (delete_longjmp_breakpoint_at_next_stop): New.
2523 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
2524 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
2525 before deleting the inferior. Add comments.
2526 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
2527 breakpoints immediately, but only on next stop. Move that code
2528 next to where we mark other breakpoints for deletion.
2529
2530 2012-03-02 Joel Brobecker <brobecker@adacore.com>
2531
2532 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
2533 marker.
2534 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
2535 violation.
2536
2537 2012-03-02 Pedro Alves <palves@redhat.com>
2538
2539 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
2540
2541 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
2542
2543 Fix -Wmissing-prototypes build.
2544 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
2545 * remote-sim.c (gdbsim_has_all_memory): Likewise.
2546 (gdbsim_has_memory): Likewise.
2547
2548 2012-03-02 Yao Qi <yao@codesourcery.com>
2549
2550 Fix -Wmissing-prototypes build.
2551 * charset.c (phony_iconv_open): Make static.
2552 (phony_iconv_close, phony_iconv): Likewise.
2553 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
2554 * i386-windows-nat.c (_initialize_i386_windows_nat): New
2555 prototype.
2556 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
2557 * ser-mingw.c (create_select_thread): Make static.
2558 * windows-termcap.c (tgetent): New prototype.
2559 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
2560
2561 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
2562
2563 Fix -Wmissing-prototypes build.
2564 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
2565 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
2566 (_initialize_loadable): New prototypes.
2567
2568 2012-03-02 Doug Evans <dje@google.com>
2569
2570 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
2571 abbrev table, read_comp_unit will do it.
2572
2573 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2574
2575 Fix -Wmissing-prototypes build.
2576 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
2577 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
2578 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
2579 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
2580 (_initialize_arm_symbian_tdep): New prototype.
2581 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
2582 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
2583 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
2584 static.
2585 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
2586 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
2587 prototype.
2588 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
2589 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
2590 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
2591 static.
2592 * moxie-tdep.c (moxie_process_record): Likewise.
2593 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
2594 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
2595 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
2596 (_initialize_rl78_tdep): New prototype.
2597 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
2598 (_initialize_rx_tdep): New prototype.
2599 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
2600 (_initialize_darwin_solib): New prototype.
2601 * solib-spu.c: Include solib-spu.h.
2602 (_initialize_spu_solib): New prototype.
2603 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
2604 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
2605 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
2606 (tic6x_software_single_step): Make it static.
2607 (_initialize_tic6x_tdep): New prototype.
2608
2609 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2610
2611 Fix -Wmissing-prototypes build.
2612 * cris-tdep.c (cris_can_use_hardware_watchpoint)
2613 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
2614
2615 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2616
2617 Fix -Wmissing-prototypes build.
2618 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
2619 (frv_have_stopped_data_address): Remove.
2620
2621 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2622
2623 Fix -Wmissing-prototypes build.
2624 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
2625 * sh-tdep.c: Include sh64-tdep.h.
2626 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
2627 * sh64-tdep.c: Include sh64-tdep.h.
2628 * sh64-tdep.h: New file.
2629
2630 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
2631
2632 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
2633
2634 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
2635
2636 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
2637 sp_regnum once the gdbarch_init_osabi hook has been called.
2638
2639 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
2640
2641 * mips-tdep.c (mips32_bc1_pc): New function.
2642 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
2643 BPOSGE32 and BPOSGE64 instructions.
2644 (deal_with_atomic_sequence): Likewise.
2645 (mips32_instruction_has_delay_slot): Likewise.
2646
2647 2012-03-01 Maciej W. Rozycki <macro@mips.com>
2648 Chris Dearman <chris@mips.com>
2649 Maciej W. Rozycki <macro@codesourcery.com>
2650 Joseph Myers <joseph@codesourcery.com>
2651
2652 * features/mips-dsp.xml: New file.
2653 * features/mips64-dsp.xml: New file.
2654 * features/mips-dsp-linux.xml: New file.
2655 * features/mips64-dsp-linux.xml: New file.
2656 * features/Makefile (WHICH): Add mips-dsp-linux and
2657 mips64-dsp-linux.
2658 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
2659 * features/mips-dsp-linux.c: New file.
2660 * features/mips64-dsp-linux.c: New file.
2661 * regformats/mips-dsp-linux.dat: New file.
2662 * regformats/mips64-dsp-linux.dat: New file.
2663 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
2664 registers.
2665 (mips64_linux_register_addr): Likewise.
2666 (mips64_linux_regsets_fetch_registers): Likewise.
2667 (mips64_linux_regsets_store_registers): Likewise.
2668 (mips64_linux_fetch_registers): Update call to
2669 mips64_linux_regsets_fetch_registers.
2670 (mips64_linux_store_registers): Update call to
2671 mips64_linux_regsets_store_registers.
2672 (mips_linux_read_description): Probe for DSP registers.
2673 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
2674 and initialize_tdesc_mips64_dsp_linux.
2675 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
2676 Remove padding of no longer used embedded register slots.
2677 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
2678 (MIPS_RESTART_REGNUM): Redefine enum value.
2679 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
2680 strings.
2681 (mips_tx39_reg_names): Likewise.
2682 (mips_linux_reg_names): New array of register names for Linux
2683 targets.
2684 (mips_register_name): Check for a null pointer in
2685 mips_processor_reg_names and return an empty string.
2686 (mips_register_type): Exclude embedded registers for the IRIX
2687 and Linux ABIs.
2688 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
2689 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
2690 DSP registers.
2691 (mips_stab_reg_to_regnum): Handle DSP accumulators.
2692 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
2693 (mips_gdbarch_init): Likewise. Initialize internal register
2694 indices for the Linux ABI. Use dynamic numbers to refer to
2695 registers, as applicable, while parsing the target description.
2696 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
2697
2698 2012-03-01 Joel Brobecker <brobecker@adacore.com>
2699
2700 * frame.h (read_frame_register_unsigned): Fix typo in function
2701 description.
2702
2703 2012-03-01 Pedro Alves <palves@redhat.com>
2704
2705 * jit-reader.in [!__cplusplus]
2706 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
2707
2708 2012-03-01 Pedro Alves <palves@redhat.com>
2709
2710 * configure.ac (build_warnings): Add -Wmissing-prototypes.
2711 * configure: Regenerate.
2712
2713 2012-03-01 Pedro Alves <palves@redhat.com>
2714
2715 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
2716 * breakpoint.c (create_exception_master_breakpoint, trace_command)
2717 (ftrace_command, strace_command): Make static.
2718 * d-lang.c (_initialize_d_language): Declare.
2719 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
2720 * dwarf2loc.c (_initialize_dwarf2loc):
2721 * dwarf2read.c (process_psymtab_comp_unit): Make static.
2722 * exec.c (exec_get_section_table): Make static.
2723 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
2724 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
2725 * inferior.c (remove_inferior_command, add_inferior_command)
2726 (clone_inferior_command): Make static.
2727 * linux-nat.c (linux_nat_thread_address_space)
2728 (linux_nat_core_of_thread): Make static.
2729 * linux-tdep.c (_initialize_linux_tdep): Declare.
2730 * objc-lang.c (_initialize_objc_lang): Declare.
2731 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
2732 Make static.
2733 (_initialize_opencl_language): Declare.
2734 * record.c (_initialize_record): Declare.
2735 * remote.c (demand_private_info, remote_get_tib_address)
2736 (remote_supports_cond_tracepoints)
2737 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
2738 Make static.
2739 * skip.c (_initialize_step_skip): Declare.
2740 * symtab.c (skip_prologue_using_lineinfo): Make static.
2741 * tracepoint.c (delete_trace_state_variable)
2742 (trace_variable_command, delete_trace_variable_command)
2743 (get_uploaded_tsv, find_matching_tracepoint_location)
2744 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
2745 Make static.
2746 * value.c (pack_unsigned_long): Make static.
2747 * varobj.c (varobj_ensure_python_env): Make static.
2748 * windows-tdep.c (_initialize_windows_tdep): Declare.
2749 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
2750
2751 2012-03-01 Pedro Alves <palves@redhat.com>
2752
2753 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
2754 gdbarch parameter.
2755 (linux_init_abi): Install it as has_shared_address_space gdbarch
2756 callback.
2757
2758 2012-03-01 Pedro Alves <palves@redhat.com>
2759
2760 * observer.c (observer_test_first_notification_function)
2761 (observer_test_second_notification_function)
2762 (observer_test_third_notification_function): Add declarations.
2763
2764 2012-03-01 Pedro Alves <palves@redhat.com>
2765
2766 * common/signals.c (default_target_signal_to_host)
2767 (default_target_signal_from_host): Move ...
2768 * arch-utils.c: ... here.
2769 * arch-utils.h (default_target_signal_to_host)
2770 (default_target_signal_from_host): Declare.
2771
2772 * common/signals.c (target_signal_from_command): Move ...
2773 * infrun.c: ... here.
2774 * inferior.h (target_signal_from_command): Declare.
2775 * target.h (target_signal_from_command)
2776 (default_target_signal_from_host, default_target_signal_to_host):
2777 Delete declarations.
2778
2779 * common/signals.c (_initialize_signals): Delete.
2780
2781 2012-03-01 Pedro Alves <palves@redhat.com>
2782
2783 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
2784 both __cplusplus and !__cplusplus.
2785
2786 2012-03-01 Pedro Alves <palves@redhat.com>
2787
2788 * psymtab.c (find_and_open_source): Delete declaration.
2789 * source.c (find_and_open_source): Move comment ...
2790 * source.h (find_and_open_source): ... to this new declaration.
2791
2792 2012-03-01 Pedro Alves <palves@redhat.com>
2793
2794 * inline-frame.c: Include inline-frame.h.
2795
2796 2012-03-01 Pedro Alves <palves@redhat.com>
2797
2798 * tui/tui-data.c (set_gen_win_origin): Delete.
2799 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
2800 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
2801
2802 2012-03-01 Pedro Alves <palves@redhat.com>
2803
2804 * remote.c (encode_actions): Delete declaration.
2805 * tracepoint.c (encode_actions): Make extern.
2806 * tracepoint.h (encode_actions): Declare.
2807
2808 2012-03-01 Pedro Alves <palves@redhat.com>
2809
2810 * python/py-breakpoint.c: Include python.h.
2811 * python/py-continueevent.c (create_continue_event_object): Make
2812 static.
2813 * python/py-lazy-string.c (stpy_get_type): Make static.
2814 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2815 Make static.
2816 * python/py-utils.c (unicode_to_target_python_string): Make
2817 static.
2818 * python/py-value.c: Include python.h.
2819
2820 2012-03-01 Pedro Alves <palves@redhat.com>
2821
2822 * inferior.c (delete_threads_of_inferior): Delete.
2823
2824 2012-03-01 Pedro Alves <palves@redhat.com>
2825
2826 Import fallback definitions from glibc.
2827
2828 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
2829 ps_prochandle): Forward declare.
2830 (ps_err_e): Use glibc's comments.
2831 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
2832 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
2833 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
2834 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
2835 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
2836 (struct ps_prochandle): Adjust comment.
2837
2838 2012-03-01 Pedro Alves <palves@redhat.com>
2839
2840 * ada-lang.c (ada_modulus_from_name): Delete.
2841 * ada-lex.l (lexer_init): Make static.
2842
2843 2012-03-01 Pedro Alves <palves@redhat.com>
2844
2845 PR gdb/13767
2846
2847 * frame.c (read_frame_register_unsigned): New.
2848 * frame.h (read_frame_register_unsigned): Declare.
2849 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
2850 Handle it.
2851 (print_i387_control_word): New parameter `control_p'. Handle it.
2852 (i387_print_float_info): Handle unavailable float registers.
2853
2854 2012-03-01 Keith Seitz <keiths@redhat.com>
2855
2856 * linespec.c (decode_line_2): Sort the list of methods
2857 alphabetically before presenting the user with a selection
2858 menu.
2859
2860 2012-03-01 Doug Evans <dje@google.com>
2861
2862 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
2863 has_namespace_info.
2864 (dwarf2_read_abbrevs): Remove corresponding initialization.
2865
2866 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
2867
2868 * NEWS: Mention new python command class gdb.COMMAND_USER.
2869 * cli/cli-cmds.c (show_user): Print error when used on a python
2870 command.
2871 (init_cli_cmds): Update documentation strings for "show user" and
2872 "set/show max-user-call-depth" to clarify that it does not apply to
2873 python commands.
2874 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
2875 error check.
2876 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
2877 gdb python api.
2878 * top.c (execute_command): Only execute a user-defined command as a
2879 legacy macro if c->user_commands is set.
2880
2881 2012-03-01 Tom Tromey <tromey@redhat.com>
2882
2883 * valprint.h (struct generic_val_print_decorations): New.
2884 (generic_val_print): Declare.
2885 * valprint.c (generic_val_print): New function.
2886 * p-valprint.c (p_decorations): New global.
2887 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
2888 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
2889 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
2890 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
2891 * m2-valprint.c (m2_decorations): New global.
2892 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
2893 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
2894 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
2895 TYPE_CODE_ERROR>: Call generic_val_print.
2896 * f-valprint.c (f_decorations): New global.
2897 (f_val_print): Use print_function_pointer_address.
2898 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
2899 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
2900 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
2901 generic_val_print.
2902 * c-valprint.c (c_decorations): New global.
2903 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
2904 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
2905 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
2906 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
2907 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
2908 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
2909 case.
2910
2911 2012-03-01 Tom Tromey <tromey@redhat.com>
2912
2913 * valprint.c (val_print): Update.
2914 * p-valprint (pascal_val_print): Return void.
2915 * p-lang.h (pascal_val_print): Return void.
2916 * m2-valprint.c (m2_val_print): Return void.
2917 * m2-lang.h (m2_val_print): Return void.
2918 * language.h (struct language_defn) <la_val_print>: Return void.
2919 * language.c (unk_lang_val_print): Return void.
2920 * jv-valprint.c (java_val_print): Return void.
2921 * jv-lang.h (java_val_print): Return void.
2922 * f-valprint.c (f_val_print): Return void.
2923 * f-lang.h (f_val_print): Return void.
2924 * d-valprint.c (d_val_print): Return void.
2925 (dynamic_array_type): Update.
2926 * d-lang.h (d_val_print): Return void.
2927 * c-valprint.c (c_val_print): Return void.
2928 * c-lang.h (c_val_print): Return void.
2929 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
2930 void.
2931 * ada-lang.h (ada_val_print): Return void.
2932
2933 2012-03-01 Tom Tromey <tromey@redhat.com>
2934
2935 * value.h (val_print): Return void.
2936 * valprint.c (val_print): Return void.
2937
2938 2012-03-01 Tom Tromey <tromey@redhat.com>
2939
2940 * value.h (common_val_print): Return void.
2941 * valprint.c (common_val_print): Return void.
2942
2943 2012-03-01 Tom Tromey <tromey@redhat.com>
2944
2945 * value.h (value_print): Return void.
2946 * valprint.c (value_print): Return void.
2947 * p-valprint.c (pascal_value_print): Return void.
2948 * p-lang.h (pascal_value_print): Return void.
2949 * language.h (struct language_defn) <la_value_print>: Return
2950 void.
2951 * language.c (unk_lang_value_print): Return void.
2952 * jv-valprint.c (java_value_print): Return void.
2953 * jv-lang.h (java_value_print): Return void.
2954 * f-valprint.c (c_value_print): Don't declare.
2955 Include c-lang.h.
2956 * c-valprint.c (c_value_print): Return void.
2957 * c-lang.h (c_value_print): Return void.
2958 * ada-valprint.c (ada_value_print): Return void.
2959 * ada-lang.h (ada_value_print): Return void.
2960
2961 2012-03-01 Tom Tromey <tromey@redhat.com>
2962
2963 * value.c (value_primitive_field): Handle virtual base classes.
2964
2965 2012-03-01 Tom Tromey <tromey@redhat.com>
2966
2967 * gdbtypes.h (struct vbase): Remove.
2968
2969 2012-03-01 Tom Tromey <tromey@redhat.com>
2970
2971 * c-valprint.c (print_function_pointer_address): Move...
2972 * valprint.c: ... here. Make non-static.
2973 * m2-valprint.c (print_function_pointer_address): Remove.
2974 * valprint.h (print_function_pointer_address): Declare.
2975
2976 2012-03-01 Joel Brobecker <brobecker@adacore.com>
2977
2978 * NEWS: Document the fact that one can provide a condition when
2979 creating an Ada exception catchpoint.
2980
2981 2012-03-01 Tom Tromey <tromey@redhat.com>
2982
2983 * valprint.c (val_print_type_code_flags): Fix placement of
2984 trailing brace.
2985
2986 2012-03-01 Joel Brobecker <brobecker@adacore.com>
2987
2988 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
2989 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
2990 environment variable before calling update-copyright.
2991
2992 2012-03-01 Joel Brobecker <brobecker@adacore.com>
2993
2994 * gnulib/extra/update-copyright: Update to the latest from
2995 gnulib's git repository.
2996 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
2997 variable to 2 instead of 1.
2998
2999 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3000
3001 * varobj.c (c_value_of_variable): Remove dead code.
3002
3003 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3004
3005 * ada-lex.p (processId): Do not modify already encoded IDs.
3006 Update function documentation.
3007
3008 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3009
3010 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
3011 "name" with "struct symbol *name_sym".
3012 * ada-exp.y (write_var_or_type): Update call to
3013 ada_find_renaming_symbol.
3014 "name" with "struct symbol *name_sym". Adjust Implementation
3015 accordingly. Adjust the function documentation.
3016
3017 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3018
3019 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
3020 * ada-lang.c (ada_find_any_type): Add advance declaration.
3021 Make static. Replace ada_find_any_symbol by
3022 ada_find_any_type_symbol.
3023 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
3024 Improve function description. Make static.
3025 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
3026 Replace ada_find_any_symbol by ada_find_any_type_symbol.
3027
3028 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3029
3030 * ada-lang.c (struct tag_args): Delete.
3031 (ada_get_tsd_type): Function body moved up in source file.
3032 (ada_tag_name_1, ada_tag_name_2): Delete.
3033 (ada_get_tsd_from_tag): New function.
3034 (ada_tag_name_from_tsd): New function.
3035 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
3036 to determine the tag name.
3037
3038 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3039
3040 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
3041 declaration.
3042 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
3043 function.
3044
3045 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3046
3047 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
3048
3049 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3050
3051 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
3052 full searches.
3053
3054 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3055
3056 * ada-lang.c (constrained_packed_array_type): If there is a
3057 parallel XA type, use it to determine the array index type.
3058
3059 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3060
3061 * ada-valprint.c (ada_val_print_1): If our value is a reference
3062 to an array descriptor, dereference it before converting it
3063 to a simple array.
3064
3065 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3066
3067 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
3068 creating fixed value.
3069 (ada_value_ind, ada_coerce_ref, assign_component)
3070 (ada_evaluate_subexp): Remove call to unwrap_value before
3071 call to ada_to_fixed_value.
3072
3073 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3074
3075 * ada-lang.c (to_fixed_array_type): Set result's type name.
3076
3077 2012-02-29 Joel Brobecker <brobecker@adacore.com>
3078
3079 * ada-lang.c (catch_ada_exception_command_split): Add new
3080 argument cond_string. Add support for condition at end of
3081 "catch exception" commands.
3082 (ada_decode_exception_location): Add new argument cond_string.
3083 Update call to catch_ada_exception_command_split.
3084 (create_ada_exception_catchpoint): Add new argument cond_string.
3085 Set the breakpoint condition if needed.
3086 (catch_ada_exception_command): Update call to
3087 ada_decode_exception_location.
3088 (ada_decode_assert_location): Add function documentation.
3089 Add support for condition at end of "catch assert" command.
3090 (catch_assert_command): Update calls to ada_decode_assert_location
3091 and create_ada_exception_catchpoint.
3092
3093 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3094
3095 Fix disp-step-syscall.exp: fork: single step over fork.
3096 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
3097 (i386_linux_get_syscall_number_from_regcache): ... here, new function
3098 comment, change parameters gdbarch and ptid to regcache. Remove
3099 parameter regcache, initialize gdbarch from regcache here.
3100 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
3101 New functions.
3102 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
3103 instead.
3104 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
3105 'syscall'. Make the 'int' check more strict.
3106
3107 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3108
3109 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
3110 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
3111 (i386_linux_intx80_sysenter_syscall_record): ... here.
3112 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
3113 Use the renamed function name.
3114
3115 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
3116
3117 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
3118 * breakpoint.c (until_break_command): Likewise.
3119 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
3120 * infcall.c (call_function_by_hand): Likewise.
3121 * infcmd.c (finish_forward): Likewise.
3122 * infrun.c (insert_exception_resume_breakpoint): Likewise.
3123
3124 2012-02-28 Tristan Gingold <gingold@adacore.com>
3125
3126 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
3127 avoid variable assignments inside condition.
3128
3129 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3130
3131 Fix static analysis issue found by cppcheck.
3132 * microblaze-tdep.c (microblaze_extract_return_value): Fix
3133 uninitialized BUF for size 2.
3134
3135 2012-02-27 Chris Dearman <chris@mips.com>
3136 Nathan Froyd <froydnj@codesourcery.com>
3137 Maciej W. Rozycki <macro@codesourcery.com>
3138
3139 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
3140 (mips16_instruction_has_delay_slot): Likewise.
3141 (mips_segment_boundary): Likewise.
3142 (mips_adjust_breakpoint_address): Likewise.
3143 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
3144
3145 2012-02-27 Maciej W. Rozycki <macro@mips.com>
3146 Maciej W. Rozycki <macro@codesourcery.com>
3147
3148 * infrun.c (handle_inferior_event): Don't proceed through
3149 shared library trampolines if stepping at the machine
3150 instruction level.
3151
3152 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
3153
3154 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
3155 too.
3156
3157 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
3158
3159 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
3160 (sh_stub_unwind_sniffer): New functions.
3161 (sh_stub_unwind): New variable.
3162 (sh_gdbarch_init): Wire everything.
3163
3164 2012-02-27 Pedro Alves <palves@redhat.com>
3165
3166 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
3167 (linux_nat_post_attach_wait): Adjust to use
3168 linux_proc_pid_is_stopped.
3169 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
3170 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
3171 based on pid_is_stopped from both linux-nat.c and
3172 gdbserver/linux-low.c, and renamed.
3173
3174 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
3175
3176 * remote.c (remote_watchpoint_addr_within_range): New function.
3177 (init_remote_ops): Use it.
3178
3179 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
3180
3181 * target.h (target_watchpoint_addr_within_range): Document macro.
3182
3183 2012-02-24 Pedro Alves <palves@redhat.com>
3184
3185 * stack.c (set_last_displayed_sal): Issue internal_error instead
3186 of warning, and issue it after clearing the last displayed sal.
3187
3188 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3189 Pedro Alves <palves@redhat.com>
3190
3191 * breakpoint.c (until_break_command): Install breakpoints after
3192 all frame manipulations.
3193
3194 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
3195
3196 * remote.c (remote_supports_cond_breakpoints): New forward
3197 declaration.
3198 (remote_add_target_side_condition): New function.
3199 (remote_insert_breakpoint): Add target-side breakpoint
3200 conditional if supported.
3201 (remote_insert_hw_breakpoint): Likewise.
3202 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
3203 hook.
3204
3205 * target.c (update_current_target): Inherit
3206 to_supports_evaluation_of_breakpoint_conditions.
3207 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
3208
3209 * target.h (struct target_ops)
3210 <to_supports_evaluation_of_breakpoint_conditions>: New field.
3211 (target_supports_evaluation_of_breakpoint_conditions): New #define.
3212
3213 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
3214 (condition_evaluation_both, condition_evaluation_auto,
3215 condition_evaluation_host, condition_evaluation_target,
3216 condition_evaluation_enums, condition_evaluation_mode_1,
3217 condition_evaluation_mode): New static globals.
3218 (translate_condition_evaluation_mode): New function.
3219 (breakpoint_condition_evaluation_mode): New function.
3220 (gdb_evaluates_breakpoint_condition_p): New function.
3221 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
3222 (mark_breakpoint_modified): New function.
3223 (mark_breakpoint_location_modified): New function.
3224 (set_condition_evaluation_mode): New function.
3225 (show_condition_evaluation_mode): New function.
3226 (bp_location_compare_addrs): New function.
3227 (get_first_location_gte_addr): New helper function.
3228 (set_breakpoint_condition): Free condition bytecode if locations
3229 has become unconditional. Call mark_breakpoint_modified (...).
3230 (condition_command): Call update_global_location_list (1) for
3231 breakpoints.
3232 (breakpoint_xfer_memory): Use is_breakpoint (...).
3233 (is_breakpoint): New function.
3234 (parse_cond_to_aexpr): New function.
3235 (build_target_condition_list): New function.
3236 (insert_bp_location): Handle target-side conditional
3237 breakpoints and call build_target_condition_list (...).
3238 (update_inserted_breakpoint_locations): New function.
3239 (insert_breakpoint_locations): Handle target-side conditional
3240 breakpoints.
3241 (bpstat_check_breakpoint_conditions): Add comment.
3242 (bp_condition_evaluator): New function.
3243 (bp_location_condition_evaluator): New function.
3244 (print_breakpoint_location): Print information on where the condition
3245 will be evaluated.
3246 (print_one_breakpoint_location): Likewise.
3247 (init_bp_location): Call mark_breakpoint_location_modified (...) for
3248 breakpoint location.
3249 (force_breakpoint_reinsertion): New functions.
3250 (update_global_location_list): Handle target-side breakpoint
3251 conditions.
3252 Reinsert locations that are already inserted if conditions have
3253 changed.
3254 (bp_location_dtor): Free agent expression bytecode.
3255 (disable_breakpoint): Call mark_breakpoint_modified (...).
3256 Call update_global_location_list (...) with parameter 1 for breakpoints.
3257 (disable_command): Call mark_breakpoint_location_modified (...).
3258 Call update_global_location_list (...) with parameter 1 for breakpoints.
3259 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
3260 (enable_command): mark_breakpoint_location_modified (...).
3261 (_initialize_breakpoint): Update documentation and add
3262 condition-evaluation breakpoint subcommand.
3263
3264 * breakpoint.h: Include ax.h.
3265 (condition_list): New data structure.
3266 (condition_status): New enum.
3267 (bp_target_info) <cond_list>: New field.
3268 (bp_location) <condition_changed, cond_bytecode>: New fields.
3269 (is_breakpoint): New prototype.
3270
3271 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
3272
3273 * remote.c (remote_state) <cond_breakpoints>: New field.
3274 (PACKET_ConditionalBreakpoints): New enum.
3275 (remote_cond_breakpoint_feature): New function.
3276 (remote_protocol_features): Add new ConditionalBreakpoints entry.
3277 (remote_supports_cond_breakpoints): New function.
3278 (_initialize_remote): Add new packet configuration for
3279 target-side conditional breakpoints.
3280
3281 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
3282
3283 * NEWS: Mention target-side conditional breakpoint support,
3284 new condition-evaluation breakpoint subcommand and remote
3285 packet extensions.
3286
3287 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
3288
3289 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
3290 number.
3291
3292 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
3293
3294 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
3295 (after_prologue): Remove.
3296
3297 2012-02-23 Tom Tromey <tromey@redhat.com>
3298
3299 * jv-valprint.c (java_val_print): Remove dead code.
3300
3301 2012-02-23 Tristan Gingold <gingold@adacore.com>
3302
3303 * ada-tasks.c (struct ada_tasks_inferior_data): Add
3304 known_tasks_element and known_tasks_length fields.
3305 (read_known_tasks_array): Change argument type. Use pointer type
3306 and number of elements from DATA. Adjust.
3307 (read_known_tasks_list): Likewise.
3308 (get_known_tasks_addr): Remove.
3309 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
3310 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
3311 type and array length. Merge former get_known_tasks_addr code.
3312
3313 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
3314
3315 PR backtrace/13716
3316 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
3317 it after set_momentary_breakpoint.
3318
3319 2012-02-22 Sterling Augustine <saugustine@google.com>
3320
3321 PR 13689:
3322 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
3323
3324 2012-02-22 Gary Benson <gbenson@redhat.com>
3325
3326 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
3327 (find_slot_in_mapped_hash): Likewise.
3328
3329 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3330
3331 PR build/13638
3332 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
3333 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
3334 * configure: Regenerate.
3335
3336 2012-02-21 Tristan Gingold <gingold@adacore.com>
3337 Pedro Alves <palves@redhat.com>
3338
3339 * ia64-tdep.c: Do not include libunwind-ia64.h.
3340 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
3341 Include libunwind-ia64.h instead of libunwind.h.
3342 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
3343 for libunwind.h existence.
3344 * configure, config.in: Regenerate.
3345
3346 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
3347
3348 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
3349 instead of value_rtti_target_type.
3350 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
3351 instead of value_rtti_target_type.
3352 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
3353 value_rtti_target_type.
3354 * valops.c (value_ind): Extract function readjust_indirect_value_type.
3355 (value_rtti_target_type): Rename to ...
3356 (value_rtti_indirect_type): ... here and make it indirect. Update
3357 function comment.
3358 * value.c (readjust_indirect_value_type): New function.
3359 (coerce_ref): Support for enclosing type setting for references
3360 with readjust_indirect_value_type.
3361 * value.h (readjust_value_type): New declaration.
3362 (value_rtti_target_type): Rename to ...
3363 (value_rtti_indirect_type): ... here.
3364
3365 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
3366
3367 * MAINTAINERS (Write After Approval): Add myself to the list.
3368
3369 2012-02-20 Doug Evans <dje@google.com>
3370
3371 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
3372 Rename objfile_p_char parameter to objfilep.
3373 (build_objfile_section_table): Result is now void. All callers
3374 updated.
3375 * objfiles.h (struct objfile): Tweak comments, whitespace.
3376 (build_objfile_section_table): Update.
3377
3378 * elfread.c (elf_symfile_segments): Fix warning text.
3379
3380 2012-02-20 Tom Tromey <tromey@redhat.com>
3381
3382 PR gdb/13498:
3383 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
3384 particular set of file names once.
3385 (dw2_map_symbol_filenames): Likewise.
3386
3387 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3388
3389 Code cleanup.
3390 * main.c (write_files): Remove the declaration.
3391 (external_editor_command): Move the declaration ...
3392 [GDBTK] (external_editor_command): ... here. Fix the comment.
3393
3394 2012-02-20 Tom Tromey <tromey@redhat.com>
3395
3396 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
3397 extraneous block.
3398
3399 2012-02-20 Tristan Gingold <gingold@adacore.com>
3400
3401 * darwin-nat.h (enum darwin_msg_state): Add comments.
3402
3403 2012-02-20 Tristan Gingold <gingold@adacore.com>
3404
3405 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
3406 value.
3407
3408 2012-20-18 Joel Brobecker <brobecker@adacore.com>
3409
3410 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
3411 between function description and implementation.
3412
3413 2012-02-17 Tom Tromey <tromey@redhat.com>
3414
3415 PR python/12070:
3416 * python/py-event.c (event_object_getset): New global.
3417 (event_object_type): Reference it.
3418 * python/py-type.c (field_object_getset): New global.
3419 (field_object_type): Reference it.
3420 * python/python-internal.h (gdb_py_generic_dict): Declare.
3421 * python/py-utils.c (gdb_py_generic_dict): New function.
3422
3423 2012-02-17 Tristan Gingold <gingold@adacore.com>
3424
3425 * solib-darwin.c (darwin_current_sos): Check magic and filetype
3426
3427 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
3428
3429 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
3430 TYPE_CALLING_CONVENTION annotation.
3431
3432 2012-02-16 Kevin Buettner <kevinb@redhat.com>
3433
3434 * MAINTAINERS: Add rx to target ISA section.
3435 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
3436 (ALLDEPFILES): Add rx-tdep.c.
3437
3438 2012-02-16 Tom Tromey <tromey@redhat.com>
3439
3440 * symfile.c (symbol_file_add_main_1): Use inferior's
3441 symfile_flags.
3442 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
3443 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
3444 inferior.
3445 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
3446 inferior.
3447 (follow_exec): Use inferior's symfile_flags.
3448 * inferior.h (struct inferior) <symfile_flags>: New field.
3449
3450 2012-02-16 Mike Frysinger <vapier@gentoo.org>
3451
3452 PR gdb/9734:
3453 * remote-sim.c (gdbsim_create_inferior): Call error() when
3454 sim_create_inferior() fails.
3455
3456 2012-02-16 Josh Matthews <josh@joshmatthews.net>
3457
3458 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
3459
3460 2012-02-16 Tom Tromey <tromey@redhat.com>
3461
3462 PR c++/13653:
3463 * thread.c (struct current_thread_cleanup) <was_removable>: New
3464 field.
3465 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
3466 (make_cleanup_restore_current_thread): Initialize new field.
3467
3468 2012-02-15 Kevin Buettner <kevinb@redhat.com>
3469
3470 * MAINTAINERS: Add rl78 to target ISA section.
3471 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
3472 (ALLDEPFILES): Add rl78-tdep.c.
3473 * NEWS: Mention rl78 as a new target.
3474
3475 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
3476
3477 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
3478 data.
3479 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
3480
3481 2012-02-15 Tom Tromey <tromey@redhat.com>
3482
3483 PR gdb/12659:
3484 * infcmd.c (registers_info): Print just the current register's
3485 name.
3486
3487 2012-02-15 Tom Tromey <tromey@redhat.com>
3488
3489 * python/py-symbol.c (sympy_value): Use _().
3490
3491 2012-02-15 Pedro Alves <palves@redhat.com>
3492
3493 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
3494 output to be like native targets'.
3495 (remote_pid_to_str): Special case the null ptid.
3496
3497 2012-02-14 Stan Shebs <stan@codesourcery.com>
3498
3499 * NEWS: Mention enable count command.
3500 * breakpoint.h (struct breakpoint): New field enable_count.
3501 * breakpoint.c (enable_breakpoint_disp): Add count argument.
3502 (enable_breakpoint): Add arg to call.
3503 (struct disp_data): New struct.
3504 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
3505 (do_map_enable_once_breakpoint): Create a struct and pass it.
3506 (do_map_enable_delete_breakpoint): Ditto.
3507 (do_map_enable_count_breakpoint): New function.
3508 (enable_count_command): New function.
3509 (bpstat_stop_status): Decrement enable_count.
3510 (print_one_breakpoint_location): Report enable count.
3511 (_initialize_breakpoint): Add enable count command.
3512
3513 2012-02-14 Kevin Buettner <kevinb@redhat.com>
3514
3515 * rl78-tdep.c (reggroups.h): Include.
3516 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
3517 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
3518 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
3519 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
3520 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
3521 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
3522 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
3523 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
3524 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
3525 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
3526 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
3527 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
3528 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
3529 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
3530 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
3531 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
3532 beginning of register list.
3533 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
3534 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
3535 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
3536 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
3537 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
3538 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
3539 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
3540 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
3541 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
3542 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
3543 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
3544 the pseudo registers. Rearrange other pseudo registers too so
3545 that the bank registers appear at the end.
3546 (rl78_register_type): Account for the fact that the byte sized
3547 bank registers are now pseudo-registers.
3548 (rl78_register_name): Rearrange the register name array. Make
3549 initial set of raw banked registers inaccessible.
3550 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
3551 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
3552 case for copying bytes back and forth between raw and pseudo
3553 versions of the banked registers. Update other cases to reflect
3554 the changed names.
3555 (rl78_return_value): Update to account for changed names of
3556 raw registers.
3557 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
3558 rl78_register_sim_regno().
3559
3560 2012-02-14 Kevin Buettner <kevinb@redhat.com>
3561
3562 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
3563 the name parameter being passed to find_pc_partial_function().
3564
3565 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
3566
3567 * MAINTAINERS: Step down from being ia64 target maintainer.
3568
3569 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3570
3571 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
3572 compilation warning.
3573
3574 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3575
3576 Fix crash on loaded shlibs without loaded exec_bfd.
3577 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
3578 (set_section_command): Replace exec_bfd by p->bfd.
3579
3580 2012-02-10 Tom Tromey <tromey@redhat.com>
3581
3582 * linespec.c (decode_line_internal): Skip symtabs_from_filename
3583 when we have a C++ qualified name.
3584
3585 2012-02-10 Pedro Alves <palves@redhat.com>
3586
3587 * inferior.c (inferior_pid_to_str): New.
3588 (print_inferior, inferior_command): Use it.
3589
3590 2012-02-10 Pedro Alves <palves@redhat.com>
3591
3592 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
3593 the test CFLAGS.
3594 * configure: Regenerate.
3595
3596 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3597
3598 * linespec.c (decode_line_internal): Fix comment correctness.
3599
3600 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
3601
3602 PR gdb/12953
3603 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
3604 * amd64bsd-nat.c: Add support for debug registers (adapted from
3605 i386bsd-nat.c).
3606 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
3607 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
3608 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
3609 (amd64bsd_dr_get_control): New functions.
3610 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
3611 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
3612 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
3613 watchpoints initialization.
3614 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
3615
3616 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3617
3618 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
3619 flds_bnds.fields.
3620 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
3621
3622 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
3623
3624 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
3625
3626 2012-02-08 Joel Brobecker <brobecker@adacore.com>
3627
3628 * language.h (symbol_name_cmp_ftype): Renames
3629 symbol_name_match_p_ftype.
3630 (struct language_defn)[la_get_symbol_name_cmp]: Renames
3631 la_get_symbol_name_match_p.
3632 * ada-lang.c (ada_get_symbol_name_cmp): Renames
3633 ada_get_symbol_name_match_p. Update comment.
3634 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
3635 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
3636 Renames symbol_name_match_p. Update field type.
3637 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
3638 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
3639 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
3640 "la_get_symbol_name_cmp" in comments.
3641 * language.c: Likewise.
3642
3643 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3644
3645 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
3646 %eflags offset.
3647 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
3648 (amd64_sol2_gregset32_reg_offs): Likewise.
3649
3650 2012-02-08 Joel Brobecker <brobecker@adacore.com>
3651
3652 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
3653 of the returned BFD is allocated by GDB.
3654
3655 2012-02-07 Tom Tromey <tromey@redhat.com>
3656
3657 PR python/12027:
3658 * python/python-internal.h (frame_object_type): Declare.
3659 * python/py-symbol.c (sympy_needs_frame): New function.
3660 (sympy_value): New function.
3661 (symbol_object_getset): Add "needs_frame".
3662 (symbol_object_methods): Add "value".
3663 * python/py-frame.c (frame_object_type): No longer static.
3664
3665 2012-02-07 Tom Tromey <tromey@redhat.com>
3666
3667 PR python/13599:
3668 * python/py-symbol.c (sympy_line): New function.
3669 (symbol_object_getset): Add "line".
3670
3671 2012-02-07 Tom Tromey <tromey@redhat.com>
3672
3673 * charset.c (find_charset_names): Check 'in' against NULL.
3674
3675 2012-02-06 Doug Evans <dje@google.com>
3676
3677 * gdbtypes.h (struct main_type): Change type of name,tag_name,
3678 and fields.name members from char * to const char *. All uses updated.
3679 (struct cplus_struct_type): Change type of fn_fieldlists.name member
3680 from char * to const char *. All uses updated.
3681 (type_name_no_tag): Update.
3682 (lookup_unsigned_typename, lookup_signed_typename): Update.
3683 * gdbtypes.c (type_name_no_tag): Change result type
3684 from char * to const char *. All callers updated.
3685 (lookup_unsigned_typename, lookup_signed_typename): Change type of
3686 name parameter from char * to const char *.
3687 * symtab.h (struct cplus_specific): Change type of demangled_name
3688 member from char * to const char *. All uses updated.
3689 (struct general_symbol_info): Change type of name and
3690 mangled_lang.demangled_name members from char * to const char *.
3691 All uses updated.
3692 (symbol_get_demangled_name, symbol_natural_name): Update.
3693 (symbol_demangled_name, symbol_search_name): Update.
3694 * symtab.c (symbol_get_demangled_name): Change result type
3695 from char * to const char *. All callers updated.
3696 (symbol_natural_name, symbol_demangled_name): Ditto.
3697 (symbol_search_name): Ditto.
3698 (completion_list_add_name): Change type of symname,sym_text,
3699 text,word parameters from char * to const char *.
3700 (completion_list_objc_symbol): Change type of sym_text,
3701 text,word parameters from char * to const char *.
3702 * ada-lang.c (find_struct_field): Change type of name parameter
3703 from char * to const char *.
3704 (encoded_ordered_before): Similarly for N0,N1 parameters.
3705 (old_renaming_is_invisible): Similarly for function_name parameter.
3706 (ada_type_name): Change result type from char * to const char *.
3707 All callers updated.
3708 * ada-lang.h (ada_type_name): Update.
3709 * buildsym.c (hashname): Change type of name parameter
3710 from char * to const char *.
3711 * buildsym.h (hashname): Update.
3712 * dbxread.c (end_psymtab): Change type of include_list parameter
3713 from char ** to const char **.
3714 * dwarf2read.c (determine_prefix): Change result type
3715 from char * to const char *. All callers updated.
3716 * f-lang.c (find_common_for_function): Change type of name, funcname
3717 parameters from char * to const char *.
3718 * f-lang.c (find_common_for_function): Update.
3719 * f-valprint.c (list_all_visible_commons): Change type of funcname
3720 parameters from char * to const char *.
3721 * gdbarch.sh (static_transform_name): Change type of name parameter
3722 and result from char * to const char *.
3723 * gdbarch.c: Regenerate.
3724 * gdbarch.h: Regenerate.
3725 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
3726 of name parameter from char * to const char *.
3727 * jv-lang.c (java_primitive_type_from_name): Ditto.
3728 (java_demangled_signature_length): Similarly for signature parameter.
3729 (java_demangled_signature_copy): Ditto.
3730 (java_demangle_type_signature): Ditto.
3731 * jv-lang.h (java_primitive_type_from_name): Update.
3732 (java_demangle_type_signature): Update.
3733 * objc-lang.c (specialcmp): Change type of a,b parameters
3734 from char * to const char *.
3735 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
3736 from char * to const char *. All callers updated.
3737 * p-lang.h (is_pascal_string_type): Update.
3738 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
3739 of name parameter from char * to const char *.
3740 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
3741 * utils.c (fprintf_symbol_filtered): Ditto.
3742 * defs.h (fprintf_symbol_filtered): Update.
3743 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
3744 * stabsread.h (end_psymtab): Update.
3745 * stack.c (find_frame_funname): Change type of funname parameter
3746 from char ** to const char **.
3747 * stack.h (find_frame_funname): Update.
3748 * typeprint.c (type_print): Change type of varstring parameter
3749 from char * to const char *.
3750 * value.h (type_print): Update.
3751 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
3752 from char * to const char *. All callers updated.
3753 (xcoff_end_psymtab): Change type of include_list parameter
3754 from char ** to const char **. All callers updated.
3755 (swap_sym): Similarly for name parameter. All callers updated.
3756 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
3757 Use xstrdup.
3758 (process_coff_symbol): Use xstrdup.
3759 * stabsread.c (stabs_method_name_from_physname): Renamed from
3760 update_method_name_from_physname. Change result type from void
3761 to char *. All callers updated.
3762 (read_member_functions): In has_destructor case, store name in objfile
3763 obstack instead of malloc space. In !has_stub case, fix mem leak.
3764
3765 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
3766
3767 * configure: Rebuild.
3768 * configure.ac: Put -L../bfd and -L../libiberty at the front of
3769 LDFLAGS.
3770
3771 2012-02-03 Kevin Buettner <kevinb@redhat.com>
3772
3773 * configure.tgt (rl78-*-elf): New target.
3774 * rl78-tdep.c: New file.
3775
3776 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
3777
3778 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
3779 and continue the loop. Add QUIT statement.
3780
3781 2012-02-03 Tom Tromey <tromey@redhat.com>
3782
3783 PR gdb/13596:
3784 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
3785 bfd_lookup_symbol_from_symtab.
3786 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3787 gdb_bfd_lookup_symbol_from_symtab.
3788
3789 2012-02-03 Joel Brobecker <brobecker@adacore.com>
3790
3791 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
3792 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
3793 symbol. Add assertion that sym2 is never NULL.
3794
3795 2012-02-02 Doug Evans <dje@google.com>
3796
3797 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
3798 "name" parameter to const char ** from char **. All callers updated.
3799 (find_pc_partial_function): Ditto.
3800 (cache_pc_function_name): Change type to const char * from char *.
3801 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
3802 (find_pc_partial_function): Update.
3803 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
3804 type of "name" parameter to const char * from char *.
3805 All uses updated.
3806 * arch-utils.c (generic_in_solib_return_trampoline): Change
3807 type of "name" parameter to const char * from char *.
3808 * arch-utils.h (generic_in_solib_return_trampoline): Update.
3809 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
3810 type of "name" parameter to const char * from char *.
3811 * gdbarch.sh (in_solib_return_trampoline): Ditto.
3812 * gdbarch.c: Regenerate.
3813 * gdbarch.h: Regenerate.
3814 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
3815 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
3816 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
3817 type of "name" parameter to const char * from char *.
3818 * skip.c (skip_function_pc): Ditto.
3819 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
3820 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
3821 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
3822 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
3823 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
3824 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
3825 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
3826 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
3827 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
3828
3829 2012-02-02 Pedro Alves <palves@redhat.com>
3830
3831 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
3832 the current inferior has no execution. Make sure the current
3833 remote process matches gdb's current inferior.
3834
3835 2012-02-02 Tom Tromey <tromey@redhat.com>
3836
3837 PR gdb/13405:
3838 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
3839 read-only memory.
3840
3841 2012-02-02 Tom Tromey <tromey@redhat.com>
3842
3843 PR gdb/9307:
3844 * symtab.c (lookup_language_this): Set block_found.
3845
3846 2012-02-01 Tom Tromey <tromey@redhat.com>
3847
3848 PR gdb/13431:
3849 * jit.c (struct jit_inferior_data): Rewrite.
3850 (struct jit_objfile_data): New.
3851 (get_jit_objfile_data): New function.
3852 (add_objfile_entry): Update.
3853 (jit_read_descriptor): Return int. Replace descriptor_addr
3854 argument with inf_data. Update. Don't call error.
3855 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
3856 descriptor here.
3857 (jit_inferior_init): Don't look up descriptor. Don't call error.
3858 (jit_reset_inferior_data_and_breakpoints)
3859 (jit_inferior_created_observer): Remove.
3860 (jit_inferior_exit_hook): Update.
3861 (jit_executable_changed_observer): Remove.
3862 (jit_event_handler): Update.
3863 (free_objfile_data): Reset inferior data if needed.
3864 (_initialize_jit): Update.
3865
3866 2012-02-01 Tom Tromey <tromey@redhat.com>
3867
3868 * jit.c (bfd_open_from_target_memory): Move higher in file.
3869
3870 2012-02-01 Tristan Gingold <gingold@adacore.com>
3871
3872 * libunwind-frame.c (libunwind_load): Display message if dlopen
3873 failed.
3874
3875 2012-02-01 Gary Benson <gbenson@redhat.com>
3876
3877 * symtab.h (symbol_found_callback_ftype): New typedef.
3878 (iterate_over_symbols): Use the above.
3879 * symtab.c (iterate_over_symbols): Likewise.
3880 * language.h (language_defn->la_iterate_over_symbols): Likewise.
3881 * ada-lang.c (ada_iterate_over_symbols): Likewise.
3882 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
3883 (iterate_name_matcher): Document return values.
3884 (collect_one_symbol): Likewise.
3885 (collect_function_symbols): Likewise.
3886 (collect_symbols): Likewise.
3887
3888 2012-02-01 Tom Tromey <tromey@redhat.com>
3889
3890 * ada-lang.c (resolve_subexp): Update.
3891 (ada_lookup_symbol_list): Add 'full_search' argument.
3892 (ada_iterate_over_symbols): Pass 0 as full_search argument to
3893 ada_lookup_symbol_list.
3894 (ada_lookup_encoded_symbol): Update.
3895 (get_var_value): Update.
3896 * ada-exp.y (block_lookup): Update.
3897 (write_var_or_type): Update.
3898 (write_name_assoc): Update.
3899 * ada-lang.h (ada_lookup_symbol_list): Update.
3900
3901 2012-01-31 Tom Tromey <tromey@redhat.com>
3902
3903 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
3904 comment.
3905
3906 2012-01-31 Doug Evans <dje@google.com>
3907
3908 * symtab.h: Remove outdated comment.
3909 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
3910
3911 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
3912
3913 Fix build error in Darwin port.
3914 * i386-darwin-nat.c: Include i386-nat.h.
3915
3916 2012-01-30 Tom Tromey <tromey@redhat.com>
3917
3918 PR breakpoints/13568:
3919 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
3920 argument. Check for recursive includes.
3921 (dwarf_decode_macros): Create an include hash.
3922
3923 2012-01-30 Michael Eager <eager@eagercon.com>
3924
3925 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
3926 * ppc-linux-tdep.c: Include glibc-tdep.h.
3927 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
3928 (powerpc_linux_in_plt_stub): New function.
3929 (powerpc_linux_in_dynsym_resolve_code): New function.
3930 (ppc_skip_trampoline_code): New function.
3931 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
3932 Use glibc_skip_solib_resolver.
3933
3934 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3935
3936 Code cleanup: Make 1440 bytes of data segment read-only.
3937 * arch-utils.c (endian_enum): Make it const char *const [].
3938 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
3939 Likewise.
3940 * breakpoint.c (always_inserted_enums): Likewise.
3941 * cli/cli-cmds.c (script_ext_enums): Likewise.
3942 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
3943 enumlist parameter const char *const *.
3944 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
3945 const char *const *.
3946 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
3947 parameter const char *const *.
3948 * cris-tdep.c (cris_modes): Make it const char *const [].
3949 * filesystem.c (target_file_system_kinds): Likewise.
3950 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
3951 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
3952 (can_use_displaced_stepping_enum, scheduler_enums)
3953 (exec_direction_names): Likewise.
3954 * language.c (_initialize_language): Make the type_or_range_names and
3955 case_sensitive_names variables const char *const [].
3956 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
3957 * python/python.c (python_excp_enums): Likewise.
3958 * remote.c (interrupt_sequence_modes): Likewise.
3959 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
3960 * serial.c (logbase_enums): Likewise.
3961 * sh-tdep.c (sh_cc_enum): Likewise.
3962 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
3963 Likewise.
3964 * symtab.c (multiple_symbols_modes): Likewise.
3965 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
3966 Likewise.
3967 * utils.c (internal_problem_modes): Likewise.
3968
3969 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
3970
3971 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
3972 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
3973 result.
3974
3975 2012-01-27 Doug Evans <dje@google.com>
3976
3977 * configure.ac (with_python): Fix absolute path handling for win32.
3978 * configure: Regenerate.
3979
3980 2012-01-26 Doug Evans <dje@google.com>
3981
3982 * symtab.c: Whitespace cleanup, no code changes.
3983
3984 * symtab.c (lookup_symbol_in_language): Improve comment.
3985 (lookup_symbol_aux): Fix comment.
3986
3987 * psymtab.c (add_psymbol_to_list): Result is now "void".
3988 * psympriv.h (add_psymbol_to_list): Update.
3989
3990 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
3991
3992 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3993
3994 Do not open script filenames twice.
3995 * cli/cli-cmds.c (source_script_from_stream): Pass to
3996 source_python_script also STREAM.
3997 * python/py-auto-load.c (source_section_scripts): Pass to
3998 source_python_script_for_objfile also STREAM.
3999 (auto_load_objfile_script): Pass to source_python_script_for_objfile
4000 also INPUT.
4001 * python/python-internal.h (source_python_script_for_objfile): New
4002 parameter file, rename parameter file to filename.
4003 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
4004 instead if !_WIN32. Update the function comment.
4005 (source_python_script, source_python_script_for_objfile)
4006 (source_python_script): New parameter file, rename parameter file to
4007 filename. Pass FILENAME to python_run_simple_file.
4008 * python/python.h (source_python_script): New parameter file, rename
4009 parameter file to filename.
4010
4011 2012-01-26 Pedro Alves <palves@redhat.com>
4012
4013 * corelow.c (core_has_fake_pid): Delete.
4014 (core_close): Delete references to `core_has_fake_pid'.
4015 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
4016 (core_open): Delete references to `core_has_fake_pid'.
4017 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
4018 the removed global.
4019
4020 2012-01-26 Joel Brobecker <brobecker@adacore.com>
4021
4022 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
4023 Remove language parameter from name_matcher. Adjust the comment.
4024 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
4025 Remove language parameter.
4026 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
4027 * linespec.c (iterate_name_matcher): Likewise.
4028 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
4029 name_matcher. Adjust call accordingly.
4030 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
4031 (maintenance_check_symtabs): Adjust type of parameter "fun".
4032 * psymtab.h (maintenance_check_symtabs): Likewise.
4033
4034 2012-01-26 Joel Brobecker <brobecker@adacore.com>
4035
4036 * language.h (symbol_name_match_p_ftype): New typedef.
4037 (struct language_defn): Replace field la_symbol_name_compare
4038 by la_get_symbol_name_match_p.
4039 * ada-lang.c (ada_get_symbol_name_match_p): New function.
4040 (ada_language_defn): Use it.
4041 * linespec.c (struct symbol_matcher_data): New type.
4042 (iterate_name_matcher): Rewrite.
4043 (iterate_over_all_matching_symtabs): Pass a pointer to
4044 a symbol_matcher_data struct to expand_symtabs_matching
4045 instead of just the lookup name.
4046 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
4047 opencl-lang.c, p-lang.c, language.c: Delete field
4048 la_symbol_name_compare, and replace by NULL for new field
4049 la_get_symbol_name_match_p.
4050 * symfile.h (struct quick_symbol_functions): Update comment.
4051
4052 2012-01-25 Tom Tromey <tromey@redhat.com>
4053
4054 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
4055 dereferencing.
4056
4057 2012-01-24 Tom Tromey <tromey@redhat.com>
4058
4059 PR symtab/12406:
4060 * solib.c (update_solib_list): Update the program space's
4061 added_solibs and deleted_solibs fields.
4062 * progspace.h (struct program_space) <added_solibs,
4063 deleted_solibs>: New fields.
4064 (clear_program_space_solib_cache): Declare.
4065 * progspace.c (release_program_space): Call
4066 clear_program_space_solib_cache.
4067 (clear_program_space_solib_cache): New function.
4068 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
4069 bpstat_stop_status. Use handle_solib_event.
4070 * breakpoint.c: Include gdb_regex.h.
4071 (print_solib_event): New function.
4072 (bpstat_print): Use print_solib_event.
4073 (bpstat_stop_status): Add special case for bp_shlib_event.
4074 (handle_solib_event): New function.
4075 (bpstat_what): Use handle_solib_event.
4076 (struct solib_catchpoint): New.
4077 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
4078 (breakpoint_hit_catch_solib, check_status_catch_solib)
4079 (print_it_catch_solib, print_one_catch_solib)
4080 (print_mention_catch_solib, print_recreate_catch_solib): New
4081 functions.
4082 (catch_solib_breakpoint_ops): New global.
4083 (catch_load_or_unload, catch_load_command_1)
4084 (catch_unload_command_1): New functions.
4085 (internal_bkpt_check_status): Add special case for
4086 bp_shlib_event.
4087 (internal_bkpt_print_it): Use print_solib_event.
4088 (initialize_breakpoint_ops): Initialize
4089 catch_solib_breakpoint_ops.
4090 (_initialize_breakpoint): Register "catch load" and "catch
4091 unload".
4092 * breakpoint.h (handle_solib_event): Declare.
4093 * NEWS: Add entry for "catch load" and "catch unload".
4094
4095 2012-01-24 Tom Tromey <tromey@redhat.com>
4096
4097 * ada-lang.c: Include gdb_vecs.h.
4098 * charset.c: Include gdb_vecs.h.
4099 * tracepoint.h: Include gdb_vecs.h.
4100 * gdb_vecs.h: New file.
4101
4102 2012-01-24 Pedro Alves <pedro@codesourcery.com>
4103
4104 * breakpoint.c (breakpoint_hit_catch_fork)
4105 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
4106 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
4107 * infrun.c (inferior_has_forked, inferior_has_vforked)
4108 (inferior_has_execd, inferior_has_called_syscall): Delete.
4109 (handle_syscall_event): Get syscall_number from the execution
4110 control state's wait status.
4111 (wait_for_inferior): Don't clear syscall_number.
4112
4113 2012-01-24 Pedro Alves <palves@redhat.com>
4114
4115 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
4116 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
4117 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
4118 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
4119 `ws' parameter.
4120 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
4121 false for events other than TARGET_SIGNAL_TRAP.
4122 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
4123 Add `ws' parameter.
4124 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
4125 events other than TARGET_SIGNAL_TRAP.
4126 (tracepoint_breakpoint_hit): Add `ws' parameter.
4127 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
4128 parameter.
4129 (bpstat_stop_status): Same.
4130 (pc_at_non_inline_function): Same.
4131 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
4132 to pass the current event's waitstatus to bpstat_stop_status
4133 and pc_at_non_inline_function.
4134
4135 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4136
4137 Code cleanup.
4138 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
4139 Update the function comment for it.
4140 (source_script_with_search): Call make_cleanup_fclose for STREAM.
4141 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
4142 for STREAM.
4143
4144 2012-01-24 Pedro Alves <palves@redhat.com>
4145
4146 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
4147 outside `bs->stop' block.
4148 (bpstat_what): Rework bp_shlib_event handling.
4149 (internal_bkpt_check_status): If the breakpoint is a
4150 bp_shlib_event, then set bs->stop and bs->print if
4151 stop_on_solib_events is set.
4152
4153 2012-01-24 Gary Benson <gbenson@redhat.com>
4154
4155 Delete #if 0'd out code.
4156 * stack.c (print_frame_label_vars): Remove.
4157 (catch_info): Likewise.
4158 (_initialize_stack): Remove "info catch" command.
4159 * NEWS: Mention the above.
4160
4161 2012-01-24 Pedro Alves <palves@redhat.com>
4162
4163 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
4164 it.
4165 (remote_notice_new_inferior): If the remote end doesn't support
4166 the multiprocess extensions, then the PID is fake.
4167 (add_current_inferior_and_thread): New.
4168 (remote_start_remote): Use it.
4169 (extended_remote_attach_1): Adjust.
4170 (extended_remote_create_inferior_1): Use
4171 add_current_inferior_and_thread.
4172
4173 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4174
4175 Fix watchpoints to be specific for each inferior.
4176 * breakpoint.c (watchpoint_in_thread_scope): Verify also
4177 current_program_space.
4178 * i386-nat.c (i386_inferior_data_cleanup): New.
4179 (i386_inferior_data_get): Replace variable inf_data_local by an
4180 inferior_data call.
4181 (i386_use_watchpoints): Initialize i386_inferior_data.
4182 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
4183 specific iterate_over_lwps.
4184
4185 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4186
4187 Fix watchpoints across inferior fork.
4188 * amd64-linux-nat.c (update_debug_registers_callback): Update the
4189 comment for linux_nat_iterate_watchpoint_lwps.
4190 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
4191 linux_nat_iterate_watchpoint_lwps.
4192 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
4193 * i386-linux-nat.c (update_debug_registers_callback): Update the
4194 comment for linux_nat_iterate_watchpoint_lwps.
4195 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
4196 linux_nat_iterate_watchpoint_lwps.
4197 (i386_linux_prepare_to_resume): New comment on Linux kernel.
4198 * i386-nat.c: Include inferior.h.
4199 (dr_mirror): Remove.
4200 (i386_inferior_data, struct i386_inferior_data)
4201 (i386_inferior_data_get): New.
4202 (i386_debug_reg_state): Use i386_inferior_data_get.
4203 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
4204 (i386_insert_watchpoint, i386_remove_watchpoint)
4205 (i386_stopped_data_address, i386_insert_hw_breakpoint)
4206 (i386_remove_hw_breakpoint): New variable state, use
4207 i386_debug_reg_state instead of DR_MIRROR.
4208 * linux-nat.c (delete_lwp): New declaration.
4209 (num_lwps): Move here from downwards.
4210 (delete_lwp_cleanup): New.
4211 (linux_child_follow_fork): Create new child_lp, call
4212 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
4213 PTRACE_DETACH.
4214 (num_lwps): Move upwards.
4215 (linux_nat_iterate_watchpoint_lwps): New.
4216 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
4217 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
4218
4219 2012-01-24 Joel Brobecker <brobecker@adacore.com>
4220
4221 GDB 7.4 released.
4222
4223 2012-01-23 Pedro Alves <palves@redhat.com>
4224
4225 * top.c (caution): Rename to ...
4226 (confirm): ... this.
4227 (show_caution): Rename to ...
4228 (show_confirm): ... this.
4229 (quit_cover): Adjust.
4230 (init_main): Adjust.
4231 * top.h (caution): Rename to ...
4232 (confirm): ... this.
4233 * utils.c (internal_vproblem, defaulted_query): Adjust.
4234
4235 2012-01-23 Pedro Alves <palves@redhat.com>
4236
4237 * top.c (caution): Update comment.
4238 (execute_command): Don't consider the current value of `caution'.
4239
4240 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
4241
4242 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
4243
4244 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
4245
4246 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
4247 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
4248 * target.c (target_fileio_pwrite): Remove buffer address from
4249 debug output.
4250 (target_fileio_pread): Likewise.
4251
4252 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4253
4254 * NEWS: Document remote "info proc" and "generate-core-file".
4255
4256 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4257
4258 * gdbarch.sh (find_memory_regions): New callback.
4259 * gdbarch.c, gdbarch.h: Regenerate.
4260
4261 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
4262 callback before falling back to target method.
4263
4264 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
4265 (linux_target_install_ops): No longer install it.
4266
4267 * linux-tdep.c (linux_find_memory_regions): New function.
4268 (linux_init_abi): Install it.
4269
4270 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4271
4272 * gdbarch.sh (make_corefile_notes): New architecture callback.
4273 * gdbarch.c: Regenerate.
4274 * gdbarch.h: Likewise.
4275
4276 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
4277 before target_make_corefile_notes. If NULL is returned, the
4278 target does not support core file generation.
4279
4280 * linux-nat.c: Include "linux-tdep.h".
4281 (find_signalled_thread, find_stop_signal): Remove.
4282 (linux_nat_do_thread_registers): Likewise.
4283 (struct linux_nat_corefile_thread_data): Likewise.
4284 (linux_nat_corefile_thread_callback): Likewise.
4285 (iterate_over_spus): Likewise.
4286 (struct linux_spu_corefile_data): Likewise.
4287 (linux_spu_corefile_callback): Likewise.
4288 (linux_spu_make_corefile_notes): Likewise.
4289 (linux_nat_collect_thread_registers): New function.
4290 (linux_nat_make_corefile_notes): Replace contents by call to
4291 linux_make_corefile_notes passing linux_nat_collect_thread_registers
4292 as native-only callback.
4293
4294 * linux-tdep.h: Include "bfd.h".
4295 (struct regcache): Add forward declaration.
4296 (linux_collect_thread_registers_ftype): New typedef.
4297 (linux_make_corefile_notes): Add prototype.
4298 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
4299 "regset.h", and "elf-bfd.h".
4300 (find_signalled_thread, find_stop_signal): New functions.
4301 (linux_spu_make_corefile_notes): Likewise.
4302 (linux_collect_thread_registers): Likewise.
4303 (struct linux_corefile_thread_data): New data structure.
4304 (linux_corefile_thread_callback): New funcion.
4305 (linux_make_corefile_notes): Likewise.
4306 (linux_make_corefile_notes_1): Likewise.
4307 (linux_init_abi): Install it.
4308
4309 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4310
4311 * gdbarch.sh (info_proc): New callback.
4312 * gdbarch.c, gdbarch.h: Regenerate.
4313
4314 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
4315 before falling back to the target info_proc callback.
4316
4317 * linux-nat.c: Do not include "cli/cli-utils.h".
4318 (linux_nat_info_proc): Remove.
4319 (linux_target_install_ops): No longer install it.
4320
4321 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
4322 (read_mapping): New function.
4323 (linux_info_proc): Likewise.
4324 (linux_init_abi): Install it.
4325
4326 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4327
4328 * defs.h (enum info_proc_what): Moved here from linux-nat.c
4329 * infcmd.c: (info_proc_cmd_1): New function.
4330 (info_proc_cmd): New function, moved here from equivalent routine
4331 orignally in linux-nat.c.
4332 (info_proc_cmd_mappings): Likewise.
4333 (info_proc_cmd_stat): Likewise.
4334 (info_proc_cmd_status): Likewise.
4335 (info_proc_cmd_cwd): Likewise.
4336 (info_proc_cmd_cmdline): Likewise.
4337 (info_proc_cmd_exe): Likewise.
4338 (info_proc_cmd_all): Likewise.
4339 (_initialize_infcmd): Install "info proc" command and subcommands.
4340
4341 * target.h (struct target_ops): Add to_info_proc.
4342 (target_info_proc): Add prototype.
4343 * target.c (target_info_proc): New function.
4344
4345 * procfs.c (procfs_info_proc): Add prototype.
4346 (info_proc_cmd): Rename into ...
4347 (procfs_info_proc): ... this. Update argument types as appropriate
4348 for a to_info_proc implementation. Handle "what" argument.
4349 (procfs_target): Install procfs_info_proc.
4350 (_initialize_procfs): No longer install "info proc" command.
4351
4352 * linux-nat.c: (enum info_proc_what): Remove.
4353 (linux_nat_info_proc_cmd_1): Rename into ...
4354 (linux_nat_info_proc): ... this. Update argument types as appropriate
4355 for a to_info_proc implementation.
4356 (linux_nat_info_proc_cmd): Remove.
4357 (linux_nat_info_proc_cmd_mappings): Likewise.
4358 (linux_nat_info_proc_cmd_stat): Likewise.
4359 (linux_nat_info_proc_cmd_status): Likewise.
4360 (linux_nat_info_proc_cmd_cwd): Likewise.
4361 (linux_nat_info_proc_cmd_cmdline): Likewise.
4362 (linux_nat_info_proc_cmd_exe): Likewise.
4363 (linux_nat_info_proc_cmd_all): Likewise.
4364 (linux_target_install_ops): Install linux_nat_info_proc.
4365 (_initialize_linux_nat): No longer install "info proc" command
4366 and subcommands.
4367
4368 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
4369
4370 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
4371 * config.in, configure: Regenerate.
4372
4373 * target.h (struct target_ops): Add to_fileio_readlink.
4374 (target_fileio_readlink): Add prototype.
4375 * target.c (target_fileio_readlink): New function.
4376
4377 * inf-child.c: Conditionally include <sys/param.h>.
4378 (inf_child_fileio_readlink): New function.
4379 (inf_child_target): Install it.
4380
4381 * remote.c (PACKET_vFile_readlink): New enum value.
4382 (remote_hostio_readlink): New function.
4383 (init_remote_ops): Install it.
4384 (_initialize_remote): Handle vFile:readlink packet type.
4385
4386 2012-01-20 Pedro Alves <palves@redhat.com>
4387 Ulrich Weigand <ulrich.weigand@linaro.org>
4388
4389 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
4390 * config.in, configure: Regenerate.
4391
4392 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
4393 to_fileio_pread, to_fileio_close, to_fileio_unlink.
4394 (target_fileio_open): Add prototype.
4395 (target_fileio_pwrite): Likewise.
4396 (target_fileio_pread): Likewise.
4397 (target_fileio_close): Likewise.
4398 (target_fileio_unlink): Likewise.
4399 (target_fileio_read_alloc): Likewise.
4400 (target_fileio_read_stralloc): Likewise.
4401
4402 * target.c: Include "gdb/fileio.h".
4403 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
4404 (default_fileio_target): New function.
4405 (target_fileio_open): Likewise.
4406 (target_fileio_pwrite): Likewise.
4407 (target_fileio_pread): Likewise.
4408 (target_fileio_close): Likewise.
4409 (target_fileio_unlink): Likewise.
4410 (target_fileio_close_cleanup): Likewise.
4411 (target_fileio_read_alloc_1): Likewise.
4412 (target_fileio_read_alloc): Likewise.
4413 (target_fileio_read_stralloc): Likewise.
4414
4415 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
4416 <fcntl.h>, and <unistd.h>.
4417 (inf_child_fileio_open_flags_to_host): New function.
4418 (inf_child_errno_to_fileio_error): Likewise.
4419 (inf_child_fileio_open): Likewise.
4420 (inf_child_fileio_pwrite): Likewise.
4421 (inf_child_fileio_pread): Likewise.
4422 (inf_child_fileio_close): Likewise.
4423 (inf_child_fileio_unlink): Likewise.
4424 (inf_child_target): Install to_fileio routines.
4425
4426 * remote.c (init_remote_ops): Install to_fileio routines.
4427
4428 2012-01-20 Pedro Alves <palves@redhat.com>
4429 Ulrich Weigand <ulrich.weigand@linaro.org>
4430
4431 * remote.c (remote_multi_process_p): Only check for multi-process
4432 protocol feature, do not check for extended protocol.
4433 (remote_supports_multi_process): Check for extended protocol here.
4434 (set_general_process): Likewise.
4435 (extended_remote_kill): Likewise.
4436 (remote_pid_to_str): Likewise.
4437 (remote_query_supported): Always query multiprocess mode.
4438
4439 2012-01-20 Pedro Alves <palves@redhat.com>
4440 Ulrich Weigand <ulrich.weigand@linaro.org>
4441
4442 * inferior.h (struct inferior): Add fake_pid_p.
4443 * inferior.c (exit_inferior_1): Clear fake_pid_p.
4444 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
4445 magic_null_ptid since the remote side doesn't provide a real PID.
4446
4447 2012-01-19 Tom Tromey <tromey@redhat.com>
4448
4449 * NEWS: Combine the two Python sections.
4450
4451 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4452
4453 * target.h (target_close): Update comment on the target's unpush state.
4454
4455 2012-01-19 Pedro Alves <palves@redhat.com>
4456
4457 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
4458 linux_nat_async directly instead of going through the target
4459 vector.
4460 * target.c (unpush_target): Close target after unpushing it, not
4461 before.
4462
4463 2012-01-19 Gary Benson <gbenson@redhat.com>
4464
4465 * mdebugread.c (sort_blocks): Replace integer constants with ones
4466 derived from FIRST_LOCAL_BLOCK.
4467
4468 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
4469 Jan Kratochvil <jan.kratochvil@redhat.com>
4470
4471 PR gdb/9538
4472 * symfile.c (find_separate_debug_file): New function.
4473 (terminate_after_last_dir_separator): Likewise.
4474 (find_separate_debug_file_by_debuglink): Also try realpath.
4475 * configure.ac (AC_CHECK_FUNCS): Add lstat.
4476 * configure: Regenerate.
4477 * config.in: Regenerate.
4478
4479 2012-01-18 Doug Evans <dje@google.com>
4480
4481 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
4482 (main.o): Remove rule.
4483 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
4484 (--with-sysroot): Rewrite.
4485 * configure: Regenerate.
4486 * config.in: Regenerate.
4487
4488 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
4489
4490 * parse.c (initialize_expout): New function.
4491 (reallocate_expout): Likewise.
4492 (parse_exp_in_context): Use `initialize_expout' and
4493 `reallocate_expout' when appropriate.
4494
4495 2012-01-18 Pedro Alves <palves@redhat.com>
4496
4497 * record.c (struct record_breakpoint, record_breakpoint_p)
4498 (record_breakpoints): New.
4499 (record_insert_breakpoint, record_remove_breakpoint): Manage
4500 record breakpoints list. Only remove breakpoints from the
4501 inferior if they had been inserted there in the first place.
4502
4503 2012-01-17 Doug Evans <dje@google.com>
4504
4505 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
4506 if we know we don't have a file name to look for.
4507
4508 2012-01-17 Pedro Alves <palves@redhat.com>
4509
4510 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
4511 the frame's stop reason is UNWIND_UNAVAILABLE.
4512
4513 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4514
4515 Fix compilation error.
4516 * m2-exp.y (yyerror): Use ANSI C prototype.
4517
4518 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
4519
4520 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
4521 (growbuf_by_size): Likewise.
4522 (yyerror): Likewise.
4523 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
4524 (modblock): Remove variable (was #if 0'ed).
4525 (parse_number): Convert prototype from K&R to ANSI C.
4526 (yyerror): Likewise.
4527 * objc-exp.y (parse_number): Likewise.
4528 (yyerror): Likewise.
4529 (yylex): Remove #if 0'ed code.
4530 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
4531 (yyerror): Likewise.
4532
4533 2012-01-16 Tom Tromey <tromey@redhat.com>
4534
4535 * NEWS: Add item.
4536 * symtab.h (compare_filenames_for_search): Declare.
4537 * symtab.c (compare_filenames_for_search): New function.
4538 (iterate_over_some_symtabs): Use it.
4539 * symfile.h (struct quick_symbol_functions)
4540 <map_symtabs_matching_filename>: Change spec.
4541 * psymtab.c (partial_map_symtabs_matching_filename): Use
4542 compare_filenames_for_search. Update for new spec.
4543 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
4544 compare_filenames_for_search. Update for new spec.
4545 * breakpoint.c (clear_command): Use compare_filenames_for_search.
4546
4547 2012-01-16 Tom Tromey <tromey@redhat.com>
4548
4549 PR python/13281:
4550 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
4551 (struct main_type) <flag_flag_enum>: New field.
4552 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
4553 * NEWS: Add entries.
4554 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
4555 enums.
4556 * python/lib/gdb/printing.py (_EnumInstance): New class.
4557 (FlagEnumerationPrinter): Likewise.
4558
4559 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
4560
4561 * breakpoint.c (create_sals_from_address_default): New function.
4562 (create_breakpoints_sal_default): Likewise.
4563 (decode_linespec_default): Likewise.
4564 (is_marker_spec): Removed.
4565 (strace_marker_p): New function.
4566 (init_breakpoint_sal): Using `strace_marker_p' instead of
4567 `is_marker_spec'.
4568 (create_breakpoint): Call method `create_sals_from_address' from
4569 breakpoint_ops, replacing code that created SALs conditionally
4570 on the type of the breakpoint. Call method `create_breakpoints_sal',
4571 replacing code that created breakpoints conditionally on the type
4572 wanted.
4573 (base_breakpoint_create_sals_from_address): New function.
4574 (base_breakpoint_create_breakpoints_sal): Likewise.
4575 (base_breakpoint_decode_linespec): Likewise.
4576 (base_breakpoint_ops): Add methods
4577 `base_breakpoint_create_sals_from_address',
4578 `base_breakpoint_create_breakpoints_sal' and
4579 `base_breakpoint_decode_linespec'.
4580 (bkpt_create_sals_from_address): New function.
4581 (bkpt_create_breakpoints_sal): Likewise.
4582 (bkpt_decode_linespec): Likewise.
4583 (tracepoint_create_sals_from_address): Likewise.
4584 (tracepoint_create_breakpoints_sal): Likewise.
4585 (tracepoint_decode_linespec): Likewise.
4586 (strace_marker_create_sals_from_address): Likewise.
4587 (strace_marker_create_breakpoints_sal): Likewise.
4588 (strace_marker_decode_linespec): Likewise.
4589 (strace_marker_breakpoint_ops): New variable.
4590 (addr_string_to_sals): Remove `marker_spec'. Call method
4591 `decode_linespec' from breakpoint_ops, replacing code that decoded
4592 an address string into a SAL. Use `strace_marker_p' instead of
4593 `marker_spec'.
4594 (strace_command): Decide whether we are dealing with a static
4595 tracepoint with marker or not. Use the appropriate breakpoint_ops.
4596 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
4597 * breakpoint.h (linespec_result, linespec_sals): New forward
4598 declarations.
4599 (breakpoint_ops) <create_sals_from_address>,
4600 <create_breakpoints_sal>, <decode_linespec>: New methods.
4601
4602 2012-01-14 Doug Evans <dje@google.com>
4603
4604 * NEWS: Update text for "maint set python print-stack".
4605 It is deprecated in gdb 7.4 and deleted in 7.5.
4606
4607 2012-01-13 Eli Zaretskii <eliz@gnu.org>
4608
4609 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
4610 including curses.h.
4611
4612 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
4613
4614 * configure: Regenerate.
4615 * config.in: Regenerate.
4616
4617 2012-01-12 Keith Seitz <keiths@redhat.com>
4618
4619 PR mi/10586
4620 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
4621 (ANONYMOUS_UNION_NAME): Define.
4622 (is_path_expr_parent): New function.
4623 (get_path_expr_parent): New function.
4624 (is_anonymous_child): New function.
4625 (create_child_with_value): If the child is anonymous and without
4626 a name, assign an object name to it.
4627 (c_describe_child): Use get_path_expr_parent to determine
4628 the parent expression.
4629 If there field represents an anonymous struct or union and
4630 has no name, set an appropriate display name and expression.
4631 (cplus_describe_child): Likewise.
4632
4633 2012-01-12 Pedro Alves <palves@redhat.com>
4634
4635 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
4636 available when %ebp is found to be zero (outermost).
4637
4638 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
4639
4640 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
4641 an internal gdb_static_assert.
4642 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
4643
4644 2012-01-11 Tom Tromey <tromey@redhat.com>
4645
4646 PR gdb/9598:
4647 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
4648 catch" and "catch throw".
4649
4650 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
4651
4652 * blockframe.c (block_innermost_frame): Start search from selected
4653 frame, if present, or otherwise the current frame.
4654
4655 * c-exp.y (variable): Update innermost_block for
4656 'block COLONCOLON NAME' clause.
4657 * m2-exp.y (variable): Ditto.
4658 * objc-exp.y (variable): Ditto.
4659
4660 2012-01-10 Tom Tromey <tromey@redhat.com>
4661
4662 PR python/13199:
4663 * python/python.c (finish_python_initialization): Set sys.argv.
4664
4665 2012-01-10 Doug Evans <dje@google.com>
4666
4667 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
4668 "want_line_info". All callers updated.
4669 (dwarf_decode_lines_1): New function.
4670 (handle_DW_AT_stmt_list): Add function comment.
4671 New arg "want_line_info". All callers updated.
4672 (read_file_scope,read_type_unit_scope): Move comment from
4673 handle_DW_AT_stmt_list to here.
4674
4675 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4676
4677 Fix regression after libiberty/ update for GCC PR 6057 and others.
4678 * c-exp.y (operator) <OPERATOR DELETE>
4679 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
4680 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
4681 (make_builtin_type, make_name): New variable i, add gdb_assert.
4682 (operator) <OPERATOR NEW>: Update ARGS to 3.
4683 (operator) <OPERATOR DELETE>: Add trailing space.
4684 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
4685 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
4686 * cp-support.c (cp_canonicalize_string): Check NULL from
4687 cp_comp_to_string, call warning and return.
4688
4689 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4690
4691 Fix duplicate .o files after omitting libbfd.a.
4692 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
4693 (SFILES): Add corelow.c.
4694 (COMMON_OBS): Add corelow.o.
4695 (ALLDEPFILES): Remove corelow.c.
4696 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
4697 * config/alpha/alpha-osf3.mh: Likewise.
4698 * config/alpha/fbsd.mh: Likewise.
4699 * config/arm/nbsdaout.mh: Likewise.
4700 * config/arm/nbsdelf.mh: Likewise.
4701 * config/i386/i386gnu.mh: Likewise.
4702 * config/ia64/hpux.mh: Likewise.
4703 * config/ia64/linux.mh: Likewise.
4704 * config/m32r/linux.mh: Likewise.
4705 * config/m68k/linux.mh: Likewise.
4706 * config/mips/irix5.mh: Likewise.
4707 * config/mips/irix6.mh: Likewise.
4708 * config/pa/hpux.mh: Likewise.
4709 * config/pa/linux.mh: Likewise.
4710 * config/powerpc/aix.mh: Likewise.
4711 * config/sparc/linux.mh: Likewise.
4712 * config/sparc/linux64.mh: Likewise.
4713 * config/sparc/sol2.mh: Likewise.
4714 * config/vax/vax.mh: Likewise.
4715 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
4716 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
4717 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
4718 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
4719 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
4720 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
4721 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
4722 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
4723 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
4724 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
4725 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
4726 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
4727 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
4728 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
4729 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
4730 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
4731 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
4732 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
4733 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
4734 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
4735 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
4736 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
4737 corelow.o from gdb_target_obs.
4738 * corefile.c (core_target): Update the comment on NULL value.
4739 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
4740 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
4741 MATCHES. Drop YUMMY set on NULL.
4742 (core_close): Do not call exit_inferior_silent on zero PID. Do not
4743 reclaim CORE_DATA if it is already NULL.
4744
4745 2012-01-09 Doug Evans <dje@google.com>
4746
4747 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
4748 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
4749
4750 2012-01-09 Keith Seitz <keiths@redhat.com>
4751
4752 * breakpoint.c (wrapper.h): Don't include.
4753
4754 2012-01-09 Keith Seitz <keiths@redhat.com>
4755
4756 * Makefile.in (SFILES): Remove wrapper.c.
4757 (HFILES_NO_SRCDIR): Remove wrapper.h.
4758 (COMMON_OBS): Remove wrapper.o.
4759 * cli/cli-interp.c: Don't inlude wrapper.h.
4760 * corelow.c: Likewise.
4761 (core_open): Replace gdb_target_find_new_threads with
4762 TRY_CATCH around target_find_new_threads.
4763 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
4764 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
4765 * varobj.c (varobj_create): Likewise for parse_exp_1 and
4766 evaluate_expression.
4767 (varobj_set_value): Likewise for evaluate_expression and
4768 value_assign.
4769 (install_new_variable): Likewise for value_fetch_lazy.
4770 (adjust_value_for_child_access): Likewise for value_ind.
4771 (c_describe_child): Likewise for value_subscript and
4772 value_ind.
4773 (c_value_of_root): Likewise for evaluate_expression.
4774 * wrapper.c: Remove.
4775 * wrapper.h: Remove.
4776
4777 2012-01-09 Doug Evans <dje@google.com>
4778
4779 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
4780 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
4781 "abfd" args with "section". All callers updated.
4782 Error checking code moved ...
4783 (error_check_comp_unit_head): ... here. New function.
4784 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
4785 Delete arg "abfd". New arg "type_offset". All callers updated.
4786 (create_debug_types_hash_table): Simplify by using
4787 read_and_check_type_unit_head.
4788
4789 * parser-defs.h (namecopy): Delete.
4790 * parse.c (namecopy, namecopy_size): Move into copy_name.
4791
4792 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
4793
4794 Partially fix duplicate .o files after omitting libbfd.a.
4795 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
4796 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4797 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
4798 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4799 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
4800 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
4801 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
4802
4803 2012-01-09 Pedro Alves <palves@redhat.com>
4804
4805 * MAINTAINERS: Update my email address.
4806
4807 2012-01-08 Doug Evans <dje@google.com>
4808
4809 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
4810 n_type_units. Rename type_comp_units to all_type_units.
4811 All uses updated.
4812 (add_signatured_type_cu_to_table): Renamed from
4813 add_signatured_type_cu_to_list. All callers updated.
4814
4815 * gdbtypes.h (struct cplus_struct_type): Delete member
4816 nfn_fields_total. All uses removed.
4817
4818 2012-01-06 Doug Evans <dje@google.com>
4819
4820 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
4821 to top of file.
4822 (dwarf2_find_comp_unit): Delete.
4823 (process_psymtab_comp_unit): Make result "void".
4824 Delete args buffer, info_ptr, buffer_size, and replace with
4825 "section". All callers updated.
4826 (dwarf2_build_psymtabs_hard): Simplify.
4827
4828 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
4829 Thiago Jung Bauermann <bauerman@br.ibm.com>
4830
4831 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
4832 before `struct gdb_exception'.
4833 * breakpoint.c (update_global_location_list_nothrow)
4834 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
4835 * cp-abi.c (value_rtti_type): Likewise.
4836 * cp-support.c (cp_validate_operator): Likewise.
4837 * infrun.c (insert_exception_resume_breakpoint)
4838 (check_exception_resume, keep_going): Likewise.
4839 * mi-interp.c (mi_breakpoint_created)
4840 (mi_breakpoint_modified): Likewise.
4841 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
4842 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
4843 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
4844
4845 2012-01-05 Doug Evans <dje@google.com>
4846
4847 * dwarf2read.c (statement_prologue): Delete, unused.
4848
4849 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
4850 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
4851
4852 * dwarf2read.c (comp_unit_header): Delete, unused.
4853
4854 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
4855
4856 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
4857 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
4858
4859 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
4860
4861 * infrun.c (normal_stop): Don't skip calling the normal_stop
4862 observers if the thread was doing a multi-step, but stopped for
4863 some reason other than stepping.
4864
4865 2012-01-05 Pedro Alves <alves.ped@gmail.com>
4866
4867 * cli/cli-decode.h: Add comments.
4868 (CMD_LIST_AMBIGUOUS): Moved to command.h
4869 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
4870 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
4871 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
4872 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
4873 (add_com, add_com_alias, add_info, add_info_alias)
4874 (complete_on_cmdlist, complete_on_enum, help_list): Remove
4875 declarations.
4876 * command.h: Add and adjust comments.
4877 (CMD_LIST_AMBIGUOUS): Moved here.
4878 (help_cmd, help_cmd_list): Delete declarations.
4879
4880 2012-01-04 Doug Evans <dje@google.com>
4881
4882 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
4883 All callers updated.
4884 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
4885 Replace all arguments with "per_cu". All callers updated.
4886
4887 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
4888
4889 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
4890 New arg "per_cu". All callers updated.
4891
4892 Delete #if 0'd out code.
4893 * language.c (binop_result_type): Delete.
4894 (simple_type, ordered_type, same_type, integral_type): Delete.
4895 (numeric_type, character_type, string_type, boolean_type): Delete.
4896 (float_type, structured_type): Delete.
4897 * language.h: Update.
4898
4899 2012-01-04 Tom Tromey <tromey@redhat.com>
4900
4901 * python/py-value.c (valpy_binop): Initialize 'res_val'.
4902
4903 2012-01-04 Joel Brobecker <brobecker@adacore.com>
4904
4905 * corefile.c (close_exec_file): Delete.
4906 (reopen_exec_file): Remove commented out code that seems related
4907 to close_exec_file, which is being deleted here.
4908 * inferior.h (close_exec_file): Delete.
4909 * fork-child.c (fork_inferior): Remove call to fork_inferior.
4910
4911 2012-01-04 Joel Brobecker <brobecker@adacore.com>
4912
4913 * ada-lang.c: #include "cli/cli-utils.h".
4914 (get_selections): Use skip_spaces.
4915 (ada_get_next_arg): Use skip_spaces and skip_to_space.
4916 (catch_ada_exception_command_split): Use skip_spaces.
4917 (ada_decode_assert_location): Likewise.
4918
4919 2012-01-04 Joel Brobecker <brobecker@adacore.com>
4920
4921 * linespec.c (decode_line_internal): Check for C++ or Java
4922 compound constructs only if the current language is C, C++
4923 or Java.
4924
4925 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4926
4927 Revert:
4928 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4929 Joel Brobecker <brobecker@adacore.com>
4930 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
4931 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
4932 3 times.
4933 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
4934 fall through into AT_ENTRY_POINT.
4935 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
4936 DUMMY_ADDR with it.
4937 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
4938 PPC_INSN_SIZE skip to 3 times.
4939
4940 2012-01-04 Joel Brobecker <brobecker@adacore.com>
4941
4942 * linespec.c (add_minsym): Preserve function descriptors.
4943
4944 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
4945
4946 * breakpoint.c (all_locations_are_pending): Consider locations
4947 in program spaces executing during startup pending as well.
4948
4949 2012-01-04 Joel Brobecker <brobecker@adacore.com>
4950
4951 Copyright year update in most files of the GDB Project.
4952
4953 2012-01-04 Joel Brobecker <brobecker@adacore.com>
4954
4955 * copyright.sh: Delete.
4956 * copyright.py: Rewrite.
4957
4958 2012-01-04 Joel Brobecker <brobecker@adacore.com>
4959
4960 * gnulib/extra/update-copyright: New file, imported from gnulib.
4961
4962 2012-01-04 Joel Brobecker <brobecker@adacore.com>
4963
4964 * README (Copyright and License Notices): New section.
4965
4966 2012-01-03 Tom Tromey <tromey@redhat.com>
4967
4968 PR python/12533:
4969 * python/py-value.c (valpy_dereference, valpy_get_address
4970 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
4971 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
4972 (valpy_absolute, valpy_richcompare): Free intermediate values.
4973
4974 2011-01-03 Joel Brobecker <brobecker@adacore.com>
4975
4976 * ada-lang.c: Reformat the copyright notice.
4977
4978 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4979
4980 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
4981 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
4982 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
4983 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
4984 Revert this part of:
4985 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4986 Build gdb directly from *.o files not using libgdb.a.
4987 * Makefile.in (COMMON_OBS): Remove solib-target.o.
4988
4989 2012-01-02 Joel Brobecker <brobecker@adacore.com>
4990
4991 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
4992 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
4993 Reformat the copyright header.
4994
4995 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4996
4997 Revert this part of:
4998 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4999 Remove the gdbtui binary.
5000 * gdb.c (main): Remove args.interpreter_p initialization.
5001 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
5002 * main.h (struct captured_main_args): Remove interpreter_p.
5003
5004 2012-01-02 Joel Brobecker <brobecker@adacore.com>
5005
5006 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
5007
5008 2012-01-02 Joel Brobecker <brobecker@adacore.com>
5009
5010 * top.c (print_gdb_version): Update copyright year.
5011
5012 2012-01-02 Yao Qi <yao@codesourcery.com>
5013
5014 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
5015
5016 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5017 Joel Brobecker <brobecker@adacore.com>
5018
5019 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
5020 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
5021 3 times.
5022 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
5023 fall through into AT_ENTRY_POINT.
5024 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
5025 DUMMY_ADDR with it.
5026 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
5027 PPC_INSN_SIZE skip to 3 times.
5028
5029 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5030
5031 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
5032 the return value.
5033 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
5034
5035 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5036
5037 Build gdb directly from *.o files not using libgdb.a.
5038 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
5039 (COMMON_OBS): Remove solib-target.o.
5040 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
5041 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
5042 (LIBGDB_OBS, libgdb.a): Move it above.
5043 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
5044 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
5045 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
5046 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
5047 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
5048 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
5049 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
5050 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
5051 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
5052 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
5053 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
5054 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
5055 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
5056 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
5057 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
5058 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
5059 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
5060 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
5061 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
5062 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
5063 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
5064 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
5065 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
5066 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
5067 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
5068 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
5069 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
5070
5071 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5072
5073 Remove the gdbtui binary.
5074 * .gitignore (/gdbtui): Remove.
5075 * Makefile.in (TUI): Remove.
5076 (SUBDIR_TUI_OBS): Remove tui-main.o.
5077 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
5078 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
5079 (tui-main.o): Remove.
5080 (all_object_files): Remove tui-main.o.
5081 * NEWS: New note for the gdbtui removal.
5082 * configure: Rebuilt.
5083 * configure.ac: No longer add all-tui, clean-tui, install-tui and
5084 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
5085 CONFIG_UNINSTALL respectively.
5086 * gdb.c (main): Remove args.interpreter_p initialization.
5087 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
5088 * main.h (struct captured_main_args): Remove interpreter_p.
5089 * tui/tui-main.c: Remove.
5090
5091 2012-01-01 Doug Evans <dje@google.com>
5092
5093 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
5094 (dwarf2_physname, read_import_statement): Ditto.
5095 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
5096 (process_structure_scope read_subroutine_type): Ditto.
5097 (read_typedef, load_partial_dies, read_partial_die): Ditto.
5098 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
5099 (dwarf2_fetch_die_location_block): Ditto.
5100 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
5101
5102 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
5103 All callers updated.
5104 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
5105 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
5106 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
5107
5108 * dwarf2read.c (load_cu): Move assert to more useful location.
5109
5110 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
5111 All callers updated.
5112
5113 * dwarf2read.c (dwarf2_per_objfile): Add comment.
5114 (dwarf2_elf_names): Minor reformat.
5115 (dwarf2_per_cu_data): Tweak comment.
5116 (dwarf2_read_section): Fix comment.
5117 (create_all_comp_units): Fix comment.
5118 (load_full_comp_unit): Fix comment.
5119 (process_full_comp_unit): Fix comment.
5120 (read_signatured_type): Fix comment.
5121
5122 For older changes see ChangeLog-2011.
5123 \f
5124 Local Variables:
5125 mode: change-log
5126 left-margin: 8
5127 fill-column: 74
5128 version-control: never
5129 coding: utf-8
5130 End: