* dbxread.c (process_one_symbol): Constify section_offsets parameter.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
a7bfba49
DE
12013-05-06 Doug Evans <dje@google.com>
2
3189cb12
DE
3 * dbxread.c (process_one_symbol): Constify section_offsets parameter.
4 * stabsread.h (process_one_symbol): Update declaration.
5 * dwarf2read.c (dw2_relocate): Constify new_offsets, delta parameters.
6 * elfread.c (elf_symfile_relocate_probe): Ditto.
7 * psymtab.c (relocate_psymtabs): Ditto.
8 * objfiles.c (objfile_relocate1): Constify new_offsets parameter.
9 (objfile_relocate): Ditto.
10 * objfiles.h (objfile_relocate): Update declaration.
11 * symfile.c (relative_addr_info_to_section_offsets): Constify
12 addrs parameter.
13 (default_symfile_offsets): Ditto.
14 (syms_from_objfile_1): Constify offsets parameter.
15 (syms_from_objfile): Ditto.
16 (symbol_file_add_with_addrs_or_offsets): Ditto.
17 (symfile_map_offsets_to_segments): Constify data parameter.
18 * symfile.h (struct quick_symbol_functions): Constify new_offsets,
19 delta parameters of member relocate.
20 (struct sym_probe_fns): Constify new_offsets,
21 delta parameters of member sym_relocate_probe.
22 (struct sym_fns): Constify section_addr_info parameter of member
23 sym_offsets.
24 (relative_addr_info_to_section_offsets): Update declaration.
25 (default_symfile_offsets): Ditto.
26 (syms_from_objfile): Ditto.
27 (symfile_map_offsets_to_segments): Ditto.
28
a7bfba49
DE
29 * symfile.c (syms_from_objfile_1): Use correct section count when
30 objfile->sf == NULL.
31
5f8e0b8f
MF
322013-05-06 Mike Frysinger <vapier@gentoo.org>
33
34 * common/linux-btrace.c (intel_supports_btrace): Fix indentation.
35
ea52d893
DE
362013-05-06 Doug Evans <dje@google.com>
37
38 * psympriv.h (struct partial_symtab): Augment comment for member
39 section_offsets.
40
4d1eb6b4
JB
412013-05-06 Joel Brobecker <brobecker@adacore.com>
42
43 Reimplement shared library support on ppc-aix...
44 * target.h (TARGET_OBJECT_AIX_LIBRARIES): New target_object enum.
45 * features/library-list-aix.dtd: New file.
46 * solib-aix.h, solib-aix.c: New file.
47 * rs6000-aix-tdep.c: #include "solib.h" and "solib-aix.h".
48 (rs6000_find_toc_address_hook): Delete.
49 (rs6000_push_dummy_call): Rewrite code setting the TOC value.
50 (rs6000_aix_init_osabi): Register solib_aix_so_ops.
51 * rs6000-nat.c: Remove "xcoffsolib.h" include. Include
52 "xml-utils.h".
53 (map_vmap, vmap_exec, vmap_ldinfo, add_vmap, objfile_symbol_add)
54 (vmap_symtab, fixup_breakpoints): Delete.
55 (rs6000_xfer_shared_libraries): New function.
56 (rs6000_xfer_partial): Add TARGET_OBJECT_AIX_LIBRARIES handling.
57 (vmap_secs, bss_data_overlap, vmap_add_symbols): Delete.
58 (xcoff_relocate_symtab, xcoff_relocate_core): Delete.
59 (rs6000_ptrace_ldinfo, rs6000_core_ldinfo)
60 (rs6000_xfer_shared_library): New function.
61 (find_toc_address): Delete.
62 (_initialize_rs6000_nat): Do not set rs6000_find_toc_address_hook.
63 * rs6000-tdep.h (rs6000_find_toc_address_hook): Remove.
64 * xcoffread.c (record_minimal_symbol): Reloate symbol address
65 before creating minimal symbol. Adjust function description
66 accordingly.
67 (scan_xcoff_symtab): Replace call to
68 prim_record_minimal_symbol_and_info by call to
69 record_minimal_symbol.
70 (xcoff_symfile_offsets): Reimplement mostly as a wrapper
71 around default_symfile_offsets.
72 * configure.tgt: Add solib-aix.o to gdb_target_obs for
73 powerpc-aix targets.
74 * config/rs6000/nm-rs6000.h: Delete.
75 * config/powerpc/aix.mh (NAT_FILE): Delete.
76 (NATDEPFILES): Remove xcoffsolib.o.
77 * Makefile.in (XMLFILES): Add library-list-aix.dtd.
78 (ALL_TARGET_OBS): Add solib-aix.o.
79 (HFILES_NO_SRCDIR): Remove xcoffsolib.h and
80 config/rs6000/nm-rs6000.h. Add solib-aix.h.
81 (ALLDEPFILES): Add solib-aix.c. Remove xcoffsolib.c.
82 * xcoffsolib.h, xcoffsolib.c: Delete.
83
84 * solib.c (reload_shared_libraries): Remove reference to
85 SOLIB_CREATE_INFERIOR_HOOK.
86 * breakpoint.c (handle_solib_event): Remove reference to SOLIB_ADD.
87 (disable_breakpoints_in_shlibs): Remove reference to PC_SOLIB.
88 (momentary_bkpt_re_set): Replace SOLIB_ADD by solib_add in
89 comment.
90 * corelow.c (deprecated_core_resize_section_table): Delete.
91 * exec.c: Remove include of xcoffsolib.h".
92 (map_vmap, vmap): Delete.
93 (exec_close_1): Remove references to vmap.
94 (exec_file_attach): Remove vmap handling code, and reference
95 to DEPRECATED_IBM6000_TARGET.
96 (bfdsec_to_vmap): Delete.
97 (exec_files_info): Remove block of code handling VMAP.
98 * infcmd.c (post_create_inferior): Remove reference to
99 SOLIB_CREATE_INFERIOR_HOOK and SOLIB_ADD.
100 * infrun.c (follow_exec): Remove reference to
101 SOLIB_CREATE_INFERIOR_HOOK.
102 * stack.c (print_frame): Remove reference to PC_SOLIB.
103 * solib-dsbt.c (dsbt_current_sos): Adjust comment.
104 (dsbt_relocate_main_executable): Likewise.
105 * solib-frv.c (frv_current_sos): Likewise.
106
0c4f667c
JB
1072013-05-06 Joel Brobecker <brobecker@adacore.com>
108
109 * sol-thread.c (rw_common): Cast BUF to "gdb_byte *" in calls
110 to target_write_memory and target_read_memory.
111
726ce67c
JB
1122013-05-06 Joel Brobecker <brobecker@adacore.com>
113
114 * darwin-nat.c (darwin_setup_fake_stop_event): New function.
115 (darwin_attach): Adjust using darwin_setup_fake_stop_event.
116
c8c9911f
JB
1172013-05-06 Joel Brobecker <brobecker@adacore.com>
118
119 * darwin-nat.c: Replace all "%x" instances in format strings
120 into "0x%x" throughout.
121
fda184b6
JB
1222013-05-06 Joel Brobecker <brobecker@adacore.com>
123
124 * darwin-nat.c (darwin_mourn_inferior): Replace call to
125 gdb_assert by call to MACH_CHECK_ERROR.
126 (darwin_attach_pid): Raise an error rather than a failed
127 assertion when various system calls failed. Report a warning
128 instead of raising a failed assertion when PREV_NOT is not NULL
129 after call to mach_port_request_notification.
130 (darwin_ptrace_me): Raise an error rather than a failed
131 assertion when read returns nonzero.
132
d1d69afb
JB
1332013-05-06 Joel Brobecker <brobecker@adacore.com>
134
135 * amd64-darwin-tdep.c: Remove #include "gdb_assert.h".
136
dc90b24d
JK
1372013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
138
139 * cleanups.c (restore_my_cleanups): New gdb_assert for SENTINEL_CLEANUP.
140
faab9922
JK
1412013-05-05 Jan Kratochvil <jan.kratochvil@redhat.com>
142
143 * event-top.c (display_gdb_prompt): Call missing do_cleanups.
144 * infcmd.c (get_return_value) <!stop_regs>: Do not overwrite CLEANUP.
145 * symfile.c (symfile_bfd_open): New variable back_to. Do not leave
146 a stale cleanup. Fix double free of NAME.
147
e0ea48a0
EZ
1482013-05-04 Eli Zaretskii <eliz@gnu.org>
149
150 * windows-nat.c (windows_delete_thread): Accept an additional
151 argument, the thread's exit code, and announce thread death when
152 print_thread_events is non-zero and we are deleting a thread that
153 is not the main thread.
154 (get_windows_debug_event): Pass thread exit code to
155 windows_delete_thread.
156
83b2706a
KB
1572013-05-03 Kevin Buettner <kevinb@redhat.com>
158
159 * v850-tdep.c (elf-bfd.h, elf/v850.h): Include.
160 (R_149_REGNUM, E_NUM_OF_V850E2_REGS, E_SELID_1_R0_REGNUM)
161 (E_SELID_1_R31_REGNUM, E_SELID_2_R0_REGNUM, E_SELID_2_R31_REGNUM)
162 (E_SELID_3_R0_REGNUM, E_SELID_3_R31_REGNUM, E_SELID_4_R0_REGNUM)
163 (E_SELID_4_R31_REGNUM, E_SELID_5_R0_REGNUM, E_SELID_5_R31_REGNUM)
164 (E_SELID_6_R0_REGNUM, E_SELID_6_R31_REGNUM, E_SELID_7_R0_REGNUM, E_SELID_7_R31_REGNUM)
165 (E_VR0_REGNUM, E_VR31_REGNUM, E_NUM_OF_V850E3V5_REGS): Define.
166 (v850_abi, V850_ABI_GCC, V850_ABI_RH850): New enum and constants.
167 (gdbarch_tdep): New struct.
168 (v850e2_register_name): Use E_NUM_OF_V850E2_REGS instead of
169 E_NUM_REGS.
170 (v850e3v5_register_name): New function.
171 (v850_register_type): v850e3v5 vector registers are 64-bits wide.
172 (v850_use_struct_convention): Add `gdbarch' parameter. Add new
173 code handling the struct return conventions for the RH850 ABI.
174 Update all callers.
175 (v850_eight_byte_align_p): New function.
176 (v850_push_call_dummy): Push structs by value, not by reference
177 for the RH850 ABI. Add support for eight byte alignment.
178 (v850_dbtrap_breakpoint_from_pc): New function.
179 (v850_gdbarch_init): Add ABI detection code. Register
180 v850e3v5_register_name for the v850e3v5 architecture. Set the
181 number of registers for v850e3v5. Register
182 v850_dbtrap_breakpoint_from_pc as appropriate.
183 (_initialize_gdbarch_init): Registration bfd_arch_v850_rh850.
184
d445b2f6
DE
1852013-05-03 Doug Evans <dje@google.com>
186
187 * objfiles.c (objfile_relocate): Use gdb_bfd_count_sections instead
188 of bfd_count_sections.
189 * solib-target.c (solib_target_relocate_section_addresses): Ditto.
190 * symfile.c (default_symfile_offsets): Ditto.
191 (syms_from_objfile_1): Ditto. Make dummy addrs list an array of
192 one entry, not bfd_count_sections entries.
193
b3ce41ea
KB
1942013-05-03 Kevin Buettner <kevinb@redhat.com>
195
196 * rl78-tdep.c (rl78_register_reggroup_p): Include SP in the
197 `save' and `restore' register groups. Don't include SPL
198 or SPH in these groups.
199 (rl78_dwarf_reg_to_regnum): Adjust mapping for
200 RL78_PC_REGNUM. Add mappings for RL78_PSW_REGNUM,
201 RL78_ES_REGNUM, and RL78_CS_REGNUM.
202 (rl78_gdbarch_init): Set `dwarf2_addr_size' to 4. Invoke
203 dwarf2_append_unwinders().
204
96f7d3f1
PW
2052013-05-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
206
207 * break-catch-sig.c (signal_catchpoint_breakpoint_hit): Do not
208 ignore SIGINT and SIGTRAP in case these internal signals are
209 caught explicitely.
210
b9dd1947
JB
2112013-05-01 Joel Brobecker <brobecker@adacore.com>
212
213 * darwin-nat.c (darwin_read_write_inferior): Change types
214 of parameters rdaddr and wraddr to "gdb_byte *". Change type
215 of copy_count to "mach_msg_type_number_t".
216 (darwin_read_dyld_info): Change type of parameter
217 rdaddr to "gdb_byte *".
218
4ca18a63
JB
2192013-05-01 Joel Brobecker <brobecker@adacore.com>
220
221 * solib-ia64-hpux.c (ia64_hpux_read_dynamic_info): Change cast
222 of &info->load_map from "char *" to "gdb_byte *".
223
2b692d32
JB
2242013-05-01 Joel Brobecker <brobecker@adacore.com>
225
226 * ia64-tdep.c (ia64_access_fpreg): Change cast of val
227 from "char *" to "gdb_byte *".
228 (ia64_access_rse_fpreg, ia64_access_mem): Likewise.
229
a98c29a0
DE
2302013-04-30 Doug Evans <dje@google.com>
231
6a506a2d
DE
232 * dwarf2read.c (lookup_dwo_unit): Return NULL if DWO not found.
233 (init_cutu_and_read_dies): Flag a complaint, not error, for bad
234 DWO stub. If DWO isn't found, just use stub.
235 (lookup_dwo_cutu): Don't try DWO if there's a DWP file.
236
a98c29a0
DE
237 * dwarf2read.c (dw2_find_symbol_file): Initialize filename before
238 calling init_cutu_and_read_dies.
239
f92b06da
WT
2402013-03-27 Walfred Tedeschi <walfred.tedeschi@intel.com>
241
242 * target-descriptions.c (maint_print_c_tdesc_cmd):
243 Add case to parse structures as register types and
244 bitfields.
245
95eebdcc
WT
2462013-04-30 Walfred Tedeschi <walfred.tedeschi@intel.com>
247
248 * MAINTAINERS (Write After Approval): Add myself to the list.
249
019c1128
JB
2502013-04-30 Joel Brobecker <brobecker@adacore.com>
251
252 * sol-thread.c (rw_common): Change type of parameter "buf"
253 to "gdb_byte *".
254 (ps_pdwrite, ps_ptwrite): Cast parameter "buf" in call to
255 rw_common to "gdb_byte *" instead of "char *".
256
5812197c
JB
2572013-04-30 Joel Brobecker <brobecker@adacore.com>
258
259 * sol-thread.c (info_cb) [ti.ti_startfunc != 0]: Change type
260 of local variable msym to const struct bound_minimal_symbol.
261 Adjust use accordingly.
262 [ti.ti_state == TD_THR_SLEEP]: Likewise.
263
ecccb813
TS
2642013-04-30 Samuel Thibault <samuel.thibault@gnu.org>
265
266 * i386gnu-nat.c (CREG_OFFSET): New macro.
267 (creg_offset): New array.
268 (CREG_ADDR): Use creg_offset instead of reg_offset.
269
f1d02dd4 2702013-04-30 Joel Brobecker <brobecker@adacore.com>
54746424
JB
271
272 * mep-tdep.c (mep_write_pc): Delete.
273 (mep_gdbarch_init): Remove call to set_gdbarch_write_pc.
274 Add call to set_gdbarch_pc_regnum.
275
f1d02dd4 2762013-04-30 Joel Brobecker <brobecker@adacore.com>
01da98f9
JB
277
278 * common/filestuff.c: Replace #include <dirent.h> by
279 #include "gdb_dirent.h".
280
f1d02dd4 2812013-04-30 Joel Brobecker <brobecker@adacore.com>
366c6766
JB
282
283 * common/filestuff.c: Replace #include <sys/stat.h> by
284 #include "gdb_stat.h".
285
b385a60d
PM
2862013-04-29 Pierre Muller <muller@sourceware.org>
287
288 * dwarf2read.c (handle_DW_AT_stmt_list): Avoid ARI warning for
289 editCase function rule.
290 (get_DW_AT_signature_type): Likewise.
291
d27b54ad
JB
2922013-04-29 Joel Brobecker <brobecker@adacore.com>
293
294 * m32r-tdep.c (m32r_write_pc): Delete.
295 (m32r_gdbarch_init): Remove call to set_gdbarch_write_pc.
296 Add call to set_gdbarch_pc_regnum.
297
47d21dc5
PM
2982013-04-29 Pierre Muller <muller@sourceware.org>
299
300 * ./contrib/ari/gdb_ari.sh (editCase rule): Fix spelling error.
301
9056882e
JB
3022013-04-29 Joel Brobecker <brobecker@adacore.com>
303
304 * dwarf2read.c (get_DW_AT_signature_type): Add ARI marker.
305
7ee4732a
YQ
3062013-04-28 Yao Qi <yao@codesourcery.com>
307
308 * solib-dsbt.c (fetch_loadmap): Re-indent.
309 (displacement_from_map, enable_break2): Likewise.
310 (dsbt_relocate_section_addresses): Likewise.
311
2260af53 3122013-04-26 Joel Brobecker <brobecker@adacore.com>
313
314 GDB 7.6 released.
315
ff546935
TT
3162013-04-25 Andreas Kaufmann <Andreas.Kaufmann@synopsys.com>
317
318 PR corefiles/14983:
319 * dwarf2read.c (process_full_comp_unit): Always create a static
320 block.
321
40fb6c5e
HZ
3222013-04-25 Hui Zhu <hui@codesourcery.com>
323
324 * breakpoint.c (build_target_command_list): Change loc->cond_bytecode
325 to loc->cmd_bytecode.
326
74e04d1c
DE
3272013-04-24 Doug Evans <dje@google.com>
328
329 * dwarf2read.c (setup_type_unit_groups): Fix comment.
330
3cf62c1d
KS
3312013-04-22 Keith Seitz <keiths@redhat.com>
332
333 * tracepoint.c (trace_save): Call the writer's start method.
334
bf9e4d0c
MB
3352013-04-24 Muhammad Bilal <mbilal@codesourcery.com>
336
337 PR gdb/10462
338 * cli/cli-decode.c (lookup_command): Show an error if there is no space
339 before argument.
340
5d71132c
TT
3412013-04-23 Tom Tromey <tromey@redhat.com>
342
343 * common/filestuff.c: Check USE_WIN32API before including
344 sys/socket.h.
345 (HAVE_F_GETFD): New define.
346 (mark_cloexec): Check HAVE_F_GETFD.
347 (gdb_open_cloexec): Change 'mode' to unsigned long.
348 (gdb_socketpair_cloexec): Check HAVE_SOCKETPAIR.
349 (gdb_pipe_cloexec): Check HAVE_PIPE.
350 * common/filestuff.h (gdb_open_cloexec): Change 'mode' to unsigned
351 long.
352
a11cfd87
HZ
3532013-04-23 Hui Zhu <hui@codesourcery.com>
354
355 PR gdb/15293
a11cfd87
HZ
356 * breakpoint.c (bpstat_what): Add BPSTAT_WHAT_SINGLE to bp_dprintf.
357
2d9442cc
HZ
3582013-04-23 Hui Zhu <hui@codesourcery.com>
359
360 PR gdb/15165
2d9442cc
HZ
361 * breakpoint.c (dprintf_print_recreate): New.
362 (save_breakpoints): Let it not save dprintf commands.
363 (initialize_breakpoint_ops): Set dprintf_print_recreate.
364
614c279d
TT
3652013-04-22 Tom Tromey <tromey@redhat.com>
366
367 PR gdb/7912:
368 * Makefile.in (SFILES): Add filestuff.c
369 (COMMON_OBS): Add filestuff.o.
370 (filestuff.o): New target.
371 * auto-load.c (auto_load_objfile_script_1): Use
372 gdb_fopen_cloexec.
373 * auxv.c (procfs_xfer_auxv): Use gdb_open_cloexec.
374 * cli/cli-cmds.c (shell_escape): Call close_most_fds.
375 * cli/cli-dump.c (fopen_with_cleanup): Use gdb_fopen_cloexec.
376 * common/agent.c (gdb_connect_sync_socket): Use
377 gdb_socket_cloexec.
378 * common/filestuff.c: New file.
379 * common/filestuff.h: New file.
380 * common/linux-osdata.c (linux_common_core_of_thread)
381 (command_from_pid, commandline_from_pid, print_source_lines)
382 (linux_xfer_osdata_shm, linux_xfer_osdata_sem)
383 (linux_xfer_osdata_msg, linux_xfer_osdata_modules): Use
384 gdb_fopen_cloexec.
385 * common/linux-procfs.c (linux_proc_get_int)
386 (linux_proc_pid_has_state): Use gdb_fopen_cloexec.
387 * config.in, configure: Rebuild.
388 * configure.ac: Don't check for sys/socket.h. Check for
389 fdwalk, pipe2.
390 * corelow.c (core_open): Use gdb_open_cloexec.
391 * dwarf2read.c (write_psymtabs_to_index): Use gdb_fopen_cloexec.
392 * fork-child.c (fork_inferior): Call close_most_fds.
393 * gdb_bfd.c (gdb_bfd_open): Use gdb_open_cloexec.
394 * inf-child.c (inf_child_fileio_readlink): Use gdb_open_cloexec.
395 * linux-nat.c (linux_nat_thread_name, linux_proc_pending_signals):
396 Use gdb_fopen_cloexec.
397 (linux_proc_xfer_partial, linux_proc_xfer_spu): Use
398 gdb_open_cloexec.
399 (linux_async_pipe): Use gdb_pipe_cloexec.
400 * remote-fileio.c (remote_fileio_func_open): Use
401 gdb_open_cloexec.
402 * remote.c (remote_file_put, remote_file_get): Use
403 gdb_fopen_cloexec.
404 * ser-pipe.c (pipe_open): Use gdb_socketpair_cloexec,
405 close_most_fds.
406 * ser-tcp.c (net_open): Use gdb_socket_cloexec.
407 * ser-unix.c (hardwire_open): Use gdb_open_cloexec.
408 * solib.c (solib_find): Use gdb_open_cloexec.
409 * source.c (openp, find_and_open_source): Use gdb_open_cloexec.
410 * tracepoint.c (tfile_start): Use gdb_fopen_cloexec.
411 (tfile_open): Use gdb_open_cloexec.
412 * tui/tui-io.c (tui_initialize_io): Use gdb_pipe_cloexec.
413 * ui-file.c (gdb_fopen): Use gdb_fopen_cloexec.
414 * xml-support.c (xml_fetch_content_from_file): Use
415 gdb_fopen_cloexec.
416 * main.c (captured_main): Call notice_open_fds.
417
5fda2332
EBM
4182013-04-22 Edjunior Machado <emachado@linux.vnet.ibm.com>
419
420 * remote-sim.c (dump_mem): Change the type of 'buf' parameter from
421 'char *' to 'gdb_byte *'.
422 (gdbsim_store_register): Change the type of 'tmp' from 'char' to
423 'gdb_byte'.
424
eb6c553b
YQ
4252013-04-22 Yao Qi <yao@codesourcery.com>
426
427 * infrun.c: Fix typo in comment.
428
9991b207
SDJ
4292013-04-22 Andrew Haley <aph@redhat.com>
430
431 * arm-tdep.c (BranchDest): Cast result as "unsigned long",
432 instead of "long".
433
8b4833e3
YQ
4342013-04-20 Yao Qi <yao@codesourcery.com>
435
436 * ctf.c (ctf_fetch_registers): Change the type of 'regs' from
437 'char *' to 'gdb_byte *'. Cast the return value of
438 'bt_ctf_get_char_array' to 'gdb_byte *'.
439
bd3f3b55
PA
4402013-04-19 Pedro Alves <palves@redhat.com>
441
442 * configure.ac (build_warnings): Replace -Wno-pointer-sign with
443 -Wpointer-sign.
444 * configure: Regenerate.
445
c49e7f76
PA
4462013-04-19 Pedro Alves <palves@redhat.com>
447
448 * ser-tcp.c (net_read_prim): Cast second argument to recv to
449 'void *'.
450
12ff8552
PA
4512013-04-19 Pedro Alves <palves@redhat.com>
452
453 * monitor.c (monitor_write_memory, monitor_write_memory_bytes):
454 Change type of 'myaddr' parameter to gdb_byte pointer.
455 (monitor_write_memory_longlongs): Likewise. Cast 'myaddr' pointer
456 to 'long long' pointer instead of to 'unsigned long long'.
457 (monitor_write_memory_block, monitor_read_memory_single)
458 (monitor_read_memory): Change type of 'myaddr' parameter to
459 gdb_byte pointer.
460
9c37696b
PA
4612013-04-19 Pedro Alves <palves@redhat.com>
462
463 * record.c (validate_history_size): Make parameter 'setting'
464 unsigned.
465
a398505b
PA
4662013-04-19 Pedro Alves <palves@redhat.com>
467
468 * ctf.c (ctf_write_uploaded_tsv, ctf_write_uploaded_tp): Add casts
469 to 'gdb_byte *'.
470
9f8afa72
PA
4712013-04-19 Pedro Alves <palves@redhat.com>
472
473 * cp-valprint.c (cp_print_class_member): Change type of 'fieldno'
474 local to int.
475
c714b426
PA
4762013-04-19 Pedro Alves <palves@redhat.com>
477
478 * ada-lang.c (print_it_exception): Add cast to gdb_byte *.
479 * ada-tasks.c (read_fat_string_value): Likewise.
480
507a579c
PA
4812013-04-19 Pedro Alves <palves@redhat.com>
482
483 * dwarf2-frame.c (execute_cfa_program): Make 'bytes_read' local
484 unsigned. Pass 'tmp' to safe_read_uleb128 instead of the signed
485 'offset', and adjust.
486
f9d83a0b
PA
4872013-04-19 Pedro Alves <palves@redhat.com>
488
489 * dwarf2read.c (dwarf2_get_dwz_file): Add cast to const char *.
490 (read_index_from_section): Add cast to 'char *'.
491
745eb4fd
PA
4922013-04-19 Pedro Alves <palves@redhat.com>
493
494 * xcoffread.c (xcoff_initial_scan): Add cast to 'char *'.
495
db5be46f
PA
4962013-04-19 Pedro Alves <palves@redhat.com>
497
498 * coff-pe-read.c (read_pe_exported_syms): Handle strings as char.
499
0f928d68
PA
5002013-04-19 Pedro Alves <palves@redhat.com>
501
502 * record-full.c (record_full_get_bookmark): Change local 'ret'
503 type to char * and add cast to gdb_byte *.
504 (record_full_goto_bookmark): Handle 'bookmark' argument as a
505 string.
506 * reverse.c (goto_bookmark_command): Add casts to gdb_byte *.
507
89f6d837
PA
5082013-04-19 Pedro Alves <palves@redhat.com>
509
510 * python/py-inferior.c (infpy_write_memory): Add cast to gdb_byte
511 * python/py-prettyprint.c (print_string_repr): Change type of
512 'output' local to char *. Add cast to gdb_byte * in
513 LA_PRINT_STRING call.
514 (print_children): Change type of 'output' local to char *.
515 * python/py-value.c (valpy_string): Add cast to const char * in
516 PyUnicode_Decode call.
517
ce6ec7d8
PA
5182013-04-19 Pedro Alves <palves@redhat.com>
519
520 * remote-mips.c (mips_cksum): Rename 'data' parameter to 'datastr'
521 and change its type to 'const char *'. Adjust.
522 (mips_send_packet): Add cast to 'char *', and remove cast to
523 'unsigned char *'.
524 (mips_receive_packet): Remove cast to 'unsigned char *'.
525 (mips_load_srec): Use bfd_byte.
526 (pmon_makeb64, pmon_zeroset): Make 'chksum' parameter unsigned.
527 (pmon_checkset): Make 'value' parameter unsigned.
528
fda0389f
PA
5292013-04-19 Pedro Alves <palves@redhat.com>
530
531 * common/agent.c (agent_run_command): Add cast to gdb_byte *.
532
bc20a4af
PA
5332013-04-19 Pedro Alves <palves@redhat.com>
534
535 * remote.c (remote_write_bytes_aux, compare_sections_command)
536 (remote_read_qxfer)
537 (remote_search_memory, remote_hostio_pwrite, remote_hostio_pread)
538 (remote_hostio_readlink, remote_bfd_iovec_pread)
539 (remote_set_trace_notes): Use gdb_byte when RSP buffer is used as
540 binary buffer, and char when buffer is used as string.
541 * tracepoint.c (encode_source_string, tfile_write_uploaded_tp)
542 (trace_save, tfile_open, traceframe_walk_blocks)
543 (tfile_fetch_registers): Likewise.
544
c628b528
PA
5452013-04-19 Pedro Alves <palves@redhat.com>
546
547 * ser-base.c (ser_base_write): Change prototype -- take 'void *'
548 buffer and size_t size. Adjust.
549 * ser-base.h (ser_base_write): Adjust.
550 * ser-go32.c (cnts): Change type to size_t.
551 (dos_write): Change prototype -- take 'void *'
552 buffer and size_t size. Adjust.
553 (dos_info): Print elements of 'cnts' as unsigned long.
554 * serial.c (serial_write): Likewise.
555 * serial.h (serial_write): Adjust.
556 (struct serial_ops) <write>: Change prototype -- take 'void *'
557 buffer and size_t size. Adjust.
558
51a5cd90
PA
5592013-04-19 Pedro Alves <palves@redhat.com>
560
561 * c-lang.c (evaluate_subexp_c): Cast result of obstack_base to
562 gdb_byte *.
563 * linux-tdep.c (linux_make_mappings_corefile_notes): Likewise.
564
a9933661
PA
5652013-04-19 Pedro Alves <palves@redhat.com>
566
567 * alpha-tdep.c (alpha_extract_return_value): Use
568 regcache_cooked_read_unsigned to read 'v0'.
569
19afdd07
PA
5702013-04-19 Pedro Alves <palves@redhat.com>
571
572 * xtensa-tdep.c (execute_l32e, execute_s32e): Change type of
573 parameters 'at', 'as' and 'offset' to uint32_t.
574
96b32e50
PA
5752013-04-19 Pedro Alves <palves@redhat.com>
576
577 * aarch64-tdep.c (aarch64_analyze_prologue): Change type of local
578 'is64' to signed 'int'.
579
eb1bd1fb
PA
5802013-04-19 Pedro Alves <palves@redhat.com>
581
582 * s390-tdep.c (is_rs, is_rsy, is_rx, is_rxy): Change type of 'd2'
583 parameter to int *.
584
463920bf
PA
5852013-04-19 Pedro Alves <palves@redhat.com>
586
587 * ppc-linux-tdep.c (ppc_skip_trampoline_code): Change local
588 'insnbuf' buffer type to unsigned int[].
589
70242eb1
PA
5902013-04-19 Pedro Alves <palves@redhat.com>
591
592 * mips-tdep.c (mips_read_pc): Change local 'pc' type to LONGEST.
593
9d1dd0e2
PA
5942013-04-19 Pedro Alves <palves@redhat.com>
595
596 * mep-tdep.c (mep_get_insn): Change 'insn' parameter type to
597 unsigned long *.
598
44096aee
PA
5992013-04-19 Pedro Alves <palves@redhat.com>
600
601 * alpha-tdep.c (heuristic_fence_post): Change type to int.
602 (alpha_heuristic_proc_start): Adjust to check -1 instead of
603 UINT_MAX.
604 * mips-tdep.c (heuristic_fence_post): Change type to int.
605 (heuristic_proc_start): Adjust to check -1 instead of UINT_MAX.
606
e4286e57
PA
6072013-04-19 Pedro Alves <palves@redhat.com>
608
609 * cris-tdep.c (usr_cmd_cris_version): Make unsigned.
610 (struct gdbarch_tdep) <cris_version>: Make unsigned.
611 (cris_spec_reg_applicable, cris_gdbarch_init): Adjust locals.
612
001f13d8
PA
6132013-04-19 Pedro Alves <palves@redhat.com>
614
615 * avr-tdep.c (avr_io_reg_read_command): New local 'bufstr'. Use
616 it to get a string view of the byte buffer.
617 * i386-cygwin-tdep.c (core_process_module_section): Change local 'buf'
618 type to gdb_byte *. Adjust.
619 * linux-tdep.c (linux_info_proc, linux_find_memory_regions_full):
620 Change local to char *.
621 * solib-darwin.c (find_program_interpreter): Change return type to
622 char *. Adjust.
623 (darwin_solib_get_all_image_info_addr_at_init): Adjust.
624 * solib-dsbt.c (enable_break2): Change local 'buf' to char *.
625 * solib-frv.c (enable_break2): Change local 'buf' to char *.
626 * solib-spu.c (spu_current_sos): Add gdb_byte * cast.
627 * solib-svr4.c (find_program_interpreter): Change return type to
628 char *. Adjust.
629 (enable_break): Change local 'interp_name' to char *.
630 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
631 * spu-tdep.c (spu_pseudo_register_read_spu): Add cast to 'char *'.
632 (spu_pseudo_register_write_spu): Use char for string buffer.
633 Adjust.
634 (info_spu_event_command, info_spu_signal_command): Add casts to
635 'char *'.
636
948f8e3d
PA
6372013-04-19 Pedro Alves <palves@redhat.com>
638
639 * aarch64-tdep.c (aarch64_default_breakpoint): Change type to
640 gdb_byte[].
641 (aarch64_breakpoint_from_pc): Change return type to gdb_byte *.
642 * ada-lang.c (ada_value_assign): Use gdb_byte.
643 * alphanbsd-tdep.c (sigtramp_retcode): Change type to gdb_byte[].
644 (alphanbsd_sigtramp_offset): Use gdb_byte.
645 * arm-linux-tdep.c (arm_linux_arm_le_breakpoint)
646 (arm_linux_arm_be_breakpoint, eabi_linux_arm_le_breakpoint)
647 (eabi_linux_arm_be_breakpoint, arm_linux_thumb_be_breakpoint)
648 (arm_linux_thumb_le_breakpoint, arm_linux_thumb2_be_breakpoint)
649 (arm_linux_thumb2_le_breakpoint): Change type to gdb_byte[].
650 * arm-tdep.c (arm_stub_unwind_sniffer)
651 (arm_displaced_init_closure): Use gdb_byte.
652 (arm_default_arm_le_breakpoint, arm_default_arm_be_breakpoint)
653 (arm_default_thumb_le_breakpoint)
654 (arm_default_thumb_be_breakpoint): Change type to gdb_byte[].
655 * arm-tdep.h (struct gdbarch_tdep) <arm_breakpoint,
656 thumb_breakpoint, thumb2_breakpoint>: Change type to gdb_byte *.
657 * arm-wince-tdep.c (arm_wince_le_breakpoint)
658 (arm_wince_thumb_le_breakpoint): Change type to gdb_byte[].
659 * armnbsd-tdep.c (arm_nbsd_arm_le_breakpoint)
660 (arm_nbsd_arm_be_breakpoint, arm_nbsd_thumb_le_breakpoint)
661 (arm_nbsd_thumb_be_breakpoint): Change type to gdb_byte[].
662 * armobsd-tdep.c (arm_obsd_thumb_le_breakpoint)
663 (arm_obsd_thumb_be_breakpoint): Change type to gdb_byte[].
664 * cris-tdep.c (push_stack_item, cris_push_dummy_call)
665 (cris_store_return_value, cris_extract_return_value): Use
666 gdb_byte.
667 (constraint): Change type of parameter to char * from signed
668 char*. Use gdb_byte.
669 * dwarf2loc.c (read_pieced_value, write_pieced_value): Change type
670 of local buffer to gdb_byte *.
671 * dwarf2read.c (read_index_from_section): Use gdb_byte.
672 (create_dwp_hash_table): Change type of locals to gdb_byte *.
673 (add_address_entry): Change type of local buffer to gdb_byte[].
674 * frv-tdep.c (frv_adjust_breakpoint_address, find_func_descr)
675 (frv_push_dummy_call): Use gdb_byte.
676 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code)
677 (hppa_hpux_supply_ss_fpblock, hppa_hpux_supply_ss_wide)
678 (hppa_hpux_supply_save_state): Use gdb_byte.
679 * hppa-tdep.c (hppa32_push_dummy_call)
680 (hppa64_convert_code_addr_to_fptr): Use gdb_byte.
681 * ia64-tdep.c (extract_bit_field, replace_bit_field)
682 (slotN_contents, replace_slotN_contents): Change type of parameter
683 to gdb_byte *.
684 (fetch_instruction, ia64_pseudo_register_write)
685 (ia64_register_to_value, ia64_value_to_register)
686 (ia64_extract_return_value, ia64_store_return_value)
687 (ia64_push_dummy_call): Use gdb_byte.
688 * m32c-tdep.c (m32c_return_value): Remove cast.
689 * m68hc11-tdep.c (m68hc11_pseudo_register_write)
690 (m68hc11_push_dummy_call, m68hc11_store_return_value): Use
691 gdb_byte.
692 * mipsnbsd-tdep.c (mipsnbsd_get_longjmp_target): Use gdb_byte.
693 * mn10300-tdep.c (mn10300_store_return_value)
694 (mn10300_breakpoint_from_pc, mn10300_push_dummy_call): Use
695 gdb_byte.
696 * moxie-tdep.c (moxie_process_readu): Use gdb_byte.
697 (moxie_process_record): Remove casts.
698 * ppc-ravenscar-thread.c (supply_register_at_address)
699 (ppc_ravenscar_generic_store_registers): Use gdb_byte.
700 * ravenscar-thread.c (get_running_thread_id): Use gdb_byte.
701 * remote-m32r-sdi.c (m32r_fetch_register): Use gdb_byte.
702 * remote-mips.c (mips_xfer_memory): Use gdb_byte.
703 * remote.c (compare_sections_command): Use gdb_byte.
704 * score-tdep.c (score7_free_memblock): Change type of parameter to
705 gdb_byte *.
706 * sh-tdep.c (sh_justify_value_in_reg): Change return type to
707 gdb_byte *. Use gdb_byte.
708 (sh_push_dummy_call_fpu): Use gdb_byte.
709 (sh_extract_return_value_nofpu, sh_extract_return_value_fpu)
710 (sh_store_return_value_nofpu, sh_store_return_value_fpu)
711 (sh_register_convert_to_virtual, sh_register_convert_to_raw):
712 Change parameter type to 'gdb_byte *'. Use gdb_byte.
713 (sh_pseudo_register_read, sh_pseudo_register_write): Use gdb_byte.
714 * sh64-tdep.c (sh64_push_dummy_call): Use gdb_byte.
715 (sh64_store_return_value, sh64_register_convert_to_virtual):
716 Change parameter type to 'gdb_byte *'. Use gdb_byte.
717 (sh64_pseudo_register_write): Use gdb_byte.
718 * solib-darwin.c (darwin_current_sos): Add casts to 'gdb_byte *'.
719 * solib-irix.c (fetch_lm_info): Likewise. Use gdb_byte for byte
720 buffer.
721 (irix_current_sos): Use gdb_byte.
722 * solib-som.c (som_current_sos): Use gdb_byte.
723 * sparc-ravenscar-thread.c (supply_register_at_address)
724 (sparc_ravenscar_generic_store_registers): Use gdb_byte.
725 * spu-multiarch.c (spu_xfer_partial): Add cast to 'char *'.
726 * spu-tdep.c (spu_get_overlay_table): Use gdb_byte.
727 * tic6x-tdep.c (tic6x_breakpoint_from_pc): Change return type to
728 'gdb_byte *'.
729 * tic6x-tdep.h (struct gdbarch_tdep) <breakpoint>: Change type to
730 'gdb_byte *'.
731 * tracepoint.c (tfile_fetch_registers): Use gdb_byte.
732 * xstormy16-tdep.c (xstormy16_extract_return_value)
733 (xstormy16_store_return_value): Change parameter type to
734 'gdb_byte *'. Adjust.
735 (xstormy16_push_dummy_call): Use gdb_byte.
736 * xtensa-tdep.c (xtensa_scan_prologue, call0_ret)
737 (call0_analyze_prologue, execute_code): Use gdb_byte.
738
433730c9
PA
7392013-04-19 Vladimir Kargov <kargov@gmail.com>
740 Pedro Alves <palves@redhat.com>
741
742 * i387-tdep.c (i387_print_float_info): Use gdb_byte for pointer to
743 value contents.
744
ac9ec31b
DE
7452013-04-17 Doug Evans <dje@google.com>
746
747 * dwarf2read.c (struct signatured_type): New member type.
748 (struct attribute): Replace member signatured_type with signature.
749 (DW_SIGNATURE): Replaces DW_SIGNATURE_TYPE.
750 (read_call_site_scope): Call follow_die_ref instead of
751 follow_die_ref_or_sig.
752 (read_structure_type): Rewrite handling of signatured types.
753 (read_enumeration_type): Ditto.
754 (read_attribute_value): Update.
755 (build_error_marker_type): New function.
756 (lookup_die_type): Add assert. Rewrite handling of signatured types.
757 Don't call error for bad types, just build an error marker type.
758 (dump_die_shallow): Update.
759 (follow_die_sig_1): Renamed from follow_die_sig.
760 Don't call error for bad types, instead return NULL.
761 (follow_die_sig): New function.
762 (get_signatured_type, get_DW_AT_signature_type): New functions.
763
e546e8bb
YZ
7642013-04-17 Yufeng Zhang <yufeng.zhang@arm.com>
765
766 * aarch64-tdep.c (aarch64_write_pc): Removed.
543cdd95
JB
767 (aarch64_gdbarch_init): Remove set_gdbarch_write_pc of the above
768 function.
e546e8bb 769
ab116149
YQ
7702013-04-17 Yao Qi <yao@codesourcery.com>
771
772 * top.c (print_gdb_configuration): Print configure-time
773 parameter on using libbabeltrace or not.
774
488a42b8
PA
7752013-04-16 Pedro Alves <palves@redhat.com>
776
777 * copyright.py (EXCLUDE_LIST): Add gdb/common/glibc_thread_db.h.
778
f5fb825b
PA
7792013-04-16 Pedro Alves <palves@redhat.com>
780
85d494ea 781 * common/glibc_thread_db.h: Update from upstream glibc
f5fb825b
PA
782 (git 568035b7874a099087b77f7bba3e36a1173787b0).
783
e1154999
PA
7842013-04-16 Pedro Alves <palves@redhat.com>
785
786 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: Factor out to ...
787 * common/glibc_thread_db.h: ... this new file ...
788 * common/gdb_thread_db.h [!HAVE_THREAD_DB_H]: ... and include it.
789
e3b50a7f
PA
7902013-04-16 Will Newton <will.newton@gmail.com>
791 Pedro Alves <palves@redhat.com>
792
793 PR build/11881
794
795 * common/gdb_thread_db.h (LIBTHREAD_DB_SO)
796 (LIBTHREAD_DB_SEARCH_PATH): Move outside of #ifdef
797 HAVE_THREAD_DB_H.
798
1c2e4450
PA
7992013-04-16 Pedro Alves <palves@redhat.com>
800 Eli Zaretskii <eliz@gnu.org>
801
802 * NEWS: Mention "set foo unlimited".
803
4031ecc5
DE
8042013-04-15 Doug Evans <dje@google.com>
805
19c3d4c9
DE
806 * dwarf2read.c (struct dwo_file): Replace member "cus" with "cu".
807 (struct create_dwo_cu_data): Renamed from create_dwo_info_table_data.
808 (create_dwo_cu_reader): Renamed from
809 create_dwo_debug_info_hash_table_reader.
810 (create_dwo_cu): Renamed from create_dwo_debug_info_hash_table.
811 Remove support for multiple CUs in a DWO file.
812 (open_and_init_dwo_file, lookup_dwo_cutu): Update.
813
4031ecc5
DE
814 * dwarf2read.c (create_debug_types_hash_table): Use hex_string
815 instead of phex.
816 (lookup_dwo_unit, create_dwo_debug_info_hash_table_reader): Ditto.
817 (create_dwo_in_dwp): Ditto.
818
b340913d
TT
8192013-04-15 Tom Tromey <tromey@redhat.com>
820
821 * NEWS: Move recent entries into "since 7.6" section.
822
cc16e6c9
TT
8232013-04-15 Tom Tromey <tromey@redhat.com>
824
825 PR c++/13588:
826 * NEWS: Update.
827 * break-catch-throw.c (struct exception_catchpoint)
828 <exception_rx, pattern>: New fields.
829 (fetch_probe_arguments, dtor_exception_catchpoint)
830 (check_status_exception_catchpoint)
831 (print_one_detail_exception_catchpoint): New functions.
832 (handle_gnu_v3_exceptions): Add "except_rx" argument.
833 Compile regular expression if needed.
834 (extract_exception_regexp): New function.
835 (catch_exception_command_1): Use extract_exception_regexp.
836 (compute_exception): Use fetch_probe_arguments.
837 (initialize_throw_catchpoint_ops): Set dtor, print_one_detail,
838 and check_status fields.
839 * cp-abi.c (cplus_typename_from_type_info): New function.
840 * cp-abi.h (cplus_typename_from_type_info): Declare.
841 (struct cp_abi_ops) <get_typename_from_type_info>: New field.
842 * gdb_regex.h (compile_rx_or_error): Declare.
843 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info): Update
844 comment.
845 (init_gnuv3_ops): Set get_type_from_type_info field.
846 * probe.c (compile_rx_or_error): Move...
847 * utils.c (compile_rx_or_error): ... here.
848
72f1fe8a
TT
8492013-04-15 Tom Tromey <tromey@redhat.com>
850
851 PR c++/15176:
852 * NEWS: Update.
853 * break-catch-throw.c (compute_exception): New function.
854 (exception_funcs): New global.
855 (_initialize_break_catch_throw): Create $_exception.
856 * cp-abi.c (cplus_type_from_type_info): New function.
857 * cp-abi.h (cplus_type_from_type_info): Declare.
858 (struct cp_abi_ops) <get_type_from_type_info>: New field.
859 * gnu-v3-abi.c (gnuv3_get_typename_from_type_info)
860 (gnuv3_get_type_from_type_info): New functions.
861 (init_gnuv3_ops): Set get_type_from_type_info ABI field.
862
fc4746a2
TT
8632013-04-15 Tom Tromey <tromey@redhat.com>
864
865 * break-catch-throw.c (struct exception_names): New.
866 (exception_functions): Change type.
867 (re_set_exception_catchpoint): Look for SDT probes.
868
15a73f56
TT
8692013-04-15 Tom Tromey <tromey@redhat.com>
870
871 PR c++/10119:
872 * break-catch-throw.c (exception_functions): New global.
873 (gnu_v3_exception_catchpoint_ops): Move earlier.
874 (struct exception_catchpoint): New.
875 (classify_exception_breakpoint): Rewrite.
876 (re_set_exception_catchpoint): New function.
877 (handle_gnu_v3_exceptions): Return void. Use init_catchpoint.
878 Allocate a struct exception_catchpoint.
879 (catch_exception_command_1): Update.
880 (initialize_throw_catchpoint_ops): Set 're_set' method.
881
916703c0
TT
8822013-04-15 Tom Tromey <tromey@redhat.com>
883
884 * Makefile.in (SFILES): Add break-catch-throw.c
885 (COMMON_OBS): Add break-catch-throw.o.
886 * break-catch-throw.c: New file.
887 * breakpoint.c: Move exception-catching code to new file.
888 (ep_parse_optional_if_clause): No longer static.
889 * breakpoint.h (ep_parse_optional_if_clause): Declare.
890
6e72ca20
TT
8912013-04-15 Tom Tromey <tromey@redhat.com>
892
893 PR c++/9065:
894 * NEWS: Update.
895 * breakpoint.c (watchpoint_exp_is_const): Add OP_TYPEID.
896 * c-exp.y (TYPEID): New token.
897 (exp): Add new TYPEID productions.
898 (ident_tokens): Add "typeid".
899 * cp-abi.c (cplus_typeid, cplus_typeid_type): New functions.
900 * cp-abi.h (cplus_typeid, cplus_typeid_type): Declare.
901 (struct cp_abi_ops) <get_typeid, get_typeid_type>: New fields.
902 * eval.c (evaluate_subexp_standard) <OP_TYPEID>: New case.
903 * expprint.c (dump_subexp_body_standard) <OP_TYPEID>: New
904 case.
905 * gnu-v3-abi.c (std_type_info_gdbarch_data): New global.
906 (build_std_type_info_type, gnuv3_get_typeid_type)
907 (gnuv3_get_typeid): New functions.
908 (init_gnuv3_ops): Initialize std_type_info_gdbarch_data. Set
909 new fields on ABI object.
910 * parse.c (operator_length_standard) <OP_TYPEID>: New case.
911 * std-operator.def (OP_TYPEID): New.
912
715c6909
TT
9132013-04-15 Tom Tromey <tromey@redhat.com>
914
915 * elfread.c (elf_symtab_read): Install versioned symbol under
916 unversioned name as well.
917
8de20a37
TT
9182013-04-15 Tom Tromey <tromey@redhat.com>
919
920 PR c++/11990:
921 * c-lang.c (cplus_language_defn): Use gdb_demangle.
922 * c-typeprint.c (c_type_print_base): Use gdb_demangle.
923 * cp-support.c (mangled_name_to_comp): Use gdb_demangle.
924 (gdb_demangle): New function.
925 * cp-support.h (gdb_demangle): Declare.
926 * dwarf2read.c (dwarf2_physname, fixup_partial_die)
927 (dwarf2_name): Use gdb_demangle.
928 * gdbtypes.c (check_stub_method): Use gdb_demangle.
929 * gnu-v3-abi.c (gnuv3_rtti_type): Strip @plt and version
930 suffixes from name.
931 (gnuv3_print_method_ptr): Use gdb_demangle.
932 * jv-lang.c (java_demangle): Use gdb_demangle.
933 * jv-typeprint.c (java_type_print_base): Use gdb_demangle.
934 * language.c (unk_lang_demangle): Use gdb_demangle.
935 * symtab.c (symbol_find_demangled_name)
936 (demangle_for_lookup): Use gdb_demangle.
937
591f19e8
TT
9382013-04-15 Tom Tromey <tromey@redhat.com>
939
940 PR c++/12824:
941 * NEWS: Update.
942 * breakpoint.c (enum exception_event_kind) <EX_EVENT_RETHROW>:
943 New constant.
944 (classify_exception_breakpoint): New function.
945 (print_it_exception_catchpoint, print_one_exception_catchpoint)
946 (print_mention_exception_catchpoint)
947 (print_recreate_exception_catchpoint, handle_gnu_v3_exceptions)
948 (catch_exception_command_1): Handle "rethrow" catchpoint.
949 (catch_rethrow_command): New function.
950 (_initialize_breakpoint): Add "catch rethrow" command.
951
4d40cad2
PM
9522013-04-15 Pierre Muller <muller@sourceware.org>
953
954 * contrib/ari/gdb_ari.sh (write_pc rule): Do not consider
955 set_gdbarch_write_pc as deprecated anymore.
956
30bcb456
JB
9572013-04-15 Joel Brobecker <brobecker@adacore.com>
958
959 * spu-tdep.c (spu_write_pc): Add empty line after local variable
960 declarations.
961
da9160e4
YQ
9622013-04-13 Yao Qi <yao@codesourcery.com>
963
964 * ctf.c (_initialize_ctf): Include "completer.h".
965 Call add_target_with_completer instead of add_target.
966
39ed5604
JK
9672013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
968
969 Fix GDB regression related to PR binutils/14813.
970 * jit.c (mem_bfd_iovec_close): Return 0 for success.
971 * minidebug.c (lzma_close): Add return value comment.
972 * remote.c (remote_bfd_iovec_close): Return 0 for success.
973 * solib-spu.c (spu_bfd_iovec_close): Likewise.
974 * spu-linux-nat.c (spu_bfd_iovec_close): Likewise.
975
9762013-04-12 Jan Kratochvil <jan.kratochvil@redhat.com>
49369217
JK
977
978 * config.in: Regenerate.
979
d521ce57
TT
9802013-04-12 Tom Tromey <tromey@redhat.com>
981
982 * dwarf2-frame.c (struct comp_unit) <dwarf_frame_buffer>: Now
983 const.
984 * dwarf2read.c (struct dwarf2_section_info) <buffer>: Now const.
985 (struct die_reader_specs) <buffer>: Likewise.
986 (die_reader_func_ftype): Make 'info_ptr' const.
987 (struct line_header) <include_dirs, statement_program_start,
988 statement_program_end>: Now const.
989 (struct file_entry) <name>: Likewise.
990 (struct partial_die_info) <sibling>: Likewise.
991 (struct dwarf_block) <data>: Likewise.
992 (dwarf2_read_section): Remove cast.
993 (dwarf2_get_section_info): Make 'bufp' const.
994 (read_index_from_section): Constify.
995 (dw2_get_file_names_reader): Make 'info_ptr' const.
996 (dw2_get_primary_filename_reader): Likewise.
997 (read_comp_unit_head): Make 'info_ptr' and return type const.
998 (read_and_check_comp_unit_head, read_and_check_type_unit_head):
999 Likewise.
1000 (read_abbrev_offset): Constify.
1001 (dwarf2_create_include_psymtab): Make 'name' const.
1002 (create_debug_types_hash_table): Update.
1003 (read_cutu_die_from_dwo): Make 'result_info_ptr' const.
1004 (init_cutu_and_read_dies, init_cutu_and_read_dies_no_follow):
1005 Constify.
1006 (process_psymtab_comp_unit_reader, build_type_psymtabs_reader)
1007 (load_partial_comp_unit_reader): Make 'info_ptr' const.
1008 (read_comp_units_from_section): Constify.
1009 (peek_abbrev_code, peek_die_abbrev, skip_children, skip_one_die)
1010 (locate_pdi_sibling, load_full_comp_unit_reader): Make 'info_ptr'
1011 const.
1012 (dwarf2_compute_name, setup_type_unit_groups): Constify.
1013 (create_dwo_debug_info_hash_table): Make 'info_ptr' const.
1014 (create_dwp_hash_table, dwarf2_ranges_read)
1015 (dwarf2_record_block_ranges): Constify.
1016 (read_die_and_children, read_die_and_siblings_1)
1017 (read_die_and_siblings): Make 'info_ptr' and 'new_info_ptr'
1018 const.
1019 (read_full_die_1, read_full_die): Make 'info_ptr' const.
1020 (abbrev_table_read_table): Constify.
1021 (load_partial_dies): Make 'info_ptr' const.
1022 (read_partial_die, read_attribute_value, read_attribute): Make
1023 'info_ptr' and return type const.
1024 (read_address, read_initial_length)
1025 (read_checked_initial_length_and_offset, read_offset)
1026 (read_offset_1, read_n_bytes, read_direct_string): Make 'buf'
1027 const.
1028 (read_direct_string): Make 'buf' and return type const.
1029 (read_indirect_string_at_offset, read_indirect_string_from_dwz)
1030 (read_indirect_string): Make return type const.
1031 (read_unsigned_leb128, read_signed_leb128): Make 'buf' const.
1032 (read_addr_index_from_leb128, dwarf2_read_addr_index_reader): Make
1033 'info_ptr' const.
1034 (read_str_index): Make return type const.
1035 (add_include_dir): Make 'include_dir' const.
1036 (add_file_name): Make 'name' const.
1037 (dwarf_decode_line_header): Constify.
1038 (psymtab_include_file_name): Make return type const.
1039 (dwarf_decode_lines_1, dwarf_decode_lines): Constify.
1040 (dwarf2_start_subfile): Make 'filename' const.
1041 (dwarf2_const_value_attr): Make 'bytes' const.
1042 (read_signatured_type_reader): Make 'info_ptr' const.
1043 (decode_locdesc): Constify.
1044 (skip_form_bytes): Make 'bytes', 'buffer_end', and return type
1045 const.
1046 (skip_unknown_opcode): Make 'opcode_definitions', 'mac_ptr',
1047 'mac_end', and return type const.
1048 (dwarf_parse_macro_header): Make 'mac_ptr' and return type const.
1049 (dwarf_decode_macro_bytes): Make 'mac_ptr', 'mac_end', and return
1050 type const.
1051 (per_cu_header_read_in): Constify.
1052 * symfile.h (dwarf2_get_section_info): Update.
1053
d47a1bc1
TT
10542013-04-12 Tom Tromey <tromey@redhat.com>
1055
1056 * symtab.h (struct general_symbol_info) <value.bytes>: Make const.
1057
6eaaf48b
EZ
10582013-04-12 Eli Zaretskii <eliz@gnu.org>
1059
fc4c25bf 1060 * NEWS: Mention "show configuration", --configuration.
6eaaf48b
EZ
1061 * top.c (print_gdb_configuration): New function, displays the
1062 details about GDB configure-time parameters.
1063 (print_gdb_version): Mention "show configuration".
6eaaf48b
EZ
1064 * cli/cli-cmds.c (show_configuration): New function.
1065 (_initialize_cli_cmds): Add the "show configuration" command.
6eaaf48b
EZ
1066 * main.c (captured_main) <print_configuration>: New static var.
1067 <long_options>: Use it.
1068 If --configuration was given, call print_gdb_configuration.
1069
b292c783
JK
10702013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1071 Pedro Alves <palves@redhat.com>
1072
1073 * Makefile.in (HAVE_NATIVE_GCORE_TARGET): New.
1074 (generated_files): Add gcore.
1075 (install-only, uninstall): Add gcore if HAVE_NATIVE_GCORE_TARGET or
1076 HAVE_NATIVE_GCORE_HOST.
1077 (gcore): New.
1078 * NEWS (Changes since GDB 7.6): Mention newly installed gcore.
1079 * config/alpha/alpha-osf3.mh, config/i386/fbsd.mh,
1080 config/i386/fbsd64.mh, config/i386/i386gnu.mh, config/i386/i386sol2.mh,
1081 config/i386/sol2-64.mh, config/mips/irix5.mh, config/mips/irix6.mh,
1082 config/powerpc/fbsd.mh, config/sparc/fbsd.mh, config/sparc/sol2.mh:
1083 Add HAVE_NATIVE_GCORE_HOST.
1084 * configure: Regenerate.
1085 * configure.ac (HAVE_NATIVE_GCORE_TARGET): New, set it, AC_SUBST it.
1086 New AC_SUBST fir GDB_TRANSFORM_NAME and GCORE_TRANSFORM_NAME. New
1087 AC_CONFIG_FILES for gcore.
1088 * configure.tgt: Add gdb_have_gcore to the initial comment. Set
1089 gdb_have_gcore.
1090 * gdb_gcore.sh: Rename to ...
1091 * gcore.in: ... here. Remove gcore.sh comment. Use GDB_TRANSFORM_NAME
1092 and GCORE_TRANSFORM_NAME substitutions.
1093
c96b3c4f
JK
1094 Fix parsing tabs in ${gdb_target_obs}.
1095 * configure.tgt (gdb_have_gcore): Replace case with for and if.
1096
d6cb50a2
JK
10972013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1098
1099 * remote.c (unpush_and_perror): Add output message final dot.
1100
cf2cb5ec
YQ
11012013-04-11 Yao Qi <yao@codesourcery.com>
1102
1103 * tracepoint.c (tfile_interp_line): Fit parameters line and
1104 utpp in one line.
1105
07293be4
JB
11062013-04-10 Joel Brobecker <brobecker@adacore.com>
1107
1108 * solib.c (solib_map_sections): Remove code overwriting
1109 SO->SO_NAME with the bfd's filename.
1110
f81d1120
PA
11112013-04-10 Pedro Alves <palves@redhat.com>
1112
1113 * cli/cli-decode.c (integer_unlimited_completer): New function.
1114 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
1115 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
1116 completer.
1117 * cli/cli-setshow.c: Include "cli/cli-utils.h".
1118 (is_unlimited_literal): New function.
1119 (do_set_command): Handle literal "unlimited" arguments.
1120 * frame.c (_initialize_frame) <set backtrace limit>: Document
1121 "unlimited".
1122 * printcmd.c (_initialize_printcmd) <set print
1123 max-symbolic-offset>: Add help text.
1124 * record-full.c (_initialize_record_full) <set record full
1125 insn-number-max>: Likewise.
1126 * record.c (_initialize_record) <set record
1127 instruction-history-size, set record function-call-history-size>:
1128 Add help text.
1129 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
1130 help text.
1131 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
1132 Likewise.
1133 * source.c (_initialize_source) <set listsize>: Add help text.
1134 * utils.c (initialize_utils) <set height, set width>: Likewise.
1135 <set pagination>: Mention "set height unlimited".
1136 * valprint.c (_initialize_valprint) <set print elements, set print
1137 repeats>: Document "unlimited".
1138
2f9d54cf
PA
11392013-04-10 Pedro Alves <palves@redhat.com>
1140
1141 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
1142 instead of disconnect_tracing.
1143 * infcmd.c (detach_command, disconnect_command): Call
1144 query_if_trace_running. Adjust.
1145 * top.c: Include "tracepoint.h".
1146 (quit_target): Delete. Contents moved ...
1147 (quit_force): ... here. Wrap each stage of teardown in
1148 TRY_CATCH. Call disconnect_tracing before detaching.
1149
393fd4c3
YQ
11502013-04-10 Hui Zhu <hui@codesourcery.com>
1151 Yao Qi <yao@codesourcery.com>
1152
1153 * configure.ac: Check libbabeltrace is installed.
1154 * config.in: Regenerate.
1155 * configure: Regenerate.
1156 * Makefile.in (LIBBABELTRACE): New.
1157 (CLIBS): Add LIBBABELTRACE.
1158 * ctf.c: Include "exec.h".
1159 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
1160 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
1161 (ctf_save_metadata_header): Define new type aliases in
1162 metadata.
1163 (ctf_write_header): Define event type "tsv_def" and "tp_def"
1164 in metadata. Start a new faked packet for trace status.
1165 (ctf_write_status): Write trace status to CTF.
1166 (ctf_write_uploaded_tsv): Write TSV to CTF.
1167 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
1168 (ctf_write_definition_end): End the faked packet.
1169
1170 (ctx, ctf_iter, trace_dirname): New.
1171 (start_pos): New variable.
1172 (ctf_destroy, ctf_open_dir, ctf_open): New.
1173 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
1174 macros.
1175 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
1176 (ctf_fetch_registers, ctf_xfer_partial): New.
1177 (ctf_get_trace_state_variable_value): New.
1178 (ctf_get_tpnum_from_frame_event): New.
1179 (ctf_get_traceframe_address): New.
1180 (ctf_trace_find, ctf_has_stack): New.
1181 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
1182 (ctf_get_trace_status, ctf_read_status): New.
1183 (_initialize_ctf): New.
1184 * tracepoint.c (get_tracepoint_number): New
1185 (get_uploaded_tsv): Remove 'static'.
5f8e0b8f 1186 (struct traceframe_info, trace_regblock_size): Move it to ...
393fd4c3
YQ
1187 * tracepoint.h: ... here.
1188 (get_tracepoint_number): Declare it.
1189 (get_uploaded_tsv): Declare it.
1190
1191 * NEWS: Mention new configure option.
1192
5c2b4418
HZ
11932013-04-10 Pedro Alves <palves@redhat.com>
1194 Hui Zhu <hui@codesourcery.com>
1195
1196 * breakpoint.c (dprintf_re_set): New.
1197 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
1198 to dprintf_re_set.
1199
a5c66735
JB
12002013-04-09 Joel Brobecker <brobecker@adacore.com>
1201
1202 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
1203 Remove solib-svr4.o from the list.
1204
9e77999c
JB
12052013-04-09 Joel Brobecker <brobecker@adacore.com>
1206
1207 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
1208 Use gdb_assert_not_reached instead of invalid boolean expression.
1209
1927e618
PA
12102013-04-09 Pedro Alves <palves@redhat.com>
1211
1212 * remote.c (unpush_and_perror): New function.
1213 (readchar, remote_serial_write): Use it.
1214
10782d74
MM
12152013-04-09 Markus Metzger <markus.t.metzger@intel.com>
1216
1217 * NEWS: Mention new btrace RSP packets.
1218
4c8429ef
TT
12192013-04-08 Tom Tromey <tromey@redhat.com>
1220
1221 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
1222 long.
1223
8625fc1b
TT
12242013-04-08 Tom Tromey <tromey@redhat.com>
1225
1226 * maint.c (print_bfd_section_info): Print the section index.
1227 * symmisc.c (dump_msymbols): Print the section index.
1228
e27d198c
TT
12292013-04-08 Tom Tromey <tromey@redhat.com>
1230
1231 PR symtab/8424:
1232 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
1233 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
1234 * breakpoint.c (resolve_sal_pc): Update.
1235 * elfread.c (elf_gnu_ifunc_record_cache): Update.
1236 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
1237 (minsym_lookup_iterator_cb): Use it.
1238 (default_read_var_value): Update.
1239 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
1240 Update.
1241 * infcmd.c (jump_command): Update.
1242 * linespec.c (minsym_found): Update.
1243 * maint.c (maintenance_translate_address): Update.
1244 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
1245 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
1246 * parse.c (write_exp_msymbol): Update.
1247 * printcmd.c (address_info): Update.
1248 * psymtab.c (find_pc_sect_psymbol): Update.
1249 (fixup_psymbol_section): Check SYMBOL_SECTION, not
1250 SYMBOL_OBJ_SECTION.
1251 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
1252 Don't initialize SYMBOL_OBJ_SECTION.
1253 * spu-tdep.c (spu_catch_start): Update.
1254 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
1255 * symmisc.c (dump_msymbols, print_symbol): Update.
1256 * symtab.c (fixup_section): Don't set 'obj_section'. Change
1257 how fallback section is computed.
1258 (fixup_symbol_section): Update.
1259 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
1260 Update.
1261 (allocate_symbol, initialize_symbol, allocate_template_symbol):
1262 Initialize SYMBOL_SECTION.
1263 * symtab.h (struct general_symbol_info) <section>: Update comment.
1264 <obj_section>: Remove.
1265 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
1266 (SYMBOL_OBJFILE): New macro.
1267
e6dc44a8
TT
12682013-04-08 Tom Tromey <tromey@redhat.com>
1269
1270 * coffread.c (record_minimal_symbol): Update.
1271 * dbxread.c (record_minimal_symbol): Update.
1272 * elfread.c (record_minimal_symbol): Update.
1273 * machoread.c (macho_symtab_add_minsym): Update.
1274 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
1275 Update.
1276 * minsyms.c (prim_record_minimal_symbol): Update.
1277 (prim_record_minimal_symbol_full): Remove 'bfd_section'
1278 argument.
1279 (prim_record_minimal_symbol_and_info): Likewise.
1280 * minsyms.h (prim_record_minimal_symbol_full)
1281 (prim_record_minimal_symbol_and_info): Update.
1282 * symtab.c (allocate_symbol, initialize_symbol)
1283 (allocate_template_symbol): Initialize SYMBOL_SECTION.
1284 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
1285 Update.
1286
36192a8d
TT
12872013-04-08 Tom Tromey <tromey@redhat.com>
1288
1289 PR symtab/8423:
1290 * solib-som.c (som_solib_section_offsets): Use BFD section
1291 indices. Set offsets for all sections.
1292 * somread.c (som_symtab_read): Compute BFD section for
1293 symbol. Use prim_record_minimal_symbol_and_info.
1294 (som_symfile_read): Fix comment.
1295 (struct find_section_offset_arg): New.
1296 (find_section_offset, set_section_index): New functions.
1297 (som_symfile_offsets): Use set_section_index to compute
1298 section indices.
1299
65cf3563
TT
13002013-04-08 Tom Tromey <tromey@redhat.com>
1301
1302 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
1303 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
1304 gdb_bfd_section_index.
1305 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
1306 New functions.
1307 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
1308 Declare.
1309 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
1310 Update.
1311 * objfiles.c (add_to_objfile_sections_full): New function.
1312 (add_to_objfile_sections): Use it.
1313 (build_section_table): Rewrite.
1314 (objfile_relocate1): Use gdb_bfd_section_index. Update.
1315 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
1316 (struct objfile) <sections>: Update comment.
1317 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
1318 is NULL.
1319 (ALL_OBJSECTIONS): Use it.
1320 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
1321 * solib-frv.c (frv_relocate_main_executable): Update.
1322 * solib-target.c (solib_target_relocate_section_addresses):
1323 Use gdb_bfd_section_index.
1324 * symfile.c (build_section_addr_info_from_section_table):
1325 Use gdb_bfd_section_index.
1326 (build_section_addr_info_from_bfd, place_section): Likewise.
1327 * symtab.c (fixup_section): Update.
1328 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
1329
7cbd4a93
TT
13302013-04-08 Tom Tromey <tromey@redhat.com>
1331
1332 * minsyms.h (struct bound_minimal_symbol): New.
1333 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
1334 Remove objfile argument.
1335 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
1336 Return bound_minimal_symbol.
1337 * minsyms.c (lookup_minimal_symbol_by_pc_1)
1338 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
1339 Return bound_minimal_symbol.
1340 (in_gnu_ifunc_stub): Update.
1341 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
1342 Remove 'objfile_p' argument.
1343 (lookup_solib_trampoline_symbol_by_pc): Update.
1344 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
1345 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
1346 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
1347 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
1348 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
1349 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
1350 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
1351 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
1352 stack.c, symtab.c, tui/tui-disasm.c: Update.
1353
f85f34ed
TT
13542013-04-08 Tom Tromey <tromey@redhat.com>
1355
1356 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
1357 Use symbol's obstack, not an objfile.
1358 * coffread.c (process_coff_symbol): Update.
1359 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
1360 * jv-lang.c (add_class_symbol): Update.
1361 * mdebugread.c (new_symbol): Update.
1362 * minsyms.c (prim_record_minimal_symbol_full)
1363 (terminate_minimal_symbol_table): Update.
1364 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
1365 * stabsread.c (define_symbol, read_enum_type): Update.
1366 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
1367 Handle Ada specially.
1368 (symbol_set_language): Add 'obstack' argument.
1369 (symbol_set_names): Update.
1370 (symbol_natural_name, symbol_demangled_name): Always use
1371 ada_decode_symbol.
1372 * symtab.h (struct general_symbol_info)
1373 <language_specific::obstack>: New field.
1374 <ada_mangled>: New field.
1375 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
1376 (symbol_set_language): Update.
1377
ccde22c0
TT
13782013-04-08 Tom Tromey <tromey@redhat.com>
1379
1380 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
1381 Take an obstack, not an objfile.
1382 (symbol_set_names): Update.
1383 * symtab.h (symbol_set_demangled_name): Update.
1384
e623cf5d
TT
13852013-04-08 Tom Tromey <tromey@redhat.com>
1386
1387 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
1388 allocate_symbol.
1389 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
1390 (read_func_scope): Call allocate_template_symbol.
1391 (new_symbol_full): Call allocate_symbol.
1392 * jit.c (finalize_symtab): Call allocate_symbol.
1393 * jv-lang.c (add_class_symbol): Call allocate_symbol.
1394 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
1395 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
1396 (common_block_end): Call allocate_symbol.
1397 * symtab.c (allocate_symbol, initialize_symbol)
1398 (allocate_template_symbol): New functions.
1399 * symtab.c (allocate_symbol, initialize_symbol)
1400 (allocate_template_symbol): Declare.
1401 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
1402
f6de8ec2
PA
14032013-04-08 Pedro Alves <palves@redhat.com>
1404 Keith Seitz <keiths@redhat.com>
1405
1406 * breakpoint.c (create_breakpoint): Rename
1407 "parse_condition_and_thread" parameter to "parse_arg". Update
1408 describing comment. If !PARSE_ARG, then error out if ARG is not
1409 the empty string after extracting the location.
1410 * breakpoint.h (create_breakpoint): Rename
1411 "parse_condition_and_thread" parameter to "parse_arg".
1412
f65ce5fb
AR
14132013-04-08 Aleksandar Ristovski <aristovski@qnx.com
1414
1415 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
1416
cc5925ad
YQ
14172013-04-07 Yao Qi <yao@codesourcery.com>
1418
1419 * remote.c (remote_trace_find): Change type of parameters 'addr1'
1420 and 'addr2' to CORE_ADDR.
1421 * target.c (update_current_target): Update.
1422 * target.h (struct target_ops) <to_trace_find>: Change parameter
1423 type to CORE_ADDR.
1424 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
1425 'addr2' to CORE_ADDR.
1426 (tfile_trace_find): Likewise.
1427 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
1428 Change local variable 'addr' to type CORE_ADDR.
1429 * tracepoint.h (tfind_1): Update declaration.
1430
d9ac0664
EZ
14312013-04-06 Eli Zaretskii <eliz@gnu.org>
1432
1433 * windows-nat.c (windows_get_absolute_argv0): Move from here...
1434 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
1435 Include main.h.
1436
1437 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
1438 here...
1439 * main.h (windows_get_absolute_argv0): ...to here.
1440
02142a6c
DE
14412013-04-05 Doug Evans <dje@google.com>
1442
1443 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
1444 (read_cutu_die_from_dwo): Add comments.
1445 (read_structure_type): Update comment.
1446 (read_enumeration_type, read_namespace_type): Update comment.
1447 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
1448
43662968
JK
14492013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1450
1451 Convert man pages to texinfo, new gdbinit.5 texinfo page.
1452 * Makefile.in (gdb.z): Remove.
1453 (install-only): Remove $(man1dir) and gdb.1 installation.
1454 * gdb.1: Remove.
1455
9ead1b84
JK
14562013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1457
1458 Fix compatibility with Linux kernel 3.8.3.
1459 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
1460 to more inner block. Remove parsing of NUMBER from outer block.
1461 Parse NUMBER only if KEYWORD has been identified.
1462
d1794952
JK
14632013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1464
1465 Fix variable name shadowing.
1466 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
1467 filename to mapsfilename and update its uses.
1468
9025569e
EZ
14692013-04-05 Eli Zaretskii <eliz@gnu.org>
1470
1471 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
1472 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
1473 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
1474 details of the problem.
1475
c9a6ce02
PA
14762013-04-04 Pedro Alves <palves@redhat.com>
1477 Hui Zhu <hui@codesourcery.com>
1478
1479 * breakpoint.c (validate_commands_for_breakpoint): If validating a
1480 tracepoint, reset its STEP_COUNT and call validate_actionline.
1481
5ff888ce
DE
14822013-04-03 Doug Evans <dje@google.com>
1483
bf6af496
DE
1484 * dwarf2read.c (read_die_and_siblings_1): Renamed from
1485 read_die_and_siblings.
1486 (read_die_and_siblings): New function.
1487 (read_cutu_die_from_dwo): Dump die if requested.
1488 (read_die_and_children): Call read_full_die_1 and
1489 read_die_and_siblings_1.
1490 (read_full_die): Dump die if requested.
1491
1492 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
1493
0ac5b59e
DE
1494 * dwarf2read.c (struct dwo_file): New member comp_dir.
1495 Rename member name to dwo_name. All uses updated.
1496 (hash_dwo_file): Include comp_dir in computation.
1497 (eq_dwo_file): Ditto.
1498 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
1499 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
1500
5ff888ce
DE
1501 * psymtab.c (read_psymtabs_with_fullname): Don't call
1502 psymtab_to_fullname if the basenames are different.
1503
ec83d211
JK
15042013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1505
1506 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
1507 New entry about "fullname" presence.
1508
4f4352f7
PA
15092013-04-03 Pedro Alves <palves@redhat.com>
1510
1511 * NEWS: Mention x86_64/Cygwin as new native configuration.
1512
3d1d5ea3
DE
15132013-04-02 Doug Evans <dje@google.com>
1514
1515 * dwarf2read.c (read_structure_type): Fix typo in comment.
1516
be9a8770
PA
15172013-04-02 Pedro Alves <palves@redhat.com>
1518
1519 * NEWS: Mention "set/show debug aarch64", "set/show debug
1520 coff-pe-read" and "set/show debug mach-o".
1521
a46c1e42
PA
15222013-04-02 Pedro Alves <palves@redhat.com>
1523
1524 * NEWS: Mention "set/show remote trace-buffer-size-packet".
1525
3ad18b19
EZ
15262013-04-02 Eli Zaretskii <eliz@gnu.org>
1527
1528 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
1529 gdb_string.h is now in common/.
1530
e9f1758d
PA
15312013-04-02 Pedro Alves <palves@redhat.com>
1532
1533 * NEWS: Move "set debug notification" and "set trace-buffer-size"
1534 under "New options".
1535
049dc89b
JK
15362013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
1537
1538 Revert this patch:
1539 PR gdb/15275
1540 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
1541
c33e31fd
PA
15422013-04-02 Pedro Alves <palves@redhat.com>
1543
1544 PR gdb/15275
1545
1546 * remote.c (send_interrupt_sequence): Use remote_serial_write.
1547 (remote_serial_write): New function.
1548 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
1549
ea5f3910
JW
15502013-04-01 Jiong Wang <jiwang@tilera.com>
1551
1552 * NEWS: Mention TILE-Gx in "New native configurations" and
1553 "New targets" sections.
1554
5c6fa7ab
DE
15552013-04-01 Doug Evans <dje@google.com>
1556
c0f78cd4
DE
1557 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
1558 (process_enumeration_scope): Simplify.
1559
0186c6a7
DE
1560 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
1561 type_unit_group ...
1562 (struct signatured_type): ... to here.
1563 (sig_type_ptr): New typedef.
1564 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
1565 out of union 't'. All uses updated.
1566 (dw2_get_file_names_reader): Assert not called for a type unit.
1567 (dw2_get_file_names): Assert not called for a type unit or type
1568 unit group.
1569 (build_type_psymtabs_reader): Assert called for a type unit.
1570 (build_type_psymtab_dependencies): Assert called for a type unit group.
1571
5c6fa7ab
DE
1572 * dwarf2read.c (free_dwo_file): Add comment.
1573 (dwarf2_per_objfile_free): Unref dwp bfd.
1574
b3c0ad67 15752013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
1576
1577 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
1578 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
1579 (read_pe_exported_syms): Remove unused 'exportix'.
1580 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
1581 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
1582 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
1583
e2df1547
AR
15842013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
1585
1586 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
1587 (print_it_watchpoint): Remove unused 'bl'.
1588 (say_where): Remove unused 'uiout'.
1589 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
1590 (bkpt_breakpoint_hit): Remove unused 'b'.
1591 (internal_bkpt_print_it): Remove unused 'uiout'.
1592 * buildsym.c (augment_type_symtab): Remove unused 'i'.
1593
d81e75c0
TD
15942013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1595
1596 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
1597 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
1598
5a8b3f62
DE
15992013-03-29 Doug Evans <dje@google.com>
1600
ab5088bf
DE
1601 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
1602 Delete arg is_dwp. All callers updated.
1603 (open_dwp_file): New function.
1604 (open_and_init_dwp_file): Call it.
1605 (get_dwp_file): New function.
1606 (lookup_dwo_cutu): Call it.
1607
a8ad1e57
DE
1608 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
1609 unnecessary, cleanup.
1610
6296d8c1
DE
1611 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
1612
b0c7bfa9
DE
1613 * dwarf2read.c (read_cutu_die_from_dwo): New function.
1614 (lookup_dwo_unit): New function.
1615 (init_cutu_and_read_dies): Move DWO handling to new functions.
1616
c88ee1f0
DE
1617 * dwarf2read.c (struct signatured_type): Tweak comment.
1618 (struct dwo_unit): Tweak comment.
1619 (create_debug_types_hash_table): Tweak comment. Reformat long line.
1620 (create_dwo_debug_info_hash_table): Tweak comment.
1621 (dwarf2_per_cu_offset_and_type): Tweak comment.
1622
5a8b3f62
DE
1623 * dwarf2read.c (lookup_signatured_type): Remove complaint about
1624 missing .debug_types section.
1625
9852c492
YQ
16262013-03-29 Yao Qi <yao@codesourcery.com>
1627
1628 * corelow.c: Include "completer.h".
1629 (_initialize_corelow): Call add_target_with_completer with
1630 argument 'filename_completer'.
1631 * tracepoint.c: Likewise.
1632 * exec.c (_initialize_exec): Likewise.
1633 * target.c (add_target): Rename to ...
1634 (add_target_with_completer): ... this. Call set_cmd_completer
1635 if parameter completer is not NULL.
1636 (add_target): New.
1637 * target.h: Include "command.h".
1638 (add_target_with_completer): Declare it.
1639
af312be7
JB
16402013-03-28 Joel Brobecker <brobecker@adacore.com>
1641
1642 * coffread.c (is_import_fixup_symbol): New function.
1643 (record_minimal_symbol): Use is_import_fixup_symbol to
1644 detect import fixup symbols, and discard them.
1645
8a0459fd
DE
16462013-03-28 Doug Evans <dje@google.com>
1647
0349ea22
DE
1648 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
1649 types hash table until we know we need it.
1650
f652bce2
DE
1651 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
1652 index numbers.
1653
e4a48d9d
DE
1654 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
1655 All callers updated.
1656 (dw2_print_stats): Print #read CUs too.
1657 (dump_die_shallow): Print signatured types better.
1658
8a0459fd
DE
1659 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
1660 info_or_types_section to section. All uses updated.
1661 (struct dwo_unit): Ditto.
1662
bd3eecc3
PA
16632013-03-28 Pedro Alves <palves@redhat.com>
1664
1665 * NEWS (New options): New section.
1666 (New options): Mention set/show remote trace-status-packet.
1667 * remote.c (PACKET_qTStatus): New enumeration value.
1668 (remote_get_trace_status): Skip sending qTStatus if the packet is
1669 disabled. Use packet_ok.
1670 (_initialize_remote): Register a configuration command for
1671 qTStatus packet.
1672
41245087
DE
16732013-03-28 Doug Evans <dje@google.com>
1674
7edbb660
DE
1675 * symfile.c (find_separate_debug_file): Add comment.
1676 (terminate_after_last_dir_separator): Tweak comment.
1677
0018ea6f
DE
1678 * dwarf2read.c (create_partial_symtab): Add forward decl.
1679 (create_partial_symtab): Move to be closer to other psymtab functions.
1680 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
1681
ca69b9e6
DE
1682 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
1683 (compute_symtab_includes): Remove unnecessary forward declaration.
1684 (die_needs_namespace): Add comment marking group of functions for
1685 dwarf2 name computation.
1686
a9375afe
DE
1687 * typeprint.c (_initialize_typeprint): Improve type help text.
1688
41245087
DE
1689 * python/python.c (finish_python_initialization): Provide suggestion
1690 for how to tell gdb to find its python files.
1691
7f7cc265
PA
16922013-03-28 Pedro Alves <palves@redhat.com>
1693
1694 PR gdb/15294
1695
1696 * source.c (_initialize_source): Change back "set listsize" to an
1697 integer command.
1698
ec21308c
JK
16992013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
1700
1701 PR gdb/15275
1702 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
1703
840a9a1f
PA
17042013-03-27 Pedro Alves <palves@redhat.com>
1705
1706 * top.c (history_size): Rename to ...
1707 (history_size_setshow_var): ... this. Add comment.
1708 (show_commands): Use readline's 'history_length' instead of
1709 computing the history length by calling history_get in a loop.
1710 (set_history_size_command): Error out for sizes over INT_MAX.
1711 Restore previous history size on invalid size.
1712 (init_history): If HISTSIZE is negative, leave the history size as
1713 zero. Add comments.
1714 (init_main): Adjust.
1715
826ecc4d
PA
17162013-03-27 Pedro Alves <palves@redhat.com>
1717
1718 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
1719 coff_pe_read" command to "set debug coff-pe-read".
1720
0ccfeeae
MM
17212013-03-27 Markus Metzger <markus.t.metzger@intel.com>
1722
1723 * record.c (command_size_to_target_size): Fix size comparison.
1724 Change parameter type from pointer to integer to integer.
1725 Update all users.
1726
40653b35
PM
17272013-03-27 Pierre Muller <muller@sourceware.org>
1728
1729 * windows-nat.c (handle_output_debug_string): Avoid typecast
1730 from integer of different size warning.
1731
c62fa0e2
JB
17322013-03-26 Joel Brobecker <brobecker@adacore.com>
1733
1734 * windows-nat.c (handle_output_debug_string): Add empty line
1735 after local block variable definition.
1736
2c619be2
PA
17372013-03-26 Pedro Alves <palves@redhat.com>
1738
1739 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
1740 (net_open): Make 'polls' local unsigned.
1741
1b493192
PA
17422013-03-26 Pedro Alves <palves@redhat.com>
1743
1744 * remote.c (_initialize_remote): Make "set remoteaddresssize"
1745 a zuinteger command instead of uinteger.
1746
7ee70bf5
PA
17472013-03-26 Pedro Alves <palves@redhat.com>
1748
1749 * record-full.c (record_full_insn_num): Make it unsigned.
1750 (record_full_check_insn_num, record_full_message)
1751 (record_full_registers_change, record_full_xfer_partial): Remove
1752 record_full_insn_max_num check (it's always != 0).
1753 (record_full_info, record_full_restore): Use %u as format string.
1754 (): Use %u as format string.
1755 (set_record_full_insn_max_num): Remove record_full_insn_max_num
1756 check (it's always != 0).
1757
dfd1f9bb
PA
17582013-03-26 Pedro Alves <palves@redhat.com>
1759
1760 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
1761 and "set dcache size" commands zuinteger instead of uinteger.
1762
addb4faf
PA
17632013-03-26 Pedro Alves <palves@redhat.com>
1764
1765 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
1766 command zuinteger instead of uinteger.
1767
b75bf488
PA
17682013-03-26 Pedro Alves <palves@redhat.com>
1769
1770 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
1771 zuinteger instead of uinteger.
1772
42c634cb
PA
17732013-03-26 Pedro Alves <palves@redhat.com>
1774
1775 * record.c (record_insn_history_size_setshow_var)
1776 (record_call_history_size_setshow_var): New globals.
1777 (command_size_to_target_size): New function.
1778 (cmd_record_insn_history, cmd_record_call_history): Use
1779 command_size_to_target_size instead of cast.
1780 (validate_history_size, set_record_insn_history_size)
1781 (set_record_call_history_size): New functions.
1782 (_initialize_record): Install set_record_insn_history_size and
1783 set_record_call_history_size as "set" hooks of "set record
1784 instruction-history-size" and "set record
1785 function-call-history-size".
1786
1fb2e2b5
PA
17872013-03-26 Pedro Alves <palves@redhat.com>
1788
1789 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
1790 use with history_max_entries use. Remove FIXME note.
1791
99c819ee
MM
17922013-03-26 Markus Metzger <markus.t.metzger@intel.com>
1793
1794 * record-btrace.c (record_btrace_close): Call
1795 record_btrace_auto_disable.
1796
9f9e404c
JB
17972013-03-25 Joel Brobecker <brobecker@adacore.com>
1798
1799 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
1800
ebcdfe33
DE
18012013-03-25 Doug Evans <dje@google.com>
1802
1803 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
1804
24955f63
TT
18052013-03-25 Tom Tromey <tromey@redhat.com>
1806
1807 PR symtab/11462:
1808 * c-exp.y (exp): Add new productions for destructors after '.' and
1809 '->'.
1810 (write_destructor_name): New function.
1811
fce632b6
TT
18122013-03-25 Tom Tromey <tromey@redhat.com>
1813
1814 PR c++/9197:
1815 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
1816 value_struct_elt, not lookup_struct_elt_type.
1817 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
1818 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
1819 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
1820
a4341769
YQ
18212013-03-25 Yao Qi <yao@codesourcery.com>
1822
1823 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
1824 instead of '_mkdir'.
1825
b5981e5a
EZ
18262013-03-23 Eli Zaretskii <eliz@gnu.org>
1827
1828 * windows-nat.c (windows_get_absolute_argv0): New function.
1829 * windows-nat.h: Add its prototype.
1830
1831 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
1832 Use IS_DIR_SEPARATOR instead of looking for a character inside
1833 SLASH_STRING. Include filenames.h.
1834 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
1835 relocate_gdb_directory works when passed gdb_program_name.
1836 Include windows-nat.h.
1837
598d3636
JK
18382013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1839
1840 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
1841 * remote.c (trace_error): Remove the special handling of '2'.
1842 (readchar) <SERIAL_EOF>
1843 (readchar) <SERIAL_ERROR>
1844 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
1845 (remote_get_trace_status): Call throw_exception if EX is
1846 TARGET_CLOSE_ERROR.
1847 * utils.c (perror_with_name): Rename to ...
1848 (throw_perror_with_name): ... here. New parameter errcode, describe it
1849 in the function comment.
1850 (perror_with_name): New function wrapper.
1851 * utils.h (enum errors): New stub declaration.
1852 (throw_perror_with_name): New declaration.
1853
82b821e9
PA
18542013-03-22 Pedro Alves <palves@redhat.com>
1855 Yao Qi <yao@codesourcery.com>
1856 Mark Kettenis <kettenis@gnu.org>
1857
1858 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
1859 Don't let the user set the value to UINT_MAX directly.
1860 <var_integer>: Don't let the user set the value to INT_MAX
1861 directly.
1862
78a095c3
JK
18632013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
1864
1865 * remote.c (remote_unpush_target): New function.
1866 (remote_open_1): Remove two pop_target calls, update one comment, add
1867 comment to target_preopen call. Replace pop_target call by
1868 remote_unpush_target call.
1869 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
1870 pop_target calls by remote_unpush_target calls.
1871
3e74e146
PA
18722013-03-22 Pedro Alves <palves@redhat.com>
1873
1874 * linux-nat.c (linux_child_follow_fork): Don't call
1875 linux_enable_event_reporting.
1876 (linux_handle_extended_wait): Don't call
1877 linux_enable_event_reporting.
1878
a2213dca
PA
18792013-03-22 Pedro Alves <palves@redhat.com>
1880
1881 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
1882 use it to rewrite the trampoline buffers with type gdb_byte[], and
1883 undefine the macro. Remove char* cast.
1884
bd712aed
DE
18852013-03-21 Doug Evans <dje@google.com>
1886
1887 New commands "mt set per-command {space,time,symtab} {on,off}".
1888 * NEWS: Add entry.
1889 * event-top.c: #include "maint.h".
1890 * main.c: #include "maint.h".
1891 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
1892 timeval-utils.h, maint.h, cli/cli-setshow.h.
1893 (per_command_time, per_command_space): New static globals.
1894 (per_command_symtab): New static global.
1895 (per_command_setlist, per_command_showlist): New static globals.
1896 (struct cmd_stats): Move here from utils.c.
1897 (set_per_command_time): Renamed from set_display_time in utils.c
1898 and moved here. All callers updated.
1899 (set_per_command_space): Renamed from set_display_space in utils.c
1900 and moved here. All callers updated.
1901 (count_symtabs_and_blocks): New function.
1902 (report_command_stats): Moved here from utils.c. Add support for
1903 printing symtab stats. Only print data if enabled before command
1904 executed.
1905 (make_command_stats_cleanup): Ditto.
1906 (sert_per_command_cmd, show_per_command_cmd): New functions.
1907 (_initialize_maint_cmds): Add new commands
1908 mt set per-command {space,time,symtab} {on,off}.
1909 * maint.h: New file.
1910 * top.c: #include "maint.h".
1911 * utils.c (reset_prompt_for_continue_wait_time): New function.
1912 (get_prompt_for_continue_wait_time): New function.
1913 * utils.h (reset_prompt_for_continue_wait_time): Declare
1914 (get_prompt_for_continue_wait_time): Declare.
1915 (make_command_stats_cleanup): Moved to maint.h.
1916 (set_display_time, set_display_space): Moved to maint.h and renamed
1917 to set_per_command_time, set_per_command_space.
1918 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
1919 parse_binary_operation and made non-static. Don't call error,
1920 just return an error marker. All callers updated.
1921 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
1922
d76488d8
TT
19232013-03-21 Tom Tromey <tromey@redhat.com>
1924
1925 * symfile.c (alloc_section_addr_info): Update header. Don't set
1926 'num_sections' field.
1927 (build_section_addr_info_from_section_table): Set 'num_sections'.
1928 (build_section_addr_info_from_bfd): Likewise.
1929 (build_section_addr_info_from_objfile): Remove dead loop
1930 condition.
1931 (free_section_addr_info): Unconditionally call xfree.
1932 (relative_addr_info_to_section_offsets, addrs_section_sort)
1933 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
1934 condition.
1935 (syms_from_objfile_1): Remove dead 'if' condition. Check
1936 'num_sections'.
1937 (add_symbol_file_command): Set 'num_sections'.
1938 * symfile-mem.c (symbol_file_add_from_memory): Set
1939 'num_sections'.
1940 * somread.c (som_symfile_offsets): Remove dead loop condition.
1941 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
1942 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
1943
a72e5169 19442013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
1945
1946 * tracepoint.h (decode_agent_options): Add 'trace_string'
1947 argument.
1948 * tracepoint.c (decode_agent_options): Add 'trace_string'
1949 argument.
1950 (validate_actionline): Update.
1951 (collect_symbol): Add 'trace_string' argument.
1952 (struct add_local_symbols_data) <trace_string>: New field.
1953 (do_collect_symbol): Update.
1954 (add_local_symbols): Add 'trace_string' argument.
1955 (encode_actions_1): Update.
1956 (trace_dump_actions): Update.
1957 * dwarf2loc.c (access_memory): Update.
1958 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
1959 * ax-general.c (new_agent_expr): Update.
1960 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
1961 (gen_trace_for_return_address): Add argument.
1962 (trace_kludge, trace_string_kludge): Remove.
1963 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
1964 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
1965 (gen_trace_for_var): Add 'trace_string' argument.
1966 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
1967 (gen_printf, agent_eval_command_one): Update.
1968
b2f83c08
TT
19692013-03-21 Tom Tromey <tromey@redhat.com>
1970
1971 PR exp/15109:
1972 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
1973 Handle FILENAME token.
1974
9507860e
TT
19752013-03-21 Tom Tromey <tromey@redhat.com>
1976
1977 * c-exp.y (YYPRINT): Define.
1978 (c_print_token): New function.
1979
e403aa4b
TT
19802013-03-21 Tom Tromey <tromey@redhat.com>
1981
1982 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
1983
af307d6a
YQ
19842013-03-21 Yao Qi <yao@codesourcery.com>
1985
1986 * ctf.c: Include "gdb_stat.h".
1987 [USE_WIN32API]: New macro 'mkdir'.
1988 (ctf_start): Use permission bits macros if they are defined.
1989
fb81d016
KS
19902013-03-20 Keith Seitz <keiths@redhat.com>
1991
1992 * breakpoint.h (struct breakpoint): Add comment to
1993 extra_string indicating that this member is mallod'd.
1994 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
1995
ef0026f0
PA
19962013-03-20 Pedro Alves <palves@redhat.com>
1997
1998 PR gdb/15289
1999
2000 * cli/cli-setshow.c (do_set_command)
2001 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
2002 the result of parsing the command argument. Throw error if the
2003 value is greater than UINT_MAX. Print the invalid value with
2004 plongest.
2005 <var_integer, var_zinteger>: Use LONGEST for variable holding the
2006 result of parsing the command argument. Throw error if the value
2007 is greater than INT_MAX, not greater or equal. Also throw error
2008 if the value is less than INT_MIN. Print the invalid value with
2009 plongest.
2010 <var_zuinteger_unlimited>: Throw error if the value is greater
2011 than INT_MAX, not greater or equal.
2012 (do_show_command) <var_integer, var_zinteger,
2013 var_zuinteger_unlimited>: Use %d for printing int, not %u.
2014
24d6c2a0
TT
20152013-03-20 Tom Tromey <tromey@redhat.com>
2016
2017 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
2018 if possible.
2019 * dwarf2read.c (read_func_scope): Remove old FIXME.
2020 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
2021 not LOC_COMPUTED.
2022 * findvar.c (symbol_read_needs_frame, default_read_var_value):
2023 Unconditionally call via computed ops, if possible.
2024 * printcmd.c (address_info): Unconditionally call via computed ops,
2025 if possible.
2026 * stack.c (read_frame_arg): Unconditionally call via computed ops,
2027 if possible.
2028 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
2029 * tracepoint.c (scope_info): Unconditionally call via computed ops,
2030 if possible.
2031
f1e6e072
TT
20322013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2033 Tom Tromey <tromey@redhat.com>
2034
2035 PR symtab/8421:
2036 * coffread.c (coff_register_index): New global.
2037 (process_coff_symbol, coff_read_enum_type): Set
2038 SYMBOL_ACLASS_INDEX.
2039 (_initialize_coffread): Initialize new global.
2040 * dwarf2loc.c (locexpr_find_frame_base_location)
2041 (dwarf2_block_frame_base_locexpr_funcs)
2042 (loclist_find_frame_base_location)
2043 (dwarf2_block_frame_base_loclist_funcs): New.
2044 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
2045 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
2046 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
2047 (dwarf2_block_frame_base_loclist_funcs): New.
2048 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
2049 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
2050 globals.
2051 (read_func_scope): Update.
2052 (fixup_go_packaging, mark_common_block_symbol_computed)
2053 (var_decode_location, new_symbol_full, dwarf2_const_value):
2054 Set SYMBOL_ACLASS_INDEX.
2055 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
2056 (_initialize_dwarf2_read): Initialize new globals.
2057 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
2058 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
2059 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
2060 globals.
2061 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
2062 (_initialize_mdebugread): Initialize new globals.
2063 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
2064 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
2065 (stab_register_index, stab_regparm_index): New globals.
2066 (define_symbol, read_enum_type, common_block_end): Set
2067 SYMBOL_ACLASS_INDEX.
2068 (_initialize_stabsread): Initialize new globals.
2069 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
2070 globals.
2071 (MAX_SYMBOL_IMPLS): New define.
2072 (register_symbol_computed_impl, register_symbol_block_impl)
2073 (register_symbol_register_impl)
2074 (initialize_ordinary_address_classes): New functions.
2075 (_initialize_symtab): Call initialize_ordinary_address_classes.
2076 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
2077 (struct symbol_impl): New.
2078 (SYMBOL_ACLASS_BITS): New define.
2079 (struct symbol) <aclass, ops>: Remove fields.
2080 <aclass_index>: New field.
2081 (symbol_impls): Declare.
2082 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
2083 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
2084 (register_symbol_computed_impl, register_symbol_block_impl)
2085 (register_symbol_register_impl): Declare.
2086 (struct symbol_computed_ops): Add location_has_loclist.
2087 (struct symbol_block_ops): New.
2088 (SYMBOL_BLOCK_OPS): New.
2089 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
2090
dbccfd4c
TT
20912013-03-20 Tom Tromey <tromey@redhat.com>
2092
2093 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
2094 (print_partial_symbols, recursively_search_psymtabs): Use
2095 PSYMBOL_CLASS.
2096
e3f1ad4f
PM
20972013-03-20 Pierre Muller <muller@sourceware.org>
2098
2099 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
2100 addtion, subtraction, multiplication and division binary operator.
2101
460014f5
JK
21022013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2103
2104 Code cleanup.
2105 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
2106 * bsd-kvm.c (bsd_kvm_close): Likewise.
2107 * bsd-uthread.c (bsd_uthread_close): Likewise.
2108 * corelow.c (core_close): Likewise.
2109 (core_close_cleanup): Remove parameter quitting from a caller.
2110 * event-top.c (async_disconnect): Likewise.
2111 * exec.c (exec_close_1): Remove parameter quitting.
2112 * go32-nat.c (go32_close): Likewise.
2113 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
2114 parameter quitting from a caller.
2115 * mips-linux-nat.c (super_close): Remove parameter quitting from the
2116 variable.
2117 (mips_linux_close): Remove parameter quitting. Remove parameter
2118 quitting from a caller.
2119 * monitor.c (monitor_close): Remove parameter quitting.
2120 * monitor.h (monitor_close): Likewise.
2121 * record-btrace.c (record_btrace_close): Likewise.
2122 * record-full.c (record_full_close): Likewise.
2123 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
2124 it also from fprintf_unfiltered.
2125 * remote-mips.c (mips_close): Remove parameter quitting.
2126 (mips_detach): Remove parameter quitting from a caller.
2127 * remote-sim.c (gdbsim_close): Remove parameter quitting.
2128 (gdbsim_close): Remove duplicate function comment. Remove parameter
2129 quitting and remove it also from printf_filtered.
2130 * remote.c (remote_close): Remove parameter quitting.
2131 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
2132 * target.c (update_current_target): Remove parameter int from to_close
2133 de_fault.
2134 (push_target, unpush_target, pop_target): Remove parameter quitting from
2135 a caller.
2136 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
2137 Remove parameter quitting from a caller.
2138 (target_preopen): Remove parameter quitting from a caller.
2139 (target_close): Remove parameter quitting. Remove parameter quitting
2140 from a caller two times. Remove parameter quitting also from
2141 fprintf_unfiltered.
2142 * target.h (struct target_ops): Remove parameter quitting and as int
2143 from fields to_xclose and to_close.
2144 (extern struct target_ops current_target):
2145 (target_close, pop_all_targets): Remove parameter quitting. Update the
2146 comment.
2147 (pop_all_targets_above): Remove parameter quitting.
2148 * top.c (quit_target): Remove parameter quitting from a caller.
2149 * tracepoint.c (tfile_close): Remove parameter quitting.
2150 * windows-nat.c (windows_close): Remove parameter quitting.
2151
35a7120b
CV
21522013-03-20 Corinna Vinschen <vinschen@redhat.com>
2153
2154 * windows-nat.c (handle_output_debug_string): Replace call
2155 to string_to_core_addr with call to strtoull.
2156
8249a5a9
YQ
21572013-03-20 Yao Qi <yao@codesourcery.com>
2158
2159 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
2160 and write it to CTF metadata.
2161
2c15ef43
CV
21622013-03-19 Corinna Vinschen <vinschen@redhat.com>
2163
2164 * windows-nat.c (handle_output_debug_string): Change type of n to
2165 SIZE_T to avoid crash on 64 bit systems.
2166
1cdd3232
EZ
21672013-03-17 Eli Zaretskii <eliz@gnu.org>
2168
2169 * python/python-internal.h (HAVE_SNPRINTF)
2170 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
2171 about redefinition of snprintf by pyerrors.h.
2172
3cb2ab1a
SE
21732013-03-15 Steve Ellcey <sellcey@mips.com>
2174
2175 * remote-sim.c (sim_command_completer): Make char arguments const.
2176
9ce98649
TT
21772013-03-15 Tom Tromey <tromey@redhat.com>
2178
2179 PR c++/15116:
2180 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
2181
dccee2de
TT
21822013-03-14 Tom Tromey <tromey@redhat.com>
2183
2184 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
2185 New fields.
2186 (get_file_crc): Move from symfile.c.
2187 (gdb_bfd_crc): New function.
2188 * gdb_bfd.h (gdb_bfd_crc): Declare.
2189 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
2190 * symfile.c (get_file_crc): Move to gdb_bfd.c.
2191 (separate_debug_file_exists): Use gdb_bfd_crc.
2192
cc0ea93c
TT
21932013-03-14 Tom Tromey <tromey@redhat.com>
2194
2195 * symfile.c (get_debug_link_info): Remove.
2196 (find_separate_debug_file_by_debuglink): Use
2197 bfd_get_debug_link_info.
2198
08c23b0d
TT
21992013-03-14 Tom Tromey <tromey@redhat.com>
2200
2201 * symtab.c (error_in_psymtab_expansion): New function.
2202 (lookup_symbol_aux_quick)
2203 (basic_lookup_transparent_type_quick): Remove "last resort"
2204 code. Use error_in_psymtab_expansion.
2205
288e77a7
JK
22062013-03-14 Doug Evans <dje@google.com>
2207 Jan Kratochvil <jan.kratochvil@redhat.com>
2208
2209 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
2210 any successful compare_filenames_for_search or FILENAME_CMP.
2211 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
2212 * symtab.c (iterate_over_some_symtabs): Likewise.
2213
8f1b8b82
JK
22142013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
2215
2216 * source.c (print_source_lines_base): Make a local copy of
2217 symtab_to_fullname.
2218
23eb71e4
JK
22192013-03-14 Hui Zhu <hui_zhu@mentor.com>
2220 Jan Kratochvil <jan.kratochvil@redhat.com>
2221
2222 * source.c (print_source_lines_base): Suppress "file" for TUI.
2223
bb869963
SDJ
22242013-03-14 Keith Seitz <keiths@redhat.com>
2225 Alan Matsuoka <alanm@redhat.com>
2226
2227 PR c++/15203
2228 PR c++/15210
2229 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
2230 TYPE_CODE_METHOD.
2231 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
2232 symbols.
2233
d6682f9e
YQ
22342013-03-14 Yao Qi <yao@codesourcery.com>
2235
2236 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
2237 status to tfile if trace is stopped by command 'tstop'.
2238
a22fa6e4
YQ
22392013-03-14 Yao Qi <yao@codesourcery.com>
2240
2241 * tracepoint.c (tfile_write_status): Write trace notes and user
2242 name into tfile if they are not NULL.
2243
d0353e76
YQ
22442013-03-14 Hui Zhu <hui@codesourcery.com>
2245 Yao Qi <yao@codesourcery.com>
2246
2247 * Makefile.in (REMOTE_OBS): Add ctf.o.
2248 (SFILES): Add ctf.c.
2249 (HFILES_NO_SRCDIR): Add ctf.h.
2250 * ctf.c, ctf.h: New files.
2251 * tracepoint.c: Include 'ctf.h'.
2252 (collect_pseudocommand): Remove static.
2253 (trace_save_command): Parse option "-ctf".
2254 Produce different trace file writers per option.
2255 Adjust output message.
2256 (trace_save_tfile, trace_save_ctf): New.
2257 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
2258 * mi/mi-main.c: Include 'ctf.h'.
2259 (mi_cmd_trace_save): Handle option '-ctf'. Call either
2260 trace_save_tfile or trace_save_ctf.
2261 * NEWS: Mention these changes.
2262
3f43bc09
YQ
22632013-03-14 Yao Qi <yao@codesourcery.com>
2264
2265 * tracepoint.c (trace_file_writer_xfree): New.
2266 (struct tfile_writer_data): New.
2267 (tfile_dtor, tfile_can_target_save, tfile_start): New.
2268 (tfile_write_header, tfile_write_regblock_type): New.
2269 (tfile_write_status, tfile_write_uploaded_tsv): New.
2270 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
2271 (tfile_write_raw_data, (tfile_end): New.
2272 (tfile_write_ops): New global variable.
2273 (TRACE_WRITE_R_BLOCK): New macro.
2274 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
2275 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
2276 (TRACE_WRITE_V_BLOCK): New macro.
2277 (trace_save): Add extra one parameter WRITER. Make it static.
2278 Use WRITER to writer trace.
2279 (tfile_trace_file_writer_new): New.
2280 (trace_save_command): Caller update.
2281 (trace_save_tfile): Write trace data in TFILE format.
2282 * tracepoint.h (struct trace_frame_write_ops): New.
2283 (struct trace_file_write_ops): New.
2284 (struct trace_file_writer): New.
2285 (trace_save): Remove its declaration.
2286 (trace_save_tfile): Declare it.
2287 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
2288 instead of trace_save.
2289
58665b40
PA
22902013-03-13 Pedro Alves <palves@redhat.com>
2291
2292 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
2293
10217050
PA
22942013-03-13 Pedro Alves <palves@redhat.com>
2295
2296 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
2297 commented out code.
2298 * demangle.c (current_demangling_style_string): Make it const.
2299 (set_demangling_command): Assert the demangling style is known.
2300 Remove all handling of unknown styles. Set
2301 'current_demangling_style_string' to an element of the
2302 demangling_style_names array.
2303 (set_demangling_style): Delete.
2304 (_initialize_demangler): Set current_demangling_style_string to the
2305 element of the demangling_style_names array that corresponds to
2306 the default demangling style. Remove FIXME note. Don't call
2307 set_demangling_style.
2308 * gdb-demangle.h (set_demangling_style): Remove declaration.
2309
6f937416
PA
23102013-03-13 Pedro Alves <palves@redhat.com>
2311
2312 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
2313 fields const.
2314 (ada_make_symbol_completion_list): Make "text0" parameter const.
2315 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
2316 * breakpoint.c (condition_completer): Make "text" and "word"
2317 parameters const. Adjust.
2318 (check_tracepoint_command): Adjust to validate_actionline
2319 prototype change.
2320 (catch_syscall_completer): Make "text" and "word" parameters
2321 const.
2322 * cli/cli-cmds.c (show_user): Make "comname" local const.
2323 (valid_command_p): Make "command" parameter const.
2324 (alias_command): Make "alias_prefix" and "command_prefix" locals
2325 const.
2326 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
2327 (add_alias_cmd): Make "name" and "oldname" parameters const.
2328 Adjust. No longer make copy of OLDNAME.
2329 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
2330 (add_setshow_cmd_full, add_setshow_enum_cmd)
2331 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
2332 (add_setshow_filename_cmd, add_setshow_string_cmd)
2333 (add_setshow_string_noescape_cmd)
2334 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2335 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2336 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
2337 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
2338 Make "name" parameter const.
2339 (help_cmd): Rename "command" parameter to "arg". New const local
2340 "command".
2341 (find_cmd): Make "command" parameter const.
2342 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
2343 deprecated_cmd_warning prototype change.
2344 (undef_cmd_error): Make "cmdtype" parameter const.
2345 (lookup_cmd): Make "line" parameter const.
2346 (deprecated_cmd_warning): Change type of "text" parameter to
2347 pointer to const char, from pointer to pointer to char. Adjust.
2348 (lookup_cmd_composition): Make "text" parameter const.
2349 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
2350 parameters const.
2351 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
2352 const.
2353 * cli/cli-script.c (validate_comname): Make "tem" local const.
2354 (define_command): New const local "tem_c". Use it in calls to
2355 lookup_cmd.
2356 (document_command): Make "tem" and "comfull" locals const.
2357 (show_user_1): Make "prefix" and "name" parameters const.
2358 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
2359 const.
2360 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
2361 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
2362 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
2363 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
2364 (complete_on_enum, add_setshow_enum_cmd)
2365 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
2366 (add_setshow_filename_cmd, add_setshow_string_cmd)
2367 (add_setshow_string_noescape_cmd)
2368 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
2369 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
2370 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
2371 Change prototypes, constifying strings.
2372 * completer.c (noop_completer, filename_completer): Make "text"
2373 and "prefix" parameters const.
2374 (location_completer, expression_completer)
2375 (complete_line_internal): Make "text" and "prefix" parameters
2376 const and adjust.
2377 (command_completer, signal_completer): Make "text" and "prefix"
2378 parameters const.
2379 * completer.h (noop_completer, filename_completer)
2380 (expression_completer, location_completer, command_completer)
2381 (signal_completer): Change prototypes.
2382 * corefile.c (complete_set_gnutarget): Make "text" and "word"
2383 parameters const.
2384 * cp-abi.c (cp_abi_completer): Likewise.
2385 * expression.h (parse_expression_for_completion): Change
2386 prototype.
2387 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
2388 parameters const.
2389 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
2390 * infrun.c (handle_completer): Make "text" and "word" parameters
2391 const.
2392 * interps.c (interpreter_completer): Make "text" and "word"
2393 parameters const.
2394 * language.h (struct language_defn)
2395 <la_make_symbol_completion_list>: Make "text" and "word"
2396 parameters const.
2397 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
2398 (parse_exp_in_context): Rename to ...
2399 (parse_exp_in_context_1): ... this.
2400 (parse_exp_in_context): Reimplement, with const hack from
2401 parse_exp_1.
2402 (parse_expression_for_completion): Make "string" parameter const.
2403 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
2404 to pointer to const char. Adjust.
2405 (print_command_1): Make "exp" parameter const.
2406 (output_command): Rename to ...
2407 (output_command_const): ... this. Make "exp" parameter const.
2408 (output_command): Reimplement.
2409 (x_command): Adjust.
2410 (display_command): Rename "exp" parameter to "arg". New "exp"
2411 local, const version of "arg".
2412 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
2413 "cmd_name" local const.
2414 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
2415 call.
2416 (cmdpy_completer): Make "text" and "word" parameters const.
2417 (gdbpy_parse_command_name): Make "prefix_text2" local const.
2418 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
2419 const.
2420 * remote.c (_initialize_remote): Make "cmd_name" local const.
2421 * symtab.c (language_search_unquoted_string): Make "text" and "p"
2422 parameters const. Adjust.
2423 (completion_list_add_fields): Make "sym_text", "text" and "word"
2424 parameters const.
2425 (struct add_name_data) <sym_text, text, word>: Make fields const.
2426 (default_make_symbol_completion_list_break_on): Make "text" and
2427 "word" parameters const. Adjust locals.
2428 (default_make_symbol_completion_list)
2429 (make_symbol_completion_list, make_symbol_completion_type)
2430 (make_symbol_completion_list_fn): Make "text" and "word"
2431 parameters const.
2432 (make_file_symbol_completion_list): Make "text", "word" and
2433 "srcfile" parameters const. Adjust locals.
2434 (add_filename_to_list): Make "text" and "word" parameters const.
2435 (struct add_partial_filename_data) <text, word>: Make fields
2436 const.
2437 (make_source_files_completion_list): Make "text" and "word"
2438 parameters const.
2439 * symtab.h (default_make_symbol_completion_list_break_on)
2440 (default_make_symbol_completion_list, make_symbol_completion_list)
2441 (make_symbol_completion_type enum type_code)
2442 (make_symbol_completion_list_fn make_file_symbol_completion_list)
2443 (make_source_files_completion_list): Change prototype.
2444 * top.c (execute_command): Adjust to pass pointer to pointer to
2445 const char to lookup_cmd, and to deprecated_cmd_warning prototype
2446 change.
2447 (set_verbose): Make "cmdname" local const.
2448 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
2449 and adjust.
2450 (validate_actionline): Make "line" parameter a pointer to const
2451 char, and adjust.
2452 (encode_actions_1): Make "action_exp" local const, and adjust.
2453 (encode_actions): Adjust.
2454 (replace_comma): Delete.
2455 (trace_dump_actions): Make "action_exp" and "next_comma" locals
2456 const, and adjust. Don't frob the action string while splitting
2457 it at commas. Instead, make a copy of each split substring in
2458 turn.
2459 (trace_dump_command): Adjust to validate_actionline prototype
2460 change.
2461 * tracepoint.h (decode_agent_options, decode_agent_options)
2462 (encode_actions, validate_actionline): Change prototypes.
2463 * valprint.h (output_command): Delete declaration.
2464 (output_command_const): Declare.
2465 * value.c (function_destroyer): Cast const away in xfree call.
2466
a0bcdaa7
PA
24672013-03-13 Pedro Alves <palves@redhat.com>
2468
2469 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
2470 rather than casting 'const char * const *' to 'const char **'.
2471 * ada-lex.l (processInt): Make "trailer" local const. Remove
2472 'const char **' cast.
2473 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
2474 locals, and use those as strtol output pointer, instead than doing
2475 invalid casts to from 'const char **' to 'char **'.
2476 (_initialize_demangle): Remove cast.
2477 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
2478 locals, and use those as strtol output pointer, instead than doing
2479 invalid casts to from 'const char **' to 'char **'.
2480 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
2481 casts.
2482 * stap-probe.c (stap_parse_register_operand)
2483 (stap_parse_single_operand): Likewise.
2484
8ddb1965
YQ
24852013-03-13 Yao Qi <yao@codesourcery.com>
2486
2487 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
2488 the last matched 'V' blcok in trace frame.
2489
2d450646
JB
24902013-03-12 Joel Brobecker <brobecker@adacore.com>
2491
2492 * NEWS: Create a new section for the next release branch.
2493 Rename the section of the current branch, now that it has
2494 been cut.
2495
b4b79973 24962013-03-12 Joel Brobecker <brobecker@adacore.com>
2497
2498 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
2499 * version.in: Bump version to 7.6.50.20130312-cvs.
2500
ee047554
KS
25012013-03-12 Keith Seitz <keiths@redhat.com>
2502
2503 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
2504 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
2505 Remove temporary copy of input string.
2506 (mi_execute_command_wrapper): Make "cmd" const.
2507 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
2508 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
2509 Use const strings.
2510 (mi_parse): Make "cmd" const.
2511 Use const strings.
2512 * mi/mi-parse.h (mi_parse): Make "cmd" const.
2513
bbc13ae3
KS
25142013-03-12 Keith Seitz <keiths@redhat.com>
2515
2516 * ada-lang.c (ada_read_renaming_var_value): Pass const
2517 pointer to expression string to parse_exp_1.
2518 (create_excep_cond_exprs): Likewise.
2519 * ax-gdb.c (agent_eval_command_one): Likewise.
2520 (maint_agent_printf_command): Likewise.
2521 Constify much of the string handling/parsing.
2522 * breakpoint.c (set_breakpoint_condition): Pass const
2523 pointer to expression string to parse_exp_1.
2524 (update_watchpoint): Likewise.
2525 (parse_cmd_to_aexpr): Constify string handling.
2526 Pass const pointer to parse_exp_1.
2527 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
2528 (find_condition_and_thread): Likewise.
2529 Make TOK const.
2530 (watch_command_1): Make "arg" const.
2531 Constify string handling.
2532 Copy the expression string instead of changing the input
2533 string.
2534 (update_breakpoint_location): Pass const pointer to
2535 parse_exp_1.
2536 * eval.c (parse_and_eval_address): Make "exp" const.
2537 (parse_to_comma_and_eval): Make "expp" const.
2538 (parse_and_eval): Make "exp" const.
2539 * expression.h (parse_expression): Make argument const.
2540 (parse_exp_1): Make first argument const.
2541 * findcmd.c (parse_find_args): Treat "args" as const.
2542 * linespec.c (parse_linespec): Pass const pointer to
2543 linespec_expression_to_pc.
2544 (linespec_expression_to_pc): Make "exp_ptr" const.
2545 * parse.c (parse_exp_1): Make "stringptr" const.
2546 Make a copy of the expression to pass to parse_exp_in_context until
2547 this whole interface can be constified.
2548 (parse_expression): Make "string" const.
2549 * printcmd.c (ui_printf): Treat "arg" as const.
2550 Handle const strings.
2551 * tracepoint.c (validate_actionline): Pass const pointer to
2552 all calls to parse_exp_1.
2553 (encode_actions_1): Likewise.
2554 * value.h (parse_to_comma_and_eval): Make argument const.
2555 (parse_and_eval_address): Likewise.
2556 (parse_and_eval): Likewise.
2557 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
2558 (varobj_set_value): Likewise.
2559 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
2560 constify string handling.
2561 Pass const pointers to parse_and_eval_address and
2562 parse_to_comman_and_eval.
2563 * cli/cli-utils.c (skip_to_space): Rename to ...
2564 (skip_to_space_const): ... this. Handle const strings.
2565 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
2566 skip_to_space_const.
2567 (skip_to_space_const): Declare.
2568 * common/format.c (parse_format_string): Make "arg" const.
2569 Handle const strings.
2570 * common/format.h (parse_format_string): Make "arg" const.
2571 * gdbserver/ax.c (ax_printf): Make "format" const.
2572 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
2573 of the expression string.
2574
f3cec7e6
HZ
25752013-03-12 Hui Zhu <hui@codesourcery.com>
2576
2577 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
2578
9df7235c
HZ
25792013-03-12 Yao Qi <yao@codesourcery.com>
2580 Hui Zhu <hui@codesourcery.com>
2581
2582 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
2583 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
2584 DW_OP_deref_size.
2585
82d049ab
PH
25862013-03-12 Paul Hilfinger <hilfingr@adacore.com>
2587
5f8e0b8f
MF
2588 * ada-lex.l (rules): Only recognize 'thread' as a
2589 delimiter when followed by numerals, as for c-exp.y.
2590 Use new rewind_to_char function to rewind the input for
2591 expression-delimiting tokens.
2592 (rewind_to_char): New function.
82d049ab 2593
8c1fb155
JK
25942013-03-11 Pedro Alves <palves@redhat.com>
2595 Jan Kratochvil <jan.kratochvil@redhat.com>
2596
2597 * configure: Regenerate.
2598 * configure.ac (check dynamic export flag): Link python test with
2599 $PYTHON_LIBS.
2600
cc81e1c6
DE
26012013-03-11 Doug Evans <dje@google.com>
2602 Keith Seitz <keiths@redhat.com>
2603
2604 * linespec.c (find_linespec_symbols): Call find_function_symbols
2605 first, and then call lookup_prefix_sym/find_method.
2606
39086a0e
PA
26072013-03-11 Pedro Alves <palves@redhat.com>
2608
2609 * charset.c (convert_between_encodings): Don't cast between
2610 different pointer to pointer types. Instead, make the 'inp' local
2611 be of the type iconv expects.
2612 (wchar_iterate): Don't cast between different pointer to pointer
2613 types. Instead, use new pointer local of the type iconv expects.
2614 * target.c (target_read_stralloc, target_fileio_read_stralloc):
2615 Add new local of type char pointer, and use it to get a
2616 char/string view of the byte buffer, instead of casting between
2617 pointer to pointer types.
2618
90585175
HAQ
26192013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
2620
2621 * remote.c (remote_set_trace_buffer_size): Move != operator
2622 to the start of next line to fix an ARI warning.
2623
59ea5688
MM
26242013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2625
2626 * NEWS: Add record changes.
2627
946287b7
MM
26282013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2629
2630 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
2631 the instruction history disassembly.
2632 * disasm.c (dump_insns): Omit the pc prefix, if requested.
2633 * disasm.h (DISASSEMBLY_OMIT_PC): New.
2634
afedecd3
MM
26352013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2636
2637 * Makefile.in (SFILES): Add record-btrace.c
2638 (COMMON_OBS): Add record-btrace.o
2639 * record-btrace.c: New.
2640 * objfiles.c: Include btrace.h.
2641 (free_objfile): call btrace_free_objfile.
2642
15984c13
MM
26432013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2644
2645 * target.c (target_call_history, target_call_history_from,
2646 target_call_history_range): New.
2647 * target.h (target_ops) <to_call_history, to_call_history_from,
2648 to_call_history_range>: New fields.
2649 (target_call_history, target_call_history_from,
2650 target_call_history_range): New declaration.
2651 * record.c (get_call_history_modifiers, cmd_record_call_history,
2652 record_call_history_size): New.
2653 (_initialize_record): Add the "record function-call-history" command.
2654 Add "set/show record function-call-history-size" commands.
2655 * record.h (record_print_flag): New.
2656
67c86d06
MM
26572013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2658
2659 * target.h (target_ops) <to_insn_history, to_insn_history_from,
2660 to_insn_history_range>: New fields.
2661 (target_insn_history): New.
2662 (target_insn_history_from): New.
2663 (target_insn_history_range): New.
2664 * target.c (target_insn_history): New.
2665 (target_insn_history_from): New.
2666 (target_insn_history_range): New.
2667 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
2668 (record_insn_history_size): New.
2669 (get_insn_number): New.
2670 (get_context_size): New.
2671 (no_chunk): New.
2672 (get_insn_history_modifiers): New.
2673 (cmd_record_insn_history): New.
2674 (_initialize_record): Add "set/show record instruction-history-size"
2675 command. Add "record instruction-history" command.
2676
7c1687a9
MM
26772013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2678
2679 * record.h (record_disconnect): New.
2680 (record_detach): New.
2681 (record_mourn_inferior): New.
2682 (record_kill): New.
2683 * record-full.c (record_disconnect, record_detach,
2684 record_mourn_inferior, record_kill): Move to...
2685 * record.c: ...here.
2686 (DEBUG): New.
2687 (record_stop): New.
2688 (record_unpush): New.
2689 (cmd_record_stop): Call record_stop. Replace unpush_target
2690 call with record_unpush call.
2691 (record_disconnect, record_detach): Assert that the target
2692 is of record stratum. Call record_unpush, record_stop, and
2693 DEBUG.
2694 (record_mourn_inferior, record_kill): Assert that the target
2695 is of record stratum. Call record_unpush and DEBUG.
2696
25ea693b
MM
26972013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2698
2699 * record-full.h, record-full.c (record_memory_query): Rename
2700 to ...
2701 (record_full_memory_query): ...this. Update all users.
2702 (record_arch_list_add_reg): Rename to ...
2703 (record_full_arch_list_add_reg): ...this. Update all users.
2704 (record_arch_list_add_mem): Rename to ...
2705 (record_full_arch_list_add_mem): ...this. Update all users.
2706 (record_arch_list_add_end): Rename to ...
2707 (record_full_arch_list_add_end): ...this. Update all users.
2708 (record_gdb_operation_disable_set): Rename to ...
2709 (record_full_gdb_operation_disable_set): ...this.
2710 Update all users.
2711
88d1aa9d
MM
27122013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2713
2714 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
2715 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
2716 (RECORD_IS_REPLAY): Renamed to ...
2717 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
2718 (RECORD_FILE_MAGIC): Renamed to ...
2719 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
2720 (record_mem_entry): Renamed to ...
2721 (record_full_mem_entry): ... this. Updated all users.
2722 (record_reg_entry): Renamed to ...
2723 (record_full_reg_entry): ... this. Updated all users.
2724 (record_end_entry): Renamed to ...
2725 (record_full_end_entry): ... this. Updated all users.
2726 (record_type) <record_end, record_reg, record_mem>: Renamed
2727 to ...
2728 (record_full_type) <record_full_end, record_full_reg,
2729 record_full_mem>: ... this. Updated all users.
2730 (record_entry): Renamed to ...
2731 (record_full_entry): ... this. Updated all users.
2732 (record_core_buf_entry): Renamed to ...
2733 (record_full_core_buf_entry): ... this. Updated all users.
2734 (record_core_regbuf): Renamed to ...
2735 (record_full_core_regbuf): ... this. Updated all users.
2736 (record_core_start): Renamed to ...
2737 (record_full_core_start): ... this. Updated all users.
2738 (record_core_end): Renamed to ...
2739 (record_full_core_end): ... this. Updated all users.
2740 (record_core_buf_list): Renamed to ...
2741 (record_full_core_buf_list): ... this. Updated all users.
2742 (record_first): Renamed to ...
2743 (record_full_first): ... this. Updated all users.
2744 (record_list): Renamed to ...
2745 (record_full_list): ... this. Updated all users.
2746 (record_arch_list_head): Renamed to ...
2747 (record_full_arch_list_head): ... this. Updated all users.
2748 (record_arch_list_tail): Renamed to ...
2749 (record_full_arch_list_tail): ... this. Updated all users.
2750 (record_stop_at_limit): Renamed to ...
2751 (record_full_stop_at_limit): ... this. Updated all users.
2752 (record_insn_max_num): Renamed to ...
2753 (record_full_insn_max_num): ... this. Updated all users.
2754 (record_insn_num): Renamed to ...
2755 (record_full_insn_num): ... this. Updated all users.
2756 (record_insn_count): Renamed to ...
2757 (record_full_insn_count): ... this. Updated all users.
2758 (record_ops): Renamed to ...
2759 (record_full_ops): ... this. Updated all users.
2760 (record_core_ops): Renamed to ...
2761 (record_full_core_ops): ... this. Updated all users.
2762 (set_record_cmdlist): Renamed to ...
2763 (set_record_full_cmdlist): ... this. Updated all users.
2764 (show_record_cmdlist): Renamed to ...
2765 (show_record_full_cmdlist): ... this. Updated all users.
2766 (record_cmdlist): Renamed to ...
2767 (record_full_cmdlist): ... this. Updated all users.
2768 (record_beneath_to_resume_ops): Renamed to ...
2769 (record_full_beneath_to_resume_ops): ... this. Updated all users.
2770 (record_beneath_to_resume): Renamed to ...
2771 (record_full_beneath_to_resume): ... this. Updated all users.
2772 (record_beneath_to_wait_ops): Renamed to ...
2773 (record_full_beneath_to_wait_ops): ... this. Updated all users.
2774 (record_beneath_to_wait): Renamed to ...
2775 (record_full_beneath_to_wait): ... this. Updated all users.
2776 (record_beneath_to_store_registers_ops): Renamed to ...
2777 (record_full_beneath_to_store_registers_ops): ... this.
2778 Updated all users.
2779 (record_beneath_to_store_registers): Renamed to ...
2780 (record_full_beneath_to_store_registers): ... this.
2781 Updated all users.
2782 (record_beneath_to_xfer_partial_ops): Renamed to ...
2783 (record_full_beneath_to_xfer_partial_ops): ... this.
2784 Updated all users.
2785 (record_beneath_to_xfer_partial): Renamed to ...
2786 (record_full_beneath_to_xfer_partial): ... this.
2787 Updated all users.
2788 (record_beneath_to_insert_breakpoint): Renamed to ...
2789 (record_full_beneath_to_insert_breakpoint): ... this.
2790 Updated all users.
2791 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
2792 (record_full_beneath_to_stopped_by_watchpoint): ... this.
2793 Updated all users.
2794 (record_beneath_to_stopped_data_address): Renamed to ...
2795 (record_full_beneath_to_stopped_data_address): ... this.
2796 Updated all users.
2797 (record_beneath_to_async): Renamed to ...
2798 (record_full_beneath_to_async): ... this. Updated all users.
2799 (record_goto_insn): Renamed to ...
2800 (record_full_goto_insn): ... this. Updated all users.
2801 (record_save): Renamed to ...
2802 (record_full_save): ... this. Updated all users.
2803 (record_reg_alloc): Renamed to ...
2804 (record_full_reg_alloc): ... this. Updated all users.
2805 (record_reg_release): Renamed to ...
2806 (record_full_reg_release): ... this. Updated all users.
2807 (record_mem_alloc): Renamed to ...
2808 (record_full_mem_alloc): ... this. Updated all users.
2809 (record_mem_release): Renamed to ...
2810 (record_full_mem_release): ... this. Updated all users.
2811 (record_end_alloc): Renamed to ...
2812 (record_full_end_alloc): ... this. Updated all users.
2813 (record_end_release): Renamed to ...
2814 (record_full_end_release): ... this. Updated all users.
2815 (record_entry_release): Renamed to ...
2816 (record_full_entry_release): ... this. Updated all users.
2817 (record_list_release): Renamed to ...
2818 (record_full_list_release): ... this. Updated all users.
2819 (record_list_release_following): Renamed to ...
2820 (record_full_list_release_following): ... this.
2821 Updated all users.
2822 (record_list_release_first): Renamed to ...
2823 (record_full_list_release_first): ... this. Updated all users.
2824 (record_arch_list_add): Renamed to ...
2825 (record_full_arch_list_add): ... this. Updated all users.
2826 (record_get_loc): Renamed to ...
2827 (record_full_get_loc): ... this. Updated all users.
2828 (record_check_insn_num): Renamed to ...
2829 (record_full_check_insn_num): ... this. Updated all users.
2830 (record_arch_list_cleanups): Renamed to ...
2831 (record_full_arch_list_cleanups): ... this. Updated all users.
2832 (record_message): Renamed to ...
2833 (record_full_message): ... this. Updated all users.
2834 (record_message_wrapper): Renamed to ...
2835 (record_full_message_wrapper): ... this. Updated all users.
2836 (record_message_wrapper_safe): Renamed to ...
2837 (record_full_message_wrapper_safe): ... this. Updated all users.
2838 (record_gdb_operation_disable): Renamed to ...
2839 (record_full_gdb_operation_disable): ... this. Updated all users.
2840 (record_hw_watchpoint): Renamed to ...
2841 (record_full_hw_watchpoint): ... this. Updated all users.
2842 (record_exec_insn): Renamed to ...
2843 (record_full_exec_insn): ... this. Updated all users.
2844 (record_restore): Renamed to ...
2845 (record_full_restore): ... this. Updated all users.
2846 (record_async_inferior_event_token): Renamed to ...
2847 (record_full_async_inferior_event_token): ... this.
2848 Updated all users.
2849 (record_async_inferior_event_handler): Renamed to ...
2850 (record_full_async_inferior_event_handler): ... this.
2851 Updated all users.
2852 (record_core_open_1): Renamed to ...
2853 (record_full_core_open_1): ... this. Updated all users.
2854 (record_open_1): Renamed to ...
2855 (record_full_open_1): ... this. Updated all users.
2856 (record_open): Renamed to ...
2857 (record_full_open): ... this. Updated all users.
2858 (record_close): Renamed to ...
2859 (record_full_close): ... this. Updated all users.
2860 (record_resume_step): Renamed to ...
2861 (record_full_resume_step): ... this. Updated all users.
2862 (record_resumed): Renamed to ...
2863 (record_full_resumed): ... this. Updated all users.
2864 (record_execution_dir): Renamed to ...
2865 (record_full_execution_dir): ... this. Updated all users.
2866 (record_resume): Renamed to ...
2867 (record_full_resume): ... this. Updated all users.
2868 (record_get_sig): Renamed to ...
2869 (record_full_get_sig): ... this. Updated all users.
2870 (record_sig_handler): Renamed to ...
2871 (record_full_sig_handler): ... this. Updated all users.
2872 (record_wait_cleanups): Renamed to ...
2873 (record_full_wait_cleanups): ... this. Updated all users.
2874 (record_wait_1): Renamed to ...
2875 (record_full_wait_1): ... this. Updated all users.
2876 (record_wait): Renamed to ...
2877 (record_full_wait): ... this. Updated all users.
2878 (record_stopped_by_watchpoint): Renamed to ...
2879 (record_full_stopped_by_watchpoint): ... this. Updated all users.
2880 (record_disconnect): Renamed to ...
2881 (record_full_disconnect): ... this. Updated all users.
2882 (record_detach): Renamed to ...
2883 (record_full_detach): ... this. Updated all users.
2884 (record_mourn_inferior): Renamed to ...
2885 (record_full_mourn_inferior): ... this. Updated all users.
2886 (record_kill): Renamed to ...
2887 (record_full_kill): ... this. Updated all users.
2888 (record_stopped_data_address): Renamed to ...
2889 (record_full_stopped_data_address): ... this. Updated all users.
2890 (record_registers_change): Renamed to ...
2891 (record_full_registers_change): ... this. Updated all users.
2892 (record_store_registers): Renamed to ...
2893 (record_full_store_registers): ... this. Updated all users.
2894 (record_xfer_partial): Renamed to ...
2895 (record_full_xfer_partial): ... this. Updated all users.
2896 (record_breakpoint): Renamed to ...
2897 (record_full_breakpoint): ... this. Updated all users.
2898 (record_breakpoint_p): Renamed to ...
2899 (record_full_breakpoint_p): ... this. Updated all users.
2900 (record_breakpoints): Renamed to ...
2901 (record_full_breakpoints): ... this. Updated all users.
2902 (record_sync_record_breakpoints): Renamed to ...
2903 (record_full_sync_record_breakpoints): ... this.
2904 Updated all users.
2905 (record_init_record_breakpoints): Renamed to ...
2906 (record_full_init_record_breakpoints): ... this.
2907 Updated all users.
2908 (record_insert_breakpoint): Renamed to ...
2909 (record_full_insert_breakpoint): ... this. Updated all users.
2910 (record_remove_breakpoint): Renamed to ...
2911 (record_full_remove_breakpoint): ... this. Updated all users.
2912 (record_can_execute_reverse): Renamed to ...
2913 (record_full_can_execute_reverse): ... this. Updated all users.
2914 (record_get_bookmark): Renamed to ...
2915 (record_full_get_bookmark): ... this. Updated all users.
2916 (record_goto_bookmark): Renamed to ...
2917 (record_full_goto_bookmark): ... this. Updated all users.
2918 (record_async): Renamed to ...
2919 (record_full_async): ... this. Updated all users.
2920 (record_can_async_p): Renamed to ...
2921 (record_full_can_async_p): ... this. Updated all users.
2922 (record_is_async_p): Renamed to ...
2923 (record_full_is_async_p): ... this. Updated all users.
2924 (record_execution_direction): Renamed to ...
2925 (record_full_execution_direction): ... this. Updated all users.
2926 (record_info): Renamed to ...
2927 (record_full_info): ... this. Updated all users.
2928 (record_delete): Renamed to ...
2929 (record_full_delete): ... this. Updated all users.
2930 (record_is_replaying): Renamed to ...
2931 (record_full_is_replaying): ... this. Updated all users.
2932 (record_goto_entry): Renamed to ...
2933 (record_full_goto_entry): ... this. Updated all users.
2934 (record_goto_begin): Renamed to ...
2935 (record_full_goto_begin): ... this. Updated all users.
2936 (record_goto_end): Renamed to ...
2937 (record_full_goto_end): ... this. Updated all users.
2938 (record_goto): Renamed to ...
2939 (record_full_goto): ... this. Updated all users.
2940 (init_record_ops): Renamed to ...
2941 (init_record_full_ops): ... this. Updated all users.
2942 (record_core_resume): Renamed to ...
2943 (record_full_core_resume): ... this. Updated all users.
2944 (record_core_kill): Renamed to ...
2945 (record_full_core_kill): ... this. Updated all users.
2946 (record_core_fetch_registers): Renamed to ...
2947 (record_full_core_fetch_registers): ... this. Updated all users.
2948 (record_core_prepare_to_store): Renamed to ...
2949 (record_full_core_prepare_to_store): ... this. Updated all users.
2950 (record_core_store_registers): Renamed to ...
2951 (record_full_core_store_registers): ... this. Updated all users.
2952 (record_core_xfer_partial): Renamed to ...
2953 (record_full_core_xfer_partial): ... this. Updated all users.
2954 (record_core_insert_breakpoint): Renamed to ...
2955 (record_full_core_insert_breakpoint): ... this. Updated all users.
2956 (record_core_remove_breakpoint): Renamed to ...
2957 (record_full_core_remove_breakpoint): ... this. Updated all users.
2958 (record_core_has_execution): Renamed to ...
2959 (record_full_core_has_execution): ... this. Updated all users.
2960 (init_record_core_ops): Renamed to ...
2961 (init_record_full_core_ops): ... this. Updated all users.
2962 (cmd_record_restore): Renamed to ...
2963 (cmd_record_full_restore): ... this. Updated all users.
2964 (record_save_cleanups): Renamed to ...
2965 (record_full_save_cleanups): ... this. Updated all users.
2966 (cmd_record_start): Renamed to ...
2967 (cmd_record_full_start): ... this. Updated all users.
2968 (set_record_insn_max_num): Renamed to ...
2969 (set_record_full_insn_max_num): ... this. Updated all users.
2970 (set_record_command): Renamed to ...
2971 (set_record_full_command): ... this. Updated all users.
2972 (show_record_command): Renamed to ...
2973 (show_record_full_command): ... this. Updated all users.
2974 (_initialize_record): Renamed to ...
2975 (_initialize_record_full): ... this. Updated all users.
2976
d02ed0bb
MM
29772013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2978
2979 * record.h: Split into this and ...
2980 * record-full.h: ... this.
2981 * record.c: Split into this and ...
2982 * record-full.c: ... this.
2983 * target.h (target_ops): Add new fields to_info_record,
2984 to_save_record, to_delete_record, to_record_is_replaying,
2985 to_goto_record_begin, to_goto_record_end, to_goto_record.
2986 (target_info_record): New.
2987 (target_save_record): New.
2988 (target_supports_delete_record): New.
2989 (target_delete_record): New.
2990 (target_record_is_replaying): New.
2991 (target_goto_record_begin): New.
2992 (target_goto_record_end): New.
2993 (target_goto_record): New.
2994 * target.c (target_info_record): New.
2995 (target_save_record): New.
2996 (target_supports_delete_record): New.
2997 (target_delete_record): New.
2998 (target_record_is_replaying): New.
2999 (target_goto_record_begin): New.
3000 (target_goto_record_end): New.
3001 (target_goto_record): New.
3002 * record.h: Declare struct cmd_list_element.
3003 (record_cmdlist): New declaration.
3004 (set_record_cmdlist): New declaration.
3005 (show_record_cmdlist): New declaration.
3006 (info_record_cmdlist): New declaration.
3007 (cmd_record_goto): New declaration.
3008 * record.c: Remove unnecessary includes.
3009 Include inferior.h.
3010 (cmd_record_goto): Remove declaration.
3011 (record_cmdlist): Now extern. Initialize.
3012 (set_record_cmdlist): Now extern. Initialize.
3013 (show_record_cmdlist): Now extern. Initialize.
3014 (info_record_cmdlist): Now extern. Initialize.
3015 (find_record_target): New.
3016 (require_record_target): New.
3017 (cmd_record_start): Update.
3018 (cmd_record_delete): Remove target-specific code.
3019 Call target_delete_record.
3020 (cmd_record_stop): Unpush any record target.
3021 (set_record_insn_max_num): Move to record-full.c
3022 (set_record_command): Add comment.
3023 (show_record_command): Add comment.
3024 (info_record_command): Update comment.
3025 Remove target-specific code.
3026 Call the record target's to_info_record.
3027 (cmd_record_start): New.
3028 (cmd_record_goto): Now extern.
3029 Remove target-specific code.
3030 Call target_goto_begin, target_goto_end, or target_goto.
3031 (_initialize_record): Move record target ops initialization to
3032 record-full.c.
3033 Change "record" command help text.
3034 Move "record restore", "record set", and "record show" commands to
3035 record-full.c.
3036 * Makefile.in (SFILES): Add record-full.c.
3037 (HFILES_NO_SRCDIR): Add record-full.h.
3038 (COMMON_OBS): Add record-full.o.
3039 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
3040 * arm-tdep.c: Include record-full.h.
3041 * i386-linux-tdep.c: Include record-full.h instead of record.h.
3042 * i386-tdep.c: Include record-full.h.
3043 * infrun.c: Include record-full.h.
3044 * linux-record.c: Include record-full.h.
3045 * moxie-tdep.c: Include record-full.h.
3046 * record-full.c: Include record-full.h.
3047 Change module comment.
3048 (set_record_full_cmdlist): New.
3049 (show_record_full_cmdlist): New.
3050 (record_full_cmdlist): New.
3051 (record_goto_insn): New declaration.
3052 (record_save): New declaration.
3053 (record_check_insn_num): Change query string.
3054 (record_info): New.
3055 (record_delete): New.
3056 (record_is_replaying): New.
3057 (record_goto_entry): New.
3058 (record_goto_begin): New.
3059 (record_goto_end): New.
3060 (record_goto): New.
3061 (init_record_ops): Update.
3062 (init_record_core_ops): Update.
3063 (cmd_record_save): Rename to record_save. Remove target and arg checks.
3064 (cmd_record_start): New.
3065 (set_record_insn_max_num): Moved from record.c
3066 (set_record_full_command): New.
3067 (show_record_full_command): New.
3068 (_initialize_record_full): New.
3069
b48d48eb
MM
30702013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3071
3072 * target.h (add_deprecated_target_alias): New.
3073 * target.c (add_deprecated_target_alias): New.
3074
a950d57c
MM
30752013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3076
3077 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
3078 and signal.h.
3079 (linux_supports_btrace): Add kernel and
3080 cpuid check.
3081 (kernel_supports_btrace): New function.
3082 (cpu_supports_btrace): New function.
3083 (intel_supports_btrace): New function.
3084
9accd112
MM
30852013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3086
3087 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
3088 * remote.c: Include btrace.h.
3089 (struct btrace_target_info): New struct.
3090 (remote_supports_btrace): New function.
3091 (send_Qbtrace): New function.
3092 (remote_enable_btrace): New function.
3093 (remote_disable_btrace): New function.
3094 (remote_teardown_btrace): New function.
3095 (remote_read_btrace): New function.
3096 (init_remote_ops): Add btrace ops.
3097 (enum <unnamed>): Add btrace packets.
3098 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
3099 (_initialize_remote): Add packet configuration for branch tracing.
3100
c12a2917
MM
31012013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3102
3103 * features/btrace.dtd: New file.
3104 * Makefile.in (XMLFILES): Add btrace.dtd.
3105 * btrace.h (parse_xml_btrace): New declaration.
3106 * btrace.c: Include xml-support.h.
3107 (parse_xml_btrace): New function.
3108 (parse_xml_btrace_block): New function.
3109 (block_attributes): New struct.
3110 (btrace_attributes): New struct.
3111 (btrace_children): New struct.
3112 (btrace_elements): New struct.
3113
3e3aea48
MM
31142013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3115
3116 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
3117 (amd64_linux_enable_btrace): New.
3118 (amd64_linux_disable_btrace): New.
3119 (amd64_linux_teardown_btrace): New.
3120 (_initialize_amd64_linux_nat): Initialize btrace ops.
3121 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
3122 (i386_linux_enable_btrace): New.
3123 (i386_linux_disable_btrace): New.
3124 (i386_linux_teardown_btrace): New.
3125 (_initialize_i386_linux_nat): Initialize btrace ops.
3126 * config/i386/linux.mh: Add linux-btrace.o.
3127 * config/i386/linux64.mh: Add linux-btrace.o.
3128
7c97f91e
MM
31292013-03-11 Markus Metzger <markus.t.metzger@intel.com>
3130
3131 * common/linux_btrace.h: New file.
3132 * common/linux_btrace.c: New file.
3133 * Makefile.in (SFILES): Add btrace.c.
3134 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
3135 (COMMON_OBS): Add btrace.o.
3136 (linux-btrace.o): New rule.
3137
1999790b 31382013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
3139
3140 * target.h: Include btrace.h.
3141 (struct target_ops) <to_supports_btrace, to_enable_btrace,
3142 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
3143 * target.c (target_supports_btrace): New function.
3144 (target_enable_btrace): New function.
3145 (target_disable_btrace): New function.
3146 (target_teardown_btrace): New function.
3147 (target_read_btrace): New function.
3148 * btrace.h: New file.
3149 * btrace.c: New file.
3150 * Makefile.in: Add btrace.c.
3151 * gdbthread.h: Include btrace.h.
3152 (struct thread_info): Add btrace field.
3153 * thread.c: Include btrace.h.
3154 (clear_thread_inferior_resources): Call target_teardown_btrace.
3155 * common/btrace-common.h: New file.
3156
61a31a67
JK
31572013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3158
3159 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
3160 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
3161 kill_status to outer block.
3162
05c56a9d
JK
31632013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3164
3165 Fix entry-values if the callee called a noreturn function.
3166 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
3167 get_frame_address_in_block. Add new comment.
3168
9112db09
JK
31692013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
3170
3171 Fix entry-values in C++ across CUs.
3172 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
3173 lookup_minimal_symbol. Add a comment.
3174 * dwarf2read.c
3175 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
3176 DW_AT_linkage_name.
3177
9b67fcec
YQ
31782013-03-08 Yao Qi <yao@codesourcery.com>
3179
3180 * tracepoint.c (_initialize_tracepoint): Indent the code.
3181
6221be90
PA
31822013-03-08 Pedro Alves <palves@redhat.com>
3183
3184 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
3185 (parse_find_args, find_command): Change type of pattern buffer
3186 locals to 'gdb_byte *'.
3187
be9a119c 31882013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
3189 Hafiz Abid Qadeer <abidh@codesourcery.com>
3190
3191 * NEWS: Mention set and show trace-buffer-size commands.
3192 Mention new packet.
3193 * target.h (struct target_ops): New method
3194 to_set_trace_buffer_size.
3195 (target_set_trace_buffer_size): New macro.
3196 * target.c (update_current_target): Set up new method.
3197 * tracepoint.c (trace_buffer_size): New global.
3198 (start_tracing): Send it to the target.
3199 (set_trace_buffer_size): New function.
3200 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
3201 * remote.c (remote_set_trace_buffer_size): New function.
3202 (_initialize_remote): Use it.
3203 (QTBuffer:size) New remote command.
3204 (PACKET_QTBuffer_size): New enum.
3205 (remote_protocol_features): Add an entry for
3206 PACKET_QTBuffer_size.
3207
7da3ab79
TT
32082013-03-08 Tom Tromey <tromey@redhat.com>
3209
3210 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
3211 variable.
3212
0c1f71e7
PA
32132013-03-07 Pedro Alves <palves@redhat.com>
3214
3215 * target.c (target_read_stralloc, target_fileio_read_alloc):
3216 *Cast pointer to 'gdb_byte *' in target call.
3217
c8af03a2
PA
32182013-03-07 Pedro Alves <palves@redhat.com>
3219
3220 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
3221 call.
3222
529480d0
KS
32232013-03-07 Keith Seitz <keiths@redhat.com>
3224
3225 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
3226 (trace_pass_command): Likewise.
3227 * cli/cli-cmds.c: Include cli/cli-utils.h.
3228 (source_command): Use skip-spaces.
3229 (disassemble_command): Likewise.
3230 * findcmd.c: Include cli/cli-utils.h.
3231 (parse_find_args): Use skip_spaces.
3232 * go32-nat.c: Include cli/cli-utils.h.
3233 (go32_sldt): Use skip_spaces.
3234 (go32_sgdt): Likewise.
3235 (go32_sidt): Likewise.
3236 (go32_pde): Likewise.
3237 (go32_pte): Likewise.
3238 (go32_pte_for_address): Likewise.
3239 * infcmd.c: Include cli/cli-utils.h.
3240 (registers_info): Use skip_spaces.
3241 * linux-tdep.c (read_mapping): Use skip_spaces_const.
3242 (linux_info_proc): Likewise.
3243 * linux-thread-db.c: Include cli/cli-utils.h.
3244 (info_auto_load_libthread_db): Use skip_spaces_const.
3245 * m32r-rom.c: Include cli/cli-utils.h.
3246 (m32r_upload_command): Use skip_spaces.
3247 * maint.c: Include cli/cli-utils.h.
3248 (maintenance_translate_address): Use skip_spaces.
3249 * mi/mi-parse.c: Include cli/cli-utils.h.
3250 (mi_parse_argv): Use skip_spaces.
3251 (mi_parse): Likewise.
3252 * minsyms.c: Include cli/cli-utils.h.
3253 (msymbol_hash_iw): Use skip_spaces_const.
3254 * objc-lang.c: Include cli/cli-utils.h.
3255 (parse_selector): Use skip_spaces.
3256 (parse_method): Likewise.
3257 * python/python.c: Include cli/cli-utils.h.
3258 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
3259 (python_command)[HAVE_PYTHON]: Likewise.
3260 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
3261 * remote-m32r-sdi.c: Include cli/cli-utils.h.
3262 (m32r_load): Use skip_spaces.
3263 * serial.c: Include cli/cli-utils.h.
3264 (serial_open): Use skip_spaces_const.
3265 * stack.c: Include cli/cli-utils.h.
3266 (parse_frame_specification_1): Use skip_spaces_const.
3267 * symfile.c: Include cli/cli-utils.h.
3268 (set_ext_lang_command): Use skip_spaces.
3269 * symtab.c: Include cli/cli-utils.h.
3270 (rbreak_command): Use skip_spaces.
3271 * thread.c (thread_name_command): Use skip_spaces.
3272 * tracepoint.c (validate_actionline): Use skip_spaces.
3273 (encode_actions_1): Likewise.
3274 (trace_find_range_command): Likewise.
3275 (trace_find_outside_command): Likewise.
3276 (trace_dump_actions): Likewise.
3277
ac91cd70
PA
32782013-03-07 Pedro Alves <palves@redhat.com>
3279
3280 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
3281 * expprint.c (print_subexp_standard): Likewise.
3282 * utils.c (host_char_to_target): Likewise.
3283 * valprint.c (generic_emit_char, generic_printstr): Likewise.
3284 * varobj.c (value_get_print_value): Change type of local to char*.
3285 Cast it gdb_byte * in call to language printer.
3286
2898e560
PA
32872013-03-07 Pedro Alves <palves@redhat.com>
3288
3289 * charset.c (struct wchar_iterator) <input>: Change type to 'const
3290 gdb_byte *'.
3291 (make_wchar_iterator): Remove cast to char*.
3292 (wchar_iterate): Change type of local.
3293
a09b4448
PA
32942013-03-07 Pedro Alves <palves@redhat.com>
3295
3296 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
3297 for 'regcache->register_status'.
3298
20ced3e4
PA
32992013-03-07 Pedro Alves <palves@redhat.com>
3300
c2d6a675 3301 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
3302 int.
3303
fe106009
PA
33042013-03-07 Pedro Alves <palves@redhat.com>
3305
3306 * stap-probe.c (handle_stap_probe): Add cast to char*.
3307
8ac2c12b
PA
33082013-03-07 Pedro Alves <palves@redhat.com>
3309
3310 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
3311 RECORD_MSGRCV>: Pass a signed variable to
3312 regcache_raw_read_signed, instead of an unsigned one.
3313
99f0a309
PA
33142013-03-07 Pedro Alves <palves@redhat.com>
3315
3316 * remote-notif.c (notif_debug): Change type to int.
3317 * remote-notif.h (notif_debug): Likewise.
3318
964b8317
PA
33192013-03-07 Pedro Alves <palves@redhat.com>
3320
3321 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
3322
f0cc8ad4
PA
33232013-03-07 Pedro Alves <palves@redhat.com>
3324
3325 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
3326 * remote.h (hex2bin, bin2hex): ... here.
3327 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
3328
77dec115
EZ
33292013-03-07 Eli Zaretskii <eliz@gnu.org>
3330
3331 * utils.c (initialize_utils): Improve doc strings of "set/show
3332 width", "set/show height", and "set/show pagination".
3333
741d92cf
KS
33342013-03-06 Keith Seitz <keiths@redhat.com>
3335
3336 * ax-gdb.c (gen_printf): Make FORMAT const.
3337 * ax-gdb.h (gen_printf): Likewise.
3338 * ax-general.c (ax_string): Make STR const.
3339 * ax.h (ax_string): Likewise.
3340
7b6c814e
DE
33412013-03-06 Doug Evans <dje@google.com>
3342
3343 * elfread.c (elf_symfile_read): Move debugging printf to more
3344 logical location.
3345
634334ab
PA
33462013-03-06 Pedro Alves <palves@redhat.com>
3347
3348 * python/py-utils.c (target_string_to_unicode): Delete function.
3349 * python/python-internal.h (target_string_to_unicode): Delete
3350 declaration.
3351
e482a1a7
PM
33522013-03-06 Pierre Muller <muller@sourceware.org>
3353
3354 * linespec.c (get_current_search_block): ARI fix, use (void)
3355 for empty parameter list.
3356
4eeaa230
DE
33572013-03-05 Doug Evans <dje@google.com>
3358
3359 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
3360 of old ada_lookup_symbol_list. In !full_search case, don't
3361 search superblocks.
3362 (ada_lookup_symbol_list): Delete arg full_search, all callers
3363 updated. Call ada_lookup_symbol_list_worker.
3364 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
3365 * ada-lang.h (ada_lookup_symbol_list): Update.
3366 * language.h (language_defn): Update comment for
3367 la_iterate_over_symbols.
3368 * linespec.c (iterate_over_file_blocks): New function.
3369 (iterate_over_all_matching_symtabs): Call it.
3370 (lookup_prefix_sym): Ditto.
3371 (get_current_search_block): New function.
3372 (get_search_block): Delete.
3373 (find_label_symbols): Call get_current_search_block.
3374 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
3375 * symtab.c (iterate_over_symbols): Don't search superblocks.
3376
b69b1fb1
YQ
33772013-03-05 Yao Qi <yao@codesourcery.com>
3378
3379 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
3380 parameter VAR's type from "unsigned int" to "int".
3381 * command.h (var_zuinteger_unlimited): Update its comments.
3382 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
3383
3c095f49
CV
33842013-03-05 Corinna Vinschen <vinschen@redhat.de>
3385
3386 * NEWS: Mention new target x86_64-*-cygwin*.
3387
b5b0b0af
CV
33882013-03-05 Corinna Vinschen <vinschen@redhat.de>
3389
3390 * configure.host: Add x86_64-*-cygwin* as host.
3391 * configure.tgt: Add x86_64-*-cygwin* as target.
3392 * config/i386/cygwin64.mh: New file.
3393
f6f99966
JK
33942013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3395
3396 * linespec.c (decode_line_2): Fix duplicate request off by two message.
3397
33f448b1
JK
33982013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3399
3400 * linespec.c (struct linespec_canonical_name): New.
3401 (struct linespec_state): Change canonical_names type to it.
3402 (add_sal_to_sals): Change variable canonical_name to canonical. Change
3403 xrealloc element size. Initialize the different CANONICAL fields.
3404 (canonical_to_fullform): New.
3405 (filter_results): Use it. Add variables canonical, fullform and
3406 cleanup.
3407 (struct decode_line_2_item, decode_line_2_compare_items): New.
3408 (decode_line_2): Remove variables iter and item_names, add variables
3409 items and items_count. Modify the code for these new variables.
3410
feb14725
CV
34112013-03-04 Corinna Vinschen <vinschen@redhat.com>
3412
3413 * coff-pe-read.c (read_pe_exported_syms): Don't return without
3414 calling do_cleanup.
3415
e83b17ba
HZ
34162013-03-04 Luis Machado <lgustavo@codesourcery.com>
3417
3418 * tracepoint.c (build_traceframe_info): Add code for byte order.
3419
a2d13a0d
KB
34202013-03-02 Kevin Buettner <kevinb@redhat.com>
3421
8dddcae8
KB
3422 * v850-tdep.c: (v850e2_register_name): Revise system register
3423 names to match current V850E2M architecture specifications.
3424 Update register number enum comments too.
a2d13a0d 3425
d79e58d8
JW
34262013-03-01 Jiong Wang <jiwang@tilera.com>
3427 Pedro Alves <palves@redhat.com>
3428
3429 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
3430 to END_ADDR.
3431 (tilegx_skip_prologue): Limit prologue analysis to section end.
3432
c4be5165
JK
34332013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3434
3435 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
3436 use it.
3437
e362b510
PA
34382013-03-01 Pedro Alves <palves@redhat.com>
3439
3440 Use gdb_byte for bytes from the program being debugged.
3441
3442 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
3443 Change type of local 'buf' to gdb_byte.
3444 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
3445 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
3446 * cris-tdep.c (cris_sigcontext_addr)
3447 (cris_sigtramp_frame_unwind_cache): Likewise.
3448 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
3449 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
3450 Likewise.
3451 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
3452 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
3453 (hppa32_hpux_search_dummy_call_sequence)
3454 (hppa_hpux_supply_save_state): Likewise.
3455 * hppa-linux-tdep.c (insns_match_pattern)
3456 (hppa_linux_find_global_pointer): Likewise.
3457 * hppa-tdep.c (hppa_in_function_epilogue_p)
3458 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
3459 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
3460 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
3461 (i386fbsd_collect_uthread): Likewise.
3462 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
3463 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
3464 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
3465 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
3466 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
3467 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
3468 (ia64_libunwind_frame_prev_register)
3469 (ia64_libunwind_sigtramp_frame_this_id)
3470 (ia64_find_global_pointer_from_dynamic_section)
3471 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
3472 (ia64_unwind_pc): Likewise.
3473 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
3474 * m68hc11-tdep.c (m68hc11_push_dummy_call)
3475 (m68hc11_extract_return_value): Likewise.
3476 * m68klinux-nat.c (fetch_register, store_register): Likewise.
3477 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
3478 (mep_get_insn, mep_push_dummy_call): Likewise.
3479 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
3480 (mips_linux_in_dynsym_stub): Likewise.
3481 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
3482 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
3483 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
3484 to gdb_byte.
3485 * remote-mips.c (mips_set_register): Likewise.
3486 * remote-sim.c (gdbsim_fetch_register): Likewise.
3487 * score-tdep.c (score7_fetch_inst): Change type of parameter
3488 'memblock' and local 'buf' to gdb_byte.
3489 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
3490 Change type of local 'buf' to gdb_byte. Adjust.
3491 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
3492 to gdb_byte**.
3493 (score7_analyze_prologue): Change type of 'memblock' and
3494 'memblock_ptr' locals to gdb_byte*.
3495 * sh64-tdep.c (sh64_extract_return_value)
3496 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
3497 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
3498 * solib-pa64.c (pa64_solib_create_inferior_hook)
3499 (pa64_open_symbol_file_object): Remove local 'buf'.
3500 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
3501 (som_open_symbol_file_object): Likewise.
3502 * solib-spu.c (spu_current_sos): Likewise.
3503 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
3504 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
3505 (spu_store_registers): Likewise.
3506 * target.c (debug_print_register): Likewise.
3507 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
3508 * xstormy16-tdep.c (xstormy16_store_return_value)
3509 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
3510 (xstormy16_find_jmp_table_entry): Likewise.
3511
75cc61ca 35122013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
3513
3514 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
3515 (tilegx_gdbarch_init): Install it.
3516
ddb08e9c
TT
35172013-02-28 Tom Tromey <tromey@redhat.com>
3518
3519 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
3520 PyLong_Check.
3521
62d7fb51
DE
35222013-02-28 Doug Evans <dje@google.com>
3523
3524 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
3525 * python/python.c (gdbpy_find_pc_line): Ditto.
3526
c4a9e8b4
TT
35272013-02-28 Tom Tromey <tromey@redhat.com>
3528
3529 * contrib/excheck.py: New file.
3530 * contrib/exsummary.py: New file.
3531 * contrib/gcc-with-excheck: New file.
3532
7f6a5dde
TT
35332013-02-28 Tom Tromey <tromey@redhat.com>
3534
3535 * python/python.c (gdbpy_print_stack): Call begin_line and
3536 fprintf_filtered inside TRY_CATCH.
3537
9e974e55
TT
35382013-02-28 Tom Tromey <tromey@redhat.com>
3539
3540 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
3541 inside TRY_CATCH.
3542
dd5fa3e7
TT
35432013-02-28 Tom Tromey <tromey@redhat.com>
3544
3545 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
3546 frame_object_to_frame_info inside TRY_CATCH.
3547
86a3263f
TT
35482013-02-28 Tom Tromey <tromey@redhat.com>
3549
3550 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
3551 TRY_CATCH.
3552
81b52a3a
TT
35532013-02-28 Tom Tromey <tromey@redhat.com>
3554
3555 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
3556
d50a0ce2
CV
35572013-02-27 Corinna Vinschen <vinschen@redhat.com>
3558
3559 * windows-nat.c: Throughout, fix format strings and casts of
3560 printf-like functions to avoid type related warnings on all
3561 platforms.
3562 (handle_output_debug_string): Fetch context information address
3563 from debug string using string_to_core_addr.
3564
e1f58301
JW
35652013-02-27 Jiong Wang <jiwang@tilera.com>
3566
3567 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
3568 * regformats/reg-tilegx32.dat: New.
3569
4fcd89fc
JW
35702013-02-27 Jiong Wang <jiwang@tilera.com>
3571
3572 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
3573
748d24e6
JW
35742013-02-27 Jiong Wang <jiwang@tilera.com>
3575
3576 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
3577
6c8e944d
YQ
35782013-02-27 Yao Qi <yao@codesourcery.com>
3579 Pedro Alves <palves@redhat.com>
3580
3581 * tracepoint.c (tfile_trace_find): For tfind
5f8e0b8f
MF
3582 pc/tp/range/outside, look for the next trace frame instead of
3583 always starting from frame 0.
6c8e944d 3584
acd7db30
AG
35852013-02-26 Anthony Green <green@moxielogic.com>
3586
3587 * configure.tgt: Add support for moxie-*-rtems* target.
3588
025e6dce
PA
35892013-02-25 Pedro Alves <palves@redhat.com>
3590
3591 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
3592 warning text.
3593
ca9c94ef
MR
35942013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
3595
3596 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
3597 if $fp is used as the virtual frame pointer.
3598
24c274a1
AM
35992013-02-23 Alan Modra <amodra@gmail.com>
3600
3601 * elfread.c (elf_symtab_read): Do not use udata.p here to find
3602 symbol size.
3603 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
3604 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
3605 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
3606 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
3607
bfada189
JK
36082013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
3609
3610 Code cleanup.
3611 * elfread.c (build_id_bfd_get): Make the return type const.
3612 (build_id_verify): Make the check parameter const.
3613 (build_id_to_debug_filename): Make the build_id parameter and variable
3614 data const.
3615 (find_separate_debug_file_by_buildid): Make the variable build_id const.
3616
c0355132
AM
36172013-02-21 Alan Modra <amodra@gmail.com>
3618
3619 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
3620
9f44fbc0
SCR
36212013-02-20 Siva Chandra Reddy <sivachandra@google.com>
3622
3623 Add a new method 'disassemble' to gdb.Architecture class.
3624 * python/py-arch.c (archpy_disassmble): Implementation of the
3625 new method gdb.Architecture.disassemble.
3626 (arch_object_methods): Add entry for the new method.
3627
b74ea3eb
JW
36282013-02-20 Jiong Wang <jiwang@tilera.com>
3629
3630 * MAINTAINERS (Write After Approval): Add myself to the list.
3631
61a672f1
PA
36322013-02-19 Pedro Alves <palves@redhat.com>
3633
3634 Garbage collect 'struct monitor_ops'::load_routine.
3635
3636 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
3637 * monitor.c (monitor_load): No longer call
3638 current_monitor->load_routine.
3639 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
3640 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
3641 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
3642
40e397df
PA
36432013-02-19 Pedro Alves <palves@redhat.com>
3644
3645 PR gdb/15161
3646
3647 Harmonize with generic_load.
3648
3649 * monitor.c: Include "readline/readline.h".
3650 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
3651 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
3652 long/strtol for the 'load_offset' local. Error out if no argument
3653 is given or if too many arguments are given. Tilde expand the
3654 passed in file name.
3655
f698ca8e
KT
36562013-02-19 Kai Tietz <ktietz@redhat.com>
3657
3658 PR gdb/15161
3659 * symfile.c (load_section_data): Change type of load_offset
3660 to CORE_ADDR.
3661 (generic_load): User strtoulst instead of strtoul for conversion
3662 of load_offset.
3663
3361b059
WL
36642013-02-19 Jiong Wang <jiwang@tilera.com>
3665
3666 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
3667 for return address, "lr" register, saved on stack.
3668 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
3669 after we invoke tilegx_analyze_prologue.
3670
3e9d5130
WL
36712013-02-19 Jiong Wang <jiwang@tilera.com>
3672
bb1bcd86
WL
3673 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
3674
3361b059 36752013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 3676
b74ea3eb 3677 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 3678
4aaf2503
WL
36792013-02-19 Jiong Wang <jiwang@tilera.com>
3680
b74ea3eb 3681 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
3682 (tilegx_write_pc): New function.
3683 (tilegx_cannot_reference_register): Return zero if REGNO
3684 is TILEGX_FAULTNUM_REGNUM.
3685 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
3686 (tilegx_register_name): Add handling of "faultnum" register.
3687 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
3688 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
3689 handling of TILEGX_FAULTNUM_REGNUM.
3690 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
3691
bc23a956
WL
36922013-02-19 Jiong Wang <jiwang@tilera.com>
3693
3694 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 3695 should be aligned to 64bit.
bc23a956 3696
42f45f1a
KT
36972013-02-19 Kai Tietz <ktietz@redhat.com>
3698
3699 * windows-nat.c (windows_xfer_memory): Fix debug-output
3700 for LLP64.
3701
6ce4c112
LL
37022013-02-19 Lei Liu <lei.liu2@windriver.com>
3703
3704 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
3705 Don't check DSP register number if HAVE_DSP is not set.
3706
30e8ee25
AM
37072013-02-19 Alan Modra <amodra@gmail.com>
3708
3709 * elfread.c (struct build_id): Delete. Use struct elf_build_id
3710 throughout file instead.
3711 (build_id_bfd_get): Update to use new elf_tdata build_id field.
3712 Don't xmalloc return value.
3713 (build_id_verify): Similarly. Don't xfree.
3714 (build_id_to_debug_filename): Update.
3715 (find_separate_debug_file_by_buildid): Update, don't xfree.
3716
4c9ad8c2
TT
37172013-02-18 Tom Tromey <tromey@redhat.com>
3718
3719 PR gdb/15102:
3720 * dwarf2read.c (read_subrange_type): Use result of
3721 'check_typedef'.
3722
983dc440
YQ
37232013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
3724
3725 * frame.c: Remove one extra white space after #include
3726 directive.
3727
7fb2b84a
JK
37282013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3729
3730 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
3731
edceb2a9
JK
37322013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
3733
3734 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
3735 and dir commands into an if block.
3736
e81b7af8
TT
37372013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
3738
3739 * python/py-breakpoint (struct pybp_code): Use int instead of
3740 enum type_code.
3741
f5911ea1
HAQ
37422013-02-15 Pedro Alves <pedro@codesourcery.com>
3743 Hafiz Abid Qadeer <abidh@codesourcery.com>
3744
3745 * NEWS: Mention new field "trace-file".
3746 * tracepoint.c (trace_status_mi): Output "trace-file" field.
3747 (tfile_open): Record the trace file's filename in the trace
3748 status.
3749 (tfile_files_info): Mention the name of the trace file.
3750 Check the "filename" field explicitely.
3751 (trace_status_command): Explicitely check "filename" field.
3752 (trace_find_command): Ditto.
3753 (trace_find_pc_command): Ditto.
3754 (trace_find_tracepoint_command): Ditto.
3755 (trace_find_line_command): Ditto.
3756 (trace_find_range_command): Ditto.
3757 (trace_find_outside_command): Ditto.
3758 * tracepoint.h (struct trace_status) <from_file>: Rename it
3759 to "filename" and make it hold the trace file's filename
3760 instead of a boolean.
3761 * remote.c (remote_get_trace_status): Initialize "filename"
3762 field with NULL instead of 0.
3763
796cb314
YQ
37642013-02-15 Yao Qi <yao@codesourcery.com>
3765
3766 * remote.c: Fix a typo.
3767
42e79b1d
PM
37682013-02-14 Pierre Muller <muller@sourceware.org>
3769
3770 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
3771
baea0dae
PA
37722013-02-14 Pedro Alves <palves@redhat.com>
3773
3774 * utils.c (savestring): Don't #undef it. Move function to
3775 common/common-utils.c.
3776 * common/common-utils.c: Include gdb_string.h.
3777 (savestring): Move here from utils.c.
3778 * common/common-utils.h (savestring): Declare.
3779
57c3b6ed
PA
37802013-02-14 Pedro Alves <palves@redhat.com>
3781
3782 * utils.c (savestring): Rename parameter 'size' to 'len'.
3783
d6c44983
YZ
37842013-02-14 Pedro Alves <palves@redhat.com>
3785 Yufeng Zhang <yufeng.zhang@arm.com>
3786
3787 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
3788 (aarch64_inferior_data, struct aarch64_inferior_data):
3789 Delete.
3790 (struct aarch64_process_info): New.
3791 (aarch64_process_list): New global.
3792 (aarch64_find_process_pid, aarch64_add_process)
3793 (aarch64_process_info_get): New functions.
3794 (aarch64_inferior_data_get): Delete.
3795 (aarch64_process_info_get): New function.
3796 (aarch64_forget_process): New function.
3797 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
3798 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
3799 aarch64_get_debug_reg_state.
3800 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
3801 instead of linux_nat_iterate_watchpoint_lwps.
3802 (aarch64_linux_new_fork): New function.
3803 (aarch64_linux_child_post_startup_inferior): Use
3804 aarch64_forget_process instead of aarch64_init_debug_reg_state.
3805 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
3806 (aarch64_linux_remove_hw_breakpoint)
3807 (aarch64_handle_aligned_watchpoint)
3808 (aarch64_handle_unaligned_watchpoint)
3809 (aarch64_linux_insert_watchpoint)
3810 (aarch64_linux_remove_watchpoint)
3811 (aarch64_linux_stopped_data_address): Adjust to pass the current
3812 process id to aarch64_debug_reg_state.
3813 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
3814 linux_nat_new_fork hook, and aarch64_forget_process as
3815 linux_nat_forget_process hook; remove the call to
3816 register_inferior_data_with_cleanup.
3817
4819b3f8
PA
38182013-02-14 Pedro Alves <palves@redhat.com>
3819
3820 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
3821 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
3822 lval_memory.
3823
1773c82c
HAQ
38242013-02-14 Pedro Alves <pedro@codesourcery.com>
3825 Hafiz Abid Qadeer <abidh@codesourcery.com>
3826
3827 * tracepoint.h (validate_trace_state_variable_name): Declare.
3828 * tracepoint.c (validate_trace_state_variable_name): New.
3829 (trace_variable_command): Parse the trace state variable's name
3830 without using parse_expression. Do several validations.
3831 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
3832 trace state variable's name with parse_expression. Validate it.
3833
53778a97
YQ
38342013-02-14 Yao Qi <yao@codesourcery.com>
3835
3836 * infcmd.c (breakpoint_proceeded): Remove it.
3837
7b3ae3a6
YQ
38382013-02-14 Yao Qi <yao@codesourcery.com>
3839
3840 * tracepoint.c (end_actions_pseudocommand): Make it static.
3841 (while_stepping_pseudocommand): Likewise.
3842 * tracepoint.h (end_actions_pseudocommand): Remove the
3843 declaration.
3844 (while_stepping_pseudocommand): Likewise.
3845
64580925
YQ
38462013-02-14 Yao Qi <yao@codesourcery.com>
3847
3848 * cli/cli-decode.c (help_cmd): Remove the declaration of
3849 "cmdlist".
3850 (help_all): Likewise.
3851
26cb8b7c
PA
38522013-02-13 Pedro Alves <palves@redhat.com>
3853
3854 * amd64-linux-nat.c (update_debug_registers_callback):
3855 Update comment.
3856 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
3857 iterate_over_lwps.
3858 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
3859 i386_debug_reg_state.
3860 (amd64_linux_new_fork): New function.
3861 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
3862 linux_nat_new_fork hook, and i386_forget_process as
3863 linux_nat_forget_process hook.
3864 * i386-linux-nat.c (update_debug_registers_callback):
3865 Update comment.
a8256ea1 3866 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
3867 iterate_over_lwps.
3868 (i386_linux_prepare_to_resume): Pass the lwp's pid to
3869 i386_debug_reg_state.
3870 (i386_linux_new_fork): New function.
3871 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
3872 linux_nat_new_fork hook, and i386_forget_process as
3873 linux_nat_forget_process hook.
3874 * i386-nat.c (i386_init_dregs): Delete.
3875 (i386_inferior_data, struct i386_inferior_data):
3876 Delete.
3877 (struct i386_process_info): New.
3878 (i386_process_list): New global.
3879 (i386_find_process_pid, i386_add_process, i386_process_info_get):
3880 New functions.
3881 (i386_inferior_data_get): Delete.
3882 (i386_process_info_get): New function.
3883 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
3884 (i386_forget_process): New function.
3885 (i386_cleanup_dregs): Rewrite.
3886 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
3887 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
3888 (i386_stopped_data_address, i386_insert_hw_breakpoint)
3889 (i386_remove_hw_breakpoint): Adjust to pass the current process id
3890 to i386_debug_reg_state.
3891 (i386_use_watchpoints): Don't register inferior data.
3892 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
3893 adjust comment.
3894 (i386_forget_process): Declare.
3895 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
3896 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
3897 New static globals.
3898 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
3899 (add_initial_lwp): New, factored out from ...
3900 (add_lwp): ... this. Don't check the number of lwps before
3901 calling linux_nat_new_thread.
3902 (linux_nat_iterate_watchpoint_lwps): Delete.
3903 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
3904 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
3905 forks and vforks.
3906 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
3907 initial lwp.
3908 (linux_nat_kill, linux_nat_mourn_inferior): Call
3909 linux_nat_forget_process.
3910 (linux_nat_set_new_fork, linux_nat_set_forget_process)
3911 (linux_nat_forget_process): New functions.
3912 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
3913 type.
3914 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
3915 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
3916 types.
3917 (linux_nat_set_new_fork, linux_nat_set_forget_process)
3918 (linux_nat_forget_process): New declarations.
3919
3920 * amd64fbsd-nat.c (super_mourn_inferior): New global.
3921 (amd64fbsd_mourn_inferior): New function.
3922 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
3923 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
3924
5befea72
MS
39252013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
3926
55015247
YQ
3927 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
3928 Adding _().
5befea72 3929
1d3ffd6b
MS
39302013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
3931
3932 * aarch64-linux-nat.c (debug_reg_change_callback)
3933 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
3934 %s and phex().
3935
6eb04473
MS
39362013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
3937
3938 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
3939 with LONGEST.
3940
a016fc87
HAQ
39412013-02-13 Pedro Alves <palves@redhat.com>
3942 Hafiz Abid Qadeer <abidh@codesourcery.com>
3943
3944 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
3945
e234dfaf
TT
39462013-02-12 Tom Tromey <tromey@redhat.com>
3947
3948 PR symtab/11464:
3949 * c-exp.y (lex_one_token): Initialize other fields of yylval on
3950 NAME return.
3951 (classify_inner_name): Remove 'first_name' argument, add
3952 'context'. Remove unused variable.
3953 (yylex): Explicitly maintain the context type. Exit loop earlier
3954 if NAME result is seen.
3955
0b1afbb3
PA
39562013-02-12 Pedro Alves <palves@redhat.com>
3957
3958 * amd64-darwin-tdep.c: Add (C) after Copyright.
3959 * cli/cli-cmds.h: Ditto.
3960 * cli/cli-decode.c: Ditto.
3961 * cli/cli-decode.h: Ditto.
3962 * cli/cli-dump.c: Ditto.
3963 * cli/cli-dump.h: Ditto.
3964 * cli/cli-interp.c: Ditto.
3965 * cli/cli-logging.c: Ditto.
3966 * cli/cli-script.c: Ditto.
3967 * cli/cli-script.h: Ditto.
3968 * cli/cli-setshow.c: Ditto.
3969 * cli/cli-setshow.h: Ditto.
3970 * cli/cli-utils.c: Ditto.
3971 * cli/cli-utils.h: Ditto.
3972 * config/alpha/nm-osf3.h: Ditto.
3973 * config/djgpp/djconfig.sh: Ditto.
3974 * config/i386/nm-fbsd.h: Ditto.
3975 * config/i386/nm-i386gnu.h: Ditto.
3976 * config/nm-linux.h: Ditto.
3977 * config/nm-nto.h: Ditto.
3978 * config/rs6000/nm-rs6000.h: Ditto.
3979 * config/sparc/nm-sol2.h: Ditto.
3980 * darwin-nat-info.c: Ditto.
3981 * dfp.c: Ditto.
3982 * dfp.h: Ditto.
3983 * gdb-demangle.h: Ditto.
3984 * i386-darwin-nat.c: Ditto.
3985 * i386-darwin-tdep.c: Ditto.
3986 * linux-fork.h: Ditto.
3987 * m32c-tdep.c: Ditto.
3988 * microblaze-linux-tdep.c: Ditto.
3989 * microblaze-rom.c: Ditto.
3990 * microblaze-tdep.c: Ditto.
3991 * microblaze-tdep.h: Ditto.
3992 * mips-linux-tdep.h: Ditto.
3993 * ppc-ravenscar-thread.c: Ditto.
3994 * ppc-ravenscar-thread.h: Ditto.
3995 * prologue-value.c: Ditto.
3996 * prologue-value.h: Ditto.
3997 * ravenscar-thread.c: Ditto.
3998 * ravenscar-thread.h: Ditto.
3999 * sparc-ravenscar-thread.c: Ditto.
4000 * sparc-ravenscar-thread.h: Ditto.
4001 * tilegx-linux-tdep.c: Ditto.
4002 * unwind_stop_reasons.def: Ditto.
4003 * windows-nat.h: Ditto.
4004 * xtensa-linux-tdep.c: Ditto.
4005 * xtensa-xtregs.c: Ditto.
4006 * regformats/regdat.sh: Ditto.
4007 * regformats/regdef.h: Ditto.
4008
6c01dd94
PA
40092013-02-12 Pedro Alves <palves@redhat.com>
4010
4011 * break-catch-sig.c: Update copyright years.
4012
b65a2bd9
SCR
40132013-02-11 Siva Chandra Reddy <sivachandra@google.com>
4014
4015 Add support for a destructor for ui_out data and use it to
4016 provide a ui_out destructor.
4017 * ui-out.h: Declare the new ui_out destructor.
4018 (ui_out_impl): Add a field for data destructor in ui_out_impl.
4019 * ui-out.c (default_data_destroy): Add a default data destructor
4020 which does nothing.
4021 (default_ui_out_impl): Set the new data_destroy field to
4022 default_data_destroy
4023 (uo_data_destroy): Local function which invokes the data
4024 destructor if present.
4025 (clear_table): Local function which clears the table data of a
4026 ui_out object.
4027 (ui_out_destroy): Public function which frees a ui_out object.
4028 (ui_out_table_end): Use the new clear_table function.
4029 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
4030 NULL.
4031 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
4032 to NULL.
4033
c2792f5a
DE
40342013-02-11 Doug Evans <dje@google.com>
4035
4036 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
4037 (printf_decfloat): New function. Broken out from ui_printf.
4038 Remove unnecessary code to shift the entire format string down.
4039 (printf_pointer): New function.
4040 (ui_printf): Code to print C strings, wide C strings, decfloats,
4041 and pointers moved to separate functions.
4042
d9e98382
SDJ
40432013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
4044
4045 * valops.c (value_assign): Handling bitfield offset in
4046 `lval_internalvar_component' case.
4047
4ff3ce77
DE
40482013-02-08 Doug Evans <dje@google.com>
4049
4050 * common/format.c (parse_format_string): Fix whitespace.
4051
901900c4
MGD
40522013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
4053
4054 * stack.c (return_command): Work around uninitialized variable
4055 warning.
4056
b5dbc8d4
YZ
40572013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
4058
4059 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
4060 number of the registers from 36 to 34.
4061
51d66578
MS
40622013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
4063
4064 * NEWS: Mention new AArch64 native and target support.
4065
176b1c95
MS
40662013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
4067
4068 * MAINTAINERS (Write After Approval): Add myself.
4069
9d19df75
MS
40702013-02-08 Jim MacArthur <jim.macarthur@arm.com>
4071 Marcus Shawcroft <marcus.shawcroft@arm.com>
4072 Nigel Stephens <nigel.stephens@arm.com>
4073 Yufeng Zhang <yufeng.zhang@arm.com>
4074
4075 * aarch64-linux-nat.c: New file.
4076 * config/aarch64/linux.mh: New file.
4077 * configure.host: Add AArch64.
4078 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
4079
7e1e0340
DE
40802013-02-07 Doug Evans <dje@google.com>
4081
4082 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
4083 disassemble command.
4084
45e25a36
MS
40852013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
4086
4087 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
4088 set_gdbarch_fetch_tls_load_module_address.
4089
bbfdfe1c
DM
40902013-02-06 David S. Miller <davem@davemloft.net>
4091
4092 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
4093 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4094 * value.c (struct_return_convention): New function.
4095 (using_struct_return): Implement in terms of struct_return_convention.
4096 * value.h (struct_return_convention): Declare.
4097 * stack.c (return_command): Allow successful overriding of the return
4098 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
4099
bc9abe4a
TT
41002013-02-06 Tom Tromey <tromey@redhat.com>
4101
4102 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
4103 outside of TRY_CATCH.
4104
134a2066
YQ
41052013-02-06 Yao Qi <yao@codesourcery.com>
4106
4107 * mi/mi-interp.c: Include "tracepoint.h".
4108 (mi_tsv_modified): Declare.
4109 (mi_tsv_created, mi_tsv_deleted): Update declaration.
4110 (mi_interpreter_init): Call observer_attach_tsv_modified.
4111 (mi_tsv_modified): New.
4112 (mi_tsv_created, mi_tsv_deleted): Update.
4113 * tracepoint.c (trace_variable_command): Call
4114 observer_notify_tsv_modified if the initial value of tsv is
4115 changed.
4116 (delete_trace_state_variable): Call
4117 observer_notify_tsv_deleted earlier.
4118 (trace_variable_command): Caller update.
4119 (create_tsv_from_upload): Likewise.
4120 * observer.sh: Declare "struct trace_state_variable".
4121
4122 * NEWS: Mention the new MI notification "=tsv-modified".
4123
59be2b6a
DE
41242013-02-05 Doug Evans <dje@google.com>
4125
4126 * completer.c (location_completer): Fix typo in comment.
4127
d30113d4
JK
41282013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4129
4130 * breakpoint.c (add_location_to_breakpoint): Insert the location with
4131 ADDRESS sorted.
4132
14ac654f
MS
41332013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
4134
4135 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
4136 Refactor if statement to avoid trailing || operator.
4137
543bf33d
AT
41382013-02-05 Andreas Tobler <andreast@fgznet.ch>
4139
4140 * NEWS: Add PowerPC FreeBSD as a new native configuration.
4141
dc18f110
AT
41422013-02-04 Andreas Tobler <andreast@fgznet.ch>
4143
4144 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
4145 * configure.host: Add powerpc*-*-freebsd* target.
4146 * configure.tgt: Add target info for powerpc*-*-freebsd*.
4147 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
4148 * config/powerpc/fbsd.mh: New file.
4149
b3ac9c77
SDJ
41502013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
4151 Denys Vlasenko <dvlasenk@redhat.com>
4152 Pedro Alves <palves@redhat.com>
4153
4154 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
4155 (struct elf_internal_linux_prpsinfo): Forward declare.
4156 * gdbarch.h, gdbarch.c: Regenerate.
4157 * linux-tdep.c: Include `cli/cli-utils.h'.
4158 (linux_fill_prpsinfo): New function.
4159 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
4160 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
4161 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
4162 depending on gdbarch pointer bitness.
4163 * ppc-linux-tdep.c: Include elf-bfd.h.
4164 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
4165 on 32-bit.
4166
176eb98c
MS
41672013-02-04 Jim MacArthur <jim.macarthur@arm.com>
4168 Marcus Shawcroft <marcus.shawcroft@arm.com>
4169 Nigel Stephens <nigel.stephens@arm.com>
4170 Yufeng Zhang <yufeng.zhang@arm.com>
4171
4172 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
4173
cf0dbd6f
MS
41742013-02-04 Jim MacArthur <jim.macarthur@arm.com>
4175 Marcus Shawcroft <marcus.shawcroft@arm.com>
4176 Nigel Stephens <nigel.stephens@arm.com>
4177 Yufeng Zhang <yufeng.zhang@arm.com>
4178
4179 * aarch64-newlib-tdep.c: New file.
4180 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
4181 aarch64*-*-elf.
4182 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
4183 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
4184 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
4185 * osabi.c (gdb_osabi_names): Add "Newlib".
4186
1ae3db19
MS
41872013-02-04 Jim MacArthur <jim.macarthur@arm.com>
4188 Marcus Shawcroft <marcus.shawcroft@arm.com>
4189 Nigel Stephens <nigel.stephens@arm.com>
4190 Yufeng Zhang <yufeng.zhang@arm.com>
4191
4192 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
4193 (ALLDEPFILES): Add aarch64-linux-tdep.c.
4194 * aarch64-linux-tdep.c: New file.
4195 * aarch64-linux-tdep.h: New file.
4196 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
4197 * configure.tgt: Add aarch64-none-linux-gnu.
4198
07b287a0
MS
41992013-02-04 Jim MacArthur <jim.macarthur@arm.com>
4200 Marcus Shawcroft <marcus.shawcroft@arm.com>
4201 Nigel Stephens <nigel.stephens@arm.com>
4202 Yufeng Zhang <yufeng.zhang@arm.com>
4203
4204 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
4205 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
4206 (ALLDEPFILES): Add aarch64-tdep.c.
4207 * aarch64-tdep.c: New file.
4208 * aarch64-tdep.h: New file.
4209 * configure.tgt: Add AArch64.
4210 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
4211 (aarch64-expedite): New definition.
4212 * features/aarch64-core.xml: New file.
4213 * features/aarch64-fpu.xml: New file.
4214 * features/aarch64-without-fpu.c: New file (generated).
4215 * features/aarch64-without-fpu.xml: New file.
4216 * features/aarch64.c: New file (generated).
4217 * features/aarch64.xml: New file.
4218 * regformats/aarch64-without-fpu.dat: New file (generated).
4219 * regformats/aarch64.dat: New file (generated).
4220
0f1b18ab
JK
42212013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4222
4223 * contrib/expect-read1.c: New file.
4224 * contrib/expect-read1.sh: New file.
4225
233d95b5
JK
42262013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4227
4228 * dwarf2read.c (file_file_name): New function with code from
4229 file_full_name.
4230 (file_full_name): Move most of the code to file_file_name.
4231 (macro_start_file): Rename variable full_name to file_name and use
4232 file_file_name for it. Add comp_dir parameter to new_macro_table.
4233 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
4234 macro_source_file->filename access by macro_source_fullname call.
4235 * macroscope.c (_initialize_macroscope): Update the new_macro_table
4236 caller.
4237 * macrotab.c (struct macro_table): New field comp_dir.
4238 (macro_include): New variables link_fullname and source_fullname.
4239 Replace any macro_source_file->filename access by macro_source_fullname
4240 call.
4241 (macro_lookup_inclusion): Remove the partial filenames checking code.
4242 (check_for_redefinition): New variables source_fullname and
4243 found_key_fullname. Replace any macro_source_file->filename access by
4244 macro_source_fullname call.
4245 (macro_undef): New variables source_fullname and key_fullname. Replace
4246 any macro_source_file->filename access by macro_source_fullname call.
4247 (macro_lookup_definition): New variables retval and source_fullname.
4248 Replace any macro_source_file->filename access by macro_source_fullname
4249 call.
4250 (foreach_macro): New variable key_fullname. Replace any
4251 macro_source_file->filename access by macro_source_fullname call.
4252 (foreach_macro_in_scope): New variable datum_fullname. Replace any
4253 macro_source_file->filename access by macro_source_fullname call.
4254 (new_macro_table): Add parameter comp_dir. Initialize T with it.
4255 (macro_source_fullname): New function.
4256 * macrotab.h (struct macro_source_file): Extent the filename field
4257 comment.
4258 (new_macro_table): New parameter comp_dir, add a comment for it.
4259 (macro_source_fullname): new declaration.
4260
da235a7c
JK
42612013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4262
4263 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
4264 this_real_name to outer block. Use it also for
4265 compare_filenames_for_search.
4266 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
4267 with dw2_get_real_path for file_matcher, considering also
4268 BASENAMES_MAY_DIFFER.
4269 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
4270
fbd9ab74
JK
42712013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4272
4273 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
4274 to the file_matcher parameter. Pass 0 to it.
4275 (dwarf2_create_include_psymtab): Copy also DIRNAME.
4276 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
4277 NULL psymtab_to_fullname result.
4278 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
4279 an expected filename instead.
4280 (expand_symtabs_matching_via_partial): Add basenames parameter to the
4281 file_matcher parameter. Call also psymtab_to_fullname, after newly
4282 considering BASENAMES_MAY_DIFFER.
4283 * source.c (rewrite_source_path): Remove static.
4284 * source.h (rewrite_source_path): New declaration.
4285 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
4286 the expand_symtabs_matching field. Comment it.
4287 * symtab.c (file_matches): New function comment. Add parameter
4288 basenames, implement it.
4289 (search_symbols_file_matches): Add basenames parameter. Update the
4290 file_matches caller.
4291 (search_symbols): Match FILES also against symtab_to_fullname.
4292 Optimize it for BASENAMES_MAY_DIFFER.
4293
56d397a3
JK
42942013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4295
4296 * source.c (print_source_lines_base): Print for TUI also "fullname".
4297 * tui/tui-data.c (init_content_element): Change tui_locator_element
4298 field to full_name.
4299 * tui/tui-data.h (struct tui_locator_element): Likewise.
4300 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
4301 tui_update_locator_filename calls to tui_update_locator_fullname.
4302 Replace symtab->filename refererence by symtab_to_fullname call.
4303 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
4304 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
4305 field to full_name. Replace symtab->filename refererence by
4306 symtab_to_fullname call.
4307 (tui_show_symtab_source): Rename parameter to fullname. Change
4308 tui_locator_element field to full_name.
4309 * tui/tui-stack.c: Include source.h.
4310 (tui_set_locator_filename): Rename the declaration to ...
4311 (tui_set_locator_fullname): ... here. Rename its parameter to
4312 fullname, updates its comment.
4313 (tui_set_locator_info): Rename its parameter to fullname.
4314 (tui_set_locator_filename): Rename the definition to ...
4315 (tui_set_locator_fullname): ... here. Rename its parameter to
4316 fullname, updates its comment. Change tui_locator_element field to
4317 full_name.
4318 (tui_set_locator_info): Rename its parameter to fullname.
4319 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
4320 (tui_update_locator_filename): Rename to ...
4321 (tui_update_locator_fullname): ... here. Rename callee to
4322 tui_set_locator_fullname.
4323 (tui_show_frame_info): Replace symtab->filename refererence by
4324 symtab_to_fullname call.
4325 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
4326 (tui_update_locator_fullname): ... here.
4327 * tui/tui-winsource.c (tui_display_main): Rename the callee to
4328 tui_update_locator_fullname. Replace symtab->filename refererence by
4329 symtab_to_fullname call.
4330 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
4331 Rename the callee to tui_update_locator_fullname.
4332 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
4333
05cba821
JK
43342013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4335
4336 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
4337 by symtab_to_filename_for_display calls.
4338 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
4339 (clear_command): New variable sal_fullname, initialize it. Replace
4340 compare_filenames_for_search by filename_cmp with sal_fullname.
4341 (say_where, update_static_tracepoint): Replace symtab->filename
4342 refererences by symtab_to_filename_for_display calls.
4343 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
4344 Likewise.
4345 * dwarf2read.c: Include source.h.
4346 (fixup_go_packaging): Replace symtab->filename refererences by
4347 symtab_to_filename_for_display calls.
4348 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
4349 Replace symtab->filename refererences by symtab_to_filename_for_display
4350 calls.
4351 (create_sals_line_offset, convert_linespec_to_sals): New variable
4352 fullname, initialize it, replace symtab->filename reference by the
4353 variable.
4354 * linux-fork.c: Include source.h.
4355 (info_checkpoints_command): Replace symtab->filename refererences by
4356 symtab_to_filename_for_display calls.
4357 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
4358 by symtab_to_filename_for_display calls.
4359 * mdebugread.c: Include source.h.
4360 (psymtab_to_symtab_1): Replace symtab->filename refererences by
4361 symtab_to_filename_for_display calls.
4362 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
4363 (mi_cmd_file_list_exec_source_files): Likewise.
4364 * printcmd.c: Include source.h.
4365 (build_address_symbolic): Replace symtab->filename refererences by
4366 symtab_to_filename_for_display calls.
4367 * psymtab.c (partial_map_symtabs_matching_filename)
4368 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
4369 with psymtab_to_fullname.
4370 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
4371 by symtab_to_filename_for_display calls.
4372 (stpy_get_filename): New variable filename, initialize it, use instead
4373 of symtab->filename refererences.
4374 (salpy_str): Make variable filename const char *. Replace
4375 symtab->filename refererences by symtab_to_filename_for_display calls.
4376 * skip.c: Include source.h and filenames.h.
4377 (skip_file_command): Remove const from the symtab variable. Replace
4378 symtab->filename refererences by symtab_to_fullname call.
4379 (function_name_is_marked_for_skip): New variables searched_for_fullname
4380 and fullname. Use them to search also with symtab's fullname.
4381 * source.c (find_source_lines): Replace symtab->filename refererences
4382 by symtab_to_filename_for_display calls.
4383 (print_source_lines_base): New variable filename, use it instead of
4384 symtab->filename. Replace symtab->filename refererences by
4385 symtab_to_filename_for_display calls.
4386 (line_info, forward_search_command): Replace symtab->filename
4387 refererences by symtab_to_filename_for_display calls.
4388 (reverse_search_command): Replace symtab->filename refererences by
4389 symtab_to_filename_for_display calls. New variable filename for it.
4390 * stack.c (frame_info): Likewise.
4391 * symmisc.c: Include source.h.
4392 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
4393 (maintenance_info_symtabs): Replace symtab->filename refererences by
4394 symtab_to_filename_for_display calls.
4395 * symtab.c (iterate_over_some_symtabs): Call
4396 compare_filenames_for_search also with symtab_to_fullname.
4397 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
4398 symtab->filename refererences by symtab_to_filename_for_display calls.
4399 (find_line_symtab): Replace symtab->filename refererences by
4400 symtab_to_filename_for_display calls.
4401 (file_matches): Replace filename_cmp by compare_filenames_for_search.
4402 (print_symbol_info): Make the last parameter const char *. New
4403 variable s_filename. Use it in the function.
4404 (symtab_symbol_info): Make the last_filename variable const char *.
4405 Replace symtab->filename refererences by symtab_to_filename_for_display
4406 calls.
4407 (rbreak_command): New variable fullname. Use it. Replace
4408 symtab->filename refererence by symtab_to_filename_for_display call.
4409 * tracepoint.c (set_traceframe_context, trace_find_line_command)
4410 (print_one_static_tracepoint_marker): Replace symtab->filename
4411 refererences by symtab_to_filename_for_display calls.
4412 * tui/tui-source.c (tui_set_source_content): New variables filename and
4413 s_filename. Replace symtab->filename refererences by this variable.
4414 Replace other symtab->filename refererences by
4415 symtab_to_filename_for_display calls.
4416
1b56eb55
JK
44172013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
4418 Jan Kratochvil <jan.kratochvil@redhat.com>
4419
4420 Add a new variable that controls a way in which filenames are
4421 displayed.
4422 * NEWS (set filename-display): New entry.
4423 * source.c (filename_display_basename, filename_display_relative)
4424 (filename_display_absolute, filename_display_kind_names)
4425 (filename_display_string, show_filename_display_string)
4426 (symtab_to_filename_for_display): New.
4427 (_initialize_source): Added initialization of 'filename-display'
4428 variable.
4429 * source.h (symtab_to_filename_for_display): Added declaration.
4430 * stack.c (print_frame): Added new variable and calling of a new
4431 function and condition with this variable. Changed third argument of
4432 calling of a function.
4433
aa079c93
JK
44342013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4435
4436 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
4437 Rename field reference filename to fullname.
4438 * tui/tui-data.h (struct tui_source_info): Rename field filename to
4439 fullname. New comment for it.
4440 * tui/tui-source.c (tui_set_source_content): Rename field reference
4441 filename to fullname. Initialize field by symtab_to_fullname now.
4442 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
4443 reference filename to fullname. Use symtab_to_fullname during
4444 comparison.
4445
652a8996
JK
44462013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4447
4448 Code cleanup.
4449 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
4450 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
4451 filename to fullname. Rename variable this_name to this_fullname.
4452 Lowercase FILENAME_CMP call.
4453 (dw2_find_symbol_file): New comment for the returned string.
4454 (dwarf2_gdb_index_functions): Rename the function to
4455 dw2_expand_symtabs_with_fullname.
4456 * psymtab.c (read_psymtabs_with_filename): Rename to ...
4457 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
4458 fullname.
4459 (psym_functions): Rename the function to read_psymtabs_with_fullname.
4460 * symfile.h (struct quick_symbol_functions): Rename field
4461 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
4462 parameter filename to fullname. Document returned string meaning for
4463 find_symbol_file.
4464 * symtab.c (find_line_symtab): Rename the called function to
4465 expand_symtabs_with_fullname.
4466
af529f8f
JK
44672013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4468
4469 Code cleanup.
4470 * breakpoint.c (clear_command): Remove variable is_abs, unify the
4471 call of filename_cmp with compare_filenames_for_search.
4472 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
4473 is_abs, unify the call of FILENAME_CMP with
4474 compare_filenames_for_search. New gdb_asserts for real_path and name.
4475 Unify the call of compare_filenames_for_search with FILENAME_CMP.
4476 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
4477 * symfile.h (struct quick_symbol_functions): Extend the comment for
4478 map_symtabs_matching_filename.
4479 * symtab.c (compare_filenames_for_search): Remove the function comment
4480 relative path requirement. Handle absolute filenames, with a comment.
4481 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
4482 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
4483 real_path and name. Unify the call of compare_filenames_for_search
4484 with FILENAME_CMP.
4485 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
4486
2f202fde
JK
44872013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4488
4489 Code cleanup.
4490 * breakpoint.c (print_breakpoint_location): Replace bp_location field
4491 source_file references by symtab field references. Remove variables
4492 sal and fullname.
4493 (momentary_breakpoint_from_master, add_location_to_breakpoint):
4494 (clear_command, say_where): Replace bp_location field source_file
4495 references by symtab field references.
4496 (bp_location_dtor): Remove the source_file reference.
4497 (update_static_tracepoint): Replace bp_location field source_file
4498 references by symtab field references.
4499 (breakpoint_free_objfile): New function.
4500 * breakpoint.h (struct bp_location): Extend the comment for line_number.
4501 Replace the field source_file by field symtab, extend its comment.
4502 (breakpoint_free_objfile): New declaration.
4503 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
4504 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
4505 field source_file references by symtab field references.
4506
f5b95b50
JK
45072013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4508
4509 Replace xfullpath calls by gdb_realpath calls.
4510 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
4511 function comment.
4512 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
4513 Remove it from the iterate_over_some_symtabs call.
4514 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
4515 Remove it from the dw2_map_expand_apply calls, remove a block handling
4516 it.
4517 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
4518 Remove it from the iterate_over_some_symtabs call.
4519 (partial_map_symtabs_matching_filename): Remove parameter full_path.
4520 Remove it from the partial_map_expand_apply calls, remove a block
4521 handling it. Drop gdb_realpath call and cleanups from the real_path
4522 handling.
4523 * source.c (openp): Drop the comment part about xfullpath. Replace
4524 xfullpath calls by gdb_realpath calls.
4525 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
4526 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
4527 from method map_symtabs_matching_filename and its comment.
4528 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
4529 gdb_realpath call.
4530 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
4531 remove it also from the function comment, remove a block handling it.
4532 Drop gdb_realpath call and cleanups from the real_path handling.
4533 (iterate_over_symtabs): Drop variable full_path and its use.
4534 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
4535 * utils.c (xfullpath): Remove.
4536 * utils.h (xfullpath): Remove.
4537
d78489bf
AT
45382013-02-01 Andreas Tobler <andreast@fgznet.ch>
4539
4540 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
4541 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
4542 (ALLDEPFILES): Add ppc64-tdep.c.
4543 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
4544 ppc64-tdep.o to gdb_target_obs.
4545 * ppc64-tdep.h: New file.
4546 * ppc64-tdep.c: New file.
4547 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
4548 ppc-linux-tdep.c to here.
4549 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
4550 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
4551 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
4552 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
4553 from ppc-linux-tdep.c to here.
4554 (ppc64_convert_from_func_ptr_addr): Rename from
4555 ppc64_linux_convert_from_func_ptr_addr to
4556 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
4557 here.
4558 * rs6000-tdep.c:
4559 (read_insn): Move from ppc-linux-tdep.c to here.
4560 (insns_match_pattern, insn_d_field, insn_ds_field): Move
4561 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
4562 * ppc-linux-tdep.c: Include ppc64-tdep.h.
4563 Removed above functions.
4564 (ppc_linux_init_abi): Adjust.
4565
8db60374
AR
45662013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
4567
4568 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
4569
f2e5f4ce
AR
45702013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
4571
4572 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
4573
c1f7d745
PA
45742013-02-01 Pedro Alves <palves@redhat.com>
4575
4576 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
4577 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
4578
8a92335b
JK
45792013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4580
4581 * elfread.c (elf_symfile_read): Limit separate debug info additions to
4582 files with no separate debug info.
4583 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
4584 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
4585 only for files with no separate debug info.
4586
8eacb197
TT
45872013-01-31 Tom Tromey <tromey@redhat.com>
4588
4589 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
4590 change type.
4591 (struct jit_program_space_data): Rename from jit_inferior_data.
4592 Update comments.
4593 (get_jit_program_space_data): Rename from get_jit_inferior_data.
4594 Change return type. Attach data to program space.
4595 (jit_program_space_data_cleanup): Rename from
4596 jit_inferior_data_cleanup; change argument type.
4597 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
4598 change type.
4599 (jit_register_code): Update.
4600 (jit_update_inferior_cache): Remove.
4601 (jit_breakpoint_deleted): Get jit data from the location's program
4602 space.
4603 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
4604 'ps_data', change type.
4605 (jit_inferior_init, jit_breakpoint_re_set_internal)
4606 (jit_event_handler): Update.
4607 (free_objfile_data): Get data from objfile's program space.
4608 (_initialize_jit): Update.
4609
f25c0135
TT
46102013-01-31 Tom Tromey <tromey@redhat.com>
4611
4612 PR gdb/13987:
4613 * jit.c (struct jit_inferior_data) <cached_code_address,
4614 jit_breakpoint>: New fields.
4615 (jit_breakpoint_re_set_internal): Fix logging. Only create
4616 breakpoint if cached address has changed.
4617 (jit_update_inferior_cache, jit_breakpoint_deleted): New
4618 functions.
4619 (_initialize_jit): Register breakpoint deleted observer.
4620
974a734b
AR
46212013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4622
4623 * infrun.c (handle_syscall_event): Remove unused gdbarch.
4624 (save_infcall_suspend_state): Ifdef out unused inf.
4625 (restore_infcall_suspend_state): Ifdef out unused inf.
4626 * jit.c (jit_register_code): Remove unused i, b, inf_data.
4627 (jit_frame_sniffer): Remove unused inf_data.
4628
df54f8eb
AR
46292013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4630
4631 * c-exp.y (classify_inner_name): Remove unused type.
4632 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
4633 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
4634 need_escape.
4635 (c_get_string): Remove unused kind.
4636 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
4637
5799c0b9
AR
46382013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4639
4640 * charset.c (intermediate_encoding): Remove unused i.
4641 * completer.c (signal_completer): Remove unused i.
4642 * continuations.c (discard_my_continuations_1): Remove unused
4643 continuation_ptr.
4644 * corelow.c (core_close): Remove unuseD name.
4645 (get_core_siginfo): Remove unused pid.
4646 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
4647 i, cps.
4648 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
4649 (loclist_describe_location): Remove unused first.
4650 * event-top.c (command_line_handler): Remove unused got_eof.
4651 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
4652 (resize_section_table): Remove unused old_value.
4653 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
4654 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
4655 * i386-tdep.c (i386_process_record): Remove unused rex.
4656 * infcmd.c (get_return_value): Remove unused uiout.
4657 * jv-lang.c (type_from_class): Remove unused is_array.
4658 * jv-valprint.c (java_val_print): Remove unused i.
4659 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
4660 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
4661 * m2-typeprint.c (m2_print_type): Remove unused code.
4662 * macroexp.c (get_character_constant): Remove unused body_start.
4663 (macro_stringify): Remove unused result.
4664 * objc-lang.c (find_methods): Remove unused gdbarch.
4665 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
4666 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
4667 * stack.c (print_frame_args): Remove unused summary.
4668 * thread.c (thread_apply_command): Remove unused p.
4669 * valarith.c (value_x_unop): Remove unused mangle_ptr.
4670 * valops.c (search_struct_method): Remove unused skip.
4671 * valprint.c (generic_val_print): Remove unused byte_order.
4672 * varobj.c (varobj_update): Remove unused changed.
4673 * cli/cli-cmds.c (complete_command): Remove unused next_item.
4674 (alias_command): Remove unused c.
4675 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
4676 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
4677 format.
4678 (mi_cmd_data_write_memory): Remove unused word_format.
4679 (mi_cmd_data_write_memory_bytes): Remove unused r.
4680 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
4681 p_start, p_end.
4682 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
4683 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
4684 line_width.
4685
c656bca5
AR
46862013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4687
4688 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
4689 * symtab.c (iterate_over_symtabs): Remove unused s.
4690 (find_pc_sect_symtab): Remove unused pspAce.
4691 (find_pc_sect_line): Remove unused alt_symtab.
4692 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
4693 (completion_list_add_name): Remove unused newsize.
4694
7078baeb
TT
46952013-01-31 Tom Tromey <tromey@redhat.com>
4696
4697 PR c++/14998:
4698 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
4699 TYPE_CODE_FUNC.
4700
c2e8b827
AR
47012013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4702
4703 * target.c (target_read_string): Remove unused origlen.
4704
0e43993a
AR
47052013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4706
4707 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
4708 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
4709 * ax-general.c (ax_print): Remove unused is_float.
4710 * blockframe.c (block_innermost_frame): Remove unused start, end.
4711 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
4712
765a97ab
AR
47132013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
4714
4715 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
4716 (svr4_read_so_list): Remove unused lmo.
4717 * solib-target.c (solib_target_relocate_section_addresses): Remove
4718 unused flags.
4719
a99dad3d
TT
47202013-01-30 Tom Tromey <tromey@redhat.com>
4721
4722 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
4723
3bff1ecd
TT
47242013-01-30 Tom Tromey <tromey@redhat.com>
4725
4726 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
4727 * utils.c (gnu_debuglink_crc32): Remove.
4728 * utils.h (gnu_debuglink_crc32): Don't declare.
4729
7d455152
TT
47302013-01-30 Tom Tromey <tromey@redhat.com>
4731
4732 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
4733 (read_structure_type, read_enumeration_type): Remove cast.
4734
abee88f2
TT
47352013-01-30 Tom Tromey <tromey@redhat.com>
4736
4737 * dwarf2read.c (read_namespace_type): Remove cast.
4738 (read_typedef): Likewise.
4739
8d9878a4
TT
47402013-01-29 Tom Tromey <tromey@redhat.com>
4741
4742 * dwarf2read.c (free_dwo_file): Remove assert.
4743
a543d2a9
TT
47442013-01-29 Tom Tromey <tromey@redhat.com>
4745
4746 * value.c (deprecated_set_value_modifiable): Remove.
4747 * value.h (deprecated_set_value_modifiable): Remove.
4748
bed911e5
DE
47492013-01-28 Doug Evans <dje@google.com>
4750
4751 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
4752 to addresses from dwo files.
4753
28c64fc2
SCR
47542013-01-25 Siva Chandra Reddy <sivachandra@google.com>
4755
4756 * valops.c (find_overload_match): Remove unused argument 'lax'.
4757 * value.h: Remove unused argument 'lax' from the declaration of
4758 find_overload_match.
4759 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
4760 to find_overload_match.
4761 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
4762 argument to find_overload_match.
4763
4d4ec4e5
TT
47642013-01-25 Tom Tromey <tromey@redhat.com>
4765
4766 * dwarf2read.c (processing_has_namespace_info): Remove.
4767 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
4768 (process_die, read_func_scope, dwarf2_start_symtab)
4769 (new_symbol_full): Update.
4770
195a3f6c
TT
47712013-01-25 Tom Tromey <tromey@redhat.com>
4772
4773 * cp-namespace.c (cp_set_block_scope): Remove.
4774 * cp-support.h (cp_set_block_scope): Remove.
4775 * dbxread.c: Include block.h.
4776 (cp_set_block_scope): New function.
4777 (process_one_symbol): Update.
4778 * dwarf2read.c (read_func_scope): Use block_set_scope.
4779
8ba0730a
PA
47802013-01-25 Pedro Alves <palves@redhat.com>
4781
4782 * remote.c (add_current_inferior_and_thread): Tweak comment.
4783
12aaed36
TT
47842013-01-25 Tom Tromey <tromey@redhat.com>
4785
4786 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
4787 (cp_add_using_directive): Add 'copy_names' argument.
4788 * cp-support.h (cp_add_using_directive): Update.
4789 (struct using_direct) <import_src, import_dest, alias,
4790 declaration>: Now const.
4791 * dwarf2read.c (read_import_statement): Use obconcat.
4792 Don't copy names passed to cp_add_using_directive.
4793
7fc75ca7
TT
47942013-01-25 Tom Tromey <tromey@redhat.com>
4795
4796 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
4797
3405876a
PA
47982013-01-25 Pedro Alves <palves@redhat.com>
4799
4800 * remote.c (stop_reply_extract_thread): New.
4801 (add_current_inferior_and_thread): New parameter 'wait_status'.
4802 Handle it.
4803 (remote_start_remote): Pass wait status to
4804 add_current_inferior_and_thread.
4805 (extended_remote_run): Update comment.
4806 (extended_remote_create_inferior_1): Pass wait status to
4807 add_current_inferior_and_thread.
4808
8954db33
AB
48092013-01-25 Andrew Burgess <aburgess@broadcom.com>
4810 Ulrich Weigand <uweigand@de.ibm.com>
4811
4812 * valarith.c (value_vector_widen): New function for replicating a
4813 scalar into a vector.
4814 (value_binop): Use value_vector_widen to widen scalar to vector
4815 rather than casting, this better matches gcc C behaviour.
4816 * valops.c (value_casst): Update logic for casting between vector
4817 types, and for casting from scalar to vector, try to match gcc C
4818 behaviour.
4819 * value.h (value_vector_widen): Declare.
4820 * opencl-lang.c (opencl_value_cast): New opencl specific casting
4821 function, handle special case for casting scalar to vector.
4822 (opencl_relop): Use opencl_value_cast.
4823 (evaluate_subexp_opencl): Use opencl_value_cast instead of
4824 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
4825 in order to use opencl_value_cast.
4826
843b20dc
YQ
48272013-01-25 Yao Qi <yao@codesourcery.com>
4828
4829 * event-loop.c: Include "queue.h".
4830 (gdb_event_p): New typedef.
4831 (DECLARE_QUEUE_P): Use.
4832 (DEFINE_QUEUE_P): Use.
4833 (async_queue_event): Remove.
4834 (gdb_event_xfree): New.
4835 (initialize_event_loop): New.
4836 (process_event): Use QUEUE macros.
4837 (event_queue): Remove.
4838 (gdb_wait_for_event): Caller update.
4839 (check_async_event_handlers): Likewise.
4840 (poll_timers): Likewise.
4841 * event-loop.h (initialize_event_loop): Declare.
4842 * event-loop.c (gdb_event_xfree): New.
4843 * top.c (gdb_init): Call initialize_event_loop.
4844
20ad8856
YQ
48452013-01-25 Yao Qi <yao@codesourcery.com>
4846
4847 * event-loop.c (async_queue_event): Remove one parameter
4848 'position'. Remove code handling 'position' == TAIL.
4849 (gdb_wait_for_event): Caller update.
4850 (check_async_event_handlers): Caller update.
4851 (poll_timers): Caller update.
4852 * event-loop.h (enum queue_position): Remove.
4853
3bbbe775
MK
48542013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
4855
4856 * MAINTAINERS: Update my email.
4857
a87d9ac4
YQ
48582013-01-25 Yao Qi <yao@codesourcery.com>
4859
4860 * main.c (print_gdb_help): Remove "--epoch" from the help
4861 message.
4862
2077afdd
TD
48632013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
4864
4865 * symtab.c (skip_prologue_using_sal): Consider a file
4866 change the same as an increased line number
4867
63da4037
TD
48682013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
4869
30e8ee25 4870 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 4871
45e6c716
TT
48722013-01-24 Tom Tromey <tromey@redhat.com>
4873
4874 * ada-lang.h (ada_decode_symbol): Make return type const.
4875 * ada-lang.c (ada_decode_symbol): Likewise.
4876
b1ae631a
DE
48772013-01-23 Doug Evans <dje@google.com>
4878
4879 * linespec.c (find_linespec_symbols): Make static.
4880
55a78401
SDJ
48812013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
4882
4883 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
4884 type on float conversion for complex type.
4885
bea883fd
SCR
48862013-01-23 Siva Chandra Reddy <sivachandra@google.com>
4887
4888 Add a new class gdb.Architecture which exposes GDB's
4889 internal representation of architecture via GDB Python API.
4890 * Makefile.in: Add entries corresponding to the new file
4891 python/py-arch.c.
4892 * NEWS (Python Scripting): Add entries for the new class
4893 gdb.Architecture and the new method gdb.Frame.architecture.
4894 * python/py-arch.c: Implement gdb.Architecture class.
4895 * python/py-frame.c (frapy_arch): Implement the method
4896 gdb.Frame.architecture().
4897 (frame_object_methods): Add 'architecture' to the method table.
4898 * python/python-internal.h: Add declarations of new utility
4899 functions.
4900 * python/python.c (_initialize_python): Initialize
4901 gdb.Architecture class.
4902
796a7ff8
DE
49032013-01-23 Doug Evans <dje@google.com>
4904
4905 Work around binutils/15021.
4906 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
4907 type_unit_group out of union s. All uses updated.
4908 (read_index_from_section): Watch for index version 8.
4909 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
4910 an imported symtab.
4911 (write_psymtabs_to_index): Increment version number to 8.
4912
0928e93d
PA
49132013-01-22 Pedro Alves <palves@redhat.com>
4914
4915 * annotate.c (breakpoint_changed): Skip if breakpoint is not
4916 user-visible.
4917
9c97429f
PA
49182013-01-22 Pedro Alves <palves@redhat.com>
4919
4920 * annotate.c (annotate_breakpoints_changed): Rename to ...
4921 (annotate_breakpoints_invalid): ... this. Make static.
4922 (breakpoint_changed): Adjust.
4923 (_initialize_annotate): Always install the observers. Install a
4924 "breakpoint_created" observer.
4925 * annotate.h (annotate_breakpoints_changed): Delete declaration.
4926 * breakpoint.c (set_breakpoint_condition)
4927 (breakpoint_set_commands, do_map_commands_command)
4928 (init_raw_breakpoint, clear_command, set_ignore_count)
4929 (enable_breakpoint_disp): No longer call
4930 annotate_breakpoints_changed.
4931
bd00c694
PA
49322013-01-22 Pedro Alves <palves@redhat.com>
4933
4934 * annotate.c: Include "inferior.h".
4935 (frames_invalid_emitted)
4936 (breakpoints_invalid_emitted): New globals.
4937 (async_background_execution_p): New function.
4938 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
4939 emitting the annotation if it has already been emitted.
4940 (annotate_display_prompt): New function.
4941 * annotate.h (annotate_display_prompt): New declaration.
4942 * event-top.c: Include annotate.h.
4943 (display_gdb_prompt): Call annotate_display_prompt.
4944
187d10dd
PA
49452013-01-22 Pedro Alves <palves@redhat.com>
4946
4947 * annotate.c (ignore_count_changed): Delete.
4948 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
4949 (annotate_ignore_count_change): Delete.
4950 (annotate_stopped): Don't emit a delayed breakpoints-changed
4951 annotation.
4952 * annotate.h (annotate_ignore_count_change): Delete.
4953 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
4954 annotate_ignore_count_change.
4955
d84cf7eb
TT
49562013-01-22 Tom Tromey <tromey@redhat.com>
4957
4958 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
4959 require_rvalue for a register location.
4960
8f1d5693
MK
49612013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
4962
4963 * breakpoint.c (print_one_breakpoint_location): Add MI
4964 field 'thread-groups' when printing a breakpoint.
4965 (output_thread_groups): New function.
4966
aa6199c6
SCR
49672013-01-21 Siva Chandra Reddy <sivachandra@google.com>
4968
4969 * python/lib/gdb/commands/explore.py
4970 (CompoundExplorer.explore_expr): Correct the name of a method
4971 being invoked.
4972 (ExploreTypeCommand.invoke): Add a missing 'return'.
4973
d2afef13
TT
49742013-01-21 Tom Tromey <tromey@redhat.com>
4975
4976 * gdb_obstack.h (obconcat): Move declaration here, from...
4977 * symfile.h (obconcat): ... here.
4978 * gdb_obstack.c: New file.
4979 (obconcat): Move from...
4980 * symfile.c (obconcat): ... here.
4981 * Makefile.in (SFILES): Add gdb_obstack.c.
4982 (COMMON_OBS): Add gdb_obstack.o.
4983
10f0c4bb
TT
49842013-01-21 Tom Tromey <tromey@redhat.com>
4985
4986 * symfile.h (obsavestring): Don't declare.
4987 * symfile.c (obsavestring): Remove.
4988 * ada-exp.y: Use obstack_copy0, not obsavestring.
4989 * ada-lang.c: Use obstack_copy0, not obsavestring.
4990 * coffread.c: Use obstack_copy0, not obsavestring.
4991 * cp-namespace.c: Use obstack_copy0, not obsavestring.
4992 * dbxread.c: Use obstack_copy0, not obsavestring.
4993 * dwarf2read.c: Use obstack_copy0, not obsavestring.
4994 * jit.c: Use obstack_copy0, not obsavestring.
4995 * mdebugread.c: Use obstack_copy0, not obsavestring.
4996 * psymtab.c: Use obstack_copy0, not obsavestring.
4997 * stabsread.c: Use obstack_copy0, not obsavestring.
4998 * xcoffread.c: Use obstack_copy0, not obsavestring.
4999
86f62fd7
TT
50002013-01-21 Tom Tromey <tromey@redhat.com>
5001
5002 * dwarf2read.c (fixup_go_packaging): Save package name
5003 on objfile obstack.
5004 * gdbtypes.c (init_type): Don't copy name.
5005
15d034d0
TT
50062013-01-21 Tom Tromey <tromey@redhat.com>
5007
5008 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
5009 const.
5010 (struct attribute) <u.str>: Now const.
5011 (struct fnfieldlist) <name>: Now const.
5012 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
5013 (partial_die_parent_scope): Make return type const.
5014 (partial_die_full_name, add_partial_symbol): Update.
5015 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
5016 'name' const.
5017 (find_file_and_directory): Make 'name' and 'comp_dir' const.
5018 (read_file_scope, read_func_scope, dwarf2_add_field)
5019 (dwarf2_add_member_fn, read_structure_type)
5020 (process_enumeration_scope, read_array_type, read_module_type)
5021 (read_base_type, read_subrange_type): Update.
5022 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
5023 (new_symbol_full, guess_full_die_structure_name): Update.
5024 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
5025 (dwarf2_name): Return const type.
5026 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
5027 const.
5028
748e18ae
TT
50292013-01-21 Tom Tromey <tromey@redhat.com>
5030
5031 * gdbtypes.c (init_type): Make 'name' const.
5032 * gdbtypes.h (init_type): Update.
5033
46212e0b
TT
50342013-01-21 Tom Tromey <tromey@redhat.com>
5035
5036 * buildsym.c (patch_subfile_names): Use set_last_source_file.
5037 (start_symtab): Make 'name' and 'dirname' const. Use
5038 set_last_source_file.
5039 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
5040 (last_source_file): Define. Now static.
5041 (set_last_source_file, get_last_source_file): New functions.
5042 * buildsym.h (last_source_file): Don't declare.
5043 (start_symtab): Update.
5044 (set_last_source_file, get_last_source_file): Declare.
5045 * coffread.c (complete_symtab): Use set_last_source_file.
5046 (coff_end_symtab): Likewise.
5047 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
5048 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
5049 set_last_source_file.
5050 (process_one_symbol): Use get_last_source_file.
5051 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
5052 (psymtab_to_symtab_1): Use get_last_source_file.
5053 * xcoffread.c (process_linenos): Use get_last_source_file.
5054 (complete_symtab): Use set_last_source_file.
5055 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
5056 (scan_xcoff_symtab): Use set_last_source_file.
5057
9d2ceabe
TT
50582013-01-21 Tom Tromey <tromey@redhat.com>
5059
5060 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
5061 (symbol_set_names): Remove casts. Handle field const-ness.
5062
cfc594ee
TT
50632013-01-21 Tom Tromey <tromey@redhat.com>
5064
5065 * dwarf2read.c (new_symbol_full): Remove cast.
5066 * symtab.c (symbol_set_demangled_name): Make 'name' const.
5067 * symtab.h (symbol_set_demangled_name): Update.
5068
5484b13a
TT
50692013-01-21 Tom Tromey <tromey@redhat.com>
5070
5071 * main.c (captured_main): Call bfd_init.
5072
1605ef26
TT
50732013-01-21 Tom Tromey <tromey@redhat.com>
5074
5075 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
5076 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
5077 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
5078 * NEWS: Update.
5079
3b74cdc3
JK
50802013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5081
5082 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
5083
5a352474
JK
50842013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5085
5086 Fix gdb.fortran/common-block.exp crash in PIE mode.
5087 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
5088 LOC_COMMON_BLOCK.
5089 * f-valprint.c (info_common_command_for_block): Expect
5090 LOC_COMMON_BLOCK in gdb_assert.
5091 * symtab.h (struct general_symbol_info): Update comment for the
5092 common_block member.
5093 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
5094 (enum address_class): New member LOC_COMMON_BLOCK.
5095
c60797fd
DB
50962013-01-18 David Blaikie <dblaikie@gmail.com>
5097
5098 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 5099
46f35228
TT
51002013-01-18 Tom Tromey <tromey@redhat.com>
5101
5102 PR c++/14999:
5103 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
5104 Call require_rvalue.
5105
257e7a09
YQ
51062013-01-18 Yao Qi <yao@codesourcery.com>
5107
5108 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
5109 (dbx_read_symtab): New declaration.
5110 (dbx_psymtab_to_symtab): Delete.
5111 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
5112 Rename parameter PST to SELF. Exchanged two parameters.
5113 (start_psymtab): Caller update.
5114 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
5115 (dwarf2_read_symtab): New declaration.
5116 (dwarf2_psymtab_to_symtab): Delete.
5117 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
5118 Rename parameter PST to SELF. Exchanged two parameters.
5119 (create_partial_symtab): Caller update.
5120 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
5121 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
5122 Rename parameter PST to SELF. Exchanged two parameters.
5123 (parse_partial_symbols, new_psymtab): Caller update.
5124 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
5125 two parameters.
5126 * psymtab.c (psymtab_to_symtab): Caller update.
5127 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
5128 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
5129 Rename parameter PST to SELF. Exchanged two parameters.
5130 (xcoff_start_psymtab): Caller update.
5131
0de5618e
YQ
51322013-01-18 Yao Qi <yao@codesourcery.com>
5133
5134 * infrun.c (proceed): Rename local variable 'oneproc' to
5135 'force_step'.
5136
5c04624b
DE
51372013-01-17 Doug Evans <dje@google.com>
5138
848e3e78
DE
5139 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
5140 (dw2_build_type_unit_groups): Delete. All uses updated.
5141
5c04624b
DE
5142 * symtab.h (struct symbol_search): Add comment.
5143
d84fca2c
JK
51442013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5145
5146 * symtab.c (compare_filenames_for_search): New comment for
5147 HAS_DRIVE_SPEC.
5148
6108433d
TT
51492013-01-17 Tom Tromey <tromey@redhat.com>
5150
5151 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
5152
c89ffd86
JK
51532013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5154
5155 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
5156 initialize it by existing make_cleanup. Call new do_cleanups.
5157
db2b2972
TT
51582013-01-17 Tom Tromey <tromey@redhat.com>
5159
5160 * cp-abi.c (cp_abi_completer): New function.
5161 (_initialize_cp_abi): Set completer for "set cp-abi".
5162
be7d37a2
TT
51632013-01-17 Tom Tromey <tromey@redhat.com>
5164
5165 * mem-break.c: Remove obsolete comment.
5166 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
5167
c9fb1240
SD
51682012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
5169
5170 * jit.c (jit_reader_load_command): Interpret the jit reader name
5171 as an absolute path if it begins with a forward slash.
5172
db334a01
SD
51732012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
5174
5175 PR gdb/14550
5176
5177 * jit.c (finalize_symtab): Ensure that only the global block has a
5178 NULL superblock.
5179
7d928dac
PA
51802013-01-17 Pedro Alves <palves@redhat.com>
5181
5182 * acinclude.m4: Include ../config/plugins.m4,
5183 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
5184 * Makefile.in (aclocal_m4_deps): Update.
5185 * aclocal.m4: Renegerate.
5186
fb8cf7c5
DE
51872013-01-16 Doug Evans <dje@google.com>
5188
5189 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
5190
ab04a2af
TT
51912013-01-16 Pedro Alves <palves@redhat.com>
5192 Tom Tromey <tromey@redhat.com>
5193
5194 PR cli/7221:
5195 * NEWS: Add "catch signal".
5196 * breakpoint.c (base_breakpoint_ops): No longer static.
5197 (bpstat_explains_signal): New function.
5198 (init_catchpoint): No longer static.
5199 (base_breakpoint_explains_signal): New function.
5200 (base_breakpoint_ops): Initialize new field.
5201 * breakpoint.h (enum bpstat_signal_value): New.
5202 (struct breakpoint_ops) <explains_signal>: New field.
5203 (bpstat_explains_signal): Remove macro, declare as function.
5204 (base_breakpoint_ops, init_catchpoint): Declare.
5205 * break-catch-sig.c: New file.
5206 * inferior.h (signal_catch_update): Declare.
5207 * infrun.c (signal_catch): New global.
5208 (handle_syscall_event): Update for change to
5209 bpstat_explains_signal.
5210 (handle_inferior_event): Likewise. Always handle random signals
5211 via bpstats.
5212 (signal_cache_update): Check signal_catch.
5213 (signal_catch_update): New function.
5214 (_initialize_infrun): Initialize signal_catch.
5215 * Makefile.in (SFILES): Add break-catch-sig.c.
5216 (COMMON_OBS): Add break-catch-sig.o.
5217
8ac3646f
TT
52182013-01-16 Tom Tromey <tromey@redhat.com>
5219
5220 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
5221 (print_one_catch_solib, print_one_catch_syscall)
5222 (print_one_catch_exec, print_one_exception_catchpoint): Emit
5223 "catch-type".
5224
5a18e302
YQ
52252013-01-16 Yao Qi <yao@codesourcery.com>
5226
5227 * printcmd.c (current_display_number): Make it static.
5228
3f01d0d0
YQ
52292013-01-16 Yao Qi <yao@codesourcery.com>
5230
5231 * infcmd.c (step_once): Don't check '!single_inst' as it was
5232 checked before.
5233
1ed59174
JK
52342013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5235
5236 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
5237
44478ab3
TT
52382013-01-14 Tom Tromey <tromey@redhat.com>
5239
5240 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
5241 set command.
5242 * command.h (add_setshow_string_noescape_cmd): Update.
5243 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
5244 (complete_set_gnutarget): New function.
5245 (_initialize_core): Set the "set gnutarget" completer.
5246
06d66ee9
TT
52472013-01-14 Tom Tromey <tromey@redhat.com>
5248
5249 PR symtab/14442:
5250 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
5251 (c_type_print_modifier): Likewise.
5252 * dwarf2read.c (read_tag_restrict_type): New function.
5253 (read_type_die_1): Handle DW_TAG_restrict_type.
5254 * gdbtypes.c (make_restrict_type): New function.
5255 (recursive_dump_type): Handle TYPE_RESTRICT.
5256 * gdbtypes.h (enum type_flag_values): Renumber.
5257 (enum type_instance_flag_value): Add
5258 TYPE_INSTANCE_FLAG_RESTRICT.
5259 (TYPE_RESTRICT): New macro.
5260 (make_restrict_type): Declare.
5261
c9bf0622
TT
52622013-01-14 Tom Tromey <tromey@redhat.com>
5263
5264 PR symtab/14931:
5265 * psymtab.c (struct psymtab_state): New.
5266 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
5267 functions.
5268 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
5269 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
5270
44d594fd
PA
52712013-01-14 Richard Sharman <richard_sharman@mitel.com>
5272 Pedro Alves <palves@redhat.com>
5273
5274 PR remote/14786
5275
5276 * remote.c (remote_threads_info): Make a copy of the reply from
5277 qfThreadInfo and use that instead of rs->buf.
5278
442e4d9c
YQ
52792013-01-14 Yao Qi <yao@codesourcery.com>
5280
5281 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
5282 (dbx_psymtab_to_symtab): Likewise.
5283 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
5284 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
5285 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
5286
5b12a61c
JK
52872013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5288
5289 * parse.c (parse_exp_in_context): New variable inner_chain. Call
5290 make_cleanup_restore_current_language. Call set_language. Move
5291 OLD_CHAIN and INNER_CHAIN cleanups.
5292 * utils.c (do_restore_current_language)
5293 (make_cleanup_restore_current_language): New functions.
5294 * utils.h (make_cleanup_restore_current_language): New declaration.
5295
f0a4b570
JK
52962013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5297
5298 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
5299 non-existing files.
5300
57b3c00c
JK
5301 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
5302 non-existing files if FILENAME is already absolute.
5303
daefa854
JK
53042013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5305
5306 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
5307 fputs_filtered. Append trailing newline.
5308
ca9c6ee2
YQ
53092013-01-11 Yao Qi <yao@codesourcery.com>
5310 Stan Shebs <stan@codesourcery.com>
5311
5312 * psymtab.c (init_psymbol_list): Clarify the comment.
5313
f28045c2
YQ
53142013-01-11 Yao Qi <yao@codesourcery.com>
5315
5316 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
5317 (update_dprintf_command_list): Assert that 'printf_line' is
5318 non-null. Remove condition check.
5319
da5132d3
JK
53202013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
5321
5322 Code cleanup.
5323 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
5324 type const char *.
5325 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
5326 const char *.
5327 * tui/tui-source.h (tui_source_is_displayed): Likewise.
5328
843e694d
AG
53292013-01-09 Anthony Green <green@moxielogic.com>
5330
5331 * cp-abi.c (cplus_print_vtable): Don't return value from void
5332 function.
5333 * ada-lang.c (re_set_catch_assert): Ditto.
5334
da51c347
DE
53352013-01-09 Doug Evans <dje@google.com>
5336
5337 * symfile.h (quick_symbol_functions): Delete member
5338 pre_expand_symtabs_matching. All uses removed.
5339 * dwarf2read.c (dw2_lookup_symbol): Implement.
5340 (dw2_do_expand_symtabs_matching): Delete.
5341 (dw2_pre_expand_symtabs_matching): Delete.
5342 (struct dw2_symtab_iterator): New type.
5343 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
5344 (dw2_expand_symtabs_for_function): Rewrite.
5345 (dwarf2_gdb_index_functions): Update.
5346 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
5347 (psym_functions): Update.
5348
b2259038
TT
53492013-01-09 Tom Tromey <tromey@redhat.com>
5350
5351 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
5352 * configure: Rebuild.
5353 * configure.ac: Add somread.o to the build if BFD has SOM
5354 support.
5355 * somread.c: Include som/aout.h, not syms.h.
5356 (som_symtab_read): Use som_external_symbol_dictionary_record.
5357 Unpack records manually.
5358 (_initialize_somread): Declare.
5359
bdad4180
MF
53602012-01-08 Mike Frysinger <vapier@gentoo.org>
5361
5362 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
5363 Cast return_address to 64bits.
5364
03cdf680
HZ
53652013-01-08 Hui Zhu <hui_zhu@mentor.com>
5366
5367 * printcmd.c: Remove define of function output_command.
5368 * tracepoint.c: Remove extern of function output_command.
5369 * valprint.h: (output_command): New extern.
5370
8a808554
TT
53712013-01-07 Tom Tromey <tromey@redhat.com>
5372
5373 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
5374 Remove.
5375 (objc_language_defn): Use c_printchar, c_printstr,
5376 c_emit_char.
5377
e93a8774
TT
53782013-01-07 Tom Tromey <tromey@redhat.com>
5379
5380 PR cli/7719:
5381 * NEWS: Update.
5382 * ada-valprint.c (printstr, print_field_values): Remove
5383 "inspect_it" code.
5384 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
5385 code.
5386 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
5387 code.
5388 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
5389 * main.c (captured_main): Remove "epoch" argument.
5390 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
5391 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
5392 * p-valprint.c (pascal_object_print_value_fields): Remove
5393 "inspect_it" code.
5394 * printcmd.c (print_command_1): Remove 'inspect' argument.
5395 (print_command, call_command): Update.
5396 (inspect_command): Remove.
5397 (_initialize_printcmd): Make "inspect" an alias for "print".
5398 * top.c (epoch_interface): Remove.
5399 * top.h (epoch_interface): Remove.
5400 * valprint.c (user_print_options): Update.
5401 (print_converted_chars_to_obstack): Remove "inspect_it" code.
5402 * valprint.h (struct value_print_options) <inspect_it>: Remove
5403 field.
5404
54052013-01-04 Tom Tromey <tromey@redhat.com>
5406
5407 * valprint.h (read_string): Add 'extern'.
5408
b967eb24
JB
54092013-01-07 Joel Brobecker <brobecker@adacore.com>
5410
5411 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
5412 used to decide whether to define darwin_read_dyld_info or not.
5413
78a8b30e
PM
54142013-01-03 Pierre Muller <muller@sourceware.org>
5415
5416 * main.c (relocate_gdb_directory): Avoid calling stat function
5417 if DIR is empty.
5418
50da2f25
YQ
54192013-01-03 Yao Qi <yao@codesourcery.com>
5420
5421 * psymtab.c (fixup_psymbol_section): Update declaration.
5422 (fixup_psymbol_section): Remove code returning value.
5423
e7e8980f
YQ
54242013-01-03 Yao Qi <yao@codesourcery.com>
5425
5426 * symtab.h: Remove some out of date comments.
5427 (enum exception_event_kind): Move it ...
5428 * breakpoint.c: ... here.
5429
569283d4
MF
54302013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
5431
9f9d9a96 5432 PR gdb/14405
569283d4
MF
5433 * darwin-nat.c (darwin_read_dyld_info): Only build if
5434 TASK_DYLD_INFO_COUNT is defined.
5435 (darwin_xfer_partial): Call darwin_read_dyld_info only if
5436 TASK_DYLD_INFO_COUNT is defined.
5437
2e36fbea
TT
54382013-01-02 Tom Tromey <tromey@redhat.com>
5439
5440 * symfile.h (struct ecoff_debug_hack): Remove.
5441 * objfiles.c: Don't include mdebugread.h.
5442
4f05add4
TT
54432013-01-02 Tom Tromey <tromey@redhat.com>
5444
5445 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
5446 * configure.ac: Check for Mach-O support in BFD. Update
5447 CONFIG_OBS.
5448 * configure: Rebuild.
5449
def63ff0
TT
54502013-01-02 Tom Tromey <tromey@redhat.com>
5451
5452 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
5453 * configure.ac: Use GDB_AC_CHECK_BFD.
5454 * configure: Rebuild.
5455
60c5dd93
MK
54562013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
5457
5458 * MAINTAINERS: Update my email.
5459
6e58437e
JB
54602013-01-01 Joel Brobecker <brobecker@adacore.com>
5461
5462 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
5463
627fe805
JB
54642013-01-01 Joel Brobecker <brobecker@adacore.com>
5465
5466 * rs6000-nat.c (bss_data_overlap): New function.
5467 (vmap_symtab): Use it to adjust the .bss section's offset.
5468
28e7fd62
JB
54692013-01-01 Joel Brobecker <brobecker@adacore.com>
5470
5471 Update year range in copyright notice of all files.
5472
e93a8774 54732013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
5474
5475 * top.c (print_gdb_version): Update copyright year.
5476
72b20e9c 5477For older changes see ChangeLog-2012.
c906108c
SS
5478\f
5479Local Variables:
5480mode: change-log
5481left-margin: 8
5482fill-column: 74
5483version-control: never
57da7796 5484coding: utf-8
c906108c 5485End:
This page took 1.710584 seconds and 4 git commands to generate.