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