gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
1 2013-06-26 Pedro Alves <pedro@codesourcery.com>
2 Yao Qi <yao@codesourcery.com>
3
4 * tracepoint.c (trace_dump_command): Move code to ...
5 (get_traceframe_location): ... here. New.
6
7 2013-06-26 Pedro Alves <pedro@codesourcery.com>
8 Yao Qi <yao@codesourcery.com>
9
10 * tracepoint.c (trace_dump_command): GDB emits an error
11 instead of a warning when a traceframe is not selected.
12
13 2013-06-26 Pedro Alves <pedro@codesourcery.com>
14 Yao Qi <yao@codesourcery.com>
15
16 * tracepoint.c (tracepoint_list, stepping_list): Remove.
17 (clear_collection_list): Free fields 'aexpre_list' and 'list'
18 in collection_list.
19 (do_clear_collection_list, init_collection_list): New.
20 (encode_actions): Add local variables 'tracepoint_list' and
21 'stepping_list'. Call init_collection_list and make cleanup
22 which calls do_clear_collection_list. Don't call
23 clear_collection_list.
24 (_initialize_tracepoint): Delete references to
25 'tracepoint_list' and 'stepping_list'.
26
27 2013-06-25 Tom Tromey <tromey@redhat.com>
28
29 * common/create-version.sh (date): Use "$", not "$$" in sed
30 expression.
31
32 2013-06-25 Kevin Buettner <kevinb@redhat.com>
33
34 * NEWS (New targets): Add entry for TI MSP430.
35
36 2013-06-25 Yao Qi <yao@codesourcery.com>
37
38 * remote.c (remote_start_remote): Move code to upload tsv
39 earlier.
40
41 2013-06-25 Yao Qi <yao@codesourcery.com>
42 Hui Zhu <hui@codesourcery.com>
43 Pedro Alves <palves@redhat.com>
44
45 PR breakpoints/15075
46 PR breakpoints/15434
47 * breakpoint.c (bpstat_stop_status): Call
48 b->ops->after_condition_true.
49 (update_dprintf_command_list): Don't append "continue" command
50 to the command list of dprintf breakpoint.
51 (base_breakpoint_after_condition_true): New function.
52 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
53 (dprintf_after_condition_true): New function.
54 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
55 * breakpoint.h (breakpoint_ops): Add after_condition_true.
56
57 2013-06-24 Kevin Buettner <kevinb@redhat.com>
58
59 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
60 (ALLDEPFILES): Add msp430-tdep.c.
61 * configure.tgt (msp430*-*-elf): New target.
62 * msp430-tdep.c: New file.
63
64 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
65
66 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
67 microMIPS synthetic symbols.
68
69 2013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
70
71 * objfiles.h (pc_in_section): New prototype.
72 (in_plt_section): Remove name argument, replace prototype with
73 static inline function.
74 * mips-tdep.h: Include "objfiles.h".
75 (in_mips_stubs_section): New function.
76 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
77 in_solib_call_trampoline member.
78 (hppa_in_solib_call_trampoline): Remove name argument.
79 * objfiles.c (pc_in_section): New function.
80 (in_plt_section): Remove function.
81 * mips-linux-tdep.c: Include "objfiles.h".
82 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
83 name argument. Return 1 rather than the low 16-bit halfword of
84 any instruction examined.
85 (mips_linux_in_dynsym_resolve_code): Update
86 mips_linux_in_dynsym_stub call accordingly.
87 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
88 rather than an equivalent hand-coded sequence.
89 * hppa-hpux-tdep.c (in_opd_section): Remove function.
90 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
91 (hppa64_hpux_in_solib_call_trampoline): Likewise.
92 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
93 in_opd_section.
94 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
95 on call to tdep->in_solib_call_trampoline.
96 (hppa_in_solib_call_trampoline): Remove name argument, update
97 according to in_plt_section change.
98 (hppa_skip_trampoline_code): Update according to in_plt_section
99 change.
100 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
101 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
102 Likewise.
103 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
104 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
105 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
106 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
107 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
108 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
109 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
110 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
111 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
112 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
113 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
114 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
115 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
116
117 2013-06-24 Joel Brobecker <brobecker@adacore.com>
118
119 * common/create-version.sh: Fix expansion of $host_alias
120 and $target_alias in generation of HOST_NAME and TARGET_NAME
121 (resp.).
122
123 2013-06-24 Tom Tromey <tromey@redhat.com>
124
125 * common/create-version.sh: New file.
126 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
127 create-version.sh.
128 (HFILES_NO_SRCDIR): Use common/version.h.
129 * version.in: Move to ...
130 * common/version.in: ... here. Replace date with "DATE".
131 * version.h: Move to ...
132 * common/version.h: ... here.
133
134 2013-06-21 Joel Brobecker <brobecker@adacore.com>
135
136 * gdb/gnulib/Makefile.in: Update date in copyright header.
137 * gdb/gnulib/configure.ac: Ditto.
138 * gdb/gnulib/update-gnulib.sh: Ditto.
139
140 2013-06-21 Joel Brobecker <brobecker@adacore.com>
141
142 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
143 "gdb/gnulib/import".
144
145 2013-06-21 Will Newton <will.newton@linaro.org>
146
147 * doublest.c (ldfrexp): Remove function.
148 (convert_doublest_to_floatformat): Call frexpl instead of
149 ldfrexp.
150
151 2013-06-21 Will Newton <will.newton@linaro.org>
152
153 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
154 * gnulib/aclocal.m4: Regenerate.
155 * gnulib/config.in: Regenerate.
156 * gnulib/configure: Regenerate.
157 * gnulib/import/Makefile.am: Update.
158 * gnulib/import/Makefile.in: Update.
159 * gnulib/import/m4/gnulib-cache.m4: Update.
160 * gnulib/import/m4/gnulib-comp.m4: Update.
161 * gnulib/import/float+.h: Import.
162 * gnulib/import/float.c: Import.
163 * gnulib/import/float.in.h: Import.
164 * gnulib/import/fpucw.h: Import.
165 * gnulib/import/frexp.c: Import.
166 * gnulib/import/frexpl.c: Import.
167 * gnulib/import/isnan.c: Import.
168 * gnulib/import/isnand-nolibm.h: Import.
169 * gnulib/import/isnand.c: Import.
170 * gnulib/import/isnanl-nolibm.h: Import.
171 * gnulib/import/isnanl.c: Import.
172 * gnulib/import/itold.c: Import.
173 * gnulib/import/m4/exponentd.m4: Import.
174 * gnulib/import/m4/exponentl.m4: Import.
175 * gnulib/import/m4/float_h.m4: Import.
176 * gnulib/import/m4/fpieee.m4: Import.
177 * gnulib/import/m4/frexp.m4: Import.
178 * gnulib/import/m4/frexpl.m4: Import.
179 * gnulib/import/m4/isnand.m4: Import.
180 * gnulib/import/m4/isnanl.m4: Import.
181 * gnulib/import/m4/math_h.m4: Import.
182 * gnulib/import/math.c: Import.
183 * gnulib/import/math.in.h: Import.
184
185 2013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
186
187 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
188 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
189 signature_INTEL_edx comparisons.
190
191 2013-06-20 Doug Evans <dje@google.com>
192
193 symtab/15652
194 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
195 All callers updated.
196 (open_dwp_file): If we can't find the dwp file, search the basename
197 in debug-file-directory.
198
199 * dwarf2read.c (struct dwp_file): Fix comment.
200 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
201
202 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
203 better.
204
205 2013-06-20 Yao Qi <yao@codesourcery.com>
206
207 * breakpoint.c (create_breakpoint): Fix code indentation.
208
209 2013-06-20 Yao Qi <yao@codesourcery.com>
210
211 * breakpoint.c (create_breakpoints_sal_default): Remove
212 parameter 'lsal'. Update declaration.
213 (bkpt_create_breakpoints_sal): Caller update.
214 (tracepoint_create_breakpoints_sal): Likewise.
215
216 2013-06-20 Pedro Alves <pedro@codesourcery.com>
217 Yao Qi <yao@codesourcery.com>
218
219 * NEWS: Mention the new option '--skip-unavailable' of command
220 -data-list-register-values.
221 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
222 --skip-unavailable option. Adjust to use output_register.
223 (output_register): Add new 'skip_unavailable' parameter.
224 Handle it.
225
226 2013-06-19 Mike Frysinger <vapier@gentoo.org>
227
228 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
229 common/i386-gcc-cpuid.h.
230 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
231 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
232 Copy the latest version from upstream gcc.
233 * common/linux-btrace.c: Include i386-cpuid.h.
234 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
235 call to i386_cpuid.
236 (cpu_supports_btrace): Likewise.
237 * go32-nat.c: Include i386-cpuid.h.
238 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
239
240 2013-06-19 Doug Evans <dje@google.com>
241
242 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
243 (get_section_index): Ditto.
244
245 2013-06-19 Tom Tromey <tromey@redhat.com>
246
247 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
248 "dprintf" help.
249
250 2013-06-18 Doug Evans <dje@google.com>
251
252 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
253 before using it.
254 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
255 Move test of cu_index closer to use. Print complaint if cu_index
256 is bad.
257
258 2013-06-18 Joel Brobecker <brobecker@adacore.com>
259
260 * machoread.c (oso_vector): Delete this global.
261 (macho_register_oso): Add new parameter "oso_vector_ptr".
262 Use it instead of the "oso_vector" global.
263 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
264 (macho_symfile_read): Use a local oso_vector, to be free'ed
265 at the end of this function, in place of the old "oso_vector"
266 global. Update various function calls accordingly. Use one
267 single cleanup chain for the entire function.
268
269 2013-06-18 Joel Brobecker <brobecker@adacore.com>
270
271 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
272 DWARF2_PER_OBJFILE by uses of DATA instead.
273
274 2013-06-18 Tom Tromey <tromey@redhat.com>
275
276 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
277 argument.
278 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
279 Special case signals other than GDB_SIGNAL_TRAP.
280 (explains_signal_watchpoint): New function.
281 (base_breakpoint_explains_signal): Add 'sig' argument.
282 (initialize_breakpoint_ops): Set 'explains_signal' method for
283 watchpoints.
284 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
285 signal argument.
286 (bpstat_explains_signal): Likewise.
287 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
288
289 2013-06-18 Tom Tromey <tromey@redhat.com>
290
291 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
292
293 2013-06-18 Tom Tromey <tromey@redhat.com>
294
295 * python/python.c (finish_python_initialization): Decref
296 'pythondir' on failure path as well.
297
298 2013-06-18 Tom Tromey <tromey@redhat.com>
299
300 PR symtab/15391:
301 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
302 after taking bits_to_skip into account. Sign extend byte_offset.
303 * utils.h (gdb_sign_extend): Declare.
304 * utils.c (gdb_sign_extend): New function.
305
306 2013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
307
308 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
309
310 2013-06-17 Pierre Muller <muller@sourceware.org>
311
312 * corelow.c (core_open): Print GDB signal name instead of target
313 signal number.
314
315 2013-06-17 Mike Frysinger <vapier@gentoo.org>
316
317 * .gitignore: Add /gcore.
318
319 2013-06-13 Doug Evans <dje@google.com>
320
321 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
322 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
323
324 2013-06-12 Phil Muldoon <pmuldoon@redhat.com>
325
326 * stack.c (backtrace_command_1): Fix indentation.
327
328 2013-06-11 Joel Brobecker <brobecker@adacore.com>
329
330 * window-nat.c (thread_rec): Add missing empty line after
331 local variable declaration.
332
333 2013-06-11 Joel Brobecker <brobecker@adacore.com>
334
335 * windows-nat.c (thread_rec): Revert format used to print
336 error code returned by SuspendThread from %d back to %u.
337
338 2013-06-11 Joel Brobecker <brobecker@adacore.com>
339
340 * windows-nat.c (windows_continue): Add "0x" prefix for thread
341 ID in debug trace.
342 (get_windows_debug_event): Likewise, for all debug traces.
343
344 2013-06-11 Joel Brobecker <brobecker@adacore.com>
345
346 * window-nat.c (thread_rec): Add thread ID in SuspendThread
347 warning message.
348
349 2013-06-08 Pedro Alves <pedro@codesourcery.com>
350 Yao Qi <yao@codesourcery.com>
351
352 * mi/mi-main.c (get_register): Remove declaration.
353 (output_register): Declare.
354 (mi_cmd_data_list_register_values): Remove local variable
355 'tuple_cleanup'. Move some code into output_register.
356 (get_register): Renamed to ...
357 (output_register): ... this. Output the register's
358 "number" ui_out tuple here.
359
360 2013-06-07 Pedro Alves <palves@redhat.com>
361
362 * darwin-nat.c: Fix formating in copyright header.
363 * darwin-nat.h: Likewise.
364 * gnu-nat.c: Likewise.
365 * machoread.c: Likewise.
366
367 2013-06-07 Pedro Alves <palves@redhat.com>
368
369 PR server/14823
370 * regformats/regdat.sh: Output #include tdesc.h. Make globals
371 static. Output a global target description pointer.
372 (init_registers_${name}): Adjust to initialize a
373 target description structure.
374
375 2013-06-07 Will Newton <will.newton@linaro.org>
376
377 * printcmd.c (build_address_symbolic): Call
378 gdbarch_addr_bits_remove for text minimal symbols.
379
380 2013-06-07 Will Newton <will.newton@linaro.org>
381
382 * MAINTAINERS: Add myself to Write After Approval.
383
384 2013-06-07 Yao Qi <yao@codesourcery.com>
385
386 * tracepoint.c (start_tracing): Move code to ...
387 (trace_reset_local_state): ... here. New.
388 (disconnect_tracing): Don't call set_current_traceframe,
389 set_tracepoint_num, and set_traceframe_context. Call
390 trace_reset_local_state instead.
391 (tfile_close): Call trace_reset_local_state.
392 * ctf.c (ctf_close): Likewise.
393 * remote.c (remote_close): Likewise.
394 * tracepoint.h (trace_reset_local_state): Declare.
395
396 2013-06-06 Doug Evans <dje@google.com>
397
398 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
399 and fix header docs.
400
401 2013-06-05 Doug Evans <dje@google.com>
402 Keith Seitz <keiths@redhat.com>
403
404 PR 15519
405 * cp-namespace.c (find_symbol_in_baseclass): Call
406 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
407 Check result of call to lookup_symbol_static.
408 Call lookup_static_symbol_aux unconditionally.
409 Call check_typedef on base types before accessing them.
410 (cp_lookup_nested_symbol): Fix comment.
411
412 2013-06-05 Luis Machado <lgustavo@codesourcery.com>
413
414 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
415 minimal symbols pointing to function descriptors.
416
417 2013-06-05 Tom Tromey <tromey@redhat.com>
418
419 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
420
421 2013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
422 Pedro Alves <palves@redhat.com>
423
424 * remote.c (remote_wait_as): Restore signal handler before returning
425 when GDB gets a notification.
426
427 2013-06-04 Gary Benson <gbenson@redhat.com>
428
429 PR 2328
430 * breakpoint.h (handle_solib_event): Moved function declaration
431 to solib.h.
432 * breakpoint.c (handle_solib_event): Moved function to solib.c.
433 (bpstat_stop_status): Pass new argument to handle_solib_event.
434 * solib.h (update_solib_breakpoints): New function declaration.
435 (handle_solib_event): Moved function declaration from
436 breakpoint.h.
437 * solib.c (update_solib_breakpoints): New function.
438 (handle_solib_event): Moved function from breakpoint.c.
439 Updated to call solib_ops->handle_event if not NULL.
440 * solist.h (target_so_ops): New fields "update_breakpoints" and
441 "handle_event".
442 * infrun.c (set_stop_on_solib_events): New function.
443 (_initialize_infrun): Use the above for "set
444 stop-on-solib-events".
445 (handle_inferior_event): Pass new argument to handle_solib_event.
446 * solib-svr4.c (probe.h): New include.
447 (svr4_free_library_list): New forward declaration.
448 (probe_action): New enum.
449 (probe_info): New struct.
450 (probe_info): New static variable.
451 (NUM_PROBES): New definition.
452 (svr4_info): New fields "using_xfer", "probes_table" and
453 "solib_list".
454 (free_probes_table): New function.
455 (free_solib_list): New function.
456 (svr4_pspace_data_cleanup): Free probes table and solib list.
457 (svr4_copy_library_list): New function.
458 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
459 (svr4_read_so_list): New parameter "prev_lm".
460 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
461 (svr4_current_sos): New function.
462 (probe_and_action): New struct.
463 (hash_probe_and_action): New function.
464 (equal_probe_and_action): Likewise.
465 (register_solib_event_probe): Likewise.
466 (solib_event_probe_at): Likewise.
467 (solib_event_probe_action): Likewise.
468 (solist_update_full): Likewise.
469 (solist_update_incremental): Likewise.
470 (disable_probes_interface_cleanup): Likewise.
471 (svr4_handle_solib_event): Likewise.
472 (svr4_update_solib_event_breakpoint): Likewise.
473 (svr4_update_solib_event_breakpoints): Likewise.
474 (svr4_create_solib_event_breakpoints): Likewise.
475 (enable_break): Free probes table before creating breakpoints.
476 Use svr4_create_solib_event_breakpoints to create breakpoints.
477 (svr4_solib_create_inferior_hook): Free the solib list.
478 (_initialize_svr4_solib): Initialise
479 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
480
481 2013-06-04 Gary Benson <gbenson@redhat.com>
482
483 * target.h (target_ops): New field
484 "to_augmented_libraries_svr4_read".
485 (target_augmented_libraries_svr4_read): New macro.
486 * target.c (update_current_target): Handle
487 to_augmented_libraries_svr4_read.
488 * remote.c (remote_state): New field
489 "augmented_libraries_svr4_read".
490 (remote_augmented_libraries_svr4_read_feature): New function.
491 (remote_protocol_features): Add entry for
492 "augmented-libraries-svr4-read".
493 (remote_augmented_libraries_svr4_read): New function.
494 (init_remote_ops): Initialize
495 remote_ops.to_augmented_libraries_svr4_read.
496
497 2013-06-04 Gary Benson <gbenson@redhat.com>
498
499 * NEWS: Update.
500
501 2013-06-04 Gary Benson <gbenson@redhat.com>
502
503 * objfiles.h (inhibit_section_map_updates): New function
504 declaration.
505 (resume_section_map_updates): Likewise.
506 (resume_section_map_updates_cleanup): Likewise.
507 * objfiles.c (objfile_pspace_info): Removed field
508 "objfiles_changed_p". New fields "new_objfiles_available",
509 "section_map_dirty" and "inhibit_updates".
510 (allocate_objfile): Set new_objfiles_available.
511 (free_objfile): Set section_map_dirty.
512 (objfile_relocate1): Likewise.
513 (in_plt_section): Likewise.
514 (find_pc_section): Update the conditions under which the
515 section map will be updated.
516 (inhibit_section_map_updates): New function.
517 (resume_section_map_updates): Likewise.
518 (resume_section_map_updates_cleanup): Likewise.
519
520 2013-06-04 Gary Benson <gbenson@redhat.com>
521
522 * probe.h (get_probe_argument_count): New declaration.
523 (evaluate_probe_argument): Likewise.
524 * probe.c (get_probe_argument_count): New function.
525 (evaluate_probe_argument): Likewise.
526 (probe_safe_evaluate_at_pc): Use the above new functions.
527
528 2013-06-04 Alan Modra <amodra@gmail.com>
529
530 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
531 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
532 (ppc_insns_match_pattern): Add frame param. Avoid multiple
533 target mem reads on optional insns.
534 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
535 ppc_insns_match_pattern calls.
536 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
537 Add match for power7 thread safety insns, and new order of
538 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
539 invocation in comment, and update rest of comment.
540 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
541 PPC64_STANDARD_LINKAGE3_LEN): Delete.
542 (ppc64_standard_linkage2_target): Update insn offsets.
543 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
544 stubs first. Update calls.
545
546 2013-06-04 Yao Qi <yao@codesourcery.com>
547
548 * solib.c (solib_find): Don't need dir separator if path has
549 drive spec.
550
551 2013-06-03 Joel Brobecker <brobecker@adacore.com>
552
553 Revert (indirectly causes a SIGSEGV):
554 * machoread.c (macho_symfile_read): Assign first cleanup to
555 'back_to'.
556
557 2013-06-03 Yao Qi <yao@codesourcery.com>
558
559 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
560 mi-parse.c. Make them static.
561 (mi_all_values): Likewise.
562 (mi_parse_values_option): Move to mi-parse.c. Rename it to
563 mi_parse_print_values. Make it external.
564 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
565 Remove the declarations.
566 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
567 * mi/mi-parse.h (mi_parse_print_values): Declare.
568 * mi/mi-cmd-stack.c: Include mi-parse.h.
569 (parse_print_values): Remove
570 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
571 of parse_print_values.
572 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
573
574 2013-05-31 Pedro Alves <pedro@codesourcery.com>
575 Yao Qi <yao@codesourcery.com>
576
577 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
578 (encode_actions): Move code to ...
579 (all_tracepoint_actions_and_cleanup): ... here. New.
580 (trace_dump_command): Likewise.
581
582 2013-05-30 Tom Tromey <tromey@redhat.com>
583
584 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
585
586 2013-05-30 Tom Tromey <tromey@redhat.com>
587
588 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
589 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
590 'old_chain' argument. Add 'parser_result' argument.
591 (gdb_xml_create_parser_and_cleanup): Remove old version.
592 (gdb_xml_parse_quick): Update.
593 (xml_process_xincludes): Update.
594 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
595 declare.
596
597 2013-05-30 Tom Tromey <tromey@redhat.com>
598
599 * probe.c (collect_probes): Check arguments for NULL before
600 calling compile_rx_or_error.
601 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
602 Remove NULL return.
603
604 2013-05-30 Tom Tromey <tromey@redhat.com>
605
606 * infrun.c (adjust_pc_after_break): Introduce an outer null
607 cleanup.
608
609 2013-05-30 Tom Tromey <tromey@redhat.com>
610
611 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
612
613 2013-05-30 Tom Tromey <tromey@redhat.com>
614
615 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
616 for 'old_chain'. Do not check 'head' before processing
617 cleanups.
618
619 2013-05-30 Tom Tromey <tromey@redhat.com>
620
621 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
622 "cleanup_tuple".
623
624 2013-05-30 Tom Tromey <tromey@redhat.com>
625
626 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
627 inner scope. Unconditionally call do_cleanups.
628
629 2013-05-30 Tom Tromey <tromey@redhat.com>
630
631 * source.c (find_and_open_source): Call do_cleanups.
632
633 2013-05-30 Tom Tromey <tromey@redhat.com>
634
635 * linux-thread-db.c (thread_db_load_search): Unconditionally
636 call do_cleanups.
637
638 2013-05-30 Tom Tromey <tromey@redhat.com>
639
640 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
641 for 'cleanup'; instead use a later one.
642
643 2013-05-30 Tom Tromey <tromey@redhat.com>
644
645 * python/py-breakpoint.c (bppy_get_commands): Use
646 explicit, unconditional return.
647 * python/py-frame.c (frapy_read_var): Likewise.
648 * python/python.c (gdbpy_decode_line): Likewise.
649
650 2013-05-30 Tom Tromey <tromey@redhat.com>
651
652 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
653 do_cleanups on all return paths.
654
655 2013-05-30 Tom Tromey <tromey@redhat.com>
656
657 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
658
659 2013-05-30 Tom Tromey <tromey@redhat.com>
660
661 * stabsread.c (read_struct_type): Call do_cleanups along
662 all return paths.
663
664 2013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
665
666 * mips-linux-tdep.c: Adjust formatting throughout.
667
668 2013-05-30 Tom Tromey <tromey@redhat.com>
669
670 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
671 along all return paths.
672
673 2013-05-30 Tom Tromey <tromey@redhat.com>
674
675 * symfile.c (find_separate_debug_file): Call do_cleanups
676 along all return paths.
677
678 2013-05-30 Tom Tromey <tromey@redhat.com>
679
680 * symtab.c (search_symbols): Introduce a null cleanup for
681 'retval_chain'.
682
683 2013-05-30 Tom Tromey <tromey@redhat.com>
684
685 * python/py-value.c (valpy_binop): Call do_cleanups before
686 exiting loop.
687
688 2013-05-30 Tom Tromey <tromey@redhat.com>
689
690 * python/py-prettyprint.c (print_children): Remove extra
691 do_cleanups call.
692
693 2013-05-30 Tom Tromey <tromey@redhat.com>
694
695 * python/py-frame.c (frapy_read_var): Call do_cleanups along
696 all return paths.
697
698 2013-05-30 Tom Tromey <tromey@redhat.com>
699
700 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
701 along all return paths.
702
703 2013-05-30 Tom Tromey <tromey@redhat.com>
704
705 * cli/cli-logging.c (set_logging_redirect): Unconditionally
706 call do_cleanups.
707
708 2013-05-30 Tom Tromey <tromey@redhat.com>
709
710 * varobj.c (c_value_of_root): Call do_cleanups along all
711 return paths.
712
713 2013-05-30 Tom Tromey <tromey@redhat.com>
714
715 * tracepoint.c (trace_dump_command): Unconditionally call
716 do_cleanups.
717
718 2013-05-30 Tom Tromey <tromey@redhat.com>
719
720 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
721 do_cleanups earlier.
722
723 2013-05-30 Tom Tromey <tromey@redhat.com>
724
725 * machoread.c (macho_symfile_read): Assign first cleanup to
726 'back_to'.
727
728 2013-05-30 Tom Tromey <tromey@redhat.com>
729
730 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
731
732 2013-05-30 Tom Tromey <tromey@redhat.com>
733
734 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
735
736 2013-05-30 Tom Tromey <tromey@redhat.com>
737
738 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
739 call discard_cleanups.
740 (inf_ptrace_attach): Likewise.
741
742 2013-05-30 Tom Tromey <tromey@redhat.com>
743
744 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
745 return paths.
746 (mips_initialize): Likewise.
747 (common_open): Call do_cleanups.
748
749 2013-05-30 Tom Tromey <tromey@redhat.com>
750
751 * utils.c (internal_vproblem): Call do_cleanups.
752
753 2013-05-30 Tom Tromey <tromey@redhat.com>
754
755 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
756
757 2013-05-30 Tom Tromey <tromey@redhat.com>
758
759 * cli/cli-script.c (setup_user_args): Don't return after error.
760
761 2013-05-30 Tom Tromey <tromey@redhat.com>
762
763 * somread.c (som_symtab_read): Call do_cleanups.
764
765 2013-05-30 Tom Tromey <tromey@redhat.com>
766
767 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
768
769 2013-05-30 Tom Tromey <tromey@redhat.com>
770
771 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
772 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
773 * interps.c (interpreter_exec_cmd): Call do_cleanups.
774 * source.c (show_substitute_path_command): Call do_cleanups.
775 (unset_substitute_path_command, set_substitute_path_command):
776 Likewise.
777 * symfile.c (load_command): Call do_cleanups.
778
779 2013-05-30 Tom Tromey <tromey@redhat.com>
780
781 * contrib/cleanup_check.py: New file.
782 * contrib/gcc-with-excheck: Add option parsing.
783
784 2013-05-30 Joel Brobecker <brobecker@adacore.com>
785
786 * windows-nat.c (windows_delete_thread): Add missing space
787 in cast expression.
788
789 2013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
790
791 * inferior.c (top level): Include tilde.h.
792 (add_inferior_command): Call tilde_expand on the value of 'exec'
793 argument.
794
795 2013-05-30 Pedro Alves <pedro@codesourcery.com>
796 Yao Qi <yao@codesourcery.com>
797
798 * tracepoint.c (encode_actions_1): Remove parameter 't'.
799 Caller update.
800 (encode_actions): Likewise.
801 * remote.c (remote_download_tracepoint): Caller update.
802 * tracepoint.h (encode_actions): Update declaration.
803
804 2013-05-30 Pedro Alves <palves@redhat.com>
805
806 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
807 pointer.
808
809 2013-05-30 Yao Qi <yao@codesourcery.com>
810
811 * remote.c (remote_check_symbols): Remove unused parameter
812 'objfile'.
813 Declaration update.
814 (remote_start_remote, remote_new_objfile): Caller update.
815
816 2013-05-30 Yao Qi <yao@codesourcery.com>
817
818 * mi/mi-cmds.c (mi_cmds): Define MI command
819 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
820 DEF_MI_CMD_CLI.
821
822 2013-05-29 Pedro Alves <palves@redhat.com>
823
824 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
825 (remote_insert_watchpoint, remote_remove_watchpoint)
826 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
827 (remote_verify_memory, compare_sections_command)
828 (remote_search_memory): Set the general process/thread on the
829 remote side.
830
831 2013-05-29 Pedro Alves <palves@redhat.com>
832
833 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
834 (_initialize_aarch64_tdep): Don't call
835 initialize_tdesc_aarch64_without_fpu.
836 * features/Makefile (WHICH): Remove reference to
837 aarch64-without-fpu.
838 * features/aarch64-without-fpu.c: Delete file.
839 * regformats/aarch64-without-fpu.dat: Delete file.
840
841 2013-05-28 Yao Qi <yao@codesourcery.com>
842
843 * tracepoint.c (stringify_collection_list): Remove parameter
844 'string'.
845 (encode_actions): Caller update. Remove local variables.
846
847 2013-05-24 Yao Qi <yao@codesourcery.com>
848
849 * tracepoint.c (TFILE_PID): Remove.
850 (tfile_open): Don't add thread and inferior.
851 (tfile_close): Don't set 'inferior_ptid'. Don't call
852 exit_inferior_silent.
853 (tfile_thread_alive): Remove.
854 (init_tfile_ops): Don't set field 'to_thread_alive' of
855 tfile_ops.
856
857 2013-05-23 Doug Evans <dje@google.com>
858
859 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
860
861 2013-05-23 Pedro Alves <palves@redhat.com>
862
863 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
864 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
865 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
866 Only define if HAVE_SOCKETS is defined.
867 * configure.ac: Check for sys/socket.h.
868 * config.in, configure: Regenerate.
869
870 2013-05-23 Pedro Alves <palves@redhat.com>
871
872 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
873 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
874 printing uint32_t variables.
875
876 2013-05-23 Pedro Alves <palves@redhat.com>
877
878 * NEWS: Mention GDBserver range stepping support.
879
880 2013-05-23 Yao Qi <yao@codesourcery.com>
881 Pedro Alves <palves@redhat.com>
882
883 * gdbthread.h (struct thread_control_state) <may_range_step>: New
884 field.
885 * infcmd.c (step_once, until_next_command): Enable range stepping.
886 * infrun.c (displaced_step_prepare): Disable range stepping.
887 (resume): Disable range stepping if stepping over a breakpoint or
888 we have software watchpoints. If range stepping is enabled,
889 assert the thread is in the stepping range.
890 (clear_proceed_status_thread): Clear may_range_step.
891 (handle_inferior_event): Disable range stepping as soon as we know
892 the thread that hit the event. Re-enable it whenever we're going
893 to step with a step range.
894 * remote.c (struct vCont_action_support) <r>: New field.
895 (use_range_stepping): New global.
896 (remote_vcont_probe): Handle 'r' action.
897 (append_resumption): Append an 'r' action if the thread may range
898 step.
899 (show_range_stepping): New function.
900 (set_range_stepping): New function.
901 (_initialize_remote): Call add_setshow_boolean_cmd to register the
902 'set range-stepping' and 'show range-stepping' commands.
903 * NEWS: Mention range stepping, the new vCont;r action, and the
904 new "set/show range-stepping" commands.
905
906 2013-05-23 Yao Qi <yao@codesourcery.com>
907 Pedro Alves <palves@redhat.com>
908
909 * remote.c (struct vCont_action_support): New struct.
910 (struct remote_state) <support_vCont_t>: Remove field.
911 <vCont_actions_support>: New field.
912 (remote_vcont_probe, remote_stop_ns): Update.
913
914 2013-05-23 Yao Qi <yao@codesourcery.com>
915 Pedro Alves <palves@redhat.com>
916
917 * gdbthread.h (pc_in_thread_step_range): New declaration.
918 * thread.c (pc_in_thread_step_range): New function.
919 * infrun.c (handle_inferior_event): Use it.
920
921 2013-05-23 Joel Brobecker <brobecker@adacore.com>
922
923 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
924 of sprintf.
925
926 2013-05-22 Keith Seitz <keiths@redhat.com>
927
928 * ada-lang.c (is_known_support_routine): Add explicit free of
929 'func_name' from find_frame_funname.
930 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
931 for func_name from find_frame_funname.
932 * python/py-frame.c (frapy_name): Add explicit free of
933 'name' from find_frame_funname.
934 * stack.c (find_frame_funname): Add comment explaining that
935 funcp must be freed by the caller.
936 Return copy of symbol names instead of pointers.
937 (print_frame): Add a cleanup for 'funname' from
938 find_frame_funname.
939 * stack.h (find_frame_funname): Remove "const" from
940 'funname' parameter.
941
942 2013-05-22 Tom Tromey <tromey@redhat.com>
943
944 PR c++/15401:
945 * c-valprint.c (c_value_print): Use value_addr for
946 references. Convert back to reference type with value_ref.
947
948 2013-05-22 Eli Zaretskii <eliz@gnu.org>
949
950 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
951 unloaded DLL, it will be done by handle_solib_event. See
952 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
953 details.
954
955 2013-05-22 Phil Muldoon <pmuldoon@redhat.com>
956
957 * ui-out.c: Create typedef ui_out_level_p and define vector
958 operations for that type.
959 (struct ui_out): Use a vector instead of an array.
960 (current_level): Return level from a vector.
961 (push_level): Create a level in a vector.
962 (pop_level): Delete a level in a vector.
963 (ui_out_new): Create initial level zero level, and store in a
964 vector.
965 (ui_out_destroy): Add vector cleanup.
966
967 2013-05-22 Pedro Alves <palves@redhat.com>
968
969 * python/python-internal.h (gdb_Py_DECREF): Tag with
970 "ARI: editCase function".
971
972 2013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
973
974 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
975
976 2013-05-21 Pedro Alves <palves@redhat.com>
977
978 * python/py-prettyprint.c (apply_val_pretty_printer): Check
979 whether PRINTER is NULL before installing a Py_DECREF cleanup.
980 * python/py-utils.c (py_decref): Don't check for NULL before
981 calling Py_DECREF.
982
983 2013-05-21 Pedro Alves <palves@redhat.com>
984
985 * python/py-utils.c (py_decref): Remove extra braces.
986 (gdb_pymodule_addobject): Remove extra braces.
987 * python-internal.h (gdb_Py_DECREF): New static inline function.
988 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
989
990 2013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
991
992 * breakpoints.c (detach_breakpoints): Do not
993 detach breakpoints locations with loc_type bp_loc_other.
994
995 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
996
997 Workaround Python 2.6.
998 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
999 a block.
1000
1001 2013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1002
1003 Code cleanup: constification.
1004 * solib.c (solib_ops): Make return type and ops variable type const.
1005 (set_solib_ops): Make the new_ops parameter and ops variable const.
1006 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
1007 (solib_add, solib_keep_data_in_core, clear_solib)
1008 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
1009 (reload_shared_libraries, solib_global_lookup): Make the ops variable
1010 const.
1011 * solib.h (set_solib_ops): Make the new_ops parameter const.
1012
1013 2013-05-21 Joel Brobecker <brobecker@adacore.com>
1014
1015 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
1016 variable.
1017 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
1018 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
1019 (SYSTEM_GDBINIT_FILES): New variables.
1020 (all): Add stamp-system-gdbinit.
1021 (stamp-system-gdbinit): New rule.
1022 (clean-system-gdbinit, install-system-gdbinit)
1023 (uninstall-system-gdbinit): New rules. Make them .PHONY.
1024 (install-only): Add dependency on install-system-gdbinit.
1025 (uninstall): Add dependency on uninstall-system-gdbinit.
1026 (clean): Add dependency on clean-system-gdbinit.
1027 * system-gdbinit/elinos.py: New file.
1028 * system-gdbinit/wrs-linux.py: New file.
1029
1030 2013-05-21 Joel Brobecker <brobecker@adacore.com>
1031
1032 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
1033
1034 2013-05-21 Hui Zhu <hui@codesourcery.com>
1035
1036 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
1037 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
1038 * mi/mi-cmd-break.c (ctype.h): New include.
1039 (gdb_obstack.h): New include.
1040 (mi_argv_to_format, mi_cmd_break_insert_1): New.
1041 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
1042 (mi_cmd_dprintf_insert): New.
1043 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
1044 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
1045
1046 2013-05-20 Tom Tromey <tromey@redhat.com>
1047
1048 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
1049
1050 2013-05-20 Tom Tromey <tromey@redhat.com>
1051
1052 * python/py-value.c (valpy_get_dynamic_type): Simplify
1053 dynamic_type assignment. Use Py_XINCREF.
1054
1055 2013-05-20 Tom Tromey <tromey@redhat.com>
1056
1057 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
1058
1059 2013-05-20 Tom Tromey <tromey@redhat.com>
1060
1061 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
1062 (gdbpy_selected_frame): Move object-construction code
1063 out of TRY_CATCH.
1064
1065 2013-05-20 Tom Tromey <tromey@redhat.com>
1066
1067 * python/py-arch.c (gdbpy_initialize_arch): Use
1068 gdb_pymodule_addobject.
1069 * python/py-block.c (gdbpy_initialize_blocks): Use
1070 gdb_pymodule_addobject.
1071 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
1072 gdb_pymodule_addobject.
1073 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
1074 gdb_pymodule_addobject.
1075 * python/py-event.c (gdbpy_initialize_event_generic): Use
1076 gdb_pymodule_addobject.
1077 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
1078 gdb_pymodule_addobject.
1079 * python/py-evts.c (add_new_registry): Use
1080 gdb_pymodule_addobject.
1081 (gdbpy_initialize_py_events): Likewise.
1082 * python/py-finishbreakpoint.c
1083 (gdbpy_initialize_finishbreakpoints): Use
1084 gdb_pymodule_addobject.
1085 * python/py-frame.c (gdbpy_initialize_frames): Use
1086 gdb_pymodule_addobject.
1087 * python/py-function.c (gdbpy_initialize_functions): Use
1088 gdb_pymodule_addobject.
1089 * python/py-inferior.c (gdbpy_initialize_inferior): Use
1090 gdb_pymodule_addobject.
1091 * python/py-infthread.c (gdbpy_initialize_thread): Use
1092 gdb_pymodule_addobject.
1093 * python/py-objfile.c (gdbpy_initialize_objfile): Use
1094 gdb_pymodule_addobject.
1095 * python/py-param.c (gdbpy_initialize_parameters): Use
1096 gdb_pymodule_addobject.
1097 * python/py-progspace.c (gdbpy_initialize_pspace): Use
1098 gdb_pymodule_addobject.
1099 * python/py-symbol.c (gdbpy_initialize_symbols): Use
1100 gdb_pymodule_addobject.
1101 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
1102 gdb_pymodule_addobject.
1103 * python/py-type.c (gdbpy_initialize_types): Use
1104 gdb_pymodule_addobject.
1105 * python/py-utils.c (gdb_pymodule_addobject): New function.
1106 * python/py-value.c (gdbpy_initialize_values): Use
1107 gdb_pymodule_addobject.
1108 * python/python-internal.h (gdb_pymodule_addobject): Declare.
1109 * python/python.c (_initialize_python): Use
1110 gdb_pymodule_addobject.
1111
1112 2013-05-20 Tom Tromey <tromey@redhat.com>
1113
1114 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
1115 * python/py-param.c (get_set_value, get_show_value): Use
1116 explicit decrefs.
1117 * python/python.c (start_type_printers, apply_type_printers):
1118 Use explicit decrefs.
1119
1120 2013-05-20 Tom Tromey <tromey@redhat.com>
1121
1122 * python/py-evts.c (gdbpy_initialize_py_events): Don't
1123 incref the module.
1124
1125 2013-05-20 Tom Tromey <tromey@redhat.com>
1126
1127 * python/python.c (gdbpy_run_events): Decref the result
1128 of PyObject_CallObject.
1129
1130 2013-05-20 Tom Tromey <tromey@redhat.com>
1131
1132 * python/py-symtab.c (set_sal): Use
1133 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
1134 (symtab_and_line_to_sal_object): Update.
1135
1136 2013-05-20 Tom Tromey <tromey@redhat.com>
1137
1138 * python/py-param.c (compute_enum_values): Decref 'item'.
1139
1140 2013-05-20 Tom Tromey <tromey@redhat.com>
1141
1142 * mi/mi-main.c: Include python-internal.h.
1143 (mi_cmd_list_features): Check gdb_python_initialized.
1144 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
1145 (python_inferior_exit, python_new_objfile, add_thread_object)
1146 (delete_thread_object, py_free_inferior): Check
1147 gdb_python_initialized.
1148 * python/py-prettyprint.c (apply_val_pretty_printer): Check
1149 gdb_python_initialized.
1150 * python/py-type.c (save_objfile_types): Check
1151 gdb_python_initialized.
1152 * python/python-internal.h (gdb_python_initialized): Declare.
1153 * python/python.c (ensure_python_env): Throw exception if
1154 Python not initialized.
1155 (before_prompt_hook, source_python_script_for_objfile)
1156 (start_type_printers, apply_type_printers,
1157 free_type_printers): Check gdb_python_initialized.
1158 * varobj.c (varobj_get_display_hint)
1159 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
1160 (install_new_value_visualizer, varobj_set_visualizer)
1161 (value_get_print_value): Check gdb_python_initialized.
1162
1163 2013-05-20 Tom Tromey <tromey@redhat.com>
1164
1165 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
1166 Check errors.
1167 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
1168 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
1169 Check errors.
1170 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
1171 Check errors.
1172 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
1173 Check errors.
1174 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
1175 Check errors.
1176 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
1177 init function to return 'int'.
1178 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
1179 Return 'int'. Check errors.
1180 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
1181 Check errors.
1182 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
1183 Return 'int'. Check errors.
1184 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
1185 Check errors.
1186 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
1187 Check errors.
1188 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
1189 Check errors.
1190 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
1191 Check errors.
1192 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
1193 Check errors.
1194 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
1195 Check errors.
1196 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
1197 Check errors.
1198 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
1199 Check errors.
1200 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
1201 Check errors.
1202 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
1203 Check errors.
1204 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
1205 Check errors.
1206 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
1207 Check errors.
1208 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
1209 Check errors.
1210 * python/python-internal.h (gdbpy_initialize_auto_load,
1211 gdbpy_initialize_values, gdbpy_initialize_frames,
1212 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
1213 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
1214 gdbpy_initialize_blocks, gdbpy_initialize_types,
1215 gdbpy_initialize_functions, gdbpy_initialize_pspace,
1216 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
1217 gdbpy_initialize_finishbreakpoints,
1218 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
1219 gdbpy_initialize_thread, gdbpy_initialize_inferior,
1220 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
1221 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
1222 gdbpy_initialize_signal_event,
1223 gdbpy_initialize_breakpoint_event,
1224 gdbpy_initialize_continue_event,
1225 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
1226 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
1227 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1228 * python/python.c (gdb_python_initialized): New global.
1229 (gdbpy_initialize_events): Return 'int'. Check errors.
1230 (_initialize_python): Check errors. Set
1231 gdb_python_initialized.
1232
1233 2013-05-20 Tom Tromey <tromey@redhat.com>
1234
1235 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
1236 Decref the reslut of PyObject_CallMethod.
1237
1238 2013-05-20 Tom Tromey <tromey@redhat.com>
1239
1240 * python/py-event.c (gdbpy_initialize_event_generic): Return
1241 early if PyType_Ready fails.
1242
1243 2013-05-20 Tom Tromey <tromey@redhat.com>
1244
1245 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
1246 as 'default' in the switch.
1247
1248 2013-05-20 Tom Tromey <tromey@redhat.com>
1249
1250 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
1251 get_addr_from_python calls out of TRY_CATCH.
1252 (infpy_write_memory, infpy_search_memory): Likewise.
1253 * python/py-utils.c (get_addr_from_python): Return negative
1254 value on error. Use TRY_CATCH.
1255 * python/python-internal.h (get_addr_from_python): Use
1256 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1257
1258 2013-05-20 Tom Tromey <tromey@redhat.com>
1259
1260 * python/py-event.c (evpy_emit_event): Decref the
1261 result of PyObject_CallFunctionObjArgs.
1262
1263 2013-05-20 Tom Tromey <tromey@redhat.com>
1264
1265 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
1266 Correctly decref.
1267
1268 2013-05-20 Tom Tromey <tromey@redhat.com>
1269
1270 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
1271
1272 2013-05-20 Tom Tromey <tromey@redhat.com>
1273
1274 * python/py-event.h (gdbpy_initialize_event_generic): Use
1275 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1276 * python/py-evts.c (add_new_registry): Use
1277 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1278 * python/python-internal.h
1279 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
1280
1281 2013-05-20 Tom Tromey <tromey@redhat.com>
1282
1283 * python/py-arch.c (archpy_disassemble): Update.
1284 * python/py-type.c (typy_get_composite, typy_lookup_typename)
1285 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
1286 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
1287 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
1288 macro.
1289 (GDB_PY_HANDLE_EXCEPTION): Update.
1290 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
1291
1292 2013-05-20 Tom Tromey <tromey@redhat.com>
1293
1294 * python/python-internal.h (events_object_type): Remove.
1295
1296 2013-05-20 Tom Tromey <tromey@redhat.com>
1297
1298 * python/py-event.h (evpy_emit_event): Use
1299 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
1300 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
1301 New macro.
1302
1303 2013-05-20 Tom Tromey <tromey@redhat.com>
1304
1305 * py-evtregistry.c (create_event_object): Decref
1306 eventregistry_object if PyList_New fails.
1307
1308 2013-05-20 Tom Tromey <tromey@redhat.com>
1309
1310 * py-cmd.c (gdbpy_string_to_argv): Check result of
1311 PyList_New.
1312
1313 2013-05-20 Tom Tromey <tromey@redhat.com>
1314
1315 * python/python.c (before_prompt_hook): Add cleanup to
1316 decref 'hook'.
1317
1318 2013-05-20 Tom Tromey <tromey@redhat.com>
1319
1320 * python/py-function.c (fnpy_init): Decref result of
1321 PyObject_GetAttrString.
1322
1323 2013-05-20 Tom Tromey <tromey@redhat.com>
1324
1325 * python/py-threadevent.c (get_event_thread): Use
1326 CPYCHECKER_RETURNS_BORROWED_REF.
1327 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
1328 New define.
1329 (pspace_to_pspace_object, objfile_to_objfile_object)
1330 (find_thread_object): Use it.
1331
1332 2013-05-20 Tom Tromey <tromey@redhat.com>
1333
1334 * python/py-arch.c (arch_object_type): Use
1335 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1336 * python/py-block.c (block_syms_iterator_object_type):
1337 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1338 * python/py-bpevent.c (breakpoint_event_object_type):
1339 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1340 * python/py-cmd.c (cmdpy_object_type): Use
1341 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1342 * python/py-continueevent.c (continue_event_object_type):
1343 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1344 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
1345 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1346 * python/py-events.h (thread_event_object_type):
1347 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1348 * python/py-evtregistry.c (eventregistry_object_type): Use
1349 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1350 * python/py-exitedevent.c (exited_event_object_type):
1351 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1352 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
1353 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1354 * python/py-function.c (fnpy_object_type): Use
1355 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1356 * python/py-inferior.c (inferior_object_type, membuf_object_type):
1357 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1358 * python/py-infthread.c (thread_object_type): Use
1359 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1360 * python/py-lazy-string.c (lazy_string_object_type):
1361 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1362 * python/py-newobjfileevent.c (new_objfile_event_object_type):
1363 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1364 * python/py-objfile.c (objfile_object_type): Use
1365 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1366 * python/py-param.c (parmpy_object_type):
1367 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1368 * python/py-progspace.c (pspace_object_type):
1369 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1370 * python/py-signalevent.c (signal_event_object_type):
1371 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1372 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
1373 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1374 * python/py-type.c (type_object_type, field_object_type)
1375 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1376 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
1377 define.
1378 (value_object_type, block_object_type, symbol_object_type)
1379 (event_object_type, stop_event_object_type, breakpoint_object_type)
1380 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
1381
1382 2013-05-20 Andreas Tobler <andreas@fgznet.ch>
1383
1384 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
1385 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
1386
1387 2013-05-20 Doug Evans <dje@google.com>
1388
1389 When reading CU, stay in DWO. Be more tolerent of bad debug info.
1390 For Fission.
1391 * dwarf2read.c (struct dwarf2_per_cu_data): New member
1392 reading_dwo_directly.
1393 (struct signatured_type): New member dwo_unit.
1394 (struct die_reader_specs): New member comp_dir.
1395 (create_signatured_type_table_from_index): Use malloc for
1396 all_type_units instead of objfile's obstack.
1397 (create_all_type_units): Ditto.
1398 (fill_in_sig_entry_from_dwo_entry): New function.
1399 (add_type_unit): New function.
1400 (lookup_dwo_signatured_type): New function.
1401 (lookup_dwp_signatured_type): New function.
1402 (lookup_signatured_type): New arg cu. All callers updated.
1403 (init_cu_die_reader): Initialize comp_dir.
1404 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
1405 Change assert of matching type signatures to call error on mismatch.
1406 (lookup_dwo_unit): Add assert.
1407 (init_tu_and_read_dwo_dies): New function.
1408 (init_cutu_and_read_dies): Call it.
1409 (build_type_unit_groups): Handle case of no type unit groups created.
1410 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
1411 (lookup_dwo_cutu): Tweak complaint.
1412 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
1413 (dwarf2_per_objfile_free): Free all_type_units.
1414
1415 2013-05-20 Joel Brobecker <brobecker@adacore.com>
1416
1417 * windows-nat.c (handle_unload_dll): Add missing empty line.
1418
1419 2013-05-20 Joel Brobecker <brobecker@adacore.com>
1420
1421 * dwarf2read.c (prototyped_function_p): New function.
1422 (read_subroutine_type): Use it.
1423
1424 2013-05-20 Joel Brobecker <brobecker@adacore.com>
1425
1426 * rs6000-aix-tdep.c: De-indent some example code provided
1427 as a comment.
1428
1429 2013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
1430
1431 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
1432 region is ok for a hardware watchpoint using the new ptrace interface
1433 on Power servers.
1434
1435 2013-05-17 Doug Evans <dje@google.com>
1436
1437 * NEWS: Mention new maintenance commands check-symtabs, and
1438 expand-symtabs, and renamed check-psymtabs.
1439 * psymtab.c (maintenance_check_psymtabs): Renamed from
1440 maintenance_check_symtabs. Only process already-expanded symbol
1441 tables.
1442 (_initialize_psymtab): Update.
1443 * symmisc.c (maintenance_check_symtabs): New function.
1444 (maintenance_expand_name_matcher): New function
1445 (maintenance_expand_file_matcher): New function
1446 (maintenance_expand_symtabs): New function.
1447 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
1448 commands.
1449
1450 2013-05-17 Tom Tromey <tromey@redhat.com>
1451
1452 * python/py-inferior.c (infpy_read_memory): Don't call
1453 PyErr_SetString if PyObject_New fails.
1454 * python/py-frame.c (frame_info_to_frame_object): Don't call
1455 PyErr_SetString if PyObject_New fails.
1456
1457 2013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
1458
1459 * acinclude.m4: Add check for dlopen in libdl.
1460 * configure.ac: Ditto.
1461 * configure: Regenerate.
1462
1463 2013-05-17 Phil Muldoon <pmuldoon@redhat.com>
1464
1465 * frame.c (frame_stash): Convert to htab.
1466 (frame_addr_hash): New function.
1467 (frame_addr_hash_eq): New function.
1468 (frame_stash_create): Convert function to create
1469 a hash table.
1470 (frame_stash_add): Convert function to add an entry to a hash
1471 table.
1472 (frame_stash_find): Convert function to search the hash table.
1473 (frame_stash_invalidate): Convert function to empty the hash
1474 table.
1475 (get_frame_id): Only add to stash if a frame_id is created.
1476 (_initialize_frame): Call frame_stash_create.
1477
1478 2013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
1479
1480 * configure.ac: Ensure MIG is available when building for GNU Hurd
1481 hosts.
1482 * configure: Regenerate.
1483
1484 2013-05-16 Joel Brobecker <brobecker@adacore.com>
1485
1486 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
1487
1488 2013-05-16 Joel Brobecker <brobecker@adacore.com>
1489
1490 * ada-lang.c (ada_make_symbol_completion_list): Make sure
1491 all cleanups are done before returning from this function.
1492
1493 2013-05-15 Joel Brobecker <brobecker@adacore.com>
1494
1495 * utils.h: #include "exceptions.h".
1496 (enum errors): Remove partial declaration.
1497
1498 2013-05-15 Joel Brobecker <brobecker@adacore.com>
1499
1500 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
1501 * gdbarch.h, gdbarch.c: Regenerate.
1502 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
1503 handling.
1504
1505 * rs6000-aix-tdep.h: New file.
1506 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
1507 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
1508 "xml-utils.h".
1509 (struct field_info, struct ld_info_desc): New types.
1510 (ld_info32_desc, ld_info64_desc): New static constants.
1511 (struct ld_info): New type.
1512 (rs6000_aix_extract_ld_info): New function.
1513 (rs6000_aix_shared_library_to_xml): Likewise.
1514 (rs6000_aix_ld_info_to_xml): Likewise.
1515 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
1516 (rs6000_aix_init_osabi): Add call to
1517 set_gdbarch_core_xfer_shared_libraries_aix.
1518 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
1519 Remove "xml-utils.h" include.
1520 (LdInfo): Delete typedef.
1521 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
1522 Delete macros.
1523 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
1524 Adjust code accordingly.
1525 (rs6000_core_ldinfo): Delete, folded into
1526 rs6000_aix_core_xfer_shared_libraries_aix.
1527 (rs6000_xfer_shared_library): Delete.
1528 (rs6000_xfer_shared_libraries): Reimplement.
1529
1530 2013-05-15 Markus Metzger <markus.t.metzger@intel.com>
1531
1532 * record.c (record_goto_cmdlist): New.
1533 (cmd_record_goto): Split into this ...
1534 (cmd_record_goto_begin): ... this
1535 (cmd_record_goto_end): ... and this.
1536 (_initialize_record): Change "record goto" to prefix command.
1537 Add commands for "record goto begin" and "record goto end".
1538 Add an alias for "record goto start" to "record goto begin".
1539
1540 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1541
1542 * linespec.c (convert_linespec_to_sals): New comment for
1543 SOURCE_FILENAME assignment.
1544
1545 2013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1546
1547 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
1548 internal_warning.
1549
1550 2013-05-14 Tom Tromey <tromey@redhat.com>
1551
1552 * eval.c (parse_and_eval_long): Make 'exp' const.
1553 * value.h (parse_and_eval_long): Update.
1554
1555 2013-05-14 Tom Tromey <tromey@redhat.com>
1556
1557 * ui-file.c (gdb_fopen): Make arguments const.
1558 * ui-file.h (gdb_fopen): Make arguments const.
1559
1560 2013-05-14 Tom Tromey <tromey@redhat.com>
1561
1562 * remote.c (remote_set_trace_notes): Make arguments const.
1563 * target.c (update_current_target): Update cast.
1564 * target.h (to_set_trace_notes): Make arguments const.
1565
1566 2013-05-14 Tom Tromey <tromey@redhat.com>
1567
1568 * go32-nat.c (go32_terminal_info): Make 'args' const.
1569 * inferior.h (child_terminal_info): Update.
1570 * inflow.c (child_terminal_info): Make 'args' const.
1571 * target.c (default_terminal_info): Make 'args' const.
1572 (debug_to_terminal_save_ours): Likewise.
1573 * target.h (struct target_ops) <to_terminal_info>: Make argument
1574 const.
1575
1576 2013-05-13 Tom Tromey <tromey@redhat.com>
1577
1578 * gcore.c (create_gcore_bfd): Make 'filename' const.
1579 * gcore.h (create_gcore_bfd): Make 'filename' const.
1580 * record-full.c (record_full_save): Make 'recfilename' const.
1581 * target.c (target_save_record): Make 'filename' const.
1582 * target.h (struct target_ops) <to_save_record>: Make 'filename'
1583 const.
1584 (target_save_record): Likewise.
1585
1586 2013-05-13 Tom Tromey <tromey@redhat.com>
1587
1588 PR gdb/15338:
1589 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
1590 ranges section has been read.
1591
1592 2013-05-13 Tom Tromey <tromey@redhat.com>
1593
1594 PR exp/15364:
1595 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
1596 STRUCTOP_PTR>: Return a not_lval value for
1597 EVAL_AVOID_SIDE_EFFECTS.
1598 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
1599 for EVAL_AVOID_SIDE_EFFECTS.
1600
1601 2013-05-13 Joel Brobecker <brobecker@adacore.com>
1602
1603 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
1604 floating point registers to register type before storing
1605 value.
1606 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
1607 Likewise.
1608
1609 2013-05-10 Joel Brobecker <brobecker@adacore.com>
1610 Tom Tromey <tromey@redhat.com>
1611
1612 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
1613 New functions.
1614 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
1615 Declare.
1616 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
1617 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
1618 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
1619 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
1620
1621 2013-05-10 Freddie Chopin <freddie_chopin@op.pl>
1622 Tom Tromey <tromey@redhat.com>
1623
1624 PR build/15414:
1625 * configure: Rebuild.
1626 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
1627 with -Wno-format.
1628
1629 2013-05-10 Pedro Alves <palves@redhat.com>
1630
1631 * remote.c (_initialize_remote): Fix spelling of
1632 qXfer:traceframe-info:read packet in packet config command.
1633
1634 2013-05-10 David Taylor <dtaylor@emc.com>
1635
1636 PR remote/15455
1637
1638 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
1639 "QTro" at start of packet.
1640
1641 2013-05-10 Joel Brobecker <brobecker@adacore.com>
1642
1643 * solib-aix.c (solib_aix_relocate_section_addresses):
1644 For the .bss section action, apply the same offset as
1645 the .data section.
1646
1647 2013-05-10 Joel Brobecker <brobecker@adacore.com>
1648
1649 * solib-aix.c (solib_aix_relocate_section_addresses):
1650 Remove FIXME comment.
1651
1652 2013-05-10 Joel Brobecker <brobecker@adacore.com>
1653
1654 PR tdep/15420:
1655 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1656 New functions, directly copied from sparc-sol-thread.c.
1657 * sparc-sol-thread.c: Delete.
1658 * configure.ac: Remove code handling sparc-solaris-thread.c.
1659 * configure: Regenerate.
1660
1661 2013-05-10 Phil Muldoon <pmuldoon@redhat.com>
1662
1663 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
1664 filter logic.
1665 (backtrace_command): Add "no-filters" option parsing.
1666 (_initialize_stack): Alter help to reflect "no-filters" option.
1667 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
1668 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
1669 (py-frame.o): Add target
1670 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
1671 filter files.
1672 * python/python.h: Add new frame filter constants, and flag enum.
1673 (apply_frame_filter): Add definition.
1674 * python/python.c (apply_frame_filter): New non-Python
1675 enabled function.
1676 * python/py-utils.c (py_xdecref): New function.
1677 (make_cleanup_py_xdecref): Ditto.
1678 * python/py-objfile.c: Declare frame_filters dictionary.
1679 (objfpy_dealloc): Add frame_filters dealloc.
1680 (objfpy_new): Initialize frame_filters attribute.
1681 (objfile_to_objfile_object): Ditto.
1682 (objfpy_get_frame_filters): New function.
1683 (objfpy_set_frame_filters): New function.
1684 * python/py-progspace.c: Declare frame_filters dictionary.
1685 (pspy_dealloc): Add frame_filters dealloc.
1686 (pspy_new): Initialize frame_filters attribute.
1687 (pspacee_to_pspace_object): Ditto.
1688 (pspy_get_frame_filters): New function.
1689 (pspy_set_frame_filters): New function.
1690 * python/py-framefilter.c: New file.
1691 * python/lib/gdb/command/frame_filters.py: New file.
1692 * python/lib/gdb/frames.py: New file.
1693 * python/lib/gdb/__init__.py: Initialize global frame_filters
1694 dictionary
1695 * python/lib/gdb/FrameDecorator.py: New file.
1696 * python/lib/gdb/FrameIterator.py: New file.
1697 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
1698 * mi/mi-cmds.h: Declare.
1699 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
1700 --no-frame-filter logic, and Python frame filter logic.
1701 (stack_enable_frame_filters): New function.
1702 (parse_no_frame_option): Ditto.
1703 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
1704 filter logic.
1705 (mi_cmd_stack_list_locals): Ditto.
1706 (mi_cmd_stack_list_args): Ditto.
1707 (mi_cmd_stack_list_variables): Ditto.
1708 * NEWS: Add frame filter note.
1709
1710 2013-05-09 Doug Evans <dje@google.com>
1711
1712 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
1713 All callers updated.
1714 (syms_from_objfile): Ditto. Make static.
1715 (symbol_file_add_with_addrs): Renamed from
1716 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
1717 num_offsets. All callers updated.
1718 * symfile.h (syms_from_objfile): Delete.
1719
1720 * symfile.c (decrement_reading_symtab): Add assert.
1721 (increment_reading_symtab): Ditto.
1722
1723 2013-05-09 Joel Brobecker <brobecker@adacore.com>
1724
1725 * source.c (forward_search_command): Replace call to getc
1726 by call to fgetc.
1727 (reverse_search_command): Likewise.
1728
1729 2013-05-08 Doug Evans <dje@google.com>
1730
1731 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
1732 matching test.
1733
1734 2013-05-08 Joel Brobecker <brobecker@adacore.com>
1735
1736 * sol-thread.c (info_cb): Factorize the code a little.
1737
1738 2013-05-08 Joel Brobecker <brobecker@adacore.com>
1739
1740 * sol-thread.c (info_cb): Rework the output of the "maintenance
1741 info sol-threads" command a bit.
1742
1743 2013-05-08 Joel Brobecker <brobecker@adacore.com>
1744
1745 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
1746 Replace ti.ti_startfunc by ti.ti_pc.
1747
1748 2013-05-08 Joel Brobecker <brobecker@adacore.com>
1749
1750 * solib-aix.c (solib_aix_free_library_list): New function
1751 for the case where HAVE_LIBEXPAT is not defined.
1752
1753 2013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
1754
1755 PR breakpoints/15413:
1756 * breakpoint.c (condition_completer): Simplify the code to
1757 disconsider multiple locations of breakpoints when completing the
1758 "condition" command.
1759
1760 2013-05-07 Pierre Muller <muller@sourceware.org>
1761
1762 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
1763 instead of <sys/wait.h>.
1764
1765 2013-05-07 Pierre Muller <muller@sourceware.org>
1766
1767 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
1768 trailing new line from warning message.
1769
1770 2013-05-07 Pierre Muller <muller@sourceware.org>
1771
1772 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
1773 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
1774
1775 2013-05-07 Joel Brobecker <brobecker@adacore.com>
1776
1777 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
1778 error message (ARI fix).
1779
1780 2013-05-07 Joel Brobecker <brobecker@adacore.com>
1781
1782 * features/library-list-aix.dtd: Replace library-list by
1783 library-list-aix.
1784 * rs6000-nat.c: Replace library-list by library-list-aix
1785 throughout.
1786 * solib-aix.c: Likewise.
1787
1788 2013-05-07 Joel Brobecker <brobecker@adacore.com>
1789
1790 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
1791 Renames TARGET_OBJECT_AIX_LIBRARIES.
1792 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
1793 TARGET_OBJECT_LIBRARIES_AIX throughout.
1794 * solib-aix.c: Likwise.
1795
1796 2013-05-07 Yao Qi <yao@codesourcery.com>
1797
1798 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
1799 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
1800
1801 2013-05-07 Yao Qi <yao@codesourcery.com>
1802
1803 * solib-dsbt.c (enable_break): Declare.
1804 (dsbt_current_sos): Remove call to enable_break2.
1805 (enable_break2): Rename to enable_break. Set solib breakpoint
1806 on '_dl_debug_state'.
1807 (enable_break): Remove.
1808
1809 2013-05-07 Luis Machado <lgustavo@codesourcery.com>
1810
1811 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
1812 debug state prior to replicating existing hardware watchpoints or
1813 breakpoints.
1814
1815 2013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1816
1817 * gcore.c (gcore_create_callback): Ignore sections with
1818 separate_debug_objfile_backlink != NULL.
1819
1820 2013-05-06 Sandra Loosemore <sandra@codesourcery.com>
1821 Andrew Jenner <andrew@codesourcery.com>
1822 Chung-Lin Tang <cltang@codesourcery.com>
1823 Julian Brown <julian@codesourcery.com>
1824
1825 Based on the nios2-elf port from Altera Corporation.
1826
1827 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
1828 nios2-linux-tdep.o.
1829 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
1830 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
1831 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
1832 * nios2-tdep.h: New.
1833 * nios2-tdep.c: New.
1834 * nios2-linux-tdep.c: New.
1835 * features/Makefile (WHICH): Add nios2-linux.
1836 (nios2-linux-expedite): Set.
1837 * features/nios2-cpu.xml: New.
1838 * features/nios2.xml: New.
1839 * features/nios2-linux.xml: New.
1840 * features/nios2.c: New (autogenerated).
1841 * features/nios2-linux.c: New (autogenerated).
1842 * regformats/nios2-linux.dat: New (autogenerated).
1843 * NEWS (Changes since GDB 7.6): Add new Nios II targets
1844 and commands.
1845
1846 2013-05-06 Doug Evans <dje@google.com>
1847
1848 * symfile.c: Whitespace cleanup.
1849
1850 * solist.h (struct target_so_ops): New member clear_so.
1851 * solib-svr4.c (svr4_clear_so): New function.
1852 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
1853 * solib.c (clear_so): Renamed from free_so_symbols.
1854 All callers updated. Call target clear_so if it exists.
1855
1856 2013-05-06 Tom Tromey <tromey@redhat.com>
1857
1858 * ada-lang.c (ada_value_primitive_packed_val): Don't
1859 call value_incref.
1860 * value.c (set_value_parent): Incref the new parent and decref
1861 the old parent.
1862 (value_copy, value_primitive_field): Use set_value_parent.
1863
1864 2013-05-06 Tom Tromey <tromey@redhat.com>
1865
1866 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
1867 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
1868 if needed.
1869 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
1870 * dwarf2read.c (write_constant_as_bytes)
1871 (dwarf2_fetch_constant_bytes): New functions.
1872
1873 2013-05-06 Tom Tromey <tromey@redhat.com>
1874
1875 * dwarf2read.c (dwarf2_const_value_data): Remove unused
1876 parameters.
1877 (dwarf2_const_value_attr): Update.
1878
1879 2013-05-06 Tom Tromey <tromey@redhat.com>
1880
1881 * somread.c (som_symfile_offsets): Add 'const' to addrs.
1882 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
1883 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
1884 Remove declaration.
1885
1886 2013-05-06 Tom Tromey <tromey@redhat.com>
1887
1888 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
1889 objfile's obstack.
1890
1891 2013-05-06 Doug Evans <dje@google.com>
1892
1893 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
1894 * stabsread.h (process_one_symbol): Update declaration.
1895 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
1896 * elfread.c (elf_symfile_relocate_probe): Ditto.
1897 * psymtab.c (relocate_psymtabs): Ditto.
1898 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
1899 (objfile_relocate): Ditto.
1900 * objfiles.h (objfile_relocate): Update declaration.
1901 * symfile.c (relative_addr_info_to_section_offsets): Constify
1902 addrs parameter.
1903 (default_symfile_offsets): Ditto.
1904 (syms_from_objfile_1): Constify offsets parameter.
1905 (syms_from_objfile): Ditto.
1906 (symbol_file_add_with_addrs_or_offsets): Ditto.
1907 (symfile_map_offsets_to_segments): Constify data parameter.
1908 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
1909 delta parameters of member relocate.
1910 (struct sym_probe_fns): Constify new_offsets,
1911 delta parameters of member sym_relocate_probe.
1912 (struct sym_fns): Constify section_addr_info parameter of member
1913 sym_offsets.
1914 (relative_addr_info_to_section_offsets): Update declaration.
1915 (default_symfile_offsets): Ditto.
1916 (syms_from_objfile): Ditto.
1917 (symfile_map_offsets_to_segments): Ditto.
1918
1919 * symfile.c (syms_from_objfile_1): Use correct section count when
1920 objfile->sf == NULL.
1921
1922 2013-05-06 Mike Frysinger <vapier@gentoo.org>
1923
1924 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
1925
1926 2013-05-06 Doug Evans <dje@google.com>
1927
1928 * psympriv.h (struct partial_symtab): Augment comment for member
1929 section_offsets.
1930
1931 2013-05-06 Joel Brobecker <brobecker@adacore.com>
1932
1933 Reimplement shared library support on ppc-aix...
1934 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
1935 * features/library-list-aix.dtd: New file.
1936 * solib-aix.h, solib-aix.c: New file.
1937 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
1938 (rs6000_find_toc_address_hook): Delete.
1939 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
1940 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
1941 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
1942 "xml-utils.h".
1943 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
1944 (vmap_symtab, fixup_breakpoints): Delete.
1945 (rs6000_xfer_shared_libraries): New function.
1946 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
1947 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
1948 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
1949 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
1950 (rs6000_xfer_shared_library): New function.
1951 (find_toc_address): Delete.
1952 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
1953 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
1954 * xcoffread.c (record_minimal_symbol): Reloate symbol address
1955 before creating minimal symbol. Adjust function description
1956 accordingly.
1957 (scan_xcoff_symtab): Replace call to
1958 prim_record_minimal_symbol_and_info by call to
1959 record_minimal_symbol.
1960 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
1961 around default_symfile_offsets.
1962 * configure.tgt: Add solib-aix.o to gdb_target_obs for
1963 powerpc-aix targets.
1964 * config/rs6000/nm-rs6000.h: Delete.
1965 * config/powerpc/aix.mh (NAT_FILE): Delete.
1966 (NATDEPFILES): Remove xcoffsolib.o.
1967 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
1968 (ALL_TARGET_OBS): Add solib-aix.o.
1969 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
1970 config/rs6000/nm-rs6000.h. Add solib-aix.h.
1971 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
1972 * xcoffsolib.h, xcoffsolib.c: Delete.
1973
1974 * solib.c (reload_shared_libraries): Remove reference to
1975 SOLIB_CREATE_INFERIOR_HOOK.
1976 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
1977 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
1978 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
1979 comment.
1980 * corelow.c (deprecated_core_resize_section_table): Delete.
1981 * exec.c: Remove include of xcoffsolib.h".
1982 (map_vmap, vmap): Delete.
1983 (exec_close_1): Remove references to vmap.
1984 (exec_file_attach): Remove vmap handling code, and reference
1985 to DEPRECATED_IBM6000_TARGET.
1986 (bfdsec_to_vmap): Delete.
1987 (exec_files_info): Remove block of code handling VMAP.
1988 * infcmd.c (post_create_inferior): Remove reference to
1989 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
1990 * infrun.c (follow_exec): Remove reference to
1991 SOLIB_CREATE_INFERIOR_HOOK.
1992 * stack.c (print_frame): Remove reference to PC_SOLIB.
1993 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
1994 (dsbt_relocate_main_executable): Likewise.
1995 * solib-frv.c (frv_current_sos): Likewise.
1996
1997 2013-05-06 Joel Brobecker <brobecker@adacore.com>
1998
1999 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
2000 to target_write_memory and target_read_memory.
2001
2002 2013-05-06 Joel Brobecker <brobecker@adacore.com>
2003
2004 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
2005 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
2006
2007 2013-05-06 Joel Brobecker <brobecker@adacore.com>
2008
2009 * darwin-nat.c: Replace all "%x" instances in format strings
2010 into "0x%x" throughout.
2011
2012 2013-05-06 Joel Brobecker <brobecker@adacore.com>
2013
2014 * darwin-nat.c (darwin_mourn_inferior): Replace call to
2015 gdb_assert by call to MACH_CHECK_ERROR.
2016 (darwin_attach_pid): Raise an error rather than a failed
2017 assertion when various system calls failed. Report a warning
2018 instead of raising a failed assertion when PREV_NOT is not NULL
2019 after call to mach_port_request_notification.
2020 (darwin_ptrace_me): Raise an error rather than a failed
2021 assertion when read returns nonzero.
2022
2023 2013-05-06 Joel Brobecker <brobecker@adacore.com>
2024
2025 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
2026
2027 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2028
2029 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
2030
2031 2013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2032
2033 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
2034 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
2035 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
2036 a stale cleanup. Fix double free of NAME.
2037
2038 2013-05-04 Eli Zaretskii <eliz@gnu.org>
2039
2040 * windows-nat.c (windows_delete_thread): Accept an additional
2041 argument, the thread's exit code, and announce thread death when
2042 print_thread_events is non-zero and we are deleting a thread that
2043 is not the main thread.
2044 (get_windows_debug_event): Pass thread exit code to
2045 windows_delete_thread.
2046
2047 2013-05-03 Kevin Buettner <kevinb@redhat.com>
2048
2049 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
2050 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
2051 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
2052 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
2053 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
2054 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
2055 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
2056 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
2057 (gdbarch_tdep): New struct.
2058 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
2059 E_NUM_REGS.
2060 (v850e3v5_register_name): New function.
2061 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
2062 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
2063 code handling the struct return conventions for the RH850 ABI.
2064 Update all callers.
2065 (v850_eight_byte_align_p): New function.
2066 (v850_push_call_dummy): Push structs by value, not by reference
2067 for the RH850 ABI. Add support for eight byte alignment.
2068 (v850_dbtrap_breakpoint_from_pc): New function.
2069 (v850_gdbarch_init): Add ABI detection code. Register
2070 v850e3v5_register_name for the v850e3v5 architecture. Set the
2071 number of registers for v850e3v5. Register
2072 v850_dbtrap_breakpoint_from_pc as appropriate.
2073 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
2074
2075 2013-05-03 Doug Evans <dje@google.com>
2076
2077 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
2078 of bfd_count_sections.
2079 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
2080 * symfile.c (default_symfile_offsets): Ditto.
2081 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
2082 one entry, not bfd_count_sections entries.
2083
2084 2013-05-03 Kevin Buettner <kevinb@redhat.com>
2085
2086 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
2087 `save' and `restore' register groups. Don't include SPL
2088 or SPH in these groups.
2089 (rl78_dwarf_reg_to_regnum): Adjust mapping for
2090 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
2091 RL78_ES_REGNUM, and RL78_CS_REGNUM.
2092 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
2093 dwarf2_append_unwinders().
2094
2095 2013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2096
2097 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
2098 ignore SIGINT and SIGTRAP in case these internal signals are
2099 caught explicitely.
2100
2101 2013-05-01 Joel Brobecker <brobecker@adacore.com>
2102
2103 * darwin-nat.c (darwin_read_write_inferior): Change types
2104 of parameters rdaddr and wraddr to "gdb_byte *". Change type
2105 of copy_count to "mach_msg_type_number_t".
2106 (darwin_read_dyld_info): Change type of parameter
2107 rdaddr to "gdb_byte *".
2108
2109 2013-05-01 Joel Brobecker <brobecker@adacore.com>
2110
2111 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
2112 of &info->load_map from "char *" to "gdb_byte *".
2113
2114 2013-05-01 Joel Brobecker <brobecker@adacore.com>
2115
2116 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
2117 from "char *" to "gdb_byte *".
2118 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
2119
2120 2013-04-30 Doug Evans <dje@google.com>
2121
2122 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
2123 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
2124 DWO stub. If DWO isn't found, just use stub.
2125 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
2126
2127 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
2128 calling init_cutu_and_read_dies.
2129
2130 2013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
2131
2132 * target-descriptions.c (maint_print_c_tdesc_cmd):
2133 Add case to parse structures as register types and
2134 bitfields.
2135
2136 2013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
2137
2138 * MAINTAINERS (Write After Approval): Add myself to the list.
2139
2140 2013-04-30 Joel Brobecker <brobecker@adacore.com>
2141
2142 * sol-thread.c (rw_common): Change type of parameter "buf"
2143 to "gdb_byte *".
2144 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
2145 rw_common to "gdb_byte *" instead of "char *".
2146
2147 2013-04-30 Joel Brobecker <brobecker@adacore.com>
2148
2149 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
2150 of local variable msym to const struct bound_minimal_symbol.
2151 Adjust use accordingly.
2152 [ti.ti_state == TD_THR_SLEEP]: Likewise.
2153
2154 2013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
2155
2156 * i386gnu-nat.c (CREG_OFFSET): New macro.
2157 (creg_offset): New array.
2158 (CREG_ADDR): Use creg_offset instead of reg_offset.
2159
2160 2013-04-30 Joel Brobecker <brobecker@adacore.com>
2161
2162 * mep-tdep.c (mep_write_pc): Delete.
2163 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
2164 Add call to set_gdbarch_pc_regnum.
2165
2166 2013-04-30 Joel Brobecker <brobecker@adacore.com>
2167
2168 * common/filestuff.c: Replace #include <dirent.h> by
2169 #include "gdb_dirent.h".
2170
2171 2013-04-30 Joel Brobecker <brobecker@adacore.com>
2172
2173 * common/filestuff.c: Replace #include <sys/stat.h> by
2174 #include "gdb_stat.h".
2175
2176 2013-04-29 Pierre Muller <muller@sourceware.org>
2177
2178 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
2179 editCase function rule.
2180 (get_DW_AT_signature_type): Likewise.
2181
2182 2013-04-29 Joel Brobecker <brobecker@adacore.com>
2183
2184 * m32r-tdep.c (m32r_write_pc): Delete.
2185 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
2186 Add call to set_gdbarch_pc_regnum.
2187
2188 2013-04-29 Pierre Muller <muller@sourceware.org>
2189
2190 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
2191
2192 2013-04-29 Joel Brobecker <brobecker@adacore.com>
2193
2194 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
2195
2196 2013-04-28 Yao Qi <yao@codesourcery.com>
2197
2198 * solib-dsbt.c (fetch_loadmap): Re-indent.
2199 (displacement_from_map, enable_break2): Likewise.
2200 (dsbt_relocate_section_addresses): Likewise.
2201
2202 2013-04-26 Joel Brobecker <brobecker@adacore.com>
2203
2204 GDB 7.6 released.
2205
2206 2013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
2207
2208 PR corefiles/14983:
2209 * dwarf2read.c (process_full_comp_unit): Always create a static
2210 block.
2211
2212 2013-04-25 Hui Zhu <hui@codesourcery.com>
2213
2214 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
2215 to loc->cmd_bytecode.
2216
2217 2013-04-24 Doug Evans <dje@google.com>
2218
2219 * dwarf2read.c (setup_type_unit_groups): Fix comment.
2220
2221 2013-04-22 Keith Seitz <keiths@redhat.com>
2222
2223 * tracepoint.c (trace_save): Call the writer's start method.
2224
2225 2013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
2226
2227 PR gdb/10462
2228 * cli/cli-decode.c (lookup_command): Show an error if there is no space
2229 before argument.
2230
2231 2013-04-23 Tom Tromey <tromey@redhat.com>
2232
2233 * common/filestuff.c: Check USE_WIN32API before including
2234 sys/socket.h.
2235 (HAVE_F_GETFD): New define.
2236 (mark_cloexec): Check HAVE_F_GETFD.
2237 (gdb_open_cloexec): Change 'mode' to unsigned long.
2238 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
2239 (gdb_pipe_cloexec): Check HAVE_PIPE.
2240 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
2241 long.
2242
2243 2013-04-23 Hui Zhu <hui@codesourcery.com>
2244
2245 PR gdb/15293
2246 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
2247
2248 2013-04-23 Hui Zhu <hui@codesourcery.com>
2249
2250 PR gdb/15165
2251 * breakpoint.c (dprintf_print_recreate): New.
2252 (save_breakpoints): Let it not save dprintf commands.
2253 (initialize_breakpoint_ops): Set dprintf_print_recreate.
2254
2255 2013-04-22 Tom Tromey <tromey@redhat.com>
2256
2257 PR gdb/7912:
2258 * Makefile.in (SFILES): Add filestuff.c
2259 (COMMON_OBS): Add filestuff.o.
2260 (filestuff.o): New target.
2261 * auto-load.c (auto_load_objfile_script_1): Use
2262 gdb_fopen_cloexec.
2263 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
2264 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
2265 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
2266 * common/agent.c (gdb_connect_sync_socket): Use
2267 gdb_socket_cloexec.
2268 * common/filestuff.c: New file.
2269 * common/filestuff.h: New file.
2270 * common/linux-osdata.c (linux_common_core_of_thread)
2271 (command_from_pid, commandline_from_pid, print_source_lines)
2272 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
2273 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
2274 gdb_fopen_cloexec.
2275 * common/linux-procfs.c (linux_proc_get_int)
2276 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
2277 * config.in, configure: Rebuild.
2278 * configure.ac: Don't check for sys/socket.h. Check for
2279 fdwalk, pipe2.
2280 * corelow.c (core_open): Use gdb_open_cloexec.
2281 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
2282 * fork-child.c (fork_inferior): Call close_most_fds.
2283 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
2284 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
2285 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
2286 Use gdb_fopen_cloexec.
2287 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
2288 gdb_open_cloexec.
2289 (linux_async_pipe): Use gdb_pipe_cloexec.
2290 * remote-fileio.c (remote_fileio_func_open): Use
2291 gdb_open_cloexec.
2292 * remote.c (remote_file_put, remote_file_get): Use
2293 gdb_fopen_cloexec.
2294 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
2295 close_most_fds.
2296 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
2297 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
2298 * solib.c (solib_find): Use gdb_open_cloexec.
2299 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
2300 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
2301 (tfile_open): Use gdb_open_cloexec.
2302 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
2303 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
2304 * xml-support.c (xml_fetch_content_from_file): Use
2305 gdb_fopen_cloexec.
2306 * main.c (captured_main): Call notice_open_fds.
2307
2308 2013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
2309
2310 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
2311 'char *' to 'gdb_byte *'.
2312 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
2313 'gdb_byte'.
2314
2315 2013-04-22 Yao Qi <yao@codesourcery.com>
2316
2317 * infrun.c: Fix typo in comment.
2318
2319 2013-04-22 Andrew Haley <aph@redhat.com>
2320
2321 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
2322 instead of "long".
2323
2324 2013-04-20 Yao Qi <yao@codesourcery.com>
2325
2326 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
2327 'char *' to 'gdb_byte *'. Cast the return value of
2328 'bt_ctf_get_char_array' to 'gdb_byte *'.
2329
2330 2013-04-19 Pedro Alves <palves@redhat.com>
2331
2332 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
2333 -Wpointer-sign.
2334 * configure: Regenerate.
2335
2336 2013-04-19 Pedro Alves <palves@redhat.com>
2337
2338 * ser-tcp.c (net_read_prim): Cast second argument to recv to
2339 'void *'.
2340
2341 2013-04-19 Pedro Alves <palves@redhat.com>
2342
2343 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
2344 Change type of 'myaddr' parameter to gdb_byte pointer.
2345 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
2346 to 'long long' pointer instead of to 'unsigned long long'.
2347 (monitor_write_memory_block, monitor_read_memory_single)
2348 (monitor_read_memory): Change type of 'myaddr' parameter to
2349 gdb_byte pointer.
2350
2351 2013-04-19 Pedro Alves <palves@redhat.com>
2352
2353 * record.c (validate_history_size): Make parameter 'setting'
2354 unsigned.
2355
2356 2013-04-19 Pedro Alves <palves@redhat.com>
2357
2358 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
2359 to 'gdb_byte *'.
2360
2361 2013-04-19 Pedro Alves <palves@redhat.com>
2362
2363 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
2364 local to int.
2365
2366 2013-04-19 Pedro Alves <palves@redhat.com>
2367
2368 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
2369 * ada-tasks.c (read_fat_string_value): Likewise.
2370
2371 2013-04-19 Pedro Alves <palves@redhat.com>
2372
2373 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
2374 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
2375 'offset', and adjust.
2376
2377 2013-04-19 Pedro Alves <palves@redhat.com>
2378
2379 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
2380 (read_index_from_section): Add cast to 'char *'.
2381
2382 2013-04-19 Pedro Alves <palves@redhat.com>
2383
2384 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
2385
2386 2013-04-19 Pedro Alves <palves@redhat.com>
2387
2388 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
2389
2390 2013-04-19 Pedro Alves <palves@redhat.com>
2391
2392 * record-full.c (record_full_get_bookmark): Change local 'ret'
2393 type to char * and add cast to gdb_byte *.
2394 (record_full_goto_bookmark): Handle 'bookmark' argument as a
2395 string.
2396 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
2397
2398 2013-04-19 Pedro Alves <palves@redhat.com>
2399
2400 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
2401 * python/py-prettyprint.c (print_string_repr): Change type of
2402 'output' local to char *. Add cast to gdb_byte * in
2403 LA_PRINT_STRING call.
2404 (print_children): Change type of 'output' local to char *.
2405 * python/py-value.c (valpy_string): Add cast to const char * in
2406 PyUnicode_Decode call.
2407
2408 2013-04-19 Pedro Alves <palves@redhat.com>
2409
2410 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
2411 and change its type to 'const char *'. Adjust.
2412 (mips_send_packet): Add cast to 'char *', and remove cast to
2413 'unsigned char *'.
2414 (mips_receive_packet): Remove cast to 'unsigned char *'.
2415 (mips_load_srec): Use bfd_byte.
2416 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
2417 (pmon_checkset): Make 'value' parameter unsigned.
2418
2419 2013-04-19 Pedro Alves <palves@redhat.com>
2420
2421 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
2422
2423 2013-04-19 Pedro Alves <palves@redhat.com>
2424
2425 * remote.c (remote_write_bytes_aux, compare_sections_command)
2426 (remote_read_qxfer)
2427 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
2428 (remote_hostio_readlink, remote_bfd_iovec_pread)
2429 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
2430 binary buffer, and char when buffer is used as string.
2431 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
2432 (trace_save, tfile_open, traceframe_walk_blocks)
2433 (tfile_fetch_registers): Likewise.
2434
2435 2013-04-19 Pedro Alves <palves@redhat.com>
2436
2437 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
2438 buffer and size_t size. Adjust.
2439 * ser-base.h (ser_base_write): Adjust.
2440 * ser-go32.c (cnts): Change type to size_t.
2441 (dos_write): Change prototype -- take 'void *'
2442 buffer and size_t size. Adjust.
2443 (dos_info): Print elements of 'cnts' as unsigned long.
2444 * serial.c (serial_write): Likewise.
2445 * serial.h (serial_write): Adjust.
2446 (struct serial_ops) <write>: Change prototype -- take 'void *'
2447 buffer and size_t size. Adjust.
2448
2449 2013-04-19 Pedro Alves <palves@redhat.com>
2450
2451 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
2452 gdb_byte *.
2453 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
2454
2455 2013-04-19 Pedro Alves <palves@redhat.com>
2456
2457 * alpha-tdep.c (alpha_extract_return_value): Use
2458 regcache_cooked_read_unsigned to read 'v0'.
2459
2460 2013-04-19 Pedro Alves <palves@redhat.com>
2461
2462 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
2463 parameters 'at', 'as' and 'offset' to uint32_t.
2464
2465 2013-04-19 Pedro Alves <palves@redhat.com>
2466
2467 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
2468 'is64' to signed 'int'.
2469
2470 2013-04-19 Pedro Alves <palves@redhat.com>
2471
2472 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
2473 parameter to int *.
2474
2475 2013-04-19 Pedro Alves <palves@redhat.com>
2476
2477 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
2478 'insnbuf' buffer type to unsigned int[].
2479
2480 2013-04-19 Pedro Alves <palves@redhat.com>
2481
2482 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
2483
2484 2013-04-19 Pedro Alves <palves@redhat.com>
2485
2486 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
2487 unsigned long *.
2488
2489 2013-04-19 Pedro Alves <palves@redhat.com>
2490
2491 * alpha-tdep.c (heuristic_fence_post): Change type to int.
2492 (alpha_heuristic_proc_start): Adjust to check -1 instead of
2493 UINT_MAX.
2494 * mips-tdep.c (heuristic_fence_post): Change type to int.
2495 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
2496
2497 2013-04-19 Pedro Alves <palves@redhat.com>
2498
2499 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
2500 (struct gdbarch_tdep) <cris_version>: Make unsigned.
2501 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
2502
2503 2013-04-19 Pedro Alves <palves@redhat.com>
2504
2505 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
2506 it to get a string view of the byte buffer.
2507 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
2508 type to gdb_byte *. Adjust.
2509 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
2510 Change local to char *.
2511 * solib-darwin.c (find_program_interpreter): Change return type to
2512 char *. Adjust.
2513 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
2514 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
2515 * solib-frv.c (enable_break2): Change local 'buf' to char *.
2516 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
2517 * solib-svr4.c (find_program_interpreter): Change return type to
2518 char *. Adjust.
2519 (enable_break): Change local 'interp_name' to char *.
2520 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
2521 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
2522 (spu_pseudo_register_write_spu): Use char for string buffer.
2523 Adjust.
2524 (info_spu_event_command, info_spu_signal_command): Add casts to
2525 'char *'.
2526
2527 2013-04-19 Pedro Alves <palves@redhat.com>
2528
2529 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
2530 gdb_byte[].
2531 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
2532 * ada-lang.c (ada_value_assign): Use gdb_byte.
2533 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
2534 (alphanbsd_sigtramp_offset): Use gdb_byte.
2535 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
2536 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
2537 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
2538 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
2539 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
2540 * arm-tdep.c (arm_stub_unwind_sniffer)
2541 (arm_displaced_init_closure): Use gdb_byte.
2542 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
2543 (arm_default_thumb_le_breakpoint)
2544 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
2545 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
2546 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
2547 * arm-wince-tdep.c (arm_wince_le_breakpoint)
2548 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
2549 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
2550 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
2551 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
2552 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
2553 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
2554 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
2555 (cris_store_return_value, cris_extract_return_value): Use
2556 gdb_byte.
2557 (constraint): Change type of parameter to char * from signed
2558 char*. Use gdb_byte.
2559 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
2560 of local buffer to gdb_byte *.
2561 * dwarf2read.c (read_index_from_section): Use gdb_byte.
2562 (create_dwp_hash_table): Change type of locals to gdb_byte *.
2563 (add_address_entry): Change type of local buffer to gdb_byte[].
2564 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
2565 (frv_push_dummy_call): Use gdb_byte.
2566 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
2567 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
2568 (hppa_hpux_supply_save_state): Use gdb_byte.
2569 * hppa-tdep.c (hppa32_push_dummy_call)
2570 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
2571 * ia64-tdep.c (extract_bit_field, replace_bit_field)
2572 (slotN_contents, replace_slotN_contents): Change type of parameter
2573 to gdb_byte *.
2574 (fetch_instruction, ia64_pseudo_register_write)
2575 (ia64_register_to_value, ia64_value_to_register)
2576 (ia64_extract_return_value, ia64_store_return_value)
2577 (ia64_push_dummy_call): Use gdb_byte.
2578 * m32c-tdep.c (m32c_return_value): Remove cast.
2579 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
2580 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
2581 gdb_byte.
2582 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
2583 * mn10300-tdep.c (mn10300_store_return_value)
2584 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
2585 gdb_byte.
2586 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
2587 (moxie_process_record): Remove casts.
2588 * ppc-ravenscar-thread.c (supply_register_at_address)
2589 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
2590 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
2591 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
2592 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
2593 * remote.c (compare_sections_command): Use gdb_byte.
2594 * score-tdep.c (score7_free_memblock): Change type of parameter to
2595 gdb_byte *.
2596 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
2597 gdb_byte *. Use gdb_byte.
2598 (sh_push_dummy_call_fpu): Use gdb_byte.
2599 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
2600 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
2601 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
2602 Change parameter type to 'gdb_byte *'. Use gdb_byte.
2603 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
2604 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
2605 (sh64_store_return_value, sh64_register_convert_to_virtual):
2606 Change parameter type to 'gdb_byte *'. Use gdb_byte.
2607 (sh64_pseudo_register_write): Use gdb_byte.
2608 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
2609 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
2610 buffer.
2611 (irix_current_sos): Use gdb_byte.
2612 * solib-som.c (som_current_sos): Use gdb_byte.
2613 * sparc-ravenscar-thread.c (supply_register_at_address)
2614 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
2615 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
2616 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
2617 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
2618 'gdb_byte *'.
2619 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
2620 'gdb_byte *'.
2621 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
2622 * xstormy16-tdep.c (xstormy16_extract_return_value)
2623 (xstormy16_store_return_value): Change parameter type to
2624 'gdb_byte *'. Adjust.
2625 (xstormy16_push_dummy_call): Use gdb_byte.
2626 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
2627 (call0_analyze_prologue, execute_code): Use gdb_byte.
2628
2629 2013-04-19 Vladimir Kargov <kargov@gmail.com>
2630 Pedro Alves <palves@redhat.com>
2631
2632 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
2633 value contents.
2634
2635 2013-04-17 Doug Evans <dje@google.com>
2636
2637 * dwarf2read.c (struct signatured_type): New member type.
2638 (struct attribute): Replace member signatured_type with signature.
2639 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
2640 (read_call_site_scope): Call follow_die_ref instead of
2641 follow_die_ref_or_sig.
2642 (read_structure_type): Rewrite handling of signatured types.
2643 (read_enumeration_type): Ditto.
2644 (read_attribute_value): Update.
2645 (build_error_marker_type): New function.
2646 (lookup_die_type): Add assert. Rewrite handling of signatured types.
2647 Don't call error for bad types, just build an error marker type.
2648 (dump_die_shallow): Update.
2649 (follow_die_sig_1): Renamed from follow_die_sig.
2650 Don't call error for bad types, instead return NULL.
2651 (follow_die_sig): New function.
2652 (get_signatured_type, get_DW_AT_signature_type): New functions.
2653
2654 2013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
2655
2656 * aarch64-tdep.c (aarch64_write_pc): Removed.
2657 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
2658 function.
2659
2660 2013-04-17 Yao Qi <yao@codesourcery.com>
2661
2662 * top.c (print_gdb_configuration): Print configure-time
2663 parameter on using libbabeltrace or not.
2664
2665 2013-04-16 Pedro Alves <palves@redhat.com>
2666
2667 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
2668
2669 2013-04-16 Pedro Alves <palves@redhat.com>
2670
2671 * common/glibc_thread_db.h: Update from upstream glibc
2672 (git 568035b7874a099087b77f7bba3e36a1173787b0).
2673
2674 2013-04-16 Pedro Alves <palves@redhat.com>
2675
2676 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
2677 * common/glibc_thread_db.h: ... this new file ...
2678 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
2679
2680 2013-04-16 Will Newton <will.newton@gmail.com>
2681 Pedro Alves <palves@redhat.com>
2682
2683 PR build/11881
2684
2685 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
2686 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
2687 HAVE_THREAD_DB_H.
2688
2689 2013-04-16 Pedro Alves <palves@redhat.com>
2690 Eli Zaretskii <eliz@gnu.org>
2691
2692 * NEWS: Mention "set foo unlimited".
2693
2694 2013-04-15 Doug Evans <dje@google.com>
2695
2696 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
2697 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
2698 (create_dwo_cu_reader): Renamed from
2699 create_dwo_debug_info_hash_table_reader.
2700 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
2701 Remove support for multiple CUs in a DWO file.
2702 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
2703
2704 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
2705 instead of phex.
2706 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
2707 (create_dwo_in_dwp): Ditto.
2708
2709 2013-04-15 Tom Tromey <tromey@redhat.com>
2710
2711 * NEWS: Move recent entries into "since 7.6" section.
2712
2713 2013-04-15 Tom Tromey <tromey@redhat.com>
2714
2715 PR c++/13588:
2716 * NEWS: Update.
2717 * break-catch-throw.c (struct exception_catchpoint)
2718 <exception_rx, pattern>: New fields.
2719 (fetch_probe_arguments, dtor_exception_catchpoint)
2720 (check_status_exception_catchpoint)
2721 (print_one_detail_exception_catchpoint): New functions.
2722 (handle_gnu_v3_exceptions): Add "except_rx" argument.
2723 Compile regular expression if needed.
2724 (extract_exception_regexp): New function.
2725 (catch_exception_command_1): Use extract_exception_regexp.
2726 (compute_exception): Use fetch_probe_arguments.
2727 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
2728 and check_status fields.
2729 * cp-abi.c (cplus_typename_from_type_info): New function.
2730 * cp-abi.h (cplus_typename_from_type_info): Declare.
2731 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
2732 * gdb_regex.h (compile_rx_or_error): Declare.
2733 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
2734 comment.
2735 (init_gnuv3_ops): Set get_type_from_type_info field.
2736 * probe.c (compile_rx_or_error): Move...
2737 * utils.c (compile_rx_or_error): ... here.
2738
2739 2013-04-15 Tom Tromey <tromey@redhat.com>
2740
2741 PR c++/15176:
2742 * NEWS: Update.
2743 * break-catch-throw.c (compute_exception): New function.
2744 (exception_funcs): New global.
2745 (_initialize_break_catch_throw): Create $_exception.
2746 * cp-abi.c (cplus_type_from_type_info): New function.
2747 * cp-abi.h (cplus_type_from_type_info): Declare.
2748 (struct cp_abi_ops) <get_type_from_type_info>: New field.
2749 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
2750 (gnuv3_get_type_from_type_info): New functions.
2751 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
2752
2753 2013-04-15 Tom Tromey <tromey@redhat.com>
2754
2755 * break-catch-throw.c (struct exception_names): New.
2756 (exception_functions): Change type.
2757 (re_set_exception_catchpoint): Look for SDT probes.
2758
2759 2013-04-15 Tom Tromey <tromey@redhat.com>
2760
2761 PR c++/10119:
2762 * break-catch-throw.c (exception_functions): New global.
2763 (gnu_v3_exception_catchpoint_ops): Move earlier.
2764 (struct exception_catchpoint): New.
2765 (classify_exception_breakpoint): Rewrite.
2766 (re_set_exception_catchpoint): New function.
2767 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
2768 Allocate a struct exception_catchpoint.
2769 (catch_exception_command_1): Update.
2770 (initialize_throw_catchpoint_ops): Set 're_set' method.
2771
2772 2013-04-15 Tom Tromey <tromey@redhat.com>
2773
2774 * Makefile.in (SFILES): Add break-catch-throw.c
2775 (COMMON_OBS): Add break-catch-throw.o.
2776 * break-catch-throw.c: New file.
2777 * breakpoint.c: Move exception-catching code to new file.
2778 (ep_parse_optional_if_clause): No longer static.
2779 * breakpoint.h (ep_parse_optional_if_clause): Declare.
2780
2781 2013-04-15 Tom Tromey <tromey@redhat.com>
2782
2783 PR c++/9065:
2784 * NEWS: Update.
2785 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
2786 * c-exp.y (TYPEID): New token.
2787 (exp): Add new TYPEID productions.
2788 (ident_tokens): Add "typeid".
2789 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
2790 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
2791 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
2792 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
2793 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
2794 case.
2795 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
2796 (build_std_type_info_type, gnuv3_get_typeid_type)
2797 (gnuv3_get_typeid): New functions.
2798 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
2799 new fields on ABI object.
2800 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
2801 * std-operator.def (OP_TYPEID): New.
2802
2803 2013-04-15 Tom Tromey <tromey@redhat.com>
2804
2805 * elfread.c (elf_symtab_read): Install versioned symbol under
2806 unversioned name as well.
2807
2808 2013-04-15 Tom Tromey <tromey@redhat.com>
2809
2810 PR c++/11990:
2811 * c-lang.c (cplus_language_defn): Use gdb_demangle.
2812 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
2813 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
2814 (gdb_demangle): New function.
2815 * cp-support.h (gdb_demangle): Declare.
2816 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
2817 (dwarf2_name): Use gdb_demangle.
2818 * gdbtypes.c (check_stub_method): Use gdb_demangle.
2819 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
2820 suffixes from name.
2821 (gnuv3_print_method_ptr): Use gdb_demangle.
2822 * jv-lang.c (java_demangle): Use gdb_demangle.
2823 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
2824 * language.c (unk_lang_demangle): Use gdb_demangle.
2825 * symtab.c (symbol_find_demangled_name)
2826 (demangle_for_lookup): Use gdb_demangle.
2827
2828 2013-04-15 Tom Tromey <tromey@redhat.com>
2829
2830 PR c++/12824:
2831 * NEWS: Update.
2832 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
2833 New constant.
2834 (classify_exception_breakpoint): New function.
2835 (print_it_exception_catchpoint, print_one_exception_catchpoint)
2836 (print_mention_exception_catchpoint)
2837 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
2838 (catch_exception_command_1): Handle "rethrow" catchpoint.
2839 (catch_rethrow_command): New function.
2840 (_initialize_breakpoint): Add "catch rethrow" command.
2841
2842 2013-04-15 Pierre Muller <muller@sourceware.org>
2843
2844 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
2845 set_gdbarch_write_pc as deprecated anymore.
2846
2847 2013-04-15 Joel Brobecker <brobecker@adacore.com>
2848
2849 * spu-tdep.c (spu_write_pc): Add empty line after local variable
2850 declarations.
2851
2852 2013-04-13 Yao Qi <yao@codesourcery.com>
2853
2854 * ctf.c (_initialize_ctf): Include "completer.h".
2855 Call add_target_with_completer instead of add_target.
2856
2857 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2858
2859 Fix GDB regression related to PR binutils/14813.
2860 * jit.c (mem_bfd_iovec_close): Return 0 for success.
2861 * minidebug.c (lzma_close): Add return value comment.
2862 * remote.c (remote_bfd_iovec_close): Return 0 for success.
2863 * solib-spu.c (spu_bfd_iovec_close): Likewise.
2864 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
2865
2866 2013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
2867
2868 * config.in: Regenerate.
2869
2870 2013-04-12 Tom Tromey <tromey@redhat.com>
2871
2872 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
2873 const.
2874 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
2875 (struct die_reader_specs) <buffer>: Likewise.
2876 (die_reader_func_ftype): Make 'info_ptr' const.
2877 (struct line_header) <include_dirs, statement_program_start,
2878 statement_program_end>: Now const.
2879 (struct file_entry) <name>: Likewise.
2880 (struct partial_die_info) <sibling>: Likewise.
2881 (struct dwarf_block) <data>: Likewise.
2882 (dwarf2_read_section): Remove cast.
2883 (dwarf2_get_section_info): Make 'bufp' const.
2884 (read_index_from_section): Constify.
2885 (dw2_get_file_names_reader): Make 'info_ptr' const.
2886 (dw2_get_primary_filename_reader): Likewise.
2887 (read_comp_unit_head): Make 'info_ptr' and return type const.
2888 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
2889 Likewise.
2890 (read_abbrev_offset): Constify.
2891 (dwarf2_create_include_psymtab): Make 'name' const.
2892 (create_debug_types_hash_table): Update.
2893 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
2894 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
2895 Constify.
2896 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
2897 (load_partial_comp_unit_reader): Make 'info_ptr' const.
2898 (read_comp_units_from_section): Constify.
2899 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
2900 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
2901 const.
2902 (dwarf2_compute_name, setup_type_unit_groups): Constify.
2903 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
2904 (create_dwp_hash_table, dwarf2_ranges_read)
2905 (dwarf2_record_block_ranges): Constify.
2906 (read_die_and_children, read_die_and_siblings_1)
2907 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
2908 const.
2909 (read_full_die_1, read_full_die): Make 'info_ptr' const.
2910 (abbrev_table_read_table): Constify.
2911 (load_partial_dies): Make 'info_ptr' const.
2912 (read_partial_die, read_attribute_value, read_attribute): Make
2913 'info_ptr' and return type const.
2914 (read_address, read_initial_length)
2915 (read_checked_initial_length_and_offset, read_offset)
2916 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
2917 const.
2918 (read_direct_string): Make 'buf' and return type const.
2919 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
2920 (read_indirect_string): Make return type const.
2921 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
2922 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
2923 'info_ptr' const.
2924 (read_str_index): Make return type const.
2925 (add_include_dir): Make 'include_dir' const.
2926 (add_file_name): Make 'name' const.
2927 (dwarf_decode_line_header): Constify.
2928 (psymtab_include_file_name): Make return type const.
2929 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
2930 (dwarf2_start_subfile): Make 'filename' const.
2931 (dwarf2_const_value_attr): Make 'bytes' const.
2932 (read_signatured_type_reader): Make 'info_ptr' const.
2933 (decode_locdesc): Constify.
2934 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
2935 const.
2936 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
2937 'mac_end', and return type const.
2938 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
2939 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
2940 type const.
2941 (per_cu_header_read_in): Constify.
2942 * symfile.h (dwarf2_get_section_info): Update.
2943
2944 2013-04-12 Tom Tromey <tromey@redhat.com>
2945
2946 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
2947
2948 2013-04-12 Eli Zaretskii <eliz@gnu.org>
2949
2950 * NEWS: Mention "show configuration", --configuration.
2951 * top.c (print_gdb_configuration): New function, displays the
2952 details about GDB configure-time parameters.
2953 (print_gdb_version): Mention "show configuration".
2954 * cli/cli-cmds.c (show_configuration): New function.
2955 (_initialize_cli_cmds): Add the "show configuration" command.
2956 * main.c (captured_main) <print_configuration>: New static var.
2957 <long_options>: Use it.
2958 If --configuration was given, call print_gdb_configuration.
2959
2960 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2961 Pedro Alves <palves@redhat.com>
2962
2963 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
2964 (generated_files): Add gcore.
2965 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
2966 HAVE_NATIVE_GCORE_HOST.
2967 (gcore): New.
2968 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
2969 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
2970 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
2971 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
2972 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
2973 Add HAVE_NATIVE_GCORE_HOST.
2974 * configure: Regenerate.
2975 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
2976 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
2977 AC_CONFIG_FILES for gcore.
2978 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
2979 gdb_have_gcore.
2980 * gdb_gcore.sh: Rename to ...
2981 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
2982 and GCORE_TRANSFORM_NAME substitutions.
2983
2984 Fix parsing tabs in ${gdb_target_obs}.
2985 * configure.tgt (gdb_have_gcore): Replace case with for and if.
2986
2987 2013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2988
2989 * remote.c (unpush_and_perror): Add output message final dot.
2990
2991 2013-04-11 Yao Qi <yao@codesourcery.com>
2992
2993 * tracepoint.c (tfile_interp_line): Fit parameters line and
2994 utpp in one line.
2995
2996 2013-04-10 Joel Brobecker <brobecker@adacore.com>
2997
2998 * solib.c (solib_map_sections): Remove code overwriting
2999 SO->SO_NAME with the bfd's filename.
3000
3001 2013-04-10 Pedro Alves <palves@redhat.com>
3002
3003 * cli/cli-decode.c (integer_unlimited_completer): New function.
3004 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
3005 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
3006 completer.
3007 * cli/cli-setshow.c: Include "cli/cli-utils.h".
3008 (is_unlimited_literal): New function.
3009 (do_set_command): Handle literal "unlimited" arguments.
3010 * frame.c (_initialize_frame) <set backtrace limit>: Document
3011 "unlimited".
3012 * printcmd.c (_initialize_printcmd) <set print
3013 max-symbolic-offset>: Add help text.
3014 * record-full.c (_initialize_record_full) <set record full
3015 insn-number-max>: Likewise.
3016 * record.c (_initialize_record) <set record
3017 instruction-history-size, set record function-call-history-size>:
3018 Add help text.
3019 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
3020 help text.
3021 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
3022 Likewise.
3023 * source.c (_initialize_source) <set listsize>: Add help text.
3024 * utils.c (initialize_utils) <set height, set width>: Likewise.
3025 <set pagination>: Mention "set height unlimited".
3026 * valprint.c (_initialize_valprint) <set print elements, set print
3027 repeats>: Document "unlimited".
3028
3029 2013-04-10 Pedro Alves <palves@redhat.com>
3030
3031 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
3032 instead of disconnect_tracing.
3033 * infcmd.c (detach_command, disconnect_command): Call
3034 query_if_trace_running. Adjust.
3035 * top.c: Include "tracepoint.h".
3036 (quit_target): Delete. Contents moved ...
3037 (quit_force): ... here. Wrap each stage of teardown in
3038 TRY_CATCH. Call disconnect_tracing before detaching.
3039
3040 2013-04-10 Hui Zhu <hui@codesourcery.com>
3041 Yao Qi <yao@codesourcery.com>
3042
3043 * configure.ac: Check libbabeltrace is installed.
3044 * config.in: Regenerate.
3045 * configure: Regenerate.
3046 * Makefile.in (LIBBABELTRACE): New.
3047 (CLIBS): Add LIBBABELTRACE.
3048 * ctf.c: Include "exec.h".
3049 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
3050 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
3051 (ctf_save_metadata_header): Define new type aliases in
3052 metadata.
3053 (ctf_write_header): Define event type "tsv_def" and "tp_def"
3054 in metadata. Start a new faked packet for trace status.
3055 (ctf_write_status): Write trace status to CTF.
3056 (ctf_write_uploaded_tsv): Write TSV to CTF.
3057 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
3058 (ctf_write_definition_end): End the faked packet.
3059
3060 (ctx, ctf_iter, trace_dirname): New.
3061 (start_pos): New variable.
3062 (ctf_destroy, ctf_open_dir, ctf_open): New.
3063 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
3064 macros.
3065 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
3066 (ctf_fetch_registers, ctf_xfer_partial): New.
3067 (ctf_get_trace_state_variable_value): New.
3068 (ctf_get_tpnum_from_frame_event): New.
3069 (ctf_get_traceframe_address): New.
3070 (ctf_trace_find, ctf_has_stack): New.
3071 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
3072 (ctf_get_trace_status, ctf_read_status): New.
3073 (_initialize_ctf): New.
3074 * tracepoint.c (get_tracepoint_number): New
3075 (get_uploaded_tsv): Remove 'static'.
3076 (struct traceframe_info, trace_regblock_size): Move it to ...
3077 * tracepoint.h: ... here.
3078 (get_tracepoint_number): Declare it.
3079 (get_uploaded_tsv): Declare it.
3080
3081 * NEWS: Mention new configure option.
3082
3083 2013-04-10 Pedro Alves <palves@redhat.com>
3084 Hui Zhu <hui@codesourcery.com>
3085
3086 * breakpoint.c (dprintf_re_set): New.
3087 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
3088 to dprintf_re_set.
3089
3090 2013-04-09 Joel Brobecker <brobecker@adacore.com>
3091
3092 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
3093 Remove solib-svr4.o from the list.
3094
3095 2013-04-09 Joel Brobecker <brobecker@adacore.com>
3096
3097 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
3098 Use gdb_assert_not_reached instead of invalid boolean expression.
3099
3100 2013-04-09 Pedro Alves <palves@redhat.com>
3101
3102 * remote.c (unpush_and_perror): New function.
3103 (readchar, remote_serial_write): Use it.
3104
3105 2013-04-09 Markus Metzger <markus.t.metzger@intel.com>
3106
3107 * NEWS: Mention new btrace RSP packets.
3108
3109 2013-04-08 Tom Tromey <tromey@redhat.com>
3110
3111 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
3112 long.
3113
3114 2013-04-08 Tom Tromey <tromey@redhat.com>
3115
3116 * maint.c (print_bfd_section_info): Print the section index.
3117 * symmisc.c (dump_msymbols): Print the section index.
3118
3119 2013-04-08 Tom Tromey <tromey@redhat.com>
3120
3121 PR symtab/8424:
3122 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
3123 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
3124 * breakpoint.c (resolve_sal_pc): Update.
3125 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3126 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
3127 (minsym_lookup_iterator_cb): Use it.
3128 (default_read_var_value): Update.
3129 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
3130 Update.
3131 * infcmd.c (jump_command): Update.
3132 * linespec.c (minsym_found): Update.
3133 * maint.c (maintenance_translate_address): Update.
3134 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
3135 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
3136 * parse.c (write_exp_msymbol): Update.
3137 * printcmd.c (address_info): Update.
3138 * psymtab.c (find_pc_sect_psymbol): Update.
3139 (fixup_psymbol_section): Check SYMBOL_SECTION, not
3140 SYMBOL_OBJ_SECTION.
3141 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
3142 Don't initialize SYMBOL_OBJ_SECTION.
3143 * spu-tdep.c (spu_catch_start): Update.
3144 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
3145 * symmisc.c (dump_msymbols, print_symbol): Update.
3146 * symtab.c (fixup_section): Don't set 'obj_section'. Change
3147 how fallback section is computed.
3148 (fixup_symbol_section): Update.
3149 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
3150 Update.
3151 (allocate_symbol, initialize_symbol, allocate_template_symbol):
3152 Initialize SYMBOL_SECTION.
3153 * symtab.h (struct general_symbol_info) <section>: Update comment.
3154 <obj_section>: Remove.
3155 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
3156 (SYMBOL_OBJFILE): New macro.
3157
3158 2013-04-08 Tom Tromey <tromey@redhat.com>
3159
3160 * coffread.c (record_minimal_symbol): Update.
3161 * dbxread.c (record_minimal_symbol): Update.
3162 * elfread.c (record_minimal_symbol): Update.
3163 * machoread.c (macho_symtab_add_minsym): Update.
3164 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
3165 Update.
3166 * minsyms.c (prim_record_minimal_symbol): Update.
3167 (prim_record_minimal_symbol_full): Remove 'bfd_section'
3168 argument.
3169 (prim_record_minimal_symbol_and_info): Likewise.
3170 * minsyms.h (prim_record_minimal_symbol_full)
3171 (prim_record_minimal_symbol_and_info): Update.
3172 * symtab.c (allocate_symbol, initialize_symbol)
3173 (allocate_template_symbol): Initialize SYMBOL_SECTION.
3174 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
3175 Update.
3176
3177 2013-04-08 Tom Tromey <tromey@redhat.com>
3178
3179 PR symtab/8423:
3180 * solib-som.c (som_solib_section_offsets): Use BFD section
3181 indices. Set offsets for all sections.
3182 * somread.c (som_symtab_read): Compute BFD section for
3183 symbol. Use prim_record_minimal_symbol_and_info.
3184 (som_symfile_read): Fix comment.
3185 (struct find_section_offset_arg): New.
3186 (find_section_offset, set_section_index): New functions.
3187 (som_symfile_offsets): Use set_section_index to compute
3188 section indices.
3189
3190 2013-04-08 Tom Tromey <tromey@redhat.com>
3191
3192 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
3193 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
3194 gdb_bfd_section_index.
3195 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
3196 New functions.
3197 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
3198 Declare.
3199 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
3200 Update.
3201 * objfiles.c (add_to_objfile_sections_full): New function.
3202 (add_to_objfile_sections): Use it.
3203 (build_section_table): Rewrite.
3204 (objfile_relocate1): Use gdb_bfd_section_index. Update.
3205 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
3206 (struct objfile) <sections>: Update comment.
3207 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
3208 is NULL.
3209 (ALL_OBJSECTIONS): Use it.
3210 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
3211 * solib-frv.c (frv_relocate_main_executable): Update.
3212 * solib-target.c (solib_target_relocate_section_addresses):
3213 Use gdb_bfd_section_index.
3214 * symfile.c (build_section_addr_info_from_section_table):
3215 Use gdb_bfd_section_index.
3216 (build_section_addr_info_from_bfd, place_section): Likewise.
3217 * symtab.c (fixup_section): Update.
3218 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
3219
3220 2013-04-08 Tom Tromey <tromey@redhat.com>
3221
3222 * minsyms.h (struct bound_minimal_symbol): New.
3223 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
3224 Remove objfile argument.
3225 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
3226 Return bound_minimal_symbol.
3227 * minsyms.c (lookup_minimal_symbol_by_pc_1)
3228 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
3229 Return bound_minimal_symbol.
3230 (in_gnu_ifunc_stub): Update.
3231 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
3232 Remove 'objfile_p' argument.
3233 (lookup_solib_trampoline_symbol_by_pc): Update.
3234 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
3235 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
3236 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
3237 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
3238 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
3239 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
3240 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
3241 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
3242 stack.c, symtab.c, tui/tui-disasm.c: Update.
3243
3244 2013-04-08 Tom Tromey <tromey@redhat.com>
3245
3246 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
3247 Use symbol's obstack, not an objfile.
3248 * coffread.c (process_coff_symbol): Update.
3249 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
3250 * jv-lang.c (add_class_symbol): Update.
3251 * mdebugread.c (new_symbol): Update.
3252 * minsyms.c (prim_record_minimal_symbol_full)
3253 (terminate_minimal_symbol_table): Update.
3254 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
3255 * stabsread.c (define_symbol, read_enum_type): Update.
3256 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
3257 Handle Ada specially.
3258 (symbol_set_language): Add 'obstack' argument.
3259 (symbol_set_names): Update.
3260 (symbol_natural_name, symbol_demangled_name): Always use
3261 ada_decode_symbol.
3262 * symtab.h (struct general_symbol_info)
3263 <language_specific::obstack>: New field.
3264 <ada_mangled>: New field.
3265 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
3266 (symbol_set_language): Update.
3267
3268 2013-04-08 Tom Tromey <tromey@redhat.com>
3269
3270 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
3271 Take an obstack, not an objfile.
3272 (symbol_set_names): Update.
3273 * symtab.h (symbol_set_demangled_name): Update.
3274
3275 2013-04-08 Tom Tromey <tromey@redhat.com>
3276
3277 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
3278 allocate_symbol.
3279 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
3280 (read_func_scope): Call allocate_template_symbol.
3281 (new_symbol_full): Call allocate_symbol.
3282 * jit.c (finalize_symtab): Call allocate_symbol.
3283 * jv-lang.c (add_class_symbol): Call allocate_symbol.
3284 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
3285 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
3286 (common_block_end): Call allocate_symbol.
3287 * symtab.c (allocate_symbol, initialize_symbol)
3288 (allocate_template_symbol): New functions.
3289 * symtab.c (allocate_symbol, initialize_symbol)
3290 (allocate_template_symbol): Declare.
3291 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
3292
3293 2013-04-08 Pedro Alves <palves@redhat.com>
3294 Keith Seitz <keiths@redhat.com>
3295
3296 * breakpoint.c (create_breakpoint): Rename
3297 "parse_condition_and_thread" parameter to "parse_arg". Update
3298 describing comment. If !PARSE_ARG, then error out if ARG is not
3299 the empty string after extracting the location.
3300 * breakpoint.h (create_breakpoint): Rename
3301 "parse_condition_and_thread" parameter to "parse_arg".
3302
3303 2013-04-08 Aleksandar Ristovski <aristovski@qnx.com
3304
3305 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
3306
3307 2013-04-07 Yao Qi <yao@codesourcery.com>
3308
3309 * remote.c (remote_trace_find): Change type of parameters 'addr1'
3310 and 'addr2' to CORE_ADDR.
3311 * target.c (update_current_target): Update.
3312 * target.h (struct target_ops) <to_trace_find>: Change parameter
3313 type to CORE_ADDR.
3314 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
3315 'addr2' to CORE_ADDR.
3316 (tfile_trace_find): Likewise.
3317 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
3318 Change local variable 'addr' to type CORE_ADDR.
3319 * tracepoint.h (tfind_1): Update declaration.
3320
3321 2013-04-06 Eli Zaretskii <eliz@gnu.org>
3322
3323 * windows-nat.c (windows_get_absolute_argv0): Move from here...
3324 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
3325 Include main.h.
3326
3327 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
3328 here...
3329 * main.h (windows_get_absolute_argv0): ...to here.
3330
3331 2013-04-05 Doug Evans <dje@google.com>
3332
3333 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
3334 (read_cutu_die_from_dwo): Add comments.
3335 (read_structure_type): Update comment.
3336 (read_enumeration_type, read_namespace_type): Update comment.
3337 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
3338
3339 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3340
3341 Convert man pages to texinfo, new gdbinit.5 texinfo page.
3342 * Makefile.in (gdb.z): Remove.
3343 (install-only): Remove $(man1dir) and gdb.1 installation.
3344 * gdb.1: Remove.
3345
3346 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3347
3348 Fix compatibility with Linux kernel 3.8.3.
3349 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
3350 to more inner block. Remove parsing of NUMBER from outer block.
3351 Parse NUMBER only if KEYWORD has been identified.
3352
3353 2013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3354
3355 Fix variable name shadowing.
3356 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
3357 filename to mapsfilename and update its uses.
3358
3359 2013-04-05 Eli Zaretskii <eliz@gnu.org>
3360
3361 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
3362 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
3363 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
3364 details of the problem.
3365
3366 2013-04-04 Pedro Alves <palves@redhat.com>
3367 Hui Zhu <hui@codesourcery.com>
3368
3369 * breakpoint.c (validate_commands_for_breakpoint): If validating a
3370 tracepoint, reset its STEP_COUNT and call validate_actionline.
3371
3372 2013-04-03 Doug Evans <dje@google.com>
3373
3374 * dwarf2read.c (read_die_and_siblings_1): Renamed from
3375 read_die_and_siblings.
3376 (read_die_and_siblings): New function.
3377 (read_cutu_die_from_dwo): Dump die if requested.
3378 (read_die_and_children): Call read_full_die_1 and
3379 read_die_and_siblings_1.
3380 (read_full_die): Dump die if requested.
3381
3382 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
3383
3384 * dwarf2read.c (struct dwo_file): New member comp_dir.
3385 Rename member name to dwo_name. All uses updated.
3386 (hash_dwo_file): Include comp_dir in computation.
3387 (eq_dwo_file): Ditto.
3388 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
3389 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
3390
3391 * psymtab.c (read_psymtabs_with_fullname): Don't call
3392 psymtab_to_fullname if the basenames are different.
3393
3394 2013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3395
3396 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
3397 New entry about "fullname" presence.
3398
3399 2013-04-03 Pedro Alves <palves@redhat.com>
3400
3401 * NEWS: Mention x86_64/Cygwin as new native configuration.
3402
3403 2013-04-02 Doug Evans <dje@google.com>
3404
3405 * dwarf2read.c (read_structure_type): Fix typo in comment.
3406
3407 2013-04-02 Pedro Alves <palves@redhat.com>
3408
3409 * NEWS: Mention "set/show debug aarch64", "set/show debug
3410 coff-pe-read" and "set/show debug mach-o".
3411
3412 2013-04-02 Pedro Alves <palves@redhat.com>
3413
3414 * NEWS: Mention "set/show remote trace-buffer-size-packet".
3415
3416 2013-04-02 Eli Zaretskii <eliz@gnu.org>
3417
3418 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
3419 gdb_string.h is now in common/.
3420
3421 2013-04-02 Pedro Alves <palves@redhat.com>
3422
3423 * NEWS: Move "set debug notification" and "set trace-buffer-size"
3424 under "New options".
3425
3426 2013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3427
3428 Revert this patch:
3429 PR gdb/15275
3430 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
3431
3432 2013-04-02 Pedro Alves <palves@redhat.com>
3433
3434 PR gdb/15275
3435
3436 * remote.c (send_interrupt_sequence): Use remote_serial_write.
3437 (remote_serial_write): New function.
3438 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
3439
3440 2013-04-01 Jiong Wang <jiwang@tilera.com>
3441
3442 * NEWS: Mention TILE-Gx in "New native configurations" and
3443 "New targets" sections.
3444
3445 2013-04-01 Doug Evans <dje@google.com>
3446
3447 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
3448 (process_enumeration_scope): Simplify.
3449
3450 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
3451 type_unit_group ...
3452 (struct signatured_type): ... to here.
3453 (sig_type_ptr): New typedef.
3454 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
3455 out of union 't'. All uses updated.
3456 (dw2_get_file_names_reader): Assert not called for a type unit.
3457 (dw2_get_file_names): Assert not called for a type unit or type
3458 unit group.
3459 (build_type_psymtabs_reader): Assert called for a type unit.
3460 (build_type_psymtab_dependencies): Assert called for a type unit group.
3461
3462 * dwarf2read.c (free_dwo_file): Add comment.
3463 (dwarf2_per_objfile_free): Unref dwp bfd.
3464
3465 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
3466
3467 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
3468 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
3469 (read_pe_exported_syms): Remove unused 'exportix'.
3470 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
3471 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
3472 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
3473
3474 2013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
3475
3476 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
3477 (print_it_watchpoint): Remove unused 'bl'.
3478 (say_where): Remove unused 'uiout'.
3479 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
3480 (bkpt_breakpoint_hit): Remove unused 'b'.
3481 (internal_bkpt_print_it): Remove unused 'uiout'.
3482 * buildsym.c (augment_type_symtab): Remove unused 'i'.
3483
3484 2013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
3485
3486 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
3487 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
3488
3489 2013-03-29 Doug Evans <dje@google.com>
3490
3491 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
3492 Delete arg is_dwp. All callers updated.
3493 (open_dwp_file): New function.
3494 (open_and_init_dwp_file): Call it.
3495 (get_dwp_file): New function.
3496 (lookup_dwo_cutu): Call it.
3497
3498 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
3499 unnecessary, cleanup.
3500
3501 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
3502
3503 * dwarf2read.c (read_cutu_die_from_dwo): New function.
3504 (lookup_dwo_unit): New function.
3505 (init_cutu_and_read_dies): Move DWO handling to new functions.
3506
3507 * dwarf2read.c (struct signatured_type): Tweak comment.
3508 (struct dwo_unit): Tweak comment.
3509 (create_debug_types_hash_table): Tweak comment. Reformat long line.
3510 (create_dwo_debug_info_hash_table): Tweak comment.
3511 (dwarf2_per_cu_offset_and_type): Tweak comment.
3512
3513 * dwarf2read.c (lookup_signatured_type): Remove complaint about
3514 missing .debug_types section.
3515
3516 2013-03-29 Yao Qi <yao@codesourcery.com>
3517
3518 * corelow.c: Include "completer.h".
3519 (_initialize_corelow): Call add_target_with_completer with
3520 argument 'filename_completer'.
3521 * tracepoint.c: Likewise.
3522 * exec.c (_initialize_exec): Likewise.
3523 * target.c (add_target): Rename to ...
3524 (add_target_with_completer): ... this. Call set_cmd_completer
3525 if parameter completer is not NULL.
3526 (add_target): New.
3527 * target.h: Include "command.h".
3528 (add_target_with_completer): Declare it.
3529
3530 2013-03-28 Joel Brobecker <brobecker@adacore.com>
3531
3532 * coffread.c (is_import_fixup_symbol): New function.
3533 (record_minimal_symbol): Use is_import_fixup_symbol to
3534 detect import fixup symbols, and discard them.
3535
3536 2013-03-28 Doug Evans <dje@google.com>
3537
3538 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
3539 types hash table until we know we need it.
3540
3541 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
3542 index numbers.
3543
3544 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
3545 All callers updated.
3546 (dw2_print_stats): Print #read CUs too.
3547 (dump_die_shallow): Print signatured types better.
3548
3549 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
3550 info_or_types_section to section. All uses updated.
3551 (struct dwo_unit): Ditto.
3552
3553 2013-03-28 Pedro Alves <palves@redhat.com>
3554
3555 * NEWS (New options): New section.
3556 (New options): Mention set/show remote trace-status-packet.
3557 * remote.c (PACKET_qTStatus): New enumeration value.
3558 (remote_get_trace_status): Skip sending qTStatus if the packet is
3559 disabled. Use packet_ok.
3560 (_initialize_remote): Register a configuration command for
3561 qTStatus packet.
3562
3563 2013-03-28 Doug Evans <dje@google.com>
3564
3565 * symfile.c (find_separate_debug_file): Add comment.
3566 (terminate_after_last_dir_separator): Tweak comment.
3567
3568 * dwarf2read.c (create_partial_symtab): Add forward decl.
3569 (create_partial_symtab): Move to be closer to other psymtab functions.
3570 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
3571
3572 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
3573 (compute_symtab_includes): Remove unnecessary forward declaration.
3574 (die_needs_namespace): Add comment marking group of functions for
3575 dwarf2 name computation.
3576
3577 * typeprint.c (_initialize_typeprint): Improve type help text.
3578
3579 * python/python.c (finish_python_initialization): Provide suggestion
3580 for how to tell gdb to find its python files.
3581
3582 2013-03-28 Pedro Alves <palves@redhat.com>
3583
3584 PR gdb/15294
3585
3586 * source.c (_initialize_source): Change back "set listsize" to an
3587 integer command.
3588
3589 2013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
3590
3591 PR gdb/15275
3592 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
3593
3594 2013-03-27 Pedro Alves <palves@redhat.com>
3595
3596 * top.c (history_size): Rename to ...
3597 (history_size_setshow_var): ... this. Add comment.
3598 (show_commands): Use readline's 'history_length' instead of
3599 computing the history length by calling history_get in a loop.
3600 (set_history_size_command): Error out for sizes over INT_MAX.
3601 Restore previous history size on invalid size.
3602 (init_history): If HISTSIZE is negative, leave the history size as
3603 zero. Add comments.
3604 (init_main): Adjust.
3605
3606 2013-03-27 Pedro Alves <palves@redhat.com>
3607
3608 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
3609 coff_pe_read" command to "set debug coff-pe-read".
3610
3611 2013-03-27 Markus Metzger <markus.t.metzger@intel.com>
3612
3613 * record.c (command_size_to_target_size): Fix size comparison.
3614 Change parameter type from pointer to integer to integer.
3615 Update all users.
3616
3617 2013-03-27 Pierre Muller <muller@sourceware.org>
3618
3619 * windows-nat.c (handle_output_debug_string): Avoid typecast
3620 from integer of different size warning.
3621
3622 2013-03-26 Joel Brobecker <brobecker@adacore.com>
3623
3624 * windows-nat.c (handle_output_debug_string): Add empty line
3625 after local block variable definition.
3626
3627 2013-03-26 Pedro Alves <palves@redhat.com>
3628
3629 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
3630 (net_open): Make 'polls' local unsigned.
3631
3632 2013-03-26 Pedro Alves <palves@redhat.com>
3633
3634 * remote.c (_initialize_remote): Make "set remoteaddresssize"
3635 a zuinteger command instead of uinteger.
3636
3637 2013-03-26 Pedro Alves <palves@redhat.com>
3638
3639 * record-full.c (record_full_insn_num): Make it unsigned.
3640 (record_full_check_insn_num, record_full_message)
3641 (record_full_registers_change, record_full_xfer_partial): Remove
3642 record_full_insn_max_num check (it's always != 0).
3643 (record_full_info, record_full_restore): Use %u as format string.
3644 (): Use %u as format string.
3645 (set_record_full_insn_max_num): Remove record_full_insn_max_num
3646 check (it's always != 0).
3647
3648 2013-03-26 Pedro Alves <palves@redhat.com>
3649
3650 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
3651 and "set dcache size" commands zuinteger instead of uinteger.
3652
3653 2013-03-26 Pedro Alves <palves@redhat.com>
3654
3655 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
3656 command zuinteger instead of uinteger.
3657
3658 2013-03-26 Pedro Alves <palves@redhat.com>
3659
3660 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
3661 zuinteger instead of uinteger.
3662
3663 2013-03-26 Pedro Alves <palves@redhat.com>
3664
3665 * record.c (record_insn_history_size_setshow_var)
3666 (record_call_history_size_setshow_var): New globals.
3667 (command_size_to_target_size): New function.
3668 (cmd_record_insn_history, cmd_record_call_history): Use
3669 command_size_to_target_size instead of cast.
3670 (validate_history_size, set_record_insn_history_size)
3671 (set_record_call_history_size): New functions.
3672 (_initialize_record): Install set_record_insn_history_size and
3673 set_record_call_history_size as "set" hooks of "set record
3674 instruction-history-size" and "set record
3675 function-call-history-size".
3676
3677 2013-03-26 Pedro Alves <palves@redhat.com>
3678
3679 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
3680 use with history_max_entries use. Remove FIXME note.
3681
3682 2013-03-26 Markus Metzger <markus.t.metzger@intel.com>
3683
3684 * record-btrace.c (record_btrace_close): Call
3685 record_btrace_auto_disable.
3686
3687 2013-03-25 Joel Brobecker <brobecker@adacore.com>
3688
3689 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
3690
3691 2013-03-25 Doug Evans <dje@google.com>
3692
3693 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
3694
3695 2013-03-25 Tom Tromey <tromey@redhat.com>
3696
3697 PR symtab/11462:
3698 * c-exp.y (exp): Add new productions for destructors after '.' and
3699 '->'.
3700 (write_destructor_name): New function.
3701
3702 2013-03-25 Tom Tromey <tromey@redhat.com>
3703
3704 PR c++/9197:
3705 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
3706 value_struct_elt, not lookup_struct_elt_type.
3707 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
3708 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
3709 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
3710
3711 2013-03-25 Yao Qi <yao@codesourcery.com>
3712
3713 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
3714 instead of '_mkdir'.
3715
3716 2013-03-23 Eli Zaretskii <eliz@gnu.org>
3717
3718 * windows-nat.c (windows_get_absolute_argv0): New function.
3719 * windows-nat.h: Add its prototype.
3720
3721 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
3722 Use IS_DIR_SEPARATOR instead of looking for a character inside
3723 SLASH_STRING. Include filenames.h.
3724 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
3725 relocate_gdb_directory works when passed gdb_program_name.
3726 Include windows-nat.h.
3727
3728 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3729
3730 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
3731 * remote.c (trace_error): Remove the special handling of '2'.
3732 (readchar) <SERIAL_EOF>
3733 (readchar) <SERIAL_ERROR>
3734 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
3735 (remote_get_trace_status): Call throw_exception if EX is
3736 TARGET_CLOSE_ERROR.
3737 * utils.c (perror_with_name): Rename to ...
3738 (throw_perror_with_name): ... here. New parameter errcode, describe it
3739 in the function comment.
3740 (perror_with_name): New function wrapper.
3741 * utils.h (enum errors): New stub declaration.
3742 (throw_perror_with_name): New declaration.
3743
3744 2013-03-22 Pedro Alves <palves@redhat.com>
3745 Yao Qi <yao@codesourcery.com>
3746 Mark Kettenis <kettenis@gnu.org>
3747
3748 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
3749 Don't let the user set the value to UINT_MAX directly.
3750 <var_integer>: Don't let the user set the value to INT_MAX
3751 directly.
3752
3753 2013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3754
3755 * remote.c (remote_unpush_target): New function.
3756 (remote_open_1): Remove two pop_target calls, update one comment, add
3757 comment to target_preopen call. Replace pop_target call by
3758 remote_unpush_target call.
3759 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
3760 pop_target calls by remote_unpush_target calls.
3761
3762 2013-03-22 Pedro Alves <palves@redhat.com>
3763
3764 * linux-nat.c (linux_child_follow_fork): Don't call
3765 linux_enable_event_reporting.
3766 (linux_handle_extended_wait): Don't call
3767 linux_enable_event_reporting.
3768
3769 2013-03-22 Pedro Alves <palves@redhat.com>
3770
3771 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
3772 use it to rewrite the trampoline buffers with type gdb_byte[], and
3773 undefine the macro. Remove char* cast.
3774
3775 2013-03-21 Doug Evans <dje@google.com>
3776
3777 New commands "mt set per-command {space,time,symtab} {on,off}".
3778 * NEWS: Add entry.
3779 * event-top.c: #include "maint.h".
3780 * main.c: #include "maint.h".
3781 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
3782 timeval-utils.h, maint.h, cli/cli-setshow.h.
3783 (per_command_time, per_command_space): New static globals.
3784 (per_command_symtab): New static global.
3785 (per_command_setlist, per_command_showlist): New static globals.
3786 (struct cmd_stats): Move here from utils.c.
3787 (set_per_command_time): Renamed from set_display_time in utils.c
3788 and moved here. All callers updated.
3789 (set_per_command_space): Renamed from set_display_space in utils.c
3790 and moved here. All callers updated.
3791 (count_symtabs_and_blocks): New function.
3792 (report_command_stats): Moved here from utils.c. Add support for
3793 printing symtab stats. Only print data if enabled before command
3794 executed.
3795 (make_command_stats_cleanup): Ditto.
3796 (sert_per_command_cmd, show_per_command_cmd): New functions.
3797 (_initialize_maint_cmds): Add new commands
3798 mt set per-command {space,time,symtab} {on,off}.
3799 * maint.h: New file.
3800 * top.c: #include "maint.h".
3801 * utils.c (reset_prompt_for_continue_wait_time): New function.
3802 (get_prompt_for_continue_wait_time): New function.
3803 * utils.h (reset_prompt_for_continue_wait_time): Declare
3804 (get_prompt_for_continue_wait_time): Declare.
3805 (make_command_stats_cleanup): Moved to maint.h.
3806 (set_display_time, set_display_space): Moved to maint.h and renamed
3807 to set_per_command_time, set_per_command_space.
3808 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
3809 parse_binary_operation and made non-static. Don't call error,
3810 just return an error marker. All callers updated.
3811 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
3812
3813 2013-03-21 Tom Tromey <tromey@redhat.com>
3814
3815 * symfile.c (alloc_section_addr_info): Update header. Don't set
3816 'num_sections' field.
3817 (build_section_addr_info_from_section_table): Set 'num_sections'.
3818 (build_section_addr_info_from_bfd): Likewise.
3819 (build_section_addr_info_from_objfile): Remove dead loop
3820 condition.
3821 (free_section_addr_info): Unconditionally call xfree.
3822 (relative_addr_info_to_section_offsets, addrs_section_sort)
3823 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
3824 condition.
3825 (syms_from_objfile_1): Remove dead 'if' condition. Check
3826 'num_sections'.
3827 (add_symbol_file_command): Set 'num_sections'.
3828 * symfile-mem.c (symbol_file_add_from_memory): Set
3829 'num_sections'.
3830 * somread.c (som_symfile_offsets): Remove dead loop condition.
3831 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
3832 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
3833
3834 2013-03-21 Tom Tromey <tromey@redhat.com>
3835
3836 * tracepoint.h (decode_agent_options): Add 'trace_string'
3837 argument.
3838 * tracepoint.c (decode_agent_options): Add 'trace_string'
3839 argument.
3840 (validate_actionline): Update.
3841 (collect_symbol): Add 'trace_string' argument.
3842 (struct add_local_symbols_data) <trace_string>: New field.
3843 (do_collect_symbol): Update.
3844 (add_local_symbols): Add 'trace_string' argument.
3845 (encode_actions_1): Update.
3846 (trace_dump_actions): Update.
3847 * dwarf2loc.c (access_memory): Update.
3848 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
3849 * ax-general.c (new_agent_expr): Update.
3850 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
3851 (gen_trace_for_return_address): Add argument.
3852 (trace_kludge, trace_string_kludge): Remove.
3853 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
3854 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
3855 (gen_trace_for_var): Add 'trace_string' argument.
3856 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
3857 (gen_printf, agent_eval_command_one): Update.
3858
3859 2013-03-21 Tom Tromey <tromey@redhat.com>
3860
3861 PR exp/15109:
3862 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
3863 Handle FILENAME token.
3864
3865 2013-03-21 Tom Tromey <tromey@redhat.com>
3866
3867 * c-exp.y (YYPRINT): Define.
3868 (c_print_token): New function.
3869
3870 2013-03-21 Tom Tromey <tromey@redhat.com>
3871
3872 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
3873
3874 2013-03-21 Yao Qi <yao@codesourcery.com>
3875
3876 * ctf.c: Include "gdb_stat.h".
3877 [USE_WIN32API]: New macro 'mkdir'.
3878 (ctf_start): Use permission bits macros if they are defined.
3879
3880 2013-03-20 Keith Seitz <keiths@redhat.com>
3881
3882 * breakpoint.h (struct breakpoint): Add comment to
3883 extra_string indicating that this member is mallod'd.
3884 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
3885
3886 2013-03-20 Pedro Alves <palves@redhat.com>
3887
3888 PR gdb/15289
3889
3890 * cli/cli-setshow.c (do_set_command)
3891 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
3892 the result of parsing the command argument. Throw error if the
3893 value is greater than UINT_MAX. Print the invalid value with
3894 plongest.
3895 <var_integer, var_zinteger>: Use LONGEST for variable holding the
3896 result of parsing the command argument. Throw error if the value
3897 is greater than INT_MAX, not greater or equal. Also throw error
3898 if the value is less than INT_MIN. Print the invalid value with
3899 plongest.
3900 <var_zuinteger_unlimited>: Throw error if the value is greater
3901 than INT_MAX, not greater or equal.
3902 (do_show_command) <var_integer, var_zinteger,
3903 var_zuinteger_unlimited>: Use %d for printing int, not %u.
3904
3905 2013-03-20 Tom Tromey <tromey@redhat.com>
3906
3907 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
3908 if possible.
3909 * dwarf2read.c (read_func_scope): Remove old FIXME.
3910 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
3911 not LOC_COMPUTED.
3912 * findvar.c (symbol_read_needs_frame, default_read_var_value):
3913 Unconditionally call via computed ops, if possible.
3914 * printcmd.c (address_info): Unconditionally call via computed ops,
3915 if possible.
3916 * stack.c (read_frame_arg): Unconditionally call via computed ops,
3917 if possible.
3918 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
3919 * tracepoint.c (scope_info): Unconditionally call via computed ops,
3920 if possible.
3921
3922 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3923 Tom Tromey <tromey@redhat.com>
3924
3925 PR symtab/8421:
3926 * coffread.c (coff_register_index): New global.
3927 (process_coff_symbol, coff_read_enum_type): Set
3928 SYMBOL_ACLASS_INDEX.
3929 (_initialize_coffread): Initialize new global.
3930 * dwarf2loc.c (locexpr_find_frame_base_location)
3931 (dwarf2_block_frame_base_locexpr_funcs)
3932 (loclist_find_frame_base_location)
3933 (dwarf2_block_frame_base_loclist_funcs): New.
3934 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
3935 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
3936 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
3937 (dwarf2_block_frame_base_loclist_funcs): New.
3938 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
3939 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
3940 globals.
3941 (read_func_scope): Update.
3942 (fixup_go_packaging, mark_common_block_symbol_computed)
3943 (var_decode_location, new_symbol_full, dwarf2_const_value):
3944 Set SYMBOL_ACLASS_INDEX.
3945 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
3946 (_initialize_dwarf2_read): Initialize new globals.
3947 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
3948 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
3949 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
3950 globals.
3951 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
3952 (_initialize_mdebugread): Initialize new globals.
3953 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
3954 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
3955 (stab_register_index, stab_regparm_index): New globals.
3956 (define_symbol, read_enum_type, common_block_end): Set
3957 SYMBOL_ACLASS_INDEX.
3958 (_initialize_stabsread): Initialize new globals.
3959 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
3960 globals.
3961 (MAX_SYMBOL_IMPLS): New define.
3962 (register_symbol_computed_impl, register_symbol_block_impl)
3963 (register_symbol_register_impl)
3964 (initialize_ordinary_address_classes): New functions.
3965 (_initialize_symtab): Call initialize_ordinary_address_classes.
3966 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
3967 (struct symbol_impl): New.
3968 (SYMBOL_ACLASS_BITS): New define.
3969 (struct symbol) <aclass, ops>: Remove fields.
3970 <aclass_index>: New field.
3971 (symbol_impls): Declare.
3972 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
3973 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
3974 (register_symbol_computed_impl, register_symbol_block_impl)
3975 (register_symbol_register_impl): Declare.
3976 (struct symbol_computed_ops): Add location_has_loclist.
3977 (struct symbol_block_ops): New.
3978 (SYMBOL_BLOCK_OPS): New.
3979 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
3980
3981 2013-03-20 Tom Tromey <tromey@redhat.com>
3982
3983 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
3984 (print_partial_symbols, recursively_search_psymtabs): Use
3985 PSYMBOL_CLASS.
3986
3987 2013-03-20 Pierre Muller <muller@sourceware.org>
3988
3989 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
3990 addtion, subtraction, multiplication and division binary operator.
3991
3992 2013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3993
3994 Code cleanup.
3995 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
3996 * bsd-kvm.c (bsd_kvm_close): Likewise.
3997 * bsd-uthread.c (bsd_uthread_close): Likewise.
3998 * corelow.c (core_close): Likewise.
3999 (core_close_cleanup): Remove parameter quitting from a caller.
4000 * event-top.c (async_disconnect): Likewise.
4001 * exec.c (exec_close_1): Remove parameter quitting.
4002 * go32-nat.c (go32_close): Likewise.
4003 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
4004 parameter quitting from a caller.
4005 * mips-linux-nat.c (super_close): Remove parameter quitting from the
4006 variable.
4007 (mips_linux_close): Remove parameter quitting. Remove parameter
4008 quitting from a caller.
4009 * monitor.c (monitor_close): Remove parameter quitting.
4010 * monitor.h (monitor_close): Likewise.
4011 * record-btrace.c (record_btrace_close): Likewise.
4012 * record-full.c (record_full_close): Likewise.
4013 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
4014 it also from fprintf_unfiltered.
4015 * remote-mips.c (mips_close): Remove parameter quitting.
4016 (mips_detach): Remove parameter quitting from a caller.
4017 * remote-sim.c (gdbsim_close): Remove parameter quitting.
4018 (gdbsim_close): Remove duplicate function comment. Remove parameter
4019 quitting and remove it also from printf_filtered.
4020 * remote.c (remote_close): Remove parameter quitting.
4021 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
4022 * target.c (update_current_target): Remove parameter int from to_close
4023 de_fault.
4024 (push_target, unpush_target, pop_target): Remove parameter quitting from
4025 a caller.
4026 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
4027 Remove parameter quitting from a caller.
4028 (target_preopen): Remove parameter quitting from a caller.
4029 (target_close): Remove parameter quitting. Remove parameter quitting
4030 from a caller two times. Remove parameter quitting also from
4031 fprintf_unfiltered.
4032 * target.h (struct target_ops): Remove parameter quitting and as int
4033 from fields to_xclose and to_close.
4034 (extern struct target_ops current_target):
4035 (target_close, pop_all_targets): Remove parameter quitting. Update the
4036 comment.
4037 (pop_all_targets_above): Remove parameter quitting.
4038 * top.c (quit_target): Remove parameter quitting from a caller.
4039 * tracepoint.c (tfile_close): Remove parameter quitting.
4040 * windows-nat.c (windows_close): Remove parameter quitting.
4041
4042 2013-03-20 Corinna Vinschen <vinschen@redhat.com>
4043
4044 * windows-nat.c (handle_output_debug_string): Replace call
4045 to string_to_core_addr with call to strtoull.
4046
4047 2013-03-20 Yao Qi <yao@codesourcery.com>
4048
4049 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
4050 and write it to CTF metadata.
4051
4052 2013-03-19 Corinna Vinschen <vinschen@redhat.com>
4053
4054 * windows-nat.c (handle_output_debug_string): Change type of n to
4055 SIZE_T to avoid crash on 64 bit systems.
4056
4057 2013-03-17 Eli Zaretskii <eliz@gnu.org>
4058
4059 * python/python-internal.h (HAVE_SNPRINTF)
4060 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
4061 about redefinition of snprintf by pyerrors.h.
4062
4063 2013-03-15 Steve Ellcey <sellcey@mips.com>
4064
4065 * remote-sim.c (sim_command_completer): Make char arguments const.
4066
4067 2013-03-15 Tom Tromey <tromey@redhat.com>
4068
4069 PR c++/15116:
4070 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
4071
4072 2013-03-14 Tom Tromey <tromey@redhat.com>
4073
4074 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
4075 New fields.
4076 (get_file_crc): Move from symfile.c.
4077 (gdb_bfd_crc): New function.
4078 * gdb_bfd.h (gdb_bfd_crc): Declare.
4079 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
4080 * symfile.c (get_file_crc): Move to gdb_bfd.c.
4081 (separate_debug_file_exists): Use gdb_bfd_crc.
4082
4083 2013-03-14 Tom Tromey <tromey@redhat.com>
4084
4085 * symfile.c (get_debug_link_info): Remove.
4086 (find_separate_debug_file_by_debuglink): Use
4087 bfd_get_debug_link_info.
4088
4089 2013-03-14 Tom Tromey <tromey@redhat.com>
4090
4091 * symtab.c (error_in_psymtab_expansion): New function.
4092 (lookup_symbol_aux_quick)
4093 (basic_lookup_transparent_type_quick): Remove "last resort"
4094 code. Use error_in_psymtab_expansion.
4095
4096 2013-03-14 Doug Evans <dje@google.com>
4097 Jan Kratochvil <jan.kratochvil@redhat.com>
4098
4099 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
4100 any successful compare_filenames_for_search or FILENAME_CMP.
4101 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
4102 * symtab.c (iterate_over_some_symtabs): Likewise.
4103
4104 2013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4105
4106 * source.c (print_source_lines_base): Make a local copy of
4107 symtab_to_fullname.
4108
4109 2013-03-14 Hui Zhu <hui_zhu@mentor.com>
4110 Jan Kratochvil <jan.kratochvil@redhat.com>
4111
4112 * source.c (print_source_lines_base): Suppress "file" for TUI.
4113
4114 2013-03-14 Keith Seitz <keiths@redhat.com>
4115 Alan Matsuoka <alanm@redhat.com>
4116
4117 PR c++/15203
4118 PR c++/15210
4119 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
4120 TYPE_CODE_METHOD.
4121 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
4122 symbols.
4123
4124 2013-03-14 Yao Qi <yao@codesourcery.com>
4125
4126 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
4127 status to tfile if trace is stopped by command 'tstop'.
4128
4129 2013-03-14 Yao Qi <yao@codesourcery.com>
4130
4131 * tracepoint.c (tfile_write_status): Write trace notes and user
4132 name into tfile if they are not NULL.
4133
4134 2013-03-14 Hui Zhu <hui@codesourcery.com>
4135 Yao Qi <yao@codesourcery.com>
4136
4137 * Makefile.in (REMOTE_OBS): Add ctf.o.
4138 (SFILES): Add ctf.c.
4139 (HFILES_NO_SRCDIR): Add ctf.h.
4140 * ctf.c, ctf.h: New files.
4141 * tracepoint.c: Include 'ctf.h'.
4142 (collect_pseudocommand): Remove static.
4143 (trace_save_command): Parse option "-ctf".
4144 Produce different trace file writers per option.
4145 Adjust output message.
4146 (trace_save_tfile, trace_save_ctf): New.
4147 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
4148 * mi/mi-main.c: Include 'ctf.h'.
4149 (mi_cmd_trace_save): Handle option '-ctf'. Call either
4150 trace_save_tfile or trace_save_ctf.
4151 * NEWS: Mention these changes.
4152
4153 2013-03-14 Yao Qi <yao@codesourcery.com>
4154
4155 * tracepoint.c (trace_file_writer_xfree): New.
4156 (struct tfile_writer_data): New.
4157 (tfile_dtor, tfile_can_target_save, tfile_start): New.
4158 (tfile_write_header, tfile_write_regblock_type): New.
4159 (tfile_write_status, tfile_write_uploaded_tsv): New.
4160 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
4161 (tfile_write_raw_data, (tfile_end): New.
4162 (tfile_write_ops): New global variable.
4163 (TRACE_WRITE_R_BLOCK): New macro.
4164 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
4165 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
4166 (TRACE_WRITE_V_BLOCK): New macro.
4167 (trace_save): Add extra one parameter WRITER. Make it static.
4168 Use WRITER to writer trace.
4169 (tfile_trace_file_writer_new): New.
4170 (trace_save_command): Caller update.
4171 (trace_save_tfile): Write trace data in TFILE format.
4172 * tracepoint.h (struct trace_frame_write_ops): New.
4173 (struct trace_file_write_ops): New.
4174 (struct trace_file_writer): New.
4175 (trace_save): Remove its declaration.
4176 (trace_save_tfile): Declare it.
4177 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
4178 instead of trace_save.
4179
4180 2013-03-13 Pedro Alves <palves@redhat.com>
4181
4182 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
4183
4184 2013-03-13 Pedro Alves <palves@redhat.com>
4185
4186 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
4187 commented out code.
4188 * demangle.c (current_demangling_style_string): Make it const.
4189 (set_demangling_command): Assert the demangling style is known.
4190 Remove all handling of unknown styles. Set
4191 'current_demangling_style_string' to an element of the
4192 demangling_style_names array.
4193 (set_demangling_style): Delete.
4194 (_initialize_demangler): Set current_demangling_style_string to the
4195 element of the demangling_style_names array that corresponds to
4196 the default demangling style. Remove FIXME note. Don't call
4197 set_demangling_style.
4198 * gdb-demangle.h (set_demangling_style): Remove declaration.
4199
4200 2013-03-13 Pedro Alves <palves@redhat.com>
4201
4202 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
4203 fields const.
4204 (ada_make_symbol_completion_list): Make "text0" parameter const.
4205 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
4206 * breakpoint.c (condition_completer): Make "text" and "word"
4207 parameters const. Adjust.
4208 (check_tracepoint_command): Adjust to validate_actionline
4209 prototype change.
4210 (catch_syscall_completer): Make "text" and "word" parameters
4211 const.
4212 * cli/cli-cmds.c (show_user): Make "comname" local const.
4213 (valid_command_p): Make "command" parameter const.
4214 (alias_command): Make "alias_prefix" and "command_prefix" locals
4215 const.
4216 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
4217 (add_alias_cmd): Make "name" and "oldname" parameters const.
4218 Adjust. No longer make copy of OLDNAME.
4219 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
4220 (add_setshow_cmd_full, add_setshow_enum_cmd)
4221 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
4222 (add_setshow_filename_cmd, add_setshow_string_cmd)
4223 (add_setshow_string_noescape_cmd)
4224 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
4225 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
4226 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
4227 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
4228 Make "name" parameter const.
4229 (help_cmd): Rename "command" parameter to "arg". New const local
4230 "command".
4231 (find_cmd): Make "command" parameter const.
4232 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
4233 deprecated_cmd_warning prototype change.
4234 (undef_cmd_error): Make "cmdtype" parameter const.
4235 (lookup_cmd): Make "line" parameter const.
4236 (deprecated_cmd_warning): Change type of "text" parameter to
4237 pointer to const char, from pointer to pointer to char. Adjust.
4238 (lookup_cmd_composition): Make "text" parameter const.
4239 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
4240 parameters const.
4241 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
4242 const.
4243 * cli/cli-script.c (validate_comname): Make "tem" local const.
4244 (define_command): New const local "tem_c". Use it in calls to
4245 lookup_cmd.
4246 (document_command): Make "tem" and "comfull" locals const.
4247 (show_user_1): Make "prefix" and "name" parameters const.
4248 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
4249 const.
4250 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
4251 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
4252 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
4253 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
4254 (complete_on_enum, add_setshow_enum_cmd)
4255 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
4256 (add_setshow_filename_cmd, add_setshow_string_cmd)
4257 (add_setshow_string_noescape_cmd)
4258 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
4259 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
4260 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
4261 Change prototypes, constifying strings.
4262 * completer.c (noop_completer, filename_completer): Make "text"
4263 and "prefix" parameters const.
4264 (location_completer, expression_completer)
4265 (complete_line_internal): Make "text" and "prefix" parameters
4266 const and adjust.
4267 (command_completer, signal_completer): Make "text" and "prefix"
4268 parameters const.
4269 * completer.h (noop_completer, filename_completer)
4270 (expression_completer, location_completer, command_completer)
4271 (signal_completer): Change prototypes.
4272 * corefile.c (complete_set_gnutarget): Make "text" and "word"
4273 parameters const.
4274 * cp-abi.c (cp_abi_completer): Likewise.
4275 * expression.h (parse_expression_for_completion): Change
4276 prototype.
4277 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
4278 parameters const.
4279 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
4280 * infrun.c (handle_completer): Make "text" and "word" parameters
4281 const.
4282 * interps.c (interpreter_completer): Make "text" and "word"
4283 parameters const.
4284 * language.h (struct language_defn)
4285 <la_make_symbol_completion_list>: Make "text" and "word"
4286 parameters const.
4287 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
4288 (parse_exp_in_context): Rename to ...
4289 (parse_exp_in_context_1): ... this.
4290 (parse_exp_in_context): Reimplement, with const hack from
4291 parse_exp_1.
4292 (parse_expression_for_completion): Make "string" parameter const.
4293 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
4294 to pointer to const char. Adjust.
4295 (print_command_1): Make "exp" parameter const.
4296 (output_command): Rename to ...
4297 (output_command_const): ... this. Make "exp" parameter const.
4298 (output_command): Reimplement.
4299 (x_command): Adjust.
4300 (display_command): Rename "exp" parameter to "arg". New "exp"
4301 local, const version of "arg".
4302 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
4303 "cmd_name" local const.
4304 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
4305 call.
4306 (cmdpy_completer): Make "text" and "word" parameters const.
4307 (gdbpy_parse_command_name): Make "prefix_text2" local const.
4308 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
4309 const.
4310 * remote.c (_initialize_remote): Make "cmd_name" local const.
4311 * symtab.c (language_search_unquoted_string): Make "text" and "p"
4312 parameters const. Adjust.
4313 (completion_list_add_fields): Make "sym_text", "text" and "word"
4314 parameters const.
4315 (struct add_name_data) <sym_text, text, word>: Make fields const.
4316 (default_make_symbol_completion_list_break_on): Make "text" and
4317 "word" parameters const. Adjust locals.
4318 (default_make_symbol_completion_list)
4319 (make_symbol_completion_list, make_symbol_completion_type)
4320 (make_symbol_completion_list_fn): Make "text" and "word"
4321 parameters const.
4322 (make_file_symbol_completion_list): Make "text", "word" and
4323 "srcfile" parameters const. Adjust locals.
4324 (add_filename_to_list): Make "text" and "word" parameters const.
4325 (struct add_partial_filename_data) <text, word>: Make fields
4326 const.
4327 (make_source_files_completion_list): Make "text" and "word"
4328 parameters const.
4329 * symtab.h (default_make_symbol_completion_list_break_on)
4330 (default_make_symbol_completion_list, make_symbol_completion_list)
4331 (make_symbol_completion_type enum type_code)
4332 (make_symbol_completion_list_fn make_file_symbol_completion_list)
4333 (make_source_files_completion_list): Change prototype.
4334 * top.c (execute_command): Adjust to pass pointer to pointer to
4335 const char to lookup_cmd, and to deprecated_cmd_warning prototype
4336 change.
4337 (set_verbose): Make "cmdname" local const.
4338 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
4339 and adjust.
4340 (validate_actionline): Make "line" parameter a pointer to const
4341 char, and adjust.
4342 (encode_actions_1): Make "action_exp" local const, and adjust.
4343 (encode_actions): Adjust.
4344 (replace_comma): Delete.
4345 (trace_dump_actions): Make "action_exp" and "next_comma" locals
4346 const, and adjust. Don't frob the action string while splitting
4347 it at commas. Instead, make a copy of each split substring in
4348 turn.
4349 (trace_dump_command): Adjust to validate_actionline prototype
4350 change.
4351 * tracepoint.h (decode_agent_options, decode_agent_options)
4352 (encode_actions, validate_actionline): Change prototypes.
4353 * valprint.h (output_command): Delete declaration.
4354 (output_command_const): Declare.
4355 * value.c (function_destroyer): Cast const away in xfree call.
4356
4357 2013-03-13 Pedro Alves <palves@redhat.com>
4358
4359 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
4360 rather than casting 'const char * const *' to 'const char **'.
4361 * ada-lex.l (processInt): Make "trailer" local const. Remove
4362 'const char **' cast.
4363 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
4364 locals, and use those as strtol output pointer, instead than doing
4365 invalid casts to from 'const char **' to 'char **'.
4366 (_initialize_demangle): Remove cast.
4367 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
4368 locals, and use those as strtol output pointer, instead than doing
4369 invalid casts to from 'const char **' to 'char **'.
4370 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
4371 casts.
4372 * stap-probe.c (stap_parse_register_operand)
4373 (stap_parse_single_operand): Likewise.
4374
4375 2013-03-13 Yao Qi <yao@codesourcery.com>
4376
4377 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
4378 the last matched 'V' blcok in trace frame.
4379
4380 2013-03-12 Joel Brobecker <brobecker@adacore.com>
4381
4382 * NEWS: Create a new section for the next release branch.
4383 Rename the section of the current branch, now that it has
4384 been cut.
4385
4386 2013-03-12 Joel Brobecker <brobecker@adacore.com>
4387
4388 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
4389 * version.in: Bump version to 7.6.50.20130312-cvs.
4390
4391 2013-03-12 Keith Seitz <keiths@redhat.com>
4392
4393 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
4394 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
4395 Remove temporary copy of input string.
4396 (mi_execute_command_wrapper): Make "cmd" const.
4397 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
4398 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
4399 Use const strings.
4400 (mi_parse): Make "cmd" const.
4401 Use const strings.
4402 * mi/mi-parse.h (mi_parse): Make "cmd" const.
4403
4404 2013-03-12 Keith Seitz <keiths@redhat.com>
4405
4406 * ada-lang.c (ada_read_renaming_var_value): Pass const
4407 pointer to expression string to parse_exp_1.
4408 (create_excep_cond_exprs): Likewise.
4409 * ax-gdb.c (agent_eval_command_one): Likewise.
4410 (maint_agent_printf_command): Likewise.
4411 Constify much of the string handling/parsing.
4412 * breakpoint.c (set_breakpoint_condition): Pass const
4413 pointer to expression string to parse_exp_1.
4414 (update_watchpoint): Likewise.
4415 (parse_cmd_to_aexpr): Constify string handling.
4416 Pass const pointer to parse_exp_1.
4417 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
4418 (find_condition_and_thread): Likewise.
4419 Make TOK const.
4420 (watch_command_1): Make "arg" const.
4421 Constify string handling.
4422 Copy the expression string instead of changing the input
4423 string.
4424 (update_breakpoint_location): Pass const pointer to
4425 parse_exp_1.
4426 * eval.c (parse_and_eval_address): Make "exp" const.
4427 (parse_to_comma_and_eval): Make "expp" const.
4428 (parse_and_eval): Make "exp" const.
4429 * expression.h (parse_expression): Make argument const.
4430 (parse_exp_1): Make first argument const.
4431 * findcmd.c (parse_find_args): Treat "args" as const.
4432 * linespec.c (parse_linespec): Pass const pointer to
4433 linespec_expression_to_pc.
4434 (linespec_expression_to_pc): Make "exp_ptr" const.
4435 * parse.c (parse_exp_1): Make "stringptr" const.
4436 Make a copy of the expression to pass to parse_exp_in_context until
4437 this whole interface can be constified.
4438 (parse_expression): Make "string" const.
4439 * printcmd.c (ui_printf): Treat "arg" as const.
4440 Handle const strings.
4441 * tracepoint.c (validate_actionline): Pass const pointer to
4442 all calls to parse_exp_1.
4443 (encode_actions_1): Likewise.
4444 * value.h (parse_to_comma_and_eval): Make argument const.
4445 (parse_and_eval_address): Likewise.
4446 (parse_and_eval): Likewise.
4447 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
4448 (varobj_set_value): Likewise.
4449 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
4450 constify string handling.
4451 Pass const pointers to parse_and_eval_address and
4452 parse_to_comman_and_eval.
4453 * cli/cli-utils.c (skip_to_space): Rename to ...
4454 (skip_to_space_const): ... this. Handle const strings.
4455 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
4456 skip_to_space_const.
4457 (skip_to_space_const): Declare.
4458 * common/format.c (parse_format_string): Make "arg" const.
4459 Handle const strings.
4460 * common/format.h (parse_format_string): Make "arg" const.
4461 * gdbserver/ax.c (ax_printf): Make "format" const.
4462 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
4463 of the expression string.
4464
4465 2013-03-12 Hui Zhu <hui@codesourcery.com>
4466
4467 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
4468
4469 2013-03-12 Yao Qi <yao@codesourcery.com>
4470 Hui Zhu <hui@codesourcery.com>
4471
4472 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
4473 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
4474 DW_OP_deref_size.
4475
4476 2013-03-12 Paul Hilfinger <hilfingr@adacore.com>
4477
4478 * ada-lex.l (rules): Only recognize 'thread' as a
4479 delimiter when followed by numerals, as for c-exp.y.
4480 Use new rewind_to_char function to rewind the input for
4481 expression-delimiting tokens.
4482 (rewind_to_char): New function.
4483
4484 2013-03-11 Pedro Alves <palves@redhat.com>
4485 Jan Kratochvil <jan.kratochvil@redhat.com>
4486
4487 * configure: Regenerate.
4488 * configure.ac (check dynamic export flag): Link python test with
4489 $PYTHON_LIBS.
4490
4491 2013-03-11 Doug Evans <dje@google.com>
4492 Keith Seitz <keiths@redhat.com>
4493
4494 * linespec.c (find_linespec_symbols): Call find_function_symbols
4495 first, and then call lookup_prefix_sym/find_method.
4496
4497 2013-03-11 Pedro Alves <palves@redhat.com>
4498
4499 * charset.c (convert_between_encodings): Don't cast between
4500 different pointer to pointer types. Instead, make the 'inp' local
4501 be of the type iconv expects.
4502 (wchar_iterate): Don't cast between different pointer to pointer
4503 types. Instead, use new pointer local of the type iconv expects.
4504 * target.c (target_read_stralloc, target_fileio_read_stralloc):
4505 Add new local of type char pointer, and use it to get a
4506 char/string view of the byte buffer, instead of casting between
4507 pointer to pointer types.
4508
4509 2013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
4510
4511 * remote.c (remote_set_trace_buffer_size): Move != operator
4512 to the start of next line to fix an ARI warning.
4513
4514 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4515
4516 * NEWS: Add record changes.
4517
4518 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4519
4520 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
4521 the instruction history disassembly.
4522 * disasm.c (dump_insns): Omit the pc prefix, if requested.
4523 * disasm.h (DISASSEMBLY_OMIT_PC): New.
4524
4525 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4526
4527 * Makefile.in (SFILES): Add record-btrace.c
4528 (COMMON_OBS): Add record-btrace.o
4529 * record-btrace.c: New.
4530 * objfiles.c: Include btrace.h.
4531 (free_objfile): call btrace_free_objfile.
4532
4533 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4534
4535 * target.c (target_call_history, target_call_history_from,
4536 target_call_history_range): New.
4537 * target.h (target_ops) <to_call_history, to_call_history_from,
4538 to_call_history_range>: New fields.
4539 (target_call_history, target_call_history_from,
4540 target_call_history_range): New declaration.
4541 * record.c (get_call_history_modifiers, cmd_record_call_history,
4542 record_call_history_size): New.
4543 (_initialize_record): Add the "record function-call-history" command.
4544 Add "set/show record function-call-history-size" commands.
4545 * record.h (record_print_flag): New.
4546
4547 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4548
4549 * target.h (target_ops) <to_insn_history, to_insn_history_from,
4550 to_insn_history_range>: New fields.
4551 (target_insn_history): New.
4552 (target_insn_history_from): New.
4553 (target_insn_history_range): New.
4554 * target.c (target_insn_history): New.
4555 (target_insn_history_from): New.
4556 (target_insn_history_range): New.
4557 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
4558 (record_insn_history_size): New.
4559 (get_insn_number): New.
4560 (get_context_size): New.
4561 (no_chunk): New.
4562 (get_insn_history_modifiers): New.
4563 (cmd_record_insn_history): New.
4564 (_initialize_record): Add "set/show record instruction-history-size"
4565 command. Add "record instruction-history" command.
4566
4567 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4568
4569 * record.h (record_disconnect): New.
4570 (record_detach): New.
4571 (record_mourn_inferior): New.
4572 (record_kill): New.
4573 * record-full.c (record_disconnect, record_detach,
4574 record_mourn_inferior, record_kill): Move to...
4575 * record.c: ...here.
4576 (DEBUG): New.
4577 (record_stop): New.
4578 (record_unpush): New.
4579 (cmd_record_stop): Call record_stop. Replace unpush_target
4580 call with record_unpush call.
4581 (record_disconnect, record_detach): Assert that the target
4582 is of record stratum. Call record_unpush, record_stop, and
4583 DEBUG.
4584 (record_mourn_inferior, record_kill): Assert that the target
4585 is of record stratum. Call record_unpush and DEBUG.
4586
4587 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4588
4589 * record-full.h, record-full.c (record_memory_query): Rename
4590 to ...
4591 (record_full_memory_query): ...this. Update all users.
4592 (record_arch_list_add_reg): Rename to ...
4593 (record_full_arch_list_add_reg): ...this. Update all users.
4594 (record_arch_list_add_mem): Rename to ...
4595 (record_full_arch_list_add_mem): ...this. Update all users.
4596 (record_arch_list_add_end): Rename to ...
4597 (record_full_arch_list_add_end): ...this. Update all users.
4598 (record_gdb_operation_disable_set): Rename to ...
4599 (record_full_gdb_operation_disable_set): ...this.
4600 Update all users.
4601
4602 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4603
4604 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
4605 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
4606 (RECORD_IS_REPLAY): Renamed to ...
4607 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
4608 (RECORD_FILE_MAGIC): Renamed to ...
4609 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
4610 (record_mem_entry): Renamed to ...
4611 (record_full_mem_entry): ... this. Updated all users.
4612 (record_reg_entry): Renamed to ...
4613 (record_full_reg_entry): ... this. Updated all users.
4614 (record_end_entry): Renamed to ...
4615 (record_full_end_entry): ... this. Updated all users.
4616 (record_type) <record_end, record_reg, record_mem>: Renamed
4617 to ...
4618 (record_full_type) <record_full_end, record_full_reg,
4619 record_full_mem>: ... this. Updated all users.
4620 (record_entry): Renamed to ...
4621 (record_full_entry): ... this. Updated all users.
4622 (record_core_buf_entry): Renamed to ...
4623 (record_full_core_buf_entry): ... this. Updated all users.
4624 (record_core_regbuf): Renamed to ...
4625 (record_full_core_regbuf): ... this. Updated all users.
4626 (record_core_start): Renamed to ...
4627 (record_full_core_start): ... this. Updated all users.
4628 (record_core_end): Renamed to ...
4629 (record_full_core_end): ... this. Updated all users.
4630 (record_core_buf_list): Renamed to ...
4631 (record_full_core_buf_list): ... this. Updated all users.
4632 (record_first): Renamed to ...
4633 (record_full_first): ... this. Updated all users.
4634 (record_list): Renamed to ...
4635 (record_full_list): ... this. Updated all users.
4636 (record_arch_list_head): Renamed to ...
4637 (record_full_arch_list_head): ... this. Updated all users.
4638 (record_arch_list_tail): Renamed to ...
4639 (record_full_arch_list_tail): ... this. Updated all users.
4640 (record_stop_at_limit): Renamed to ...
4641 (record_full_stop_at_limit): ... this. Updated all users.
4642 (record_insn_max_num): Renamed to ...
4643 (record_full_insn_max_num): ... this. Updated all users.
4644 (record_insn_num): Renamed to ...
4645 (record_full_insn_num): ... this. Updated all users.
4646 (record_insn_count): Renamed to ...
4647 (record_full_insn_count): ... this. Updated all users.
4648 (record_ops): Renamed to ...
4649 (record_full_ops): ... this. Updated all users.
4650 (record_core_ops): Renamed to ...
4651 (record_full_core_ops): ... this. Updated all users.
4652 (set_record_cmdlist): Renamed to ...
4653 (set_record_full_cmdlist): ... this. Updated all users.
4654 (show_record_cmdlist): Renamed to ...
4655 (show_record_full_cmdlist): ... this. Updated all users.
4656 (record_cmdlist): Renamed to ...
4657 (record_full_cmdlist): ... this. Updated all users.
4658 (record_beneath_to_resume_ops): Renamed to ...
4659 (record_full_beneath_to_resume_ops): ... this. Updated all users.
4660 (record_beneath_to_resume): Renamed to ...
4661 (record_full_beneath_to_resume): ... this. Updated all users.
4662 (record_beneath_to_wait_ops): Renamed to ...
4663 (record_full_beneath_to_wait_ops): ... this. Updated all users.
4664 (record_beneath_to_wait): Renamed to ...
4665 (record_full_beneath_to_wait): ... this. Updated all users.
4666 (record_beneath_to_store_registers_ops): Renamed to ...
4667 (record_full_beneath_to_store_registers_ops): ... this.
4668 Updated all users.
4669 (record_beneath_to_store_registers): Renamed to ...
4670 (record_full_beneath_to_store_registers): ... this.
4671 Updated all users.
4672 (record_beneath_to_xfer_partial_ops): Renamed to ...
4673 (record_full_beneath_to_xfer_partial_ops): ... this.
4674 Updated all users.
4675 (record_beneath_to_xfer_partial): Renamed to ...
4676 (record_full_beneath_to_xfer_partial): ... this.
4677 Updated all users.
4678 (record_beneath_to_insert_breakpoint): Renamed to ...
4679 (record_full_beneath_to_insert_breakpoint): ... this.
4680 Updated all users.
4681 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
4682 (record_full_beneath_to_stopped_by_watchpoint): ... this.
4683 Updated all users.
4684 (record_beneath_to_stopped_data_address): Renamed to ...
4685 (record_full_beneath_to_stopped_data_address): ... this.
4686 Updated all users.
4687 (record_beneath_to_async): Renamed to ...
4688 (record_full_beneath_to_async): ... this. Updated all users.
4689 (record_goto_insn): Renamed to ...
4690 (record_full_goto_insn): ... this. Updated all users.
4691 (record_save): Renamed to ...
4692 (record_full_save): ... this. Updated all users.
4693 (record_reg_alloc): Renamed to ...
4694 (record_full_reg_alloc): ... this. Updated all users.
4695 (record_reg_release): Renamed to ...
4696 (record_full_reg_release): ... this. Updated all users.
4697 (record_mem_alloc): Renamed to ...
4698 (record_full_mem_alloc): ... this. Updated all users.
4699 (record_mem_release): Renamed to ...
4700 (record_full_mem_release): ... this. Updated all users.
4701 (record_end_alloc): Renamed to ...
4702 (record_full_end_alloc): ... this. Updated all users.
4703 (record_end_release): Renamed to ...
4704 (record_full_end_release): ... this. Updated all users.
4705 (record_entry_release): Renamed to ...
4706 (record_full_entry_release): ... this. Updated all users.
4707 (record_list_release): Renamed to ...
4708 (record_full_list_release): ... this. Updated all users.
4709 (record_list_release_following): Renamed to ...
4710 (record_full_list_release_following): ... this.
4711 Updated all users.
4712 (record_list_release_first): Renamed to ...
4713 (record_full_list_release_first): ... this. Updated all users.
4714 (record_arch_list_add): Renamed to ...
4715 (record_full_arch_list_add): ... this. Updated all users.
4716 (record_get_loc): Renamed to ...
4717 (record_full_get_loc): ... this. Updated all users.
4718 (record_check_insn_num): Renamed to ...
4719 (record_full_check_insn_num): ... this. Updated all users.
4720 (record_arch_list_cleanups): Renamed to ...
4721 (record_full_arch_list_cleanups): ... this. Updated all users.
4722 (record_message): Renamed to ...
4723 (record_full_message): ... this. Updated all users.
4724 (record_message_wrapper): Renamed to ...
4725 (record_full_message_wrapper): ... this. Updated all users.
4726 (record_message_wrapper_safe): Renamed to ...
4727 (record_full_message_wrapper_safe): ... this. Updated all users.
4728 (record_gdb_operation_disable): Renamed to ...
4729 (record_full_gdb_operation_disable): ... this. Updated all users.
4730 (record_hw_watchpoint): Renamed to ...
4731 (record_full_hw_watchpoint): ... this. Updated all users.
4732 (record_exec_insn): Renamed to ...
4733 (record_full_exec_insn): ... this. Updated all users.
4734 (record_restore): Renamed to ...
4735 (record_full_restore): ... this. Updated all users.
4736 (record_async_inferior_event_token): Renamed to ...
4737 (record_full_async_inferior_event_token): ... this.
4738 Updated all users.
4739 (record_async_inferior_event_handler): Renamed to ...
4740 (record_full_async_inferior_event_handler): ... this.
4741 Updated all users.
4742 (record_core_open_1): Renamed to ...
4743 (record_full_core_open_1): ... this. Updated all users.
4744 (record_open_1): Renamed to ...
4745 (record_full_open_1): ... this. Updated all users.
4746 (record_open): Renamed to ...
4747 (record_full_open): ... this. Updated all users.
4748 (record_close): Renamed to ...
4749 (record_full_close): ... this. Updated all users.
4750 (record_resume_step): Renamed to ...
4751 (record_full_resume_step): ... this. Updated all users.
4752 (record_resumed): Renamed to ...
4753 (record_full_resumed): ... this. Updated all users.
4754 (record_execution_dir): Renamed to ...
4755 (record_full_execution_dir): ... this. Updated all users.
4756 (record_resume): Renamed to ...
4757 (record_full_resume): ... this. Updated all users.
4758 (record_get_sig): Renamed to ...
4759 (record_full_get_sig): ... this. Updated all users.
4760 (record_sig_handler): Renamed to ...
4761 (record_full_sig_handler): ... this. Updated all users.
4762 (record_wait_cleanups): Renamed to ...
4763 (record_full_wait_cleanups): ... this. Updated all users.
4764 (record_wait_1): Renamed to ...
4765 (record_full_wait_1): ... this. Updated all users.
4766 (record_wait): Renamed to ...
4767 (record_full_wait): ... this. Updated all users.
4768 (record_stopped_by_watchpoint): Renamed to ...
4769 (record_full_stopped_by_watchpoint): ... this. Updated all users.
4770 (record_disconnect): Renamed to ...
4771 (record_full_disconnect): ... this. Updated all users.
4772 (record_detach): Renamed to ...
4773 (record_full_detach): ... this. Updated all users.
4774 (record_mourn_inferior): Renamed to ...
4775 (record_full_mourn_inferior): ... this. Updated all users.
4776 (record_kill): Renamed to ...
4777 (record_full_kill): ... this. Updated all users.
4778 (record_stopped_data_address): Renamed to ...
4779 (record_full_stopped_data_address): ... this. Updated all users.
4780 (record_registers_change): Renamed to ...
4781 (record_full_registers_change): ... this. Updated all users.
4782 (record_store_registers): Renamed to ...
4783 (record_full_store_registers): ... this. Updated all users.
4784 (record_xfer_partial): Renamed to ...
4785 (record_full_xfer_partial): ... this. Updated all users.
4786 (record_breakpoint): Renamed to ...
4787 (record_full_breakpoint): ... this. Updated all users.
4788 (record_breakpoint_p): Renamed to ...
4789 (record_full_breakpoint_p): ... this. Updated all users.
4790 (record_breakpoints): Renamed to ...
4791 (record_full_breakpoints): ... this. Updated all users.
4792 (record_sync_record_breakpoints): Renamed to ...
4793 (record_full_sync_record_breakpoints): ... this.
4794 Updated all users.
4795 (record_init_record_breakpoints): Renamed to ...
4796 (record_full_init_record_breakpoints): ... this.
4797 Updated all users.
4798 (record_insert_breakpoint): Renamed to ...
4799 (record_full_insert_breakpoint): ... this. Updated all users.
4800 (record_remove_breakpoint): Renamed to ...
4801 (record_full_remove_breakpoint): ... this. Updated all users.
4802 (record_can_execute_reverse): Renamed to ...
4803 (record_full_can_execute_reverse): ... this. Updated all users.
4804 (record_get_bookmark): Renamed to ...
4805 (record_full_get_bookmark): ... this. Updated all users.
4806 (record_goto_bookmark): Renamed to ...
4807 (record_full_goto_bookmark): ... this. Updated all users.
4808 (record_async): Renamed to ...
4809 (record_full_async): ... this. Updated all users.
4810 (record_can_async_p): Renamed to ...
4811 (record_full_can_async_p): ... this. Updated all users.
4812 (record_is_async_p): Renamed to ...
4813 (record_full_is_async_p): ... this. Updated all users.
4814 (record_execution_direction): Renamed to ...
4815 (record_full_execution_direction): ... this. Updated all users.
4816 (record_info): Renamed to ...
4817 (record_full_info): ... this. Updated all users.
4818 (record_delete): Renamed to ...
4819 (record_full_delete): ... this. Updated all users.
4820 (record_is_replaying): Renamed to ...
4821 (record_full_is_replaying): ... this. Updated all users.
4822 (record_goto_entry): Renamed to ...
4823 (record_full_goto_entry): ... this. Updated all users.
4824 (record_goto_begin): Renamed to ...
4825 (record_full_goto_begin): ... this. Updated all users.
4826 (record_goto_end): Renamed to ...
4827 (record_full_goto_end): ... this. Updated all users.
4828 (record_goto): Renamed to ...
4829 (record_full_goto): ... this. Updated all users.
4830 (init_record_ops): Renamed to ...
4831 (init_record_full_ops): ... this. Updated all users.
4832 (record_core_resume): Renamed to ...
4833 (record_full_core_resume): ... this. Updated all users.
4834 (record_core_kill): Renamed to ...
4835 (record_full_core_kill): ... this. Updated all users.
4836 (record_core_fetch_registers): Renamed to ...
4837 (record_full_core_fetch_registers): ... this. Updated all users.
4838 (record_core_prepare_to_store): Renamed to ...
4839 (record_full_core_prepare_to_store): ... this. Updated all users.
4840 (record_core_store_registers): Renamed to ...
4841 (record_full_core_store_registers): ... this. Updated all users.
4842 (record_core_xfer_partial): Renamed to ...
4843 (record_full_core_xfer_partial): ... this. Updated all users.
4844 (record_core_insert_breakpoint): Renamed to ...
4845 (record_full_core_insert_breakpoint): ... this. Updated all users.
4846 (record_core_remove_breakpoint): Renamed to ...
4847 (record_full_core_remove_breakpoint): ... this. Updated all users.
4848 (record_core_has_execution): Renamed to ...
4849 (record_full_core_has_execution): ... this. Updated all users.
4850 (init_record_core_ops): Renamed to ...
4851 (init_record_full_core_ops): ... this. Updated all users.
4852 (cmd_record_restore): Renamed to ...
4853 (cmd_record_full_restore): ... this. Updated all users.
4854 (record_save_cleanups): Renamed to ...
4855 (record_full_save_cleanups): ... this. Updated all users.
4856 (cmd_record_start): Renamed to ...
4857 (cmd_record_full_start): ... this. Updated all users.
4858 (set_record_insn_max_num): Renamed to ...
4859 (set_record_full_insn_max_num): ... this. Updated all users.
4860 (set_record_command): Renamed to ...
4861 (set_record_full_command): ... this. Updated all users.
4862 (show_record_command): Renamed to ...
4863 (show_record_full_command): ... this. Updated all users.
4864 (_initialize_record): Renamed to ...
4865 (_initialize_record_full): ... this. Updated all users.
4866
4867 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4868
4869 * record.h: Split into this and ...
4870 * record-full.h: ... this.
4871 * record.c: Split into this and ...
4872 * record-full.c: ... this.
4873 * target.h (target_ops): Add new fields to_info_record,
4874 to_save_record, to_delete_record, to_record_is_replaying,
4875 to_goto_record_begin, to_goto_record_end, to_goto_record.
4876 (target_info_record): New.
4877 (target_save_record): New.
4878 (target_supports_delete_record): New.
4879 (target_delete_record): New.
4880 (target_record_is_replaying): New.
4881 (target_goto_record_begin): New.
4882 (target_goto_record_end): New.
4883 (target_goto_record): New.
4884 * target.c (target_info_record): New.
4885 (target_save_record): New.
4886 (target_supports_delete_record): New.
4887 (target_delete_record): New.
4888 (target_record_is_replaying): New.
4889 (target_goto_record_begin): New.
4890 (target_goto_record_end): New.
4891 (target_goto_record): New.
4892 * record.h: Declare struct cmd_list_element.
4893 (record_cmdlist): New declaration.
4894 (set_record_cmdlist): New declaration.
4895 (show_record_cmdlist): New declaration.
4896 (info_record_cmdlist): New declaration.
4897 (cmd_record_goto): New declaration.
4898 * record.c: Remove unnecessary includes.
4899 Include inferior.h.
4900 (cmd_record_goto): Remove declaration.
4901 (record_cmdlist): Now extern. Initialize.
4902 (set_record_cmdlist): Now extern. Initialize.
4903 (show_record_cmdlist): Now extern. Initialize.
4904 (info_record_cmdlist): Now extern. Initialize.
4905 (find_record_target): New.
4906 (require_record_target): New.
4907 (cmd_record_start): Update.
4908 (cmd_record_delete): Remove target-specific code.
4909 Call target_delete_record.
4910 (cmd_record_stop): Unpush any record target.
4911 (set_record_insn_max_num): Move to record-full.c
4912 (set_record_command): Add comment.
4913 (show_record_command): Add comment.
4914 (info_record_command): Update comment.
4915 Remove target-specific code.
4916 Call the record target's to_info_record.
4917 (cmd_record_start): New.
4918 (cmd_record_goto): Now extern.
4919 Remove target-specific code.
4920 Call target_goto_begin, target_goto_end, or target_goto.
4921 (_initialize_record): Move record target ops initialization to
4922 record-full.c.
4923 Change "record" command help text.
4924 Move "record restore", "record set", and "record show" commands to
4925 record-full.c.
4926 * Makefile.in (SFILES): Add record-full.c.
4927 (HFILES_NO_SRCDIR): Add record-full.h.
4928 (COMMON_OBS): Add record-full.o.
4929 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
4930 * arm-tdep.c: Include record-full.h.
4931 * i386-linux-tdep.c: Include record-full.h instead of record.h.
4932 * i386-tdep.c: Include record-full.h.
4933 * infrun.c: Include record-full.h.
4934 * linux-record.c: Include record-full.h.
4935 * moxie-tdep.c: Include record-full.h.
4936 * record-full.c: Include record-full.h.
4937 Change module comment.
4938 (set_record_full_cmdlist): New.
4939 (show_record_full_cmdlist): New.
4940 (record_full_cmdlist): New.
4941 (record_goto_insn): New declaration.
4942 (record_save): New declaration.
4943 (record_check_insn_num): Change query string.
4944 (record_info): New.
4945 (record_delete): New.
4946 (record_is_replaying): New.
4947 (record_goto_entry): New.
4948 (record_goto_begin): New.
4949 (record_goto_end): New.
4950 (record_goto): New.
4951 (init_record_ops): Update.
4952 (init_record_core_ops): Update.
4953 (cmd_record_save): Rename to record_save. Remove target and arg checks.
4954 (cmd_record_start): New.
4955 (set_record_insn_max_num): Moved from record.c
4956 (set_record_full_command): New.
4957 (show_record_full_command): New.
4958 (_initialize_record_full): New.
4959
4960 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4961
4962 * target.h (add_deprecated_target_alias): New.
4963 * target.c (add_deprecated_target_alias): New.
4964
4965 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4966
4967 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
4968 and signal.h.
4969 (linux_supports_btrace): Add kernel and
4970 cpuid check.
4971 (kernel_supports_btrace): New function.
4972 (cpu_supports_btrace): New function.
4973 (intel_supports_btrace): New function.
4974
4975 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4976
4977 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
4978 * remote.c: Include btrace.h.
4979 (struct btrace_target_info): New struct.
4980 (remote_supports_btrace): New function.
4981 (send_Qbtrace): New function.
4982 (remote_enable_btrace): New function.
4983 (remote_disable_btrace): New function.
4984 (remote_teardown_btrace): New function.
4985 (remote_read_btrace): New function.
4986 (init_remote_ops): Add btrace ops.
4987 (enum <unnamed>): Add btrace packets.
4988 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
4989 (_initialize_remote): Add packet configuration for branch tracing.
4990
4991 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
4992
4993 * features/btrace.dtd: New file.
4994 * Makefile.in (XMLFILES): Add btrace.dtd.
4995 * btrace.h (parse_xml_btrace): New declaration.
4996 * btrace.c: Include xml-support.h.
4997 (parse_xml_btrace): New function.
4998 (parse_xml_btrace_block): New function.
4999 (block_attributes): New struct.
5000 (btrace_attributes): New struct.
5001 (btrace_children): New struct.
5002 (btrace_elements): New struct.
5003
5004 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5005
5006 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
5007 (amd64_linux_enable_btrace): New.
5008 (amd64_linux_disable_btrace): New.
5009 (amd64_linux_teardown_btrace): New.
5010 (_initialize_amd64_linux_nat): Initialize btrace ops.
5011 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
5012 (i386_linux_enable_btrace): New.
5013 (i386_linux_disable_btrace): New.
5014 (i386_linux_teardown_btrace): New.
5015 (_initialize_i386_linux_nat): Initialize btrace ops.
5016 * config/i386/linux.mh: Add linux-btrace.o.
5017 * config/i386/linux64.mh: Add linux-btrace.o.
5018
5019 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5020
5021 * common/linux_btrace.h: New file.
5022 * common/linux_btrace.c: New file.
5023 * Makefile.in (SFILES): Add btrace.c.
5024 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
5025 (COMMON_OBS): Add btrace.o.
5026 (linux-btrace.o): New rule.
5027
5028 2013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5029
5030 * target.h: Include btrace.h.
5031 (struct target_ops) <to_supports_btrace, to_enable_btrace,
5032 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
5033 * target.c (target_supports_btrace): New function.
5034 (target_enable_btrace): New function.
5035 (target_disable_btrace): New function.
5036 (target_teardown_btrace): New function.
5037 (target_read_btrace): New function.
5038 * btrace.h: New file.
5039 * btrace.c: New file.
5040 * Makefile.in: Add btrace.c.
5041 * gdbthread.h: Include btrace.h.
5042 (struct thread_info): Add btrace field.
5043 * thread.c: Include btrace.h.
5044 (clear_thread_inferior_resources): Call target_teardown_btrace.
5045 * common/btrace-common.h: New file.
5046
5047 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5048
5049 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
5050 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
5051 kill_status to outer block.
5052
5053 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5054
5055 Fix entry-values if the callee called a noreturn function.
5056 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5057 get_frame_address_in_block. Add new comment.
5058
5059 2013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5060
5061 Fix entry-values in C++ across CUs.
5062 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
5063 lookup_minimal_symbol. Add a comment.
5064 * dwarf2read.c
5065 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
5066 DW_AT_linkage_name.
5067
5068 2013-03-08 Yao Qi <yao@codesourcery.com>
5069
5070 * tracepoint.c (_initialize_tracepoint): Indent the code.
5071
5072 2013-03-08 Pedro Alves <palves@redhat.com>
5073
5074 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
5075 (parse_find_args, find_command): Change type of pattern buffer
5076 locals to 'gdb_byte *'.
5077
5078 2013-03-08 Stan Shebs <stan@codesourcery.com>
5079 Hafiz Abid Qadeer <abidh@codesourcery.com>
5080
5081 * NEWS: Mention set and show trace-buffer-size commands.
5082 Mention new packet.
5083 * target.h (struct target_ops): New method
5084 to_set_trace_buffer_size.
5085 (target_set_trace_buffer_size): New macro.
5086 * target.c (update_current_target): Set up new method.
5087 * tracepoint.c (trace_buffer_size): New global.
5088 (start_tracing): Send it to the target.
5089 (set_trace_buffer_size): New function.
5090 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
5091 * remote.c (remote_set_trace_buffer_size): New function.
5092 (_initialize_remote): Use it.
5093 (QTBuffer:size) New remote command.
5094 (PACKET_QTBuffer_size): New enum.
5095 (remote_protocol_features): Add an entry for
5096 PACKET_QTBuffer_size.
5097
5098 2013-03-08 Tom Tromey <tromey@redhat.com>
5099
5100 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
5101 variable.
5102
5103 2013-03-07 Pedro Alves <palves@redhat.com>
5104
5105 * target.c (target_read_stralloc, target_fileio_read_alloc):
5106 *Cast pointer to 'gdb_byte *' in target call.
5107
5108 2013-03-07 Pedro Alves <palves@redhat.com>
5109
5110 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
5111 call.
5112
5113 2013-03-07 Keith Seitz <keiths@redhat.com>
5114
5115 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
5116 (trace_pass_command): Likewise.
5117 * cli/cli-cmds.c: Include cli/cli-utils.h.
5118 (source_command): Use skip-spaces.
5119 (disassemble_command): Likewise.
5120 * findcmd.c: Include cli/cli-utils.h.
5121 (parse_find_args): Use skip_spaces.
5122 * go32-nat.c: Include cli/cli-utils.h.
5123 (go32_sldt): Use skip_spaces.
5124 (go32_sgdt): Likewise.
5125 (go32_sidt): Likewise.
5126 (go32_pde): Likewise.
5127 (go32_pte): Likewise.
5128 (go32_pte_for_address): Likewise.
5129 * infcmd.c: Include cli/cli-utils.h.
5130 (registers_info): Use skip_spaces.
5131 * linux-tdep.c (read_mapping): Use skip_spaces_const.
5132 (linux_info_proc): Likewise.
5133 * linux-thread-db.c: Include cli/cli-utils.h.
5134 (info_auto_load_libthread_db): Use skip_spaces_const.
5135 * m32r-rom.c: Include cli/cli-utils.h.
5136 (m32r_upload_command): Use skip_spaces.
5137 * maint.c: Include cli/cli-utils.h.
5138 (maintenance_translate_address): Use skip_spaces.
5139 * mi/mi-parse.c: Include cli/cli-utils.h.
5140 (mi_parse_argv): Use skip_spaces.
5141 (mi_parse): Likewise.
5142 * minsyms.c: Include cli/cli-utils.h.
5143 (msymbol_hash_iw): Use skip_spaces_const.
5144 * objc-lang.c: Include cli/cli-utils.h.
5145 (parse_selector): Use skip_spaces.
5146 (parse_method): Likewise.
5147 * python/python.c: Include cli/cli-utils.h.
5148 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
5149 (python_command)[HAVE_PYTHON]: Likewise.
5150 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
5151 * remote-m32r-sdi.c: Include cli/cli-utils.h.
5152 (m32r_load): Use skip_spaces.
5153 * serial.c: Include cli/cli-utils.h.
5154 (serial_open): Use skip_spaces_const.
5155 * stack.c: Include cli/cli-utils.h.
5156 (parse_frame_specification_1): Use skip_spaces_const.
5157 * symfile.c: Include cli/cli-utils.h.
5158 (set_ext_lang_command): Use skip_spaces.
5159 * symtab.c: Include cli/cli-utils.h.
5160 (rbreak_command): Use skip_spaces.
5161 * thread.c (thread_name_command): Use skip_spaces.
5162 * tracepoint.c (validate_actionline): Use skip_spaces.
5163 (encode_actions_1): Likewise.
5164 (trace_find_range_command): Likewise.
5165 (trace_find_outside_command): Likewise.
5166 (trace_dump_actions): Likewise.
5167
5168 2013-03-07 Pedro Alves <palves@redhat.com>
5169
5170 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
5171 * expprint.c (print_subexp_standard): Likewise.
5172 * utils.c (host_char_to_target): Likewise.
5173 * valprint.c (generic_emit_char, generic_printstr): Likewise.
5174 * varobj.c (value_get_print_value): Change type of local to char*.
5175 Cast it gdb_byte * in call to language printer.
5176
5177 2013-03-07 Pedro Alves <palves@redhat.com>
5178
5179 * charset.c (struct wchar_iterator) <input>: Change type to 'const
5180 gdb_byte *'.
5181 (make_wchar_iterator): Remove cast to char*.
5182 (wchar_iterate): Change type of local.
5183
5184 2013-03-07 Pedro Alves <palves@redhat.com>
5185
5186 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
5187 for 'regcache->register_status'.
5188
5189 2013-03-07 Pedro Alves <palves@redhat.com>
5190
5191 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
5192 int.
5193
5194 2013-03-07 Pedro Alves <palves@redhat.com>
5195
5196 * stap-probe.c (handle_stap_probe): Add cast to char*.
5197
5198 2013-03-07 Pedro Alves <palves@redhat.com>
5199
5200 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
5201 RECORD_MSGRCV>: Pass a signed variable to
5202 regcache_raw_read_signed, instead of an unsigned one.
5203
5204 2013-03-07 Pedro Alves <palves@redhat.com>
5205
5206 * remote-notif.c (notif_debug): Change type to int.
5207 * remote-notif.h (notif_debug): Likewise.
5208
5209 2013-03-07 Pedro Alves <palves@redhat.com>
5210
5211 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
5212
5213 2013-03-07 Pedro Alves <palves@redhat.com>
5214
5215 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
5216 * remote.h (hex2bin, bin2hex): ... here.
5217 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
5218
5219 2013-03-07 Eli Zaretskii <eliz@gnu.org>
5220
5221 * utils.c (initialize_utils): Improve doc strings of "set/show
5222 width", "set/show height", and "set/show pagination".
5223
5224 2013-03-06 Keith Seitz <keiths@redhat.com>
5225
5226 * ax-gdb.c (gen_printf): Make FORMAT const.
5227 * ax-gdb.h (gen_printf): Likewise.
5228 * ax-general.c (ax_string): Make STR const.
5229 * ax.h (ax_string): Likewise.
5230
5231 2013-03-06 Doug Evans <dje@google.com>
5232
5233 * elfread.c (elf_symfile_read): Move debugging printf to more
5234 logical location.
5235
5236 2013-03-06 Pedro Alves <palves@redhat.com>
5237
5238 * python/py-utils.c (target_string_to_unicode): Delete function.
5239 * python/python-internal.h (target_string_to_unicode): Delete
5240 declaration.
5241
5242 2013-03-06 Pierre Muller <muller@sourceware.org>
5243
5244 * linespec.c (get_current_search_block): ARI fix, use (void)
5245 for empty parameter list.
5246
5247 2013-03-05 Doug Evans <dje@google.com>
5248
5249 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
5250 of old ada_lookup_symbol_list. In !full_search case, don't
5251 search superblocks.
5252 (ada_lookup_symbol_list): Delete arg full_search, all callers
5253 updated. Call ada_lookup_symbol_list_worker.
5254 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
5255 * ada-lang.h (ada_lookup_symbol_list): Update.
5256 * language.h (language_defn): Update comment for
5257 la_iterate_over_symbols.
5258 * linespec.c (iterate_over_file_blocks): New function.
5259 (iterate_over_all_matching_symtabs): Call it.
5260 (lookup_prefix_sym): Ditto.
5261 (get_current_search_block): New function.
5262 (get_search_block): Delete.
5263 (find_label_symbols): Call get_current_search_block.
5264 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
5265 * symtab.c (iterate_over_symbols): Don't search superblocks.
5266
5267 2013-03-05 Yao Qi <yao@codesourcery.com>
5268
5269 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
5270 parameter VAR's type from "unsigned int" to "int".
5271 * command.h (var_zuinteger_unlimited): Update its comments.
5272 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
5273
5274 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
5275
5276 * NEWS: Mention new target x86_64-*-cygwin*.
5277
5278 2013-03-05 Corinna Vinschen <vinschen@redhat.de>
5279
5280 * configure.host: Add x86_64-*-cygwin* as host.
5281 * configure.tgt: Add x86_64-*-cygwin* as target.
5282 * config/i386/cygwin64.mh: New file.
5283
5284 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5285
5286 * linespec.c (decode_line_2): Fix duplicate request off by two message.
5287
5288 2013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5289
5290 * linespec.c (struct linespec_canonical_name): New.
5291 (struct linespec_state): Change canonical_names type to it.
5292 (add_sal_to_sals): Change variable canonical_name to canonical. Change
5293 xrealloc element size. Initialize the different CANONICAL fields.
5294 (canonical_to_fullform): New.
5295 (filter_results): Use it. Add variables canonical, fullform and
5296 cleanup.
5297 (struct decode_line_2_item, decode_line_2_compare_items): New.
5298 (decode_line_2): Remove variables iter and item_names, add variables
5299 items and items_count. Modify the code for these new variables.
5300
5301 2013-03-04 Corinna Vinschen <vinschen@redhat.com>
5302
5303 * coff-pe-read.c (read_pe_exported_syms): Don't return without
5304 calling do_cleanup.
5305
5306 2013-03-04 Luis Machado <lgustavo@codesourcery.com>
5307
5308 * tracepoint.c (build_traceframe_info): Add code for byte order.
5309
5310 2013-03-02 Kevin Buettner <kevinb@redhat.com>
5311
5312 * v850-tdep.c: (v850e2_register_name): Revise system register
5313 names to match current V850E2M architecture specifications.
5314 Update register number enum comments too.
5315
5316 2013-03-01 Jiong Wang <jiwang@tilera.com>
5317 Pedro Alves <palves@redhat.com>
5318
5319 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
5320 to END_ADDR.
5321 (tilegx_skip_prologue): Limit prologue analysis to section end.
5322
5323 2013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5324
5325 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
5326 use it.
5327
5328 2013-03-01 Pedro Alves <palves@redhat.com>
5329
5330 Use gdb_byte for bytes from the program being debugged.
5331
5332 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
5333 Change type of local 'buf' to gdb_byte.
5334 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
5335 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
5336 * cris-tdep.c (cris_sigcontext_addr)
5337 (cris_sigtramp_frame_unwind_cache): Likewise.
5338 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
5339 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
5340 Likewise.
5341 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
5342 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
5343 (hppa32_hpux_search_dummy_call_sequence)
5344 (hppa_hpux_supply_save_state): Likewise.
5345 * hppa-linux-tdep.c (insns_match_pattern)
5346 (hppa_linux_find_global_pointer): Likewise.
5347 * hppa-tdep.c (hppa_in_function_epilogue_p)
5348 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
5349 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
5350 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
5351 (i386fbsd_collect_uthread): Likewise.
5352 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
5353 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
5354 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
5355 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
5356 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
5357 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
5358 (ia64_libunwind_frame_prev_register)
5359 (ia64_libunwind_sigtramp_frame_this_id)
5360 (ia64_find_global_pointer_from_dynamic_section)
5361 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
5362 (ia64_unwind_pc): Likewise.
5363 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
5364 * m68hc11-tdep.c (m68hc11_push_dummy_call)
5365 (m68hc11_extract_return_value): Likewise.
5366 * m68klinux-nat.c (fetch_register, store_register): Likewise.
5367 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
5368 (mep_get_insn, mep_push_dummy_call): Likewise.
5369 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
5370 (mips_linux_in_dynsym_stub): Likewise.
5371 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
5372 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
5373 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
5374 to gdb_byte.
5375 * remote-mips.c (mips_set_register): Likewise.
5376 * remote-sim.c (gdbsim_fetch_register): Likewise.
5377 * score-tdep.c (score7_fetch_inst): Change type of parameter
5378 'memblock' and local 'buf' to gdb_byte.
5379 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
5380 Change type of local 'buf' to gdb_byte. Adjust.
5381 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
5382 to gdb_byte**.
5383 (score7_analyze_prologue): Change type of 'memblock' and
5384 'memblock_ptr' locals to gdb_byte*.
5385 * sh64-tdep.c (sh64_extract_return_value)
5386 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
5387 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
5388 * solib-pa64.c (pa64_solib_create_inferior_hook)
5389 (pa64_open_symbol_file_object): Remove local 'buf'.
5390 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
5391 (som_open_symbol_file_object): Likewise.
5392 * solib-spu.c (spu_current_sos): Likewise.
5393 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
5394 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
5395 (spu_store_registers): Likewise.
5396 * target.c (debug_print_register): Likewise.
5397 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
5398 * xstormy16-tdep.c (xstormy16_store_return_value)
5399 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
5400 (xstormy16_find_jmp_table_entry): Likewise.
5401
5402 2013-03-01 Jiong Wang <jiwang@tilera.com>
5403
5404 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
5405 (tilegx_gdbarch_init): Install it.
5406
5407 2013-02-28 Tom Tromey <tromey@redhat.com>
5408
5409 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
5410 PyLong_Check.
5411
5412 2013-02-28 Doug Evans <dje@google.com>
5413
5414 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
5415 * python/python.c (gdbpy_find_pc_line): Ditto.
5416
5417 2013-02-28 Tom Tromey <tromey@redhat.com>
5418
5419 * contrib/excheck.py: New file.
5420 * contrib/exsummary.py: New file.
5421 * contrib/gcc-with-excheck: New file.
5422
5423 2013-02-28 Tom Tromey <tromey@redhat.com>
5424
5425 * python/python.c (gdbpy_print_stack): Call begin_line and
5426 fprintf_filtered inside TRY_CATCH.
5427
5428 2013-02-28 Tom Tromey <tromey@redhat.com>
5429
5430 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
5431 inside TRY_CATCH.
5432
5433 2013-02-28 Tom Tromey <tromey@redhat.com>
5434
5435 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
5436 frame_object_to_frame_info inside TRY_CATCH.
5437
5438 2013-02-28 Tom Tromey <tromey@redhat.com>
5439
5440 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
5441 TRY_CATCH.
5442
5443 2013-02-28 Tom Tromey <tromey@redhat.com>
5444
5445 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
5446
5447 2013-02-27 Corinna Vinschen <vinschen@redhat.com>
5448
5449 * windows-nat.c: Throughout, fix format strings and casts of
5450 printf-like functions to avoid type related warnings on all
5451 platforms.
5452 (handle_output_debug_string): Fetch context information address
5453 from debug string using string_to_core_addr.
5454
5455 2013-02-27 Jiong Wang <jiwang@tilera.com>
5456
5457 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
5458 * regformats/reg-tilegx32.dat: New.
5459
5460 2013-02-27 Jiong Wang <jiwang@tilera.com>
5461
5462 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
5463
5464 2013-02-27 Jiong Wang <jiwang@tilera.com>
5465
5466 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
5467
5468 2013-02-27 Yao Qi <yao@codesourcery.com>
5469 Pedro Alves <palves@redhat.com>
5470
5471 * tracepoint.c (tfile_trace_find): For tfind
5472 pc/tp/range/outside, look for the next trace frame instead of
5473 always starting from frame 0.
5474
5475 2013-02-26 Anthony Green <green@moxielogic.com>
5476
5477 * configure.tgt: Add support for moxie-*-rtems* target.
5478
5479 2013-02-25 Pedro Alves <palves@redhat.com>
5480
5481 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
5482 warning text.
5483
5484 2013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5485
5486 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
5487 if $fp is used as the virtual frame pointer.
5488
5489 2013-02-23 Alan Modra <amodra@gmail.com>
5490
5491 * elfread.c (elf_symtab_read): Do not use udata.p here to find
5492 symbol size.
5493 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
5494 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
5495 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
5496 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
5497
5498 2013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
5499
5500 Code cleanup.
5501 * elfread.c (build_id_bfd_get): Make the return type const.
5502 (build_id_verify): Make the check parameter const.
5503 (build_id_to_debug_filename): Make the build_id parameter and variable
5504 data const.
5505 (find_separate_debug_file_by_buildid): Make the variable build_id const.
5506
5507 2013-02-21 Alan Modra <amodra@gmail.com>
5508
5509 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
5510
5511 2013-02-20 Siva Chandra Reddy <sivachandra@google.com>
5512
5513 Add a new method 'disassemble' to gdb.Architecture class.
5514 * python/py-arch.c (archpy_disassmble): Implementation of the
5515 new method gdb.Architecture.disassemble.
5516 (arch_object_methods): Add entry for the new method.
5517
5518 2013-02-20 Jiong Wang <jiwang@tilera.com>
5519
5520 * MAINTAINERS (Write After Approval): Add myself to the list.
5521
5522 2013-02-19 Pedro Alves <palves@redhat.com>
5523
5524 Garbage collect 'struct monitor_ops'::load_routine.
5525
5526 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
5527 * monitor.c (monitor_load): No longer call
5528 current_monitor->load_routine.
5529 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
5530 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
5531 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
5532
5533 2013-02-19 Pedro Alves <palves@redhat.com>
5534
5535 PR gdb/15161
5536
5537 Harmonize with generic_load.
5538
5539 * monitor.c: Include "readline/readline.h".
5540 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
5541 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
5542 long/strtol for the 'load_offset' local. Error out if no argument
5543 is given or if too many arguments are given. Tilde expand the
5544 passed in file name.
5545
5546 2013-02-19 Kai Tietz <ktietz@redhat.com>
5547
5548 PR gdb/15161
5549 * symfile.c (load_section_data): Change type of load_offset
5550 to CORE_ADDR.
5551 (generic_load): User strtoulst instead of strtoul for conversion
5552 of load_offset.
5553
5554 2013-02-19 Jiong Wang <jiwang@tilera.com>
5555
5556 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
5557 for return address, "lr" register, saved on stack.
5558 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
5559 after we invoke tilegx_analyze_prologue.
5560
5561 2013-02-19 Jiong Wang <jiwang@tilera.com>
5562
5563 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
5564
5565 2013-02-19 Jiong Wang <jiwang@tilera.com>
5566
5567 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
5568
5569 2013-02-19 Jiong Wang <jiwang@tilera.com>
5570
5571 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
5572 (tilegx_write_pc): New function.
5573 (tilegx_cannot_reference_register): Return zero if REGNO
5574 is TILEGX_FAULTNUM_REGNUM.
5575 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
5576 (tilegx_register_name): Add handling of "faultnum" register.
5577 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
5578 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
5579 handling of TILEGX_FAULTNUM_REGNUM.
5580 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
5581
5582 2013-02-19 Jiong Wang <jiwang@tilera.com>
5583
5584 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
5585 should be aligned to 64bit.
5586
5587 2013-02-19 Kai Tietz <ktietz@redhat.com>
5588
5589 * windows-nat.c (windows_xfer_memory): Fix debug-output
5590 for LLP64.
5591
5592 2013-02-19 Lei Liu <lei.liu2@windriver.com>
5593
5594 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
5595 Don't check DSP register number if HAVE_DSP is not set.
5596
5597 2013-02-19 Alan Modra <amodra@gmail.com>
5598
5599 * elfread.c (struct build_id): Delete. Use struct elf_build_id
5600 throughout file instead.
5601 (build_id_bfd_get): Update to use new elf_tdata build_id field.
5602 Don't xmalloc return value.
5603 (build_id_verify): Similarly. Don't xfree.
5604 (build_id_to_debug_filename): Update.
5605 (find_separate_debug_file_by_buildid): Update, don't xfree.
5606
5607 2013-02-18 Tom Tromey <tromey@redhat.com>
5608
5609 PR gdb/15102:
5610 * dwarf2read.c (read_subrange_type): Use result of
5611 'check_typedef'.
5612
5613 2013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
5614
5615 * frame.c: Remove one extra white space after #include
5616 directive.
5617
5618 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5619
5620 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
5621
5622 2013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5623
5624 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
5625 and dir commands into an if block.
5626
5627 2013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
5628
5629 * python/py-breakpoint (struct pybp_code): Use int instead of
5630 enum type_code.
5631
5632 2013-02-15 Pedro Alves <pedro@codesourcery.com>
5633 Hafiz Abid Qadeer <abidh@codesourcery.com>
5634
5635 * NEWS: Mention new field "trace-file".
5636 * tracepoint.c (trace_status_mi): Output "trace-file" field.
5637 (tfile_open): Record the trace file's filename in the trace
5638 status.
5639 (tfile_files_info): Mention the name of the trace file.
5640 Check the "filename" field explicitely.
5641 (trace_status_command): Explicitely check "filename" field.
5642 (trace_find_command): Ditto.
5643 (trace_find_pc_command): Ditto.
5644 (trace_find_tracepoint_command): Ditto.
5645 (trace_find_line_command): Ditto.
5646 (trace_find_range_command): Ditto.
5647 (trace_find_outside_command): Ditto.
5648 * tracepoint.h (struct trace_status) <from_file>: Rename it
5649 to "filename" and make it hold the trace file's filename
5650 instead of a boolean.
5651 * remote.c (remote_get_trace_status): Initialize "filename"
5652 field with NULL instead of 0.
5653
5654 2013-02-15 Yao Qi <yao@codesourcery.com>
5655
5656 * remote.c: Fix a typo.
5657
5658 2013-02-14 Pierre Muller <muller@sourceware.org>
5659
5660 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
5661
5662 2013-02-14 Pedro Alves <palves@redhat.com>
5663
5664 * utils.c (savestring): Don't #undef it. Move function to
5665 common/common-utils.c.
5666 * common/common-utils.c: Include gdb_string.h.
5667 (savestring): Move here from utils.c.
5668 * common/common-utils.h (savestring): Declare.
5669
5670 2013-02-14 Pedro Alves <palves@redhat.com>
5671
5672 * utils.c (savestring): Rename parameter 'size' to 'len'.
5673
5674 2013-02-14 Pedro Alves <palves@redhat.com>
5675 Yufeng Zhang <yufeng.zhang@arm.com>
5676
5677 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
5678 (aarch64_inferior_data, struct aarch64_inferior_data):
5679 Delete.
5680 (struct aarch64_process_info): New.
5681 (aarch64_process_list): New global.
5682 (aarch64_find_process_pid, aarch64_add_process)
5683 (aarch64_process_info_get): New functions.
5684 (aarch64_inferior_data_get): Delete.
5685 (aarch64_process_info_get): New function.
5686 (aarch64_forget_process): New function.
5687 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
5688 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
5689 aarch64_get_debug_reg_state.
5690 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
5691 instead of linux_nat_iterate_watchpoint_lwps.
5692 (aarch64_linux_new_fork): New function.
5693 (aarch64_linux_child_post_startup_inferior): Use
5694 aarch64_forget_process instead of aarch64_init_debug_reg_state.
5695 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
5696 (aarch64_linux_remove_hw_breakpoint)
5697 (aarch64_handle_aligned_watchpoint)
5698 (aarch64_handle_unaligned_watchpoint)
5699 (aarch64_linux_insert_watchpoint)
5700 (aarch64_linux_remove_watchpoint)
5701 (aarch64_linux_stopped_data_address): Adjust to pass the current
5702 process id to aarch64_debug_reg_state.
5703 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
5704 linux_nat_new_fork hook, and aarch64_forget_process as
5705 linux_nat_forget_process hook; remove the call to
5706 register_inferior_data_with_cleanup.
5707
5708 2013-02-14 Pedro Alves <palves@redhat.com>
5709
5710 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
5711 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
5712 lval_memory.
5713
5714 2013-02-14 Pedro Alves <pedro@codesourcery.com>
5715 Hafiz Abid Qadeer <abidh@codesourcery.com>
5716
5717 * tracepoint.h (validate_trace_state_variable_name): Declare.
5718 * tracepoint.c (validate_trace_state_variable_name): New.
5719 (trace_variable_command): Parse the trace state variable's name
5720 without using parse_expression. Do several validations.
5721 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
5722 trace state variable's name with parse_expression. Validate it.
5723
5724 2013-02-14 Yao Qi <yao@codesourcery.com>
5725
5726 * infcmd.c (breakpoint_proceeded): Remove it.
5727
5728 2013-02-14 Yao Qi <yao@codesourcery.com>
5729
5730 * tracepoint.c (end_actions_pseudocommand): Make it static.
5731 (while_stepping_pseudocommand): Likewise.
5732 * tracepoint.h (end_actions_pseudocommand): Remove the
5733 declaration.
5734 (while_stepping_pseudocommand): Likewise.
5735
5736 2013-02-14 Yao Qi <yao@codesourcery.com>
5737
5738 * cli/cli-decode.c (help_cmd): Remove the declaration of
5739 "cmdlist".
5740 (help_all): Likewise.
5741
5742 2013-02-13 Pedro Alves <palves@redhat.com>
5743
5744 * amd64-linux-nat.c (update_debug_registers_callback):
5745 Update comment.
5746 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
5747 iterate_over_lwps.
5748 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
5749 i386_debug_reg_state.
5750 (amd64_linux_new_fork): New function.
5751 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
5752 linux_nat_new_fork hook, and i386_forget_process as
5753 linux_nat_forget_process hook.
5754 * i386-linux-nat.c (update_debug_registers_callback):
5755 Update comment.
5756 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
5757 iterate_over_lwps.
5758 (i386_linux_prepare_to_resume): Pass the lwp's pid to
5759 i386_debug_reg_state.
5760 (i386_linux_new_fork): New function.
5761 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
5762 linux_nat_new_fork hook, and i386_forget_process as
5763 linux_nat_forget_process hook.
5764 * i386-nat.c (i386_init_dregs): Delete.
5765 (i386_inferior_data, struct i386_inferior_data):
5766 Delete.
5767 (struct i386_process_info): New.
5768 (i386_process_list): New global.
5769 (i386_find_process_pid, i386_add_process, i386_process_info_get):
5770 New functions.
5771 (i386_inferior_data_get): Delete.
5772 (i386_process_info_get): New function.
5773 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
5774 (i386_forget_process): New function.
5775 (i386_cleanup_dregs): Rewrite.
5776 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
5777 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
5778 (i386_stopped_data_address, i386_insert_hw_breakpoint)
5779 (i386_remove_hw_breakpoint): Adjust to pass the current process id
5780 to i386_debug_reg_state.
5781 (i386_use_watchpoints): Don't register inferior data.
5782 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
5783 adjust comment.
5784 (i386_forget_process): Declare.
5785 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
5786 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
5787 New static globals.
5788 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
5789 (add_initial_lwp): New, factored out from ...
5790 (add_lwp): ... this. Don't check the number of lwps before
5791 calling linux_nat_new_thread.
5792 (linux_nat_iterate_watchpoint_lwps): Delete.
5793 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
5794 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
5795 forks and vforks.
5796 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
5797 initial lwp.
5798 (linux_nat_kill, linux_nat_mourn_inferior): Call
5799 linux_nat_forget_process.
5800 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5801 (linux_nat_forget_process): New functions.
5802 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
5803 type.
5804 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
5805 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
5806 types.
5807 (linux_nat_set_new_fork, linux_nat_set_forget_process)
5808 (linux_nat_forget_process): New declarations.
5809
5810 * amd64fbsd-nat.c (super_mourn_inferior): New global.
5811 (amd64fbsd_mourn_inferior): New function.
5812 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
5813 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
5814
5815 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5816
5817 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
5818 Adding _().
5819
5820 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5821
5822 * aarch64-linux-nat.c (debug_reg_change_callback)
5823 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
5824 %s and phex().
5825
5826 2013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
5827
5828 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
5829 with LONGEST.
5830
5831 2013-02-13 Pedro Alves <palves@redhat.com>
5832 Hafiz Abid Qadeer <abidh@codesourcery.com>
5833
5834 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
5835
5836 2013-02-12 Tom Tromey <tromey@redhat.com>
5837
5838 PR symtab/11464:
5839 * c-exp.y (lex_one_token): Initialize other fields of yylval on
5840 NAME return.
5841 (classify_inner_name): Remove 'first_name' argument, add
5842 'context'. Remove unused variable.
5843 (yylex): Explicitly maintain the context type. Exit loop earlier
5844 if NAME result is seen.
5845
5846 2013-02-12 Pedro Alves <palves@redhat.com>
5847
5848 * amd64-darwin-tdep.c: Add (C) after Copyright.
5849 * cli/cli-cmds.h: Ditto.
5850 * cli/cli-decode.c: Ditto.
5851 * cli/cli-decode.h: Ditto.
5852 * cli/cli-dump.c: Ditto.
5853 * cli/cli-dump.h: Ditto.
5854 * cli/cli-interp.c: Ditto.
5855 * cli/cli-logging.c: Ditto.
5856 * cli/cli-script.c: Ditto.
5857 * cli/cli-script.h: Ditto.
5858 * cli/cli-setshow.c: Ditto.
5859 * cli/cli-setshow.h: Ditto.
5860 * cli/cli-utils.c: Ditto.
5861 * cli/cli-utils.h: Ditto.
5862 * config/alpha/nm-osf3.h: Ditto.
5863 * config/djgpp/djconfig.sh: Ditto.
5864 * config/i386/nm-fbsd.h: Ditto.
5865 * config/i386/nm-i386gnu.h: Ditto.
5866 * config/nm-linux.h: Ditto.
5867 * config/nm-nto.h: Ditto.
5868 * config/rs6000/nm-rs6000.h: Ditto.
5869 * config/sparc/nm-sol2.h: Ditto.
5870 * darwin-nat-info.c: Ditto.
5871 * dfp.c: Ditto.
5872 * dfp.h: Ditto.
5873 * gdb-demangle.h: Ditto.
5874 * i386-darwin-nat.c: Ditto.
5875 * i386-darwin-tdep.c: Ditto.
5876 * linux-fork.h: Ditto.
5877 * m32c-tdep.c: Ditto.
5878 * microblaze-linux-tdep.c: Ditto.
5879 * microblaze-rom.c: Ditto.
5880 * microblaze-tdep.c: Ditto.
5881 * microblaze-tdep.h: Ditto.
5882 * mips-linux-tdep.h: Ditto.
5883 * ppc-ravenscar-thread.c: Ditto.
5884 * ppc-ravenscar-thread.h: Ditto.
5885 * prologue-value.c: Ditto.
5886 * prologue-value.h: Ditto.
5887 * ravenscar-thread.c: Ditto.
5888 * ravenscar-thread.h: Ditto.
5889 * sparc-ravenscar-thread.c: Ditto.
5890 * sparc-ravenscar-thread.h: Ditto.
5891 * tilegx-linux-tdep.c: Ditto.
5892 * unwind_stop_reasons.def: Ditto.
5893 * windows-nat.h: Ditto.
5894 * xtensa-linux-tdep.c: Ditto.
5895 * xtensa-xtregs.c: Ditto.
5896 * regformats/regdat.sh: Ditto.
5897 * regformats/regdef.h: Ditto.
5898
5899 2013-02-12 Pedro Alves <palves@redhat.com>
5900
5901 * break-catch-sig.c: Update copyright years.
5902
5903 2013-02-11 Siva Chandra Reddy <sivachandra@google.com>
5904
5905 Add support for a destructor for ui_out data and use it to
5906 provide a ui_out destructor.
5907 * ui-out.h: Declare the new ui_out destructor.
5908 (ui_out_impl): Add a field for data destructor in ui_out_impl.
5909 * ui-out.c (default_data_destroy): Add a default data destructor
5910 which does nothing.
5911 (default_ui_out_impl): Set the new data_destroy field to
5912 default_data_destroy
5913 (uo_data_destroy): Local function which invokes the data
5914 destructor if present.
5915 (clear_table): Local function which clears the table data of a
5916 ui_out object.
5917 (ui_out_destroy): Public function which frees a ui_out object.
5918 (ui_out_table_end): Use the new clear_table function.
5919 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
5920 NULL.
5921 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
5922 to NULL.
5923
5924 2013-02-11 Doug Evans <dje@google.com>
5925
5926 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
5927 (printf_decfloat): New function. Broken out from ui_printf.
5928 Remove unnecessary code to shift the entire format string down.
5929 (printf_pointer): New function.
5930 (ui_printf): Code to print C strings, wide C strings, decfloats,
5931 and pointers moved to separate functions.
5932
5933 2013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
5934
5935 * valops.c (value_assign): Handling bitfield offset in
5936 `lval_internalvar_component' case.
5937
5938 2013-02-08 Doug Evans <dje@google.com>
5939
5940 * common/format.c (parse_format_string): Fix whitespace.
5941
5942 2013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
5943
5944 * stack.c (return_command): Work around uninitialized variable
5945 warning.
5946
5947 2013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
5948
5949 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
5950 number of the registers from 36 to 34.
5951
5952 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
5953
5954 * NEWS: Mention new AArch64 native and target support.
5955
5956 2013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
5957
5958 * MAINTAINERS (Write After Approval): Add myself.
5959
5960 2013-02-08 Jim MacArthur <jim.macarthur@arm.com>
5961 Marcus Shawcroft <marcus.shawcroft@arm.com>
5962 Nigel Stephens <nigel.stephens@arm.com>
5963 Yufeng Zhang <yufeng.zhang@arm.com>
5964
5965 * aarch64-linux-nat.c: New file.
5966 * config/aarch64/linux.mh: New file.
5967 * configure.host: Add AArch64.
5968 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
5969
5970 2013-02-07 Doug Evans <dje@google.com>
5971
5972 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
5973 disassemble command.
5974
5975 2013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
5976
5977 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
5978 set_gdbarch_fetch_tls_load_module_address.
5979
5980 2013-02-06 David S. Miller <davem@davemloft.net>
5981
5982 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
5983 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5984 * value.c (struct_return_convention): New function.
5985 (using_struct_return): Implement in terms of struct_return_convention.
5986 * value.h (struct_return_convention): Declare.
5987 * stack.c (return_command): Allow successful overriding of the return
5988 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
5989
5990 2013-02-06 Tom Tromey <tromey@redhat.com>
5991
5992 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
5993 outside of TRY_CATCH.
5994
5995 2013-02-06 Yao Qi <yao@codesourcery.com>
5996
5997 * mi/mi-interp.c: Include "tracepoint.h".
5998 (mi_tsv_modified): Declare.
5999 (mi_tsv_created, mi_tsv_deleted): Update declaration.
6000 (mi_interpreter_init): Call observer_attach_tsv_modified.
6001 (mi_tsv_modified): New.
6002 (mi_tsv_created, mi_tsv_deleted): Update.
6003 * tracepoint.c (trace_variable_command): Call
6004 observer_notify_tsv_modified if the initial value of tsv is
6005 changed.
6006 (delete_trace_state_variable): Call
6007 observer_notify_tsv_deleted earlier.
6008 (trace_variable_command): Caller update.
6009 (create_tsv_from_upload): Likewise.
6010 * observer.sh: Declare "struct trace_state_variable".
6011
6012 * NEWS: Mention the new MI notification "=tsv-modified".
6013
6014 2013-02-05 Doug Evans <dje@google.com>
6015
6016 * completer.c (location_completer): Fix typo in comment.
6017
6018 2013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6019
6020 * breakpoint.c (add_location_to_breakpoint): Insert the location with
6021 ADDRESS sorted.
6022
6023 2013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
6024
6025 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
6026 Refactor if statement to avoid trailing || operator.
6027
6028 2013-02-05 Andreas Tobler <andreast@fgznet.ch>
6029
6030 * NEWS: Add PowerPC FreeBSD as a new native configuration.
6031
6032 2013-02-04 Andreas Tobler <andreast@fgznet.ch>
6033
6034 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
6035 * configure.host: Add powerpc*-*-freebsd* target.
6036 * configure.tgt: Add target info for powerpc*-*-freebsd*.
6037 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
6038 * config/powerpc/fbsd.mh: New file.
6039
6040 2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
6041 Denys Vlasenko <dvlasenk@redhat.com>
6042 Pedro Alves <palves@redhat.com>
6043
6044 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
6045 (struct elf_internal_linux_prpsinfo): Forward declare.
6046 * gdbarch.h, gdbarch.c: Regenerate.
6047 * linux-tdep.c: Include `cli/cli-utils.h'.
6048 (linux_fill_prpsinfo): New function.
6049 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
6050 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
6051 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
6052 depending on gdbarch pointer bitness.
6053 * ppc-linux-tdep.c: Include elf-bfd.h.
6054 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
6055 on 32-bit.
6056
6057 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
6058 Marcus Shawcroft <marcus.shawcroft@arm.com>
6059 Nigel Stephens <nigel.stephens@arm.com>
6060 Yufeng Zhang <yufeng.zhang@arm.com>
6061
6062 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
6063
6064 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
6065 Marcus Shawcroft <marcus.shawcroft@arm.com>
6066 Nigel Stephens <nigel.stephens@arm.com>
6067 Yufeng Zhang <yufeng.zhang@arm.com>
6068
6069 * aarch64-newlib-tdep.c: New file.
6070 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
6071 aarch64*-*-elf.
6072 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
6073 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
6074 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
6075 * osabi.c (gdb_osabi_names): Add "Newlib".
6076
6077 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
6078 Marcus Shawcroft <marcus.shawcroft@arm.com>
6079 Nigel Stephens <nigel.stephens@arm.com>
6080 Yufeng Zhang <yufeng.zhang@arm.com>
6081
6082 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
6083 (ALLDEPFILES): Add aarch64-linux-tdep.c.
6084 * aarch64-linux-tdep.c: New file.
6085 * aarch64-linux-tdep.h: New file.
6086 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
6087 * configure.tgt: Add aarch64-none-linux-gnu.
6088
6089 2013-02-04 Jim MacArthur <jim.macarthur@arm.com>
6090 Marcus Shawcroft <marcus.shawcroft@arm.com>
6091 Nigel Stephens <nigel.stephens@arm.com>
6092 Yufeng Zhang <yufeng.zhang@arm.com>
6093
6094 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
6095 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
6096 (ALLDEPFILES): Add aarch64-tdep.c.
6097 * aarch64-tdep.c: New file.
6098 * aarch64-tdep.h: New file.
6099 * configure.tgt: Add AArch64.
6100 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
6101 (aarch64-expedite): New definition.
6102 * features/aarch64-core.xml: New file.
6103 * features/aarch64-fpu.xml: New file.
6104 * features/aarch64-without-fpu.c: New file (generated).
6105 * features/aarch64-without-fpu.xml: New file.
6106 * features/aarch64.c: New file (generated).
6107 * features/aarch64.xml: New file.
6108 * regformats/aarch64-without-fpu.dat: New file (generated).
6109 * regformats/aarch64.dat: New file (generated).
6110
6111 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6112
6113 * contrib/expect-read1.c: New file.
6114 * contrib/expect-read1.sh: New file.
6115
6116 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6117
6118 * dwarf2read.c (file_file_name): New function with code from
6119 file_full_name.
6120 (file_full_name): Move most of the code to file_file_name.
6121 (macro_start_file): Rename variable full_name to file_name and use
6122 file_file_name for it. Add comp_dir parameter to new_macro_table.
6123 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
6124 macro_source_file->filename access by macro_source_fullname call.
6125 * macroscope.c (_initialize_macroscope): Update the new_macro_table
6126 caller.
6127 * macrotab.c (struct macro_table): New field comp_dir.
6128 (macro_include): New variables link_fullname and source_fullname.
6129 Replace any macro_source_file->filename access by macro_source_fullname
6130 call.
6131 (macro_lookup_inclusion): Remove the partial filenames checking code.
6132 (check_for_redefinition): New variables source_fullname and
6133 found_key_fullname. Replace any macro_source_file->filename access by
6134 macro_source_fullname call.
6135 (macro_undef): New variables source_fullname and key_fullname. Replace
6136 any macro_source_file->filename access by macro_source_fullname call.
6137 (macro_lookup_definition): New variables retval and source_fullname.
6138 Replace any macro_source_file->filename access by macro_source_fullname
6139 call.
6140 (foreach_macro): New variable key_fullname. Replace any
6141 macro_source_file->filename access by macro_source_fullname call.
6142 (foreach_macro_in_scope): New variable datum_fullname. Replace any
6143 macro_source_file->filename access by macro_source_fullname call.
6144 (new_macro_table): Add parameter comp_dir. Initialize T with it.
6145 (macro_source_fullname): New function.
6146 * macrotab.h (struct macro_source_file): Extent the filename field
6147 comment.
6148 (new_macro_table): New parameter comp_dir, add a comment for it.
6149 (macro_source_fullname): new declaration.
6150
6151 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6152
6153 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
6154 this_real_name to outer block. Use it also for
6155 compare_filenames_for_search.
6156 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
6157 with dw2_get_real_path for file_matcher, considering also
6158 BASENAMES_MAY_DIFFER.
6159 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
6160
6161 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6162
6163 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
6164 to the file_matcher parameter. Pass 0 to it.
6165 (dwarf2_create_include_psymtab): Copy also DIRNAME.
6166 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
6167 NULL psymtab_to_fullname result.
6168 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
6169 an expected filename instead.
6170 (expand_symtabs_matching_via_partial): Add basenames parameter to the
6171 file_matcher parameter. Call also psymtab_to_fullname, after newly
6172 considering BASENAMES_MAY_DIFFER.
6173 * source.c (rewrite_source_path): Remove static.
6174 * source.h (rewrite_source_path): New declaration.
6175 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
6176 the expand_symtabs_matching field. Comment it.
6177 * symtab.c (file_matches): New function comment. Add parameter
6178 basenames, implement it.
6179 (search_symbols_file_matches): Add basenames parameter. Update the
6180 file_matches caller.
6181 (search_symbols): Match FILES also against symtab_to_fullname.
6182 Optimize it for BASENAMES_MAY_DIFFER.
6183
6184 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6185
6186 * source.c (print_source_lines_base): Print for TUI also "fullname".
6187 * tui/tui-data.c (init_content_element): Change tui_locator_element
6188 field to full_name.
6189 * tui/tui-data.h (struct tui_locator_element): Likewise.
6190 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
6191 tui_update_locator_filename calls to tui_update_locator_fullname.
6192 Replace symtab->filename refererence by symtab_to_fullname call.
6193 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
6194 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
6195 field to full_name. Replace symtab->filename refererence by
6196 symtab_to_fullname call.
6197 (tui_show_symtab_source): Rename parameter to fullname. Change
6198 tui_locator_element field to full_name.
6199 * tui/tui-stack.c: Include source.h.
6200 (tui_set_locator_filename): Rename the declaration to ...
6201 (tui_set_locator_fullname): ... here. Rename its parameter to
6202 fullname, updates its comment.
6203 (tui_set_locator_info): Rename its parameter to fullname.
6204 (tui_set_locator_filename): Rename the definition to ...
6205 (tui_set_locator_fullname): ... here. Rename its parameter to
6206 fullname, updates its comment. Change tui_locator_element field to
6207 full_name.
6208 (tui_set_locator_info): Rename its parameter to fullname.
6209 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
6210 (tui_update_locator_filename): Rename to ...
6211 (tui_update_locator_fullname): ... here. Rename callee to
6212 tui_set_locator_fullname.
6213 (tui_show_frame_info): Replace symtab->filename refererence by
6214 symtab_to_fullname call.
6215 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
6216 (tui_update_locator_fullname): ... here.
6217 * tui/tui-winsource.c (tui_display_main): Rename the callee to
6218 tui_update_locator_fullname. Replace symtab->filename refererence by
6219 symtab_to_fullname call.
6220 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
6221 Rename the callee to tui_update_locator_fullname.
6222 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
6223
6224 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6225
6226 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
6227 by symtab_to_filename_for_display calls.
6228 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
6229 (clear_command): New variable sal_fullname, initialize it. Replace
6230 compare_filenames_for_search by filename_cmp with sal_fullname.
6231 (say_where, update_static_tracepoint): Replace symtab->filename
6232 refererences by symtab_to_filename_for_display calls.
6233 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
6234 Likewise.
6235 * dwarf2read.c: Include source.h.
6236 (fixup_go_packaging): Replace symtab->filename refererences by
6237 symtab_to_filename_for_display calls.
6238 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
6239 Replace symtab->filename refererences by symtab_to_filename_for_display
6240 calls.
6241 (create_sals_line_offset, convert_linespec_to_sals): New variable
6242 fullname, initialize it, replace symtab->filename reference by the
6243 variable.
6244 * linux-fork.c: Include source.h.
6245 (info_checkpoints_command): Replace symtab->filename refererences by
6246 symtab_to_filename_for_display calls.
6247 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
6248 by symtab_to_filename_for_display calls.
6249 * mdebugread.c: Include source.h.
6250 (psymtab_to_symtab_1): Replace symtab->filename refererences by
6251 symtab_to_filename_for_display calls.
6252 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
6253 (mi_cmd_file_list_exec_source_files): Likewise.
6254 * printcmd.c: Include source.h.
6255 (build_address_symbolic): Replace symtab->filename refererences by
6256 symtab_to_filename_for_display calls.
6257 * psymtab.c (partial_map_symtabs_matching_filename)
6258 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
6259 with psymtab_to_fullname.
6260 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
6261 by symtab_to_filename_for_display calls.
6262 (stpy_get_filename): New variable filename, initialize it, use instead
6263 of symtab->filename refererences.
6264 (salpy_str): Make variable filename const char *. Replace
6265 symtab->filename refererences by symtab_to_filename_for_display calls.
6266 * skip.c: Include source.h and filenames.h.
6267 (skip_file_command): Remove const from the symtab variable. Replace
6268 symtab->filename refererences by symtab_to_fullname call.
6269 (function_name_is_marked_for_skip): New variables searched_for_fullname
6270 and fullname. Use them to search also with symtab's fullname.
6271 * source.c (find_source_lines): Replace symtab->filename refererences
6272 by symtab_to_filename_for_display calls.
6273 (print_source_lines_base): New variable filename, use it instead of
6274 symtab->filename. Replace symtab->filename refererences by
6275 symtab_to_filename_for_display calls.
6276 (line_info, forward_search_command): Replace symtab->filename
6277 refererences by symtab_to_filename_for_display calls.
6278 (reverse_search_command): Replace symtab->filename refererences by
6279 symtab_to_filename_for_display calls. New variable filename for it.
6280 * stack.c (frame_info): Likewise.
6281 * symmisc.c: Include source.h.
6282 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
6283 (maintenance_info_symtabs): Replace symtab->filename refererences by
6284 symtab_to_filename_for_display calls.
6285 * symtab.c (iterate_over_some_symtabs): Call
6286 compare_filenames_for_search also with symtab_to_fullname.
6287 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
6288 symtab->filename refererences by symtab_to_filename_for_display calls.
6289 (find_line_symtab): Replace symtab->filename refererences by
6290 symtab_to_filename_for_display calls.
6291 (file_matches): Replace filename_cmp by compare_filenames_for_search.
6292 (print_symbol_info): Make the last parameter const char *. New
6293 variable s_filename. Use it in the function.
6294 (symtab_symbol_info): Make the last_filename variable const char *.
6295 Replace symtab->filename refererences by symtab_to_filename_for_display
6296 calls.
6297 (rbreak_command): New variable fullname. Use it. Replace
6298 symtab->filename refererence by symtab_to_filename_for_display call.
6299 * tracepoint.c (set_traceframe_context, trace_find_line_command)
6300 (print_one_static_tracepoint_marker): Replace symtab->filename
6301 refererences by symtab_to_filename_for_display calls.
6302 * tui/tui-source.c (tui_set_source_content): New variables filename and
6303 s_filename. Replace symtab->filename refererences by this variable.
6304 Replace other symtab->filename refererences by
6305 symtab_to_filename_for_display calls.
6306
6307 2013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
6308 Jan Kratochvil <jan.kratochvil@redhat.com>
6309
6310 Add a new variable that controls a way in which filenames are
6311 displayed.
6312 * NEWS (set filename-display): New entry.
6313 * source.c (filename_display_basename, filename_display_relative)
6314 (filename_display_absolute, filename_display_kind_names)
6315 (filename_display_string, show_filename_display_string)
6316 (symtab_to_filename_for_display): New.
6317 (_initialize_source): Added initialization of 'filename-display'
6318 variable.
6319 * source.h (symtab_to_filename_for_display): Added declaration.
6320 * stack.c (print_frame): Added new variable and calling of a new
6321 function and condition with this variable. Changed third argument of
6322 calling of a function.
6323
6324 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6325
6326 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
6327 Rename field reference filename to fullname.
6328 * tui/tui-data.h (struct tui_source_info): Rename field filename to
6329 fullname. New comment for it.
6330 * tui/tui-source.c (tui_set_source_content): Rename field reference
6331 filename to fullname. Initialize field by symtab_to_fullname now.
6332 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
6333 reference filename to fullname. Use symtab_to_fullname during
6334 comparison.
6335
6336 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6337
6338 Code cleanup.
6339 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
6340 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
6341 filename to fullname. Rename variable this_name to this_fullname.
6342 Lowercase FILENAME_CMP call.
6343 (dw2_find_symbol_file): New comment for the returned string.
6344 (dwarf2_gdb_index_functions): Rename the function to
6345 dw2_expand_symtabs_with_fullname.
6346 * psymtab.c (read_psymtabs_with_filename): Rename to ...
6347 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
6348 fullname.
6349 (psym_functions): Rename the function to read_psymtabs_with_fullname.
6350 * symfile.h (struct quick_symbol_functions): Rename field
6351 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
6352 parameter filename to fullname. Document returned string meaning for
6353 find_symbol_file.
6354 * symtab.c (find_line_symtab): Rename the called function to
6355 expand_symtabs_with_fullname.
6356
6357 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6358
6359 Code cleanup.
6360 * breakpoint.c (clear_command): Remove variable is_abs, unify the
6361 call of filename_cmp with compare_filenames_for_search.
6362 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
6363 is_abs, unify the call of FILENAME_CMP with
6364 compare_filenames_for_search. New gdb_asserts for real_path and name.
6365 Unify the call of compare_filenames_for_search with FILENAME_CMP.
6366 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
6367 * symfile.h (struct quick_symbol_functions): Extend the comment for
6368 map_symtabs_matching_filename.
6369 * symtab.c (compare_filenames_for_search): Remove the function comment
6370 relative path requirement. Handle absolute filenames, with a comment.
6371 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
6372 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
6373 real_path and name. Unify the call of compare_filenames_for_search
6374 with FILENAME_CMP.
6375 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
6376
6377 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6378
6379 Code cleanup.
6380 * breakpoint.c (print_breakpoint_location): Replace bp_location field
6381 source_file references by symtab field references. Remove variables
6382 sal and fullname.
6383 (momentary_breakpoint_from_master, add_location_to_breakpoint):
6384 (clear_command, say_where): Replace bp_location field source_file
6385 references by symtab field references.
6386 (bp_location_dtor): Remove the source_file reference.
6387 (update_static_tracepoint): Replace bp_location field source_file
6388 references by symtab field references.
6389 (breakpoint_free_objfile): New function.
6390 * breakpoint.h (struct bp_location): Extend the comment for line_number.
6391 Replace the field source_file by field symtab, extend its comment.
6392 (breakpoint_free_objfile): New declaration.
6393 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
6394 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
6395 field source_file references by symtab field references.
6396
6397 2013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6398
6399 Replace xfullpath calls by gdb_realpath calls.
6400 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
6401 function comment.
6402 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
6403 Remove it from the iterate_over_some_symtabs call.
6404 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
6405 Remove it from the dw2_map_expand_apply calls, remove a block handling
6406 it.
6407 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
6408 Remove it from the iterate_over_some_symtabs call.
6409 (partial_map_symtabs_matching_filename): Remove parameter full_path.
6410 Remove it from the partial_map_expand_apply calls, remove a block
6411 handling it. Drop gdb_realpath call and cleanups from the real_path
6412 handling.
6413 * source.c (openp): Drop the comment part about xfullpath. Replace
6414 xfullpath calls by gdb_realpath calls.
6415 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
6416 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
6417 from method map_symtabs_matching_filename and its comment.
6418 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
6419 gdb_realpath call.
6420 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
6421 remove it also from the function comment, remove a block handling it.
6422 Drop gdb_realpath call and cleanups from the real_path handling.
6423 (iterate_over_symtabs): Drop variable full_path and its use.
6424 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
6425 * utils.c (xfullpath): Remove.
6426 * utils.h (xfullpath): Remove.
6427
6428 2013-02-01 Andreas Tobler <andreast@fgznet.ch>
6429
6430 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
6431 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
6432 (ALLDEPFILES): Add ppc64-tdep.c.
6433 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
6434 ppc64-tdep.o to gdb_target_obs.
6435 * ppc64-tdep.h: New file.
6436 * ppc64-tdep.c: New file.
6437 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
6438 ppc-linux-tdep.c to here.
6439 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
6440 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
6441 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
6442 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
6443 from ppc-linux-tdep.c to here.
6444 (ppc64_convert_from_func_ptr_addr): Rename from
6445 ppc64_linux_convert_from_func_ptr_addr to
6446 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
6447 here.
6448 * rs6000-tdep.c:
6449 (read_insn): Move from ppc-linux-tdep.c to here.
6450 (insns_match_pattern, insn_d_field, insn_ds_field): Move
6451 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
6452 * ppc-linux-tdep.c: Include ppc64-tdep.h.
6453 Removed above functions.
6454 (ppc_linux_init_abi): Adjust.
6455
6456 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
6457
6458 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
6459
6460 2013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
6461
6462 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
6463
6464 2013-02-01 Pedro Alves <palves@redhat.com>
6465
6466 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
6467 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
6468
6469 2013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6470
6471 * elfread.c (elf_symfile_read): Limit separate debug info additions to
6472 files with no separate debug info.
6473 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
6474 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
6475 only for files with no separate debug info.
6476
6477 2013-01-31 Tom Tromey <tromey@redhat.com>
6478
6479 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
6480 change type.
6481 (struct jit_program_space_data): Rename from jit_inferior_data.
6482 Update comments.
6483 (get_jit_program_space_data): Rename from get_jit_inferior_data.
6484 Change return type. Attach data to program space.
6485 (jit_program_space_data_cleanup): Rename from
6486 jit_inferior_data_cleanup; change argument type.
6487 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
6488 change type.
6489 (jit_register_code): Update.
6490 (jit_update_inferior_cache): Remove.
6491 (jit_breakpoint_deleted): Get jit data from the location's program
6492 space.
6493 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
6494 'ps_data', change type.
6495 (jit_inferior_init, jit_breakpoint_re_set_internal)
6496 (jit_event_handler): Update.
6497 (free_objfile_data): Get data from objfile's program space.
6498 (_initialize_jit): Update.
6499
6500 2013-01-31 Tom Tromey <tromey@redhat.com>
6501
6502 PR gdb/13987:
6503 * jit.c (struct jit_inferior_data) <cached_code_address,
6504 jit_breakpoint>: New fields.
6505 (jit_breakpoint_re_set_internal): Fix logging. Only create
6506 breakpoint if cached address has changed.
6507 (jit_update_inferior_cache, jit_breakpoint_deleted): New
6508 functions.
6509 (_initialize_jit): Register breakpoint deleted observer.
6510
6511 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6512
6513 * infrun.c (handle_syscall_event): Remove unused gdbarch.
6514 (save_infcall_suspend_state): Ifdef out unused inf.
6515 (restore_infcall_suspend_state): Ifdef out unused inf.
6516 * jit.c (jit_register_code): Remove unused i, b, inf_data.
6517 (jit_frame_sniffer): Remove unused inf_data.
6518
6519 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6520
6521 * c-exp.y (classify_inner_name): Remove unused type.
6522 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
6523 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
6524 need_escape.
6525 (c_get_string): Remove unused kind.
6526 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
6527
6528 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6529
6530 * charset.c (intermediate_encoding): Remove unused i.
6531 * completer.c (signal_completer): Remove unused i.
6532 * continuations.c (discard_my_continuations_1): Remove unused
6533 continuation_ptr.
6534 * corelow.c (core_close): Remove unuseD name.
6535 (get_core_siginfo): Remove unused pid.
6536 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
6537 i, cps.
6538 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
6539 (loclist_describe_location): Remove unused first.
6540 * event-top.c (command_line_handler): Remove unused got_eof.
6541 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
6542 (resize_section_table): Remove unused old_value.
6543 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
6544 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
6545 * i386-tdep.c (i386_process_record): Remove unused rex.
6546 * infcmd.c (get_return_value): Remove unused uiout.
6547 * jv-lang.c (type_from_class): Remove unused is_array.
6548 * jv-valprint.c (java_val_print): Remove unused i.
6549 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
6550 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
6551 * m2-typeprint.c (m2_print_type): Remove unused code.
6552 * macroexp.c (get_character_constant): Remove unused body_start.
6553 (macro_stringify): Remove unused result.
6554 * objc-lang.c (find_methods): Remove unused gdbarch.
6555 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
6556 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
6557 * stack.c (print_frame_args): Remove unused summary.
6558 * thread.c (thread_apply_command): Remove unused p.
6559 * valarith.c (value_x_unop): Remove unused mangle_ptr.
6560 * valops.c (search_struct_method): Remove unused skip.
6561 * valprint.c (generic_val_print): Remove unused byte_order.
6562 * varobj.c (varobj_update): Remove unused changed.
6563 * cli/cli-cmds.c (complete_command): Remove unused next_item.
6564 (alias_command): Remove unused c.
6565 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
6566 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
6567 format.
6568 (mi_cmd_data_write_memory): Remove unused word_format.
6569 (mi_cmd_data_write_memory_bytes): Remove unused r.
6570 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
6571 p_start, p_end.
6572 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
6573 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
6574 line_width.
6575
6576 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6577
6578 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
6579 * symtab.c (iterate_over_symtabs): Remove unused s.
6580 (find_pc_sect_symtab): Remove unused pspAce.
6581 (find_pc_sect_line): Remove unused alt_symtab.
6582 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
6583 (completion_list_add_name): Remove unused newsize.
6584
6585 2013-01-31 Tom Tromey <tromey@redhat.com>
6586
6587 PR c++/14998:
6588 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
6589 TYPE_CODE_FUNC.
6590
6591 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6592
6593 * target.c (target_read_string): Remove unused origlen.
6594
6595 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6596
6597 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
6598 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
6599 * ax-general.c (ax_print): Remove unused is_float.
6600 * blockframe.c (block_innermost_frame): Remove unused start, end.
6601 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
6602
6603 2013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
6604
6605 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
6606 (svr4_read_so_list): Remove unused lmo.
6607 * solib-target.c (solib_target_relocate_section_addresses): Remove
6608 unused flags.
6609
6610 2013-01-30 Tom Tromey <tromey@redhat.com>
6611
6612 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
6613
6614 2013-01-30 Tom Tromey <tromey@redhat.com>
6615
6616 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
6617 * utils.c (gnu_debuglink_crc32): Remove.
6618 * utils.h (gnu_debuglink_crc32): Don't declare.
6619
6620 2013-01-30 Tom Tromey <tromey@redhat.com>
6621
6622 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
6623 (read_structure_type, read_enumeration_type): Remove cast.
6624
6625 2013-01-30 Tom Tromey <tromey@redhat.com>
6626
6627 * dwarf2read.c (read_namespace_type): Remove cast.
6628 (read_typedef): Likewise.
6629
6630 2013-01-29 Tom Tromey <tromey@redhat.com>
6631
6632 * dwarf2read.c (free_dwo_file): Remove assert.
6633
6634 2013-01-29 Tom Tromey <tromey@redhat.com>
6635
6636 * value.c (deprecated_set_value_modifiable): Remove.
6637 * value.h (deprecated_set_value_modifiable): Remove.
6638
6639 2013-01-28 Doug Evans <dje@google.com>
6640
6641 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
6642 to addresses from dwo files.
6643
6644 2013-01-25 Siva Chandra Reddy <sivachandra@google.com>
6645
6646 * valops.c (find_overload_match): Remove unused argument 'lax'.
6647 * value.h: Remove unused argument 'lax' from the declaration of
6648 find_overload_match.
6649 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
6650 to find_overload_match.
6651 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
6652 argument to find_overload_match.
6653
6654 2013-01-25 Tom Tromey <tromey@redhat.com>
6655
6656 * dwarf2read.c (processing_has_namespace_info): Remove.
6657 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
6658 (process_die, read_func_scope, dwarf2_start_symtab)
6659 (new_symbol_full): Update.
6660
6661 2013-01-25 Tom Tromey <tromey@redhat.com>
6662
6663 * cp-namespace.c (cp_set_block_scope): Remove.
6664 * cp-support.h (cp_set_block_scope): Remove.
6665 * dbxread.c: Include block.h.
6666 (cp_set_block_scope): New function.
6667 (process_one_symbol): Update.
6668 * dwarf2read.c (read_func_scope): Use block_set_scope.
6669
6670 2013-01-25 Pedro Alves <palves@redhat.com>
6671
6672 * remote.c (add_current_inferior_and_thread): Tweak comment.
6673
6674 2013-01-25 Tom Tromey <tromey@redhat.com>
6675
6676 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
6677 (cp_add_using_directive): Add 'copy_names' argument.
6678 * cp-support.h (cp_add_using_directive): Update.
6679 (struct using_direct) <import_src, import_dest, alias,
6680 declaration>: Now const.
6681 * dwarf2read.c (read_import_statement): Use obconcat.
6682 Don't copy names passed to cp_add_using_directive.
6683
6684 2013-01-25 Tom Tromey <tromey@redhat.com>
6685
6686 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
6687
6688 2013-01-25 Pedro Alves <palves@redhat.com>
6689
6690 * remote.c (stop_reply_extract_thread): New.
6691 (add_current_inferior_and_thread): New parameter 'wait_status'.
6692 Handle it.
6693 (remote_start_remote): Pass wait status to
6694 add_current_inferior_and_thread.
6695 (extended_remote_run): Update comment.
6696 (extended_remote_create_inferior_1): Pass wait status to
6697 add_current_inferior_and_thread.
6698
6699 2013-01-25 Andrew Burgess <aburgess@broadcom.com>
6700 Ulrich Weigand <uweigand@de.ibm.com>
6701
6702 * valarith.c (value_vector_widen): New function for replicating a
6703 scalar into a vector.
6704 (value_binop): Use value_vector_widen to widen scalar to vector
6705 rather than casting, this better matches gcc C behaviour.
6706 * valops.c (value_casst): Update logic for casting between vector
6707 types, and for casting from scalar to vector, try to match gcc C
6708 behaviour.
6709 * value.h (value_vector_widen): Declare.
6710 * opencl-lang.c (opencl_value_cast): New opencl specific casting
6711 function, handle special case for casting scalar to vector.
6712 (opencl_relop): Use opencl_value_cast.
6713 (evaluate_subexp_opencl): Use opencl_value_cast instead of
6714 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
6715 in order to use opencl_value_cast.
6716
6717 2013-01-25 Yao Qi <yao@codesourcery.com>
6718
6719 * event-loop.c: Include "queue.h".
6720 (gdb_event_p): New typedef.
6721 (DECLARE_QUEUE_P): Use.
6722 (DEFINE_QUEUE_P): Use.
6723 (async_queue_event): Remove.
6724 (gdb_event_xfree): New.
6725 (initialize_event_loop): New.
6726 (process_event): Use QUEUE macros.
6727 (event_queue): Remove.
6728 (gdb_wait_for_event): Caller update.
6729 (check_async_event_handlers): Likewise.
6730 (poll_timers): Likewise.
6731 * event-loop.h (initialize_event_loop): Declare.
6732 * event-loop.c (gdb_event_xfree): New.
6733 * top.c (gdb_init): Call initialize_event_loop.
6734
6735 2013-01-25 Yao Qi <yao@codesourcery.com>
6736
6737 * event-loop.c (async_queue_event): Remove one parameter
6738 'position'. Remove code handling 'position' == TAIL.
6739 (gdb_wait_for_event): Caller update.
6740 (check_async_event_handlers): Caller update.
6741 (poll_timers): Caller update.
6742 * event-loop.h (enum queue_position): Remove.
6743
6744 2013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
6745
6746 * MAINTAINERS: Update my email.
6747
6748 2013-01-25 Yao Qi <yao@codesourcery.com>
6749
6750 * main.c (print_gdb_help): Remove "--epoch" from the help
6751 message.
6752
6753 2013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
6754
6755 * symtab.c (skip_prologue_using_sal): Consider a file
6756 change the same as an increased line number
6757
6758 2013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
6759
6760 * MAINTAINERS (Write After Approval): Add myself to the list.
6761
6762 2013-01-24 Tom Tromey <tromey@redhat.com>
6763
6764 * ada-lang.h (ada_decode_symbol): Make return type const.
6765 * ada-lang.c (ada_decode_symbol): Likewise.
6766
6767 2013-01-23 Doug Evans <dje@google.com>
6768
6769 * linespec.c (find_linespec_symbols): Make static.
6770
6771 2013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
6772
6773 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
6774 type on float conversion for complex type.
6775
6776 2013-01-23 Siva Chandra Reddy <sivachandra@google.com>
6777
6778 Add a new class gdb.Architecture which exposes GDB's
6779 internal representation of architecture via GDB Python API.
6780 * Makefile.in: Add entries corresponding to the new file
6781 python/py-arch.c.
6782 * NEWS (Python Scripting): Add entries for the new class
6783 gdb.Architecture and the new method gdb.Frame.architecture.
6784 * python/py-arch.c: Implement gdb.Architecture class.
6785 * python/py-frame.c (frapy_arch): Implement the method
6786 gdb.Frame.architecture().
6787 (frame_object_methods): Add 'architecture' to the method table.
6788 * python/python-internal.h: Add declarations of new utility
6789 functions.
6790 * python/python.c (_initialize_python): Initialize
6791 gdb.Architecture class.
6792
6793 2013-01-23 Doug Evans <dje@google.com>
6794
6795 Work around binutils/15021.
6796 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
6797 type_unit_group out of union s. All uses updated.
6798 (read_index_from_section): Watch for index version 8.
6799 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
6800 an imported symtab.
6801 (write_psymtabs_to_index): Increment version number to 8.
6802
6803 2013-01-22 Pedro Alves <palves@redhat.com>
6804
6805 * annotate.c (breakpoint_changed): Skip if breakpoint is not
6806 user-visible.
6807
6808 2013-01-22 Pedro Alves <palves@redhat.com>
6809
6810 * annotate.c (annotate_breakpoints_changed): Rename to ...
6811 (annotate_breakpoints_invalid): ... this. Make static.
6812 (breakpoint_changed): Adjust.
6813 (_initialize_annotate): Always install the observers. Install a
6814 "breakpoint_created" observer.
6815 * annotate.h (annotate_breakpoints_changed): Delete declaration.
6816 * breakpoint.c (set_breakpoint_condition)
6817 (breakpoint_set_commands, do_map_commands_command)
6818 (init_raw_breakpoint, clear_command, set_ignore_count)
6819 (enable_breakpoint_disp): No longer call
6820 annotate_breakpoints_changed.
6821
6822 2013-01-22 Pedro Alves <palves@redhat.com>
6823
6824 * annotate.c: Include "inferior.h".
6825 (frames_invalid_emitted)
6826 (breakpoints_invalid_emitted): New globals.
6827 (async_background_execution_p): New function.
6828 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
6829 emitting the annotation if it has already been emitted.
6830 (annotate_display_prompt): New function.
6831 * annotate.h (annotate_display_prompt): New declaration.
6832 * event-top.c: Include annotate.h.
6833 (display_gdb_prompt): Call annotate_display_prompt.
6834
6835 2013-01-22 Pedro Alves <palves@redhat.com>
6836
6837 * annotate.c (ignore_count_changed): Delete.
6838 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
6839 (annotate_ignore_count_change): Delete.
6840 (annotate_stopped): Don't emit a delayed breakpoints-changed
6841 annotation.
6842 * annotate.h (annotate_ignore_count_change): Delete.
6843 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
6844 annotate_ignore_count_change.
6845
6846 2013-01-22 Tom Tromey <tromey@redhat.com>
6847
6848 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
6849 require_rvalue for a register location.
6850
6851 2013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
6852
6853 * breakpoint.c (print_one_breakpoint_location): Add MI
6854 field 'thread-groups' when printing a breakpoint.
6855 (output_thread_groups): New function.
6856
6857 2013-01-21 Siva Chandra Reddy <sivachandra@google.com>
6858
6859 * python/lib/gdb/commands/explore.py
6860 (CompoundExplorer.explore_expr): Correct the name of a method
6861 being invoked.
6862 (ExploreTypeCommand.invoke): Add a missing 'return'.
6863
6864 2013-01-21 Tom Tromey <tromey@redhat.com>
6865
6866 * gdb_obstack.h (obconcat): Move declaration here, from...
6867 * symfile.h (obconcat): ... here.
6868 * gdb_obstack.c: New file.
6869 (obconcat): Move from...
6870 * symfile.c (obconcat): ... here.
6871 * Makefile.in (SFILES): Add gdb_obstack.c.
6872 (COMMON_OBS): Add gdb_obstack.o.
6873
6874 2013-01-21 Tom Tromey <tromey@redhat.com>
6875
6876 * symfile.h (obsavestring): Don't declare.
6877 * symfile.c (obsavestring): Remove.
6878 * ada-exp.y: Use obstack_copy0, not obsavestring.
6879 * ada-lang.c: Use obstack_copy0, not obsavestring.
6880 * coffread.c: Use obstack_copy0, not obsavestring.
6881 * cp-namespace.c: Use obstack_copy0, not obsavestring.
6882 * dbxread.c: Use obstack_copy0, not obsavestring.
6883 * dwarf2read.c: Use obstack_copy0, not obsavestring.
6884 * jit.c: Use obstack_copy0, not obsavestring.
6885 * mdebugread.c: Use obstack_copy0, not obsavestring.
6886 * psymtab.c: Use obstack_copy0, not obsavestring.
6887 * stabsread.c: Use obstack_copy0, not obsavestring.
6888 * xcoffread.c: Use obstack_copy0, not obsavestring.
6889
6890 2013-01-21 Tom Tromey <tromey@redhat.com>
6891
6892 * dwarf2read.c (fixup_go_packaging): Save package name
6893 on objfile obstack.
6894 * gdbtypes.c (init_type): Don't copy name.
6895
6896 2013-01-21 Tom Tromey <tromey@redhat.com>
6897
6898 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
6899 const.
6900 (struct attribute) <u.str>: Now const.
6901 (struct fnfieldlist) <name>: Now const.
6902 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
6903 (partial_die_parent_scope): Make return type const.
6904 (partial_die_full_name, add_partial_symbol): Update.
6905 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
6906 'name' const.
6907 (find_file_and_directory): Make 'name' and 'comp_dir' const.
6908 (read_file_scope, read_func_scope, dwarf2_add_field)
6909 (dwarf2_add_member_fn, read_structure_type)
6910 (process_enumeration_scope, read_array_type, read_module_type)
6911 (read_base_type, read_subrange_type): Update.
6912 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
6913 (new_symbol_full, guess_full_die_structure_name): Update.
6914 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
6915 (dwarf2_name): Return const type.
6916 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
6917 const.
6918
6919 2013-01-21 Tom Tromey <tromey@redhat.com>
6920
6921 * gdbtypes.c (init_type): Make 'name' const.
6922 * gdbtypes.h (init_type): Update.
6923
6924 2013-01-21 Tom Tromey <tromey@redhat.com>
6925
6926 * buildsym.c (patch_subfile_names): Use set_last_source_file.
6927 (start_symtab): Make 'name' and 'dirname' const. Use
6928 set_last_source_file.
6929 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
6930 (last_source_file): Define. Now static.
6931 (set_last_source_file, get_last_source_file): New functions.
6932 * buildsym.h (last_source_file): Don't declare.
6933 (start_symtab): Update.
6934 (set_last_source_file, get_last_source_file): Declare.
6935 * coffread.c (complete_symtab): Use set_last_source_file.
6936 (coff_end_symtab): Likewise.
6937 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
6938 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
6939 set_last_source_file.
6940 (process_one_symbol): Use get_last_source_file.
6941 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
6942 (psymtab_to_symtab_1): Use get_last_source_file.
6943 * xcoffread.c (process_linenos): Use get_last_source_file.
6944 (complete_symtab): Use set_last_source_file.
6945 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
6946 (scan_xcoff_symtab): Use set_last_source_file.
6947
6948 2013-01-21 Tom Tromey <tromey@redhat.com>
6949
6950 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
6951 (symbol_set_names): Remove casts. Handle field const-ness.
6952
6953 2013-01-21 Tom Tromey <tromey@redhat.com>
6954
6955 * dwarf2read.c (new_symbol_full): Remove cast.
6956 * symtab.c (symbol_set_demangled_name): Make 'name' const.
6957 * symtab.h (symbol_set_demangled_name): Update.
6958
6959 2013-01-21 Tom Tromey <tromey@redhat.com>
6960
6961 * main.c (captured_main): Call bfd_init.
6962
6963 2013-01-21 Tom Tromey <tromey@redhat.com>
6964
6965 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
6966 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
6967 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
6968 * NEWS: Update.
6969
6970 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6971
6972 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
6973
6974 2013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
6975
6976 Fix gdb.fortran/common-block.exp crash in PIE mode.
6977 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
6978 LOC_COMMON_BLOCK.
6979 * f-valprint.c (info_common_command_for_block): Expect
6980 LOC_COMMON_BLOCK in gdb_assert.
6981 * symtab.h (struct general_symbol_info): Update comment for the
6982 common_block member.
6983 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
6984 (enum address_class): New member LOC_COMMON_BLOCK.
6985
6986 2013-01-18 David Blaikie <dblaikie@gmail.com>
6987
6988 * MAINTAINERS (Write After Approval): Add "David Blaikie".
6989
6990 2013-01-18 Tom Tromey <tromey@redhat.com>
6991
6992 PR c++/14999:
6993 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
6994 Call require_rvalue.
6995
6996 2013-01-18 Yao Qi <yao@codesourcery.com>
6997
6998 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
6999 (dbx_read_symtab): New declaration.
7000 (dbx_psymtab_to_symtab): Delete.
7001 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
7002 Rename parameter PST to SELF. Exchanged two parameters.
7003 (start_psymtab): Caller update.
7004 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
7005 (dwarf2_read_symtab): New declaration.
7006 (dwarf2_psymtab_to_symtab): Delete.
7007 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
7008 Rename parameter PST to SELF. Exchanged two parameters.
7009 (create_partial_symtab): Caller update.
7010 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
7011 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
7012 Rename parameter PST to SELF. Exchanged two parameters.
7013 (parse_partial_symbols, new_psymtab): Caller update.
7014 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
7015 two parameters.
7016 * psymtab.c (psymtab_to_symtab): Caller update.
7017 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
7018 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
7019 Rename parameter PST to SELF. Exchanged two parameters.
7020 (xcoff_start_psymtab): Caller update.
7021
7022 2013-01-18 Yao Qi <yao@codesourcery.com>
7023
7024 * infrun.c (proceed): Rename local variable 'oneproc' to
7025 'force_step'.
7026
7027 2013-01-17 Doug Evans <dje@google.com>
7028
7029 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
7030 (dw2_build_type_unit_groups): Delete. All uses updated.
7031
7032 * symtab.h (struct symbol_search): Add comment.
7033
7034 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7035
7036 * symtab.c (compare_filenames_for_search): New comment for
7037 HAS_DRIVE_SPEC.
7038
7039 2013-01-17 Tom Tromey <tromey@redhat.com>
7040
7041 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
7042
7043 2013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7044
7045 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
7046 initialize it by existing make_cleanup. Call new do_cleanups.
7047
7048 2013-01-17 Tom Tromey <tromey@redhat.com>
7049
7050 * cp-abi.c (cp_abi_completer): New function.
7051 (_initialize_cp_abi): Set completer for "set cp-abi".
7052
7053 2013-01-17 Tom Tromey <tromey@redhat.com>
7054
7055 * mem-break.c: Remove obsolete comment.
7056 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
7057
7058 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
7059
7060 * jit.c (jit_reader_load_command): Interpret the jit reader name
7061 as an absolute path if it begins with a forward slash.
7062
7063 2012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
7064
7065 PR gdb/14550
7066
7067 * jit.c (finalize_symtab): Ensure that only the global block has a
7068 NULL superblock.
7069
7070 2013-01-17 Pedro Alves <palves@redhat.com>
7071
7072 * acinclude.m4: Include ../config/plugins.m4,
7073 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
7074 * Makefile.in (aclocal_m4_deps): Update.
7075 * aclocal.m4: Renegerate.
7076
7077 2013-01-16 Doug Evans <dje@google.com>
7078
7079 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
7080
7081 2013-01-16 Pedro Alves <palves@redhat.com>
7082 Tom Tromey <tromey@redhat.com>
7083
7084 PR cli/7221:
7085 * NEWS: Add "catch signal".
7086 * breakpoint.c (base_breakpoint_ops): No longer static.
7087 (bpstat_explains_signal): New function.
7088 (init_catchpoint): No longer static.
7089 (base_breakpoint_explains_signal): New function.
7090 (base_breakpoint_ops): Initialize new field.
7091 * breakpoint.h (enum bpstat_signal_value): New.
7092 (struct breakpoint_ops) <explains_signal>: New field.
7093 (bpstat_explains_signal): Remove macro, declare as function.
7094 (base_breakpoint_ops, init_catchpoint): Declare.
7095 * break-catch-sig.c: New file.
7096 * inferior.h (signal_catch_update): Declare.
7097 * infrun.c (signal_catch): New global.
7098 (handle_syscall_event): Update for change to
7099 bpstat_explains_signal.
7100 (handle_inferior_event): Likewise. Always handle random signals
7101 via bpstats.
7102 (signal_cache_update): Check signal_catch.
7103 (signal_catch_update): New function.
7104 (_initialize_infrun): Initialize signal_catch.
7105 * Makefile.in (SFILES): Add break-catch-sig.c.
7106 (COMMON_OBS): Add break-catch-sig.o.
7107
7108 2013-01-16 Tom Tromey <tromey@redhat.com>
7109
7110 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
7111 (print_one_catch_solib, print_one_catch_syscall)
7112 (print_one_catch_exec, print_one_exception_catchpoint): Emit
7113 "catch-type".
7114
7115 2013-01-16 Yao Qi <yao@codesourcery.com>
7116
7117 * printcmd.c (current_display_number): Make it static.
7118
7119 2013-01-16 Yao Qi <yao@codesourcery.com>
7120
7121 * infcmd.c (step_once): Don't check '!single_inst' as it was
7122 checked before.
7123
7124 2013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7125
7126 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
7127
7128 2013-01-14 Tom Tromey <tromey@redhat.com>
7129
7130 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
7131 set command.
7132 * command.h (add_setshow_string_noescape_cmd): Update.
7133 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
7134 (complete_set_gnutarget): New function.
7135 (_initialize_core): Set the "set gnutarget" completer.
7136
7137 2013-01-14 Tom Tromey <tromey@redhat.com>
7138
7139 PR symtab/14442:
7140 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
7141 (c_type_print_modifier): Likewise.
7142 * dwarf2read.c (read_tag_restrict_type): New function.
7143 (read_type_die_1): Handle DW_TAG_restrict_type.
7144 * gdbtypes.c (make_restrict_type): New function.
7145 (recursive_dump_type): Handle TYPE_RESTRICT.
7146 * gdbtypes.h (enum type_flag_values): Renumber.
7147 (enum type_instance_flag_value): Add
7148 TYPE_INSTANCE_FLAG_RESTRICT.
7149 (TYPE_RESTRICT): New macro.
7150 (make_restrict_type): Declare.
7151
7152 2013-01-14 Tom Tromey <tromey@redhat.com>
7153
7154 PR symtab/14931:
7155 * psymtab.c (struct psymtab_state): New.
7156 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
7157 functions.
7158 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
7159 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
7160
7161 2013-01-14 Richard Sharman <richard_sharman@mitel.com>
7162 Pedro Alves <palves@redhat.com>
7163
7164 PR remote/14786
7165
7166 * remote.c (remote_threads_info): Make a copy of the reply from
7167 qfThreadInfo and use that instead of rs->buf.
7168
7169 2013-01-14 Yao Qi <yao@codesourcery.com>
7170
7171 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
7172 (dbx_psymtab_to_symtab): Likewise.
7173 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
7174 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
7175 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
7176
7177 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7178
7179 * parse.c (parse_exp_in_context): New variable inner_chain. Call
7180 make_cleanup_restore_current_language. Call set_language. Move
7181 OLD_CHAIN and INNER_CHAIN cleanups.
7182 * utils.c (do_restore_current_language)
7183 (make_cleanup_restore_current_language): New functions.
7184 * utils.h (make_cleanup_restore_current_language): New declaration.
7185
7186 2013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7187
7188 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
7189 non-existing files.
7190
7191 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
7192 non-existing files if FILENAME is already absolute.
7193
7194 2013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7195
7196 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
7197 fputs_filtered. Append trailing newline.
7198
7199 2013-01-11 Yao Qi <yao@codesourcery.com>
7200 Stan Shebs <stan@codesourcery.com>
7201
7202 * psymtab.c (init_psymbol_list): Clarify the comment.
7203
7204 2013-01-11 Yao Qi <yao@codesourcery.com>
7205
7206 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
7207 (update_dprintf_command_list): Assert that 'printf_line' is
7208 non-null. Remove condition check.
7209
7210 2013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7211
7212 Code cleanup.
7213 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
7214 type const char *.
7215 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
7216 const char *.
7217 * tui/tui-source.h (tui_source_is_displayed): Likewise.
7218
7219 2013-01-09 Anthony Green <green@moxielogic.com>
7220
7221 * cp-abi.c (cplus_print_vtable): Don't return value from void
7222 function.
7223 * ada-lang.c (re_set_catch_assert): Ditto.
7224
7225 2013-01-09 Doug Evans <dje@google.com>
7226
7227 * symfile.h (quick_symbol_functions): Delete member
7228 pre_expand_symtabs_matching. All uses removed.
7229 * dwarf2read.c (dw2_lookup_symbol): Implement.
7230 (dw2_do_expand_symtabs_matching): Delete.
7231 (dw2_pre_expand_symtabs_matching): Delete.
7232 (struct dw2_symtab_iterator): New type.
7233 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
7234 (dw2_expand_symtabs_for_function): Rewrite.
7235 (dwarf2_gdb_index_functions): Update.
7236 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
7237 (psym_functions): Update.
7238
7239 2013-01-09 Tom Tromey <tromey@redhat.com>
7240
7241 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
7242 * configure: Rebuild.
7243 * configure.ac: Add somread.o to the build if BFD has SOM
7244 support.
7245 * somread.c: Include som/aout.h, not syms.h.
7246 (som_symtab_read): Use som_external_symbol_dictionary_record.
7247 Unpack records manually.
7248 (_initialize_somread): Declare.
7249
7250 2012-01-08 Mike Frysinger <vapier@gentoo.org>
7251
7252 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
7253 Cast return_address to 64bits.
7254
7255 2013-01-08 Hui Zhu <hui_zhu@mentor.com>
7256
7257 * printcmd.c: Remove define of function output_command.
7258 * tracepoint.c: Remove extern of function output_command.
7259 * valprint.h: (output_command): New extern.
7260
7261 2013-01-07 Tom Tromey <tromey@redhat.com>
7262
7263 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
7264 Remove.
7265 (objc_language_defn): Use c_printchar, c_printstr,
7266 c_emit_char.
7267
7268 2013-01-07 Tom Tromey <tromey@redhat.com>
7269
7270 PR cli/7719:
7271 * NEWS: Update.
7272 * ada-valprint.c (printstr, print_field_values): Remove
7273 "inspect_it" code.
7274 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
7275 code.
7276 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
7277 code.
7278 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
7279 * main.c (captured_main): Remove "epoch" argument.
7280 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
7281 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
7282 * p-valprint.c (pascal_object_print_value_fields): Remove
7283 "inspect_it" code.
7284 * printcmd.c (print_command_1): Remove 'inspect' argument.
7285 (print_command, call_command): Update.
7286 (inspect_command): Remove.
7287 (_initialize_printcmd): Make "inspect" an alias for "print".
7288 * top.c (epoch_interface): Remove.
7289 * top.h (epoch_interface): Remove.
7290 * valprint.c (user_print_options): Update.
7291 (print_converted_chars_to_obstack): Remove "inspect_it" code.
7292 * valprint.h (struct value_print_options) <inspect_it>: Remove
7293 field.
7294
7295 2013-01-04 Tom Tromey <tromey@redhat.com>
7296
7297 * valprint.h (read_string): Add 'extern'.
7298
7299 2013-01-07 Joel Brobecker <brobecker@adacore.com>
7300
7301 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
7302 used to decide whether to define darwin_read_dyld_info or not.
7303
7304 2013-01-03 Pierre Muller <muller@sourceware.org>
7305
7306 * main.c (relocate_gdb_directory): Avoid calling stat function
7307 if DIR is empty.
7308
7309 2013-01-03 Yao Qi <yao@codesourcery.com>
7310
7311 * psymtab.c (fixup_psymbol_section): Update declaration.
7312 (fixup_psymbol_section): Remove code returning value.
7313
7314 2013-01-03 Yao Qi <yao@codesourcery.com>
7315
7316 * symtab.h: Remove some out of date comments.
7317 (enum exception_event_kind): Move it ...
7318 * breakpoint.c: ... here.
7319
7320 2013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
7321
7322 PR gdb/14405
7323 * darwin-nat.c (darwin_read_dyld_info): Only build if
7324 TASK_DYLD_INFO_COUNT is defined.
7325 (darwin_xfer_partial): Call darwin_read_dyld_info only if
7326 TASK_DYLD_INFO_COUNT is defined.
7327
7328 2013-01-02 Tom Tromey <tromey@redhat.com>
7329
7330 * symfile.h (struct ecoff_debug_hack): Remove.
7331 * objfiles.c: Don't include mdebugread.h.
7332
7333 2013-01-02 Tom Tromey <tromey@redhat.com>
7334
7335 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
7336 * configure.ac: Check for Mach-O support in BFD. Update
7337 CONFIG_OBS.
7338 * configure: Rebuild.
7339
7340 2013-01-02 Tom Tromey <tromey@redhat.com>
7341
7342 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
7343 * configure.ac: Use GDB_AC_CHECK_BFD.
7344 * configure: Rebuild.
7345
7346 2013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
7347
7348 * MAINTAINERS: Update my email.
7349
7350 2013-01-01 Joel Brobecker <brobecker@adacore.com>
7351
7352 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
7353
7354 2013-01-01 Joel Brobecker <brobecker@adacore.com>
7355
7356 * rs6000-nat.c (bss_data_overlap): New function.
7357 (vmap_symtab): Use it to adjust the .bss section's offset.
7358
7359 2013-01-01 Joel Brobecker <brobecker@adacore.com>
7360
7361 Update year range in copyright notice of all files.
7362
7363 2013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
7364
7365 * top.c (print_gdb_version): Update copyright year.
7366
7367 For older changes see ChangeLog-2012.
7368 \f
7369 Local Variables:
7370 mode: change-log
7371 left-margin: 8
7372 fill-column: 74
7373 version-control: never
7374 coding: utf-8
7375 End:
This page took 0.171779 seconds and 5 git commands to generate.