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