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