GDB kills itself instead of interrupting inferior
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
6f64ef53
PA
12013-07-26 Cyril Nikolaev <cyril@nichtverstehen.de>
2
3 * inflow.c (terminal_init_inferior_with_pgrp): Save inferior
4 process group regardless of having tty on stdin.
5
6107e809
DE
62013-07-25 Doug Evans <dje@google.com>
7
8 * linux-fork.h (detach_fork): Delete.
9
7fdc1521
TT
102013-07-25 Tom Tromey <tromey@redhat.com>
11
12 PR remote/15256, PR remote/15266:
13 * bfd-target.c (target_bfd_reopen): Initialize to_magic.
14 * monitor.c (monitor_detach): Use unpush_target.
15 * remote-m32r-sdi.c (m32r_detach): Use unpush_target.
16 * remote-mips.c (mips_detach): Use unpush_target. Don't
17 call mips_close.
18 * remote-sim.c (gdbsim_detach): Use unpush_target.
19 * target.c (pop_target): Remove.
20 (pop_all_targets_above): Don't call target_close.
21 (target_close): Assert that the target is unpushed.
22 * target.h (pop_target): Don't declare.
23 * tracepoint.c (tfile_open): Use unpush_target.
24
c22a2b88
TT
252013-07-25 Tom Tromey <tromey@redhat.com>
26
27 * linux-thread-db.c (init_thread_db_ops): Call
28 complete_target_initialization.
29 (_initialize_thread_db): Don't call add_target.
30 * target.c (complete_target_initialization): New function.
31 (add_target_with_completer): Call it.
32 * target.h (complete_target_initialization): Declare.
33
cbb6aada
MK
342013-07-25 Mark Kettenis <kettenis@gnu.org>
35
36 * hppa-tdep.h (enum hppa_regnum): Add members for all space registers.
37 * hppaobsd-tdep.c (HPPAOBSD_SIZEOF_GREGS): Add comment.
38 (HPPANBSD_SIZEOF_GREGS): New define.
39 (hppaobsd_supply_gregset): Handle additional registers.
40 * hppabsd-nat.c (hppabsd_gregset_supplies_p): Adjust to indicate
41 we provide more registers now.
42 (hppabsd_supply_gregset): Supply additional registers.
43 (hppabsd_collect_gregset): Collect additional registers.
44
17767988
MK
452013-07-25 Mark Kettenis <kettenis@gnu.org>
46
47 * hppabsd-tdep.c: Include "dwarf2-frame.h".
48 (hppabsd_dwarf2_frame_init_reg): New function.
49 (hppabsd_init_abi): Hook in the DWARF CFI frame unwinder.
50
fdc8aae8
AB
512013-07-25 Andrew Burgess <aburgess@broadcom.com>
52
53 * mi/mi-main.c (output_register): Make MI 'r' format use standard
54 'z' format code. Remove error for optimized out values, standard
55 code will handle these fine.
56
6fbe845e
AB
572013-07-25 Andrew Burgess <aburgess@broadcom.com>
58
59 * NEWS: Mention new 'z' formatter.
60 * printcmd.c (print_scalar_formatted): Add new 'z' formatter.
61 (_initialize_printcmd): Mention 'z' formatter in help text of the
62 'x' command.
63
3373342d
MR
642013-07-24 Maciej W. Rozycki <macro@codesourcery.com>
65
66 * mips-tdep.c (micromips_deal_with_atomic_sequence): Correct
67 formatting.
68
25f9533e
SDJ
692013-07-24 Sergio Durigan Junior <sergiodj@redhat.com>
70
71 * breakpoint.c (create_longjmp_master_breakpoint): Check if probe
72 interface can evaluate arguments. Fallback to the old mode if it
73 cannot.
74 (create_exception_master_breakpoint): Likewise.
75 * elfread.c (elf_can_evaluate_probe_arguments): New function.
76 (struct sym_probe_fns elf_probe_fns): Export function above to the
77 probe interface.
78 * probe.c (can_evaluate_probe_arguments): New function.
79 * probe.h (struct probe_ops) <can_evaluate_probe_arguments>: New
80 function pointer.
81 (can_evaluate_probe_arguments): New function prototype.
82 * solib-svr4.c (svr4_create_solib_event_breakpoints): Check if
83 probe interface can evaluate arguments. Fallback to the old mode
84 if it cannot.
85 * stap-probe.c (stap_get_probe_argument_count): Check if probe
86 interface can evaluate arguments. Warning the user if it cannot.
87 (stap_can_evaluate_probe_arguments): New function.
88 (struct probe_ops stap_probe_ops): Export function above to the
89 probe interface.
90 * symfile.h (struct sym_probe_fns) <can_evaluate_probe_arguments>:
91 New function pointer.
92
3360c0bf
LM
932013-07-24 Luis Machado <lgustavo@codesourcery.com>
94
95 * Makefile.in (SFILES): Add common/target-common.c.
96 Add common/target-common.h to headers.
97 (COMMON_OBS): Add target-common.o.
98 (target-common.o): New target.
99 * linux-nat.h (resume_kind): Move to common/target-common.h.
100 * target.c (target_waitstatus_to_string): Move to
101 common/target-common.c.
102 * target.h: Include target-common.h.
103 (target_waitkind): Move to common/target-common.h.
104 (target_waitstatus): Likewise.
105 (TARGET_WNOHANG): Likewise.
106 * common/target-common.c: New file.
107 * common/target-common.h: New file.
108
6656a72d
DE
1092013-07-24 Doug Evans <dje@google.com>
110
111 * dwarf2read.c (lookup_dwo_cutu): Change missing DWO complaint to
112 a warning.
113
6df81a63
YQ
1142013-07-23 Yao Qi <yao@codesourcery.com>
115
116 * i386-tdep.c (i386_in_stack_tramp_p): Remove unused
117 parameter 'gdbarch'.
118 (i386_stack_tramp_frame_sniffer): Caller update.
119 * i386-linux-tdep.c (i386_linux_core_read_xcr0): Remove
120 parameter 'gdbarch' and 'target'.
121 (i386_linux_core_read_description): Caller update.
122 * amd64-linux-tdep.c (amd64_linux_core_read_description):
123 Likewise.
124 * i386-linux-tdep.h (i386_linux_core_read_xcr0): Update
125 declaration.
126
365156ad
TT
1272013-07-23 Tom Tromey <tromey@redhat.com>
128
129 * dwarf2read.c (init_cutu_and_read_dies): Revert patch from
130 2013-07-22.
131
046ac79f
JK
1322013-07-22 Doug Evans <dje@google.com>
133
134 * exec.h (remove_target_sections): Delete arg abfd.
66cbcda4
JK
135 * exec.c (exec_close): Update call to remove_target_sections.
136 (remove_target_sections): Delete arg abfd.
046ac79f
JK
137 * solib.c (update_solib_list): Ditto.
138 (reload_shared_libraries_1): Ditto.
139 (clear_solib): Ditto, and unconditionally call remove_target_sections.
66cbcda4
JK
140 * target.h (struct target_section): Rename key to owner.
141 All uses updated.
046ac79f 142
29b2cc46
TT
1432013-07-22 Tom Tromey <tromey@redhat.com>
144
145 * solib-som.c (som_open_symbol_file_object): Call do_cleanups.
146
d1160018
TT
1472013-07-22 Tom Tromey <tromey@redhat.com>
148
149 * dwarf2read.c (init_cutu_and_read_dies): Remove 'free_cu_cleanup'.
150 Simplify cleanup handling.
151
2f324bf6
TT
1522013-07-22 Tom Tromey <tromey@redhat.com>
153
154 * dwarf2read.c (dwarf_decode_line_header): Call do_cleanups
155 on all return paths.
156
e23b9d6e
UW
1572013-07-22 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
158
159 * ppc-linux-nat.c (PPC_DEBUG_FEATURE_DATA_BP_DAWR): New define.
160 (ppc_linux_region_ok_for_hw_watchpoint): Add checking to use the new
161 DAWR interface for longer ranges hardware watchpoint (up to 512 bytes).
162
1cf55f60
PM
1632013-07-22 Phil Muldoon <pmuldoon@redhat.com>
164
165 * top.c (print_gdb_version): Add help, apropos description and
166 url to online documentation.
167
fa876972
HZ
1682013-07-19 Hui Zhu <hui@codesourcery.com>
169
170 PR gdb/15692
171 * mi/mi-cmd-break.c (mi_argv_to_format): Handle double quotes.
172
1527aea8
YQ
1732013-07-19 Yao Qi <yao@codesourcery.com>
174
175 * target.c (update_current_target): Change the default action
176 of 'to_traceframe_info' from tcomplain to return_zero.
177 * target.h (struct target_ops) <to_traceframe_info>: Add more
178 comments.
179 * valops.c (read_value_memory): Call
180 traceframe_available_memory unconditionally.
181
886f230e
YQ
1822013-07-18 Yao Qi <yao@codesourcery.com>
183
184 * coffread.c (coff_symfile_read): Iterate over minimal symbols,
185 if the name is prefixed by "__imp_" or "_imp_", look for minimal
186 symbol without prefix. If found, set its type to
187 'mst_solib_trampoline'.
188
16419bae
DE
1892013-07-17 Doug Evans <dje@google.com>
190
e7045703
DE
191 * NEWS: Mention "set print raw frame-arguments".
192 * gdbcmd.h (setprintrawlist, showprintrawlist): Declare.
193 * stack.c (print_raw_frame_arguments): New static global.
194 (print_frame_arg): Set opts.raw from print_raw_frame_arguments.
195 (_initialize_stack): New command "set/show print raw frame-arguments".
196 * valprint.c (setprintrawlist, showprintrawlist): New globals.
197 (set_print_raw, show_print_raw): New functions.
198 (_initialize_valprint): New prefix command "set/show print raw".
199 * valprint.h (value_print_options): Improve comments.
200
453e48a5
DE
201 * cli/cli-cmds.c (init_cmd_lists): Delete unnecessary initialization
202 of all *list variables.
203
16419bae
DE
204 * gdbcmd.h (togglelist): Delete.
205 * cli/cli-cmds.c (togglelist): Delete.
206 (init_cmd_lists): Update.
207 * cli/cli-cmds.h (togglelist): Delete.
208
626f2d1c
TT
2092013-07-17 Tom Tromey <tromey@redhat.com>
210
211 * dwarf2read.c (dwarf2_per_objfile_free): Clear
212 dwarf2_per_objfile.
213
57e6060e
DE
2142013-07-16 Doug Evans <dje@google.com>
215
216 * nto-tdep.c (nto_relocate_section_addresses): Update,
217 target_section.bfd deleted.
218 * ppc64-tdep.c (ppc64_convert_from_func_ptr_addr): Ditto.
219 * s390-tdep.c (s390_load): Ditto.
220 * solib-aix.c (solib_aix_relocate_section_addresses): Ditto.
221
5ea5559b
AB
2222013-07-16 Andrew Burgess <aburgess@broadcom.com>
223
224 * common/format.c (parse_format_string): Add checks for NULL
225 character before calling strchr.
226
2b2848e2
DE
2272013-07-16 Doug Evans <dje@google.com>
228
2c571006
DE
229 * solist.h (target_so_ops.find_and_open_solib): Clarify usage of
230 temp_pathname argument.
231 * nto-tdep.c (nto_find_and_open_solib): Fix setting of temp_pathname
232 when opening the file fails.
233
2b2848e2
DE
234 * target.h (struct target_section): Delete member bfd.
235 All users updated to use the_bfd_section->owner instead.
236 * exec.c (add_to_section_table): Assert bfd is expected value.
237 Remove initialization of target_section.bfd.
238 (remove_target_sections): Update.
239 (section_table_available_memory): Update.
240 (section_table_xfer_memory_partial): Update.
241 (print_section_info): Update.
242 (exec_set_section_address): Update.
243 * record-full.c (record_full_core_xfer_partial): Update.
244 * solib-svr4.c (svr4_relocate_section_addresses): Update.
245 * solib-target.c (solib_target_relocate_section_addresses): Update.
246 * symfile.c (build_section_addr_info_from_section_table): Update.
247 * target.c (memory_xfer_live_readonly_partial): Update.
248 (memory_xfer_partial_1): Update.
249
926bf92d
UW
2502013-07-15 Edjunior Barbosa Machado <emachado@linux.vnet.ibm.com>
251
252 * ppc-linux-nat.c: Since the new PowerPC specific ptrace interface is
253 now available for embedded (BookE) and server (BookS) processors,
254 correct mentions of 'booke' and adjust comments accordingly in order to
255 avoid confusion. Rename struct 'booke_debug_info' to 'hwdebug_info'.
256 (have_ptrace_booke_interface): Rename function and variable
257 'have_ptrace_booke_interface' to 'have_ptrace_hwdebug_interface'.
258 Rename struct 'booke_debug_info' to 'hwdebug_info'. Update all uses.
259 (booke_cmp_hw_point): Rename function 'booke_cmp_hw_point' to
260 'hwdebug_point_cmp'. Update all uses.
261 (booke_find_thread_points_by_tid): Rename function
262 'booke_find_thread_points_by_tid' to
263 'hwdebug_find_thread_points_by_tid'. Update all uses.
264 (booke_insert_point): Rename function 'booke_insert_point' to
265 'hwdebug_insert_point'. Update all uses.
266 (booke_remove_point): Rename function 'booke_remove_point' to
267 'hwdebug_remove_point'. Update all uses.
268
d929bc19
MR
2692013-07-15 Maciej W. Rozycki <macro@codesourcery.com>
270
271 * mips-tdep.c (mips_gdbarch_init): Replace hardcoded magic
272 numbers with enum values.
273
054e8d9e
AA
2742013-07-15 Ali Anwar <ali_anwar@codesourcery.com>
275
276 PR threads/13217
277 * thread.c (thread_apply_all_command): Check for valid threads
278 and thread count.
279 (thread_array_cleanup): New struct.
280 (set_thread_refcount): New function.
281
cf006359
AB
2822013-07-11 Andrew Burgess <aburgess@broadcom.com>
283
284 * infcmd.c (default_print_one_register_info): Reuse function
285 print_hex_chars.
286
94e36acc
TT
2872013-07-10 Tom Tromey <tromey@redhat.com>
288
289 * Makefile.in (GDB_WARN_CFLAGS_NO_DEFS, ADA_EXP_C): New macros.
290 (ada-exp.o): New target.
291
915dd369
SDJ
2922013-07-10 Sergio Durigan Junior <sergiodj@redhat.com>
293
294 * mt-tdep.c (mt_registers_info): Call
295 get_no_prettyformat_print_options instead of
296 get_raw_print_options (regression by last patch from Doug
297 Evans).
298
eca07816
JB
2992013-07-09 Pedro Alves <palves@redhat.com>
300
301 Checked in by Joel Brobecker <brobecker@adacore.com>.
302 * ada-lang.c (coerce_unspec_val_to_type): Use
303 value_optimized_out_const.
304 * value.c (value_optimized_out_const): New function.
305 * value.h (value_optimized_out_const): New declaration.
306
2a998fc0
DE
3072013-07-09 Doug Evans <dje@google.com>
308
309 * defs.h (enum val_prettyformat): Renamed from val_prettyprint.
310 Enum values rename as well. All uses updated.
311 * valprint.h (value_print_options): Rename member pretty to
312 pretty format. Rename member prettyprint_arrays to
313 prettyformat_arrays. Rename member prettyprint_structs to
314 prettyformat_structs. All uses updated.
315 (get_no_prettyformat_print_options): Renamed from
316 get_raw_print_options.
317 * valprint.c (get_no_prettyformat_print_options): Renamed from
318 get_raw_print_options. All callers updated.
319 (show_prettyformat_structs): Renamed from show_prettyprint_structs.
320 All callers updated.
321 (show_prettyformat_arrays): Renamed from show_prettyprint_arrays.
322 All callers updated.
323 (_initialize_valprint): Improve help text for "set print pretty" and
324 "set print arrays".
325
466c1fca
AB
3262013-07-09 Andrew Burgess <aburgess@broadcom.com>
327
328 * value.c (value_bits_valid): Revert previous change, and change
329 by Pedro on 2013-07-04, due to regressions in
330 gdb.dwarf2/implptr.exp and gdb.dwarf2/pieces.exp.
331
ad0f0303
AB
3322013-07-08 Andrew Burgess <aburgess@broadcom.com>
333 Pedro Alves <palves@redhat.com>
334
335 * value.c (value_bits_valid): If the value is not lval_computed
336 or has no check validity handler then the answer is the
337 optimized_out flag, otherwise defer to the handler.
338
b187bec1
EZ
3392013-07-06 Eli Zaretskii <eliz@gnu.org>
340
48d1d6f5
EZ
341 * top.c (print_gdb_configuration): Explain in output of
342 --configuration what does "relocatable" mean.
343
b187bec1
EZ
344 * main.c (print_gdb_help): Regroup options in the --help text.
345 See http://sourceware.org/ml/gdb-patches/2013-04/msg00362.html for
346 the relevant discussions.
347
52d361e1
YQ
3482013-07-06 Yao Qi <yao@codesourcery.com>
349
350 * breakpoint.h (struct breakpoint_ops) <create_breakpoints_sal>:
351 Remove parameter 'lsal'.
352 * breakpoint.c (create_breakpoint): Move local variable 'lsal'
353 to inner block. Caller update.
354 (base_breakpoint_create_breakpoints_sal): Update.
355 (bkpt_create_breakpoints_sal): Likewise.
356 (tracepoint_create_breakpoints_sal): Likewise.
357 (strace_marker_create_breakpoints_sal): Get 'lsal' from the
358 element 0 of vector 'canonical->sals'.
359
e1ec1b42
LM
3602013-07-05 Luis Machado <lgustavo@codesourcery.com>
361
362 * rs6000-tdep.c (rs6000_stab_reg_to_regnum): Return the real
363 register number instead of the pseudo register one.
364 (rs6000_dwarf2_reg_to_regnum): Likewise.
365
7195e6f0
PA
3662013-07-04 Pedro Alves <palves@redhat.com>
367
368 * findvar.c (value_of_register): Use allocate_optimized_out_value
369 if the register has been optimized out, instead of
370 set_value_optimized_out.
371 * frame-unwind.c (frame_unwind_got_optimized): Use
372 allocate_optimized_out_value.
373
58722cac
PA
3742013-07-04 Pedro Alves <palves@redhat.com>
375
376 * value.c (value_bits_valid): If the value is not lval_computed,
377 or doesn't have a check_validity hook, assume the value is entirely
378 valid.
379
691a26f5
AB
3802013-07-04 Andrew Burgess <aburgess@broadcom.com>
381
382 * stack.c (read_frame_arg): No longer fetch lazy values.
383 * value.c (value_optimized_out): If the value is not already
384 marked optimized out, and is lazy then fetch it.
385 (value_primitive_field): Move optimized out check to later in the
386 function, after we have loaded any lazy values.
387 (value_fetch_lazy): Use optimized out flag directly rather than
388 calling optimized_out method.
389
a58e2656
AB
3902013-07-04 Andrew Burgess <aburgess@broadcom.com>
391
392 * valops.c: Don't include "user-regs.h".
393 (value_fetch_lazy): Moved to value.c.
394 * value.c: Include "user-regs.h".
395 (value_fetch_lazy): Moved from valops.c.
396
bd885420
YQ
3972013-07-04 Yao Qi <yao@codesourcery.com>
398
399 Revert:
400 2013-06-27 Yao Qi <yao@codesourcery.com>
401
402 * common/create-version.sh: Update comments. Handle the case
403 that TARGET_ALIAS is empty.
404
17ef446e
PA
4052013-07-03 Pedro Alves <palves@redhat.com>
406
407 * Makefile.in (config.status): Depend on development.sh.
408 (aclocal_m4_deps): Add libmcheck.m4.
409 * acinclude.m4: Include libmcheck.m4.
410 * configure.ac: Source development.sh instead of setting
411 'development' here. --enable-libmcheck/--disable-libmcheck code
412 factored out to GDB_AC_LIBMCHECK. Run it.
413 * development.sh: New file.
414 * libmcheck.m4: New file.
415 * configure: Regenerate.
416
ac6dd50f
TT
4172013-07-02 Tom Tromey <tromey@redhat.com>
418
419 * contrib/ari/update-web-ari.sh: Update for version.in change.
420
bd1df410
TT
4212013-07-02 Tom Tromey <tromey@redhat.com>
422
423 * common/ptid.h: Comment fixes.
424
4db1a1dc
TT
4252013-07-01 Tom Tromey <tromey@redhat.com>
426
427 * dwarf2read.c (dwarf2_get_dwz_file): Return NULL if
428 .gnu_debugaltlink not found. Use bfd_get_alt_debug_link_info.
429 (dwarf2_read_index, create_all_comp_units): Update.
430
dd9aa048
TT
4312013-07-01 Tom Tromey <tromey@redhat.com>
432
433 * configure.ac (build_warnings): Add -Wold-style-definition.
434 * configure: Rebuild.
435 * machoread.c (_initialize_machoread): Use "(void)".
436 * macrocmd.c (macro_inform_no_debuginfo): Fix formatting;
437 use "(void)".
438
44d100c3
TT
4392013-07-01 Tom Tromey <tromey@redhat.com>
440
441 * configure.ac (build_warnings): Add -Wold-style-declaration.
442 * configure: Rebuild.
443 * dsrec.c (make_srec): Use "static const", not "const static".
444 * h8300-tdep.c (h8300_breakpoint_from_pc): Use "static const",
445 not "const static".
446 * mi/mi-parse.c (mi_no_values, mi_simple_values, mi_all_values):
447 Use "static const", not "const static".
448 * mn10300-tdep.c (mn10300_breakpoint_from_pc): Use "static const",
449 not "const static".
450 * moxie-tdep.c (moxie_breakpoint_from_pc): Use "static const",
451 not "const static".
452 * rs6000-tdep.c (rs6000_breakpoint_from_pc): Use "static const",
453 not "const static".
454 * v850-tdep.c (v850_breakpoint_from_pc): Use "static const",
455 not "const static".
456 (v850_dbtrap_breakpoint_from_pc): Likewise.
457 * xstormy16-tdep.c (xstormy16_breakpoint_from_pc): Use "static const",
458 not "const static".
459
2945b807
TT
4602013-07-01 Tom Tromey <tromey@redhat.com>
461
462 * configure.ac (build_warnings): Add -Wmissing-parameter-type.
463 * configure: Rebuild.
464
d8d2a3ee
PA
4652013-07-01 Pedro Alves <palves@redhat.com>
466
467 * defs.h: Include "pathmax.h".
468 * utils.c: Don't include sys/param.h.
469 (gdb_realpath): Remove code that checks for MAXPATHLEN.
470 * solib-ia64-hpux.c (ia64_hpux_handle_load_event): Use PATH_MAX
471 instead of MAXPATHLEN.
472 * solib-sunos.c: Don't include sys/param.h.
473 * xcoffread.c: Don't include sys/param.h.
474 * bsd-kvm.c: Don't include sys/param.h.
475 * darwin-nat.c: Don't include sys/param.h.
476 (darwin_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
477 * darwin-nat-info.c: Don't include sys/param.h.
478 * fbsd-nat.c (fbsd_pid_to_exec_file): Use PATH_MAX instead of
479 MAXPATHLEN.
480 * i386obsd-nat.c: Don't include sys/param.h.
481 * inf-child.c: Don't include sys/param.h.
482 (inf_child_fileio_readlink): Use PATH_MAX instead of MAXPATHLEN.
483 * linux-fork.c: Don't include sys/param.h.
484 (fork_save_infrun_state): Use PATH_MAX instead of MAXPATHLEN.
485 * linux-nat.c: Don't include sys/param.h.
486 (linux_child_pid_to_exec_file, linux_proc_pending_signals)
487 (linux_proc_pending_signals): Use PATH_MAX instead of MAXPATHLEN.
488 * m68klinux-nat.c: Don't include sys/param.h.
489 * nbsd-nat.c: Don't include sys/param.h.
490 (nbsd_pid_to_exec_file): Use PATH_MAX instead of MAXPATHLEN.
491 * ppc-linux-nat.c: Don't include sys/param.h.
492 * rs6000-nat.c: Don't include sys/param.h.
493 * spu-linux-nat.c. Don't include sys/param.h.
494 * windows-nat.c: Don't include sys/param.h.
495 * xtensa-linux-nat.c: Don't include sys/param.h.
496 * config/i386/nm-fbsd.h: Don't include sys/param.h.
497
38ec2207
PA
4982013-07-01 Pedro Alves <palves@redhat.com>
499
500 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add pathmax.
501 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/pathmax.m4.
502 * gnulib/aclocal.m4: Regenerate.
503 * gnulib/config.in: Regenerate.
504 * gnulib/configure: Regenerate.
505 * gnulib/import/pathmax.h: New file.
506 * gnulib/import/Makefile.am: Regenerate.
507 * gnulib/import/Makefile.in: Regenerate.
508 * gnulib/import/m4/gnulib-cache.m4: Regenerate.
509 * gnulib/import/m4/gnulib-comp.m4: Regenerate.
510 * gnulib/import/m4/pathmax.m4: New file.
511
e655c1a2
PA
5122013-07-01 Pedro Alves <palves@redhat.com>
513
514 * configure.ac (GDBINIT): Define, depending on host.
515 * go32-nat.c (init_go32_ops): Don't override gdbinit here.
516 * top.c (PATH_MAX): Delete fallback definition.
517 (GDBINIT_FILENAME): Delete.
518 (gdbinit): Reimplement as const char array set to the GDBINIT
519 string constant.
520 * top.h (gdbinit): Make const.
521 * configure, config.in: Regenerate.
522
50dd9793
PA
5232013-07-01 Pedro Alves <palves@redhat.com>
524
525 * cli/cli-cmds.c (source_script): Make 'file' parameter const.
526 * cli/cli-cmds.h (source_script): Likewise.
527 * exceptions.c (catch_command_errors_const): New function.
528 * exceptions.h (catch_command_errors_const): Declare.
529 * main.c (get_init_files): Make parameters const, and adjust.
530 (captured_main): Make 'system_gdbinit', 'home_gdbinit' and
531 'local_gdbinit' locals const. Adjust to use
532 catch_command_errors_const.
533 (print_gdb_help): Make 'system_gdbinit', 'home_gdbinit' and
534 'local_gdbinit' locals const.
535
bc7dea8d
PA
5362013-07-01 Pedro Alves <palves@redhat.com>
537
538 * defs.h: Don't check HAVE_UNISTD_H before including <unistd.h>.
539 (STDIN_FILENO, STDOUT_FILENO, STDERR_FILENO): Delete.
540 * tracepoint.c: Don't check HAVE_UNISTD_H before including
541 <unistd.h>.
542
8839a007
PA
5432013-07-01 Pedro Alves <palves@redhat.com>
544
545 Import the "unistd" gnulib module.
546 * gnulib/update-gnulib.sh (IMPORTED_GNULIB_MODULES): Add "unistd".
547 * gnulib/Makefile.in (aclocal_m4_deps): Add import/m4/off_t.m4,
548 import/m4/ssize_t.m4, import/m4/sys_types_h.m4 and
549 import/m4/unistd_h.m4.
550 * gnulib/aclocal.m4: Renenerate.
551 * gnulib/config.in: Renenerate.
552 * gnulib/configure: Renenerate.
553 * gnulib/import/Makefile.am: Renenerate.
554 * gnulib/import/Makefile.in: Renenerate.
555 * gnulib/import/m4/gnulib-cache.m4: Renenerate.
556 * gnulib/import/m4/gnulib-comp.m4: Renenerate.
557 * gnulib/import/m4/off_t.m4: New file.
558 * gnulib/import/m4/ssize_t.m4: New file.
559 * gnulib/import/m4/sys_types_h.m4: New file.
560 * gnulib/import/m4/unistd_h.m4: New file.
561 * gnulib/import/sys_types.in.h: New file.
562 * gnulib/import/unistd.c: New file.
563 * gnulib/import/unistd.in.h: New file.
564
8c0da261
PA
5652013-07-01 Pedro Alves <palves@redhat.com>
566
567 * utils.c <pathconf/_PC_PATH_MAX use>: Check if _PC_PATH_MAX is
568 defined instead of checking HAVE_UNISTD_H.
569
3574124b
PA
5702013-07-01 Pedro Alves <palves@redhat.com>
571
572 Reimport gnulib from scratch.
573 * gnulib/Makefile.in (aclocal_m4_deps): Remove reference to
574 import/m4/onceonly.m4.
575 * gnulib/aclocal.m4: Renegerate.
576 * gnulib/config.in: Renegerate.
577 * gnulib/configure: Renegerate.
578 * gnulib/import/Makefile.in: Renegerate.
579 * gnulib/import/extra/update-copyright: Renegerate.
580 * gnulib/import/m4/onceonly.m4: Delete.
581
702dc4fd
PA
5822013-07-01 Pedro Alves <palves@redhat.com>
583
584 * tui/tui-regs.c (pagination_enabled): Delete declaration.
585
47e1ce27
JK
5862013-06-30 Jan Kratochvil <jan.kratochvil@redhat.com>
587
588 Code cleanup.
589 * remote.c (async_remote_interrupt_twice): Make it static.
590 * remote.h (async_remote_interrupt_twice): Remove the declaration.
591
e82839d4
SDJ
5922013-06-29 Sergio Durigan Junior <sergiodj@redhat.com>
593
594 * ia64-linux-tdep.c: Include <ctype.h>.
595 (ia64_linux_stap_is_single_operand): New function.
596 (ia64_linux_init_abi): Initialize SystemTap related attributes.
597
d6c2da54
TT
5982013-06-28 Tom Tromey <tromey@redhat.com>
599
600 * Makefile.in (version.c): Use version.in, not
601 common/version.in.
602 * common/create-version.sh: Likewise.
603 * common/version.in: Move...
604 * version.in: ...here.
605
74da6f00
PA
6062013-06-28 Pedro Alves <palves@redhat.com>
607
608 * infrun.c (set_observer_mode): Don't declare pagination_enabled
609 here.
610 * utils.h (pagination_enabled): Declare.
611
d32dc48e
PA
6122013-06-28 Pedro Alves <palves@redhat.com>
613
614 * infrun.c (non_stop, non_stop_1, set_non_stop, show_non_stop):
615 Move higher up in file.
616
0edd9e3b
TT
6172013-06-28 Tom Tromey <tromey@redhat.com>
618
619 * tracepoint.c (deprecated_readline_begin_hook)
620 (deprecated_readline_hook, deprecated_readline_end_hook): Don't
621 declare.
622
4eb59108
PA
6232013-06-28 Pedro Alves <palves@redhat.com>
624
625 PR tui/14880
626 * tui/tui-regs.c (tui_get_register): Fetch value contents before
627 checking if they're available.
628 * value.c (value_available_contents_eq): Change comment.
629 * value.h (value_available_contents_eq): Expand comment.
630
97b17156
TT
6312013-06-27 Tom Tromey <tromey@redhat.com>
632
633 * target.c (find_run_target): Remove.
634 * target.h (find_run_target): Remove.
635
6a3bfc5c
TT
6362013-06-27 Tom Tromey <tromey@redhat.com>
637
638 * corelow.c (core_gdbarch): Now static.
639
c9ef825d
TT
6402013-06-27 Tom Tromey <tromey@redhat.com>
641
642 * target.c (target_struct_index): Remove.
643
e5823f1c
PA
6442013-06-27 Pedro Alves <palves@redhat.com>
645
646 * infrun.c: Remove comment describing the 'stepping over runtime
647 loader dynamic symbol resolution code' mechanism; moved to
648 gdbint.texinfo.
649
97f8dd09
PA
6502013-06-27 Pedro Alves <palves@redhat.com>
651
652 * exceptions.c (catch_command_errors): Remove spurious space.
653 * exceptions.h (catch_command_errors): Second parameter is "arg",
654 not "command".
655
02b1871e
YQ
6562013-06-27 Yao Qi <yao@codesourcery.com>
657
658 * common/create-version.sh: Update comments. Handle the case
659 that TARGET_ALIAS is empty.
660
bb1b1cf1
PA
6612013-06-26 Pedro Alves <palves@redhat.com>
662
663 * infrun.c (SOLIB_IN_DYNAMIC_LINKER): Delete macro and describing
664 comment.
665
7b624e71
PA
6662013-06-26 Pedro Alves <palves@redhat.com>
667
668 * infrun.c: Update comments on stepping over runtime loader
669 dynamic symbol resolution code.
670
74e5a346
SDJ
6712013-06-26 Sergio Durigan Junior <sergiodj@redhat.com>
672
673 * ax-gdb.h (union exp_element): Forward declare.
674 * parser-defs.h: Include expression.h.
675
a2fb2cee
MR
6762013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
677
678 * mips-tdep.c (fetch_mips_16): Use unmake_compact_addr.
679
cdba14e0
DK
6802013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
681
682 * tracepoint.c (trace_save): Extend tsave to save starttime, stoptime.
683
f30aa5af
DK
6842013-06-26 Dmitry Kozlov <ddk@codesourcery.com>
685
686 Fix trace-status to output proper start-time and stop-time.
687 * tracepoint.c (trace_status_command): Fix type of printf arg to
688 prevent improper type conversion.
689 (trace_status_mi): Likewise.
690
1aee363c
MR
6912013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
692
693 * mips-tdep.c (mips_next_pc): Fix a typo.
694
3356937a
MR
6952013-06-26 Maciej W. Rozycki <macro@codesourcery.com>
696
697 * mips-tdep.c (micromips_scan_prologue): Fix a typo.
698
dc673c81
YQ
6992013-06-26 Pedro Alves <pedro@codesourcery.com>
700 Yao Qi <yao@codesourcery.com>
701
702 * mi/mi-cmds.c (mi_cmds): Register -trace-frame-collected.
703 * mi/mi-cmds.h (mi_cmd_trace_frame_collected): Declare.
704 * mi/mi-main.c (print_variable_or_computed): New function.
705 (mi_cmd_trace_frame_collected): New function.
706 * tracepoint.c (find_trace_state_variable_by_number): New.
707 (struct traceframe_info): Move to tracepoint.h
708 (struct collection_list): Likewise.
709 (do_collect_symbol): Include locals and arguments in the
710 collected variables list.
711 (clear_collection_list): Clear wholly collected variables list
712 and computed variables list.
713 (append_exp): New function.
714 (encode_actions_1): Include variables in the wholly
715 collected variables list. Include memory ranges and
716 full-fledged expressions in the computed expressions list.
717 (encode_actions): Move some code to ...
718 Return the cleanup chain.
719 (encode_actions_rsp): ... here. New function.
720 (get_traceframe_location, get_traceframe_info): Remove static.
721 * tracepoint.h (struct memrange): Moved from tracepoint.c.
722 (struct collection_list): Moved from tracepoint.c. Add two
723 new fields 'wholly_collected' and 'computed'.
724 (find_trace_state_variable_by_number): Declare.
725 (encode_actions): Adjust declaration.
726 (encode_actions_rsp): Declare.
727 (get_traceframe_info, get_traceframe_location): Declare.
728
729 * NEWS: Mention new MI command -trace-frame-collected.
730
28a93511
YQ
7312013-06-26 Pedro Alves <pedro@codesourcery.com>
732 Yao Qi <yao@codesourcery.com>
733
734 * ctf.c (ctf_traceframe_info): Push trace state variables
735 present in the trace data into the traceframe info object.
736 * breakpoint.c (DEF_VEC_I): Remove.
737 * common/filestuff.c (DEF_VEC_I): Likewise.
738 * dwarf2loc.c (DEF_VEC_I): Likewise.
739 * mi/mi-main.c (DEF_VEC_I): Likewise.
740 * common/gdb_vecs.h (DEF_VEC_I): Define vector for int.
741 * features/traceframe-info.dtd: Add tvar element and its
742 attributes.
743 * tracepoint.c (free_traceframe_info): Free vector 'tvars'.
744 (build_traceframe_info): Push trace state variables present in
745 the trace data into the traceframe info object.
746 (traceframe_info_start_tvar): New function.
747 (tvar_attributes): New.
748 (traceframe_info_children): Add "tvar" element.
749 * tracepoint.h (struct traceframe_info) <tvars>: New field.
750
751 * NEWS: Mention the change in GDB and GDBserver.
752
ddacd3c8
YQ
7532013-06-26 Pedro Alves <pedro@codesourcery.com>
754 Yao Qi <yao@codesourcery.com>
755
756 * tracepoint.c (trace_dump_command): Move code to ...
757 (get_traceframe_location): ... here. New.
758
05796b35
YQ
7592013-06-26 Pedro Alves <pedro@codesourcery.com>
760 Yao Qi <yao@codesourcery.com>
761
762 * tracepoint.c (trace_dump_command): GDB emits an error
763 instead of a warning when a traceframe is not selected.
764
cbfa3b61
YQ
7652013-06-26 Pedro Alves <pedro@codesourcery.com>
766 Yao Qi <yao@codesourcery.com>
767
768 * tracepoint.c (tracepoint_list, stepping_list): Remove.
769 (clear_collection_list): Free fields 'aexpre_list' and 'list'
770 in collection_list.
771 (do_clear_collection_list, init_collection_list): New.
772 (encode_actions): Add local variables 'tracepoint_list' and
773 'stepping_list'. Call init_collection_list and make cleanup
774 which calls do_clear_collection_list. Don't call
775 clear_collection_list.
776 (_initialize_tracepoint): Delete references to
777 'tracepoint_list' and 'stepping_list'.
778
6e2048d3
TT
7792013-06-25 Tom Tromey <tromey@redhat.com>
780
781 * common/create-version.sh (date): Use "$", not "$$" in sed
782 expression.
783
42059f0e
KB
7842013-06-25 Kevin Buettner <kevinb@redhat.com>
785
786 * NEWS (New targets): Add entry for TI MSP430.
787
a0743c90
YQ
7882013-06-25 Yao Qi <yao@codesourcery.com>
789
790 * remote.c (remote_start_remote): Move code to upload tsv
791 earlier.
792
9d6e6e84
HZ
7932013-06-25 Yao Qi <yao@codesourcery.com>
794 Hui Zhu <hui@codesourcery.com>
795 Pedro Alves <palves@redhat.com>
796
797 PR breakpoints/15075
798 PR breakpoints/15434
799 * breakpoint.c (bpstat_stop_status): Call
800 b->ops->after_condition_true.
801 (update_dprintf_command_list): Don't append "continue" command
802 to the command list of dprintf breakpoint.
803 (base_breakpoint_after_condition_true): New function.
804 (base_breakpoint_ops): Add base_breakpoint_after_condition_true.
805 (dprintf_after_condition_true): New function.
806 (initialize_breakpoint_ops): Set dprintf_after_condition_true.
807 * breakpoint.h (breakpoint_ops): Add after_condition_true.
808
586cf749
KB
8092013-06-24 Kevin Buettner <kevinb@redhat.com>
810
811 * Makefile.in (ALL_TARGET_OBS): Add msp430-tdep.o.
812 (ALLDEPFILES): Add msp430-tdep.c.
813 * configure.tgt (msp430*-*-elf): New target.
814 * msp430-tdep.c: New file.
815
1bbce132
MR
8162013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
817
818 * mips-tdep.c (mips_elf_make_msymbol_special): Handle MIPS16 and
819 microMIPS synthetic symbols.
820
3e5d3a5a
MR
8212013-06-24 Maciej W. Rozycki <macro@codesourcery.com>
822
823 * objfiles.h (pc_in_section): New prototype.
824 (in_plt_section): Remove name argument, replace prototype with
825 static inline function.
826 * mips-tdep.h: Include "objfiles.h".
827 (in_mips_stubs_section): New function.
828 * hppa-tdep.h (gdbarch_tdep): Remove name argument of
829 in_solib_call_trampoline member.
830 (hppa_in_solib_call_trampoline): Remove name argument.
831 * objfiles.c (pc_in_section): New function.
832 (in_plt_section): Remove function.
833 * mips-linux-tdep.c: Include "objfiles.h".
834 (mips_linux_in_dynsym_stub): Call in_mips_stubs_section. Remove
835 name argument. Return 1 rather than the low 16-bit halfword of
836 any instruction examined.
837 (mips_linux_in_dynsym_resolve_code): Update
838 mips_linux_in_dynsym_stub call accordingly.
839 * mips-tdep.c (mips_stub_frame_sniffer): Use in_mips_stubs_section
840 rather than an equivalent hand-coded sequence.
841 * hppa-hpux-tdep.c (in_opd_section): Remove function.
842 (hppa32_hpux_in_solib_call_trampoline): Remove name argument.
843 (hppa64_hpux_in_solib_call_trampoline): Likewise.
844 (hppa64_hpux_find_global_pointer): Use pc_in_section rather than
845 in_opd_section.
846 * hppa-tdep.c (hppa_stub_unwind_sniffer): Remove name argument
847 on call to tdep->in_solib_call_trampoline.
848 (hppa_in_solib_call_trampoline): Remove name argument, update
849 according to in_plt_section change.
850 (hppa_skip_trampoline_code): Update according to in_plt_section
851 change.
852 * aarch64-tdep.c (aarch64_stub_unwind_sniffer): Likewise.
853 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code):
854 Likewise.
855 * arm-tdep.c (arm_stub_unwind_sniffer): Likewise.
856 * hppa-linux-tdep.c (hppa_linux_find_global_pointer): Likewise.
857 * hppabsd-tdep.c (hppabsd_find_global_pointer): Likewise.
858 * nios2-tdep.c (nios2_stub_frame_sniffer): Likewise.
859 * nto-tdep.c (nto_relocate_section_addresses): Likewise.
860 * s390-tdep.c (s390_stub_frame_sniffer): Likewise.
861 * sh-tdep.c (sh_stub_unwind_sniffer): Likewise.
862 * solib-dsbt.c (dsbt_in_dynsym_resolve_code): Likewise.
863 * solib-frv.c (frv_in_dynsym_resolve_code): Likewise.
864 * solib-svr4.c (svr4_in_dynsym_resolve_code): Likewise.
865 * solib-target.c (solib_target_in_dynsym_resolve_code): Likewise.
866 * sparc-tdep.c (sparc_analyze_prologue): Likewise.
867 * tic6x-tdep.c (tic6x_stub_unwind_sniffer): Likewise.
868
b9b26a16
JB
8692013-06-24 Joel Brobecker <brobecker@adacore.com>
870
871 * common/create-version.sh: Fix expansion of $host_alias
872 and $target_alias in generation of HOST_NAME and TARGET_NAME
873 (resp.).
874
01208463
TT
8752013-06-24 Tom Tromey <tromey@redhat.com>
876
877 * common/create-version.sh: New file.
878 * Makefile.in (version.c): Use bfd/version.h, common/version.in,
879 create-version.sh.
880 (HFILES_NO_SRCDIR): Use common/version.h.
881 * version.in: Move to ...
882 * common/version.in: ... here. Replace date with "DATE".
883 * version.h: Move to ...
884 * common/version.h: ... here.
885
bb6b9a5e
JB
8862013-06-21 Joel Brobecker <brobecker@adacore.com>
887
888 * gdb/gnulib/Makefile.in: Update date in copyright header.
889 * gdb/gnulib/configure.ac: Ditto.
890 * gdb/gnulib/update-gnulib.sh: Ditto.
891
c3b18ee7
JB
8922013-06-21 Joel Brobecker <brobecker@adacore.com>
893
894 * copyright.py (EXCLUDE_LIST): Replace "gdb/gnulib" by
895 "gdb/gnulib/import".
896
85d3b769
WN
8972013-06-21 Will Newton <will.newton@linaro.org>
898
899 * doublest.c (ldfrexp): Remove function.
900 (convert_doublest_to_floatformat): Call frexpl instead of
901 ldfrexp.
902
88b48903
WN
9032013-06-21 Will Newton <will.newton@linaro.org>
904
905 * gnulib/update-gnulib.sh(IMPORTED_GNULIB_MODULES): Add frexpl.
906 * gnulib/aclocal.m4: Regenerate.
907 * gnulib/config.in: Regenerate.
908 * gnulib/configure: Regenerate.
909 * gnulib/import/Makefile.am: Update.
910 * gnulib/import/Makefile.in: Update.
911 * gnulib/import/m4/gnulib-cache.m4: Update.
912 * gnulib/import/m4/gnulib-comp.m4: Update.
913 * gnulib/import/float+.h: Import.
914 * gnulib/import/float.c: Import.
915 * gnulib/import/float.in.h: Import.
916 * gnulib/import/fpucw.h: Import.
917 * gnulib/import/frexp.c: Import.
918 * gnulib/import/frexpl.c: Import.
919 * gnulib/import/isnan.c: Import.
920 * gnulib/import/isnand-nolibm.h: Import.
921 * gnulib/import/isnand.c: Import.
922 * gnulib/import/isnanl-nolibm.h: Import.
923 * gnulib/import/isnanl.c: Import.
924 * gnulib/import/itold.c: Import.
925 * gnulib/import/m4/exponentd.m4: Import.
926 * gnulib/import/m4/exponentl.m4: Import.
927 * gnulib/import/m4/float_h.m4: Import.
928 * gnulib/import/m4/fpieee.m4: Import.
929 * gnulib/import/m4/frexp.m4: Import.
930 * gnulib/import/m4/frexpl.m4: Import.
931 * gnulib/import/m4/isnand.m4: Import.
932 * gnulib/import/m4/isnanl.m4: Import.
933 * gnulib/import/m4/math_h.m4: Import.
934 * gnulib/import/math.c: Import.
935 * gnulib/import/math.in.h: Import.
936
4353c9e6
JK
9372013-06-21 Jan Kratochvil <jan.kratochvil@redhat.com>
938
939 * common/linux-btrace.c (cpu_supports_btrace): Remove variable vendor,
940 replace strcmp with signature_INTEL_ebx, signature_INTEL_ecx and
941 signature_INTEL_edx comparisons.
942
e3e06db3
DE
9432013-06-20 Doug Evans <dje@google.com>
944
6ac97d4c
DE
945 symtab/15652
946 * dwarf2read.c (try_open_dwop_file): New arg search_cwd.
947 All callers updated.
948 (open_dwp_file): If we can't find the dwp file, search the basename
949 in debug-file-directory.
950
93417882
DE
951 * dwarf2read.c (struct dwp_file): Fix comment.
952 (open_and_init_dwp_file): Set dwp_file->name to bfd's file name.
953
e3e06db3
DE
954 * source.c (openp): Document OPF_TRY_CWD_FIRST+OPF_SEARCH_IN_PATH
955 better.
956
0878d0fa
YQ
9572013-06-20 Yao Qi <yao@codesourcery.com>
958
959 * breakpoint.c (create_breakpoint): Fix code indentation.
960
023fa29b
YQ
9612013-06-20 Yao Qi <yao@codesourcery.com>
962
963 * breakpoint.c (create_breakpoints_sal_default): Remove
964 parameter 'lsal'. Update declaration.
965 (bkpt_create_breakpoints_sal): Caller update.
966 (tracepoint_create_breakpoints_sal): Likewise.
967
c898adb7
YQ
9682013-06-20 Pedro Alves <pedro@codesourcery.com>
969 Yao Qi <yao@codesourcery.com>
970
971 * NEWS: Mention the new option '--skip-unavailable' of command
972 -data-list-register-values.
973 * mi/mi-main.c (mi_cmd_data_list_register_values): Accept the
974 --skip-unavailable option. Adjust to use output_register.
975 (output_register): Add new 'skip_unavailable' parameter.
976 Handle it.
977
4d157a3d
MF
9782013-06-19 Mike Frysinger <vapier@gentoo.org>
979
980 * Makefile.in (HFILES_NO_SRCDIR): Add common/i386-cpuid.h and
981 common/i386-gcc-cpuid.h.
982 * common/i386-cpuid.h: New wrapper header around i386-gcc-cpuid.h.
983 * common/i386-gcc-cpuid.h: Rename from testsuite/gdb.arch/i386-cpuid.h.
984 Copy the latest version from upstream gcc.
985 * common/linux-btrace.c: Include i386-cpuid.h.
986 (intel_supports_btrace): Delete x86 ifdefs and replace inline asm with
987 call to i386_cpuid.
988 (cpu_supports_btrace): Likewise.
989 * go32-nat.c: Include i386-cpuid.h.
990 (go32_sysinfo): Add (disabled) calls to i386_cpuid with comments.
991
1ce4db08
DE
9922013-06-19 Doug Evans <dje@google.com>
993
994 * symfile.c (symfile_bfd_open): Delete unnecessary declaration.
995 (get_section_index): Ditto.
996
0e4777df
TT
9972013-06-19 Tom Tromey <tromey@redhat.com>
998
999 * breakpoint.c (_initialize_breakpoint): Remove trailing \n from
1000 "dprintf" help.
1001
3190f0c6
DE
10022013-06-18 Doug Evans <dje@google.com>
1003
1004 * dwarf2read.c (dw2_symtab_iter_next): Check value of cu_index
1005 before using it.
1006 (dw2_expand_symtabs_matching): Fix symbol kind validity check.
1007 Move test of cu_index closer to use. Print complaint if cu_index
1008 is bad.
1009
8b89a20a
JB
10102013-06-18 Joel Brobecker <brobecker@adacore.com>
1011
1012 * machoread.c (oso_vector): Delete this global.
1013 (macho_register_oso): Add new parameter "oso_vector_ptr".
1014 Use it instead of the "oso_vector" global.
1015 (macho_symtab_read, macho_symfile_read_all_oso): Likewise.
1016 (macho_symfile_read): Use a local oso_vector, to be free'ed
1017 at the end of this function, in place of the old "oso_vector"
1018 global. Update various function calls accordingly. Use one
1019 single cleanup chain for the entire function.
1020
59b0c7c1
JB
10212013-06-18 Joel Brobecker <brobecker@adacore.com>
1022
937c708c 1023 * dwarf2read.c (dwarf2_per_objfile_free): Replace uses of
59b0c7c1
JB
1024 DWARF2_PER_OBJFILE by uses of DATA instead.
1025
427cd150
TT
10262013-06-18 Tom Tromey <tromey@redhat.com>
1027
1028 * break-catch-sig.c (signal_catchpoint_explains_signal): Add 'sig'
1029 argument.
1030 * breakpoint.c (bpstat_explains_signal): Add 'sig' argument.
1031 Special case signals other than GDB_SIGNAL_TRAP.
1032 (explains_signal_watchpoint): New function.
1033 (base_breakpoint_explains_signal): Add 'sig' argument.
1034 (initialize_breakpoint_ops): Set 'explains_signal' method for
1035 watchpoints.
1036 * breakpoint.h (struct breakpoint_ops) <explains_signal>: Add
1037 signal argument.
1038 (bpstat_explains_signal): Likewise.
1039 * infrun.c (handle_syscall_event, handle_inferior_event): Update.
1040
2d57700b
TT
10412013-06-18 Tom Tromey <tromey@redhat.com>
1042
1043 * python/py-inferior.c (gdbpy_selected_inferior): Don't incref.
1044
ac475191
TT
10452013-06-18 Tom Tromey <tromey@redhat.com>
1046
1047 * python/python.c (finish_python_initialization): Decref
1048 'pythondir' on failure path as well.
1049
5bd1ef56
TT
10502013-06-18 Tom Tromey <tromey@redhat.com>
1051
1052 PR symtab/15391:
1053 * dwarf2loc.c (read_pieced_value): Truncate this_size_bits
1054 after taking bits_to_skip into account. Sign extend byte_offset.
1055 * utils.h (gdb_sign_extend): Declare.
1056 * utils.c (gdb_sign_extend): New function.
1057
92fac807
JK
10582013-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1059
1060 * dwarf2read.c (write_psymtabs_to_index): Ignore NULL PSYMTAB.
1061
2d503272
PM
10622013-06-17 Pierre Muller <muller@sourceware.org>
1063
1064 * corelow.c (core_open): Print GDB signal name instead of target
1065 signal number.
1066
6916fd98
MF
10672013-06-17 Mike Frysinger <vapier@gentoo.org>
1068
1069 * .gitignore: Add /gcore.
1070
9c02c129
DE
10712013-06-13 Doug Evans <dje@google.com>
1072
1073 * dwarf2read.c (try_open_dwop_file): Work around behaviour of
1074 OPF_TRY_CWD_FIRST to not search path if the file contains a '/'.
1075
d0548fa2
PM
10762013-06-12 Phil Muldoon <pmuldoon@redhat.com>
1077
1078 * stack.c (backtrace_command_1): Fix indentation.
1079
22128028
JB
10802013-06-11 Joel Brobecker <brobecker@adacore.com>
1081
1082 * window-nat.c (thread_rec): Add missing empty line after
1083 local variable declaration.
1084
2ed3e009
JB
10852013-06-11 Joel Brobecker <brobecker@adacore.com>
1086
1087 * windows-nat.c (thread_rec): Revert format used to print
1088 error code returned by SuspendThread from %d back to %u.
1089
0c3d84be
JB
10902013-06-11 Joel Brobecker <brobecker@adacore.com>
1091
1092 * windows-nat.c (windows_continue): Add "0x" prefix for thread
1093 ID in debug trace.
1094 (get_windows_debug_event): Likewise, for all debug traces.
1095
80e88e1a
JB
10962013-06-11 Joel Brobecker <brobecker@adacore.com>
1097
1098 * window-nat.c (thread_rec): Add thread ID in SuspendThread
1099 warning message.
1100
1edebdbf
YQ
11012013-06-08 Pedro Alves <pedro@codesourcery.com>
1102 Yao Qi <yao@codesourcery.com>
1103
1104 * mi/mi-main.c (get_register): Remove declaration.
1105 (output_register): Declare.
1106 (mi_cmd_data_list_register_values): Remove local variable
1107 'tuple_cleanup'. Move some code into output_register.
1108 (get_register): Renamed to ...
1109 (output_register): ... this. Output the register's
1110 "number" ui_out tuple here.
1111
47d48711
PA
11122013-06-07 Pedro Alves <palves@redhat.com>
1113
1114 * darwin-nat.c: Fix formating in copyright header.
1115 * darwin-nat.h: Likewise.
1116 * gnu-nat.c: Likewise.
1117 * machoread.c: Likewise.
1118
3aee8918
PA
11192013-06-07 Pedro Alves <palves@redhat.com>
1120
5f2b57b5 1121 PR server/14823
3aee8918
PA
1122 * regformats/regdat.sh: Output #include tdesc.h. Make globals
1123 static. Output a global target description pointer.
1124 (init_registers_${name}): Adjust to initialize a
1125 target description structure.
1126
fe8400b4
WN
11272013-06-07 Will Newton <will.newton@linaro.org>
1128
1129 * printcmd.c (build_address_symbolic): Call
1130 gdbarch_addr_bits_remove for text minimal symbols.
1131
20df6206
WN
11322013-06-07 Will Newton <will.newton@linaro.org>
1133
1134 * MAINTAINERS: Add myself to Write After Approval.
1135
aef525cb
YQ
11362013-06-07 Yao Qi <yao@codesourcery.com>
1137
1138 * tracepoint.c (start_tracing): Move code to ...
1139 (trace_reset_local_state): ... here. New.
1140 (disconnect_tracing): Don't call set_current_traceframe,
1141 set_tracepoint_num, and set_traceframe_context. Call
1142 trace_reset_local_state instead.
1143 (tfile_close): Call trace_reset_local_state.
1144 * ctf.c (ctf_close): Likewise.
1145 * remote.c (remote_close): Likewise.
1146 * tracepoint.h (trace_reset_local_state): Declare.
1147
d2415c6c
DE
11482013-06-06 Doug Evans <dje@google.com>
1149
1150 * dwarf2read.c: Whitespace fixes for DWP file format documentation,
1151 and fix header docs.
1152
69fc87c2
DE
11532013-06-05 Doug Evans <dje@google.com>
1154 Keith Seitz <keiths@redhat.com>
1155
1156 PR 15519
1157 * cp-namespace.c (find_symbol_in_baseclass): Call
1158 cp_lookup_symbol_in_namespace instead of cp_lookup_symbol_namespace.
1159 Check result of call to lookup_symbol_static.
1160 Call lookup_static_symbol_aux unconditionally.
1161 Call check_typedef on base types before accessing them.
1162 (cp_lookup_nested_symbol): Fix comment.
1163
a513d1e8
LM
11642013-06-05 Luis Machado <lgustavo@codesourcery.com>
1165
1166 * gnu-v3-abi.c (gnuv3_skip_trampoline): Handle thunk
1167 minimal symbols pointing to function descriptors.
1168
351a6f02
TT
11692013-06-05 Tom Tromey <tromey@redhat.com>
1170
1171 * python/py-utils.c (gdb_pymodule_addobject): Cast away const.
1172
5e1b953b 11732013-06-04 Sergio Durigan Junior <sergiodj@redhat.com>
c7c0b644 1174 Pedro Alves <palves@redhat.com>
5e1b953b
SDJ
1175
1176 * remote.c (remote_wait_as): Restore signal handler before returning
1177 when GDB gets a notification.
1178
f9e14852
GB
11792013-06-04 Gary Benson <gbenson@redhat.com>
1180
8445cbf1 1181 PR 2328
f9e14852
GB
1182 * breakpoint.h (handle_solib_event): Moved function declaration
1183 to solib.h.
1184 * breakpoint.c (handle_solib_event): Moved function to solib.c.
1185 (bpstat_stop_status): Pass new argument to handle_solib_event.
1186 * solib.h (update_solib_breakpoints): New function declaration.
1187 (handle_solib_event): Moved function declaration from
1188 breakpoint.h.
1189 * solib.c (update_solib_breakpoints): New function.
1190 (handle_solib_event): Moved function from breakpoint.c.
1191 Updated to call solib_ops->handle_event if not NULL.
1192 * solist.h (target_so_ops): New fields "update_breakpoints" and
1193 "handle_event".
1194 * infrun.c (set_stop_on_solib_events): New function.
1195 (_initialize_infrun): Use the above for "set
1196 stop-on-solib-events".
1197 (handle_inferior_event): Pass new argument to handle_solib_event.
1198 * solib-svr4.c (probe.h): New include.
1199 (svr4_free_library_list): New forward declaration.
1200 (probe_action): New enum.
1201 (probe_info): New struct.
1202 (probe_info): New static variable.
1203 (NUM_PROBES): New definition.
1204 (svr4_info): New fields "using_xfer", "probes_table" and
1205 "solib_list".
1206 (free_probes_table): New function.
1207 (free_solib_list): New function.
1208 (svr4_pspace_data_cleanup): Free probes table and solib list.
1209 (svr4_copy_library_list): New function.
1210 (svr4_current_sos_via_xfer_libraries): New parameter "annex".
1211 (svr4_read_so_list): New parameter "prev_lm".
1212 (svr4_current_sos_direct): Renamed from "svr4_current_sos".
1213 (svr4_current_sos): New function.
1214 (probe_and_action): New struct.
1215 (hash_probe_and_action): New function.
1216 (equal_probe_and_action): Likewise.
1217 (register_solib_event_probe): Likewise.
1218 (solib_event_probe_at): Likewise.
1219 (solib_event_probe_action): Likewise.
1220 (solist_update_full): Likewise.
1221 (solist_update_incremental): Likewise.
1222 (disable_probes_interface_cleanup): Likewise.
1223 (svr4_handle_solib_event): Likewise.
1224 (svr4_update_solib_event_breakpoint): Likewise.
1225 (svr4_update_solib_event_breakpoints): Likewise.
1226 (svr4_create_solib_event_breakpoints): Likewise.
1227 (enable_break): Free probes table before creating breakpoints.
1228 Use svr4_create_solib_event_breakpoints to create breakpoints.
1229 (svr4_solib_create_inferior_hook): Free the solib list.
1230 (_initialize_svr4_solib): Initialise
1231 svr4_so_ops.handle_solib_event and svr4_so_ops.update_breakpoints.
1232
ced63ec0
GB
12332013-06-04 Gary Benson <gbenson@redhat.com>
1234
1235 * target.h (target_ops): New field
1236 "to_augmented_libraries_svr4_read".
1237 (target_augmented_libraries_svr4_read): New macro.
1238 * target.c (update_current_target): Handle
1239 to_augmented_libraries_svr4_read.
1240 * remote.c (remote_state): New field
1241 "augmented_libraries_svr4_read".
1242 (remote_augmented_libraries_svr4_read_feature): New function.
1243 (remote_protocol_features): Add entry for
1244 "augmented-libraries-svr4-read".
1245 (remote_augmented_libraries_svr4_read): New function.
1246 (init_remote_ops): Initialize
1247 remote_ops.to_augmented_libraries_svr4_read.
1248
7f91dbec
GB
12492013-06-04 Gary Benson <gbenson@redhat.com>
1250
1251 * NEWS: Update.
1252
607ece04
GB
12532013-06-04 Gary Benson <gbenson@redhat.com>
1254
1255 * objfiles.h (inhibit_section_map_updates): New function
1256 declaration.
1257 (resume_section_map_updates): Likewise.
1258 (resume_section_map_updates_cleanup): Likewise.
1259 * objfiles.c (objfile_pspace_info): Removed field
1260 "objfiles_changed_p". New fields "new_objfiles_available",
1261 "section_map_dirty" and "inhibit_updates".
1262 (allocate_objfile): Set new_objfiles_available.
1263 (free_objfile): Set section_map_dirty.
1264 (objfile_relocate1): Likewise.
1265 (in_plt_section): Likewise.
1266 (find_pc_section): Update the conditions under which the
1267 section map will be updated.
1268 (inhibit_section_map_updates): New function.
1269 (resume_section_map_updates): Likewise.
1270 (resume_section_map_updates_cleanup): Likewise.
1271
9ee6a5ac
GB
12722013-06-04 Gary Benson <gbenson@redhat.com>
1273
1274 * probe.h (get_probe_argument_count): New declaration.
1275 (evaluate_probe_argument): Likewise.
1276 * probe.c (get_probe_argument_count): New function.
1277 (evaluate_probe_argument): Likewise.
1278 (probe_safe_evaluate_at_pc): Use the above new functions.
1279
845d4708
AM
12802013-06-04 Alan Modra <amodra@gmail.com>
1281
1282 * ppc-tdep.h (ppc_insns_match_pattern): Update prototype.
1283 * rs6000-tdep.c (read_insn): Add frame param, don't assume big-endian.
1284 (ppc_insns_match_pattern): Add frame param. Avoid multiple
1285 target mem reads on optional insns.
1286 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Update
1287 ppc_insns_match_pattern calls.
1288 * ppc64-tdep.c (ppc64_standard_linkage2, ppc64_standard_linkage3):
1289 Add match for power7 thread safety insns, and new order of
1290 std 2,40(1) insn. Correct code shown for _dl_runtime_resolve
1291 invocation in comment, and update rest of comment.
1292 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN,
1293 PPC64_STANDARD_LINKAGE3_LEN): Delete.
1294 (ppc64_standard_linkage2_target): Update insn offsets.
1295 (ppc64_skip_trampoline_code): Use a single insn buffer. Match newer
1296 stubs first. Update calls.
1297
404e278f
YQ
12982013-06-04 Yao Qi <yao@codesourcery.com>
1299
1300 * solib.c (solib_find): Don't need dir separator if path has
1301 drive spec.
1302
f6aea118
JB
13032013-06-03 Joel Brobecker <brobecker@adacore.com>
1304
1305 Revert (indirectly causes a SIGSEGV):
1306 * machoread.c (macho_symfile_read): Assign first cleanup to
1307 'back_to'.
1308
87967e27
YQ
13092013-06-03 Yao Qi <yao@codesourcery.com>
1310
1311 * mi/mi-cmd-var.c (mi_no_values, mi_simple_values): Move to
1312 mi-parse.c. Make them static.
1313 (mi_all_values): Likewise.
1314 (mi_parse_values_option): Move to mi-parse.c. Rename it to
1315 mi_parse_print_values. Make it external.
1316 * mi/mi-cmds.h (mi_no_values, mi_simple_values, mi_all_values):
1317 Remove the declarations.
1318 * mi/mi-parse.c (mi_parse_print_values): Moved from mi-cmd-var.c.
1319 * mi/mi-parse.h (mi_parse_print_values): Declare.
1320 * mi/mi-cmd-stack.c: Include mi-parse.h.
1321 (parse_print_values): Remove
1322 (mi_cmd_stack_list_locals): Call mi_parse_print_values instead
1323 of parse_print_values.
1324 (mi_cmd_stack_list_args, mi_cmd_stack_list_variables): Likewise.
1325
3ca73e0c
YQ
13262013-05-31 Pedro Alves <pedro@codesourcery.com>
1327 Yao Qi <yao@codesourcery.com>
1328
1329 * tracepoint.c (all_tracepoint_actions_and_cleanup): Declare.
1330 (encode_actions): Move code to ...
1331 (all_tracepoint_actions_and_cleanup): ... here. New.
1332 (trace_dump_command): Likewise.
1333
4e993a19
TT
13342013-05-30 Tom Tromey <tromey@redhat.com>
1335
1336 * symmisc.c (maintenance_expand_symtabs): Call do_cleanups.
1337
e3b76b4f
TT
13382013-05-30 Tom Tromey <tromey@redhat.com>
1339
1340 * xml-support.c (gdb_xml_create_parser_and_cleanup): Rename from
1341 gdb_xml_create_parser_and_cleanup_1. Return a cleanup. Remove
1342 'old_chain' argument. Add 'parser_result' argument.
1343 (gdb_xml_create_parser_and_cleanup): Remove old version.
1344 (gdb_xml_parse_quick): Update.
1345 (xml_process_xincludes): Update.
1346 * xml-support.h (gdb_xml_create_parser_and_cleanup): Don't
1347 declare.
1348
db26349c
TT
13492013-05-30 Tom Tromey <tromey@redhat.com>
1350
1351 * probe.c (collect_probes): Check arguments for NULL before
1352 calling compile_rx_or_error.
1353 * utils.c (compile_rx_or_error): Require 'rx' to be non-NULL.
1354 Remove NULL return.
1355
77f9e713
TT
13562013-05-30 Tom Tromey <tromey@redhat.com>
1357
1358 * infrun.c (adjust_pc_after_break): Introduce an outer null
1359 cleanup.
1360
45475de7
TT
13612013-05-30 Tom Tromey <tromey@redhat.com>
1362
1363 * mi/mi-cmd-var.c (varobj_update_one): Add an outer null cleanup.
1364
ac5007fd
TT
13652013-05-30 Tom Tromey <tromey@redhat.com>
1366
1367 * cli/cli-script.c (read_command_lines_1): Use a null cleanup
1368 for 'old_chain'. Do not check 'head' before processing
1369 cleanups.
1370
cd82eddc
TT
13712013-05-30 Tom Tromey <tromey@redhat.com>
1372
1373 * mi/mi-cmd-stack.c (list_arg_or_local): Remove
1374 "cleanup_tuple".
1375
57cee33a
TT
13762013-05-30 Tom Tromey <tromey@redhat.com>
1377
1378 * dbxread.c (dbx_read_symtab): Declare 'back_to' in a more
1379 inner scope. Unconditionally call do_cleanups.
1380
795d915c
TT
13812013-05-30 Tom Tromey <tromey@redhat.com>
1382
1383 * source.c (find_and_open_source): Call do_cleanups.
1384
1fc3cf4a
TT
13852013-05-30 Tom Tromey <tromey@redhat.com>
1386
1387 * linux-thread-db.c (thread_db_load_search): Unconditionally
1388 call do_cleanups.
1389
e35ac9bf
TT
13902013-05-30 Tom Tromey <tromey@redhat.com>
1391
1392 * solib-aix.c (solib_aix_bfd_open): Don't use a null cleanup
1393 for 'cleanup'; instead use a later one.
1394
f3300387
TT
13952013-05-30 Tom Tromey <tromey@redhat.com>
1396
1397 * python/py-breakpoint.c (bppy_get_commands): Use
1398 explicit, unconditional return.
1399 * python/py-frame.c (frapy_read_var): Likewise.
1400 * python/python.c (gdbpy_decode_line): Likewise.
1401
c27e16e3
TT
14022013-05-30 Tom Tromey <tromey@redhat.com>
1403
1404 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Call
1405 do_cleanups on all return paths.
1406
5ae85e44
TT
14072013-05-30 Tom Tromey <tromey@redhat.com>
1408
1409 * top.c (execute_command): Discard 'cleanup_if_error' cleanups.
1410
73b8d9da
TT
14112013-05-30 Tom Tromey <tromey@redhat.com>
1412
1413 * stabsread.c (read_struct_type): Call do_cleanups along
1414 all return paths.
1415
7d266584
MR
14162013-05-30 Maciej W. Rozycki <macro@codesourcery.com>
1417
1418 * mips-linux-tdep.c: Adjust formatting throughout.
1419
0f900f54
TT
14202013-05-30 Tom Tromey <tromey@redhat.com>
1421
1422 * mipsread.c (read_alphacoff_dynamic_symtab): Call do_cleanups
1423 along all return paths.
1424
a991ac28
TT
14252013-05-30 Tom Tromey <tromey@redhat.com>
1426
1427 * symfile.c (find_separate_debug_file): Call do_cleanups
1428 along all return paths.
1429
1abaf042
TT
14302013-05-30 Tom Tromey <tromey@redhat.com>
1431
1432 * symtab.c (search_symbols): Introduce a null cleanup for
1433 'retval_chain'.
1434
edefe1da
TT
14352013-05-30 Tom Tromey <tromey@redhat.com>
1436
1437 * python/py-value.c (valpy_binop): Call do_cleanups before
1438 exiting loop.
1439
54f72dcc
TT
14402013-05-30 Tom Tromey <tromey@redhat.com>
1441
1442 * python/py-prettyprint.c (print_children): Remove extra
1443 do_cleanups call.
1444
af1c6971
TT
14452013-05-30 Tom Tromey <tromey@redhat.com>
1446
1447 * python/py-frame.c (frapy_read_var): Call do_cleanups along
1448 all return paths.
1449
b862ce75
TT
14502013-05-30 Tom Tromey <tromey@redhat.com>
1451
1452 * python/py-breakpoint.c (bppy_get_commands): Call do_cleanups
1453 along all return paths.
1454
e12fefc8
TT
14552013-05-30 Tom Tromey <tromey@redhat.com>
1456
1457 * cli/cli-logging.c (set_logging_redirect): Unconditionally
1458 call do_cleanups.
1459
4867f990
TT
14602013-05-30 Tom Tromey <tromey@redhat.com>
1461
1462 * varobj.c (c_value_of_root): Call do_cleanups along all
1463 return paths.
1464
4fd2d6af
TT
14652013-05-30 Tom Tromey <tromey@redhat.com>
1466
1467 * tracepoint.c (trace_dump_command): Unconditionally call
1468 do_cleanups.
1469
752eb8b4
TT
14702013-05-30 Tom Tromey <tromey@redhat.com>
1471
1472 * breakpoint.c (output_thread_groups, parse_cmd_to_aexpr): Call
1473 do_cleanups earlier.
1474
e42d0aa5
TT
14752013-05-30 Tom Tromey <tromey@redhat.com>
1476
1477 * machoread.c (macho_symfile_read): Assign first cleanup to
1478 'back_to'.
1479
4bbc010a
TT
14802013-05-30 Tom Tromey <tromey@redhat.com>
1481
1482 * m32r-rom.c (m32r_load): Call do_cleanups at all returns.
1483
b9635925
TT
14842013-05-30 Tom Tromey <tromey@redhat.com>
1485
1486 * mi/mi-main.c (list_available_thread_groups): Call do_cleanups.
1487
25f43500
TT
14882013-05-30 Tom Tromey <tromey@redhat.com>
1489
1490 * inf-ptrace.c (inf_ptrace_create_inferior): Unconditionally
1491 call discard_cleanups.
1492 (inf_ptrace_attach): Likewise.
1493
d6a2e54a
TT
14942013-05-30 Tom Tromey <tromey@redhat.com>
1495
1496 * remote-mips.c (mips_exit_debug): Call do_cleanups on all
1497 return paths.
1498 (mips_initialize): Likewise.
1499 (common_open): Call do_cleanups.
1500
48be7c1b
TT
15012013-05-30 Tom Tromey <tromey@redhat.com>
1502
1503 * utils.c (internal_vproblem): Call do_cleanups.
1504
e61727ab
TT
15052013-05-30 Tom Tromey <tromey@redhat.com>
1506
1507 * linespec.c (find_linespec_symbols): Don't reassign to 'cleanup'.
1508
b81b921f
TT
15092013-05-30 Tom Tromey <tromey@redhat.com>
1510
1511 * cli/cli-script.c (setup_user_args): Don't return after error.
1512
fe48dfb1
TT
15132013-05-30 Tom Tromey <tromey@redhat.com>
1514
1515 * somread.c (som_symtab_read): Call do_cleanups.
1516
27833de7
TT
15172013-05-30 Tom Tromey <tromey@redhat.com>
1518
1519 * printcmd.c (print_command_1): Unconditionally call do_cleanups.
1520
5b3fca71
TT
15212013-05-30 Tom Tromey <tromey@redhat.com>
1522
1523 * cli/cli-cmds.c (cd_command, alias_command): Call do_cleanups.
1524 * cli/cli-dump.c (restore_binary_file): Call do_cleanups.
1525 * interps.c (interpreter_exec_cmd): Call do_cleanups.
1526 * source.c (show_substitute_path_command): Call do_cleanups.
1527 (unset_substitute_path_command, set_substitute_path_command):
1528 Likewise.
1529 * symfile.c (load_command): Call do_cleanups.
1530
af83e3f8
TT
15312013-05-30 Tom Tromey <tromey@redhat.com>
1532
1533 * contrib/cleanup_check.py: New file.
1534 * contrib/gcc-with-excheck: Add option parsing.
1535
564eac42
JB
15362013-05-30 Joel Brobecker <brobecker@adacore.com>
1537
1538 * windows-nat.c (windows_delete_thread): Add missing space
1539 in cast expression.
1540
47902076
HAQ
15412013-05-30 Hafiz Abid Qadeer <abidh@codesourcery.com>
1542
1543 * inferior.c (top level): Include tilde.h.
1544 (add_inferior_command): Call tilde_expand on the value of 'exec'
1545 argument.
1546
23da373a
YQ
15472013-05-30 Pedro Alves <pedro@codesourcery.com>
1548 Yao Qi <yao@codesourcery.com>
1549
1550 * tracepoint.c (encode_actions_1): Remove parameter 't'.
1551 Caller update.
1552 (encode_actions): Likewise.
1553 * remote.c (remote_download_tracepoint): Caller update.
1554 * tracepoint.h (encode_actions): Update declaration.
1555
a6e6f791
PA
15562013-05-30 Pedro Alves <palves@redhat.com>
1557
1558 * python/python-internal.h (gdb_Py_DECREF): Cast OP to PyObject
1559 pointer.
1560
36d25514
YQ
15612013-05-30 Yao Qi <yao@codesourcery.com>
1562
1563 * remote.c (remote_check_symbols): Remove unused parameter
1564 'objfile'.
1565 Declaration update.
1566 (remote_start_remote, remote_new_objfile): Caller update.
1567
62a813cc
YQ
15682013-05-30 Yao Qi <yao@codesourcery.com>
1569
1570 * mi/mi-cmds.c (mi_cmds): Define MI command
1571 '-exec-arguments' by macro DEF_MI_CMD_CLI_1 instead of
1572 DEF_MI_CMD_CLI.
1573
28439a30
PA
15742013-05-29 Pedro Alves <palves@redhat.com>
1575
1576 * remote.c (remote_insert_breakpoint, remote_remove_breakpoint)
1577 (remote_insert_watchpoint, remote_remove_watchpoint)
1578 (remote_insert_hw_breakpoint, remote_remove_hw_breakpoint)
1579 (remote_verify_memory, compare_sections_command)
1580 (remote_search_memory): Set the general process/thread on the
1581 remote side.
1582
6ac1c082
PA
15832013-05-29 Pedro Alves <palves@redhat.com>
1584
1585 * aarch64-tdep.c: Don't include "features/aarch64-without-fpu.c".
1586 (_initialize_aarch64_tdep): Don't call
1587 initialize_tdesc_aarch64_without_fpu.
1588 * features/Makefile (WHICH): Remove reference to
1589 aarch64-without-fpu.
1590 * features/aarch64-without-fpu.c: Delete file.
1591 * regformats/aarch64-without-fpu.dat: Delete file.
1592
a73e3634
YQ
15932013-05-28 Yao Qi <yao@codesourcery.com>
1594
1595 * tracepoint.c (stringify_collection_list): Remove parameter
1596 'string'.
1597 (encode_actions): Caller update. Remove local variables.
1598
c0ea94eb
YQ
15992013-05-24 Yao Qi <yao@codesourcery.com>
1600
1601 * tracepoint.c (TFILE_PID): Remove.
1602 (tfile_open): Don't add thread and inferior.
1603 (tfile_close): Don't set 'inferior_ptid'. Don't call
1604 exit_inferior_silent.
1605 (tfile_thread_alive): Remove.
1606 (init_tfile_ops): Don't set field 'to_thread_alive' of
1607 tfile_ops.
1608
20d7f211
DE
16092013-05-23 Doug Evans <dje@google.com>
1610
1611 * contrib/cc-with-tweaks.sh (-p): Handle no dwo files.
1612
8658d16d
PA
16132013-05-23 Pedro Alves <palves@redhat.com>
1614
1615 * common/filestuff.c [USE_WIN32API]: Define HAVE_SOCKETS.
1616 [HAVE_SYS_SOCKET_H]: Define HAVE_SOCKETS.
1617 (socket_mark_cloexec, gdb_socketpair_cloexec, gdb_socket_cloexec):
1618 Only define if HAVE_SOCKETS is defined.
1619 * configure.ac: Check for sys/socket.h.
1620 * config.in, configure: Regenerate.
1621
21aa081e
PA
16222013-05-23 Pedro Alves <palves@redhat.com>
1623
1624 * dwarf2read.c (create_dwp_hash_table, create_dwo_in_dwp)
1625 (open_and_init_dwp_file): Use %s/pulongest instead of %u for
1626 printing uint32_t variables.
1627
c2d6af84
PA
16282013-05-23 Pedro Alves <palves@redhat.com>
1629
1630 * NEWS: Mention GDBserver range stepping support.
1631
c1e36e3e
PA
16322013-05-23 Yao Qi <yao@codesourcery.com>
1633 Pedro Alves <palves@redhat.com>
1634
1635 * gdbthread.h (struct thread_control_state) <may_range_step>: New
1636 field.
1637 * infcmd.c (step_once, until_next_command): Enable range stepping.
1638 * infrun.c (displaced_step_prepare): Disable range stepping.
1639 (resume): Disable range stepping if stepping over a breakpoint or
1640 we have software watchpoints. If range stepping is enabled,
1641 assert the thread is in the stepping range.
1642 (clear_proceed_status_thread): Clear may_range_step.
1643 (handle_inferior_event): Disable range stepping as soon as we know
1644 the thread that hit the event. Re-enable it whenever we're going
1645 to step with a step range.
1646 * remote.c (struct vCont_action_support) <r>: New field.
1647 (use_range_stepping): New global.
1648 (remote_vcont_probe): Handle 'r' action.
1649 (append_resumption): Append an 'r' action if the thread may range
1650 step.
1651 (show_range_stepping): New function.
1652 (set_range_stepping): New function.
1653 (_initialize_remote): Call add_setshow_boolean_cmd to register the
1654 'set range-stepping' and 'show range-stepping' commands.
1655 * NEWS: Mention range stepping, the new vCont;r action, and the
1656 new "set/show range-stepping" commands.
1657
d458bd84
PA
16582013-05-23 Yao Qi <yao@codesourcery.com>
1659 Pedro Alves <palves@redhat.com>
1660
1661 * remote.c (struct vCont_action_support): New struct.
1662 (struct remote_state) <support_vCont_t>: Remove field.
1663 <vCont_actions_support>: New field.
1664 (remote_vcont_probe, remote_stop_ns): Update.
1665
ce4c476a
PA
16662013-05-23 Yao Qi <yao@codesourcery.com>
1667 Pedro Alves <palves@redhat.com>
1668
1669 * gdbthread.h (pc_in_thread_step_range): New declaration.
1670 * thread.c (pc_in_thread_step_range): New function.
1671 * infrun.c (handle_inferior_event): Use it.
1672
ce70887a
JB
16732013-05-23 Joel Brobecker <brobecker@adacore.com>
1674
1675 * mi/mi-cmd-break.c (mi_argv_to_format): Use xsnprintf instead
1676 of sprintf.
1677
55b87a52
KS
16782013-05-22 Keith Seitz <keiths@redhat.com>
1679
1680 * ada-lang.c (is_known_support_routine): Add explicit free of
1681 'func_name' from find_frame_funname.
1682 (ada_unhandled_exception_name_addr_from_raise): Add cleanups
1683 for func_name from find_frame_funname.
1684 * python/py-frame.c (frapy_name): Add explicit free of
1685 'name' from find_frame_funname.
1686 * stack.c (find_frame_funname): Add comment explaining that
1687 funcp must be freed by the caller.
1688 Return copy of symbol names instead of pointers.
1689 (print_frame): Add a cleanup for 'funname' from
1690 find_frame_funname.
1691 * stack.h (find_frame_funname): Remove "const" from
1692 'funname' parameter.
1693
5f2e6b00
TT
16942013-05-22 Tom Tromey <tromey@redhat.com>
1695
1696 PR c++/15401:
1697 * c-valprint.c (c_value_print): Use value_addr for
1698 references. Convert back to reference type with value_ref.
1699
d85c4847
EZ
17002013-05-22 Eli Zaretskii <eliz@gnu.org>
1701
1702 * windows-nat.c (handle_unload_dll): Don't call solib_add for the
1703 unloaded DLL, it will be done by handle_solib_event. See
1704 http://sourceware.org/ml/gdb-patches/2013-05/msg00713.html for the
1705 details.
1706
54eb231c
PM
17072013-05-22 Phil Muldoon <pmuldoon@redhat.com>
1708
1709 * ui-out.c: Create typedef ui_out_level_p and define vector
1710 operations for that type.
1711 (struct ui_out): Use a vector instead of an array.
1712 (current_level): Return level from a vector.
1713 (push_level): Create a level in a vector.
1714 (pop_level): Delete a level in a vector.
1715 (ui_out_new): Create initial level zero level, and store in a
1716 vector.
1717 (ui_out_destroy): Add vector cleanup.
1718
ac90359c
PA
17192013-05-22 Pedro Alves <palves@redhat.com>
1720
1721 * python/python-internal.h (gdb_Py_DECREF): Tag with
1722 "ARI: editCase function".
1723
6dcc1893
PP
17242013-05-21 Paul Pluzhnikov <ppluzhnikov@google.com>
1725
1726 * solib-svr4.c (svr4_free_so): Protect against NULL dereference.
1727
c8c735b9
PA
17282013-05-21 Pedro Alves <palves@redhat.com>
1729
1730 * python/py-prettyprint.c (apply_val_pretty_printer): Check
1731 whether PRINTER is NULL before installing a Py_DECREF cleanup.
1732 * python/py-utils.c (py_decref): Don't check for NULL before
1733 calling Py_DECREF.
1734
1915daeb
PA
17352013-05-21 Pedro Alves <palves@redhat.com>
1736
1737 * python/py-utils.c (py_decref): Remove extra braces.
1738 (gdb_pymodule_addobject): Remove extra braces.
1739 * python-internal.h (gdb_Py_DECREF): New static inline function.
1740 (Py_DECREF): Redefine as calling gdb_Py_DECREF.
1741
bd9673a4
PW
17422013-05-21 Philippe Waroquiers <philippe.waroquiers@skynet.be>
1743
1744 * breakpoints.c (detach_breakpoints): Do not
1745 detach breakpoints locations with loc_type bp_loc_other.
1746
ff6009d0
JK
17472013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1748
1749 Workaround Python 2.6.
1750 * python/py-utils.c (gdb_pymodule_addobject): Wrap Py_DECREF into
1751 a block.
1752
3641da11
JK
17532013-05-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1754
1755 Code cleanup: constification.
1756 * solib.c (solib_ops): Make return type and ops variable type const.
1757 (set_solib_ops): Make the new_ops parameter and ops variable const.
1758 (solib_find, solib_map_sections, clear_so, free_so, update_solib_list)
1759 (solib_add, solib_keep_data_in_core, clear_solib)
1760 (solib_create_inferior_hook, in_solib_dynsym_resolve_code)
1761 (reload_shared_libraries, solib_global_lookup): Make the ops variable
1762 const.
1763 * solib.h (set_solib_ops): Make the new_ops parameter const.
1764
776af39e
JB
17652013-05-21 Joel Brobecker <brobecker@adacore.com>
1766
1767 * data-directory/Makefile.in (SYSTEM_GDBINIT_SRCDIR): New
1768 variable.
1769 (VPATH): Add SYSTEM_GDBINIT_SRCDIR.
1770 (SYSTEM_GDBINIT_DIR, SYSTEM_GDBINIT_INSTALL_DIR)
1771 (SYSTEM_GDBINIT_FILES): New variables.
1772 (all): Add stamp-system-gdbinit.
1773 (stamp-system-gdbinit): New rule.
1774 (clean-system-gdbinit, install-system-gdbinit)
1775 (uninstall-system-gdbinit): New rules. Make them .PHONY.
1776 (install-only): Add dependency on install-system-gdbinit.
1777 (uninstall): Add dependency on uninstall-system-gdbinit.
1778 (clean): Add dependency on clean-system-gdbinit.
1779 * system-gdbinit/elinos.py: New file.
1780 * system-gdbinit/wrs-linux.py: New file.
1781
1509e573
JB
17822013-05-21 Joel Brobecker <brobecker@adacore.com>
1783
1784 * ada-lang.c (old_renaming_is_invisible): Fix cleanup leak.
1785
c5867ab6
HZ
17862013-05-21 Hui Zhu <hui@codesourcery.com>
1787
1788 * breakpoint.c (dprintf_breakpoint_ops): Remove its static.
1789 * breakpoint.h (dprintf_breakpoint_ops): Add extern.
1790 * mi/mi-cmd-break.c (ctype.h): New include.
1791 (gdb_obstack.h): New include.
1792 (mi_argv_to_format, mi_cmd_break_insert_1): New.
1793 (mi_cmd_break_insert): Call mi_cmd_break_insert_1.
1794 (mi_cmd_dprintf_insert): New.
1795 * mi/mi-cmds.c (mi_cmds): Add "dprintf-insert".
1796 * mi/mi-cmds.h (mi_cmd_dprintf_insert): New extern.
1797
7d38e38f
TT
17982013-05-20 Tom Tromey <tromey@redhat.com>
1799
1800 * python/py-prettyprint.c (search_pp_list): Decref 'attr'.
1801
97b77b39
TT
18022013-05-20 Tom Tromey <tromey@redhat.com>
1803
1804 * python/py-value.c (valpy_get_dynamic_type): Simplify
1805 dynamic_type assignment. Use Py_XINCREF.
1806
53e66479
TT
18072013-05-20 Tom Tromey <tromey@redhat.com>
1808
1809 * python/py-type.c (typy_fields): Unconditionally decref 'r'.
1810
dcf87832
TT
18112013-05-20 Tom Tromey <tromey@redhat.com>
1812
1813 * python/py-frame.c (frapy_older, frapy_newer, gdbpy_newest_frame)
1814 (gdbpy_selected_frame): Move object-construction code
1815 out of TRY_CATCH.
1816
aa36459a
TT
18172013-05-20 Tom Tromey <tromey@redhat.com>
1818
1819 * python/py-arch.c (gdbpy_initialize_arch): Use
1820 gdb_pymodule_addobject.
1821 * python/py-block.c (gdbpy_initialize_blocks): Use
1822 gdb_pymodule_addobject.
1823 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Use
1824 gdb_pymodule_addobject.
1825 * python/py-cmd.c (gdbpy_initialize_breakpoints): Use
1826 gdb_pymodule_addobject.
1827 * python/py-event.c (gdbpy_initialize_event_generic): Use
1828 gdb_pymodule_addobject.
1829 * python/py-evtregistry.c (gdbpy_initialize_eventregistry): Use
1830 gdb_pymodule_addobject.
1831 * python/py-evts.c (add_new_registry): Use
1832 gdb_pymodule_addobject.
1833 (gdbpy_initialize_py_events): Likewise.
1834 * python/py-finishbreakpoint.c
1835 (gdbpy_initialize_finishbreakpoints): Use
1836 gdb_pymodule_addobject.
1837 * python/py-frame.c (gdbpy_initialize_frames): Use
1838 gdb_pymodule_addobject.
1839 * python/py-function.c (gdbpy_initialize_functions): Use
1840 gdb_pymodule_addobject.
1841 * python/py-inferior.c (gdbpy_initialize_inferior): Use
1842 gdb_pymodule_addobject.
1843 * python/py-infthread.c (gdbpy_initialize_thread): Use
1844 gdb_pymodule_addobject.
1845 * python/py-objfile.c (gdbpy_initialize_objfile): Use
1846 gdb_pymodule_addobject.
1847 * python/py-param.c (gdbpy_initialize_parameters): Use
1848 gdb_pymodule_addobject.
1849 * python/py-progspace.c (gdbpy_initialize_pspace): Use
1850 gdb_pymodule_addobject.
1851 * python/py-symbol.c (gdbpy_initialize_symbols): Use
1852 gdb_pymodule_addobject.
1853 * python/py-symtab.c (gdbpy_initialize_symtabs): Use
1854 gdb_pymodule_addobject.
1855 * python/py-type.c (gdbpy_initialize_types): Use
1856 gdb_pymodule_addobject.
1857 * python/py-utils.c (gdb_pymodule_addobject): New function.
1858 * python/py-value.c (gdbpy_initialize_values): Use
1859 gdb_pymodule_addobject.
1860 * python/python-internal.h (gdb_pymodule_addobject): Declare.
1861 * python/python.c (_initialize_python): Use
1862 gdb_pymodule_addobject.
1863
3d4a3c3e
TT
18642013-05-20 Tom Tromey <tromey@redhat.com>
1865
1866 * python/py-cmd.c (cmdpy_completer): Use explicit decref.
1867 * python/py-param.c (get_set_value, get_show_value): Use
1868 explicit decrefs.
1869 * python/python.c (start_type_printers, apply_type_printers):
1870 Use explicit decrefs.
1871
72ff8829
TT
18722013-05-20 Tom Tromey <tromey@redhat.com>
1873
1874 * python/py-evts.c (gdbpy_initialize_py_events): Don't
1875 incref the module.
1876
02146ba5
TT
18772013-05-20 Tom Tromey <tromey@redhat.com>
1878
1879 * python/python.c (gdbpy_run_events): Decref the result
1880 of PyObject_CallObject.
1881
33ee792f
TT
18822013-05-20 Tom Tromey <tromey@redhat.com>
1883
1884 * python/py-symtab.c (set_sal): Use
1885 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION. Return -1 on error.
1886 (symtab_and_line_to_sal_object): Update.
1887
fcb49fc8
TT
18882013-05-20 Tom Tromey <tromey@redhat.com>
1889
1890 * python/py-param.c (compute_enum_values): Decref 'item'.
1891
0646da15
TT
18922013-05-20 Tom Tromey <tromey@redhat.com>
1893
1894 * mi/mi-main.c: Include python-internal.h.
1895 (mi_cmd_list_features): Check gdb_python_initialized.
1896 * python/py-inferior.c (python_on_normal_stop, python_on_resume)
1897 (python_inferior_exit, python_new_objfile, add_thread_object)
1898 (delete_thread_object, py_free_inferior): Check
1899 gdb_python_initialized.
1900 * python/py-prettyprint.c (apply_val_pretty_printer): Check
1901 gdb_python_initialized.
1902 * python/py-type.c (save_objfile_types): Check
1903 gdb_python_initialized.
1904 * python/python-internal.h (gdb_python_initialized): Declare.
1905 * python/python.c (ensure_python_env): Throw exception if
1906 Python not initialized.
1907 (before_prompt_hook, source_python_script_for_objfile)
1908 (start_type_printers, apply_type_printers,
1909 free_type_printers): Check gdb_python_initialized.
1910 * varobj.c (varobj_get_display_hint)
1911 (dynamic_varobj_has_child_method, update_dynamic_varobj_children)
1912 (install_new_value_visualizer, varobj_set_visualizer)
1913 (value_get_print_value): Check gdb_python_initialized.
1914
999633ed
TT
19152013-05-20 Tom Tromey <tromey@redhat.com>
1916
1917 * python/py-arch.c (gdbpy_initialize_arch): Return 'int'.
1918 Check errors.
1919 * python/py-auto-load.c (gdbpy_initialize_auto_load): Return 'int'.
1920 * python/py-block.c (gdbpy_initialize_blocks): Return 'int'.
1921 Check errors.
1922 * python/py-breakpoint.c (gdbpy_initialize_breakpoints): Return 'int'.
1923 Check errors.
1924 * python/py-cmd.c (gdbpy_initialize_commands): Return 'int'.
1925 Check errors.
1926 * python/py-event.c (gdbpy_initialize_event): Return 'int'.
1927 Check errors.
1928 * python/py-event.h (GDBPY_NEW_EVENT_TYPE): Change generated
1929 init function to return 'int'.
1930 * python/py-evtregistry.c (gdbpy_initialize_eventregistry):
1931 Return 'int'. Check errors.
1932 * python/py-evts.c (gdbpy_initialize_py_events): Return 'int'.
1933 Check errors.
1934 * python/py-finishbreakpoint.c (gdbpy_initialize_finishbreakpoints):
1935 Return 'int'. Check errors.
1936 * python/py-frame.c (gdbpy_initialize_frames): Return 'int'.
1937 Check errors.
1938 * python/py-function.c (gdbpy_initialize_functions): Return 'int'.
1939 Check errors.
1940 * python/py-gdb-readline.c (gdbpy_initialize_gdb_readline):
1941 Check errors.
1942 * python/py-inferior.c (gdbpy_initialize_inferior): Return 'int'.
1943 Check errors.
1944 * python/py-infthread.c (gdbpy_initialize_thread): Return 'int'.
1945 Check errors.
1946 * python/py-lazy-string.c (gdbpy_initialize_lazy_string): Return 'int'.
1947 Check errors.
1948 * python/py-objfile.c (gdbpy_initialize_objfile): Return 'int'.
1949 Check errors.
1950 * python/py-param.c (gdbpy_initialize_parameters): Return 'int'.
1951 Check errors.
1952 * python/py-progspace.c (gdbpy_initialize_pspace): Return 'int'.
1953 Check errors.
1954 * python/py-symbol.c (gdbpy_initialize_symbols): Return 'int'.
1955 Check errors.
1956 * python/py-symtab.c (gdbpy_initialize_symtabs): Return 'int'.
1957 Check errors.
1958 * python/py-type.c (gdbpy_initialize_types): Return 'int'.
1959 Check errors.
1960 * python/py-value.c (gdbpy_initialize_values): Return 'int'.
1961 Check errors.
1962 * python/python-internal.h (gdbpy_initialize_auto_load,
1963 gdbpy_initialize_values, gdbpy_initialize_frames,
1964 gdbpy_initialize_symtabs, gdbpy_initialize_commands,
1965 gdbpy_initialize_symbols, gdbpy_initialize_symtabs,
1966 gdbpy_initialize_blocks, gdbpy_initialize_types,
1967 gdbpy_initialize_functions, gdbpy_initialize_pspace,
1968 gdbpy_initialize_objfile, gdbpy_initialize_breakpoints,
1969 gdbpy_initialize_finishbreakpoints,
1970 gdbpy_initialize_lazy_string, gdbpy_initialize_parameters,
1971 gdbpy_initialize_thread, gdbpy_initialize_inferior,
1972 gdbpy_initialize_eventregistry, gdbpy_initialize_event,
1973 gdbpy_initialize_py_events, gdbpy_initialize_stop_event,
1974 gdbpy_initialize_signal_event,
1975 gdbpy_initialize_breakpoint_event,
1976 gdbpy_initialize_continue_event,
1977 gdbpy_initialize_exited_event, gdbpy_initialize_thread_event,
1978 gdbpy_initialize_new_objfile_event, gdbpy_initialize_arch):
1979 Update. Use CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
1980 * python/python.c (gdb_python_initialized): New global.
1981 (gdbpy_initialize_events): Return 'int'. Check errors.
1982 (_initialize_python): Check errors. Set
1983 gdb_python_initialized.
1984
18868860
TT
19852013-05-20 Tom Tromey <tromey@redhat.com>
1986
1987 * python/py-finishbreakpoint.c (bpfinishpy_out_of_scope):
1988 Decref the reslut of PyObject_CallMethod.
1989
9f4ff0c2
TT
19902013-05-20 Tom Tromey <tromey@redhat.com>
1991
1992 * python/py-event.c (gdbpy_initialize_event_generic): Return
1993 early if PyType_Ready fails.
1994
0d3a2e8a
TT
19952013-05-20 Tom Tromey <tromey@redhat.com>
1996
1997 * python/py-type.c (make_fielditem): Add gdb_assert_not_reached
1998 as 'default' in the switch.
1999
b86af38a
TT
20002013-05-20 Tom Tromey <tromey@redhat.com>
2001
2002 * python/py-inferior.c (gdbpy_inferiors): Update. Hoist
2003 get_addr_from_python calls out of TRY_CATCH.
2004 (infpy_write_memory, infpy_search_memory): Likewise.
2005 * python/py-utils.c (get_addr_from_python): Return negative
2006 value on error. Use TRY_CATCH.
2007 * python/python-internal.h (get_addr_from_python): Use
2008 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
2009
c127ec58
TT
20102013-05-20 Tom Tromey <tromey@redhat.com>
2011
2012 * python/py-event.c (evpy_emit_event): Decref the
2013 result of PyObject_CallFunctionObjArgs.
2014
ba327838
TT
20152013-05-20 Tom Tromey <tromey@redhat.com>
2016
2017 * python/py-cmd.c (cmdpy_completer): Use iterator protocol.
2018 Correctly decref.
2019
d8191432
TT
20202013-05-20 Tom Tromey <tromey@redhat.com>
2021
2022 * python/py-cmd.c (cmdpy_init): Decref 'ds_obj'.
2023
5d153bd1
TT
20242013-05-20 Tom Tromey <tromey@redhat.com>
2025
2026 * python/py-event.h (gdbpy_initialize_event_generic): Use
2027 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
2028 * python/py-evts.c (add_new_registry): Use
2029 CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION.
2030 * python/python-internal.h
2031 (CPYCHECKER_NEGATIVE_RESULT_SETS_EXCEPTION): New macro.
2032
56cc411c
TT
20332013-05-20 Tom Tromey <tromey@redhat.com>
2034
2035 * python/py-arch.c (archpy_disassemble): Update.
2036 * python/py-type.c (typy_get_composite, typy_lookup_typename)
2037 (typy_lookup_type): Use GDB_PY_HANDLE_EXCEPTION.
2038 * python/py-utils.c (gdbpy_convert_exception): Return 'void'.
2039 * python/python-internal.h (CPYCHECKER_SETS_EXCEPTION): New
2040 macro.
2041 (GDB_PY_HANDLE_EXCEPTION): Update.
2042 (gdbpy_convert_exception): Update. Use CPYCHECKER_SETS_EXCEPTION.
2043
8919e174
TT
20442013-05-20 Tom Tromey <tromey@redhat.com>
2045
2046 * python/python-internal.h (events_object_type): Remove.
2047
9b08f225
TT
20482013-05-20 Tom Tromey <tromey@redhat.com>
2049
2050 * python/py-event.h (evpy_emit_event): Use
2051 CPYCHECKER_STEALS_REFERENCE_TO_ARG.
2052 * python/python-internal.h (CPYCHECKER_STEALS_REFERENCE_TO_ARG):
2053 New macro.
2054
f04010ff
TT
20552013-05-20 Tom Tromey <tromey@redhat.com>
2056
2057 * py-evtregistry.c (create_event_object): Decref
2058 eventregistry_object if PyList_New fails.
2059
3919fd96
TT
20602013-05-20 Tom Tromey <tromey@redhat.com>
2061
2062 * py-cmd.c (gdbpy_string_to_argv): Check result of
2063 PyList_New.
2064
0430e8cb
TT
20652013-05-20 Tom Tromey <tromey@redhat.com>
2066
2067 * python/python.c (before_prompt_hook): Add cleanup to
2068 decref 'hook'.
2069
764123e4
TT
20702013-05-20 Tom Tromey <tromey@redhat.com>
2071
2072 * python/py-function.c (fnpy_init): Decref result of
2073 PyObject_GetAttrString.
2074
634c58be
TT
20752013-05-20 Tom Tromey <tromey@redhat.com>
2076
2077 * python/py-threadevent.c (get_event_thread): Use
2078 CPYCHECKER_RETURNS_BORROWED_REF.
2079 * python/python-internal.h (CPYCHECKER_RETURNS_BORROWED_REF):
2080 New define.
2081 (pspace_to_pspace_object, objfile_to_objfile_object)
2082 (find_thread_object): Use it.
2083
62eec1a5
TT
20842013-05-20 Tom Tromey <tromey@redhat.com>
2085
2086 * python/py-arch.c (arch_object_type): Use
2087 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2088 * python/py-block.c (block_syms_iterator_object_type):
2089 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2090 * python/py-bpevent.c (breakpoint_event_object_type):
2091 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2092 * python/py-cmd.c (cmdpy_object_type): Use
2093 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2094 * python/py-continueevent.c (continue_event_object_type):
2095 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2096 * python/py-event.h (GDBPY_NEW_EVENT_TYPE):
2097 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2098 * python/py-events.h (thread_event_object_type):
2099 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2100 * python/py-evtregistry.c (eventregistry_object_type): Use
2101 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2102 * python/py-exitedevent.c (exited_event_object_type):
2103 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2104 * python/py-finishbreakpoint.c (finish_breakpoint_object_type):
2105 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2106 * python/py-function.c (fnpy_object_type): Use
2107 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2108 * python/py-inferior.c (inferior_object_type, membuf_object_type):
2109 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2110 * python/py-infthread.c (thread_object_type): Use
2111 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2112 * python/py-lazy-string.c (lazy_string_object_type):
2113 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2114 * python/py-newobjfileevent.c (new_objfile_event_object_type):
2115 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2116 * python/py-objfile.c (objfile_object_type): Use
2117 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2118 * python/py-param.c (parmpy_object_type):
2119 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2120 * python/py-progspace.c (pspace_object_type):
2121 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2122 * python/py-signalevent.c (signal_event_object_type):
2123 Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2124 * python/py-symtab.c (symtab_object_type, sal_object_type): Use
2125 CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2126 * python/py-type.c (type_object_type, field_object_type)
2127 (type_iterator_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2128 * python/py-internal.h (CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF): New
2129 define.
2130 (value_object_type, block_object_type, symbol_object_type)
2131 (event_object_type, stop_event_object_type, breakpoint_object_type)
2132 (frame_object_type): Use CPYCHECKER_TYPE_OBJECT_FOR_TYPEDEF.
2133
81ea8796
AT
21342013-05-20 Andreas Tobler <andreas@fgznet.ch>
2135
2136 * Makefile.in (ALL_TARGET_OBS): Add ppcfbsd-tdep.o.
2137 (ALLDEPFILES): Add ppcfbsd-nat.c and ppcfbsd-tdep.c.
2138
a2ce51a0
DE
21392013-05-20 Doug Evans <dje@google.com>
2140
2141 When reading CU, stay in DWO. Be more tolerent of bad debug info.
2142 For Fission.
2143 * dwarf2read.c (struct dwarf2_per_cu_data): New member
2144 reading_dwo_directly.
2145 (struct signatured_type): New member dwo_unit.
2146 (struct die_reader_specs): New member comp_dir.
2147 (create_signatured_type_table_from_index): Use malloc for
2148 all_type_units instead of objfile's obstack.
2149 (create_all_type_units): Ditto.
2150 (fill_in_sig_entry_from_dwo_entry): New function.
2151 (add_type_unit): New function.
2152 (lookup_dwo_signatured_type): New function.
2153 (lookup_dwp_signatured_type): New function.
2154 (lookup_signatured_type): New arg cu. All callers updated.
2155 (init_cu_die_reader): Initialize comp_dir.
2156 (read_cutu_die_from_dwo): New arg stub_comp_dir. All callers updated.
2157 Change assert of matching type signatures to call error on mismatch.
2158 (lookup_dwo_unit): Add assert.
2159 (init_tu_and_read_dwo_dies): New function.
2160 (init_cutu_and_read_dies): Call it.
2161 (build_type_unit_groups): Handle case of no type unit groups created.
2162 (hash_dwo_file, eq_dwo_file): Handle missing comp_dir.
2163 (lookup_dwo_cutu): Tweak complaint.
2164 (dwarf2_free_abbrev_table): Check for NULL abbrev_table.
2165 (dwarf2_per_objfile_free): Free all_type_units.
2166
a25cd31f
JB
21672013-05-20 Joel Brobecker <brobecker@adacore.com>
2168
2169 * windows-nat.c (handle_unload_dll): Add missing empty line.
2170
4d804846
JB
21712013-05-20 Joel Brobecker <brobecker@adacore.com>
2172
2173 * dwarf2read.c (prototyped_function_p): New function.
2174 (read_subroutine_type): Use it.
2175
1c432e72
JB
21762013-05-20 Joel Brobecker <brobecker@adacore.com>
2177
2178 * rs6000-aix-tdep.c: De-indent some example code provided
2179 as a comment.
2180
4feebbdd
EBM
21812013-05-17 Edjunior Machado <emachado@linux.vnet.ibm.com>
2182
2183 * ppc-linux-nat.c (ppc_linux_region_ok_for_hw_watchpoint): Check if the
2184 region is ok for a hardware watchpoint using the new ptrace interface
2185 on Power servers.
2186
7d0c9981
DE
21872013-05-17 Doug Evans <dje@google.com>
2188
2189 * NEWS: Mention new maintenance commands check-symtabs, and
2190 expand-symtabs, and renamed check-psymtabs.
2191 * psymtab.c (maintenance_check_psymtabs): Renamed from
2192 maintenance_check_symtabs. Only process already-expanded symbol
2193 tables.
2194 (_initialize_psymtab): Update.
2195 * symmisc.c (maintenance_check_symtabs): New function.
2196 (maintenance_expand_name_matcher): New function
2197 (maintenance_expand_file_matcher): New function
2198 (maintenance_expand_symtabs): New function.
2199 (_initialize_symmisc): Add "mt check-symtabs" and "mt expand-symtabs"
2200 commands.
2201
6cbc7c3d
TT
22022013-05-17 Tom Tromey <tromey@redhat.com>
2203
2204 * python/py-inferior.c (infpy_read_memory): Don't call
2205 PyErr_SetString if PyObject_New fails.
2206 * python/py-frame.c (frame_info_to_frame_object): Don't call
2207 PyErr_SetString if PyObject_New fails.
2208
a48b32c0
L
22092013-05-17 Pavel Chupin <pavel.v.chupin@intel.com>
2210
2211 * acinclude.m4: Add check for dlopen in libdl.
2212 * configure.ac: Ditto.
2213 * configure: Regenerate.
2214
3de661e6
PM
22152013-05-17 Phil Muldoon <pmuldoon@redhat.com>
2216
2217 * frame.c (frame_stash): Convert to htab.
2218 (frame_addr_hash): New function.
2219 (frame_addr_hash_eq): New function.
2220 (frame_stash_create): Convert function to create
2221 a hash table.
2222 (frame_stash_add): Convert function to add an entry to a hash
2223 table.
2224 (frame_stash_find): Convert function to search the hash table.
2225 (frame_stash_invalidate): Convert function to empty the hash
2226 table.
2227 (get_frame_id): Only add to stash if a frame_id is created.
2228 (_initialize_frame): Call frame_stash_create.
2229
bb4168a9 22302013-05-16 Yue Lu <hacklu.newborn@gmail.com> (tiny change)
036c3acb
TS
2231
2232 * configure.ac: Ensure MIG is available when building for GNU Hurd
2233 hosts.
2234 * configure: Regenerate.
2235
d1be3247
JB
22362013-05-16 Joel Brobecker <brobecker@adacore.com>
2237
2238 * dwarf2read.c (set_cu_language): Add DW_LANG_UPC handling.
2239
b8fea896
JB
22402013-05-16 Joel Brobecker <brobecker@adacore.com>
2241
2242 * ada-lang.c (ada_make_symbol_completion_list): Make sure
2243 all cleanups are done before returning from this function.
2244
af880d85
JB
22452013-05-15 Joel Brobecker <brobecker@adacore.com>
2246
2247 * utils.h: #include "exceptions.h".
2248 (enum errors): Remove partial declaration.
2249
356a5233
JB
22502013-05-15 Joel Brobecker <brobecker@adacore.com>
2251
2252 * gdbarch.sh (core_xfer_shared_libraries_aix): New method.
2253 * gdbarch.h, gdbarch.c: Regenerate.
2254 * corelow.c (core_xfer_partial): Add TARGET_OBJECT_LIBRARIES_AIX
2255 handling.
2256
2257 * rs6000-aix-tdep.h: New file.
2258 * Makefile.in (HFILES_NO_SRCDIR): Add rs6000-aix-tdep.h.
2259 * rs6000-aix-tdep.c: Include "rs6000-aix-tdep.h" and
2260 "xml-utils.h".
2261 (struct field_info, struct ld_info_desc): New types.
2262 (ld_info32_desc, ld_info64_desc): New static constants.
2263 (struct ld_info): New type.
2264 (rs6000_aix_extract_ld_info): New function.
2265 (rs6000_aix_shared_library_to_xml): Likewise.
2266 (rs6000_aix_ld_info_to_xml): Likewise.
2267 (rs6000_aix_core_xfer_shared_libraries_aix): Likewise.
2268 (rs6000_aix_init_osabi): Add call to
2269 set_gdbarch_core_xfer_shared_libraries_aix.
2270 * rs6000-nat.c: Add "rs6000-aix-tdep.h" include.
2271 Remove "xml-utils.h" include.
2272 (LdInfo): Delete typedef.
2273 (ARCH64_DECL, LDI_FIELD, LDI_NEXT, LDI_FD, LDI_FILENAME):
2274 Delete macros.
2275 (rs6000_ptrace_ldinfo): Change return type to gdb_byte *.
2276 Adjust code accordingly.
2277 (rs6000_core_ldinfo): Delete, folded into
2278 rs6000_aix_core_xfer_shared_libraries_aix.
2279 (rs6000_xfer_shared_library): Delete.
2280 (rs6000_xfer_shared_libraries): Reimplement.
2281
742ce053
MM
22822013-05-15 Markus Metzger <markus.t.metzger@intel.com>
2283
2284 * record.c (record_goto_cmdlist): New.
2285 (cmd_record_goto): Split into this ...
2286 (cmd_record_goto_begin): ... this
2287 (cmd_record_goto_end): ... and this.
2288 (_initialize_record): Change "record goto" to prefix command.
2289 Add commands for "record goto begin" and "record goto end".
2290 Add an alias for "record goto start" to "record goto begin".
2291
e93ba630
JK
22922013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2293
2294 * linespec.c (convert_linespec_to_sals): New comment for
2295 SOURCE_FILENAME assignment.
2296
5821aace
JK
22972013-05-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2298
2299 * cleanups.c (restore_my_cleanups): Replace gdb_assert by
2300 internal_warning.
2301
a1b8c4cc
TT
23022013-05-14 Tom Tromey <tromey@redhat.com>
2303
2304 * eval.c (parse_and_eval_long): Make 'exp' const.
2305 * value.h (parse_and_eval_long): Update.
2306
23b3a2c3
TT
23072013-05-14 Tom Tromey <tromey@redhat.com>
2308
2309 * ui-file.c (gdb_fopen): Make arguments const.
2310 * ui-file.h (gdb_fopen): Make arguments const.
2311
ca623f82
TT
23122013-05-14 Tom Tromey <tromey@redhat.com>
2313
2314 * remote.c (remote_set_trace_notes): Make arguments const.
2315 * target.c (update_current_target): Update cast.
2316 * target.h (to_set_trace_notes): Make arguments const.
2317
503ebb2c
TT
23182013-05-14 Tom Tromey <tromey@redhat.com>
2319
2320 * go32-nat.c (go32_terminal_info): Make 'args' const.
2321 * inferior.h (child_terminal_info): Update.
2322 * inflow.c (child_terminal_info): Make 'args' const.
2323 * target.c (default_terminal_info): Make 'args' const.
2324 (debug_to_terminal_save_ours): Likewise.
2325 * target.h (struct target_ops) <to_terminal_info>: Make argument
2326 const.
2327
85e1311a
TT
23282013-05-13 Tom Tromey <tromey@redhat.com>
2329
2330 * gcore.c (create_gcore_bfd): Make 'filename' const.
2331 * gcore.h (create_gcore_bfd): Make 'filename' const.
2332 * record-full.c (record_full_save): Make 'recfilename' const.
2333 * target.c (target_save_record): Make 'filename' const.
2334 * target.h (struct target_ops) <to_save_record>: Make 'filename'
2335 const.
2336 (target_save_record): Likewise.
2337
d62bfeaf
TT
23382013-05-13 Tom Tromey <tromey@redhat.com>
2339
92ce080b 2340 PR gdb/15338:
d62bfeaf
TT
2341 * dwarf2read.c (dwarf2_record_block_ranges): Ensure that the
2342 ranges section has been read.
2343
ac1ca910
TT
23442013-05-13 Tom Tromey <tromey@redhat.com>
2345
2346 PR exp/15364:
2347 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
2348 STRUCTOP_PTR>: Return a not_lval value for
2349 EVAL_AVOID_SIDE_EFFECTS.
2350 * opencl-lang.c (evaluate_subexp_opencl): Return a not_lval value
2351 for EVAL_AVOID_SIDE_EFFECTS.
2352
36d1c68c
JB
23532013-05-13 Joel Brobecker <brobecker@adacore.com>
2354
2355 * rs6000-aix-tdep.c (rs6000_push_dummy_call): Convert
2356 floating point registers to register type before storing
2357 value.
2358 * rs6000-lynx178-tdep.c (rs6000_lynx178_push_dummy_call):
2359 Likewise.
2360
21ff4686
TT
23612013-05-10 Joel Brobecker <brobecker@adacore.com>
2362 Tom Tromey <tromey@redhat.com>
2363
2364 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
2365 New functions.
2366 * common/filestuff.c (mark_fd_no_cloexec, unmark_fd_no_cloexec):
2367 Declare.
2368 * darwin-nat.c (darwin_pre_ptrace): Use mark_fd_no_cloexec.
2369 (darwin_ptrace_him): Use unmark_fd_no_cloexec.
2370 * inf-ttrace.c (do_cleanup_pfds): Use unmark_fd_no_cloexec.
2371 (inf_ttrace_prepare): Use mark_fd_no_cloexec.
2372
d3685d60
TT
23732013-05-10 Freddie Chopin <freddie_chopin@op.pl>
2374 Tom Tromey <tromey@redhat.com>
2375
2376 PR build/15414:
2377 * configure: Rebuild.
2378 * configure.ac (build_warnings): Do not use -Wformat-nonliteral
2379 with -Wno-format.
2380
eb9fe518
PA
23812013-05-10 Pedro Alves <palves@redhat.com>
2382
2383 * remote.c (_initialize_remote): Fix spelling of
2384 qXfer:traceframe-info:read packet in packet config command.
2385
9779ab84
PA
23862013-05-10 David Taylor <dtaylor@emc.com>
2387
2388 PR remote/15455
2389
2390 * remote.c (remote_trace_set_readonly_regions): Do not overwrite
2391 "QTro" at start of packet.
2392
060cfbef
JB
23932013-05-10 Joel Brobecker <brobecker@adacore.com>
2394
2395 * solib-aix.c (solib_aix_relocate_section_addresses):
2396 For the .bss section action, apply the same offset as
2397 the .data section.
2398
ab1c4e88
JB
23992013-05-10 Joel Brobecker <brobecker@adacore.com>
2400
2401 * solib-aix.c (solib_aix_relocate_section_addresses):
2402 Remove FIXME comment.
2403
c1357578
JB
24042013-05-10 Joel Brobecker <brobecker@adacore.com>
2405
2406 PR tdep/15420:
2407 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
2408 New functions, directly copied from sparc-sol-thread.c.
2409 * sparc-sol-thread.c: Delete.
2410 * configure.ac: Remove code handling sparc-solaris-thread.c.
2411 * configure: Regenerate.
2412
1e611234
PM
24132013-05-10 Phil Muldoon <pmuldoon@redhat.com>
2414
2415 * stack.c (backtrace_command_1): Add "no-filters", and Python frame
2416 filter logic.
2417 (backtrace_command): Add "no-filters" option parsing.
2418 (_initialize_stack): Alter help to reflect "no-filters" option.
2419 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-framefilter.o
2420 (SUBDIR_PYTHON_SRCS): Add py-framefilter.c
2421 (py-frame.o): Add target
2422 * data-directory/Makefile.in (PYTHON_DIR): Add Python frame
2423 filter files.
2424 * python/python.h: Add new frame filter constants, and flag enum.
2425 (apply_frame_filter): Add definition.
2426 * python/python.c (apply_frame_filter): New non-Python
2427 enabled function.
2428 * python/py-utils.c (py_xdecref): New function.
2429 (make_cleanup_py_xdecref): Ditto.
2430 * python/py-objfile.c: Declare frame_filters dictionary.
2431 (objfpy_dealloc): Add frame_filters dealloc.
2432 (objfpy_new): Initialize frame_filters attribute.
2433 (objfile_to_objfile_object): Ditto.
2434 (objfpy_get_frame_filters): New function.
2435 (objfpy_set_frame_filters): New function.
2436 * python/py-progspace.c: Declare frame_filters dictionary.
2437 (pspy_dealloc): Add frame_filters dealloc.
2438 (pspy_new): Initialize frame_filters attribute.
2439 (pspacee_to_pspace_object): Ditto.
2440 (pspy_get_frame_filters): New function.
2441 (pspy_set_frame_filters): New function.
2442 * python/py-framefilter.c: New file.
2443 * python/lib/gdb/command/frame_filters.py: New file.
2444 * python/lib/gdb/frames.py: New file.
2445 * python/lib/gdb/__init__.py: Initialize global frame_filters
2446 dictionary
2447 * python/lib/gdb/FrameDecorator.py: New file.
2448 * python/lib/gdb/FrameIterator.py: New file.
2449 * mi/mi-cmds.c (mi_cmds): Add frame filters command.
2450 * mi/mi-cmds.h: Declare.
2451 * mi/mi-cmd-stack.c (mi_cmd_stack_list_frames): Add
2452 --no-frame-filter logic, and Python frame filter logic.
2453 (stack_enable_frame_filters): New function.
2454 (parse_no_frame_option): Ditto.
2455 (mi_cmd_stack_list_frames): Add --no-frame-filter and Python frame
2456 filter logic.
2457 (mi_cmd_stack_list_locals): Ditto.
2458 (mi_cmd_stack_list_args): Ditto.
2459 (mi_cmd_stack_list_variables): Ditto.
2460 * NEWS: Add frame filter note.
2461
2cb9c859
DE
24622013-05-09 Doug Evans <dje@google.com>
2463
6bf667bb
DE
2464 * symfile.c (syms_from_objfile_1): Delete args offsets, num_offsets.
2465 All callers updated.
2466 (syms_from_objfile): Ditto. Make static.
2467 (symbol_file_add_with_addrs): Renamed from
2468 symbol_file_add_with_addrs_or_offsets. Delete args offsets,
2469 num_offsets. All callers updated.
2470 * symfile.h (syms_from_objfile): Delete.
2471
2cb9c859
DE
2472 * symfile.c (decrement_reading_symtab): Add assert.
2473 (increment_reading_symtab): Ditto.
2474
40aea477
JB
24752013-05-09 Joel Brobecker <brobecker@adacore.com>
2476
2477 * source.c (forward_search_command): Replace call to getc
2478 by call to fgetc.
2479 (reverse_search_command): Likewise.
2480
680d1742
DE
24812013-05-08 Doug Evans <dje@google.com>
2482
2483 * psymtab.c (expand_symtabs_matching_via_partial): Fix file name
2484 matching test.
2485
17e760ae
JB
24862013-05-08 Joel Brobecker <brobecker@adacore.com>
2487
2488 * sol-thread.c (info_cb): Factorize the code a little.
2489
c0f5f490
JB
24902013-05-08 Joel Brobecker <brobecker@adacore.com>
2491
2492 * sol-thread.c (info_cb): Rework the output of the "maintenance
2493 info sol-threads" command a bit.
2494
5d74e061
JB
24952013-05-08 Joel Brobecker <brobecker@adacore.com>
2496
2497 * sol-thread.c (info_cb) [ti.ti_state == TD_THR_SLEEP]:
2498 Replace ti.ti_startfunc by ti.ti_pc.
2499
814a3ff7
JB
25002013-05-08 Joel Brobecker <brobecker@adacore.com>
2501
2502 * solib-aix.c (solib_aix_free_library_list): New function
2503 for the case where HAVE_LIBEXPAT is not defined.
2504
58ce7251
SDJ
25052013-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
2506
2507 PR breakpoints/15413:
2508 * breakpoint.c (condition_completer): Simplify the code to
2509 disconsider multiple locations of breakpoints when completing the
2510 "condition" command.
2511
be8b1ea6
PM
25122013-05-07 Pierre Muller <muller@sourceware.org>
2513
2514 * common/linux-btrace.c: ARI fix: Include "gdb_wait.h"
2515 instead of <sys/wait.h>.
2516
1e52bda6
PM
25172013-05-07 Pierre Muller <muller@sourceware.org>
2518
2519 * nios2-tdep.c (nios2_dwarf_reg_to_regnum): ARI fix: remove
2520 trailing new line from warning message.
2521
27fd0c6b
PM
25222013-05-07 Pierre Muller <muller@sourceware.org>
2523
2524 * contrib/ari/gdb_ari.sh (SOLIB_ADD, SOLIB_CREATE_INFERIOR_HOOK)
2525 (PC_SOLIB): Change type from ari_deprecate to ari_regression.
2526
e228ac87
JB
25272013-05-07 Joel Brobecker <brobecker@adacore.com>
2528
2529 * rs6000-nat.c (rs6000_core_ldinfo): Remove '\n' at end of
2530 error message (ARI fix).
2531
25322013-05-07 Joel Brobecker <brobecker@adacore.com>
2533
2534 * features/library-list-aix.dtd: Replace library-list by
2535 library-list-aix.
2536 * rs6000-nat.c: Replace library-list by library-list-aix
2537 throughout.
2538 * solib-aix.c: Likewise.
2539
25402013-05-07 Joel Brobecker <brobecker@adacore.com>
2541
2542 * target.h (enum target_object) [TARGET_OBJECT_LIBRARIES_AIX]:
2543 Renames TARGET_OBJECT_AIX_LIBRARIES.
2544 * rs6000-nat.c: Replace TARGET_OBJECT_AIX_LIBRARIES with
2545 TARGET_OBJECT_LIBRARIES_AIX throughout.
2546 * solib-aix.c: Likwise.
2547
26a4dda9
YQ
25482013-05-07 Yao Qi <yao@codesourcery.com>
2549
2550 * solib-dsbt.c (struct dsbt_info) <enable_break2_done>: Remove.
2551 (get_dsbt_info, enable_break, dsbt_clear_solib): Update.
2552
3582629f
YQ
25532013-05-07 Yao Qi <yao@codesourcery.com>
2554
2555 * solib-dsbt.c (enable_break): Declare.
2556 (dsbt_current_sos): Remove call to enable_break2.
2557 (enable_break2): Rename to enable_break. Set solib breakpoint
2558 on '_dl_debug_state'.
2559 (enable_break): Remove.
2560
aacbb8a5
LM
25612013-05-07 Luis Machado <lgustavo@codesourcery.com>
2562
2563 * ppc-linux-nat.c (ppc_linux_new_thread): Clear the new thread's
2564 debug state prior to replicating existing hardware watchpoints or
2565 breakpoints.
2566
0c013353
JK
25672013-05-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2568
2569 * gcore.c (gcore_create_callback): Ignore sections with
2570 separate_debug_objfile_backlink != NULL.
2571
a1217d97
SL
25722013-05-06 Sandra Loosemore <sandra@codesourcery.com>
2573 Andrew Jenner <andrew@codesourcery.com>
2574 Chung-Lin Tang <cltang@codesourcery.com>
2575 Julian Brown <julian@codesourcery.com>
2576
2577 Based on the nios2-elf port from Altera Corporation.
2578
2579 * Makefile.in (ALL_TARGET_OBS): Add nios2-tdep.o and
2580 nios2-linux-tdep.o.
2581 (HFILES_NO_SRCDIR): Add nios2-tdep.h.
2582 (ALLDEPFILES): Add nios2-tdep.c and nios2-linux-tdep.c.
2583 * configure.tgt: Add nios2*-*-linux* and nios2*-*-* targets.
2584 * nios2-tdep.h: New.
2585 * nios2-tdep.c: New.
2586 * nios2-linux-tdep.c: New.
2587 * features/Makefile (WHICH): Add nios2-linux.
2588 (nios2-linux-expedite): Set.
2589 * features/nios2-cpu.xml: New.
2590 * features/nios2.xml: New.
2591 * features/nios2-linux.xml: New.
2592 * features/nios2.c: New (autogenerated).
2593 * features/nios2-linux.c: New (autogenerated).
2594 * regformats/nios2-linux.dat: New (autogenerated).
2595 * NEWS (Changes since GDB 7.6): Add new Nios II targets
2596 and commands.
2597
0892cb63
DE
25982013-05-06 Doug Evans <dje@google.com>
2599
3b7bacac
DE
2600 * symfile.c: Whitespace cleanup.
2601
0892cb63
DE
2602 * solist.h (struct target_so_ops): New member clear_so.
2603 * solib-svr4.c (svr4_clear_so): New function.
2604 (_initialize_svr4_solib): Set svr4_so_ops.clear_so.
2605 * solib.c (clear_so): Renamed from free_so_symbols.
2606 All callers updated. Call target clear_so if it exists.
2607
40501e00
TT
26082013-05-06 Tom Tromey <tromey@redhat.com>
2609
2610 * ada-lang.c (ada_value_primitive_packed_val): Don't
2611 call value_incref.
2612 * value.c (set_value_parent): Incref the new parent and decref
2613 the old parent.
2614 (value_copy, value_primitive_field): Use set_value_parent.
2615
b6807d98
TT
26162013-05-06 Tom Tromey <tromey@redhat.com>
2617
2618 * dwarf2loc.c (invalid_synthetic_pointer): Move earlier.
2619 (indirect_pieced_value): Call dwarf2_fetch_constant_bytes
2620 if needed.
2621 * dwarf2loc.h (dwarf2_fetch_constant_bytes): Declare.
2622 * dwarf2read.c (write_constant_as_bytes)
2623 (dwarf2_fetch_constant_bytes): New functions.
2624
3aef2284
TT
26252013-05-06 Tom Tromey <tromey@redhat.com>
2626
2627 * dwarf2read.c (dwarf2_const_value_data): Remove unused
2628 parameters.
2629 (dwarf2_const_value_attr): Update.
2630
66f65e2b
TT
26312013-05-06 Tom Tromey <tromey@redhat.com>
2632
2633 * somread.c (som_symfile_offsets): Add 'const' to addrs.
2634 * machoread.c (macho_symfile_offsets): Add 'const' to addrs.
2635 * xcoffread.c (xcoff_symfile_offsets): Add 'const' to addrs.
2636 Remove declaration.
2637
7919a973
TT
26382013-05-06 Tom Tromey <tromey@redhat.com>
2639
2640 * dwarf2read.c (dwarf2_const_value_attr): Use 'obstack', not
2641 objfile's obstack.
2642
a7bfba49
DE
26432013-05-06 Doug Evans <dje@google.com>
2644
3189cb12
DE
2645 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
2646 * stabsread.h (process_one_symbol): Update declaration.
2647 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
2648 * elfread.c (elf_symfile_relocate_probe): Ditto.
2649 * psymtab.c (relocate_psymtabs): Ditto.
2650 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
2651 (objfile_relocate): Ditto.
2652 * objfiles.h (objfile_relocate): Update declaration.
2653 * symfile.c (relative_addr_info_to_section_offsets): Constify
2654 addrs parameter.
2655 (default_symfile_offsets): Ditto.
2656 (syms_from_objfile_1): Constify offsets parameter.
2657 (syms_from_objfile): Ditto.
2658 (symbol_file_add_with_addrs_or_offsets): Ditto.
2659 (symfile_map_offsets_to_segments): Constify data parameter.
2660 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
2661 delta parameters of member relocate.
2662 (struct sym_probe_fns): Constify new_offsets,
2663 delta parameters of member sym_relocate_probe.
2664 (struct sym_fns): Constify section_addr_info parameter of member
2665 sym_offsets.
2666 (relative_addr_info_to_section_offsets): Update declaration.
2667 (default_symfile_offsets): Ditto.
2668 (syms_from_objfile): Ditto.
2669 (symfile_map_offsets_to_segments): Ditto.
2670
a7bfba49
DE
2671 * symfile.c (syms_from_objfile_1): Use correct section count when
2672 objfile->sf == NULL.
2673
5f8e0b8f
MF
26742013-05-06 Mike Frysinger <vapier@gentoo.org>
2675
2676 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
2677
ea52d893
DE
26782013-05-06 Doug Evans <dje@google.com>
2679
2680 * psympriv.h (struct partial_symtab): Augment comment for member
2681 section_offsets.
2682
4d1eb6b4
JB
26832013-05-06 Joel Brobecker <brobecker@adacore.com>
2684
2685 Reimplement shared library support on ppc-aix...
2686 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
2687 * features/library-list-aix.dtd: New file.
2688 * solib-aix.h, solib-aix.c: New file.
2689 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
2690 (rs6000_find_toc_address_hook): Delete.
2691 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
2692 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
2693 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
2694 "xml-utils.h".
2695 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
2696 (vmap_symtab, fixup_breakpoints): Delete.
2697 (rs6000_xfer_shared_libraries): New function.
2698 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
2699 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
2700 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
2701 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
2702 (rs6000_xfer_shared_library): New function.
2703 (find_toc_address): Delete.
2704 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
2705 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
2706 * xcoffread.c (record_minimal_symbol): Reloate symbol address
2707 before creating minimal symbol. Adjust function description
2708 accordingly.
2709 (scan_xcoff_symtab): Replace call to
2710 prim_record_minimal_symbol_and_info by call to
2711 record_minimal_symbol.
2712 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
2713 around default_symfile_offsets.
2714 * configure.tgt: Add solib-aix.o to gdb_target_obs for
2715 powerpc-aix targets.
2716 * config/rs6000/nm-rs6000.h: Delete.
2717 * config/powerpc/aix.mh (NAT_FILE): Delete.
2718 (NATDEPFILES): Remove xcoffsolib.o.
2719 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
2720 (ALL_TARGET_OBS): Add solib-aix.o.
2721 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
2722 config/rs6000/nm-rs6000.h. Add solib-aix.h.
2723 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
2724 * xcoffsolib.h, xcoffsolib.c: Delete.
2725
2726 * solib.c (reload_shared_libraries): Remove reference to
2727 SOLIB_CREATE_INFERIOR_HOOK.
2728 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
2729 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
2730 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
2731 comment.
2732 * corelow.c (deprecated_core_resize_section_table): Delete.
2733 * exec.c: Remove include of xcoffsolib.h".
2734 (map_vmap, vmap): Delete.
2735 (exec_close_1): Remove references to vmap.
2736 (exec_file_attach): Remove vmap handling code, and reference
2737 to DEPRECATED_IBM6000_TARGET.
2738 (bfdsec_to_vmap): Delete.
2739 (exec_files_info): Remove block of code handling VMAP.
2740 * infcmd.c (post_create_inferior): Remove reference to
2741 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
2742 * infrun.c (follow_exec): Remove reference to
2743 SOLIB_CREATE_INFERIOR_HOOK.
2744 * stack.c (print_frame): Remove reference to PC_SOLIB.
2745 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
2746 (dsbt_relocate_main_executable): Likewise.
2747 * solib-frv.c (frv_current_sos): Likewise.
2748
0c4f667c
JB
27492013-05-06 Joel Brobecker <brobecker@adacore.com>
2750
2751 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
2752 to target_write_memory and target_read_memory.
2753
726ce67c
JB
27542013-05-06 Joel Brobecker <brobecker@adacore.com>
2755
2756 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
2757 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
2758
c8c9911f
JB
27592013-05-06 Joel Brobecker <brobecker@adacore.com>
2760
2761 * darwin-nat.c: Replace all "%x" instances in format strings
2762 into "0x%x" throughout.
2763
fda184b6
JB
27642013-05-06 Joel Brobecker <brobecker@adacore.com>
2765
2766 * darwin-nat.c (darwin_mourn_inferior): Replace call to
2767 gdb_assert by call to MACH_CHECK_ERROR.
2768 (darwin_attach_pid): Raise an error rather than a failed
2769 assertion when various system calls failed. Report a warning
2770 instead of raising a failed assertion when PREV_NOT is not NULL
2771 after call to mach_port_request_notification.
2772 (darwin_ptrace_me): Raise an error rather than a failed
2773 assertion when read returns nonzero.
2774
d1d69afb
JB
27752013-05-06 Joel Brobecker <brobecker@adacore.com>
2776
2777 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
2778
dc90b24d
JK
27792013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2780
2781 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
2782
faab9922
JK
27832013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2784
2785 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
2786 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
2787 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
2788 a stale cleanup. Fix double free of NAME.
2789
e0ea48a0
EZ
27902013-05-04 Eli Zaretskii <eliz@gnu.org>
2791
2792 * windows-nat.c (windows_delete_thread): Accept an additional
2793 argument, the thread's exit code, and announce thread death when
2794 print_thread_events is non-zero and we are deleting a thread that
2795 is not the main thread.
2796 (get_windows_debug_event): Pass thread exit code to
2797 windows_delete_thread.
2798
83b2706a
KB
27992013-05-03 Kevin Buettner <kevinb@redhat.com>
2800
2801 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
2802 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
2803 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
2804 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
2805 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
2806 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
2807 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
2808 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
2809 (gdbarch_tdep): New struct.
2810 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
2811 E_NUM_REGS.
2812 (v850e3v5_register_name): New function.
2813 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
2814 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
2815 code handling the struct return conventions for the RH850 ABI.
2816 Update all callers.
2817 (v850_eight_byte_align_p): New function.
2818 (v850_push_call_dummy): Push structs by value, not by reference
2819 for the RH850 ABI. Add support for eight byte alignment.
2820 (v850_dbtrap_breakpoint_from_pc): New function.
2821 (v850_gdbarch_init): Add ABI detection code. Register
2822 v850e3v5_register_name for the v850e3v5 architecture. Set the
2823 number of registers for v850e3v5. Register
2824 v850_dbtrap_breakpoint_from_pc as appropriate.
2825 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
2826
d445b2f6
DE
28272013-05-03 Doug Evans <dje@google.com>
2828
2829 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
2830 of bfd_count_sections.
2831 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
2832 * symfile.c (default_symfile_offsets): Ditto.
2833 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
2834 one entry, not bfd_count_sections entries.
2835
b3ce41ea
KB
28362013-05-03 Kevin Buettner <kevinb@redhat.com>
2837
2838 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
2839 `save' and `restore' register groups. Don't include SPL
2840 or SPH in these groups.
2841 (rl78_dwarf_reg_to_regnum): Adjust mapping for
2842 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
2843 RL78_ES_REGNUM, and RL78_CS_REGNUM.
2844 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
2845 dwarf2_append_unwinders().
2846
96f7d3f1
PW
28472013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
2848
2849 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
2850 ignore SIGINT and SIGTRAP in case these internal signals are
2851 caught explicitely.
2852
b9dd1947
JB
28532013-05-01 Joel Brobecker <brobecker@adacore.com>
2854
2855 * darwin-nat.c (darwin_read_write_inferior): Change types
2856 of parameters rdaddr and wraddr to "gdb_byte *". Change type
2857 of copy_count to "mach_msg_type_number_t".
2858 (darwin_read_dyld_info): Change type of parameter
2859 rdaddr to "gdb_byte *".
2860
4ca18a63
JB
28612013-05-01 Joel Brobecker <brobecker@adacore.com>
2862
2863 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
2864 of &info->load_map from "char *" to "gdb_byte *".
2865
2b692d32
JB
28662013-05-01 Joel Brobecker <brobecker@adacore.com>
2867
2868 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
2869 from "char *" to "gdb_byte *".
2870 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
2871
a98c29a0
DE
28722013-04-30 Doug Evans <dje@google.com>
2873
6a506a2d
DE
2874 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
2875 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
2876 DWO stub. If DWO isn't found, just use stub.
2877 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
2878
a98c29a0
DE
2879 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
2880 calling init_cutu_and_read_dies.
2881
f92b06da
WT
28822013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
2883
2884 * target-descriptions.c (maint_print_c_tdesc_cmd):
2885 Add case to parse structures as register types and
2886 bitfields.
2887
95eebdcc
WT
28882013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
2889
2890 * MAINTAINERS (Write After Approval): Add myself to the list.
2891
019c1128
JB
28922013-04-30 Joel Brobecker <brobecker@adacore.com>
2893
2894 * sol-thread.c (rw_common): Change type of parameter "buf"
2895 to "gdb_byte *".
2896 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
2897 rw_common to "gdb_byte *" instead of "char *".
2898
5812197c
JB
28992013-04-30 Joel Brobecker <brobecker@adacore.com>
2900
2901 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
2902 of local variable msym to const struct bound_minimal_symbol.
2903 Adjust use accordingly.
2904 [ti.ti_state == TD_THR_SLEEP]: Likewise.
2905
ecccb813
TS
29062013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
2907
2908 * i386gnu-nat.c (CREG_OFFSET): New macro.
2909 (creg_offset): New array.
2910 (CREG_ADDR): Use creg_offset instead of reg_offset.
2911
f1d02dd4 29122013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
2913
2914 * mep-tdep.c (mep_write_pc): Delete.
2915 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
2916 Add call to set_gdbarch_pc_regnum.
2917
f1d02dd4 29182013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
2919
2920 * common/filestuff.c: Replace #include <dirent.h> by
2921 #include "gdb_dirent.h".
2922
f1d02dd4 29232013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
2924
2925 * common/filestuff.c: Replace #include <sys/stat.h> by
2926 #include "gdb_stat.h".
2927
b385a60d
PM
29282013-04-29 Pierre Muller <muller@sourceware.org>
2929
2930 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
2931 editCase function rule.
2932 (get_DW_AT_signature_type): Likewise.
2933
d27b54ad
JB
29342013-04-29 Joel Brobecker <brobecker@adacore.com>
2935
2936 * m32r-tdep.c (m32r_write_pc): Delete.
2937 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
2938 Add call to set_gdbarch_pc_regnum.
2939
47d21dc5
PM
29402013-04-29 Pierre Muller <muller@sourceware.org>
2941
2942 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
2943
9056882e
JB
29442013-04-29 Joel Brobecker <brobecker@adacore.com>
2945
2946 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
2947
7ee4732a
YQ
29482013-04-28 Yao Qi <yao@codesourcery.com>
2949
2950 * solib-dsbt.c (fetch_loadmap): Re-indent.
2951 (displacement_from_map, enable_break2): Likewise.
2952 (dsbt_relocate_section_addresses): Likewise.
2953
2260af53 29542013-04-26 Joel Brobecker <brobecker@adacore.com>
2955
2956 GDB 7.6 released.
2957
ff546935
TT
29582013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
2959
2960 PR corefiles/14983:
2961 * dwarf2read.c (process_full_comp_unit): Always create a static
2962 block.
2963
40fb6c5e
HZ
29642013-04-25 Hui Zhu <hui@codesourcery.com>
2965
2966 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
2967 to loc->cmd_bytecode.
2968
74e04d1c
DE
29692013-04-24 Doug Evans <dje@google.com>
2970
2971 * dwarf2read.c (setup_type_unit_groups): Fix comment.
2972
3cf62c1d
KS
29732013-04-22 Keith Seitz <keiths@redhat.com>
2974
2975 * tracepoint.c (trace_save): Call the writer's start method.
2976
bf9e4d0c
MB
29772013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
2978
2979 PR gdb/10462
2980 * cli/cli-decode.c (lookup_command): Show an error if there is no space
2981 before argument.
2982
5d71132c
TT
29832013-04-23 Tom Tromey <tromey@redhat.com>
2984
2985 * common/filestuff.c: Check USE_WIN32API before including
2986 sys/socket.h.
2987 (HAVE_F_GETFD): New define.
2988 (mark_cloexec): Check HAVE_F_GETFD.
2989 (gdb_open_cloexec): Change 'mode' to unsigned long.
2990 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
2991 (gdb_pipe_cloexec): Check HAVE_PIPE.
2992 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
2993 long.
2994
a11cfd87
HZ
29952013-04-23 Hui Zhu <hui@codesourcery.com>
2996
2997 PR gdb/15293
a11cfd87
HZ
2998 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
2999
2d9442cc
HZ
30002013-04-23 Hui Zhu <hui@codesourcery.com>
3001
3002 PR gdb/15165
2d9442cc
HZ
3003 * breakpoint.c (dprintf_print_recreate): New.
3004 (save_breakpoints): Let it not save dprintf commands.
3005 (initialize_breakpoint_ops): Set dprintf_print_recreate.
3006
614c279d
TT
30072013-04-22 Tom Tromey <tromey@redhat.com>
3008
3009 PR gdb/7912:
3010 * Makefile.in (SFILES): Add filestuff.c
3011 (COMMON_OBS): Add filestuff.o.
3012 (filestuff.o): New target.
3013 * auto-load.c (auto_load_objfile_script_1): Use
3014 gdb_fopen_cloexec.
3015 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
3016 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
3017 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
3018 * common/agent.c (gdb_connect_sync_socket): Use
3019 gdb_socket_cloexec.
3020 * common/filestuff.c: New file.
3021 * common/filestuff.h: New file.
3022 * common/linux-osdata.c (linux_common_core_of_thread)
3023 (command_from_pid, commandline_from_pid, print_source_lines)
3024 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
3025 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
3026 gdb_fopen_cloexec.
3027 * common/linux-procfs.c (linux_proc_get_int)
3028 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
3029 * config.in, configure: Rebuild.
3030 * configure.ac: Don't check for sys/socket.h. Check for
3031 fdwalk, pipe2.
3032 * corelow.c (core_open): Use gdb_open_cloexec.
3033 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
3034 * fork-child.c (fork_inferior): Call close_most_fds.
3035 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
3036 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
3037 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
3038 Use gdb_fopen_cloexec.
3039 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
3040 gdb_open_cloexec.
3041 (linux_async_pipe): Use gdb_pipe_cloexec.
3042 * remote-fileio.c (remote_fileio_func_open): Use
3043 gdb_open_cloexec.
3044 * remote.c (remote_file_put, remote_file_get): Use
3045 gdb_fopen_cloexec.
3046 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
3047 close_most_fds.
3048 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
3049 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
3050 * solib.c (solib_find): Use gdb_open_cloexec.
3051 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
3052 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
3053 (tfile_open): Use gdb_open_cloexec.
3054 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
3055 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
3056 * xml-support.c (xml_fetch_content_from_file): Use
3057 gdb_fopen_cloexec.
3058 * main.c (captured_main): Call notice_open_fds.
3059
5fda2332
EBM
30602013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
3061
3062 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
3063 'char *' to 'gdb_byte *'.
3064 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
3065 'gdb_byte'.
3066
eb6c553b
YQ
30672013-04-22 Yao Qi <yao@codesourcery.com>
3068
3069 * infrun.c: Fix typo in comment.
3070
9991b207
SDJ
30712013-04-22 Andrew Haley <aph@redhat.com>
3072
3073 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
3074 instead of "long".
3075
8b4833e3
YQ
30762013-04-20 Yao Qi <yao@codesourcery.com>
3077
3078 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
3079 'char *' to 'gdb_byte *'. Cast the return value of
3080 'bt_ctf_get_char_array' to 'gdb_byte *'.
3081
bd3f3b55
PA
30822013-04-19 Pedro Alves <palves@redhat.com>
3083
3084 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
3085 -Wpointer-sign.
3086 * configure: Regenerate.
3087
c49e7f76
PA
30882013-04-19 Pedro Alves <palves@redhat.com>
3089
3090 * ser-tcp.c (net_read_prim): Cast second argument to recv to
3091 'void *'.
3092
12ff8552
PA
30932013-04-19 Pedro Alves <palves@redhat.com>
3094
3095 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
3096 Change type of 'myaddr' parameter to gdb_byte pointer.
3097 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
3098 to 'long long' pointer instead of to 'unsigned long long'.
3099 (monitor_write_memory_block, monitor_read_memory_single)
3100 (monitor_read_memory): Change type of 'myaddr' parameter to
3101 gdb_byte pointer.
3102
9c37696b
PA
31032013-04-19 Pedro Alves <palves@redhat.com>
3104
3105 * record.c (validate_history_size): Make parameter 'setting'
3106 unsigned.
3107
a398505b
PA
31082013-04-19 Pedro Alves <palves@redhat.com>
3109
3110 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
3111 to 'gdb_byte *'.
3112
9f8afa72
PA
31132013-04-19 Pedro Alves <palves@redhat.com>
3114
3115 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
3116 local to int.
3117
c714b426
PA
31182013-04-19 Pedro Alves <palves@redhat.com>
3119
3120 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
3121 * ada-tasks.c (read_fat_string_value): Likewise.
3122
507a579c
PA
31232013-04-19 Pedro Alves <palves@redhat.com>
3124
3125 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
3126 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
3127 'offset', and adjust.
3128
f9d83a0b
PA
31292013-04-19 Pedro Alves <palves@redhat.com>
3130
3131 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
3132 (read_index_from_section): Add cast to 'char *'.
3133
745eb4fd
PA
31342013-04-19 Pedro Alves <palves@redhat.com>
3135
3136 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
3137
db5be46f
PA
31382013-04-19 Pedro Alves <palves@redhat.com>
3139
3140 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
3141
0f928d68
PA
31422013-04-19 Pedro Alves <palves@redhat.com>
3143
3144 * record-full.c (record_full_get_bookmark): Change local 'ret'
3145 type to char * and add cast to gdb_byte *.
3146 (record_full_goto_bookmark): Handle 'bookmark' argument as a
3147 string.
3148 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
3149
89f6d837
PA
31502013-04-19 Pedro Alves <palves@redhat.com>
3151
3152 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
3153 * python/py-prettyprint.c (print_string_repr): Change type of
3154 'output' local to char *. Add cast to gdb_byte * in
3155 LA_PRINT_STRING call.
3156 (print_children): Change type of 'output' local to char *.
3157 * python/py-value.c (valpy_string): Add cast to const char * in
3158 PyUnicode_Decode call.
3159
ce6ec7d8
PA
31602013-04-19 Pedro Alves <palves@redhat.com>
3161
3162 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
3163 and change its type to 'const char *'. Adjust.
3164 (mips_send_packet): Add cast to 'char *', and remove cast to
3165 'unsigned char *'.
3166 (mips_receive_packet): Remove cast to 'unsigned char *'.
3167 (mips_load_srec): Use bfd_byte.
3168 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
3169 (pmon_checkset): Make 'value' parameter unsigned.
3170
fda0389f
PA
31712013-04-19 Pedro Alves <palves@redhat.com>
3172
3173 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
3174
bc20a4af
PA
31752013-04-19 Pedro Alves <palves@redhat.com>
3176
3177 * remote.c (remote_write_bytes_aux, compare_sections_command)
3178 (remote_read_qxfer)
3179 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
3180 (remote_hostio_readlink, remote_bfd_iovec_pread)
3181 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
3182 binary buffer, and char when buffer is used as string.
3183 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
3184 (trace_save, tfile_open, traceframe_walk_blocks)
3185 (tfile_fetch_registers): Likewise.
3186
c628b528
PA
31872013-04-19 Pedro Alves <palves@redhat.com>
3188
3189 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
3190 buffer and size_t size. Adjust.
3191 * ser-base.h (ser_base_write): Adjust.
3192 * ser-go32.c (cnts): Change type to size_t.
3193 (dos_write): Change prototype -- take 'void *'
3194 buffer and size_t size. Adjust.
3195 (dos_info): Print elements of 'cnts' as unsigned long.
3196 * serial.c (serial_write): Likewise.
3197 * serial.h (serial_write): Adjust.
3198 (struct serial_ops) <write>: Change prototype -- take 'void *'
3199 buffer and size_t size. Adjust.
3200
51a5cd90
PA
32012013-04-19 Pedro Alves <palves@redhat.com>
3202
3203 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
3204 gdb_byte *.
3205 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
3206
a9933661
PA
32072013-04-19 Pedro Alves <palves@redhat.com>
3208
3209 * alpha-tdep.c (alpha_extract_return_value): Use
3210 regcache_cooked_read_unsigned to read 'v0'.
3211
19afdd07
PA
32122013-04-19 Pedro Alves <palves@redhat.com>
3213
3214 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
3215 parameters 'at', 'as' and 'offset' to uint32_t.
3216
96b32e50
PA
32172013-04-19 Pedro Alves <palves@redhat.com>
3218
3219 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
3220 'is64' to signed 'int'.
3221
eb1bd1fb
PA
32222013-04-19 Pedro Alves <palves@redhat.com>
3223
3224 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
3225 parameter to int *.
3226
463920bf
PA
32272013-04-19 Pedro Alves <palves@redhat.com>
3228
3229 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
3230 'insnbuf' buffer type to unsigned int[].
3231
70242eb1
PA
32322013-04-19 Pedro Alves <palves@redhat.com>
3233
3234 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
3235
9d1dd0e2
PA
32362013-04-19 Pedro Alves <palves@redhat.com>
3237
3238 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
3239 unsigned long *.
3240
44096aee
PA
32412013-04-19 Pedro Alves <palves@redhat.com>
3242
3243 * alpha-tdep.c (heuristic_fence_post): Change type to int.
3244 (alpha_heuristic_proc_start): Adjust to check -1 instead of
3245 UINT_MAX.
3246 * mips-tdep.c (heuristic_fence_post): Change type to int.
3247 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
3248
e4286e57
PA
32492013-04-19 Pedro Alves <palves@redhat.com>
3250
3251 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
3252 (struct gdbarch_tdep) <cris_version>: Make unsigned.
3253 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
3254
001f13d8
PA
32552013-04-19 Pedro Alves <palves@redhat.com>
3256
3257 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
3258 it to get a string view of the byte buffer.
3259 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
3260 type to gdb_byte *. Adjust.
3261 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
3262 Change local to char *.
3263 * solib-darwin.c (find_program_interpreter): Change return type to
3264 char *. Adjust.
3265 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
3266 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
3267 * solib-frv.c (enable_break2): Change local 'buf' to char *.
3268 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
3269 * solib-svr4.c (find_program_interpreter): Change return type to
3270 char *. Adjust.
3271 (enable_break): Change local 'interp_name' to char *.
3272 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
3273 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
3274 (spu_pseudo_register_write_spu): Use char for string buffer.
3275 Adjust.
3276 (info_spu_event_command, info_spu_signal_command): Add casts to
3277 'char *'.
3278
948f8e3d
PA
32792013-04-19 Pedro Alves <palves@redhat.com>
3280
3281 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
3282 gdb_byte[].
3283 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
3284 * ada-lang.c (ada_value_assign): Use gdb_byte.
3285 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
3286 (alphanbsd_sigtramp_offset): Use gdb_byte.
3287 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
3288 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
3289 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
3290 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
3291 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
3292 * arm-tdep.c (arm_stub_unwind_sniffer)
3293 (arm_displaced_init_closure): Use gdb_byte.
3294 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
3295 (arm_default_thumb_le_breakpoint)
3296 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
3297 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
3298 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
3299 * arm-wince-tdep.c (arm_wince_le_breakpoint)
3300 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
3301 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
3302 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
3303 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
3304 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
3305 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
3306 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
3307 (cris_store_return_value, cris_extract_return_value): Use
3308 gdb_byte.
3309 (constraint): Change type of parameter to char * from signed
3310 char*. Use gdb_byte.
3311 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
3312 of local buffer to gdb_byte *.
3313 * dwarf2read.c (read_index_from_section): Use gdb_byte.
3314 (create_dwp_hash_table): Change type of locals to gdb_byte *.
3315 (add_address_entry): Change type of local buffer to gdb_byte[].
3316 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
3317 (frv_push_dummy_call): Use gdb_byte.
3318 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
3319 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
3320 (hppa_hpux_supply_save_state): Use gdb_byte.
3321 * hppa-tdep.c (hppa32_push_dummy_call)
3322 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
3323 * ia64-tdep.c (extract_bit_field, replace_bit_field)
3324 (slotN_contents, replace_slotN_contents): Change type of parameter
3325 to gdb_byte *.
3326 (fetch_instruction, ia64_pseudo_register_write)
3327 (ia64_register_to_value, ia64_value_to_register)
3328 (ia64_extract_return_value, ia64_store_return_value)
3329 (ia64_push_dummy_call): Use gdb_byte.
3330 * m32c-tdep.c (m32c_return_value): Remove cast.
3331 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
3332 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
3333 gdb_byte.
3334 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
3335 * mn10300-tdep.c (mn10300_store_return_value)
3336 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
3337 gdb_byte.
3338 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
3339 (moxie_process_record): Remove casts.
3340 * ppc-ravenscar-thread.c (supply_register_at_address)
3341 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
3342 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
3343 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
3344 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
3345 * remote.c (compare_sections_command): Use gdb_byte.
3346 * score-tdep.c (score7_free_memblock): Change type of parameter to
3347 gdb_byte *.
3348 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
3349 gdb_byte *. Use gdb_byte.
3350 (sh_push_dummy_call_fpu): Use gdb_byte.
3351 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
3352 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
3353 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
3354 Change parameter type to 'gdb_byte *'. Use gdb_byte.
3355 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
3356 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
3357 (sh64_store_return_value, sh64_register_convert_to_virtual):
3358 Change parameter type to 'gdb_byte *'. Use gdb_byte.
3359 (sh64_pseudo_register_write): Use gdb_byte.
3360 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
3361 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
3362 buffer.
3363 (irix_current_sos): Use gdb_byte.
3364 * solib-som.c (som_current_sos): Use gdb_byte.
3365 * sparc-ravenscar-thread.c (supply_register_at_address)
3366 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
3367 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
3368 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
3369 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
3370 'gdb_byte *'.
3371 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
3372 'gdb_byte *'.
3373 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
3374 * xstormy16-tdep.c (xstormy16_extract_return_value)
3375 (xstormy16_store_return_value): Change parameter type to
3376 'gdb_byte *'. Adjust.
3377 (xstormy16_push_dummy_call): Use gdb_byte.
3378 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
3379 (call0_analyze_prologue, execute_code): Use gdb_byte.
3380
433730c9
PA
33812013-04-19 Vladimir Kargov <kargov@gmail.com>
3382 Pedro Alves <palves@redhat.com>
3383
3384 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
3385 value contents.
3386
ac9ec31b
DE
33872013-04-17 Doug Evans <dje@google.com>
3388
3389 * dwarf2read.c (struct signatured_type): New member type.
3390 (struct attribute): Replace member signatured_type with signature.
3391 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
3392 (read_call_site_scope): Call follow_die_ref instead of
3393 follow_die_ref_or_sig.
3394 (read_structure_type): Rewrite handling of signatured types.
3395 (read_enumeration_type): Ditto.
3396 (read_attribute_value): Update.
3397 (build_error_marker_type): New function.
3398 (lookup_die_type): Add assert. Rewrite handling of signatured types.
3399 Don't call error for bad types, just build an error marker type.
3400 (dump_die_shallow): Update.
3401 (follow_die_sig_1): Renamed from follow_die_sig.
3402 Don't call error for bad types, instead return NULL.
3403 (follow_die_sig): New function.
3404 (get_signatured_type, get_DW_AT_signature_type): New functions.
3405
e546e8bb
YZ
34062013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
3407
3408 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
3409 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
3410 function.
e546e8bb 3411
ab116149
YQ
34122013-04-17 Yao Qi <yao@codesourcery.com>
3413
3414 * top.c (print_gdb_configuration): Print configure-time
3415 parameter on using libbabeltrace or not.
3416
488a42b8
PA
34172013-04-16 Pedro Alves <palves@redhat.com>
3418
3419 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
3420
f5fb825b
PA
34212013-04-16 Pedro Alves <palves@redhat.com>
3422
85d494ea 3423 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
3424 (git 568035b7874a099087b77f7bba3e36a1173787b0).
3425
e1154999
PA
34262013-04-16 Pedro Alves <palves@redhat.com>
3427
3428 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
3429 * common/glibc_thread_db.h: ... this new file ...
3430 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
3431
e3b50a7f
PA
34322013-04-16 Will Newton <will.newton@gmail.com>
3433 Pedro Alves <palves@redhat.com>
3434
3435 PR build/11881
3436
3437 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
3438 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
3439 HAVE_THREAD_DB_H.
3440
1c2e4450
PA
34412013-04-16 Pedro Alves <palves@redhat.com>
3442 Eli Zaretskii <eliz@gnu.org>
3443
3444 * NEWS: Mention "set foo unlimited".
3445
4031ecc5
DE
34462013-04-15 Doug Evans <dje@google.com>
3447
19c3d4c9
DE
3448 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
3449 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
3450 (create_dwo_cu_reader): Renamed from
3451 create_dwo_debug_info_hash_table_reader.
3452 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
3453 Remove support for multiple CUs in a DWO file.
3454 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
3455
4031ecc5
DE
3456 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
3457 instead of phex.
3458 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
3459 (create_dwo_in_dwp): Ditto.
3460
b340913d
TT
34612013-04-15 Tom Tromey <tromey@redhat.com>
3462
3463 * NEWS: Move recent entries into "since 7.6" section.
3464
cc16e6c9
TT
34652013-04-15 Tom Tromey <tromey@redhat.com>
3466
3467 PR c++/13588:
3468 * NEWS: Update.
3469 * break-catch-throw.c (struct exception_catchpoint)
3470 <exception_rx, pattern>: New fields.
3471 (fetch_probe_arguments, dtor_exception_catchpoint)
3472 (check_status_exception_catchpoint)
3473 (print_one_detail_exception_catchpoint): New functions.
3474 (handle_gnu_v3_exceptions): Add "except_rx" argument.
3475 Compile regular expression if needed.
3476 (extract_exception_regexp): New function.
3477 (catch_exception_command_1): Use extract_exception_regexp.
3478 (compute_exception): Use fetch_probe_arguments.
3479 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
3480 and check_status fields.
3481 * cp-abi.c (cplus_typename_from_type_info): New function.
3482 * cp-abi.h (cplus_typename_from_type_info): Declare.
3483 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
3484 * gdb_regex.h (compile_rx_or_error): Declare.
3485 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
3486 comment.
3487 (init_gnuv3_ops): Set get_type_from_type_info field.
3488 * probe.c (compile_rx_or_error): Move...
3489 * utils.c (compile_rx_or_error): ... here.
3490
72f1fe8a
TT
34912013-04-15 Tom Tromey <tromey@redhat.com>
3492
3493 PR c++/15176:
3494 * NEWS: Update.
3495 * break-catch-throw.c (compute_exception): New function.
3496 (exception_funcs): New global.
3497 (_initialize_break_catch_throw): Create $_exception.
3498 * cp-abi.c (cplus_type_from_type_info): New function.
3499 * cp-abi.h (cplus_type_from_type_info): Declare.
3500 (struct cp_abi_ops) <get_type_from_type_info>: New field.
3501 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
3502 (gnuv3_get_type_from_type_info): New functions.
3503 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
3504
fc4746a2
TT
35052013-04-15 Tom Tromey <tromey@redhat.com>
3506
3507 * break-catch-throw.c (struct exception_names): New.
3508 (exception_functions): Change type.
3509 (re_set_exception_catchpoint): Look for SDT probes.
3510
15a73f56
TT
35112013-04-15 Tom Tromey <tromey@redhat.com>
3512
3513 PR c++/10119:
3514 * break-catch-throw.c (exception_functions): New global.
3515 (gnu_v3_exception_catchpoint_ops): Move earlier.
3516 (struct exception_catchpoint): New.
3517 (classify_exception_breakpoint): Rewrite.
3518 (re_set_exception_catchpoint): New function.
3519 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
3520 Allocate a struct exception_catchpoint.
3521 (catch_exception_command_1): Update.
3522 (initialize_throw_catchpoint_ops): Set 're_set' method.
3523
916703c0
TT
35242013-04-15 Tom Tromey <tromey@redhat.com>
3525
3526 * Makefile.in (SFILES): Add break-catch-throw.c
3527 (COMMON_OBS): Add break-catch-throw.o.
3528 * break-catch-throw.c: New file.
3529 * breakpoint.c: Move exception-catching code to new file.
3530 (ep_parse_optional_if_clause): No longer static.
3531 * breakpoint.h (ep_parse_optional_if_clause): Declare.
3532
6e72ca20
TT
35332013-04-15 Tom Tromey <tromey@redhat.com>
3534
3535 PR c++/9065:
3536 * NEWS: Update.
3537 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
3538 * c-exp.y (TYPEID): New token.
3539 (exp): Add new TYPEID productions.
3540 (ident_tokens): Add "typeid".
3541 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
3542 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
3543 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
3544 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
3545 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
3546 case.
3547 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
3548 (build_std_type_info_type, gnuv3_get_typeid_type)
3549 (gnuv3_get_typeid): New functions.
3550 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
3551 new fields on ABI object.
3552 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
3553 * std-operator.def (OP_TYPEID): New.
3554
715c6909
TT
35552013-04-15 Tom Tromey <tromey@redhat.com>
3556
3557 * elfread.c (elf_symtab_read): Install versioned symbol under
3558 unversioned name as well.
3559
8de20a37
TT
35602013-04-15 Tom Tromey <tromey@redhat.com>
3561
3562 PR c++/11990:
3563 * c-lang.c (cplus_language_defn): Use gdb_demangle.
3564 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
3565 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
3566 (gdb_demangle): New function.
3567 * cp-support.h (gdb_demangle): Declare.
3568 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
3569 (dwarf2_name): Use gdb_demangle.
3570 * gdbtypes.c (check_stub_method): Use gdb_demangle.
3571 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
3572 suffixes from name.
3573 (gnuv3_print_method_ptr): Use gdb_demangle.
3574 * jv-lang.c (java_demangle): Use gdb_demangle.
3575 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
3576 * language.c (unk_lang_demangle): Use gdb_demangle.
3577 * symtab.c (symbol_find_demangled_name)
3578 (demangle_for_lookup): Use gdb_demangle.
3579
591f19e8
TT
35802013-04-15 Tom Tromey <tromey@redhat.com>
3581
3582 PR c++/12824:
3583 * NEWS: Update.
3584 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
3585 New constant.
3586 (classify_exception_breakpoint): New function.
3587 (print_it_exception_catchpoint, print_one_exception_catchpoint)
3588 (print_mention_exception_catchpoint)
3589 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
3590 (catch_exception_command_1): Handle "rethrow" catchpoint.
3591 (catch_rethrow_command): New function.
3592 (_initialize_breakpoint): Add "catch rethrow" command.
3593
4d40cad2
PM
35942013-04-15 Pierre Muller <muller@sourceware.org>
3595
3596 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
3597 set_gdbarch_write_pc as deprecated anymore.
3598
30bcb456
JB
35992013-04-15 Joel Brobecker <brobecker@adacore.com>
3600
3601 * spu-tdep.c (spu_write_pc): Add empty line after local variable
3602 declarations.
3603
da9160e4
YQ
36042013-04-13 Yao Qi <yao@codesourcery.com>
3605
3606 * ctf.c (_initialize_ctf): Include "completer.h".
3607 Call add_target_with_completer instead of add_target.
3608
39ed5604
JK
36092013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
3610
3611 Fix GDB regression related to PR binutils/14813.
3612 * jit.c (mem_bfd_iovec_close): Return 0 for success.
3613 * minidebug.c (lzma_close): Add return value comment.
3614 * remote.c (remote_bfd_iovec_close): Return 0 for success.
3615 * solib-spu.c (spu_bfd_iovec_close): Likewise.
3616 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
3617
36182013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
3619
3620 * config.in: Regenerate.
3621
d521ce57
TT
36222013-04-12 Tom Tromey <tromey@redhat.com>
3623
3624 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
3625 const.
3626 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
3627 (struct die_reader_specs) <buffer>: Likewise.
3628 (die_reader_func_ftype): Make 'info_ptr' const.
3629 (struct line_header) <include_dirs, statement_program_start,
3630 statement_program_end>: Now const.
3631 (struct file_entry) <name>: Likewise.
3632 (struct partial_die_info) <sibling>: Likewise.
3633 (struct dwarf_block) <data>: Likewise.
3634 (dwarf2_read_section): Remove cast.
3635 (dwarf2_get_section_info): Make 'bufp' const.
3636 (read_index_from_section): Constify.
3637 (dw2_get_file_names_reader): Make 'info_ptr' const.
3638 (dw2_get_primary_filename_reader): Likewise.
3639 (read_comp_unit_head): Make 'info_ptr' and return type const.
3640 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
3641 Likewise.
3642 (read_abbrev_offset): Constify.
3643 (dwarf2_create_include_psymtab): Make 'name' const.
3644 (create_debug_types_hash_table): Update.
3645 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
3646 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
3647 Constify.
3648 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
3649 (load_partial_comp_unit_reader): Make 'info_ptr' const.
3650 (read_comp_units_from_section): Constify.
3651 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
3652 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
3653 const.
3654 (dwarf2_compute_name, setup_type_unit_groups): Constify.
3655 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
3656 (create_dwp_hash_table, dwarf2_ranges_read)
3657 (dwarf2_record_block_ranges): Constify.
3658 (read_die_and_children, read_die_and_siblings_1)
3659 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
3660 const.
3661 (read_full_die_1, read_full_die): Make 'info_ptr' const.
3662 (abbrev_table_read_table): Constify.
3663 (load_partial_dies): Make 'info_ptr' const.
3664 (read_partial_die, read_attribute_value, read_attribute): Make
3665 'info_ptr' and return type const.
3666 (read_address, read_initial_length)
3667 (read_checked_initial_length_and_offset, read_offset)
3668 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
3669 const.
3670 (read_direct_string): Make 'buf' and return type const.
3671 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
3672 (read_indirect_string): Make return type const.
3673 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
3674 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
3675 'info_ptr' const.
3676 (read_str_index): Make return type const.
3677 (add_include_dir): Make 'include_dir' const.
3678 (add_file_name): Make 'name' const.
3679 (dwarf_decode_line_header): Constify.
3680 (psymtab_include_file_name): Make return type const.
3681 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
3682 (dwarf2_start_subfile): Make 'filename' const.
3683 (dwarf2_const_value_attr): Make 'bytes' const.
3684 (read_signatured_type_reader): Make 'info_ptr' const.
3685 (decode_locdesc): Constify.
3686 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
3687 const.
3688 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
3689 'mac_end', and return type const.
3690 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
3691 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
3692 type const.
3693 (per_cu_header_read_in): Constify.
3694 * symfile.h (dwarf2_get_section_info): Update.
3695
d47a1bc1
TT
36962013-04-12 Tom Tromey <tromey@redhat.com>
3697
3698 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
3699
6eaaf48b
EZ
37002013-04-12 Eli Zaretskii <eliz@gnu.org>
3701
fc4c25bf 3702 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
3703 * top.c (print_gdb_configuration): New function, displays the
3704 details about GDB configure-time parameters.
3705 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
3706 * cli/cli-cmds.c (show_configuration): New function.
3707 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
3708 * main.c (captured_main) <print_configuration>: New static var.
3709 <long_options>: Use it.
3710 If --configuration was given, call print_gdb_configuration.
3711
b292c783
JK
37122013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3713 Pedro Alves <palves@redhat.com>
3714
3715 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
3716 (generated_files): Add gcore.
3717 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
3718 HAVE_NATIVE_GCORE_HOST.
3719 (gcore): New.
3720 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
3721 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
3722 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
3723 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
3724 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
3725 Add HAVE_NATIVE_GCORE_HOST.
3726 * configure: Regenerate.
3727 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
3728 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
3729 AC_CONFIG_FILES for gcore.
3730 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
3731 gdb_have_gcore.
3732 * gdb_gcore.sh: Rename to ...
3733 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
3734 and GCORE_TRANSFORM_NAME substitutions.
3735
c96b3c4f
JK
3736 Fix parsing tabs in ${gdb_target_obs}.
3737 * configure.tgt (gdb_have_gcore): Replace case with for and if.
3738
d6cb50a2
JK
37392013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3740
3741 * remote.c (unpush_and_perror): Add output message final dot.
3742
cf2cb5ec
YQ
37432013-04-11 Yao Qi <yao@codesourcery.com>
3744
3745 * tracepoint.c (tfile_interp_line): Fit parameters line and
3746 utpp in one line.
3747
07293be4
JB
37482013-04-10 Joel Brobecker <brobecker@adacore.com>
3749
3750 * solib.c (solib_map_sections): Remove code overwriting
3751 SO->SO_NAME with the bfd's filename.
3752
f81d1120
PA
37532013-04-10 Pedro Alves <palves@redhat.com>
3754
3755 * cli/cli-decode.c (integer_unlimited_completer): New function.
3756 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
3757 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
3758 completer.
3759 * cli/cli-setshow.c: Include "cli/cli-utils.h".
3760 (is_unlimited_literal): New function.
3761 (do_set_command): Handle literal "unlimited" arguments.
3762 * frame.c (_initialize_frame) <set backtrace limit>: Document
3763 "unlimited".
3764 * printcmd.c (_initialize_printcmd) <set print
3765 max-symbolic-offset>: Add help text.
3766 * record-full.c (_initialize_record_full) <set record full
3767 insn-number-max>: Likewise.
3768 * record.c (_initialize_record) <set record
3769 instruction-history-size, set record function-call-history-size>:
3770 Add help text.
3771 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
3772 help text.
3773 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
3774 Likewise.
3775 * source.c (_initialize_source) <set listsize>: Add help text.
3776 * utils.c (initialize_utils) <set height, set width>: Likewise.
3777 <set pagination>: Mention "set height unlimited".
3778 * valprint.c (_initialize_valprint) <set print elements, set print
3779 repeats>: Document "unlimited".
3780
2f9d54cf
PA
37812013-04-10 Pedro Alves <palves@redhat.com>
3782
3783 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
3784 instead of disconnect_tracing.
3785 * infcmd.c (detach_command, disconnect_command): Call
3786 query_if_trace_running. Adjust.
3787 * top.c: Include "tracepoint.h".
3788 (quit_target): Delete. Contents moved ...
3789 (quit_force): ... here. Wrap each stage of teardown in
3790 TRY_CATCH. Call disconnect_tracing before detaching.
3791
393fd4c3
YQ
37922013-04-10 Hui Zhu <hui@codesourcery.com>
3793 Yao Qi <yao@codesourcery.com>
3794
3795 * configure.ac: Check libbabeltrace is installed.
3796 * config.in: Regenerate.
3797 * configure: Regenerate.
3798 * Makefile.in (LIBBABELTRACE): New.
3799 (CLIBS): Add LIBBABELTRACE.
3800 * ctf.c: Include "exec.h".
3801 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
3802 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
3803 (ctf_save_metadata_header): Define new type aliases in
3804 metadata.
3805 (ctf_write_header): Define event type "tsv_def" and "tp_def"
3806 in metadata. Start a new faked packet for trace status.
3807 (ctf_write_status): Write trace status to CTF.
3808 (ctf_write_uploaded_tsv): Write TSV to CTF.
3809 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
3810 (ctf_write_definition_end): End the faked packet.
3811
3812 (ctx, ctf_iter, trace_dirname): New.
3813 (start_pos): New variable.
3814 (ctf_destroy, ctf_open_dir, ctf_open): New.
3815 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
3816 macros.
3817 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
3818 (ctf_fetch_registers, ctf_xfer_partial): New.
3819 (ctf_get_trace_state_variable_value): New.
3820 (ctf_get_tpnum_from_frame_event): New.
3821 (ctf_get_traceframe_address): New.
3822 (ctf_trace_find, ctf_has_stack): New.
3823 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
3824 (ctf_get_trace_status, ctf_read_status): New.
3825 (_initialize_ctf): New.
3826 * tracepoint.c (get_tracepoint_number): New
3827 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 3828 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
3829 * tracepoint.h: ... here.
3830 (get_tracepoint_number): Declare it.
3831 (get_uploaded_tsv): Declare it.
3832
3833 * NEWS: Mention new configure option.
3834
5c2b4418
HZ
38352013-04-10 Pedro Alves <palves@redhat.com>
3836 Hui Zhu <hui@codesourcery.com>
3837
3838 * breakpoint.c (dprintf_re_set): New.
3839 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
3840 to dprintf_re_set.
3841
a5c66735
JB
38422013-04-09 Joel Brobecker <brobecker@adacore.com>
3843
3844 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
3845 Remove solib-svr4.o from the list.
3846
9e77999c
JB
38472013-04-09 Joel Brobecker <brobecker@adacore.com>
3848
3849 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
3850 Use gdb_assert_not_reached instead of invalid boolean expression.
3851
1927e618
PA
38522013-04-09 Pedro Alves <palves@redhat.com>
3853
3854 * remote.c (unpush_and_perror): New function.
3855 (readchar, remote_serial_write): Use it.
3856
10782d74
MM
38572013-04-09 Markus Metzger <markus.t.metzger@intel.com>
3858
3859 * NEWS: Mention new btrace RSP packets.
3860
4c8429ef
TT
38612013-04-08 Tom Tromey <tromey@redhat.com>
3862
3863 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
3864 long.
3865
8625fc1b
TT
38662013-04-08 Tom Tromey <tromey@redhat.com>
3867
3868 * maint.c (print_bfd_section_info): Print the section index.
3869 * symmisc.c (dump_msymbols): Print the section index.
3870
e27d198c
TT
38712013-04-08 Tom Tromey <tromey@redhat.com>
3872
3873 PR symtab/8424:
3874 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
3875 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
3876 * breakpoint.c (resolve_sal_pc): Update.
3877 * elfread.c (elf_gnu_ifunc_record_cache): Update.
3878 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
3879 (minsym_lookup_iterator_cb): Use it.
3880 (default_read_var_value): Update.
3881 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
3882 Update.
3883 * infcmd.c (jump_command): Update.
3884 * linespec.c (minsym_found): Update.
3885 * maint.c (maintenance_translate_address): Update.
3886 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
3887 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
3888 * parse.c (write_exp_msymbol): Update.
3889 * printcmd.c (address_info): Update.
3890 * psymtab.c (find_pc_sect_psymbol): Update.
3891 (fixup_psymbol_section): Check SYMBOL_SECTION, not
3892 SYMBOL_OBJ_SECTION.
3893 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
3894 Don't initialize SYMBOL_OBJ_SECTION.
3895 * spu-tdep.c (spu_catch_start): Update.
3896 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
3897 * symmisc.c (dump_msymbols, print_symbol): Update.
3898 * symtab.c (fixup_section): Don't set 'obj_section'. Change
3899 how fallback section is computed.
3900 (fixup_symbol_section): Update.
3901 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
3902 Update.
3903 (allocate_symbol, initialize_symbol, allocate_template_symbol):
3904 Initialize SYMBOL_SECTION.
3905 * symtab.h (struct general_symbol_info) <section>: Update comment.
3906 <obj_section>: Remove.
3907 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
3908 (SYMBOL_OBJFILE): New macro.
3909
e6dc44a8
TT
39102013-04-08 Tom Tromey <tromey@redhat.com>
3911
3912 * coffread.c (record_minimal_symbol): Update.
3913 * dbxread.c (record_minimal_symbol): Update.
3914 * elfread.c (record_minimal_symbol): Update.
3915 * machoread.c (macho_symtab_add_minsym): Update.
3916 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
3917 Update.
3918 * minsyms.c (prim_record_minimal_symbol): Update.
3919 (prim_record_minimal_symbol_full): Remove 'bfd_section'
3920 argument.
3921 (prim_record_minimal_symbol_and_info): Likewise.
3922 * minsyms.h (prim_record_minimal_symbol_full)
3923 (prim_record_minimal_symbol_and_info): Update.
3924 * symtab.c (allocate_symbol, initialize_symbol)
3925 (allocate_template_symbol): Initialize SYMBOL_SECTION.
3926 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
3927 Update.
3928
36192a8d
TT
39292013-04-08 Tom Tromey <tromey@redhat.com>
3930
3931 PR symtab/8423:
3932 * solib-som.c (som_solib_section_offsets): Use BFD section
3933 indices. Set offsets for all sections.
3934 * somread.c (som_symtab_read): Compute BFD section for
3935 symbol. Use prim_record_minimal_symbol_and_info.
3936 (som_symfile_read): Fix comment.
3937 (struct find_section_offset_arg): New.
3938 (find_section_offset, set_section_index): New functions.
3939 (som_symfile_offsets): Use set_section_index to compute
3940 section indices.
3941
65cf3563
TT
39422013-04-08 Tom Tromey <tromey@redhat.com>
3943
3944 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
3945 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
3946 gdb_bfd_section_index.
3947 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
3948 New functions.
3949 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
3950 Declare.
3951 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
3952 Update.
3953 * objfiles.c (add_to_objfile_sections_full): New function.
3954 (add_to_objfile_sections): Use it.
3955 (build_section_table): Rewrite.
3956 (objfile_relocate1): Use gdb_bfd_section_index. Update.
3957 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
3958 (struct objfile) <sections>: Update comment.
3959 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
3960 is NULL.
3961 (ALL_OBJSECTIONS): Use it.
3962 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
3963 * solib-frv.c (frv_relocate_main_executable): Update.
3964 * solib-target.c (solib_target_relocate_section_addresses):
3965 Use gdb_bfd_section_index.
3966 * symfile.c (build_section_addr_info_from_section_table):
3967 Use gdb_bfd_section_index.
3968 (build_section_addr_info_from_bfd, place_section): Likewise.
3969 * symtab.c (fixup_section): Update.
3970 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
3971
7cbd4a93
TT
39722013-04-08 Tom Tromey <tromey@redhat.com>
3973
3974 * minsyms.h (struct bound_minimal_symbol): New.
3975 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
3976 Remove objfile argument.
3977 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
3978 Return bound_minimal_symbol.
3979 * minsyms.c (lookup_minimal_symbol_by_pc_1)
3980 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
3981 Return bound_minimal_symbol.
3982 (in_gnu_ifunc_stub): Update.
3983 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
3984 Remove 'objfile_p' argument.
3985 (lookup_solib_trampoline_symbol_by_pc): Update.
3986 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
3987 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
3988 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
3989 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
3990 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
3991 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
3992 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
3993 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
3994 stack.c, symtab.c, tui/tui-disasm.c: Update.
3995
f85f34ed
TT
39962013-04-08 Tom Tromey <tromey@redhat.com>
3997
3998 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
3999 Use symbol's obstack, not an objfile.
4000 * coffread.c (process_coff_symbol): Update.
4001 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
4002 * jv-lang.c (add_class_symbol): Update.
4003 * mdebugread.c (new_symbol): Update.
4004 * minsyms.c (prim_record_minimal_symbol_full)
4005 (terminate_minimal_symbol_table): Update.
4006 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
4007 * stabsread.c (define_symbol, read_enum_type): Update.
4008 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
4009 Handle Ada specially.
4010 (symbol_set_language): Add 'obstack' argument.
4011 (symbol_set_names): Update.
4012 (symbol_natural_name, symbol_demangled_name): Always use
4013 ada_decode_symbol.
4014 * symtab.h (struct general_symbol_info)
4015 <language_specific::obstack>: New field.
4016 <ada_mangled>: New field.
4017 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
4018 (symbol_set_language): Update.
4019
ccde22c0
TT
40202013-04-08 Tom Tromey <tromey@redhat.com>
4021
4022 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
4023 Take an obstack, not an objfile.
4024 (symbol_set_names): Update.
4025 * symtab.h (symbol_set_demangled_name): Update.
4026
e623cf5d
TT
40272013-04-08 Tom Tromey <tromey@redhat.com>
4028
4029 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
4030 allocate_symbol.
4031 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
4032 (read_func_scope): Call allocate_template_symbol.
4033 (new_symbol_full): Call allocate_symbol.
4034 * jit.c (finalize_symtab): Call allocate_symbol.
4035 * jv-lang.c (add_class_symbol): Call allocate_symbol.
4036 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
4037 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
4038 (common_block_end): Call allocate_symbol.
4039 * symtab.c (allocate_symbol, initialize_symbol)
4040 (allocate_template_symbol): New functions.
4041 * symtab.c (allocate_symbol, initialize_symbol)
4042 (allocate_template_symbol): Declare.
4043 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
4044
f6de8ec2
PA
40452013-04-08 Pedro Alves <palves@redhat.com>
4046 Keith Seitz <keiths@redhat.com>
4047
4048 * breakpoint.c (create_breakpoint): Rename
4049 "parse_condition_and_thread" parameter to "parse_arg". Update
4050 describing comment. If !PARSE_ARG, then error out if ARG is not
4051 the empty string after extracting the location.
4052 * breakpoint.h (create_breakpoint): Rename
4053 "parse_condition_and_thread" parameter to "parse_arg".
4054
f65ce5fb
AR
40552013-04-08 Aleksandar Ristovski <aristovski@qnx.com
4056
4057 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
4058
cc5925ad
YQ
40592013-04-07 Yao Qi <yao@codesourcery.com>
4060
4061 * remote.c (remote_trace_find): Change type of parameters 'addr1'
4062 and 'addr2' to CORE_ADDR.
4063 * target.c (update_current_target): Update.
4064 * target.h (struct target_ops) <to_trace_find>: Change parameter
4065 type to CORE_ADDR.
4066 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
4067 'addr2' to CORE_ADDR.
4068 (tfile_trace_find): Likewise.
4069 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
4070 Change local variable 'addr' to type CORE_ADDR.
4071 * tracepoint.h (tfind_1): Update declaration.
4072
d9ac0664
EZ
40732013-04-06 Eli Zaretskii <eliz@gnu.org>
4074
4075 * windows-nat.c (windows_get_absolute_argv0): Move from here...
4076 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
4077 Include main.h.
4078
4079 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
4080 here...
4081 * main.h (windows_get_absolute_argv0): ...to here.
4082
02142a6c
DE
40832013-04-05 Doug Evans <dje@google.com>
4084
4085 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
4086 (read_cutu_die_from_dwo): Add comments.
4087 (read_structure_type): Update comment.
4088 (read_enumeration_type, read_namespace_type): Update comment.
4089 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
4090
43662968
JK
40912013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4092
4093 Convert man pages to texinfo, new gdbinit.5 texinfo page.
4094 * Makefile.in (gdb.z): Remove.
4095 (install-only): Remove $(man1dir) and gdb.1 installation.
4096 * gdb.1: Remove.
4097
9ead1b84
JK
40982013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4099
4100 Fix compatibility with Linux kernel 3.8.3.
4101 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
4102 to more inner block. Remove parsing of NUMBER from outer block.
4103 Parse NUMBER only if KEYWORD has been identified.
4104
d1794952
JK
41052013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4106
4107 Fix variable name shadowing.
4108 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
4109 filename to mapsfilename and update its uses.
4110
9025569e
EZ
41112013-04-05 Eli Zaretskii <eliz@gnu.org>
4112
4113 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
4114 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
4115 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
4116 details of the problem.
4117
c9a6ce02
PA
41182013-04-04 Pedro Alves <palves@redhat.com>
4119 Hui Zhu <hui@codesourcery.com>
4120
4121 * breakpoint.c (validate_commands_for_breakpoint): If validating a
4122 tracepoint, reset its STEP_COUNT and call validate_actionline.
4123
5ff888ce
DE
41242013-04-03 Doug Evans <dje@google.com>
4125
bf6af496
DE
4126 * dwarf2read.c (read_die_and_siblings_1): Renamed from
4127 read_die_and_siblings.
4128 (read_die_and_siblings): New function.
4129 (read_cutu_die_from_dwo): Dump die if requested.
4130 (read_die_and_children): Call read_full_die_1 and
4131 read_die_and_siblings_1.
4132 (read_full_die): Dump die if requested.
4133
4134 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
4135
0ac5b59e
DE
4136 * dwarf2read.c (struct dwo_file): New member comp_dir.
4137 Rename member name to dwo_name. All uses updated.
4138 (hash_dwo_file): Include comp_dir in computation.
4139 (eq_dwo_file): Ditto.
4140 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
4141 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
4142
5ff888ce
DE
4143 * psymtab.c (read_psymtabs_with_fullname): Don't call
4144 psymtab_to_fullname if the basenames are different.
4145
ec83d211
JK
41462013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4147
4148 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
4149 New entry about "fullname" presence.
4150
4f4352f7
PA
41512013-04-03 Pedro Alves <palves@redhat.com>
4152
4153 * NEWS: Mention x86_64/Cygwin as new native configuration.
4154
3d1d5ea3
DE
41552013-04-02 Doug Evans <dje@google.com>
4156
4157 * dwarf2read.c (read_structure_type): Fix typo in comment.
4158
be9a8770
PA
41592013-04-02 Pedro Alves <palves@redhat.com>
4160
4161 * NEWS: Mention "set/show debug aarch64", "set/show debug
4162 coff-pe-read" and "set/show debug mach-o".
4163
a46c1e42
PA
41642013-04-02 Pedro Alves <palves@redhat.com>
4165
4166 * NEWS: Mention "set/show remote trace-buffer-size-packet".
4167
3ad18b19
EZ
41682013-04-02 Eli Zaretskii <eliz@gnu.org>
4169
4170 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
4171 gdb_string.h is now in common/.
4172
e9f1758d
PA
41732013-04-02 Pedro Alves <palves@redhat.com>
4174
4175 * NEWS: Move "set debug notification" and "set trace-buffer-size"
4176 under "New options".
4177
049dc89b
JK
41782013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4179
4180 Revert this patch:
4181 PR gdb/15275
4182 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
4183
c33e31fd
PA
41842013-04-02 Pedro Alves <palves@redhat.com>
4185
4186 PR gdb/15275
4187
4188 * remote.c (send_interrupt_sequence): Use remote_serial_write.
4189 (remote_serial_write): New function.
4190 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
4191
ea5f3910
JW
41922013-04-01 Jiong Wang <jiwang@tilera.com>
4193
4194 * NEWS: Mention TILE-Gx in "New native configurations" and
4195 "New targets" sections.
4196
5c6fa7ab
DE
41972013-04-01 Doug Evans <dje@google.com>
4198
c0f78cd4
DE
4199 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
4200 (process_enumeration_scope): Simplify.
4201
0186c6a7
DE
4202 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
4203 type_unit_group ...
4204 (struct signatured_type): ... to here.
4205 (sig_type_ptr): New typedef.
4206 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
4207 out of union 't'. All uses updated.
4208 (dw2_get_file_names_reader): Assert not called for a type unit.
4209 (dw2_get_file_names): Assert not called for a type unit or type
4210 unit group.
4211 (build_type_psymtabs_reader): Assert called for a type unit.
4212 (build_type_psymtab_dependencies): Assert called for a type unit group.
4213
5c6fa7ab
DE
4214 * dwarf2read.c (free_dwo_file): Add comment.
4215 (dwarf2_per_objfile_free): Unref dwp bfd.
4216
b3c0ad67 42172013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
4218
4219 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
4220 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
4221 (read_pe_exported_syms): Remove unused 'exportix'.
4222 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
4223 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
4224 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
4225
e2df1547
AR
42262013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
4227
4228 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
4229 (print_it_watchpoint): Remove unused 'bl'.
4230 (say_where): Remove unused 'uiout'.
4231 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
4232 (bkpt_breakpoint_hit): Remove unused 'b'.
4233 (internal_bkpt_print_it): Remove unused 'uiout'.
4234 * buildsym.c (augment_type_symtab): Remove unused 'i'.
4235
d81e75c0
TD
42362013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
4237
4238 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
4239 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
4240
5a8b3f62
DE
42412013-03-29 Doug Evans <dje@google.com>
4242
ab5088bf
DE
4243 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
4244 Delete arg is_dwp. All callers updated.
4245 (open_dwp_file): New function.
4246 (open_and_init_dwp_file): Call it.
4247 (get_dwp_file): New function.
4248 (lookup_dwo_cutu): Call it.
4249
a8ad1e57
DE
4250 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
4251 unnecessary, cleanup.
4252
6296d8c1
DE
4253 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
4254
b0c7bfa9
DE
4255 * dwarf2read.c (read_cutu_die_from_dwo): New function.
4256 (lookup_dwo_unit): New function.
4257 (init_cutu_and_read_dies): Move DWO handling to new functions.
4258
c88ee1f0
DE
4259 * dwarf2read.c (struct signatured_type): Tweak comment.
4260 (struct dwo_unit): Tweak comment.
4261 (create_debug_types_hash_table): Tweak comment. Reformat long line.
4262 (create_dwo_debug_info_hash_table): Tweak comment.
4263 (dwarf2_per_cu_offset_and_type): Tweak comment.
4264
5a8b3f62
DE
4265 * dwarf2read.c (lookup_signatured_type): Remove complaint about
4266 missing .debug_types section.
4267
9852c492
YQ
42682013-03-29 Yao Qi <yao@codesourcery.com>
4269
4270 * corelow.c: Include "completer.h".
4271 (_initialize_corelow): Call add_target_with_completer with
4272 argument 'filename_completer'.
4273 * tracepoint.c: Likewise.
4274 * exec.c (_initialize_exec): Likewise.
4275 * target.c (add_target): Rename to ...
4276 (add_target_with_completer): ... this. Call set_cmd_completer
4277 if parameter completer is not NULL.
4278 (add_target): New.
4279 * target.h: Include "command.h".
4280 (add_target_with_completer): Declare it.
4281
af312be7
JB
42822013-03-28 Joel Brobecker <brobecker@adacore.com>
4283
4284 * coffread.c (is_import_fixup_symbol): New function.
4285 (record_minimal_symbol): Use is_import_fixup_symbol to
4286 detect import fixup symbols, and discard them.
4287
8a0459fd
DE
42882013-03-28 Doug Evans <dje@google.com>
4289
0349ea22
DE
4290 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
4291 types hash table until we know we need it.
4292
f652bce2
DE
4293 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
4294 index numbers.
4295
e4a48d9d
DE
4296 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
4297 All callers updated.
4298 (dw2_print_stats): Print #read CUs too.
4299 (dump_die_shallow): Print signatured types better.
4300
8a0459fd
DE
4301 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
4302 info_or_types_section to section. All uses updated.
4303 (struct dwo_unit): Ditto.
4304
bd3eecc3
PA
43052013-03-28 Pedro Alves <palves@redhat.com>
4306
4307 * NEWS (New options): New section.
4308 (New options): Mention set/show remote trace-status-packet.
4309 * remote.c (PACKET_qTStatus): New enumeration value.
4310 (remote_get_trace_status): Skip sending qTStatus if the packet is
4311 disabled. Use packet_ok.
4312 (_initialize_remote): Register a configuration command for
4313 qTStatus packet.
4314
41245087
DE
43152013-03-28 Doug Evans <dje@google.com>
4316
7edbb660
DE
4317 * symfile.c (find_separate_debug_file): Add comment.
4318 (terminate_after_last_dir_separator): Tweak comment.
4319
0018ea6f
DE
4320 * dwarf2read.c (create_partial_symtab): Add forward decl.
4321 (create_partial_symtab): Move to be closer to other psymtab functions.
4322 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
4323
ca69b9e6
DE
4324 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
4325 (compute_symtab_includes): Remove unnecessary forward declaration.
4326 (die_needs_namespace): Add comment marking group of functions for
4327 dwarf2 name computation.
4328
a9375afe
DE
4329 * typeprint.c (_initialize_typeprint): Improve type help text.
4330
41245087
DE
4331 * python/python.c (finish_python_initialization): Provide suggestion
4332 for how to tell gdb to find its python files.
4333
7f7cc265
PA
43342013-03-28 Pedro Alves <palves@redhat.com>
4335
4336 PR gdb/15294
4337
4338 * source.c (_initialize_source): Change back "set listsize" to an
4339 integer command.
4340
ec21308c
JK
43412013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
4342
4343 PR gdb/15275
4344 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
4345
840a9a1f
PA
43462013-03-27 Pedro Alves <palves@redhat.com>
4347
4348 * top.c (history_size): Rename to ...
4349 (history_size_setshow_var): ... this. Add comment.
4350 (show_commands): Use readline's 'history_length' instead of
4351 computing the history length by calling history_get in a loop.
4352 (set_history_size_command): Error out for sizes over INT_MAX.
4353 Restore previous history size on invalid size.
4354 (init_history): If HISTSIZE is negative, leave the history size as
4355 zero. Add comments.
4356 (init_main): Adjust.
4357
826ecc4d
PA
43582013-03-27 Pedro Alves <palves@redhat.com>
4359
4360 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
4361 coff_pe_read" command to "set debug coff-pe-read".
4362
0ccfeeae
MM
43632013-03-27 Markus Metzger <markus.t.metzger@intel.com>
4364
4365 * record.c (command_size_to_target_size): Fix size comparison.
4366 Change parameter type from pointer to integer to integer.
4367 Update all users.
4368
40653b35
PM
43692013-03-27 Pierre Muller <muller@sourceware.org>
4370
4371 * windows-nat.c (handle_output_debug_string): Avoid typecast
4372 from integer of different size warning.
4373
c62fa0e2
JB
43742013-03-26 Joel Brobecker <brobecker@adacore.com>
4375
4376 * windows-nat.c (handle_output_debug_string): Add empty line
4377 after local block variable definition.
4378
2c619be2
PA
43792013-03-26 Pedro Alves <palves@redhat.com>
4380
4381 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
4382 (net_open): Make 'polls' local unsigned.
4383
1b493192
PA
43842013-03-26 Pedro Alves <palves@redhat.com>
4385
4386 * remote.c (_initialize_remote): Make "set remoteaddresssize"
4387 a zuinteger command instead of uinteger.
4388
7ee70bf5
PA
43892013-03-26 Pedro Alves <palves@redhat.com>
4390
4391 * record-full.c (record_full_insn_num): Make it unsigned.
4392 (record_full_check_insn_num, record_full_message)
4393 (record_full_registers_change, record_full_xfer_partial): Remove
4394 record_full_insn_max_num check (it's always != 0).
4395 (record_full_info, record_full_restore): Use %u as format string.
4396 (): Use %u as format string.
4397 (set_record_full_insn_max_num): Remove record_full_insn_max_num
4398 check (it's always != 0).
4399
dfd1f9bb
PA
44002013-03-26 Pedro Alves <palves@redhat.com>
4401
4402 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
4403 and "set dcache size" commands zuinteger instead of uinteger.
4404
addb4faf
PA
44052013-03-26 Pedro Alves <palves@redhat.com>
4406
4407 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
4408 command zuinteger instead of uinteger.
4409
b75bf488
PA
44102013-03-26 Pedro Alves <palves@redhat.com>
4411
4412 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
4413 zuinteger instead of uinteger.
4414
42c634cb
PA
44152013-03-26 Pedro Alves <palves@redhat.com>
4416
4417 * record.c (record_insn_history_size_setshow_var)
4418 (record_call_history_size_setshow_var): New globals.
4419 (command_size_to_target_size): New function.
4420 (cmd_record_insn_history, cmd_record_call_history): Use
4421 command_size_to_target_size instead of cast.
4422 (validate_history_size, set_record_insn_history_size)
4423 (set_record_call_history_size): New functions.
4424 (_initialize_record): Install set_record_insn_history_size and
4425 set_record_call_history_size as "set" hooks of "set record
4426 instruction-history-size" and "set record
4427 function-call-history-size".
4428
1fb2e2b5
PA
44292013-03-26 Pedro Alves <palves@redhat.com>
4430
4431 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
4432 use with history_max_entries use. Remove FIXME note.
4433
99c819ee
MM
44342013-03-26 Markus Metzger <markus.t.metzger@intel.com>
4435
4436 * record-btrace.c (record_btrace_close): Call
4437 record_btrace_auto_disable.
4438
9f9e404c
JB
44392013-03-25 Joel Brobecker <brobecker@adacore.com>
4440
4441 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
4442
ebcdfe33
DE
44432013-03-25 Doug Evans <dje@google.com>
4444
4445 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
4446
24955f63
TT
44472013-03-25 Tom Tromey <tromey@redhat.com>
4448
4449 PR symtab/11462:
4450 * c-exp.y (exp): Add new productions for destructors after '.' and
4451 '->'.
4452 (write_destructor_name): New function.
4453
fce632b6
TT
44542013-03-25 Tom Tromey <tromey@redhat.com>
4455
4456 PR c++/9197:
4457 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
4458 value_struct_elt, not lookup_struct_elt_type.
4459 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
4460 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
4461 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
4462
a4341769
YQ
44632013-03-25 Yao Qi <yao@codesourcery.com>
4464
4465 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
4466 instead of '_mkdir'.
4467
b5981e5a
EZ
44682013-03-23 Eli Zaretskii <eliz@gnu.org>
4469
4470 * windows-nat.c (windows_get_absolute_argv0): New function.
4471 * windows-nat.h: Add its prototype.
4472
4473 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
4474 Use IS_DIR_SEPARATOR instead of looking for a character inside
4475 SLASH_STRING. Include filenames.h.
4476 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
4477 relocate_gdb_directory works when passed gdb_program_name.
4478 Include windows-nat.h.
4479
598d3636
JK
44802013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4481
4482 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
4483 * remote.c (trace_error): Remove the special handling of '2'.
4484 (readchar) <SERIAL_EOF>
4485 (readchar) <SERIAL_ERROR>
4486 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
4487 (remote_get_trace_status): Call throw_exception if EX is
4488 TARGET_CLOSE_ERROR.
4489 * utils.c (perror_with_name): Rename to ...
4490 (throw_perror_with_name): ... here. New parameter errcode, describe it
4491 in the function comment.
4492 (perror_with_name): New function wrapper.
4493 * utils.h (enum errors): New stub declaration.
4494 (throw_perror_with_name): New declaration.
4495
82b821e9
PA
44962013-03-22 Pedro Alves <palves@redhat.com>
4497 Yao Qi <yao@codesourcery.com>
4498 Mark Kettenis <kettenis@gnu.org>
4499
4500 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
4501 Don't let the user set the value to UINT_MAX directly.
4502 <var_integer>: Don't let the user set the value to INT_MAX
4503 directly.
4504
78a095c3
JK
45052013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
4506
4507 * remote.c (remote_unpush_target): New function.
4508 (remote_open_1): Remove two pop_target calls, update one comment, add
4509 comment to target_preopen call. Replace pop_target call by
4510 remote_unpush_target call.
4511 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
4512 pop_target calls by remote_unpush_target calls.
4513
3e74e146
PA
45142013-03-22 Pedro Alves <palves@redhat.com>
4515
4516 * linux-nat.c (linux_child_follow_fork): Don't call
4517 linux_enable_event_reporting.
4518 (linux_handle_extended_wait): Don't call
4519 linux_enable_event_reporting.
4520
a2213dca
PA
45212013-03-22 Pedro Alves <palves@redhat.com>
4522
4523 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
4524 use it to rewrite the trampoline buffers with type gdb_byte[], and
4525 undefine the macro. Remove char* cast.
4526
bd712aed
DE
45272013-03-21 Doug Evans <dje@google.com>
4528
4529 New commands "mt set per-command {space,time,symtab} {on,off}".
4530 * NEWS: Add entry.
4531 * event-top.c: #include "maint.h".
4532 * main.c: #include "maint.h".
4533 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
4534 timeval-utils.h, maint.h, cli/cli-setshow.h.
4535 (per_command_time, per_command_space): New static globals.
4536 (per_command_symtab): New static global.
4537 (per_command_setlist, per_command_showlist): New static globals.
4538 (struct cmd_stats): Move here from utils.c.
4539 (set_per_command_time): Renamed from set_display_time in utils.c
4540 and moved here. All callers updated.
4541 (set_per_command_space): Renamed from set_display_space in utils.c
4542 and moved here. All callers updated.
4543 (count_symtabs_and_blocks): New function.
4544 (report_command_stats): Moved here from utils.c. Add support for
4545 printing symtab stats. Only print data if enabled before command
4546 executed.
4547 (make_command_stats_cleanup): Ditto.
4548 (sert_per_command_cmd, show_per_command_cmd): New functions.
4549 (_initialize_maint_cmds): Add new commands
4550 mt set per-command {space,time,symtab} {on,off}.
4551 * maint.h: New file.
4552 * top.c: #include "maint.h".
4553 * utils.c (reset_prompt_for_continue_wait_time): New function.
4554 (get_prompt_for_continue_wait_time): New function.
4555 * utils.h (reset_prompt_for_continue_wait_time): Declare
4556 (get_prompt_for_continue_wait_time): Declare.
4557 (make_command_stats_cleanup): Moved to maint.h.
4558 (set_display_time, set_display_space): Moved to maint.h and renamed
4559 to set_per_command_time, set_per_command_space.
4560 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
4561 parse_binary_operation and made non-static. Don't call error,
4562 just return an error marker. All callers updated.
4563 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
4564
d76488d8
TT
45652013-03-21 Tom Tromey <tromey@redhat.com>
4566
4567 * symfile.c (alloc_section_addr_info): Update header. Don't set
4568 'num_sections' field.
4569 (build_section_addr_info_from_section_table): Set 'num_sections'.
4570 (build_section_addr_info_from_bfd): Likewise.
4571 (build_section_addr_info_from_objfile): Remove dead loop
4572 condition.
4573 (free_section_addr_info): Unconditionally call xfree.
4574 (relative_addr_info_to_section_offsets, addrs_section_sort)
4575 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
4576 condition.
4577 (syms_from_objfile_1): Remove dead 'if' condition. Check
4578 'num_sections'.
4579 (add_symbol_file_command): Set 'num_sections'.
4580 * symfile-mem.c (symbol_file_add_from_memory): Set
4581 'num_sections'.
4582 * somread.c (som_symfile_offsets): Remove dead loop condition.
4583 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
4584 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
4585
a72e5169 45862013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
4587
4588 * tracepoint.h (decode_agent_options): Add 'trace_string'
4589 argument.
4590 * tracepoint.c (decode_agent_options): Add 'trace_string'
4591 argument.
4592 (validate_actionline): Update.
4593 (collect_symbol): Add 'trace_string' argument.
4594 (struct add_local_symbols_data) <trace_string>: New field.
4595 (do_collect_symbol): Update.
4596 (add_local_symbols): Add 'trace_string' argument.
4597 (encode_actions_1): Update.
4598 (trace_dump_actions): Update.
4599 * dwarf2loc.c (access_memory): Update.
4600 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
4601 * ax-general.c (new_agent_expr): Update.
4602 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
4603 (gen_trace_for_return_address): Add argument.
4604 (trace_kludge, trace_string_kludge): Remove.
4605 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
4606 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
4607 (gen_trace_for_var): Add 'trace_string' argument.
4608 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
4609 (gen_printf, agent_eval_command_one): Update.
4610
b2f83c08
TT
46112013-03-21 Tom Tromey <tromey@redhat.com>
4612
4613 PR exp/15109:
4614 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
4615 Handle FILENAME token.
4616
9507860e
TT
46172013-03-21 Tom Tromey <tromey@redhat.com>
4618
4619 * c-exp.y (YYPRINT): Define.
4620 (c_print_token): New function.
4621
e403aa4b
TT
46222013-03-21 Tom Tromey <tromey@redhat.com>
4623
4624 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
4625
af307d6a
YQ
46262013-03-21 Yao Qi <yao@codesourcery.com>
4627
4628 * ctf.c: Include "gdb_stat.h".
4629 [USE_WIN32API]: New macro 'mkdir'.
4630 (ctf_start): Use permission bits macros if they are defined.
4631
fb81d016
KS
46322013-03-20 Keith Seitz <keiths@redhat.com>
4633
4634 * breakpoint.h (struct breakpoint): Add comment to
4635 extra_string indicating that this member is mallod'd.
4636 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
4637
ef0026f0
PA
46382013-03-20 Pedro Alves <palves@redhat.com>
4639
4640 PR gdb/15289
4641
4642 * cli/cli-setshow.c (do_set_command)
4643 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
4644 the result of parsing the command argument. Throw error if the
4645 value is greater than UINT_MAX. Print the invalid value with
4646 plongest.
4647 <var_integer, var_zinteger>: Use LONGEST for variable holding the
4648 result of parsing the command argument. Throw error if the value
4649 is greater than INT_MAX, not greater or equal. Also throw error
4650 if the value is less than INT_MIN. Print the invalid value with
4651 plongest.
4652 <var_zuinteger_unlimited>: Throw error if the value is greater
4653 than INT_MAX, not greater or equal.
4654 (do_show_command) <var_integer, var_zinteger,
4655 var_zuinteger_unlimited>: Use %d for printing int, not %u.
4656
24d6c2a0
TT
46572013-03-20 Tom Tromey <tromey@redhat.com>
4658
4659 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
4660 if possible.
4661 * dwarf2read.c (read_func_scope): Remove old FIXME.
4662 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
4663 not LOC_COMPUTED.
4664 * findvar.c (symbol_read_needs_frame, default_read_var_value):
4665 Unconditionally call via computed ops, if possible.
4666 * printcmd.c (address_info): Unconditionally call via computed ops,
4667 if possible.
4668 * stack.c (read_frame_arg): Unconditionally call via computed ops,
4669 if possible.
4670 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
4671 * tracepoint.c (scope_info): Unconditionally call via computed ops,
4672 if possible.
4673
f1e6e072
TT
46742013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4675 Tom Tromey <tromey@redhat.com>
4676
4677 PR symtab/8421:
4678 * coffread.c (coff_register_index): New global.
4679 (process_coff_symbol, coff_read_enum_type): Set
4680 SYMBOL_ACLASS_INDEX.
4681 (_initialize_coffread): Initialize new global.
4682 * dwarf2loc.c (locexpr_find_frame_base_location)
4683 (dwarf2_block_frame_base_locexpr_funcs)
4684 (loclist_find_frame_base_location)
4685 (dwarf2_block_frame_base_loclist_funcs): New.
4686 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
4687 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
4688 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
4689 (dwarf2_block_frame_base_loclist_funcs): New.
4690 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
4691 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
4692 globals.
4693 (read_func_scope): Update.
4694 (fixup_go_packaging, mark_common_block_symbol_computed)
4695 (var_decode_location, new_symbol_full, dwarf2_const_value):
4696 Set SYMBOL_ACLASS_INDEX.
4697 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
4698 (_initialize_dwarf2_read): Initialize new globals.
4699 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
4700 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
4701 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
4702 globals.
4703 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
4704 (_initialize_mdebugread): Initialize new globals.
4705 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
4706 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
4707 (stab_register_index, stab_regparm_index): New globals.
4708 (define_symbol, read_enum_type, common_block_end): Set
4709 SYMBOL_ACLASS_INDEX.
4710 (_initialize_stabsread): Initialize new globals.
4711 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
4712 globals.
4713 (MAX_SYMBOL_IMPLS): New define.
4714 (register_symbol_computed_impl, register_symbol_block_impl)
4715 (register_symbol_register_impl)
4716 (initialize_ordinary_address_classes): New functions.
4717 (_initialize_symtab): Call initialize_ordinary_address_classes.
4718 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
4719 (struct symbol_impl): New.
4720 (SYMBOL_ACLASS_BITS): New define.
4721 (struct symbol) <aclass, ops>: Remove fields.
4722 <aclass_index>: New field.
4723 (symbol_impls): Declare.
4724 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
4725 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
4726 (register_symbol_computed_impl, register_symbol_block_impl)
4727 (register_symbol_register_impl): Declare.
4728 (struct symbol_computed_ops): Add location_has_loclist.
4729 (struct symbol_block_ops): New.
4730 (SYMBOL_BLOCK_OPS): New.
4731 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
4732
dbccfd4c
TT
47332013-03-20 Tom Tromey <tromey@redhat.com>
4734
4735 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
4736 (print_partial_symbols, recursively_search_psymtabs): Use
4737 PSYMBOL_CLASS.
4738
e3f1ad4f
PM
47392013-03-20 Pierre Muller <muller@sourceware.org>
4740
4741 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
4742 addtion, subtraction, multiplication and division binary operator.
4743
460014f5
JK
47442013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
4745
4746 Code cleanup.
4747 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
4748 * bsd-kvm.c (bsd_kvm_close): Likewise.
4749 * bsd-uthread.c (bsd_uthread_close): Likewise.
4750 * corelow.c (core_close): Likewise.
4751 (core_close_cleanup): Remove parameter quitting from a caller.
4752 * event-top.c (async_disconnect): Likewise.
4753 * exec.c (exec_close_1): Remove parameter quitting.
4754 * go32-nat.c (go32_close): Likewise.
4755 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
4756 parameter quitting from a caller.
4757 * mips-linux-nat.c (super_close): Remove parameter quitting from the
4758 variable.
4759 (mips_linux_close): Remove parameter quitting. Remove parameter
4760 quitting from a caller.
4761 * monitor.c (monitor_close): Remove parameter quitting.
4762 * monitor.h (monitor_close): Likewise.
4763 * record-btrace.c (record_btrace_close): Likewise.
4764 * record-full.c (record_full_close): Likewise.
4765 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
4766 it also from fprintf_unfiltered.
4767 * remote-mips.c (mips_close): Remove parameter quitting.
4768 (mips_detach): Remove parameter quitting from a caller.
4769 * remote-sim.c (gdbsim_close): Remove parameter quitting.
4770 (gdbsim_close): Remove duplicate function comment. Remove parameter
4771 quitting and remove it also from printf_filtered.
4772 * remote.c (remote_close): Remove parameter quitting.
4773 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
4774 * target.c (update_current_target): Remove parameter int from to_close
4775 de_fault.
4776 (push_target, unpush_target, pop_target): Remove parameter quitting from
4777 a caller.
4778 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
4779 Remove parameter quitting from a caller.
4780 (target_preopen): Remove parameter quitting from a caller.
4781 (target_close): Remove parameter quitting. Remove parameter quitting
4782 from a caller two times. Remove parameter quitting also from
4783 fprintf_unfiltered.
4784 * target.h (struct target_ops): Remove parameter quitting and as int
4785 from fields to_xclose and to_close.
4786 (extern struct target_ops current_target):
4787 (target_close, pop_all_targets): Remove parameter quitting. Update the
4788 comment.
4789 (pop_all_targets_above): Remove parameter quitting.
4790 * top.c (quit_target): Remove parameter quitting from a caller.
4791 * tracepoint.c (tfile_close): Remove parameter quitting.
4792 * windows-nat.c (windows_close): Remove parameter quitting.
4793
35a7120b
CV
47942013-03-20 Corinna Vinschen <vinschen@redhat.com>
4795
4796 * windows-nat.c (handle_output_debug_string): Replace call
4797 to string_to_core_addr with call to strtoull.
4798
8249a5a9
YQ
47992013-03-20 Yao Qi <yao@codesourcery.com>
4800
4801 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
4802 and write it to CTF metadata.
4803
2c15ef43
CV
48042013-03-19 Corinna Vinschen <vinschen@redhat.com>
4805
4806 * windows-nat.c (handle_output_debug_string): Change type of n to
4807 SIZE_T to avoid crash on 64 bit systems.
4808
1cdd3232
EZ
48092013-03-17 Eli Zaretskii <eliz@gnu.org>
4810
4811 * python/python-internal.h (HAVE_SNPRINTF)
4812 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
4813 about redefinition of snprintf by pyerrors.h.
4814
3cb2ab1a
SE
48152013-03-15 Steve Ellcey <sellcey@mips.com>
4816
4817 * remote-sim.c (sim_command_completer): Make char arguments const.
4818
9ce98649
TT
48192013-03-15 Tom Tromey <tromey@redhat.com>
4820
4821 PR c++/15116:
4822 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
4823
dccee2de
TT
48242013-03-14 Tom Tromey <tromey@redhat.com>
4825
4826 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
4827 New fields.
4828 (get_file_crc): Move from symfile.c.
4829 (gdb_bfd_crc): New function.
4830 * gdb_bfd.h (gdb_bfd_crc): Declare.
4831 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
4832 * symfile.c (get_file_crc): Move to gdb_bfd.c.
4833 (separate_debug_file_exists): Use gdb_bfd_crc.
4834
cc0ea93c
TT
48352013-03-14 Tom Tromey <tromey@redhat.com>
4836
4837 * symfile.c (get_debug_link_info): Remove.
4838 (find_separate_debug_file_by_debuglink): Use
4839 bfd_get_debug_link_info.
4840
08c23b0d
TT
48412013-03-14 Tom Tromey <tromey@redhat.com>
4842
4843 * symtab.c (error_in_psymtab_expansion): New function.
4844 (lookup_symbol_aux_quick)
4845 (basic_lookup_transparent_type_quick): Remove "last resort"
4846 code. Use error_in_psymtab_expansion.
4847
288e77a7
JK
48482013-03-14 Doug Evans <dje@google.com>
4849 Jan Kratochvil <jan.kratochvil@redhat.com>
4850
4851 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
4852 any successful compare_filenames_for_search or FILENAME_CMP.
4853 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
4854 * symtab.c (iterate_over_some_symtabs): Likewise.
4855
8f1b8b82
JK
48562013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4857
4858 * source.c (print_source_lines_base): Make a local copy of
4859 symtab_to_fullname.
4860
23eb71e4
JK
48612013-03-14 Hui Zhu <hui_zhu@mentor.com>
4862 Jan Kratochvil <jan.kratochvil@redhat.com>
4863
4864 * source.c (print_source_lines_base): Suppress "file" for TUI.
4865
bb869963
SDJ
48662013-03-14 Keith Seitz <keiths@redhat.com>
4867 Alan Matsuoka <alanm@redhat.com>
4868
4869 PR c++/15203
4870 PR c++/15210
4871 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
4872 TYPE_CODE_METHOD.
4873 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
4874 symbols.
4875
d6682f9e
YQ
48762013-03-14 Yao Qi <yao@codesourcery.com>
4877
4878 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
4879 status to tfile if trace is stopped by command 'tstop'.
4880
a22fa6e4
YQ
48812013-03-14 Yao Qi <yao@codesourcery.com>
4882
4883 * tracepoint.c (tfile_write_status): Write trace notes and user
4884 name into tfile if they are not NULL.
4885
d0353e76
YQ
48862013-03-14 Hui Zhu <hui@codesourcery.com>
4887 Yao Qi <yao@codesourcery.com>
4888
4889 * Makefile.in (REMOTE_OBS): Add ctf.o.
4890 (SFILES): Add ctf.c.
4891 (HFILES_NO_SRCDIR): Add ctf.h.
4892 * ctf.c, ctf.h: New files.
4893 * tracepoint.c: Include 'ctf.h'.
4894 (collect_pseudocommand): Remove static.
4895 (trace_save_command): Parse option "-ctf".
4896 Produce different trace file writers per option.
4897 Adjust output message.
4898 (trace_save_tfile, trace_save_ctf): New.
4899 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
4900 * mi/mi-main.c: Include 'ctf.h'.
4901 (mi_cmd_trace_save): Handle option '-ctf'. Call either
4902 trace_save_tfile or trace_save_ctf.
4903 * NEWS: Mention these changes.
4904
3f43bc09
YQ
49052013-03-14 Yao Qi <yao@codesourcery.com>
4906
4907 * tracepoint.c (trace_file_writer_xfree): New.
4908 (struct tfile_writer_data): New.
4909 (tfile_dtor, tfile_can_target_save, tfile_start): New.
4910 (tfile_write_header, tfile_write_regblock_type): New.
4911 (tfile_write_status, tfile_write_uploaded_tsv): New.
4912 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
4913 (tfile_write_raw_data, (tfile_end): New.
4914 (tfile_write_ops): New global variable.
4915 (TRACE_WRITE_R_BLOCK): New macro.
4916 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
4917 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
4918 (TRACE_WRITE_V_BLOCK): New macro.
4919 (trace_save): Add extra one parameter WRITER. Make it static.
4920 Use WRITER to writer trace.
4921 (tfile_trace_file_writer_new): New.
4922 (trace_save_command): Caller update.
4923 (trace_save_tfile): Write trace data in TFILE format.
4924 * tracepoint.h (struct trace_frame_write_ops): New.
4925 (struct trace_file_write_ops): New.
4926 (struct trace_file_writer): New.
4927 (trace_save): Remove its declaration.
4928 (trace_save_tfile): Declare it.
4929 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
4930 instead of trace_save.
4931
58665b40
PA
49322013-03-13 Pedro Alves <palves@redhat.com>
4933
4934 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
4935
10217050
PA
49362013-03-13 Pedro Alves <palves@redhat.com>
4937
4938 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
4939 commented out code.
4940 * demangle.c (current_demangling_style_string): Make it const.
4941 (set_demangling_command): Assert the demangling style is known.
4942 Remove all handling of unknown styles. Set
4943 'current_demangling_style_string' to an element of the
4944 demangling_style_names array.
4945 (set_demangling_style): Delete.
4946 (_initialize_demangler): Set current_demangling_style_string to the
4947 element of the demangling_style_names array that corresponds to
4948 the default demangling style. Remove FIXME note. Don't call
4949 set_demangling_style.
4950 * gdb-demangle.h (set_demangling_style): Remove declaration.
4951
6f937416
PA
49522013-03-13 Pedro Alves <palves@redhat.com>
4953
4954 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
4955 fields const.
4956 (ada_make_symbol_completion_list): Make "text0" parameter const.
4957 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
4958 * breakpoint.c (condition_completer): Make "text" and "word"
4959 parameters const. Adjust.
4960 (check_tracepoint_command): Adjust to validate_actionline
4961 prototype change.
4962 (catch_syscall_completer): Make "text" and "word" parameters
4963 const.
4964 * cli/cli-cmds.c (show_user): Make "comname" local const.
4965 (valid_command_p): Make "command" parameter const.
4966 (alias_command): Make "alias_prefix" and "command_prefix" locals
4967 const.
4968 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
4969 (add_alias_cmd): Make "name" and "oldname" parameters const.
4970 Adjust. No longer make copy of OLDNAME.
4971 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
4972 (add_setshow_cmd_full, add_setshow_enum_cmd)
4973 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
4974 (add_setshow_filename_cmd, add_setshow_string_cmd)
4975 (add_setshow_string_noescape_cmd)
4976 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
4977 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
4978 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
4979 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
4980 Make "name" parameter const.
4981 (help_cmd): Rename "command" parameter to "arg". New const local
4982 "command".
4983 (find_cmd): Make "command" parameter const.
4984 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
4985 deprecated_cmd_warning prototype change.
4986 (undef_cmd_error): Make "cmdtype" parameter const.
4987 (lookup_cmd): Make "line" parameter const.
4988 (deprecated_cmd_warning): Change type of "text" parameter to
4989 pointer to const char, from pointer to pointer to char. Adjust.
4990 (lookup_cmd_composition): Make "text" parameter const.
4991 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
4992 parameters const.
4993 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
4994 const.
4995 * cli/cli-script.c (validate_comname): Make "tem" local const.
4996 (define_command): New const local "tem_c". Use it in calls to
4997 lookup_cmd.
4998 (document_command): Make "tem" and "comfull" locals const.
4999 (show_user_1): Make "prefix" and "name" parameters const.
5000 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
5001 const.
5002 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
5003 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
5004 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
5005 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
5006 (complete_on_enum, add_setshow_enum_cmd)
5007 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
5008 (add_setshow_filename_cmd, add_setshow_string_cmd)
5009 (add_setshow_string_noescape_cmd)
5010 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
5011 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
5012 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
5013 Change prototypes, constifying strings.
5014 * completer.c (noop_completer, filename_completer): Make "text"
5015 and "prefix" parameters const.
5016 (location_completer, expression_completer)
5017 (complete_line_internal): Make "text" and "prefix" parameters
5018 const and adjust.
5019 (command_completer, signal_completer): Make "text" and "prefix"
5020 parameters const.
5021 * completer.h (noop_completer, filename_completer)
5022 (expression_completer, location_completer, command_completer)
5023 (signal_completer): Change prototypes.
5024 * corefile.c (complete_set_gnutarget): Make "text" and "word"
5025 parameters const.
5026 * cp-abi.c (cp_abi_completer): Likewise.
5027 * expression.h (parse_expression_for_completion): Change
5028 prototype.
5029 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
5030 parameters const.
5031 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
5032 * infrun.c (handle_completer): Make "text" and "word" parameters
5033 const.
5034 * interps.c (interpreter_completer): Make "text" and "word"
5035 parameters const.
5036 * language.h (struct language_defn)
5037 <la_make_symbol_completion_list>: Make "text" and "word"
5038 parameters const.
5039 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
5040 (parse_exp_in_context): Rename to ...
5041 (parse_exp_in_context_1): ... this.
5042 (parse_exp_in_context): Reimplement, with const hack from
5043 parse_exp_1.
5044 (parse_expression_for_completion): Make "string" parameter const.
5045 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
5046 to pointer to const char. Adjust.
5047 (print_command_1): Make "exp" parameter const.
5048 (output_command): Rename to ...
5049 (output_command_const): ... this. Make "exp" parameter const.
5050 (output_command): Reimplement.
5051 (x_command): Adjust.
5052 (display_command): Rename "exp" parameter to "arg". New "exp"
5053 local, const version of "arg".
5054 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
5055 "cmd_name" local const.
5056 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
5057 call.
5058 (cmdpy_completer): Make "text" and "word" parameters const.
5059 (gdbpy_parse_command_name): Make "prefix_text2" local const.
5060 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
5061 const.
5062 * remote.c (_initialize_remote): Make "cmd_name" local const.
5063 * symtab.c (language_search_unquoted_string): Make "text" and "p"
5064 parameters const. Adjust.
5065 (completion_list_add_fields): Make "sym_text", "text" and "word"
5066 parameters const.
5067 (struct add_name_data) <sym_text, text, word>: Make fields const.
5068 (default_make_symbol_completion_list_break_on): Make "text" and
5069 "word" parameters const. Adjust locals.
5070 (default_make_symbol_completion_list)
5071 (make_symbol_completion_list, make_symbol_completion_type)
5072 (make_symbol_completion_list_fn): Make "text" and "word"
5073 parameters const.
5074 (make_file_symbol_completion_list): Make "text", "word" and
5075 "srcfile" parameters const. Adjust locals.
5076 (add_filename_to_list): Make "text" and "word" parameters const.
5077 (struct add_partial_filename_data) <text, word>: Make fields
5078 const.
5079 (make_source_files_completion_list): Make "text" and "word"
5080 parameters const.
5081 * symtab.h (default_make_symbol_completion_list_break_on)
5082 (default_make_symbol_completion_list, make_symbol_completion_list)
5083 (make_symbol_completion_type enum type_code)
5084 (make_symbol_completion_list_fn make_file_symbol_completion_list)
5085 (make_source_files_completion_list): Change prototype.
5086 * top.c (execute_command): Adjust to pass pointer to pointer to
5087 const char to lookup_cmd, and to deprecated_cmd_warning prototype
5088 change.
5089 (set_verbose): Make "cmdname" local const.
5090 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
5091 and adjust.
5092 (validate_actionline): Make "line" parameter a pointer to const
5093 char, and adjust.
5094 (encode_actions_1): Make "action_exp" local const, and adjust.
5095 (encode_actions): Adjust.
5096 (replace_comma): Delete.
5097 (trace_dump_actions): Make "action_exp" and "next_comma" locals
5098 const, and adjust. Don't frob the action string while splitting
5099 it at commas. Instead, make a copy of each split substring in
5100 turn.
5101 (trace_dump_command): Adjust to validate_actionline prototype
5102 change.
5103 * tracepoint.h (decode_agent_options, decode_agent_options)
5104 (encode_actions, validate_actionline): Change prototypes.
5105 * valprint.h (output_command): Delete declaration.
5106 (output_command_const): Declare.
5107 * value.c (function_destroyer): Cast const away in xfree call.
5108
a0bcdaa7
PA
51092013-03-13 Pedro Alves <palves@redhat.com>
5110
5111 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
5112 rather than casting 'const char * const *' to 'const char **'.
5113 * ada-lex.l (processInt): Make "trailer" local const. Remove
5114 'const char **' cast.
5115 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
5116 locals, and use those as strtol output pointer, instead than doing
5117 invalid casts to from 'const char **' to 'char **'.
5118 (_initialize_demangle): Remove cast.
5119 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
5120 locals, and use those as strtol output pointer, instead than doing
5121 invalid casts to from 'const char **' to 'char **'.
5122 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
5123 casts.
5124 * stap-probe.c (stap_parse_register_operand)
5125 (stap_parse_single_operand): Likewise.
5126
8ddb1965
YQ
51272013-03-13 Yao Qi <yao@codesourcery.com>
5128
5129 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
5130 the last matched 'V' blcok in trace frame.
5131
2d450646
JB
51322013-03-12 Joel Brobecker <brobecker@adacore.com>
5133
5134 * NEWS: Create a new section for the next release branch.
5135 Rename the section of the current branch, now that it has
5136 been cut.
5137
b4b79973 51382013-03-12 Joel Brobecker <brobecker@adacore.com>
5139
5140 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
5141 * version.in: Bump version to 7.6.50.20130312-cvs.
5142
ee047554
KS
51432013-03-12 Keith Seitz <keiths@redhat.com>
5144
5145 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
5146 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
5147 Remove temporary copy of input string.
5148 (mi_execute_command_wrapper): Make "cmd" const.
5149 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
5150 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
5151 Use const strings.
5152 (mi_parse): Make "cmd" const.
5153 Use const strings.
5154 * mi/mi-parse.h (mi_parse): Make "cmd" const.
5155
bbc13ae3
KS
51562013-03-12 Keith Seitz <keiths@redhat.com>
5157
5158 * ada-lang.c (ada_read_renaming_var_value): Pass const
5159 pointer to expression string to parse_exp_1.
5160 (create_excep_cond_exprs): Likewise.
5161 * ax-gdb.c (agent_eval_command_one): Likewise.
5162 (maint_agent_printf_command): Likewise.
5163 Constify much of the string handling/parsing.
5164 * breakpoint.c (set_breakpoint_condition): Pass const
5165 pointer to expression string to parse_exp_1.
5166 (update_watchpoint): Likewise.
5167 (parse_cmd_to_aexpr): Constify string handling.
5168 Pass const pointer to parse_exp_1.
5169 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
5170 (find_condition_and_thread): Likewise.
5171 Make TOK const.
5172 (watch_command_1): Make "arg" const.
5173 Constify string handling.
5174 Copy the expression string instead of changing the input
5175 string.
5176 (update_breakpoint_location): Pass const pointer to
5177 parse_exp_1.
5178 * eval.c (parse_and_eval_address): Make "exp" const.
5179 (parse_to_comma_and_eval): Make "expp" const.
5180 (parse_and_eval): Make "exp" const.
5181 * expression.h (parse_expression): Make argument const.
5182 (parse_exp_1): Make first argument const.
5183 * findcmd.c (parse_find_args): Treat "args" as const.
5184 * linespec.c (parse_linespec): Pass const pointer to
5185 linespec_expression_to_pc.
5186 (linespec_expression_to_pc): Make "exp_ptr" const.
5187 * parse.c (parse_exp_1): Make "stringptr" const.
5188 Make a copy of the expression to pass to parse_exp_in_context until
5189 this whole interface can be constified.
5190 (parse_expression): Make "string" const.
5191 * printcmd.c (ui_printf): Treat "arg" as const.
5192 Handle const strings.
5193 * tracepoint.c (validate_actionline): Pass const pointer to
5194 all calls to parse_exp_1.
5195 (encode_actions_1): Likewise.
5196 * value.h (parse_to_comma_and_eval): Make argument const.
5197 (parse_and_eval_address): Likewise.
5198 (parse_and_eval): Likewise.
5199 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
5200 (varobj_set_value): Likewise.
5201 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
5202 constify string handling.
5203 Pass const pointers to parse_and_eval_address and
5204 parse_to_comman_and_eval.
5205 * cli/cli-utils.c (skip_to_space): Rename to ...
5206 (skip_to_space_const): ... this. Handle const strings.
5207 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
5208 skip_to_space_const.
5209 (skip_to_space_const): Declare.
5210 * common/format.c (parse_format_string): Make "arg" const.
5211 Handle const strings.
5212 * common/format.h (parse_format_string): Make "arg" const.
5213 * gdbserver/ax.c (ax_printf): Make "format" const.
5214 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
5215 of the expression string.
5216
f3cec7e6
HZ
52172013-03-12 Hui Zhu <hui@codesourcery.com>
5218
5219 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
5220
9df7235c
HZ
52212013-03-12 Yao Qi <yao@codesourcery.com>
5222 Hui Zhu <hui@codesourcery.com>
5223
5224 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
5225 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
5226 DW_OP_deref_size.
5227
82d049ab
PH
52282013-03-12 Paul Hilfinger <hilfingr@adacore.com>
5229
5f8e0b8f
MF
5230 * ada-lex.l (rules): Only recognize 'thread' as a
5231 delimiter when followed by numerals, as for c-exp.y.
5232 Use new rewind_to_char function to rewind the input for
5233 expression-delimiting tokens.
5234 (rewind_to_char): New function.
82d049ab 5235
8c1fb155
JK
52362013-03-11 Pedro Alves <palves@redhat.com>
5237 Jan Kratochvil <jan.kratochvil@redhat.com>
5238
5239 * configure: Regenerate.
5240 * configure.ac (check dynamic export flag): Link python test with
5241 $PYTHON_LIBS.
5242
cc81e1c6
DE
52432013-03-11 Doug Evans <dje@google.com>
5244 Keith Seitz <keiths@redhat.com>
5245
5246 * linespec.c (find_linespec_symbols): Call find_function_symbols
5247 first, and then call lookup_prefix_sym/find_method.
5248
39086a0e
PA
52492013-03-11 Pedro Alves <palves@redhat.com>
5250
5251 * charset.c (convert_between_encodings): Don't cast between
5252 different pointer to pointer types. Instead, make the 'inp' local
5253 be of the type iconv expects.
5254 (wchar_iterate): Don't cast between different pointer to pointer
5255 types. Instead, use new pointer local of the type iconv expects.
5256 * target.c (target_read_stralloc, target_fileio_read_stralloc):
5257 Add new local of type char pointer, and use it to get a
5258 char/string view of the byte buffer, instead of casting between
5259 pointer to pointer types.
5260
90585175
HAQ
52612013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
5262
5263 * remote.c (remote_set_trace_buffer_size): Move != operator
5264 to the start of next line to fix an ARI warning.
5265
59ea5688
MM
52662013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5267
5268 * NEWS: Add record changes.
5269
946287b7
MM
52702013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5271
5272 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
5273 the instruction history disassembly.
5274 * disasm.c (dump_insns): Omit the pc prefix, if requested.
5275 * disasm.h (DISASSEMBLY_OMIT_PC): New.
5276
afedecd3
MM
52772013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5278
5279 * Makefile.in (SFILES): Add record-btrace.c
5280 (COMMON_OBS): Add record-btrace.o
5281 * record-btrace.c: New.
5282 * objfiles.c: Include btrace.h.
5283 (free_objfile): call btrace_free_objfile.
5284
15984c13
MM
52852013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5286
5287 * target.c (target_call_history, target_call_history_from,
5288 target_call_history_range): New.
5289 * target.h (target_ops) <to_call_history, to_call_history_from,
5290 to_call_history_range>: New fields.
5291 (target_call_history, target_call_history_from,
5292 target_call_history_range): New declaration.
5293 * record.c (get_call_history_modifiers, cmd_record_call_history,
5294 record_call_history_size): New.
5295 (_initialize_record): Add the "record function-call-history" command.
5296 Add "set/show record function-call-history-size" commands.
5297 * record.h (record_print_flag): New.
5298
67c86d06
MM
52992013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5300
5301 * target.h (target_ops) <to_insn_history, to_insn_history_from,
5302 to_insn_history_range>: New fields.
5303 (target_insn_history): New.
5304 (target_insn_history_from): New.
5305 (target_insn_history_range): New.
5306 * target.c (target_insn_history): New.
5307 (target_insn_history_from): New.
5308 (target_insn_history_range): New.
5309 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
5310 (record_insn_history_size): New.
5311 (get_insn_number): New.
5312 (get_context_size): New.
5313 (no_chunk): New.
5314 (get_insn_history_modifiers): New.
5315 (cmd_record_insn_history): New.
5316 (_initialize_record): Add "set/show record instruction-history-size"
5317 command. Add "record instruction-history" command.
5318
7c1687a9
MM
53192013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5320
5321 * record.h (record_disconnect): New.
5322 (record_detach): New.
5323 (record_mourn_inferior): New.
5324 (record_kill): New.
5325 * record-full.c (record_disconnect, record_detach,
5326 record_mourn_inferior, record_kill): Move to...
5327 * record.c: ...here.
5328 (DEBUG): New.
5329 (record_stop): New.
5330 (record_unpush): New.
5331 (cmd_record_stop): Call record_stop. Replace unpush_target
5332 call with record_unpush call.
5333 (record_disconnect, record_detach): Assert that the target
5334 is of record stratum. Call record_unpush, record_stop, and
5335 DEBUG.
5336 (record_mourn_inferior, record_kill): Assert that the target
5337 is of record stratum. Call record_unpush and DEBUG.
5338
25ea693b
MM
53392013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5340
5341 * record-full.h, record-full.c (record_memory_query): Rename
5342 to ...
5343 (record_full_memory_query): ...this. Update all users.
5344 (record_arch_list_add_reg): Rename to ...
5345 (record_full_arch_list_add_reg): ...this. Update all users.
5346 (record_arch_list_add_mem): Rename to ...
5347 (record_full_arch_list_add_mem): ...this. Update all users.
5348 (record_arch_list_add_end): Rename to ...
5349 (record_full_arch_list_add_end): ...this. Update all users.
5350 (record_gdb_operation_disable_set): Rename to ...
5351 (record_full_gdb_operation_disable_set): ...this.
5352 Update all users.
5353
88d1aa9d
MM
53542013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5355
5356 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
5357 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
5358 (RECORD_IS_REPLAY): Renamed to ...
5359 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
5360 (RECORD_FILE_MAGIC): Renamed to ...
5361 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
5362 (record_mem_entry): Renamed to ...
5363 (record_full_mem_entry): ... this. Updated all users.
5364 (record_reg_entry): Renamed to ...
5365 (record_full_reg_entry): ... this. Updated all users.
5366 (record_end_entry): Renamed to ...
5367 (record_full_end_entry): ... this. Updated all users.
5368 (record_type) <record_end, record_reg, record_mem>: Renamed
5369 to ...
5370 (record_full_type) <record_full_end, record_full_reg,
5371 record_full_mem>: ... this. Updated all users.
5372 (record_entry): Renamed to ...
5373 (record_full_entry): ... this. Updated all users.
5374 (record_core_buf_entry): Renamed to ...
5375 (record_full_core_buf_entry): ... this. Updated all users.
5376 (record_core_regbuf): Renamed to ...
5377 (record_full_core_regbuf): ... this. Updated all users.
5378 (record_core_start): Renamed to ...
5379 (record_full_core_start): ... this. Updated all users.
5380 (record_core_end): Renamed to ...
5381 (record_full_core_end): ... this. Updated all users.
5382 (record_core_buf_list): Renamed to ...
5383 (record_full_core_buf_list): ... this. Updated all users.
5384 (record_first): Renamed to ...
5385 (record_full_first): ... this. Updated all users.
5386 (record_list): Renamed to ...
5387 (record_full_list): ... this. Updated all users.
5388 (record_arch_list_head): Renamed to ...
5389 (record_full_arch_list_head): ... this. Updated all users.
5390 (record_arch_list_tail): Renamed to ...
5391 (record_full_arch_list_tail): ... this. Updated all users.
5392 (record_stop_at_limit): Renamed to ...
5393 (record_full_stop_at_limit): ... this. Updated all users.
5394 (record_insn_max_num): Renamed to ...
5395 (record_full_insn_max_num): ... this. Updated all users.
5396 (record_insn_num): Renamed to ...
5397 (record_full_insn_num): ... this. Updated all users.
5398 (record_insn_count): Renamed to ...
5399 (record_full_insn_count): ... this. Updated all users.
5400 (record_ops): Renamed to ...
5401 (record_full_ops): ... this. Updated all users.
5402 (record_core_ops): Renamed to ...
5403 (record_full_core_ops): ... this. Updated all users.
5404 (set_record_cmdlist): Renamed to ...
5405 (set_record_full_cmdlist): ... this. Updated all users.
5406 (show_record_cmdlist): Renamed to ...
5407 (show_record_full_cmdlist): ... this. Updated all users.
5408 (record_cmdlist): Renamed to ...
5409 (record_full_cmdlist): ... this. Updated all users.
5410 (record_beneath_to_resume_ops): Renamed to ...
5411 (record_full_beneath_to_resume_ops): ... this. Updated all users.
5412 (record_beneath_to_resume): Renamed to ...
5413 (record_full_beneath_to_resume): ... this. Updated all users.
5414 (record_beneath_to_wait_ops): Renamed to ...
5415 (record_full_beneath_to_wait_ops): ... this. Updated all users.
5416 (record_beneath_to_wait): Renamed to ...
5417 (record_full_beneath_to_wait): ... this. Updated all users.
5418 (record_beneath_to_store_registers_ops): Renamed to ...
5419 (record_full_beneath_to_store_registers_ops): ... this.
5420 Updated all users.
5421 (record_beneath_to_store_registers): Renamed to ...
5422 (record_full_beneath_to_store_registers): ... this.
5423 Updated all users.
5424 (record_beneath_to_xfer_partial_ops): Renamed to ...
5425 (record_full_beneath_to_xfer_partial_ops): ... this.
5426 Updated all users.
5427 (record_beneath_to_xfer_partial): Renamed to ...
5428 (record_full_beneath_to_xfer_partial): ... this.
5429 Updated all users.
5430 (record_beneath_to_insert_breakpoint): Renamed to ...
5431 (record_full_beneath_to_insert_breakpoint): ... this.
5432 Updated all users.
5433 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
5434 (record_full_beneath_to_stopped_by_watchpoint): ... this.
5435 Updated all users.
5436 (record_beneath_to_stopped_data_address): Renamed to ...
5437 (record_full_beneath_to_stopped_data_address): ... this.
5438 Updated all users.
5439 (record_beneath_to_async): Renamed to ...
5440 (record_full_beneath_to_async): ... this. Updated all users.
5441 (record_goto_insn): Renamed to ...
5442 (record_full_goto_insn): ... this. Updated all users.
5443 (record_save): Renamed to ...
5444 (record_full_save): ... this. Updated all users.
5445 (record_reg_alloc): Renamed to ...
5446 (record_full_reg_alloc): ... this. Updated all users.
5447 (record_reg_release): Renamed to ...
5448 (record_full_reg_release): ... this. Updated all users.
5449 (record_mem_alloc): Renamed to ...
5450 (record_full_mem_alloc): ... this. Updated all users.
5451 (record_mem_release): Renamed to ...
5452 (record_full_mem_release): ... this. Updated all users.
5453 (record_end_alloc): Renamed to ...
5454 (record_full_end_alloc): ... this. Updated all users.
5455 (record_end_release): Renamed to ...
5456 (record_full_end_release): ... this. Updated all users.
5457 (record_entry_release): Renamed to ...
5458 (record_full_entry_release): ... this. Updated all users.
5459 (record_list_release): Renamed to ...
5460 (record_full_list_release): ... this. Updated all users.
5461 (record_list_release_following): Renamed to ...
5462 (record_full_list_release_following): ... this.
5463 Updated all users.
5464 (record_list_release_first): Renamed to ...
5465 (record_full_list_release_first): ... this. Updated all users.
5466 (record_arch_list_add): Renamed to ...
5467 (record_full_arch_list_add): ... this. Updated all users.
5468 (record_get_loc): Renamed to ...
5469 (record_full_get_loc): ... this. Updated all users.
5470 (record_check_insn_num): Renamed to ...
5471 (record_full_check_insn_num): ... this. Updated all users.
5472 (record_arch_list_cleanups): Renamed to ...
5473 (record_full_arch_list_cleanups): ... this. Updated all users.
5474 (record_message): Renamed to ...
5475 (record_full_message): ... this. Updated all users.
5476 (record_message_wrapper): Renamed to ...
5477 (record_full_message_wrapper): ... this. Updated all users.
5478 (record_message_wrapper_safe): Renamed to ...
5479 (record_full_message_wrapper_safe): ... this. Updated all users.
5480 (record_gdb_operation_disable): Renamed to ...
5481 (record_full_gdb_operation_disable): ... this. Updated all users.
5482 (record_hw_watchpoint): Renamed to ...
5483 (record_full_hw_watchpoint): ... this. Updated all users.
5484 (record_exec_insn): Renamed to ...
5485 (record_full_exec_insn): ... this. Updated all users.
5486 (record_restore): Renamed to ...
5487 (record_full_restore): ... this. Updated all users.
5488 (record_async_inferior_event_token): Renamed to ...
5489 (record_full_async_inferior_event_token): ... this.
5490 Updated all users.
5491 (record_async_inferior_event_handler): Renamed to ...
5492 (record_full_async_inferior_event_handler): ... this.
5493 Updated all users.
5494 (record_core_open_1): Renamed to ...
5495 (record_full_core_open_1): ... this. Updated all users.
5496 (record_open_1): Renamed to ...
5497 (record_full_open_1): ... this. Updated all users.
5498 (record_open): Renamed to ...
5499 (record_full_open): ... this. Updated all users.
5500 (record_close): Renamed to ...
5501 (record_full_close): ... this. Updated all users.
5502 (record_resume_step): Renamed to ...
5503 (record_full_resume_step): ... this. Updated all users.
5504 (record_resumed): Renamed to ...
5505 (record_full_resumed): ... this. Updated all users.
5506 (record_execution_dir): Renamed to ...
5507 (record_full_execution_dir): ... this. Updated all users.
5508 (record_resume): Renamed to ...
5509 (record_full_resume): ... this. Updated all users.
5510 (record_get_sig): Renamed to ...
5511 (record_full_get_sig): ... this. Updated all users.
5512 (record_sig_handler): Renamed to ...
5513 (record_full_sig_handler): ... this. Updated all users.
5514 (record_wait_cleanups): Renamed to ...
5515 (record_full_wait_cleanups): ... this. Updated all users.
5516 (record_wait_1): Renamed to ...
5517 (record_full_wait_1): ... this. Updated all users.
5518 (record_wait): Renamed to ...
5519 (record_full_wait): ... this. Updated all users.
5520 (record_stopped_by_watchpoint): Renamed to ...
5521 (record_full_stopped_by_watchpoint): ... this. Updated all users.
5522 (record_disconnect): Renamed to ...
5523 (record_full_disconnect): ... this. Updated all users.
5524 (record_detach): Renamed to ...
5525 (record_full_detach): ... this. Updated all users.
5526 (record_mourn_inferior): Renamed to ...
5527 (record_full_mourn_inferior): ... this. Updated all users.
5528 (record_kill): Renamed to ...
5529 (record_full_kill): ... this. Updated all users.
5530 (record_stopped_data_address): Renamed to ...
5531 (record_full_stopped_data_address): ... this. Updated all users.
5532 (record_registers_change): Renamed to ...
5533 (record_full_registers_change): ... this. Updated all users.
5534 (record_store_registers): Renamed to ...
5535 (record_full_store_registers): ... this. Updated all users.
5536 (record_xfer_partial): Renamed to ...
5537 (record_full_xfer_partial): ... this. Updated all users.
5538 (record_breakpoint): Renamed to ...
5539 (record_full_breakpoint): ... this. Updated all users.
5540 (record_breakpoint_p): Renamed to ...
5541 (record_full_breakpoint_p): ... this. Updated all users.
5542 (record_breakpoints): Renamed to ...
5543 (record_full_breakpoints): ... this. Updated all users.
5544 (record_sync_record_breakpoints): Renamed to ...
5545 (record_full_sync_record_breakpoints): ... this.
5546 Updated all users.
5547 (record_init_record_breakpoints): Renamed to ...
5548 (record_full_init_record_breakpoints): ... this.
5549 Updated all users.
5550 (record_insert_breakpoint): Renamed to ...
5551 (record_full_insert_breakpoint): ... this. Updated all users.
5552 (record_remove_breakpoint): Renamed to ...
5553 (record_full_remove_breakpoint): ... this. Updated all users.
5554 (record_can_execute_reverse): Renamed to ...
5555 (record_full_can_execute_reverse): ... this. Updated all users.
5556 (record_get_bookmark): Renamed to ...
5557 (record_full_get_bookmark): ... this. Updated all users.
5558 (record_goto_bookmark): Renamed to ...
5559 (record_full_goto_bookmark): ... this. Updated all users.
5560 (record_async): Renamed to ...
5561 (record_full_async): ... this. Updated all users.
5562 (record_can_async_p): Renamed to ...
5563 (record_full_can_async_p): ... this. Updated all users.
5564 (record_is_async_p): Renamed to ...
5565 (record_full_is_async_p): ... this. Updated all users.
5566 (record_execution_direction): Renamed to ...
5567 (record_full_execution_direction): ... this. Updated all users.
5568 (record_info): Renamed to ...
5569 (record_full_info): ... this. Updated all users.
5570 (record_delete): Renamed to ...
5571 (record_full_delete): ... this. Updated all users.
5572 (record_is_replaying): Renamed to ...
5573 (record_full_is_replaying): ... this. Updated all users.
5574 (record_goto_entry): Renamed to ...
5575 (record_full_goto_entry): ... this. Updated all users.
5576 (record_goto_begin): Renamed to ...
5577 (record_full_goto_begin): ... this. Updated all users.
5578 (record_goto_end): Renamed to ...
5579 (record_full_goto_end): ... this. Updated all users.
5580 (record_goto): Renamed to ...
5581 (record_full_goto): ... this. Updated all users.
5582 (init_record_ops): Renamed to ...
5583 (init_record_full_ops): ... this. Updated all users.
5584 (record_core_resume): Renamed to ...
5585 (record_full_core_resume): ... this. Updated all users.
5586 (record_core_kill): Renamed to ...
5587 (record_full_core_kill): ... this. Updated all users.
5588 (record_core_fetch_registers): Renamed to ...
5589 (record_full_core_fetch_registers): ... this. Updated all users.
5590 (record_core_prepare_to_store): Renamed to ...
5591 (record_full_core_prepare_to_store): ... this. Updated all users.
5592 (record_core_store_registers): Renamed to ...
5593 (record_full_core_store_registers): ... this. Updated all users.
5594 (record_core_xfer_partial): Renamed to ...
5595 (record_full_core_xfer_partial): ... this. Updated all users.
5596 (record_core_insert_breakpoint): Renamed to ...
5597 (record_full_core_insert_breakpoint): ... this. Updated all users.
5598 (record_core_remove_breakpoint): Renamed to ...
5599 (record_full_core_remove_breakpoint): ... this. Updated all users.
5600 (record_core_has_execution): Renamed to ...
5601 (record_full_core_has_execution): ... this. Updated all users.
5602 (init_record_core_ops): Renamed to ...
5603 (init_record_full_core_ops): ... this. Updated all users.
5604 (cmd_record_restore): Renamed to ...
5605 (cmd_record_full_restore): ... this. Updated all users.
5606 (record_save_cleanups): Renamed to ...
5607 (record_full_save_cleanups): ... this. Updated all users.
5608 (cmd_record_start): Renamed to ...
5609 (cmd_record_full_start): ... this. Updated all users.
5610 (set_record_insn_max_num): Renamed to ...
5611 (set_record_full_insn_max_num): ... this. Updated all users.
5612 (set_record_command): Renamed to ...
5613 (set_record_full_command): ... this. Updated all users.
5614 (show_record_command): Renamed to ...
5615 (show_record_full_command): ... this. Updated all users.
5616 (_initialize_record): Renamed to ...
5617 (_initialize_record_full): ... this. Updated all users.
5618
d02ed0bb
MM
56192013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5620
5621 * record.h: Split into this and ...
5622 * record-full.h: ... this.
5623 * record.c: Split into this and ...
5624 * record-full.c: ... this.
5625 * target.h (target_ops): Add new fields to_info_record,
5626 to_save_record, to_delete_record, to_record_is_replaying,
5627 to_goto_record_begin, to_goto_record_end, to_goto_record.
5628 (target_info_record): New.
5629 (target_save_record): New.
5630 (target_supports_delete_record): New.
5631 (target_delete_record): New.
5632 (target_record_is_replaying): New.
5633 (target_goto_record_begin): New.
5634 (target_goto_record_end): New.
5635 (target_goto_record): New.
5636 * target.c (target_info_record): New.
5637 (target_save_record): New.
5638 (target_supports_delete_record): New.
5639 (target_delete_record): New.
5640 (target_record_is_replaying): New.
5641 (target_goto_record_begin): New.
5642 (target_goto_record_end): New.
5643 (target_goto_record): New.
5644 * record.h: Declare struct cmd_list_element.
5645 (record_cmdlist): New declaration.
5646 (set_record_cmdlist): New declaration.
5647 (show_record_cmdlist): New declaration.
5648 (info_record_cmdlist): New declaration.
5649 (cmd_record_goto): New declaration.
5650 * record.c: Remove unnecessary includes.
5651 Include inferior.h.
5652 (cmd_record_goto): Remove declaration.
5653 (record_cmdlist): Now extern. Initialize.
5654 (set_record_cmdlist): Now extern. Initialize.
5655 (show_record_cmdlist): Now extern. Initialize.
5656 (info_record_cmdlist): Now extern. Initialize.
5657 (find_record_target): New.
5658 (require_record_target): New.
5659 (cmd_record_start): Update.
5660 (cmd_record_delete): Remove target-specific code.
5661 Call target_delete_record.
5662 (cmd_record_stop): Unpush any record target.
5663 (set_record_insn_max_num): Move to record-full.c
5664 (set_record_command): Add comment.
5665 (show_record_command): Add comment.
5666 (info_record_command): Update comment.
5667 Remove target-specific code.
5668 Call the record target's to_info_record.
5669 (cmd_record_start): New.
5670 (cmd_record_goto): Now extern.
5671 Remove target-specific code.
5672 Call target_goto_begin, target_goto_end, or target_goto.
5673 (_initialize_record): Move record target ops initialization to
5674 record-full.c.
5675 Change "record" command help text.
5676 Move "record restore", "record set", and "record show" commands to
5677 record-full.c.
5678 * Makefile.in (SFILES): Add record-full.c.
5679 (HFILES_NO_SRCDIR): Add record-full.h.
5680 (COMMON_OBS): Add record-full.o.
5681 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
5682 * arm-tdep.c: Include record-full.h.
5683 * i386-linux-tdep.c: Include record-full.h instead of record.h.
5684 * i386-tdep.c: Include record-full.h.
5685 * infrun.c: Include record-full.h.
5686 * linux-record.c: Include record-full.h.
5687 * moxie-tdep.c: Include record-full.h.
5688 * record-full.c: Include record-full.h.
5689 Change module comment.
5690 (set_record_full_cmdlist): New.
5691 (show_record_full_cmdlist): New.
5692 (record_full_cmdlist): New.
5693 (record_goto_insn): New declaration.
5694 (record_save): New declaration.
5695 (record_check_insn_num): Change query string.
5696 (record_info): New.
5697 (record_delete): New.
5698 (record_is_replaying): New.
5699 (record_goto_entry): New.
5700 (record_goto_begin): New.
5701 (record_goto_end): New.
5702 (record_goto): New.
5703 (init_record_ops): Update.
5704 (init_record_core_ops): Update.
5705 (cmd_record_save): Rename to record_save. Remove target and arg checks.
5706 (cmd_record_start): New.
5707 (set_record_insn_max_num): Moved from record.c
5708 (set_record_full_command): New.
5709 (show_record_full_command): New.
5710 (_initialize_record_full): New.
5711
b48d48eb
MM
57122013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5713
5714 * target.h (add_deprecated_target_alias): New.
5715 * target.c (add_deprecated_target_alias): New.
5716
a950d57c
MM
57172013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5718
5719 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
5720 and signal.h.
5721 (linux_supports_btrace): Add kernel and
5722 cpuid check.
5723 (kernel_supports_btrace): New function.
5724 (cpu_supports_btrace): New function.
5725 (intel_supports_btrace): New function.
5726
9accd112
MM
57272013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5728
5729 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
5730 * remote.c: Include btrace.h.
5731 (struct btrace_target_info): New struct.
5732 (remote_supports_btrace): New function.
5733 (send_Qbtrace): New function.
5734 (remote_enable_btrace): New function.
5735 (remote_disable_btrace): New function.
5736 (remote_teardown_btrace): New function.
5737 (remote_read_btrace): New function.
5738 (init_remote_ops): Add btrace ops.
5739 (enum <unnamed>): Add btrace packets.
5740 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
5741 (_initialize_remote): Add packet configuration for branch tracing.
5742
c12a2917
MM
57432013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5744
5745 * features/btrace.dtd: New file.
5746 * Makefile.in (XMLFILES): Add btrace.dtd.
5747 * btrace.h (parse_xml_btrace): New declaration.
5748 * btrace.c: Include xml-support.h.
5749 (parse_xml_btrace): New function.
5750 (parse_xml_btrace_block): New function.
5751 (block_attributes): New struct.
5752 (btrace_attributes): New struct.
5753 (btrace_children): New struct.
5754 (btrace_elements): New struct.
5755
3e3aea48
MM
57562013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5757
5758 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
5759 (amd64_linux_enable_btrace): New.
5760 (amd64_linux_disable_btrace): New.
5761 (amd64_linux_teardown_btrace): New.
5762 (_initialize_amd64_linux_nat): Initialize btrace ops.
5763 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
5764 (i386_linux_enable_btrace): New.
5765 (i386_linux_disable_btrace): New.
5766 (i386_linux_teardown_btrace): New.
5767 (_initialize_i386_linux_nat): Initialize btrace ops.
5768 * config/i386/linux.mh: Add linux-btrace.o.
5769 * config/i386/linux64.mh: Add linux-btrace.o.
5770
7c97f91e
MM
57712013-03-11 Markus Metzger <markus.t.metzger@intel.com>
5772
5773 * common/linux_btrace.h: New file.
5774 * common/linux_btrace.c: New file.
5775 * Makefile.in (SFILES): Add btrace.c.
5776 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
5777 (COMMON_OBS): Add btrace.o.
5778 (linux-btrace.o): New rule.
5779
1999790b 57802013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
5781
5782 * target.h: Include btrace.h.
5783 (struct target_ops) <to_supports_btrace, to_enable_btrace,
5784 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
5785 * target.c (target_supports_btrace): New function.
5786 (target_enable_btrace): New function.
5787 (target_disable_btrace): New function.
5788 (target_teardown_btrace): New function.
5789 (target_read_btrace): New function.
5790 * btrace.h: New file.
5791 * btrace.c: New file.
5792 * Makefile.in: Add btrace.c.
5793 * gdbthread.h: Include btrace.h.
5794 (struct thread_info): Add btrace field.
5795 * thread.c: Include btrace.h.
5796 (clear_thread_inferior_resources): Call target_teardown_btrace.
5797 * common/btrace-common.h: New file.
5798
61a31a67
JK
57992013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5800
5801 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
5802 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
5803 kill_status to outer block.
5804
05c56a9d
JK
58052013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5806
5807 Fix entry-values if the callee called a noreturn function.
5808 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
5809 get_frame_address_in_block. Add new comment.
5810
9112db09
JK
58112013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5812
5813 Fix entry-values in C++ across CUs.
5814 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
5815 lookup_minimal_symbol. Add a comment.
5816 * dwarf2read.c
5817 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
5818 DW_AT_linkage_name.
5819
9b67fcec
YQ
58202013-03-08 Yao Qi <yao@codesourcery.com>
5821
5822 * tracepoint.c (_initialize_tracepoint): Indent the code.
5823
6221be90
PA
58242013-03-08 Pedro Alves <palves@redhat.com>
5825
5826 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
5827 (parse_find_args, find_command): Change type of pattern buffer
5828 locals to 'gdb_byte *'.
5829
be9a119c 58302013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
5831 Hafiz Abid Qadeer <abidh@codesourcery.com>
5832
5833 * NEWS: Mention set and show trace-buffer-size commands.
5834 Mention new packet.
5835 * target.h (struct target_ops): New method
5836 to_set_trace_buffer_size.
5837 (target_set_trace_buffer_size): New macro.
5838 * target.c (update_current_target): Set up new method.
5839 * tracepoint.c (trace_buffer_size): New global.
5840 (start_tracing): Send it to the target.
5841 (set_trace_buffer_size): New function.
5842 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
5843 * remote.c (remote_set_trace_buffer_size): New function.
5844 (_initialize_remote): Use it.
5845 (QTBuffer:size) New remote command.
5846 (PACKET_QTBuffer_size): New enum.
5847 (remote_protocol_features): Add an entry for
5848 PACKET_QTBuffer_size.
5849
7da3ab79
TT
58502013-03-08 Tom Tromey <tromey@redhat.com>
5851
5852 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
5853 variable.
5854
0c1f71e7
PA
58552013-03-07 Pedro Alves <palves@redhat.com>
5856
5857 * target.c (target_read_stralloc, target_fileio_read_alloc):
5858 *Cast pointer to 'gdb_byte *' in target call.
5859
c8af03a2
PA
58602013-03-07 Pedro Alves <palves@redhat.com>
5861
5862 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
5863 call.
5864
529480d0
KS
58652013-03-07 Keith Seitz <keiths@redhat.com>
5866
5867 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
5868 (trace_pass_command): Likewise.
5869 * cli/cli-cmds.c: Include cli/cli-utils.h.
5870 (source_command): Use skip-spaces.
5871 (disassemble_command): Likewise.
5872 * findcmd.c: Include cli/cli-utils.h.
5873 (parse_find_args): Use skip_spaces.
5874 * go32-nat.c: Include cli/cli-utils.h.
5875 (go32_sldt): Use skip_spaces.
5876 (go32_sgdt): Likewise.
5877 (go32_sidt): Likewise.
5878 (go32_pde): Likewise.
5879 (go32_pte): Likewise.
5880 (go32_pte_for_address): Likewise.
5881 * infcmd.c: Include cli/cli-utils.h.
5882 (registers_info): Use skip_spaces.
5883 * linux-tdep.c (read_mapping): Use skip_spaces_const.
5884 (linux_info_proc): Likewise.
5885 * linux-thread-db.c: Include cli/cli-utils.h.
5886 (info_auto_load_libthread_db): Use skip_spaces_const.
5887 * m32r-rom.c: Include cli/cli-utils.h.
5888 (m32r_upload_command): Use skip_spaces.
5889 * maint.c: Include cli/cli-utils.h.
5890 (maintenance_translate_address): Use skip_spaces.
5891 * mi/mi-parse.c: Include cli/cli-utils.h.
5892 (mi_parse_argv): Use skip_spaces.
5893 (mi_parse): Likewise.
5894 * minsyms.c: Include cli/cli-utils.h.
5895 (msymbol_hash_iw): Use skip_spaces_const.
5896 * objc-lang.c: Include cli/cli-utils.h.
5897 (parse_selector): Use skip_spaces.
5898 (parse_method): Likewise.
5899 * python/python.c: Include cli/cli-utils.h.
5900 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
5901 (python_command)[HAVE_PYTHON]: Likewise.
5902 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
5903 * remote-m32r-sdi.c: Include cli/cli-utils.h.
5904 (m32r_load): Use skip_spaces.
5905 * serial.c: Include cli/cli-utils.h.
5906 (serial_open): Use skip_spaces_const.
5907 * stack.c: Include cli/cli-utils.h.
5908 (parse_frame_specification_1): Use skip_spaces_const.
5909 * symfile.c: Include cli/cli-utils.h.
5910 (set_ext_lang_command): Use skip_spaces.
5911 * symtab.c: Include cli/cli-utils.h.
5912 (rbreak_command): Use skip_spaces.
5913 * thread.c (thread_name_command): Use skip_spaces.
5914 * tracepoint.c (validate_actionline): Use skip_spaces.
5915 (encode_actions_1): Likewise.
5916 (trace_find_range_command): Likewise.
5917 (trace_find_outside_command): Likewise.
5918 (trace_dump_actions): Likewise.
5919
ac91cd70
PA
59202013-03-07 Pedro Alves <palves@redhat.com>
5921
5922 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
5923 * expprint.c (print_subexp_standard): Likewise.
5924 * utils.c (host_char_to_target): Likewise.
5925 * valprint.c (generic_emit_char, generic_printstr): Likewise.
5926 * varobj.c (value_get_print_value): Change type of local to char*.
5927 Cast it gdb_byte * in call to language printer.
5928
2898e560
PA
59292013-03-07 Pedro Alves <palves@redhat.com>
5930
5931 * charset.c (struct wchar_iterator) <input>: Change type to 'const
5932 gdb_byte *'.
5933 (make_wchar_iterator): Remove cast to char*.
5934 (wchar_iterate): Change type of local.
5935
a09b4448
PA
59362013-03-07 Pedro Alves <palves@redhat.com>
5937
5938 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
5939 for 'regcache->register_status'.
5940
20ced3e4
PA
59412013-03-07 Pedro Alves <palves@redhat.com>
5942
c2d6a675 5943 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
5944 int.
5945
fe106009
PA
59462013-03-07 Pedro Alves <palves@redhat.com>
5947
5948 * stap-probe.c (handle_stap_probe): Add cast to char*.
5949
8ac2c12b
PA
59502013-03-07 Pedro Alves <palves@redhat.com>
5951
5952 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
5953 RECORD_MSGRCV>: Pass a signed variable to
5954 regcache_raw_read_signed, instead of an unsigned one.
5955
99f0a309
PA
59562013-03-07 Pedro Alves <palves@redhat.com>
5957
5958 * remote-notif.c (notif_debug): Change type to int.
5959 * remote-notif.h (notif_debug): Likewise.
5960
964b8317
PA
59612013-03-07 Pedro Alves <palves@redhat.com>
5962
5963 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
5964
f0cc8ad4
PA
59652013-03-07 Pedro Alves <palves@redhat.com>
5966
5967 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
5968 * remote.h (hex2bin, bin2hex): ... here.
5969 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
5970
77dec115
EZ
59712013-03-07 Eli Zaretskii <eliz@gnu.org>
5972
5973 * utils.c (initialize_utils): Improve doc strings of "set/show
5974 width", "set/show height", and "set/show pagination".
5975
741d92cf
KS
59762013-03-06 Keith Seitz <keiths@redhat.com>
5977
5978 * ax-gdb.c (gen_printf): Make FORMAT const.
5979 * ax-gdb.h (gen_printf): Likewise.
5980 * ax-general.c (ax_string): Make STR const.
5981 * ax.h (ax_string): Likewise.
5982
7b6c814e
DE
59832013-03-06 Doug Evans <dje@google.com>
5984
5985 * elfread.c (elf_symfile_read): Move debugging printf to more
5986 logical location.
5987
634334ab
PA
59882013-03-06 Pedro Alves <palves@redhat.com>
5989
5990 * python/py-utils.c (target_string_to_unicode): Delete function.
5991 * python/python-internal.h (target_string_to_unicode): Delete
5992 declaration.
5993
e482a1a7
PM
59942013-03-06 Pierre Muller <muller@sourceware.org>
5995
5996 * linespec.c (get_current_search_block): ARI fix, use (void)
5997 for empty parameter list.
5998
4eeaa230
DE
59992013-03-05 Doug Evans <dje@google.com>
6000
6001 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
6002 of old ada_lookup_symbol_list. In !full_search case, don't
6003 search superblocks.
6004 (ada_lookup_symbol_list): Delete arg full_search, all callers
6005 updated. Call ada_lookup_symbol_list_worker.
6006 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
6007 * ada-lang.h (ada_lookup_symbol_list): Update.
6008 * language.h (language_defn): Update comment for
6009 la_iterate_over_symbols.
6010 * linespec.c (iterate_over_file_blocks): New function.
6011 (iterate_over_all_matching_symtabs): Call it.
6012 (lookup_prefix_sym): Ditto.
6013 (get_current_search_block): New function.
6014 (get_search_block): Delete.
6015 (find_label_symbols): Call get_current_search_block.
6016 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
6017 * symtab.c (iterate_over_symbols): Don't search superblocks.
6018
b69b1fb1
YQ
60192013-03-05 Yao Qi <yao@codesourcery.com>
6020
6021 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
6022 parameter VAR's type from "unsigned int" to "int".
6023 * command.h (var_zuinteger_unlimited): Update its comments.
6024 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
6025
3c095f49
CV
60262013-03-05 Corinna Vinschen <vinschen@redhat.de>
6027
6028 * NEWS: Mention new target x86_64-*-cygwin*.
6029
b5b0b0af
CV
60302013-03-05 Corinna Vinschen <vinschen@redhat.de>
6031
6032 * configure.host: Add x86_64-*-cygwin* as host.
6033 * configure.tgt: Add x86_64-*-cygwin* as target.
6034 * config/i386/cygwin64.mh: New file.
6035
f6f99966
JK
60362013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6037
6038 * linespec.c (decode_line_2): Fix duplicate request off by two message.
6039
33f448b1
JK
60402013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
6041
6042 * linespec.c (struct linespec_canonical_name): New.
6043 (struct linespec_state): Change canonical_names type to it.
6044 (add_sal_to_sals): Change variable canonical_name to canonical. Change
6045 xrealloc element size. Initialize the different CANONICAL fields.
6046 (canonical_to_fullform): New.
6047 (filter_results): Use it. Add variables canonical, fullform and
6048 cleanup.
6049 (struct decode_line_2_item, decode_line_2_compare_items): New.
6050 (decode_line_2): Remove variables iter and item_names, add variables
6051 items and items_count. Modify the code for these new variables.
6052
feb14725
CV
60532013-03-04 Corinna Vinschen <vinschen@redhat.com>
6054
6055 * coff-pe-read.c (read_pe_exported_syms): Don't return without
6056 calling do_cleanup.
6057
e83b17ba
HZ
60582013-03-04 Luis Machado <lgustavo@codesourcery.com>
6059
6060 * tracepoint.c (build_traceframe_info): Add code for byte order.
6061
a2d13a0d
KB
60622013-03-02 Kevin Buettner <kevinb@redhat.com>
6063
8dddcae8
KB
6064 * v850-tdep.c: (v850e2_register_name): Revise system register
6065 names to match current V850E2M architecture specifications.
6066 Update register number enum comments too.
a2d13a0d 6067
d79e58d8
JW
60682013-03-01 Jiong Wang <jiwang@tilera.com>
6069 Pedro Alves <palves@redhat.com>
6070
6071 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
6072 to END_ADDR.
6073 (tilegx_skip_prologue): Limit prologue analysis to section end.
6074
c4be5165
JK
60752013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
6076
6077 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
6078 use it.
6079
e362b510
PA
60802013-03-01 Pedro Alves <palves@redhat.com>
6081
6082 Use gdb_byte for bytes from the program being debugged.
6083
6084 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
6085 Change type of local 'buf' to gdb_byte.
6086 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
6087 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
6088 * cris-tdep.c (cris_sigcontext_addr)
6089 (cris_sigtramp_frame_unwind_cache): Likewise.
6090 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
6091 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
6092 Likewise.
6093 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
6094 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
6095 (hppa32_hpux_search_dummy_call_sequence)
6096 (hppa_hpux_supply_save_state): Likewise.
6097 * hppa-linux-tdep.c (insns_match_pattern)
6098 (hppa_linux_find_global_pointer): Likewise.
6099 * hppa-tdep.c (hppa_in_function_epilogue_p)
6100 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
6101 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
6102 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
6103 (i386fbsd_collect_uthread): Likewise.
6104 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
6105 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
6106 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
6107 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
6108 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
6109 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
6110 (ia64_libunwind_frame_prev_register)
6111 (ia64_libunwind_sigtramp_frame_this_id)
6112 (ia64_find_global_pointer_from_dynamic_section)
6113 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
6114 (ia64_unwind_pc): Likewise.
6115 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
6116 * m68hc11-tdep.c (m68hc11_push_dummy_call)
6117 (m68hc11_extract_return_value): Likewise.
6118 * m68klinux-nat.c (fetch_register, store_register): Likewise.
6119 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
6120 (mep_get_insn, mep_push_dummy_call): Likewise.
6121 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
6122 (mips_linux_in_dynsym_stub): Likewise.
6123 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
6124 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
6125 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
6126 to gdb_byte.
6127 * remote-mips.c (mips_set_register): Likewise.
6128 * remote-sim.c (gdbsim_fetch_register): Likewise.
6129 * score-tdep.c (score7_fetch_inst): Change type of parameter
6130 'memblock' and local 'buf' to gdb_byte.
6131 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
6132 Change type of local 'buf' to gdb_byte. Adjust.
6133 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
6134 to gdb_byte**.
6135 (score7_analyze_prologue): Change type of 'memblock' and
6136 'memblock_ptr' locals to gdb_byte*.
6137 * sh64-tdep.c (sh64_extract_return_value)
6138 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
6139 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
6140 * solib-pa64.c (pa64_solib_create_inferior_hook)
6141 (pa64_open_symbol_file_object): Remove local 'buf'.
6142 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
6143 (som_open_symbol_file_object): Likewise.
6144 * solib-spu.c (spu_current_sos): Likewise.
6145 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
6146 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
6147 (spu_store_registers): Likewise.
6148 * target.c (debug_print_register): Likewise.
6149 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
6150 * xstormy16-tdep.c (xstormy16_store_return_value)
6151 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
6152 (xstormy16_find_jmp_table_entry): Likewise.
6153
75cc61ca 61542013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
6155
6156 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
6157 (tilegx_gdbarch_init): Install it.
6158
ddb08e9c
TT
61592013-02-28 Tom Tromey <tromey@redhat.com>
6160
6161 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
6162 PyLong_Check.
6163
62d7fb51
DE
61642013-02-28 Doug Evans <dje@google.com>
6165
6166 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
6167 * python/python.c (gdbpy_find_pc_line): Ditto.
6168
c4a9e8b4
TT
61692013-02-28 Tom Tromey <tromey@redhat.com>
6170
6171 * contrib/excheck.py: New file.
6172 * contrib/exsummary.py: New file.
6173 * contrib/gcc-with-excheck: New file.
6174
7f6a5dde
TT
61752013-02-28 Tom Tromey <tromey@redhat.com>
6176
6177 * python/python.c (gdbpy_print_stack): Call begin_line and
6178 fprintf_filtered inside TRY_CATCH.
6179
9e974e55
TT
61802013-02-28 Tom Tromey <tromey@redhat.com>
6181
6182 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
6183 inside TRY_CATCH.
6184
dd5fa3e7
TT
61852013-02-28 Tom Tromey <tromey@redhat.com>
6186
6187 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
6188 frame_object_to_frame_info inside TRY_CATCH.
6189
86a3263f
TT
61902013-02-28 Tom Tromey <tromey@redhat.com>
6191
6192 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
6193 TRY_CATCH.
6194
81b52a3a
TT
61952013-02-28 Tom Tromey <tromey@redhat.com>
6196
6197 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
6198
d50a0ce2
CV
61992013-02-27 Corinna Vinschen <vinschen@redhat.com>
6200
6201 * windows-nat.c: Throughout, fix format strings and casts of
6202 printf-like functions to avoid type related warnings on all
6203 platforms.
6204 (handle_output_debug_string): Fetch context information address
6205 from debug string using string_to_core_addr.
6206
e1f58301
JW
62072013-02-27 Jiong Wang <jiwang@tilera.com>
6208
6209 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
6210 * regformats/reg-tilegx32.dat: New.
6211
4fcd89fc
JW
62122013-02-27 Jiong Wang <jiwang@tilera.com>
6213
6214 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
6215
748d24e6
JW
62162013-02-27 Jiong Wang <jiwang@tilera.com>
6217
6218 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
6219
6c8e944d
YQ
62202013-02-27 Yao Qi <yao@codesourcery.com>
6221 Pedro Alves <palves@redhat.com>
6222
6223 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
6224 pc/tp/range/outside, look for the next trace frame instead of
6225 always starting from frame 0.
6c8e944d 6226
acd7db30
AG
62272013-02-26 Anthony Green <green@moxielogic.com>
6228
6229 * configure.tgt: Add support for moxie-*-rtems* target.
6230
025e6dce
PA
62312013-02-25 Pedro Alves <palves@redhat.com>
6232
6233 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
6234 warning text.
6235
ca9c94ef
MR
62362013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
6237
6238 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
6239 if $fp is used as the virtual frame pointer.
6240
24c274a1
AM
62412013-02-23 Alan Modra <amodra@gmail.com>
6242
6243 * elfread.c (elf_symtab_read): Do not use udata.p here to find
6244 symbol size.
6245 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
6246 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
6247 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
6248 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
6249
bfada189
JK
62502013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
6251
6252 Code cleanup.
6253 * elfread.c (build_id_bfd_get): Make the return type const.
6254 (build_id_verify): Make the check parameter const.
6255 (build_id_to_debug_filename): Make the build_id parameter and variable
6256 data const.
6257 (find_separate_debug_file_by_buildid): Make the variable build_id const.
6258
c0355132
AM
62592013-02-21 Alan Modra <amodra@gmail.com>
6260
6261 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
6262
9f44fbc0
SCR
62632013-02-20 Siva Chandra Reddy <sivachandra@google.com>
6264
6265 Add a new method 'disassemble' to gdb.Architecture class.
6266 * python/py-arch.c (archpy_disassmble): Implementation of the
6267 new method gdb.Architecture.disassemble.
6268 (arch_object_methods): Add entry for the new method.
6269
b74ea3eb
JW
62702013-02-20 Jiong Wang <jiwang@tilera.com>
6271
6272 * MAINTAINERS (Write After Approval): Add myself to the list.
6273
61a672f1
PA
62742013-02-19 Pedro Alves <palves@redhat.com>
6275
6276 Garbage collect 'struct monitor_ops'::load_routine.
6277
6278 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
6279 * monitor.c (monitor_load): No longer call
6280 current_monitor->load_routine.
6281 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
6282 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
6283 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
6284
40e397df
PA
62852013-02-19 Pedro Alves <palves@redhat.com>
6286
6287 PR gdb/15161
6288
6289 Harmonize with generic_load.
6290
6291 * monitor.c: Include "readline/readline.h".
6292 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
6293 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
6294 long/strtol for the 'load_offset' local. Error out if no argument
6295 is given or if too many arguments are given. Tilde expand the
6296 passed in file name.
6297
f698ca8e
KT
62982013-02-19 Kai Tietz <ktietz@redhat.com>
6299
6300 PR gdb/15161
6301 * symfile.c (load_section_data): Change type of load_offset
6302 to CORE_ADDR.
6303 (generic_load): User strtoulst instead of strtoul for conversion
6304 of load_offset.
6305
3361b059
WL
63062013-02-19 Jiong Wang <jiwang@tilera.com>
6307
6308 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
6309 for return address, "lr" register, saved on stack.
6310 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
6311 after we invoke tilegx_analyze_prologue.
6312
3e9d5130
WL
63132013-02-19 Jiong Wang <jiwang@tilera.com>
6314
bb1bcd86
WL
6315 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
6316
3361b059 63172013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 6318
b74ea3eb 6319 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 6320
4aaf2503
WL
63212013-02-19 Jiong Wang <jiwang@tilera.com>
6322
b74ea3eb 6323 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
6324 (tilegx_write_pc): New function.
6325 (tilegx_cannot_reference_register): Return zero if REGNO
6326 is TILEGX_FAULTNUM_REGNUM.
6327 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
6328 (tilegx_register_name): Add handling of "faultnum" register.
6329 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
6330 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
6331 handling of TILEGX_FAULTNUM_REGNUM.
6332 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
6333
bc23a956
WL
63342013-02-19 Jiong Wang <jiwang@tilera.com>
6335
6336 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 6337 should be aligned to 64bit.
bc23a956 6338
42f45f1a
KT
63392013-02-19 Kai Tietz <ktietz@redhat.com>
6340
6341 * windows-nat.c (windows_xfer_memory): Fix debug-output
6342 for LLP64.
6343
6ce4c112
LL
63442013-02-19 Lei Liu <lei.liu2@windriver.com>
6345
6346 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
6347 Don't check DSP register number if HAVE_DSP is not set.
6348
30e8ee25
AM
63492013-02-19 Alan Modra <amodra@gmail.com>
6350
6351 * elfread.c (struct build_id): Delete. Use struct elf_build_id
6352 throughout file instead.
6353 (build_id_bfd_get): Update to use new elf_tdata build_id field.
6354 Don't xmalloc return value.
6355 (build_id_verify): Similarly. Don't xfree.
6356 (build_id_to_debug_filename): Update.
6357 (find_separate_debug_file_by_buildid): Update, don't xfree.
6358
4c9ad8c2
TT
63592013-02-18 Tom Tromey <tromey@redhat.com>
6360
6361 PR gdb/15102:
6362 * dwarf2read.c (read_subrange_type): Use result of
6363 'check_typedef'.
6364
983dc440
YQ
63652013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
6366
6367 * frame.c: Remove one extra white space after #include
6368 directive.
6369
7fb2b84a
JK
63702013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6371
6372 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
6373
edceb2a9
JK
63742013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6375
6376 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
6377 and dir commands into an if block.
6378
e81b7af8
TT
63792013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
6380
6381 * python/py-breakpoint (struct pybp_code): Use int instead of
6382 enum type_code.
6383
f5911ea1
HAQ
63842013-02-15 Pedro Alves <pedro@codesourcery.com>
6385 Hafiz Abid Qadeer <abidh@codesourcery.com>
6386
6387 * NEWS: Mention new field "trace-file".
6388 * tracepoint.c (trace_status_mi): Output "trace-file" field.
6389 (tfile_open): Record the trace file's filename in the trace
6390 status.
6391 (tfile_files_info): Mention the name of the trace file.
6392 Check the "filename" field explicitely.
6393 (trace_status_command): Explicitely check "filename" field.
6394 (trace_find_command): Ditto.
6395 (trace_find_pc_command): Ditto.
6396 (trace_find_tracepoint_command): Ditto.
6397 (trace_find_line_command): Ditto.
6398 (trace_find_range_command): Ditto.
6399 (trace_find_outside_command): Ditto.
6400 * tracepoint.h (struct trace_status) <from_file>: Rename it
6401 to "filename" and make it hold the trace file's filename
6402 instead of a boolean.
6403 * remote.c (remote_get_trace_status): Initialize "filename"
6404 field with NULL instead of 0.
6405
796cb314
YQ
64062013-02-15 Yao Qi <yao@codesourcery.com>
6407
6408 * remote.c: Fix a typo.
6409
42e79b1d
PM
64102013-02-14 Pierre Muller <muller@sourceware.org>
6411
6412 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
6413
baea0dae
PA
64142013-02-14 Pedro Alves <palves@redhat.com>
6415
6416 * utils.c (savestring): Don't #undef it. Move function to
6417 common/common-utils.c.
6418 * common/common-utils.c: Include gdb_string.h.
6419 (savestring): Move here from utils.c.
6420 * common/common-utils.h (savestring): Declare.
6421
57c3b6ed
PA
64222013-02-14 Pedro Alves <palves@redhat.com>
6423
6424 * utils.c (savestring): Rename parameter 'size' to 'len'.
6425
d6c44983
YZ
64262013-02-14 Pedro Alves <palves@redhat.com>
6427 Yufeng Zhang <yufeng.zhang@arm.com>
6428
6429 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
6430 (aarch64_inferior_data, struct aarch64_inferior_data):
6431 Delete.
6432 (struct aarch64_process_info): New.
6433 (aarch64_process_list): New global.
6434 (aarch64_find_process_pid, aarch64_add_process)
6435 (aarch64_process_info_get): New functions.
6436 (aarch64_inferior_data_get): Delete.
6437 (aarch64_process_info_get): New function.
6438 (aarch64_forget_process): New function.
6439 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
6440 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
6441 aarch64_get_debug_reg_state.
6442 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
6443 instead of linux_nat_iterate_watchpoint_lwps.
6444 (aarch64_linux_new_fork): New function.
6445 (aarch64_linux_child_post_startup_inferior): Use
6446 aarch64_forget_process instead of aarch64_init_debug_reg_state.
6447 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
6448 (aarch64_linux_remove_hw_breakpoint)
6449 (aarch64_handle_aligned_watchpoint)
6450 (aarch64_handle_unaligned_watchpoint)
6451 (aarch64_linux_insert_watchpoint)
6452 (aarch64_linux_remove_watchpoint)
6453 (aarch64_linux_stopped_data_address): Adjust to pass the current
6454 process id to aarch64_debug_reg_state.
6455 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
6456 linux_nat_new_fork hook, and aarch64_forget_process as
6457 linux_nat_forget_process hook; remove the call to
6458 register_inferior_data_with_cleanup.
6459
4819b3f8
PA
64602013-02-14 Pedro Alves <palves@redhat.com>
6461
6462 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
6463 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
6464 lval_memory.
6465
1773c82c
HAQ
64662013-02-14 Pedro Alves <pedro@codesourcery.com>
6467 Hafiz Abid Qadeer <abidh@codesourcery.com>
6468
6469 * tracepoint.h (validate_trace_state_variable_name): Declare.
6470 * tracepoint.c (validate_trace_state_variable_name): New.
6471 (trace_variable_command): Parse the trace state variable's name
6472 without using parse_expression. Do several validations.
6473 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
6474 trace state variable's name with parse_expression. Validate it.
6475
53778a97
YQ
64762013-02-14 Yao Qi <yao@codesourcery.com>
6477
6478 * infcmd.c (breakpoint_proceeded): Remove it.
6479
7b3ae3a6
YQ
64802013-02-14 Yao Qi <yao@codesourcery.com>
6481
6482 * tracepoint.c (end_actions_pseudocommand): Make it static.
6483 (while_stepping_pseudocommand): Likewise.
6484 * tracepoint.h (end_actions_pseudocommand): Remove the
6485 declaration.
6486 (while_stepping_pseudocommand): Likewise.
6487
64580925
YQ
64882013-02-14 Yao Qi <yao@codesourcery.com>
6489
6490 * cli/cli-decode.c (help_cmd): Remove the declaration of
6491 "cmdlist".
6492 (help_all): Likewise.
6493
26cb8b7c
PA
64942013-02-13 Pedro Alves <palves@redhat.com>
6495
6496 * amd64-linux-nat.c (update_debug_registers_callback):
6497 Update comment.
6498 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6499 iterate_over_lwps.
6500 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
6501 i386_debug_reg_state.
6502 (amd64_linux_new_fork): New function.
6503 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
6504 linux_nat_new_fork hook, and i386_forget_process as
6505 linux_nat_forget_process hook.
6506 * i386-linux-nat.c (update_debug_registers_callback):
6507 Update comment.
a8256ea1 6508 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
6509 iterate_over_lwps.
6510 (i386_linux_prepare_to_resume): Pass the lwp's pid to
6511 i386_debug_reg_state.
6512 (i386_linux_new_fork): New function.
6513 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
6514 linux_nat_new_fork hook, and i386_forget_process as
6515 linux_nat_forget_process hook.
6516 * i386-nat.c (i386_init_dregs): Delete.
6517 (i386_inferior_data, struct i386_inferior_data):
6518 Delete.
6519 (struct i386_process_info): New.
6520 (i386_process_list): New global.
6521 (i386_find_process_pid, i386_add_process, i386_process_info_get):
6522 New functions.
6523 (i386_inferior_data_get): Delete.
6524 (i386_process_info_get): New function.
6525 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
6526 (i386_forget_process): New function.
6527 (i386_cleanup_dregs): Rewrite.
6528 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
6529 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
6530 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6531 (i386_remove_hw_breakpoint): Adjust to pass the current process id
6532 to i386_debug_reg_state.
6533 (i386_use_watchpoints): Don't register inferior data.
6534 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
6535 adjust comment.
6536 (i386_forget_process): Declare.
6537 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
6538 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
6539 New static globals.
6540 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
6541 (add_initial_lwp): New, factored out from ...
6542 (add_lwp): ... this. Don't check the number of lwps before
6543 calling linux_nat_new_thread.
6544 (linux_nat_iterate_watchpoint_lwps): Delete.
6545 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
6546 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
6547 forks and vforks.
6548 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
6549 initial lwp.
6550 (linux_nat_kill, linux_nat_mourn_inferior): Call
6551 linux_nat_forget_process.
6552 (linux_nat_set_new_fork, linux_nat_set_forget_process)
6553 (linux_nat_forget_process): New functions.
6554 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
6555 type.
6556 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
6557 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
6558 types.
6559 (linux_nat_set_new_fork, linux_nat_set_forget_process)
6560 (linux_nat_forget_process): New declarations.
6561
6562 * amd64fbsd-nat.c (super_mourn_inferior): New global.
6563 (amd64fbsd_mourn_inferior): New function.
6564 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
6565 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
6566
5befea72
MS
65672013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
6568
55015247
YQ
6569 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
6570 Adding _().
5befea72 6571
1d3ffd6b
MS
65722013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
6573
6574 * aarch64-linux-nat.c (debug_reg_change_callback)
6575 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
6576 %s and phex().
6577
6eb04473
MS
65782013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
6579
6580 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
6581 with LONGEST.
6582
a016fc87
HAQ
65832013-02-13 Pedro Alves <palves@redhat.com>
6584 Hafiz Abid Qadeer <abidh@codesourcery.com>
6585
6586 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
6587
e234dfaf
TT
65882013-02-12 Tom Tromey <tromey@redhat.com>
6589
6590 PR symtab/11464:
6591 * c-exp.y (lex_one_token): Initialize other fields of yylval on
6592 NAME return.
6593 (classify_inner_name): Remove 'first_name' argument, add
6594 'context'. Remove unused variable.
6595 (yylex): Explicitly maintain the context type. Exit loop earlier
6596 if NAME result is seen.
6597
0b1afbb3
PA
65982013-02-12 Pedro Alves <palves@redhat.com>
6599
6600 * amd64-darwin-tdep.c: Add (C) after Copyright.
6601 * cli/cli-cmds.h: Ditto.
6602 * cli/cli-decode.c: Ditto.
6603 * cli/cli-decode.h: Ditto.
6604 * cli/cli-dump.c: Ditto.
6605 * cli/cli-dump.h: Ditto.
6606 * cli/cli-interp.c: Ditto.
6607 * cli/cli-logging.c: Ditto.
6608 * cli/cli-script.c: Ditto.
6609 * cli/cli-script.h: Ditto.
6610 * cli/cli-setshow.c: Ditto.
6611 * cli/cli-setshow.h: Ditto.
6612 * cli/cli-utils.c: Ditto.
6613 * cli/cli-utils.h: Ditto.
6614 * config/alpha/nm-osf3.h: Ditto.
6615 * config/djgpp/djconfig.sh: Ditto.
6616 * config/i386/nm-fbsd.h: Ditto.
6617 * config/i386/nm-i386gnu.h: Ditto.
6618 * config/nm-linux.h: Ditto.
6619 * config/nm-nto.h: Ditto.
6620 * config/rs6000/nm-rs6000.h: Ditto.
6621 * config/sparc/nm-sol2.h: Ditto.
6622 * darwin-nat-info.c: Ditto.
6623 * dfp.c: Ditto.
6624 * dfp.h: Ditto.
6625 * gdb-demangle.h: Ditto.
6626 * i386-darwin-nat.c: Ditto.
6627 * i386-darwin-tdep.c: Ditto.
6628 * linux-fork.h: Ditto.
6629 * m32c-tdep.c: Ditto.
6630 * microblaze-linux-tdep.c: Ditto.
6631 * microblaze-rom.c: Ditto.
6632 * microblaze-tdep.c: Ditto.
6633 * microblaze-tdep.h: Ditto.
6634 * mips-linux-tdep.h: Ditto.
6635 * ppc-ravenscar-thread.c: Ditto.
6636 * ppc-ravenscar-thread.h: Ditto.
6637 * prologue-value.c: Ditto.
6638 * prologue-value.h: Ditto.
6639 * ravenscar-thread.c: Ditto.
6640 * ravenscar-thread.h: Ditto.
6641 * sparc-ravenscar-thread.c: Ditto.
6642 * sparc-ravenscar-thread.h: Ditto.
6643 * tilegx-linux-tdep.c: Ditto.
6644 * unwind_stop_reasons.def: Ditto.
6645 * windows-nat.h: Ditto.
6646 * xtensa-linux-tdep.c: Ditto.
6647 * xtensa-xtregs.c: Ditto.
6648 * regformats/regdat.sh: Ditto.
6649 * regformats/regdef.h: Ditto.
6650
6c01dd94
PA
66512013-02-12 Pedro Alves <palves@redhat.com>
6652
6653 * break-catch-sig.c: Update copyright years.
6654
b65a2bd9
SCR
66552013-02-11 Siva Chandra Reddy <sivachandra@google.com>
6656
6657 Add support for a destructor for ui_out data and use it to
6658 provide a ui_out destructor.
6659 * ui-out.h: Declare the new ui_out destructor.
6660 (ui_out_impl): Add a field for data destructor in ui_out_impl.
6661 * ui-out.c (default_data_destroy): Add a default data destructor
6662 which does nothing.
6663 (default_ui_out_impl): Set the new data_destroy field to
6664 default_data_destroy
6665 (uo_data_destroy): Local function which invokes the data
6666 destructor if present.
6667 (clear_table): Local function which clears the table data of a
6668 ui_out object.
6669 (ui_out_destroy): Public function which frees a ui_out object.
6670 (ui_out_table_end): Use the new clear_table function.
6671 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
6672 NULL.
6673 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
6674 to NULL.
6675
c2792f5a
DE
66762013-02-11 Doug Evans <dje@google.com>
6677
6678 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
6679 (printf_decfloat): New function. Broken out from ui_printf.
6680 Remove unnecessary code to shift the entire format string down.
6681 (printf_pointer): New function.
6682 (ui_printf): Code to print C strings, wide C strings, decfloats,
6683 and pointers moved to separate functions.
6684
d9e98382
SDJ
66852013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
6686
6687 * valops.c (value_assign): Handling bitfield offset in
6688 `lval_internalvar_component' case.
6689
4ff3ce77
DE
66902013-02-08 Doug Evans <dje@google.com>
6691
6692 * common/format.c (parse_format_string): Fix whitespace.
6693
901900c4
MGD
66942013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
6695
6696 * stack.c (return_command): Work around uninitialized variable
6697 warning.
6698
b5dbc8d4
YZ
66992013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
6700
6701 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
6702 number of the registers from 36 to 34.
6703
51d66578
MS
67042013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
6705
6706 * NEWS: Mention new AArch64 native and target support.
6707
176b1c95
MS
67082013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
6709
6710 * MAINTAINERS (Write After Approval): Add myself.
6711
9d19df75
MS
67122013-02-08 Jim MacArthur <jim.macarthur@arm.com>
6713 Marcus Shawcroft <marcus.shawcroft@arm.com>
6714 Nigel Stephens <nigel.stephens@arm.com>
6715 Yufeng Zhang <yufeng.zhang@arm.com>
6716
6717 * aarch64-linux-nat.c: New file.
6718 * config/aarch64/linux.mh: New file.
6719 * configure.host: Add AArch64.
6720 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
6721
7e1e0340
DE
67222013-02-07 Doug Evans <dje@google.com>
6723
6724 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
6725 disassemble command.
6726
45e25a36
MS
67272013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
6728
6729 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
6730 set_gdbarch_fetch_tls_load_module_address.
6731
bbfdfe1c
DM
67322013-02-06 David S. Miller <davem@davemloft.net>
6733
6734 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
6735 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6736 * value.c (struct_return_convention): New function.
6737 (using_struct_return): Implement in terms of struct_return_convention.
6738 * value.h (struct_return_convention): Declare.
6739 * stack.c (return_command): Allow successful overriding of the return
6740 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
6741
bc9abe4a
TT
67422013-02-06 Tom Tromey <tromey@redhat.com>
6743
6744 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
6745 outside of TRY_CATCH.
6746
134a2066
YQ
67472013-02-06 Yao Qi <yao@codesourcery.com>
6748
6749 * mi/mi-interp.c: Include "tracepoint.h".
6750 (mi_tsv_modified): Declare.
6751 (mi_tsv_created, mi_tsv_deleted): Update declaration.
6752 (mi_interpreter_init): Call observer_attach_tsv_modified.
6753 (mi_tsv_modified): New.
6754 (mi_tsv_created, mi_tsv_deleted): Update.
6755 * tracepoint.c (trace_variable_command): Call
6756 observer_notify_tsv_modified if the initial value of tsv is
6757 changed.
6758 (delete_trace_state_variable): Call
6759 observer_notify_tsv_deleted earlier.
6760 (trace_variable_command): Caller update.
6761 (create_tsv_from_upload): Likewise.
6762 * observer.sh: Declare "struct trace_state_variable".
6763
6764 * NEWS: Mention the new MI notification "=tsv-modified".
6765
59be2b6a
DE
67662013-02-05 Doug Evans <dje@google.com>
6767
6768 * completer.c (location_completer): Fix typo in comment.
6769
d30113d4
JK
67702013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
6771
6772 * breakpoint.c (add_location_to_breakpoint): Insert the location with
6773 ADDRESS sorted.
6774
14ac654f
MS
67752013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
6776
6777 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
6778 Refactor if statement to avoid trailing || operator.
6779
543bf33d
AT
67802013-02-05 Andreas Tobler <andreast@fgznet.ch>
6781
6782 * NEWS: Add PowerPC FreeBSD as a new native configuration.
6783
dc18f110
AT
67842013-02-04 Andreas Tobler <andreast@fgznet.ch>
6785
6786 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
6787 * configure.host: Add powerpc*-*-freebsd* target.
6788 * configure.tgt: Add target info for powerpc*-*-freebsd*.
6789 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
6790 * config/powerpc/fbsd.mh: New file.
6791
b3ac9c77
SDJ
67922013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
6793 Denys Vlasenko <dvlasenk@redhat.com>
6794 Pedro Alves <palves@redhat.com>
6795
6796 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
6797 (struct elf_internal_linux_prpsinfo): Forward declare.
6798 * gdbarch.h, gdbarch.c: Regenerate.
6799 * linux-tdep.c: Include `cli/cli-utils.h'.
6800 (linux_fill_prpsinfo): New function.
6801 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
6802 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
6803 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
6804 depending on gdbarch pointer bitness.
6805 * ppc-linux-tdep.c: Include elf-bfd.h.
6806 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
6807 on 32-bit.
6808
176eb98c
MS
68092013-02-04 Jim MacArthur <jim.macarthur@arm.com>
6810 Marcus Shawcroft <marcus.shawcroft@arm.com>
6811 Nigel Stephens <nigel.stephens@arm.com>
6812 Yufeng Zhang <yufeng.zhang@arm.com>
6813
6814 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
6815
cf0dbd6f
MS
68162013-02-04 Jim MacArthur <jim.macarthur@arm.com>
6817 Marcus Shawcroft <marcus.shawcroft@arm.com>
6818 Nigel Stephens <nigel.stephens@arm.com>
6819 Yufeng Zhang <yufeng.zhang@arm.com>
6820
6821 * aarch64-newlib-tdep.c: New file.
6822 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
6823 aarch64*-*-elf.
6824 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
6825 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
6826 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
6827 * osabi.c (gdb_osabi_names): Add "Newlib".
6828
1ae3db19
MS
68292013-02-04 Jim MacArthur <jim.macarthur@arm.com>
6830 Marcus Shawcroft <marcus.shawcroft@arm.com>
6831 Nigel Stephens <nigel.stephens@arm.com>
6832 Yufeng Zhang <yufeng.zhang@arm.com>
6833
6834 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
6835 (ALLDEPFILES): Add aarch64-linux-tdep.c.
6836 * aarch64-linux-tdep.c: New file.
6837 * aarch64-linux-tdep.h: New file.
6838 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
6839 * configure.tgt: Add aarch64-none-linux-gnu.
6840
07b287a0
MS
68412013-02-04 Jim MacArthur <jim.macarthur@arm.com>
6842 Marcus Shawcroft <marcus.shawcroft@arm.com>
6843 Nigel Stephens <nigel.stephens@arm.com>
6844 Yufeng Zhang <yufeng.zhang@arm.com>
6845
6846 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
6847 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
6848 (ALLDEPFILES): Add aarch64-tdep.c.
6849 * aarch64-tdep.c: New file.
6850 * aarch64-tdep.h: New file.
6851 * configure.tgt: Add AArch64.
6852 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
6853 (aarch64-expedite): New definition.
6854 * features/aarch64-core.xml: New file.
6855 * features/aarch64-fpu.xml: New file.
6856 * features/aarch64-without-fpu.c: New file (generated).
6857 * features/aarch64-without-fpu.xml: New file.
6858 * features/aarch64.c: New file (generated).
6859 * features/aarch64.xml: New file.
6860 * regformats/aarch64-without-fpu.dat: New file (generated).
6861 * regformats/aarch64.dat: New file (generated).
6862
0f1b18ab
JK
68632013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6864
6865 * contrib/expect-read1.c: New file.
6866 * contrib/expect-read1.sh: New file.
6867
233d95b5
JK
68682013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6869
6870 * dwarf2read.c (file_file_name): New function with code from
6871 file_full_name.
6872 (file_full_name): Move most of the code to file_file_name.
6873 (macro_start_file): Rename variable full_name to file_name and use
6874 file_file_name for it. Add comp_dir parameter to new_macro_table.
6875 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
6876 macro_source_file->filename access by macro_source_fullname call.
6877 * macroscope.c (_initialize_macroscope): Update the new_macro_table
6878 caller.
6879 * macrotab.c (struct macro_table): New field comp_dir.
6880 (macro_include): New variables link_fullname and source_fullname.
6881 Replace any macro_source_file->filename access by macro_source_fullname
6882 call.
6883 (macro_lookup_inclusion): Remove the partial filenames checking code.
6884 (check_for_redefinition): New variables source_fullname and
6885 found_key_fullname. Replace any macro_source_file->filename access by
6886 macro_source_fullname call.
6887 (macro_undef): New variables source_fullname and key_fullname. Replace
6888 any macro_source_file->filename access by macro_source_fullname call.
6889 (macro_lookup_definition): New variables retval and source_fullname.
6890 Replace any macro_source_file->filename access by macro_source_fullname
6891 call.
6892 (foreach_macro): New variable key_fullname. Replace any
6893 macro_source_file->filename access by macro_source_fullname call.
6894 (foreach_macro_in_scope): New variable datum_fullname. Replace any
6895 macro_source_file->filename access by macro_source_fullname call.
6896 (new_macro_table): Add parameter comp_dir. Initialize T with it.
6897 (macro_source_fullname): New function.
6898 * macrotab.h (struct macro_source_file): Extent the filename field
6899 comment.
6900 (new_macro_table): New parameter comp_dir, add a comment for it.
6901 (macro_source_fullname): new declaration.
6902
da235a7c
JK
69032013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6904
6905 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
6906 this_real_name to outer block. Use it also for
6907 compare_filenames_for_search.
6908 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
6909 with dw2_get_real_path for file_matcher, considering also
6910 BASENAMES_MAY_DIFFER.
6911 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
6912
fbd9ab74
JK
69132013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6914
6915 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
6916 to the file_matcher parameter. Pass 0 to it.
6917 (dwarf2_create_include_psymtab): Copy also DIRNAME.
6918 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
6919 NULL psymtab_to_fullname result.
6920 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
6921 an expected filename instead.
6922 (expand_symtabs_matching_via_partial): Add basenames parameter to the
6923 file_matcher parameter. Call also psymtab_to_fullname, after newly
6924 considering BASENAMES_MAY_DIFFER.
6925 * source.c (rewrite_source_path): Remove static.
6926 * source.h (rewrite_source_path): New declaration.
6927 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
6928 the expand_symtabs_matching field. Comment it.
6929 * symtab.c (file_matches): New function comment. Add parameter
6930 basenames, implement it.
6931 (search_symbols_file_matches): Add basenames parameter. Update the
6932 file_matches caller.
6933 (search_symbols): Match FILES also against symtab_to_fullname.
6934 Optimize it for BASENAMES_MAY_DIFFER.
6935
56d397a3
JK
69362013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6937
6938 * source.c (print_source_lines_base): Print for TUI also "fullname".
6939 * tui/tui-data.c (init_content_element): Change tui_locator_element
6940 field to full_name.
6941 * tui/tui-data.h (struct tui_locator_element): Likewise.
6942 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
6943 tui_update_locator_filename calls to tui_update_locator_fullname.
6944 Replace symtab->filename refererence by symtab_to_fullname call.
6945 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
6946 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
6947 field to full_name. Replace symtab->filename refererence by
6948 symtab_to_fullname call.
6949 (tui_show_symtab_source): Rename parameter to fullname. Change
6950 tui_locator_element field to full_name.
6951 * tui/tui-stack.c: Include source.h.
6952 (tui_set_locator_filename): Rename the declaration to ...
6953 (tui_set_locator_fullname): ... here. Rename its parameter to
6954 fullname, updates its comment.
6955 (tui_set_locator_info): Rename its parameter to fullname.
6956 (tui_set_locator_filename): Rename the definition to ...
6957 (tui_set_locator_fullname): ... here. Rename its parameter to
6958 fullname, updates its comment. Change tui_locator_element field to
6959 full_name.
6960 (tui_set_locator_info): Rename its parameter to fullname.
6961 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
6962 (tui_update_locator_filename): Rename to ...
6963 (tui_update_locator_fullname): ... here. Rename callee to
6964 tui_set_locator_fullname.
6965 (tui_show_frame_info): Replace symtab->filename refererence by
6966 symtab_to_fullname call.
6967 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
6968 (tui_update_locator_fullname): ... here.
6969 * tui/tui-winsource.c (tui_display_main): Rename the callee to
6970 tui_update_locator_fullname. Replace symtab->filename refererence by
6971 symtab_to_fullname call.
6972 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
6973 Rename the callee to tui_update_locator_fullname.
6974 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
6975
05cba821
JK
69762013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6977
6978 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
6979 by symtab_to_filename_for_display calls.
6980 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
6981 (clear_command): New variable sal_fullname, initialize it. Replace
6982 compare_filenames_for_search by filename_cmp with sal_fullname.
6983 (say_where, update_static_tracepoint): Replace symtab->filename
6984 refererences by symtab_to_filename_for_display calls.
6985 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
6986 Likewise.
6987 * dwarf2read.c: Include source.h.
6988 (fixup_go_packaging): Replace symtab->filename refererences by
6989 symtab_to_filename_for_display calls.
6990 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
6991 Replace symtab->filename refererences by symtab_to_filename_for_display
6992 calls.
6993 (create_sals_line_offset, convert_linespec_to_sals): New variable
6994 fullname, initialize it, replace symtab->filename reference by the
6995 variable.
6996 * linux-fork.c: Include source.h.
6997 (info_checkpoints_command): Replace symtab->filename refererences by
6998 symtab_to_filename_for_display calls.
6999 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
7000 by symtab_to_filename_for_display calls.
7001 * mdebugread.c: Include source.h.
7002 (psymtab_to_symtab_1): Replace symtab->filename refererences by
7003 symtab_to_filename_for_display calls.
7004 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
7005 (mi_cmd_file_list_exec_source_files): Likewise.
7006 * printcmd.c: Include source.h.
7007 (build_address_symbolic): Replace symtab->filename refererences by
7008 symtab_to_filename_for_display calls.
7009 * psymtab.c (partial_map_symtabs_matching_filename)
7010 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
7011 with psymtab_to_fullname.
7012 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
7013 by symtab_to_filename_for_display calls.
7014 (stpy_get_filename): New variable filename, initialize it, use instead
7015 of symtab->filename refererences.
7016 (salpy_str): Make variable filename const char *. Replace
7017 symtab->filename refererences by symtab_to_filename_for_display calls.
7018 * skip.c: Include source.h and filenames.h.
7019 (skip_file_command): Remove const from the symtab variable. Replace
7020 symtab->filename refererences by symtab_to_fullname call.
7021 (function_name_is_marked_for_skip): New variables searched_for_fullname
7022 and fullname. Use them to search also with symtab's fullname.
7023 * source.c (find_source_lines): Replace symtab->filename refererences
7024 by symtab_to_filename_for_display calls.
7025 (print_source_lines_base): New variable filename, use it instead of
7026 symtab->filename. Replace symtab->filename refererences by
7027 symtab_to_filename_for_display calls.
7028 (line_info, forward_search_command): Replace symtab->filename
7029 refererences by symtab_to_filename_for_display calls.
7030 (reverse_search_command): Replace symtab->filename refererences by
7031 symtab_to_filename_for_display calls. New variable filename for it.
7032 * stack.c (frame_info): Likewise.
7033 * symmisc.c: Include source.h.
7034 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
7035 (maintenance_info_symtabs): Replace symtab->filename refererences by
7036 symtab_to_filename_for_display calls.
7037 * symtab.c (iterate_over_some_symtabs): Call
7038 compare_filenames_for_search also with symtab_to_fullname.
7039 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
7040 symtab->filename refererences by symtab_to_filename_for_display calls.
7041 (find_line_symtab): Replace symtab->filename refererences by
7042 symtab_to_filename_for_display calls.
7043 (file_matches): Replace filename_cmp by compare_filenames_for_search.
7044 (print_symbol_info): Make the last parameter const char *. New
7045 variable s_filename. Use it in the function.
7046 (symtab_symbol_info): Make the last_filename variable const char *.
7047 Replace symtab->filename refererences by symtab_to_filename_for_display
7048 calls.
7049 (rbreak_command): New variable fullname. Use it. Replace
7050 symtab->filename refererence by symtab_to_filename_for_display call.
7051 * tracepoint.c (set_traceframe_context, trace_find_line_command)
7052 (print_one_static_tracepoint_marker): Replace symtab->filename
7053 refererences by symtab_to_filename_for_display calls.
7054 * tui/tui-source.c (tui_set_source_content): New variables filename and
7055 s_filename. Replace symtab->filename refererences by this variable.
7056 Replace other symtab->filename refererences by
7057 symtab_to_filename_for_display calls.
7058
1b56eb55
JK
70592013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
7060 Jan Kratochvil <jan.kratochvil@redhat.com>
7061
7062 Add a new variable that controls a way in which filenames are
7063 displayed.
7064 * NEWS (set filename-display): New entry.
7065 * source.c (filename_display_basename, filename_display_relative)
7066 (filename_display_absolute, filename_display_kind_names)
7067 (filename_display_string, show_filename_display_string)
7068 (symtab_to_filename_for_display): New.
7069 (_initialize_source): Added initialization of 'filename-display'
7070 variable.
7071 * source.h (symtab_to_filename_for_display): Added declaration.
7072 * stack.c (print_frame): Added new variable and calling of a new
7073 function and condition with this variable. Changed third argument of
7074 calling of a function.
7075
aa079c93
JK
70762013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7077
7078 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
7079 Rename field reference filename to fullname.
7080 * tui/tui-data.h (struct tui_source_info): Rename field filename to
7081 fullname. New comment for it.
7082 * tui/tui-source.c (tui_set_source_content): Rename field reference
7083 filename to fullname. Initialize field by symtab_to_fullname now.
7084 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
7085 reference filename to fullname. Use symtab_to_fullname during
7086 comparison.
7087
652a8996
JK
70882013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7089
7090 Code cleanup.
7091 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
7092 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
7093 filename to fullname. Rename variable this_name to this_fullname.
7094 Lowercase FILENAME_CMP call.
7095 (dw2_find_symbol_file): New comment for the returned string.
7096 (dwarf2_gdb_index_functions): Rename the function to
7097 dw2_expand_symtabs_with_fullname.
7098 * psymtab.c (read_psymtabs_with_filename): Rename to ...
7099 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
7100 fullname.
7101 (psym_functions): Rename the function to read_psymtabs_with_fullname.
7102 * symfile.h (struct quick_symbol_functions): Rename field
7103 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
7104 parameter filename to fullname. Document returned string meaning for
7105 find_symbol_file.
7106 * symtab.c (find_line_symtab): Rename the called function to
7107 expand_symtabs_with_fullname.
7108
af529f8f
JK
71092013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7110
7111 Code cleanup.
7112 * breakpoint.c (clear_command): Remove variable is_abs, unify the
7113 call of filename_cmp with compare_filenames_for_search.
7114 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
7115 is_abs, unify the call of FILENAME_CMP with
7116 compare_filenames_for_search. New gdb_asserts for real_path and name.
7117 Unify the call of compare_filenames_for_search with FILENAME_CMP.
7118 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
7119 * symfile.h (struct quick_symbol_functions): Extend the comment for
7120 map_symtabs_matching_filename.
7121 * symtab.c (compare_filenames_for_search): Remove the function comment
7122 relative path requirement. Handle absolute filenames, with a comment.
7123 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
7124 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
7125 real_path and name. Unify the call of compare_filenames_for_search
7126 with FILENAME_CMP.
7127 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
7128
2f202fde
JK
71292013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7130
7131 Code cleanup.
7132 * breakpoint.c (print_breakpoint_location): Replace bp_location field
7133 source_file references by symtab field references. Remove variables
7134 sal and fullname.
7135 (momentary_breakpoint_from_master, add_location_to_breakpoint):
7136 (clear_command, say_where): Replace bp_location field source_file
7137 references by symtab field references.
7138 (bp_location_dtor): Remove the source_file reference.
7139 (update_static_tracepoint): Replace bp_location field source_file
7140 references by symtab field references.
7141 (breakpoint_free_objfile): New function.
7142 * breakpoint.h (struct bp_location): Extend the comment for line_number.
7143 Replace the field source_file by field symtab, extend its comment.
7144 (breakpoint_free_objfile): New declaration.
7145 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
7146 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
7147 field source_file references by symtab field references.
7148
f5b95b50
JK
71492013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7150
7151 Replace xfullpath calls by gdb_realpath calls.
7152 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
7153 function comment.
7154 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
7155 Remove it from the iterate_over_some_symtabs call.
7156 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
7157 Remove it from the dw2_map_expand_apply calls, remove a block handling
7158 it.
7159 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
7160 Remove it from the iterate_over_some_symtabs call.
7161 (partial_map_symtabs_matching_filename): Remove parameter full_path.
7162 Remove it from the partial_map_expand_apply calls, remove a block
7163 handling it. Drop gdb_realpath call and cleanups from the real_path
7164 handling.
7165 * source.c (openp): Drop the comment part about xfullpath. Replace
7166 xfullpath calls by gdb_realpath calls.
7167 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
7168 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
7169 from method map_symtabs_matching_filename and its comment.
7170 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
7171 gdb_realpath call.
7172 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
7173 remove it also from the function comment, remove a block handling it.
7174 Drop gdb_realpath call and cleanups from the real_path handling.
7175 (iterate_over_symtabs): Drop variable full_path and its use.
7176 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
7177 * utils.c (xfullpath): Remove.
7178 * utils.h (xfullpath): Remove.
7179
d78489bf
AT
71802013-02-01 Andreas Tobler <andreast@fgznet.ch>
7181
7182 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
7183 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
7184 (ALLDEPFILES): Add ppc64-tdep.c.
7185 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
7186 ppc64-tdep.o to gdb_target_obs.
7187 * ppc64-tdep.h: New file.
7188 * ppc64-tdep.c: New file.
7189 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
7190 ppc-linux-tdep.c to here.
7191 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
7192 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
7193 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
7194 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
7195 from ppc-linux-tdep.c to here.
7196 (ppc64_convert_from_func_ptr_addr): Rename from
7197 ppc64_linux_convert_from_func_ptr_addr to
7198 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
7199 here.
7200 * rs6000-tdep.c:
7201 (read_insn): Move from ppc-linux-tdep.c to here.
7202 (insns_match_pattern, insn_d_field, insn_ds_field): Move
7203 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
7204 * ppc-linux-tdep.c: Include ppc64-tdep.h.
7205 Removed above functions.
7206 (ppc_linux_init_abi): Adjust.
7207
8db60374
AR
72082013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
7209
7210 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
7211
f2e5f4ce
AR
72122013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
7213
7214 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
7215
c1f7d745
PA
72162013-02-01 Pedro Alves <palves@redhat.com>
7217
7218 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
7219 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
7220
8a92335b
JK
72212013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7222
7223 * elfread.c (elf_symfile_read): Limit separate debug info additions to
7224 files with no separate debug info.
7225 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
7226 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
7227 only for files with no separate debug info.
7228
8eacb197
TT
72292013-01-31 Tom Tromey <tromey@redhat.com>
7230
7231 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
7232 change type.
7233 (struct jit_program_space_data): Rename from jit_inferior_data.
7234 Update comments.
7235 (get_jit_program_space_data): Rename from get_jit_inferior_data.
7236 Change return type. Attach data to program space.
7237 (jit_program_space_data_cleanup): Rename from
7238 jit_inferior_data_cleanup; change argument type.
7239 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
7240 change type.
7241 (jit_register_code): Update.
7242 (jit_update_inferior_cache): Remove.
7243 (jit_breakpoint_deleted): Get jit data from the location's program
7244 space.
7245 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
7246 'ps_data', change type.
7247 (jit_inferior_init, jit_breakpoint_re_set_internal)
7248 (jit_event_handler): Update.
7249 (free_objfile_data): Get data from objfile's program space.
7250 (_initialize_jit): Update.
7251
f25c0135
TT
72522013-01-31 Tom Tromey <tromey@redhat.com>
7253
7254 PR gdb/13987:
7255 * jit.c (struct jit_inferior_data) <cached_code_address,
7256 jit_breakpoint>: New fields.
7257 (jit_breakpoint_re_set_internal): Fix logging. Only create
7258 breakpoint if cached address has changed.
7259 (jit_update_inferior_cache, jit_breakpoint_deleted): New
7260 functions.
7261 (_initialize_jit): Register breakpoint deleted observer.
7262
974a734b
AR
72632013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7264
7265 * infrun.c (handle_syscall_event): Remove unused gdbarch.
7266 (save_infcall_suspend_state): Ifdef out unused inf.
7267 (restore_infcall_suspend_state): Ifdef out unused inf.
7268 * jit.c (jit_register_code): Remove unused i, b, inf_data.
7269 (jit_frame_sniffer): Remove unused inf_data.
7270
df54f8eb
AR
72712013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7272
7273 * c-exp.y (classify_inner_name): Remove unused type.
7274 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
7275 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
7276 need_escape.
7277 (c_get_string): Remove unused kind.
7278 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
7279
5799c0b9
AR
72802013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7281
7282 * charset.c (intermediate_encoding): Remove unused i.
7283 * completer.c (signal_completer): Remove unused i.
7284 * continuations.c (discard_my_continuations_1): Remove unused
7285 continuation_ptr.
7286 * corelow.c (core_close): Remove unuseD name.
7287 (get_core_siginfo): Remove unused pid.
7288 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
7289 i, cps.
7290 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
7291 (loclist_describe_location): Remove unused first.
7292 * event-top.c (command_line_handler): Remove unused got_eof.
7293 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
7294 (resize_section_table): Remove unused old_value.
7295 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
7296 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
7297 * i386-tdep.c (i386_process_record): Remove unused rex.
7298 * infcmd.c (get_return_value): Remove unused uiout.
7299 * jv-lang.c (type_from_class): Remove unused is_array.
7300 * jv-valprint.c (java_val_print): Remove unused i.
7301 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
7302 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
7303 * m2-typeprint.c (m2_print_type): Remove unused code.
7304 * macroexp.c (get_character_constant): Remove unused body_start.
7305 (macro_stringify): Remove unused result.
7306 * objc-lang.c (find_methods): Remove unused gdbarch.
7307 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
7308 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
7309 * stack.c (print_frame_args): Remove unused summary.
7310 * thread.c (thread_apply_command): Remove unused p.
7311 * valarith.c (value_x_unop): Remove unused mangle_ptr.
7312 * valops.c (search_struct_method): Remove unused skip.
7313 * valprint.c (generic_val_print): Remove unused byte_order.
7314 * varobj.c (varobj_update): Remove unused changed.
7315 * cli/cli-cmds.c (complete_command): Remove unused next_item.
7316 (alias_command): Remove unused c.
7317 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
7318 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
7319 format.
7320 (mi_cmd_data_write_memory): Remove unused word_format.
7321 (mi_cmd_data_write_memory_bytes): Remove unused r.
7322 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
7323 p_start, p_end.
7324 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
7325 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
7326 line_width.
7327
c656bca5
AR
73282013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7329
7330 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
7331 * symtab.c (iterate_over_symtabs): Remove unused s.
7332 (find_pc_sect_symtab): Remove unused pspAce.
7333 (find_pc_sect_line): Remove unused alt_symtab.
7334 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
7335 (completion_list_add_name): Remove unused newsize.
7336
7078baeb
TT
73372013-01-31 Tom Tromey <tromey@redhat.com>
7338
7339 PR c++/14998:
7340 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
7341 TYPE_CODE_FUNC.
7342
c2e8b827
AR
73432013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7344
7345 * target.c (target_read_string): Remove unused origlen.
7346
0e43993a
AR
73472013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7348
7349 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
7350 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
7351 * ax-general.c (ax_print): Remove unused is_float.
7352 * blockframe.c (block_innermost_frame): Remove unused start, end.
7353 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
7354
765a97ab
AR
73552013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
7356
7357 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
7358 (svr4_read_so_list): Remove unused lmo.
7359 * solib-target.c (solib_target_relocate_section_addresses): Remove
7360 unused flags.
7361
a99dad3d
TT
73622013-01-30 Tom Tromey <tromey@redhat.com>
7363
7364 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
7365
3bff1ecd
TT
73662013-01-30 Tom Tromey <tromey@redhat.com>
7367
7368 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
7369 * utils.c (gnu_debuglink_crc32): Remove.
7370 * utils.h (gnu_debuglink_crc32): Don't declare.
7371
7d455152
TT
73722013-01-30 Tom Tromey <tromey@redhat.com>
7373
7374 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
7375 (read_structure_type, read_enumeration_type): Remove cast.
7376
abee88f2
TT
73772013-01-30 Tom Tromey <tromey@redhat.com>
7378
7379 * dwarf2read.c (read_namespace_type): Remove cast.
7380 (read_typedef): Likewise.
7381
8d9878a4
TT
73822013-01-29 Tom Tromey <tromey@redhat.com>
7383
7384 * dwarf2read.c (free_dwo_file): Remove assert.
7385
a543d2a9
TT
73862013-01-29 Tom Tromey <tromey@redhat.com>
7387
7388 * value.c (deprecated_set_value_modifiable): Remove.
7389 * value.h (deprecated_set_value_modifiable): Remove.
7390
bed911e5
DE
73912013-01-28 Doug Evans <dje@google.com>
7392
7393 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
7394 to addresses from dwo files.
7395
28c64fc2
SCR
73962013-01-25 Siva Chandra Reddy <sivachandra@google.com>
7397
7398 * valops.c (find_overload_match): Remove unused argument 'lax'.
7399 * value.h: Remove unused argument 'lax' from the declaration of
7400 find_overload_match.
7401 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
7402 to find_overload_match.
7403 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
7404 argument to find_overload_match.
7405
4d4ec4e5
TT
74062013-01-25 Tom Tromey <tromey@redhat.com>
7407
7408 * dwarf2read.c (processing_has_namespace_info): Remove.
7409 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
7410 (process_die, read_func_scope, dwarf2_start_symtab)
7411 (new_symbol_full): Update.
7412
195a3f6c
TT
74132013-01-25 Tom Tromey <tromey@redhat.com>
7414
7415 * cp-namespace.c (cp_set_block_scope): Remove.
7416 * cp-support.h (cp_set_block_scope): Remove.
7417 * dbxread.c: Include block.h.
7418 (cp_set_block_scope): New function.
7419 (process_one_symbol): Update.
7420 * dwarf2read.c (read_func_scope): Use block_set_scope.
7421
8ba0730a
PA
74222013-01-25 Pedro Alves <palves@redhat.com>
7423
7424 * remote.c (add_current_inferior_and_thread): Tweak comment.
7425
12aaed36
TT
74262013-01-25 Tom Tromey <tromey@redhat.com>
7427
7428 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
7429 (cp_add_using_directive): Add 'copy_names' argument.
7430 * cp-support.h (cp_add_using_directive): Update.
7431 (struct using_direct) <import_src, import_dest, alias,
7432 declaration>: Now const.
7433 * dwarf2read.c (read_import_statement): Use obconcat.
7434 Don't copy names passed to cp_add_using_directive.
7435
7fc75ca7
TT
74362013-01-25 Tom Tromey <tromey@redhat.com>
7437
7438 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
7439
3405876a
PA
74402013-01-25 Pedro Alves <palves@redhat.com>
7441
7442 * remote.c (stop_reply_extract_thread): New.
7443 (add_current_inferior_and_thread): New parameter 'wait_status'.
7444 Handle it.
7445 (remote_start_remote): Pass wait status to
7446 add_current_inferior_and_thread.
7447 (extended_remote_run): Update comment.
7448 (extended_remote_create_inferior_1): Pass wait status to
7449 add_current_inferior_and_thread.
7450
8954db33
AB
74512013-01-25 Andrew Burgess <aburgess@broadcom.com>
7452 Ulrich Weigand <uweigand@de.ibm.com>
7453
7454 * valarith.c (value_vector_widen): New function for replicating a
7455 scalar into a vector.
7456 (value_binop): Use value_vector_widen to widen scalar to vector
7457 rather than casting, this better matches gcc C behaviour.
7458 * valops.c (value_casst): Update logic for casting between vector
7459 types, and for casting from scalar to vector, try to match gcc C
7460 behaviour.
7461 * value.h (value_vector_widen): Declare.
7462 * opencl-lang.c (opencl_value_cast): New opencl specific casting
7463 function, handle special case for casting scalar to vector.
7464 (opencl_relop): Use opencl_value_cast.
7465 (evaluate_subexp_opencl): Use opencl_value_cast instead of
7466 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
7467 in order to use opencl_value_cast.
7468
843b20dc
YQ
74692013-01-25 Yao Qi <yao@codesourcery.com>
7470
7471 * event-loop.c: Include "queue.h".
7472 (gdb_event_p): New typedef.
7473 (DECLARE_QUEUE_P): Use.
7474 (DEFINE_QUEUE_P): Use.
7475 (async_queue_event): Remove.
7476 (gdb_event_xfree): New.
7477 (initialize_event_loop): New.
7478 (process_event): Use QUEUE macros.
7479 (event_queue): Remove.
7480 (gdb_wait_for_event): Caller update.
7481 (check_async_event_handlers): Likewise.
7482 (poll_timers): Likewise.
7483 * event-loop.h (initialize_event_loop): Declare.
7484 * event-loop.c (gdb_event_xfree): New.
7485 * top.c (gdb_init): Call initialize_event_loop.
7486
20ad8856
YQ
74872013-01-25 Yao Qi <yao@codesourcery.com>
7488
7489 * event-loop.c (async_queue_event): Remove one parameter
7490 'position'. Remove code handling 'position' == TAIL.
7491 (gdb_wait_for_event): Caller update.
7492 (check_async_event_handlers): Caller update.
7493 (poll_timers): Caller update.
7494 * event-loop.h (enum queue_position): Remove.
7495
3bbbe775
MK
74962013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
7497
7498 * MAINTAINERS: Update my email.
7499
a87d9ac4
YQ
75002013-01-25 Yao Qi <yao@codesourcery.com>
7501
7502 * main.c (print_gdb_help): Remove "--epoch" from the help
7503 message.
7504
2077afdd
TD
75052013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
7506
7507 * symtab.c (skip_prologue_using_sal): Consider a file
7508 change the same as an increased line number
7509
63da4037
TD
75102013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
7511
30e8ee25 7512 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 7513
45e6c716
TT
75142013-01-24 Tom Tromey <tromey@redhat.com>
7515
7516 * ada-lang.h (ada_decode_symbol): Make return type const.
7517 * ada-lang.c (ada_decode_symbol): Likewise.
7518
b1ae631a
DE
75192013-01-23 Doug Evans <dje@google.com>
7520
7521 * linespec.c (find_linespec_symbols): Make static.
7522
55a78401
SDJ
75232013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
7524
7525 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
7526 type on float conversion for complex type.
7527
bea883fd
SCR
75282013-01-23 Siva Chandra Reddy <sivachandra@google.com>
7529
7530 Add a new class gdb.Architecture which exposes GDB's
7531 internal representation of architecture via GDB Python API.
7532 * Makefile.in: Add entries corresponding to the new file
7533 python/py-arch.c.
7534 * NEWS (Python Scripting): Add entries for the new class
7535 gdb.Architecture and the new method gdb.Frame.architecture.
7536 * python/py-arch.c: Implement gdb.Architecture class.
7537 * python/py-frame.c (frapy_arch): Implement the method
7538 gdb.Frame.architecture().
7539 (frame_object_methods): Add 'architecture' to the method table.
7540 * python/python-internal.h: Add declarations of new utility
7541 functions.
7542 * python/python.c (_initialize_python): Initialize
7543 gdb.Architecture class.
7544
796a7ff8
DE
75452013-01-23 Doug Evans <dje@google.com>
7546
7547 Work around binutils/15021.
7548 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
7549 type_unit_group out of union s. All uses updated.
7550 (read_index_from_section): Watch for index version 8.
7551 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
7552 an imported symtab.
7553 (write_psymtabs_to_index): Increment version number to 8.
7554
0928e93d
PA
75552013-01-22 Pedro Alves <palves@redhat.com>
7556
7557 * annotate.c (breakpoint_changed): Skip if breakpoint is not
7558 user-visible.
7559
9c97429f
PA
75602013-01-22 Pedro Alves <palves@redhat.com>
7561
7562 * annotate.c (annotate_breakpoints_changed): Rename to ...
7563 (annotate_breakpoints_invalid): ... this. Make static.
7564 (breakpoint_changed): Adjust.
7565 (_initialize_annotate): Always install the observers. Install a
7566 "breakpoint_created" observer.
7567 * annotate.h (annotate_breakpoints_changed): Delete declaration.
7568 * breakpoint.c (set_breakpoint_condition)
7569 (breakpoint_set_commands, do_map_commands_command)
7570 (init_raw_breakpoint, clear_command, set_ignore_count)
7571 (enable_breakpoint_disp): No longer call
7572 annotate_breakpoints_changed.
7573
bd00c694
PA
75742013-01-22 Pedro Alves <palves@redhat.com>
7575
7576 * annotate.c: Include "inferior.h".
7577 (frames_invalid_emitted)
7578 (breakpoints_invalid_emitted): New globals.
7579 (async_background_execution_p): New function.
7580 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
7581 emitting the annotation if it has already been emitted.
7582 (annotate_display_prompt): New function.
7583 * annotate.h (annotate_display_prompt): New declaration.
7584 * event-top.c: Include annotate.h.
7585 (display_gdb_prompt): Call annotate_display_prompt.
7586
187d10dd
PA
75872013-01-22 Pedro Alves <palves@redhat.com>
7588
7589 * annotate.c (ignore_count_changed): Delete.
7590 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
7591 (annotate_ignore_count_change): Delete.
7592 (annotate_stopped): Don't emit a delayed breakpoints-changed
7593 annotation.
7594 * annotate.h (annotate_ignore_count_change): Delete.
7595 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
7596 annotate_ignore_count_change.
7597
d84cf7eb
TT
75982013-01-22 Tom Tromey <tromey@redhat.com>
7599
7600 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
7601 require_rvalue for a register location.
7602
8f1d5693
MK
76032013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
7604
7605 * breakpoint.c (print_one_breakpoint_location): Add MI
7606 field 'thread-groups' when printing a breakpoint.
7607 (output_thread_groups): New function.
7608
aa6199c6
SCR
76092013-01-21 Siva Chandra Reddy <sivachandra@google.com>
7610
7611 * python/lib/gdb/commands/explore.py
7612 (CompoundExplorer.explore_expr): Correct the name of a method
7613 being invoked.
7614 (ExploreTypeCommand.invoke): Add a missing 'return'.
7615
d2afef13
TT
76162013-01-21 Tom Tromey <tromey@redhat.com>
7617
7618 * gdb_obstack.h (obconcat): Move declaration here, from...
7619 * symfile.h (obconcat): ... here.
7620 * gdb_obstack.c: New file.
7621 (obconcat): Move from...
7622 * symfile.c (obconcat): ... here.
7623 * Makefile.in (SFILES): Add gdb_obstack.c.
7624 (COMMON_OBS): Add gdb_obstack.o.
7625
10f0c4bb
TT
76262013-01-21 Tom Tromey <tromey@redhat.com>
7627
7628 * symfile.h (obsavestring): Don't declare.
7629 * symfile.c (obsavestring): Remove.
7630 * ada-exp.y: Use obstack_copy0, not obsavestring.
7631 * ada-lang.c: Use obstack_copy0, not obsavestring.
7632 * coffread.c: Use obstack_copy0, not obsavestring.
7633 * cp-namespace.c: Use obstack_copy0, not obsavestring.
7634 * dbxread.c: Use obstack_copy0, not obsavestring.
7635 * dwarf2read.c: Use obstack_copy0, not obsavestring.
7636 * jit.c: Use obstack_copy0, not obsavestring.
7637 * mdebugread.c: Use obstack_copy0, not obsavestring.
7638 * psymtab.c: Use obstack_copy0, not obsavestring.
7639 * stabsread.c: Use obstack_copy0, not obsavestring.
7640 * xcoffread.c: Use obstack_copy0, not obsavestring.
7641
86f62fd7
TT
76422013-01-21 Tom Tromey <tromey@redhat.com>
7643
7644 * dwarf2read.c (fixup_go_packaging): Save package name
7645 on objfile obstack.
7646 * gdbtypes.c (init_type): Don't copy name.
7647
15d034d0
TT
76482013-01-21 Tom Tromey <tromey@redhat.com>
7649
7650 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
7651 const.
7652 (struct attribute) <u.str>: Now const.
7653 (struct fnfieldlist) <name>: Now const.
7654 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
7655 (partial_die_parent_scope): Make return type const.
7656 (partial_die_full_name, add_partial_symbol): Update.
7657 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
7658 'name' const.
7659 (find_file_and_directory): Make 'name' and 'comp_dir' const.
7660 (read_file_scope, read_func_scope, dwarf2_add_field)
7661 (dwarf2_add_member_fn, read_structure_type)
7662 (process_enumeration_scope, read_array_type, read_module_type)
7663 (read_base_type, read_subrange_type): Update.
7664 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
7665 (new_symbol_full, guess_full_die_structure_name): Update.
7666 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
7667 (dwarf2_name): Return const type.
7668 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
7669 const.
7670
748e18ae
TT
76712013-01-21 Tom Tromey <tromey@redhat.com>
7672
7673 * gdbtypes.c (init_type): Make 'name' const.
7674 * gdbtypes.h (init_type): Update.
7675
46212e0b
TT
76762013-01-21 Tom Tromey <tromey@redhat.com>
7677
7678 * buildsym.c (patch_subfile_names): Use set_last_source_file.
7679 (start_symtab): Make 'name' and 'dirname' const. Use
7680 set_last_source_file.
7681 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
7682 (last_source_file): Define. Now static.
7683 (set_last_source_file, get_last_source_file): New functions.
7684 * buildsym.h (last_source_file): Don't declare.
7685 (start_symtab): Update.
7686 (set_last_source_file, get_last_source_file): Declare.
7687 * coffread.c (complete_symtab): Use set_last_source_file.
7688 (coff_end_symtab): Likewise.
7689 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
7690 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
7691 set_last_source_file.
7692 (process_one_symbol): Use get_last_source_file.
7693 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
7694 (psymtab_to_symtab_1): Use get_last_source_file.
7695 * xcoffread.c (process_linenos): Use get_last_source_file.
7696 (complete_symtab): Use set_last_source_file.
7697 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
7698 (scan_xcoff_symtab): Use set_last_source_file.
7699
9d2ceabe
TT
77002013-01-21 Tom Tromey <tromey@redhat.com>
7701
7702 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
7703 (symbol_set_names): Remove casts. Handle field const-ness.
7704
cfc594ee
TT
77052013-01-21 Tom Tromey <tromey@redhat.com>
7706
7707 * dwarf2read.c (new_symbol_full): Remove cast.
7708 * symtab.c (symbol_set_demangled_name): Make 'name' const.
7709 * symtab.h (symbol_set_demangled_name): Update.
7710
5484b13a
TT
77112013-01-21 Tom Tromey <tromey@redhat.com>
7712
7713 * main.c (captured_main): Call bfd_init.
7714
1605ef26
TT
77152013-01-21 Tom Tromey <tromey@redhat.com>
7716
7717 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
7718 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
7719 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
7720 * NEWS: Update.
7721
3b74cdc3
JK
77222013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7723
7724 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
7725
5a352474
JK
77262013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
7727
7728 Fix gdb.fortran/common-block.exp crash in PIE mode.
7729 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
7730 LOC_COMMON_BLOCK.
7731 * f-valprint.c (info_common_command_for_block): Expect
7732 LOC_COMMON_BLOCK in gdb_assert.
7733 * symtab.h (struct general_symbol_info): Update comment for the
7734 common_block member.
7735 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
7736 (enum address_class): New member LOC_COMMON_BLOCK.
7737
c60797fd
DB
77382013-01-18 David Blaikie <dblaikie@gmail.com>
7739
7740 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 7741
46f35228
TT
77422013-01-18 Tom Tromey <tromey@redhat.com>
7743
7744 PR c++/14999:
7745 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
7746 Call require_rvalue.
7747
257e7a09
YQ
77482013-01-18 Yao Qi <yao@codesourcery.com>
7749
7750 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
7751 (dbx_read_symtab): New declaration.
7752 (dbx_psymtab_to_symtab): Delete.
7753 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
7754 Rename parameter PST to SELF. Exchanged two parameters.
7755 (start_psymtab): Caller update.
7756 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
7757 (dwarf2_read_symtab): New declaration.
7758 (dwarf2_psymtab_to_symtab): Delete.
7759 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
7760 Rename parameter PST to SELF. Exchanged two parameters.
7761 (create_partial_symtab): Caller update.
7762 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
7763 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
7764 Rename parameter PST to SELF. Exchanged two parameters.
7765 (parse_partial_symbols, new_psymtab): Caller update.
7766 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
7767 two parameters.
7768 * psymtab.c (psymtab_to_symtab): Caller update.
7769 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
7770 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
7771 Rename parameter PST to SELF. Exchanged two parameters.
7772 (xcoff_start_psymtab): Caller update.
7773
0de5618e
YQ
77742013-01-18 Yao Qi <yao@codesourcery.com>
7775
7776 * infrun.c (proceed): Rename local variable 'oneproc' to
7777 'force_step'.
7778
5c04624b
DE
77792013-01-17 Doug Evans <dje@google.com>
7780
848e3e78
DE
7781 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
7782 (dw2_build_type_unit_groups): Delete. All uses updated.
7783
5c04624b
DE
7784 * symtab.h (struct symbol_search): Add comment.
7785
d84fca2c
JK
77862013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7787
7788 * symtab.c (compare_filenames_for_search): New comment for
7789 HAS_DRIVE_SPEC.
7790
6108433d
TT
77912013-01-17 Tom Tromey <tromey@redhat.com>
7792
7793 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
7794
c89ffd86
JK
77952013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7796
7797 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
7798 initialize it by existing make_cleanup. Call new do_cleanups.
7799
db2b2972
TT
78002013-01-17 Tom Tromey <tromey@redhat.com>
7801
7802 * cp-abi.c (cp_abi_completer): New function.
7803 (_initialize_cp_abi): Set completer for "set cp-abi".
7804
be7d37a2
TT
78052013-01-17 Tom Tromey <tromey@redhat.com>
7806
7807 * mem-break.c: Remove obsolete comment.
7808 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
7809
c9fb1240
SD
78102012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
7811
7812 * jit.c (jit_reader_load_command): Interpret the jit reader name
7813 as an absolute path if it begins with a forward slash.
7814
db334a01
SD
78152012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
7816
7817 PR gdb/14550
7818
7819 * jit.c (finalize_symtab): Ensure that only the global block has a
7820 NULL superblock.
7821
7d928dac
PA
78222013-01-17 Pedro Alves <palves@redhat.com>
7823
7824 * acinclude.m4: Include ../config/plugins.m4,
7825 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
7826 * Makefile.in (aclocal_m4_deps): Update.
7827 * aclocal.m4: Renegerate.
7828
fb8cf7c5
DE
78292013-01-16 Doug Evans <dje@google.com>
7830
7831 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
7832
ab04a2af
TT
78332013-01-16 Pedro Alves <palves@redhat.com>
7834 Tom Tromey <tromey@redhat.com>
7835
7836 PR cli/7221:
7837 * NEWS: Add "catch signal".
7838 * breakpoint.c (base_breakpoint_ops): No longer static.
7839 (bpstat_explains_signal): New function.
7840 (init_catchpoint): No longer static.
7841 (base_breakpoint_explains_signal): New function.
7842 (base_breakpoint_ops): Initialize new field.
7843 * breakpoint.h (enum bpstat_signal_value): New.
7844 (struct breakpoint_ops) <explains_signal>: New field.
7845 (bpstat_explains_signal): Remove macro, declare as function.
7846 (base_breakpoint_ops, init_catchpoint): Declare.
7847 * break-catch-sig.c: New file.
7848 * inferior.h (signal_catch_update): Declare.
7849 * infrun.c (signal_catch): New global.
7850 (handle_syscall_event): Update for change to
7851 bpstat_explains_signal.
7852 (handle_inferior_event): Likewise. Always handle random signals
7853 via bpstats.
7854 (signal_cache_update): Check signal_catch.
7855 (signal_catch_update): New function.
7856 (_initialize_infrun): Initialize signal_catch.
7857 * Makefile.in (SFILES): Add break-catch-sig.c.
7858 (COMMON_OBS): Add break-catch-sig.o.
7859
8ac3646f
TT
78602013-01-16 Tom Tromey <tromey@redhat.com>
7861
7862 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
7863 (print_one_catch_solib, print_one_catch_syscall)
7864 (print_one_catch_exec, print_one_exception_catchpoint): Emit
7865 "catch-type".
7866
5a18e302
YQ
78672013-01-16 Yao Qi <yao@codesourcery.com>
7868
7869 * printcmd.c (current_display_number): Make it static.
7870
3f01d0d0
YQ
78712013-01-16 Yao Qi <yao@codesourcery.com>
7872
7873 * infcmd.c (step_once): Don't check '!single_inst' as it was
7874 checked before.
7875
1ed59174
JK
78762013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
7877
7878 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
7879
44478ab3
TT
78802013-01-14 Tom Tromey <tromey@redhat.com>
7881
7882 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
7883 set command.
7884 * command.h (add_setshow_string_noescape_cmd): Update.
7885 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
7886 (complete_set_gnutarget): New function.
7887 (_initialize_core): Set the "set gnutarget" completer.
7888
06d66ee9
TT
78892013-01-14 Tom Tromey <tromey@redhat.com>
7890
7891 PR symtab/14442:
7892 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
7893 (c_type_print_modifier): Likewise.
7894 * dwarf2read.c (read_tag_restrict_type): New function.
7895 (read_type_die_1): Handle DW_TAG_restrict_type.
7896 * gdbtypes.c (make_restrict_type): New function.
7897 (recursive_dump_type): Handle TYPE_RESTRICT.
7898 * gdbtypes.h (enum type_flag_values): Renumber.
7899 (enum type_instance_flag_value): Add
7900 TYPE_INSTANCE_FLAG_RESTRICT.
7901 (TYPE_RESTRICT): New macro.
7902 (make_restrict_type): Declare.
7903
c9bf0622
TT
79042013-01-14 Tom Tromey <tromey@redhat.com>
7905
7906 PR symtab/14931:
7907 * psymtab.c (struct psymtab_state): New.
7908 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
7909 functions.
7910 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
7911 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
7912
44d594fd
PA
79132013-01-14 Richard Sharman <richard_sharman@mitel.com>
7914 Pedro Alves <palves@redhat.com>
7915
7916 PR remote/14786
7917
7918 * remote.c (remote_threads_info): Make a copy of the reply from
7919 qfThreadInfo and use that instead of rs->buf.
7920
442e4d9c
YQ
79212013-01-14 Yao Qi <yao@codesourcery.com>
7922
7923 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
7924 (dbx_psymtab_to_symtab): Likewise.
7925 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
7926 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
7927 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
7928
5b12a61c
JK
79292013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7930
7931 * parse.c (parse_exp_in_context): New variable inner_chain. Call
7932 make_cleanup_restore_current_language. Call set_language. Move
7933 OLD_CHAIN and INNER_CHAIN cleanups.
7934 * utils.c (do_restore_current_language)
7935 (make_cleanup_restore_current_language): New functions.
7936 * utils.h (make_cleanup_restore_current_language): New declaration.
7937
f0a4b570
JK
79382013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
7939
7940 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
7941 non-existing files.
7942
57b3c00c
JK
7943 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
7944 non-existing files if FILENAME is already absolute.
7945
daefa854
JK
79462013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7947
7948 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
7949 fputs_filtered. Append trailing newline.
7950
ca9c6ee2
YQ
79512013-01-11 Yao Qi <yao@codesourcery.com>
7952 Stan Shebs <stan@codesourcery.com>
7953
7954 * psymtab.c (init_psymbol_list): Clarify the comment.
7955
f28045c2
YQ
79562013-01-11 Yao Qi <yao@codesourcery.com>
7957
7958 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
7959 (update_dprintf_command_list): Assert that 'printf_line' is
7960 non-null. Remove condition check.
7961
da5132d3
JK
79622013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7963
7964 Code cleanup.
7965 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
7966 type const char *.
7967 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
7968 const char *.
7969 * tui/tui-source.h (tui_source_is_displayed): Likewise.
7970
843e694d
AG
79712013-01-09 Anthony Green <green@moxielogic.com>
7972
7973 * cp-abi.c (cplus_print_vtable): Don't return value from void
7974 function.
7975 * ada-lang.c (re_set_catch_assert): Ditto.
7976
da51c347
DE
79772013-01-09 Doug Evans <dje@google.com>
7978
7979 * symfile.h (quick_symbol_functions): Delete member
7980 pre_expand_symtabs_matching. All uses removed.
7981 * dwarf2read.c (dw2_lookup_symbol): Implement.
7982 (dw2_do_expand_symtabs_matching): Delete.
7983 (dw2_pre_expand_symtabs_matching): Delete.
7984 (struct dw2_symtab_iterator): New type.
7985 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
7986 (dw2_expand_symtabs_for_function): Rewrite.
7987 (dwarf2_gdb_index_functions): Update.
7988 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
7989 (psym_functions): Update.
7990
b2259038
TT
79912013-01-09 Tom Tromey <tromey@redhat.com>
7992
7993 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
7994 * configure: Rebuild.
7995 * configure.ac: Add somread.o to the build if BFD has SOM
7996 support.
7997 * somread.c: Include som/aout.h, not syms.h.
7998 (som_symtab_read): Use som_external_symbol_dictionary_record.
7999 Unpack records manually.
8000 (_initialize_somread): Declare.
8001
bdad4180
MF
80022012-01-08 Mike Frysinger <vapier@gentoo.org>
8003
8004 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
8005 Cast return_address to 64bits.
8006
03cdf680
HZ
80072013-01-08 Hui Zhu <hui_zhu@mentor.com>
8008
8009 * printcmd.c: Remove define of function output_command.
8010 * tracepoint.c: Remove extern of function output_command.
8011 * valprint.h: (output_command): New extern.
8012
8a808554
TT
80132013-01-07 Tom Tromey <tromey@redhat.com>
8014
8015 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
8016 Remove.
8017 (objc_language_defn): Use c_printchar, c_printstr,
8018 c_emit_char.
8019
e93a8774
TT
80202013-01-07 Tom Tromey <tromey@redhat.com>
8021
8022 PR cli/7719:
8023 * NEWS: Update.
8024 * ada-valprint.c (printstr, print_field_values): Remove
8025 "inspect_it" code.
8026 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
8027 code.
8028 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
8029 code.
8030 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
8031 * main.c (captured_main): Remove "epoch" argument.
8032 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
8033 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
8034 * p-valprint.c (pascal_object_print_value_fields): Remove
8035 "inspect_it" code.
8036 * printcmd.c (print_command_1): Remove 'inspect' argument.
8037 (print_command, call_command): Update.
8038 (inspect_command): Remove.
8039 (_initialize_printcmd): Make "inspect" an alias for "print".
8040 * top.c (epoch_interface): Remove.
8041 * top.h (epoch_interface): Remove.
8042 * valprint.c (user_print_options): Update.
8043 (print_converted_chars_to_obstack): Remove "inspect_it" code.
8044 * valprint.h (struct value_print_options) <inspect_it>: Remove
8045 field.
8046
80472013-01-04 Tom Tromey <tromey@redhat.com>
8048
8049 * valprint.h (read_string): Add 'extern'.
8050
b967eb24
JB
80512013-01-07 Joel Brobecker <brobecker@adacore.com>
8052
8053 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
8054 used to decide whether to define darwin_read_dyld_info or not.
8055
78a8b30e
PM
80562013-01-03 Pierre Muller <muller@sourceware.org>
8057
8058 * main.c (relocate_gdb_directory): Avoid calling stat function
8059 if DIR is empty.
8060
50da2f25
YQ
80612013-01-03 Yao Qi <yao@codesourcery.com>
8062
8063 * psymtab.c (fixup_psymbol_section): Update declaration.
8064 (fixup_psymbol_section): Remove code returning value.
8065
e7e8980f
YQ
80662013-01-03 Yao Qi <yao@codesourcery.com>
8067
8068 * symtab.h: Remove some out of date comments.
8069 (enum exception_event_kind): Move it ...
8070 * breakpoint.c: ... here.
8071
569283d4
MF
80722013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
8073
9f9d9a96 8074 PR gdb/14405
569283d4
MF
8075 * darwin-nat.c (darwin_read_dyld_info): Only build if
8076 TASK_DYLD_INFO_COUNT is defined.
8077 (darwin_xfer_partial): Call darwin_read_dyld_info only if
8078 TASK_DYLD_INFO_COUNT is defined.
8079
2e36fbea
TT
80802013-01-02 Tom Tromey <tromey@redhat.com>
8081
8082 * symfile.h (struct ecoff_debug_hack): Remove.
8083 * objfiles.c: Don't include mdebugread.h.
8084
4f05add4
TT
80852013-01-02 Tom Tromey <tromey@redhat.com>
8086
8087 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
8088 * configure.ac: Check for Mach-O support in BFD. Update
8089 CONFIG_OBS.
8090 * configure: Rebuild.
8091
def63ff0
TT
80922013-01-02 Tom Tromey <tromey@redhat.com>
8093
8094 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
8095 * configure.ac: Use GDB_AC_CHECK_BFD.
8096 * configure: Rebuild.
8097
60c5dd93
MK
80982013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
8099
8100 * MAINTAINERS: Update my email.
8101
6e58437e
JB
81022013-01-01 Joel Brobecker <brobecker@adacore.com>
8103
8104 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
8105
627fe805
JB
81062013-01-01 Joel Brobecker <brobecker@adacore.com>
8107
8108 * rs6000-nat.c (bss_data_overlap): New function.
8109 (vmap_symtab): Use it to adjust the .bss section's offset.
8110
28e7fd62
JB
81112013-01-01 Joel Brobecker <brobecker@adacore.com>
8112
8113 Update year range in copyright notice of all files.
8114
e93a8774 81152013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
8116
8117 * top.c (print_gdb_version): Update copyright year.
8118
72b20e9c 8119For older changes see ChangeLog-2012.
c906108c
SS
8120\f
8121Local Variables:
8122mode: change-log
8123left-margin: 8
8124fill-column: 74
8125version-control: never
57da7796 8126coding: utf-8
c906108c 8127End:
This page took 1.801818 seconds and 4 git commands to generate.