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