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