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