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