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