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