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