Preserve a verbose error message of xfer functions if they return -3.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
c12a2917
MM
12013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2
3 * features/btrace.dtd: New file.
4 * Makefile.in (XMLFILES): Add btrace.dtd.
5 * btrace.h (parse_xml_btrace): New declaration.
6 * btrace.c: Include xml-support.h.
7 (parse_xml_btrace): New function.
8 (parse_xml_btrace_block): New function.
9 (block_attributes): New struct.
10 (btrace_attributes): New struct.
11 (btrace_children): New struct.
12 (btrace_elements): New struct.
13
3e3aea48
MM
142013-03-11 Markus Metzger <markus.t.metzger@intel.com>
15
16 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
17 (amd64_linux_enable_btrace): New.
18 (amd64_linux_disable_btrace): New.
19 (amd64_linux_teardown_btrace): New.
20 (_initialize_amd64_linux_nat): Initialize btrace ops.
21 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
22 (i386_linux_enable_btrace): New.
23 (i386_linux_disable_btrace): New.
24 (i386_linux_teardown_btrace): New.
25 (_initialize_i386_linux_nat): Initialize btrace ops.
26 * config/i386/linux.mh: Add linux-btrace.o.
27 * config/i386/linux64.mh: Add linux-btrace.o.
28
7c97f91e
MM
292013-03-11 Markus Metzger <markus.t.metzger@intel.com>
30
31 * common/linux_btrace.h: New file.
32 * common/linux_btrace.c: New file.
33 * Makefile.in (SFILES): Add btrace.c.
34 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
35 (COMMON_OBS): Add btrace.o.
36 (linux-btrace.o): New rule.
37
1999790b 382013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
39
40 * target.h: Include btrace.h.
41 (struct target_ops) <to_supports_btrace, to_enable_btrace,
42 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
43 * target.c (target_supports_btrace): New function.
44 (target_enable_btrace): New function.
45 (target_disable_btrace): New function.
46 (target_teardown_btrace): New function.
47 (target_read_btrace): New function.
48 * btrace.h: New file.
49 * btrace.c: New file.
50 * Makefile.in: Add btrace.c.
51 * gdbthread.h: Include btrace.h.
52 (struct thread_info): Add btrace field.
53 * thread.c: Include btrace.h.
54 (clear_thread_inferior_resources): Call target_teardown_btrace.
55 * common/btrace-common.h: New file.
56
61a31a67
JK
572013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
58
59 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
60 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
61 kill_status to outer block.
62
05c56a9d
JK
632013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
64
65 Fix entry-values if the callee called a noreturn function.
66 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
67 get_frame_address_in_block. Add new comment.
68
9112db09
JK
692013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
70
71 Fix entry-values in C++ across CUs.
72 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
73 lookup_minimal_symbol. Add a comment.
74 * dwarf2read.c
75 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
76 DW_AT_linkage_name.
77
9b67fcec
YQ
782013-03-08 Yao Qi <yao@codesourcery.com>
79
80 * tracepoint.c (_initialize_tracepoint): Indent the code.
81
6221be90
PA
822013-03-08 Pedro Alves <palves@redhat.com>
83
84 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
85 (parse_find_args, find_command): Change type of pattern buffer
86 locals to 'gdb_byte *'.
87
be9a119c 882013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
89 Hafiz Abid Qadeer <abidh@codesourcery.com>
90
91 * NEWS: Mention set and show trace-buffer-size commands.
92 Mention new packet.
93 * target.h (struct target_ops): New method
94 to_set_trace_buffer_size.
95 (target_set_trace_buffer_size): New macro.
96 * target.c (update_current_target): Set up new method.
97 * tracepoint.c (trace_buffer_size): New global.
98 (start_tracing): Send it to the target.
99 (set_trace_buffer_size): New function.
100 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
101 * remote.c (remote_set_trace_buffer_size): New function.
102 (_initialize_remote): Use it.
103 (QTBuffer:size) New remote command.
104 (PACKET_QTBuffer_size): New enum.
105 (remote_protocol_features): Add an entry for
106 PACKET_QTBuffer_size.
107
7da3ab79
TT
1082013-03-08 Tom Tromey <tromey@redhat.com>
109
110 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
111 variable.
112
0c1f71e7
PA
1132013-03-07 Pedro Alves <palves@redhat.com>
114
115 * target.c (target_read_stralloc, target_fileio_read_alloc):
116 *Cast pointer to 'gdb_byte *' in target call.
117
c8af03a2
PA
1182013-03-07 Pedro Alves <palves@redhat.com>
119
120 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
121 call.
122
529480d0
KS
1232013-03-07 Keith Seitz <keiths@redhat.com>
124
125 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
126 (trace_pass_command): Likewise.
127 * cli/cli-cmds.c: Include cli/cli-utils.h.
128 (source_command): Use skip-spaces.
129 (disassemble_command): Likewise.
130 * findcmd.c: Include cli/cli-utils.h.
131 (parse_find_args): Use skip_spaces.
132 * go32-nat.c: Include cli/cli-utils.h.
133 (go32_sldt): Use skip_spaces.
134 (go32_sgdt): Likewise.
135 (go32_sidt): Likewise.
136 (go32_pde): Likewise.
137 (go32_pte): Likewise.
138 (go32_pte_for_address): Likewise.
139 * infcmd.c: Include cli/cli-utils.h.
140 (registers_info): Use skip_spaces.
141 * linux-tdep.c (read_mapping): Use skip_spaces_const.
142 (linux_info_proc): Likewise.
143 * linux-thread-db.c: Include cli/cli-utils.h.
144 (info_auto_load_libthread_db): Use skip_spaces_const.
145 * m32r-rom.c: Include cli/cli-utils.h.
146 (m32r_upload_command): Use skip_spaces.
147 * maint.c: Include cli/cli-utils.h.
148 (maintenance_translate_address): Use skip_spaces.
149 * mi/mi-parse.c: Include cli/cli-utils.h.
150 (mi_parse_argv): Use skip_spaces.
151 (mi_parse): Likewise.
152 * minsyms.c: Include cli/cli-utils.h.
153 (msymbol_hash_iw): Use skip_spaces_const.
154 * objc-lang.c: Include cli/cli-utils.h.
155 (parse_selector): Use skip_spaces.
156 (parse_method): Likewise.
157 * python/python.c: Include cli/cli-utils.h.
158 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
159 (python_command)[HAVE_PYTHON]: Likewise.
160 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
161 * remote-m32r-sdi.c: Include cli/cli-utils.h.
162 (m32r_load): Use skip_spaces.
163 * serial.c: Include cli/cli-utils.h.
164 (serial_open): Use skip_spaces_const.
165 * stack.c: Include cli/cli-utils.h.
166 (parse_frame_specification_1): Use skip_spaces_const.
167 * symfile.c: Include cli/cli-utils.h.
168 (set_ext_lang_command): Use skip_spaces.
169 * symtab.c: Include cli/cli-utils.h.
170 (rbreak_command): Use skip_spaces.
171 * thread.c (thread_name_command): Use skip_spaces.
172 * tracepoint.c (validate_actionline): Use skip_spaces.
173 (encode_actions_1): Likewise.
174 (trace_find_range_command): Likewise.
175 (trace_find_outside_command): Likewise.
176 (trace_dump_actions): Likewise.
177
ac91cd70
PA
1782013-03-07 Pedro Alves <palves@redhat.com>
179
180 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
181 * expprint.c (print_subexp_standard): Likewise.
182 * utils.c (host_char_to_target): Likewise.
183 * valprint.c (generic_emit_char, generic_printstr): Likewise.
184 * varobj.c (value_get_print_value): Change type of local to char*.
185 Cast it gdb_byte * in call to language printer.
186
2898e560
PA
1872013-03-07 Pedro Alves <palves@redhat.com>
188
189 * charset.c (struct wchar_iterator) <input>: Change type to 'const
190 gdb_byte *'.
191 (make_wchar_iterator): Remove cast to char*.
192 (wchar_iterate): Change type of local.
193
a09b4448
PA
1942013-03-07 Pedro Alves <palves@redhat.com>
195
196 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
197 for 'regcache->register_status'.
198
20ced3e4
PA
1992013-03-07 Pedro Alves <palves@redhat.com>
200
c2d6a675 201 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
202 int.
203
fe106009
PA
2042013-03-07 Pedro Alves <palves@redhat.com>
205
206 * stap-probe.c (handle_stap_probe): Add cast to char*.
207
8ac2c12b
PA
2082013-03-07 Pedro Alves <palves@redhat.com>
209
210 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
211 RECORD_MSGRCV>: Pass a signed variable to
212 regcache_raw_read_signed, instead of an unsigned one.
213
99f0a309
PA
2142013-03-07 Pedro Alves <palves@redhat.com>
215
216 * remote-notif.c (notif_debug): Change type to int.
217 * remote-notif.h (notif_debug): Likewise.
218
964b8317
PA
2192013-03-07 Pedro Alves <palves@redhat.com>
220
221 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
222
f0cc8ad4
PA
2232013-03-07 Pedro Alves <palves@redhat.com>
224
225 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
226 * remote.h (hex2bin, bin2hex): ... here.
227 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
228
77dec115
EZ
2292013-03-07 Eli Zaretskii <eliz@gnu.org>
230
231 * utils.c (initialize_utils): Improve doc strings of "set/show
232 width", "set/show height", and "set/show pagination".
233
741d92cf
KS
2342013-03-06 Keith Seitz <keiths@redhat.com>
235
236 * ax-gdb.c (gen_printf): Make FORMAT const.
237 * ax-gdb.h (gen_printf): Likewise.
238 * ax-general.c (ax_string): Make STR const.
239 * ax.h (ax_string): Likewise.
240
7b6c814e
DE
2412013-03-06 Doug Evans <dje@google.com>
242
243 * elfread.c (elf_symfile_read): Move debugging printf to more
244 logical location.
245
634334ab
PA
2462013-03-06 Pedro Alves <palves@redhat.com>
247
248 * python/py-utils.c (target_string_to_unicode): Delete function.
249 * python/python-internal.h (target_string_to_unicode): Delete
250 declaration.
251
e482a1a7
PM
2522013-03-06 Pierre Muller <muller@sourceware.org>
253
254 * linespec.c (get_current_search_block): ARI fix, use (void)
255 for empty parameter list.
256
4eeaa230
DE
2572013-03-05 Doug Evans <dje@google.com>
258
259 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
260 of old ada_lookup_symbol_list. In !full_search case, don't
261 search superblocks.
262 (ada_lookup_symbol_list): Delete arg full_search, all callers
263 updated. Call ada_lookup_symbol_list_worker.
264 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
265 * ada-lang.h (ada_lookup_symbol_list): Update.
266 * language.h (language_defn): Update comment for
267 la_iterate_over_symbols.
268 * linespec.c (iterate_over_file_blocks): New function.
269 (iterate_over_all_matching_symtabs): Call it.
270 (lookup_prefix_sym): Ditto.
271 (get_current_search_block): New function.
272 (get_search_block): Delete.
273 (find_label_symbols): Call get_current_search_block.
274 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
275 * symtab.c (iterate_over_symbols): Don't search superblocks.
276
b69b1fb1
YQ
2772013-03-05 Yao Qi <yao@codesourcery.com>
278
279 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
280 parameter VAR's type from "unsigned int" to "int".
281 * command.h (var_zuinteger_unlimited): Update its comments.
282 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
283
3c095f49
CV
2842013-03-05 Corinna Vinschen <vinschen@redhat.de>
285
286 * NEWS: Mention new target x86_64-*-cygwin*.
287
b5b0b0af
CV
2882013-03-05 Corinna Vinschen <vinschen@redhat.de>
289
290 * configure.host: Add x86_64-*-cygwin* as host.
291 * configure.tgt: Add x86_64-*-cygwin* as target.
292 * config/i386/cygwin64.mh: New file.
293
f6f99966
JK
2942013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
295
296 * linespec.c (decode_line_2): Fix duplicate request off by two message.
297
33f448b1
JK
2982013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
299
300 * linespec.c (struct linespec_canonical_name): New.
301 (struct linespec_state): Change canonical_names type to it.
302 (add_sal_to_sals): Change variable canonical_name to canonical. Change
303 xrealloc element size. Initialize the different CANONICAL fields.
304 (canonical_to_fullform): New.
305 (filter_results): Use it. Add variables canonical, fullform and
306 cleanup.
307 (struct decode_line_2_item, decode_line_2_compare_items): New.
308 (decode_line_2): Remove variables iter and item_names, add variables
309 items and items_count. Modify the code for these new variables.
310
feb14725
CV
3112013-03-04 Corinna Vinschen <vinschen@redhat.com>
312
313 * coff-pe-read.c (read_pe_exported_syms): Don't return without
314 calling do_cleanup.
315
e83b17ba
HZ
3162013-03-04 Luis Machado <lgustavo@codesourcery.com>
317
318 * tracepoint.c (build_traceframe_info): Add code for byte order.
319
a2d13a0d
KB
3202013-03-02 Kevin Buettner <kevinb@redhat.com>
321
8dddcae8
KB
322 * v850-tdep.c: (v850e2_register_name): Revise system register
323 names to match current V850E2M architecture specifications.
324 Update register number enum comments too.
a2d13a0d 325
d79e58d8
JW
3262013-03-01 Jiong Wang <jiwang@tilera.com>
327 Pedro Alves <palves@redhat.com>
328
329 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
330 to END_ADDR.
331 (tilegx_skip_prologue): Limit prologue analysis to section end.
332
c4be5165
JK
3332013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
334
335 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
336 use it.
337
e362b510
PA
3382013-03-01 Pedro Alves <palves@redhat.com>
339
340 Use gdb_byte for bytes from the program being debugged.
341
342 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
343 Change type of local 'buf' to gdb_byte.
344 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
345 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
346 * cris-tdep.c (cris_sigcontext_addr)
347 (cris_sigtramp_frame_unwind_cache): Likewise.
348 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
349 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
350 Likewise.
351 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
352 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
353 (hppa32_hpux_search_dummy_call_sequence)
354 (hppa_hpux_supply_save_state): Likewise.
355 * hppa-linux-tdep.c (insns_match_pattern)
356 (hppa_linux_find_global_pointer): Likewise.
357 * hppa-tdep.c (hppa_in_function_epilogue_p)
358 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
359 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
360 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
361 (i386fbsd_collect_uthread): Likewise.
362 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
363 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
364 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
365 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
366 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
367 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
368 (ia64_libunwind_frame_prev_register)
369 (ia64_libunwind_sigtramp_frame_this_id)
370 (ia64_find_global_pointer_from_dynamic_section)
371 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
372 (ia64_unwind_pc): Likewise.
373 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
374 * m68hc11-tdep.c (m68hc11_push_dummy_call)
375 (m68hc11_extract_return_value): Likewise.
376 * m68klinux-nat.c (fetch_register, store_register): Likewise.
377 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
378 (mep_get_insn, mep_push_dummy_call): Likewise.
379 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
380 (mips_linux_in_dynsym_stub): Likewise.
381 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
382 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
383 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
384 to gdb_byte.
385 * remote-mips.c (mips_set_register): Likewise.
386 * remote-sim.c (gdbsim_fetch_register): Likewise.
387 * score-tdep.c (score7_fetch_inst): Change type of parameter
388 'memblock' and local 'buf' to gdb_byte.
389 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
390 Change type of local 'buf' to gdb_byte. Adjust.
391 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
392 to gdb_byte**.
393 (score7_analyze_prologue): Change type of 'memblock' and
394 'memblock_ptr' locals to gdb_byte*.
395 * sh64-tdep.c (sh64_extract_return_value)
396 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
397 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
398 * solib-pa64.c (pa64_solib_create_inferior_hook)
399 (pa64_open_symbol_file_object): Remove local 'buf'.
400 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
401 (som_open_symbol_file_object): Likewise.
402 * solib-spu.c (spu_current_sos): Likewise.
403 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
404 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
405 (spu_store_registers): Likewise.
406 * target.c (debug_print_register): Likewise.
407 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
408 * xstormy16-tdep.c (xstormy16_store_return_value)
409 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
410 (xstormy16_find_jmp_table_entry): Likewise.
411
75cc61ca 4122013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
413
414 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
415 (tilegx_gdbarch_init): Install it.
416
ddb08e9c
TT
4172013-02-28 Tom Tromey <tromey@redhat.com>
418
419 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
420 PyLong_Check.
421
62d7fb51
DE
4222013-02-28 Doug Evans <dje@google.com>
423
424 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
425 * python/python.c (gdbpy_find_pc_line): Ditto.
426
c4a9e8b4
TT
4272013-02-28 Tom Tromey <tromey@redhat.com>
428
429 * contrib/excheck.py: New file.
430 * contrib/exsummary.py: New file.
431 * contrib/gcc-with-excheck: New file.
432
7f6a5dde
TT
4332013-02-28 Tom Tromey <tromey@redhat.com>
434
435 * python/python.c (gdbpy_print_stack): Call begin_line and
436 fprintf_filtered inside TRY_CATCH.
437
9e974e55
TT
4382013-02-28 Tom Tromey <tromey@redhat.com>
439
440 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
441 inside TRY_CATCH.
442
dd5fa3e7
TT
4432013-02-28 Tom Tromey <tromey@redhat.com>
444
445 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
446 frame_object_to_frame_info inside TRY_CATCH.
447
86a3263f
TT
4482013-02-28 Tom Tromey <tromey@redhat.com>
449
450 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
451 TRY_CATCH.
452
81b52a3a
TT
4532013-02-28 Tom Tromey <tromey@redhat.com>
454
455 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
456
d50a0ce2
CV
4572013-02-27 Corinna Vinschen <vinschen@redhat.com>
458
459 * windows-nat.c: Throughout, fix format strings and casts of
460 printf-like functions to avoid type related warnings on all
461 platforms.
462 (handle_output_debug_string): Fetch context information address
463 from debug string using string_to_core_addr.
464
e1f58301
JW
4652013-02-27 Jiong Wang <jiwang@tilera.com>
466
467 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
468 * regformats/reg-tilegx32.dat: New.
469
4fcd89fc
JW
4702013-02-27 Jiong Wang <jiwang@tilera.com>
471
472 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
473
748d24e6
JW
4742013-02-27 Jiong Wang <jiwang@tilera.com>
475
476 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
477
6c8e944d
YQ
4782013-02-27 Yao Qi <yao@codesourcery.com>
479 Pedro Alves <palves@redhat.com>
480
481 * tracepoint.c (tfile_trace_find): For tfind
482 pc/tp/range/outside, look for the next trace frame instead of
483 always starting from frame 0.
484
acd7db30
AG
4852013-02-26 Anthony Green <green@moxielogic.com>
486
487 * configure.tgt: Add support for moxie-*-rtems* target.
488
025e6dce
PA
4892013-02-25 Pedro Alves <palves@redhat.com>
490
491 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
492 warning text.
493
ca9c94ef
MR
4942013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
495
496 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
497 if $fp is used as the virtual frame pointer.
498
24c274a1
AM
4992013-02-23 Alan Modra <amodra@gmail.com>
500
501 * elfread.c (elf_symtab_read): Do not use udata.p here to find
502 symbol size.
503 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
504 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
505 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
506 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
507
bfada189
JK
5082013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
509
510 Code cleanup.
511 * elfread.c (build_id_bfd_get): Make the return type const.
512 (build_id_verify): Make the check parameter const.
513 (build_id_to_debug_filename): Make the build_id parameter and variable
514 data const.
515 (find_separate_debug_file_by_buildid): Make the variable build_id const.
516
c0355132
AM
5172013-02-21 Alan Modra <amodra@gmail.com>
518
519 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
520
9f44fbc0
SCR
5212013-02-20 Siva Chandra Reddy <sivachandra@google.com>
522
523 Add a new method 'disassemble' to gdb.Architecture class.
524 * python/py-arch.c (archpy_disassmble): Implementation of the
525 new method gdb.Architecture.disassemble.
526 (arch_object_methods): Add entry for the new method.
527
b74ea3eb
JW
5282013-02-20 Jiong Wang <jiwang@tilera.com>
529
530 * MAINTAINERS (Write After Approval): Add myself to the list.
531
61a672f1
PA
5322013-02-19 Pedro Alves <palves@redhat.com>
533
534 Garbage collect 'struct monitor_ops'::load_routine.
535
536 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
537 * monitor.c (monitor_load): No longer call
538 current_monitor->load_routine.
539 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
540 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
541 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
542
40e397df
PA
5432013-02-19 Pedro Alves <palves@redhat.com>
544
545 PR gdb/15161
546
547 Harmonize with generic_load.
548
549 * monitor.c: Include "readline/readline.h".
550 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
551 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
552 long/strtol for the 'load_offset' local. Error out if no argument
553 is given or if too many arguments are given. Tilde expand the
554 passed in file name.
555
f698ca8e
KT
5562013-02-19 Kai Tietz <ktietz@redhat.com>
557
558 PR gdb/15161
559 * symfile.c (load_section_data): Change type of load_offset
560 to CORE_ADDR.
561 (generic_load): User strtoulst instead of strtoul for conversion
562 of load_offset.
563
3361b059
WL
5642013-02-19 Jiong Wang <jiwang@tilera.com>
565
566 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
567 for return address, "lr" register, saved on stack.
568 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
569 after we invoke tilegx_analyze_prologue.
570
3e9d5130
WL
5712013-02-19 Jiong Wang <jiwang@tilera.com>
572
bb1bcd86
WL
573 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
574
3361b059 5752013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 576
b74ea3eb 577 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 578
4aaf2503
WL
5792013-02-19 Jiong Wang <jiwang@tilera.com>
580
b74ea3eb 581 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
582 (tilegx_write_pc): New function.
583 (tilegx_cannot_reference_register): Return zero if REGNO
584 is TILEGX_FAULTNUM_REGNUM.
585 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
586 (tilegx_register_name): Add handling of "faultnum" register.
587 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
588 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
589 handling of TILEGX_FAULTNUM_REGNUM.
590 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
591
bc23a956
WL
5922013-02-19 Jiong Wang <jiwang@tilera.com>
593
594 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 595 should be aligned to 64bit.
bc23a956 596
42f45f1a
KT
5972013-02-19 Kai Tietz <ktietz@redhat.com>
598
599 * windows-nat.c (windows_xfer_memory): Fix debug-output
600 for LLP64.
601
6ce4c112
LL
6022013-02-19 Lei Liu <lei.liu2@windriver.com>
603
604 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
605 Don't check DSP register number if HAVE_DSP is not set.
606
30e8ee25
AM
6072013-02-19 Alan Modra <amodra@gmail.com>
608
609 * elfread.c (struct build_id): Delete. Use struct elf_build_id
610 throughout file instead.
611 (build_id_bfd_get): Update to use new elf_tdata build_id field.
612 Don't xmalloc return value.
613 (build_id_verify): Similarly. Don't xfree.
614 (build_id_to_debug_filename): Update.
615 (find_separate_debug_file_by_buildid): Update, don't xfree.
616
4c9ad8c2
TT
6172013-02-18 Tom Tromey <tromey@redhat.com>
618
619 PR gdb/15102:
620 * dwarf2read.c (read_subrange_type): Use result of
621 'check_typedef'.
622
983dc440
YQ
6232013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
624
625 * frame.c: Remove one extra white space after #include
626 directive.
627
7fb2b84a
JK
6282013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
629
630 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
631
edceb2a9
JK
6322013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
633
634 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
635 and dir commands into an if block.
636
e81b7af8
TT
6372013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
638
639 * python/py-breakpoint (struct pybp_code): Use int instead of
640 enum type_code.
641
f5911ea1
HAQ
6422013-02-15 Pedro Alves <pedro@codesourcery.com>
643 Hafiz Abid Qadeer <abidh@codesourcery.com>
644
645 * NEWS: Mention new field "trace-file".
646 * tracepoint.c (trace_status_mi): Output "trace-file" field.
647 (tfile_open): Record the trace file's filename in the trace
648 status.
649 (tfile_files_info): Mention the name of the trace file.
650 Check the "filename" field explicitely.
651 (trace_status_command): Explicitely check "filename" field.
652 (trace_find_command): Ditto.
653 (trace_find_pc_command): Ditto.
654 (trace_find_tracepoint_command): Ditto.
655 (trace_find_line_command): Ditto.
656 (trace_find_range_command): Ditto.
657 (trace_find_outside_command): Ditto.
658 * tracepoint.h (struct trace_status) <from_file>: Rename it
659 to "filename" and make it hold the trace file's filename
660 instead of a boolean.
661 * remote.c (remote_get_trace_status): Initialize "filename"
662 field with NULL instead of 0.
663
796cb314
YQ
6642013-02-15 Yao Qi <yao@codesourcery.com>
665
666 * remote.c: Fix a typo.
667
42e79b1d
PM
6682013-02-14 Pierre Muller <muller@sourceware.org>
669
670 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
671
baea0dae
PA
6722013-02-14 Pedro Alves <palves@redhat.com>
673
674 * utils.c (savestring): Don't #undef it. Move function to
675 common/common-utils.c.
676 * common/common-utils.c: Include gdb_string.h.
677 (savestring): Move here from utils.c.
678 * common/common-utils.h (savestring): Declare.
679
57c3b6ed
PA
6802013-02-14 Pedro Alves <palves@redhat.com>
681
682 * utils.c (savestring): Rename parameter 'size' to 'len'.
683
d6c44983
YZ
6842013-02-14 Pedro Alves <palves@redhat.com>
685 Yufeng Zhang <yufeng.zhang@arm.com>
686
687 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
688 (aarch64_inferior_data, struct aarch64_inferior_data):
689 Delete.
690 (struct aarch64_process_info): New.
691 (aarch64_process_list): New global.
692 (aarch64_find_process_pid, aarch64_add_process)
693 (aarch64_process_info_get): New functions.
694 (aarch64_inferior_data_get): Delete.
695 (aarch64_process_info_get): New function.
696 (aarch64_forget_process): New function.
697 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
698 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
699 aarch64_get_debug_reg_state.
700 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
701 instead of linux_nat_iterate_watchpoint_lwps.
702 (aarch64_linux_new_fork): New function.
703 (aarch64_linux_child_post_startup_inferior): Use
704 aarch64_forget_process instead of aarch64_init_debug_reg_state.
705 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
706 (aarch64_linux_remove_hw_breakpoint)
707 (aarch64_handle_aligned_watchpoint)
708 (aarch64_handle_unaligned_watchpoint)
709 (aarch64_linux_insert_watchpoint)
710 (aarch64_linux_remove_watchpoint)
711 (aarch64_linux_stopped_data_address): Adjust to pass the current
712 process id to aarch64_debug_reg_state.
713 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
714 linux_nat_new_fork hook, and aarch64_forget_process as
715 linux_nat_forget_process hook; remove the call to
716 register_inferior_data_with_cleanup.
717
4819b3f8
PA
7182013-02-14 Pedro Alves <palves@redhat.com>
719
720 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
721 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
722 lval_memory.
723
1773c82c
HAQ
7242013-02-14 Pedro Alves <pedro@codesourcery.com>
725 Hafiz Abid Qadeer <abidh@codesourcery.com>
726
727 * tracepoint.h (validate_trace_state_variable_name): Declare.
728 * tracepoint.c (validate_trace_state_variable_name): New.
729 (trace_variable_command): Parse the trace state variable's name
730 without using parse_expression. Do several validations.
731 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
732 trace state variable's name with parse_expression. Validate it.
733
53778a97
YQ
7342013-02-14 Yao Qi <yao@codesourcery.com>
735
736 * infcmd.c (breakpoint_proceeded): Remove it.
737
7b3ae3a6
YQ
7382013-02-14 Yao Qi <yao@codesourcery.com>
739
740 * tracepoint.c (end_actions_pseudocommand): Make it static.
741 (while_stepping_pseudocommand): Likewise.
742 * tracepoint.h (end_actions_pseudocommand): Remove the
743 declaration.
744 (while_stepping_pseudocommand): Likewise.
745
64580925
YQ
7462013-02-14 Yao Qi <yao@codesourcery.com>
747
748 * cli/cli-decode.c (help_cmd): Remove the declaration of
749 "cmdlist".
750 (help_all): Likewise.
751
26cb8b7c
PA
7522013-02-13 Pedro Alves <palves@redhat.com>
753
754 * amd64-linux-nat.c (update_debug_registers_callback):
755 Update comment.
756 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
757 iterate_over_lwps.
758 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
759 i386_debug_reg_state.
760 (amd64_linux_new_fork): New function.
761 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
762 linux_nat_new_fork hook, and i386_forget_process as
763 linux_nat_forget_process hook.
764 * i386-linux-nat.c (update_debug_registers_callback):
765 Update comment.
a8256ea1 766 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
767 iterate_over_lwps.
768 (i386_linux_prepare_to_resume): Pass the lwp's pid to
769 i386_debug_reg_state.
770 (i386_linux_new_fork): New function.
771 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
772 linux_nat_new_fork hook, and i386_forget_process as
773 linux_nat_forget_process hook.
774 * i386-nat.c (i386_init_dregs): Delete.
775 (i386_inferior_data, struct i386_inferior_data):
776 Delete.
777 (struct i386_process_info): New.
778 (i386_process_list): New global.
779 (i386_find_process_pid, i386_add_process, i386_process_info_get):
780 New functions.
781 (i386_inferior_data_get): Delete.
782 (i386_process_info_get): New function.
783 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
784 (i386_forget_process): New function.
785 (i386_cleanup_dregs): Rewrite.
786 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
787 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
788 (i386_stopped_data_address, i386_insert_hw_breakpoint)
789 (i386_remove_hw_breakpoint): Adjust to pass the current process id
790 to i386_debug_reg_state.
791 (i386_use_watchpoints): Don't register inferior data.
792 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
793 adjust comment.
794 (i386_forget_process): Declare.
795 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
796 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
797 New static globals.
798 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
799 (add_initial_lwp): New, factored out from ...
800 (add_lwp): ... this. Don't check the number of lwps before
801 calling linux_nat_new_thread.
802 (linux_nat_iterate_watchpoint_lwps): Delete.
803 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
804 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
805 forks and vforks.
806 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
807 initial lwp.
808 (linux_nat_kill, linux_nat_mourn_inferior): Call
809 linux_nat_forget_process.
810 (linux_nat_set_new_fork, linux_nat_set_forget_process)
811 (linux_nat_forget_process): New functions.
812 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
813 type.
814 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
815 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
816 types.
817 (linux_nat_set_new_fork, linux_nat_set_forget_process)
818 (linux_nat_forget_process): New declarations.
819
820 * amd64fbsd-nat.c (super_mourn_inferior): New global.
821 (amd64fbsd_mourn_inferior): New function.
822 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
823 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
824
5befea72
MS
8252013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
826
55015247
YQ
827 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
828 Adding _().
5befea72 829
1d3ffd6b
MS
8302013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
831
832 * aarch64-linux-nat.c (debug_reg_change_callback)
833 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
834 %s and phex().
835
6eb04473
MS
8362013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
837
838 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
839 with LONGEST.
840
a016fc87
HAQ
8412013-02-13 Pedro Alves <palves@redhat.com>
842 Hafiz Abid Qadeer <abidh@codesourcery.com>
843
844 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
845
e234dfaf
TT
8462013-02-12 Tom Tromey <tromey@redhat.com>
847
848 PR symtab/11464:
849 * c-exp.y (lex_one_token): Initialize other fields of yylval on
850 NAME return.
851 (classify_inner_name): Remove 'first_name' argument, add
852 'context'. Remove unused variable.
853 (yylex): Explicitly maintain the context type. Exit loop earlier
854 if NAME result is seen.
855
0b1afbb3
PA
8562013-02-12 Pedro Alves <palves@redhat.com>
857
858 * amd64-darwin-tdep.c: Add (C) after Copyright.
859 * cli/cli-cmds.h: Ditto.
860 * cli/cli-decode.c: Ditto.
861 * cli/cli-decode.h: Ditto.
862 * cli/cli-dump.c: Ditto.
863 * cli/cli-dump.h: Ditto.
864 * cli/cli-interp.c: Ditto.
865 * cli/cli-logging.c: Ditto.
866 * cli/cli-script.c: Ditto.
867 * cli/cli-script.h: Ditto.
868 * cli/cli-setshow.c: Ditto.
869 * cli/cli-setshow.h: Ditto.
870 * cli/cli-utils.c: Ditto.
871 * cli/cli-utils.h: Ditto.
872 * config/alpha/nm-osf3.h: Ditto.
873 * config/djgpp/djconfig.sh: Ditto.
874 * config/i386/nm-fbsd.h: Ditto.
875 * config/i386/nm-i386gnu.h: Ditto.
876 * config/nm-linux.h: Ditto.
877 * config/nm-nto.h: Ditto.
878 * config/rs6000/nm-rs6000.h: Ditto.
879 * config/sparc/nm-sol2.h: Ditto.
880 * darwin-nat-info.c: Ditto.
881 * dfp.c: Ditto.
882 * dfp.h: Ditto.
883 * gdb-demangle.h: Ditto.
884 * i386-darwin-nat.c: Ditto.
885 * i386-darwin-tdep.c: Ditto.
886 * linux-fork.h: Ditto.
887 * m32c-tdep.c: Ditto.
888 * microblaze-linux-tdep.c: Ditto.
889 * microblaze-rom.c: Ditto.
890 * microblaze-tdep.c: Ditto.
891 * microblaze-tdep.h: Ditto.
892 * mips-linux-tdep.h: Ditto.
893 * ppc-ravenscar-thread.c: Ditto.
894 * ppc-ravenscar-thread.h: Ditto.
895 * prologue-value.c: Ditto.
896 * prologue-value.h: Ditto.
897 * ravenscar-thread.c: Ditto.
898 * ravenscar-thread.h: Ditto.
899 * sparc-ravenscar-thread.c: Ditto.
900 * sparc-ravenscar-thread.h: Ditto.
901 * tilegx-linux-tdep.c: Ditto.
902 * unwind_stop_reasons.def: Ditto.
903 * windows-nat.h: Ditto.
904 * xtensa-linux-tdep.c: Ditto.
905 * xtensa-xtregs.c: Ditto.
906 * regformats/regdat.sh: Ditto.
907 * regformats/regdef.h: Ditto.
908
6c01dd94
PA
9092013-02-12 Pedro Alves <palves@redhat.com>
910
911 * break-catch-sig.c: Update copyright years.
912
b65a2bd9
SCR
9132013-02-11 Siva Chandra Reddy <sivachandra@google.com>
914
915 Add support for a destructor for ui_out data and use it to
916 provide a ui_out destructor.
917 * ui-out.h: Declare the new ui_out destructor.
918 (ui_out_impl): Add a field for data destructor in ui_out_impl.
919 * ui-out.c (default_data_destroy): Add a default data destructor
920 which does nothing.
921 (default_ui_out_impl): Set the new data_destroy field to
922 default_data_destroy
923 (uo_data_destroy): Local function which invokes the data
924 destructor if present.
925 (clear_table): Local function which clears the table data of a
926 ui_out object.
927 (ui_out_destroy): Public function which frees a ui_out object.
928 (ui_out_table_end): Use the new clear_table function.
929 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
930 NULL.
931 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
932 to NULL.
933
c2792f5a
DE
9342013-02-11 Doug Evans <dje@google.com>
935
936 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
937 (printf_decfloat): New function. Broken out from ui_printf.
938 Remove unnecessary code to shift the entire format string down.
939 (printf_pointer): New function.
940 (ui_printf): Code to print C strings, wide C strings, decfloats,
941 and pointers moved to separate functions.
942
d9e98382
SDJ
9432013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
944
945 * valops.c (value_assign): Handling bitfield offset in
946 `lval_internalvar_component' case.
947
4ff3ce77
DE
9482013-02-08 Doug Evans <dje@google.com>
949
950 * common/format.c (parse_format_string): Fix whitespace.
951
901900c4
MGD
9522013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
953
954 * stack.c (return_command): Work around uninitialized variable
955 warning.
956
b5dbc8d4
YZ
9572013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
958
959 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
960 number of the registers from 36 to 34.
961
51d66578
MS
9622013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
963
964 * NEWS: Mention new AArch64 native and target support.
965
176b1c95
MS
9662013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
967
968 * MAINTAINERS (Write After Approval): Add myself.
969
9d19df75
MS
9702013-02-08 Jim MacArthur <jim.macarthur@arm.com>
971 Marcus Shawcroft <marcus.shawcroft@arm.com>
972 Nigel Stephens <nigel.stephens@arm.com>
973 Yufeng Zhang <yufeng.zhang@arm.com>
974
975 * aarch64-linux-nat.c: New file.
976 * config/aarch64/linux.mh: New file.
977 * configure.host: Add AArch64.
978 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
979
7e1e0340
DE
9802013-02-07 Doug Evans <dje@google.com>
981
982 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
983 disassemble command.
984
45e25a36
MS
9852013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
986
987 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
988 set_gdbarch_fetch_tls_load_module_address.
989
bbfdfe1c
DM
9902013-02-06 David S. Miller <davem@davemloft.net>
991
992 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
993 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
994 * value.c (struct_return_convention): New function.
995 (using_struct_return): Implement in terms of struct_return_convention.
996 * value.h (struct_return_convention): Declare.
997 * stack.c (return_command): Allow successful overriding of the return
998 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
999
bc9abe4a
TT
10002013-02-06 Tom Tromey <tromey@redhat.com>
1001
1002 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
1003 outside of TRY_CATCH.
1004
134a2066
YQ
10052013-02-06 Yao Qi <yao@codesourcery.com>
1006
1007 * mi/mi-interp.c: Include "tracepoint.h".
1008 (mi_tsv_modified): Declare.
1009 (mi_tsv_created, mi_tsv_deleted): Update declaration.
1010 (mi_interpreter_init): Call observer_attach_tsv_modified.
1011 (mi_tsv_modified): New.
1012 (mi_tsv_created, mi_tsv_deleted): Update.
1013 * tracepoint.c (trace_variable_command): Call
1014 observer_notify_tsv_modified if the initial value of tsv is
1015 changed.
1016 (delete_trace_state_variable): Call
1017 observer_notify_tsv_deleted earlier.
1018 (trace_variable_command): Caller update.
1019 (create_tsv_from_upload): Likewise.
1020 * observer.sh: Declare "struct trace_state_variable".
1021
1022 * NEWS: Mention the new MI notification "=tsv-modified".
1023
59be2b6a
DE
10242013-02-05 Doug Evans <dje@google.com>
1025
1026 * completer.c (location_completer): Fix typo in comment.
1027
d30113d4
JK
10282013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1029
1030 * breakpoint.c (add_location_to_breakpoint): Insert the location with
1031 ADDRESS sorted.
1032
14ac654f
MS
10332013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
1034
1035 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
1036 Refactor if statement to avoid trailing || operator.
1037
543bf33d
AT
10382013-02-05 Andreas Tobler <andreast@fgznet.ch>
1039
1040 * NEWS: Add PowerPC FreeBSD as a new native configuration.
1041
dc18f110
AT
10422013-02-04 Andreas Tobler <andreast@fgznet.ch>
1043
1044 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
1045 * configure.host: Add powerpc*-*-freebsd* target.
1046 * configure.tgt: Add target info for powerpc*-*-freebsd*.
1047 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
1048 * config/powerpc/fbsd.mh: New file.
1049
b3ac9c77
SDJ
10502013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
1051 Denys Vlasenko <dvlasenk@redhat.com>
1052 Pedro Alves <palves@redhat.com>
1053
1054 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
1055 (struct elf_internal_linux_prpsinfo): Forward declare.
1056 * gdbarch.h, gdbarch.c: Regenerate.
1057 * linux-tdep.c: Include `cli/cli-utils.h'.
1058 (linux_fill_prpsinfo): New function.
1059 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
1060 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
1061 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
1062 depending on gdbarch pointer bitness.
1063 * ppc-linux-tdep.c: Include elf-bfd.h.
1064 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
1065 on 32-bit.
1066
176eb98c
MS
10672013-02-04 Jim MacArthur <jim.macarthur@arm.com>
1068 Marcus Shawcroft <marcus.shawcroft@arm.com>
1069 Nigel Stephens <nigel.stephens@arm.com>
1070 Yufeng Zhang <yufeng.zhang@arm.com>
1071
1072 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
1073
cf0dbd6f
MS
10742013-02-04 Jim MacArthur <jim.macarthur@arm.com>
1075 Marcus Shawcroft <marcus.shawcroft@arm.com>
1076 Nigel Stephens <nigel.stephens@arm.com>
1077 Yufeng Zhang <yufeng.zhang@arm.com>
1078
1079 * aarch64-newlib-tdep.c: New file.
1080 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
1081 aarch64*-*-elf.
1082 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
1083 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
1084 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
1085 * osabi.c (gdb_osabi_names): Add "Newlib".
1086
1ae3db19
MS
10872013-02-04 Jim MacArthur <jim.macarthur@arm.com>
1088 Marcus Shawcroft <marcus.shawcroft@arm.com>
1089 Nigel Stephens <nigel.stephens@arm.com>
1090 Yufeng Zhang <yufeng.zhang@arm.com>
1091
1092 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
1093 (ALLDEPFILES): Add aarch64-linux-tdep.c.
1094 * aarch64-linux-tdep.c: New file.
1095 * aarch64-linux-tdep.h: New file.
1096 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
1097 * configure.tgt: Add aarch64-none-linux-gnu.
1098
07b287a0
MS
10992013-02-04 Jim MacArthur <jim.macarthur@arm.com>
1100 Marcus Shawcroft <marcus.shawcroft@arm.com>
1101 Nigel Stephens <nigel.stephens@arm.com>
1102 Yufeng Zhang <yufeng.zhang@arm.com>
1103
1104 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
1105 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
1106 (ALLDEPFILES): Add aarch64-tdep.c.
1107 * aarch64-tdep.c: New file.
1108 * aarch64-tdep.h: New file.
1109 * configure.tgt: Add AArch64.
1110 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
1111 (aarch64-expedite): New definition.
1112 * features/aarch64-core.xml: New file.
1113 * features/aarch64-fpu.xml: New file.
1114 * features/aarch64-without-fpu.c: New file (generated).
1115 * features/aarch64-without-fpu.xml: New file.
1116 * features/aarch64.c: New file (generated).
1117 * features/aarch64.xml: New file.
1118 * regformats/aarch64-without-fpu.dat: New file (generated).
1119 * regformats/aarch64.dat: New file (generated).
1120
0f1b18ab
JK
11212013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1122
1123 * contrib/expect-read1.c: New file.
1124 * contrib/expect-read1.sh: New file.
1125
233d95b5
JK
11262013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1127
1128 * dwarf2read.c (file_file_name): New function with code from
1129 file_full_name.
1130 (file_full_name): Move most of the code to file_file_name.
1131 (macro_start_file): Rename variable full_name to file_name and use
1132 file_file_name for it. Add comp_dir parameter to new_macro_table.
1133 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
1134 macro_source_file->filename access by macro_source_fullname call.
1135 * macroscope.c (_initialize_macroscope): Update the new_macro_table
1136 caller.
1137 * macrotab.c (struct macro_table): New field comp_dir.
1138 (macro_include): New variables link_fullname and source_fullname.
1139 Replace any macro_source_file->filename access by macro_source_fullname
1140 call.
1141 (macro_lookup_inclusion): Remove the partial filenames checking code.
1142 (check_for_redefinition): New variables source_fullname and
1143 found_key_fullname. Replace any macro_source_file->filename access by
1144 macro_source_fullname call.
1145 (macro_undef): New variables source_fullname and key_fullname. Replace
1146 any macro_source_file->filename access by macro_source_fullname call.
1147 (macro_lookup_definition): New variables retval and source_fullname.
1148 Replace any macro_source_file->filename access by macro_source_fullname
1149 call.
1150 (foreach_macro): New variable key_fullname. Replace any
1151 macro_source_file->filename access by macro_source_fullname call.
1152 (foreach_macro_in_scope): New variable datum_fullname. Replace any
1153 macro_source_file->filename access by macro_source_fullname call.
1154 (new_macro_table): Add parameter comp_dir. Initialize T with it.
1155 (macro_source_fullname): New function.
1156 * macrotab.h (struct macro_source_file): Extent the filename field
1157 comment.
1158 (new_macro_table): New parameter comp_dir, add a comment for it.
1159 (macro_source_fullname): new declaration.
1160
da235a7c
JK
11612013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1162
1163 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
1164 this_real_name to outer block. Use it also for
1165 compare_filenames_for_search.
1166 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
1167 with dw2_get_real_path for file_matcher, considering also
1168 BASENAMES_MAY_DIFFER.
1169 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
1170
fbd9ab74
JK
11712013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1172
1173 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
1174 to the file_matcher parameter. Pass 0 to it.
1175 (dwarf2_create_include_psymtab): Copy also DIRNAME.
1176 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
1177 NULL psymtab_to_fullname result.
1178 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
1179 an expected filename instead.
1180 (expand_symtabs_matching_via_partial): Add basenames parameter to the
1181 file_matcher parameter. Call also psymtab_to_fullname, after newly
1182 considering BASENAMES_MAY_DIFFER.
1183 * source.c (rewrite_source_path): Remove static.
1184 * source.h (rewrite_source_path): New declaration.
1185 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
1186 the expand_symtabs_matching field. Comment it.
1187 * symtab.c (file_matches): New function comment. Add parameter
1188 basenames, implement it.
1189 (search_symbols_file_matches): Add basenames parameter. Update the
1190 file_matches caller.
1191 (search_symbols): Match FILES also against symtab_to_fullname.
1192 Optimize it for BASENAMES_MAY_DIFFER.
1193
56d397a3
JK
11942013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1195
1196 * source.c (print_source_lines_base): Print for TUI also "fullname".
1197 * tui/tui-data.c (init_content_element): Change tui_locator_element
1198 field to full_name.
1199 * tui/tui-data.h (struct tui_locator_element): Likewise.
1200 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
1201 tui_update_locator_filename calls to tui_update_locator_fullname.
1202 Replace symtab->filename refererence by symtab_to_fullname call.
1203 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
1204 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
1205 field to full_name. Replace symtab->filename refererence by
1206 symtab_to_fullname call.
1207 (tui_show_symtab_source): Rename parameter to fullname. Change
1208 tui_locator_element field to full_name.
1209 * tui/tui-stack.c: Include source.h.
1210 (tui_set_locator_filename): Rename the declaration to ...
1211 (tui_set_locator_fullname): ... here. Rename its parameter to
1212 fullname, updates its comment.
1213 (tui_set_locator_info): Rename its parameter to fullname.
1214 (tui_set_locator_filename): Rename the definition to ...
1215 (tui_set_locator_fullname): ... here. Rename its parameter to
1216 fullname, updates its comment. Change tui_locator_element field to
1217 full_name.
1218 (tui_set_locator_info): Rename its parameter to fullname.
1219 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
1220 (tui_update_locator_filename): Rename to ...
1221 (tui_update_locator_fullname): ... here. Rename callee to
1222 tui_set_locator_fullname.
1223 (tui_show_frame_info): Replace symtab->filename refererence by
1224 symtab_to_fullname call.
1225 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
1226 (tui_update_locator_fullname): ... here.
1227 * tui/tui-winsource.c (tui_display_main): Rename the callee to
1228 tui_update_locator_fullname. Replace symtab->filename refererence by
1229 symtab_to_fullname call.
1230 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
1231 Rename the callee to tui_update_locator_fullname.
1232 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
1233
05cba821
JK
12342013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1235
1236 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
1237 by symtab_to_filename_for_display calls.
1238 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
1239 (clear_command): New variable sal_fullname, initialize it. Replace
1240 compare_filenames_for_search by filename_cmp with sal_fullname.
1241 (say_where, update_static_tracepoint): Replace symtab->filename
1242 refererences by symtab_to_filename_for_display calls.
1243 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
1244 Likewise.
1245 * dwarf2read.c: Include source.h.
1246 (fixup_go_packaging): Replace symtab->filename refererences by
1247 symtab_to_filename_for_display calls.
1248 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
1249 Replace symtab->filename refererences by symtab_to_filename_for_display
1250 calls.
1251 (create_sals_line_offset, convert_linespec_to_sals): New variable
1252 fullname, initialize it, replace symtab->filename reference by the
1253 variable.
1254 * linux-fork.c: Include source.h.
1255 (info_checkpoints_command): Replace symtab->filename refererences by
1256 symtab_to_filename_for_display calls.
1257 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
1258 by symtab_to_filename_for_display calls.
1259 * mdebugread.c: Include source.h.
1260 (psymtab_to_symtab_1): Replace symtab->filename refererences by
1261 symtab_to_filename_for_display calls.
1262 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
1263 (mi_cmd_file_list_exec_source_files): Likewise.
1264 * printcmd.c: Include source.h.
1265 (build_address_symbolic): Replace symtab->filename refererences by
1266 symtab_to_filename_for_display calls.
1267 * psymtab.c (partial_map_symtabs_matching_filename)
1268 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
1269 with psymtab_to_fullname.
1270 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
1271 by symtab_to_filename_for_display calls.
1272 (stpy_get_filename): New variable filename, initialize it, use instead
1273 of symtab->filename refererences.
1274 (salpy_str): Make variable filename const char *. Replace
1275 symtab->filename refererences by symtab_to_filename_for_display calls.
1276 * skip.c: Include source.h and filenames.h.
1277 (skip_file_command): Remove const from the symtab variable. Replace
1278 symtab->filename refererences by symtab_to_fullname call.
1279 (function_name_is_marked_for_skip): New variables searched_for_fullname
1280 and fullname. Use them to search also with symtab's fullname.
1281 * source.c (find_source_lines): Replace symtab->filename refererences
1282 by symtab_to_filename_for_display calls.
1283 (print_source_lines_base): New variable filename, use it instead of
1284 symtab->filename. Replace symtab->filename refererences by
1285 symtab_to_filename_for_display calls.
1286 (line_info, forward_search_command): Replace symtab->filename
1287 refererences by symtab_to_filename_for_display calls.
1288 (reverse_search_command): Replace symtab->filename refererences by
1289 symtab_to_filename_for_display calls. New variable filename for it.
1290 * stack.c (frame_info): Likewise.
1291 * symmisc.c: Include source.h.
1292 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
1293 (maintenance_info_symtabs): Replace symtab->filename refererences by
1294 symtab_to_filename_for_display calls.
1295 * symtab.c (iterate_over_some_symtabs): Call
1296 compare_filenames_for_search also with symtab_to_fullname.
1297 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
1298 symtab->filename refererences by symtab_to_filename_for_display calls.
1299 (find_line_symtab): Replace symtab->filename refererences by
1300 symtab_to_filename_for_display calls.
1301 (file_matches): Replace filename_cmp by compare_filenames_for_search.
1302 (print_symbol_info): Make the last parameter const char *. New
1303 variable s_filename. Use it in the function.
1304 (symtab_symbol_info): Make the last_filename variable const char *.
1305 Replace symtab->filename refererences by symtab_to_filename_for_display
1306 calls.
1307 (rbreak_command): New variable fullname. Use it. Replace
1308 symtab->filename refererence by symtab_to_filename_for_display call.
1309 * tracepoint.c (set_traceframe_context, trace_find_line_command)
1310 (print_one_static_tracepoint_marker): Replace symtab->filename
1311 refererences by symtab_to_filename_for_display calls.
1312 * tui/tui-source.c (tui_set_source_content): New variables filename and
1313 s_filename. Replace symtab->filename refererences by this variable.
1314 Replace other symtab->filename refererences by
1315 symtab_to_filename_for_display calls.
1316
1b56eb55
JK
13172013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
1318 Jan Kratochvil <jan.kratochvil@redhat.com>
1319
1320 Add a new variable that controls a way in which filenames are
1321 displayed.
1322 * NEWS (set filename-display): New entry.
1323 * source.c (filename_display_basename, filename_display_relative)
1324 (filename_display_absolute, filename_display_kind_names)
1325 (filename_display_string, show_filename_display_string)
1326 (symtab_to_filename_for_display): New.
1327 (_initialize_source): Added initialization of 'filename-display'
1328 variable.
1329 * source.h (symtab_to_filename_for_display): Added declaration.
1330 * stack.c (print_frame): Added new variable and calling of a new
1331 function and condition with this variable. Changed third argument of
1332 calling of a function.
1333
aa079c93
JK
13342013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1335
1336 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
1337 Rename field reference filename to fullname.
1338 * tui/tui-data.h (struct tui_source_info): Rename field filename to
1339 fullname. New comment for it.
1340 * tui/tui-source.c (tui_set_source_content): Rename field reference
1341 filename to fullname. Initialize field by symtab_to_fullname now.
1342 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
1343 reference filename to fullname. Use symtab_to_fullname during
1344 comparison.
1345
652a8996
JK
13462013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1347
1348 Code cleanup.
1349 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
1350 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
1351 filename to fullname. Rename variable this_name to this_fullname.
1352 Lowercase FILENAME_CMP call.
1353 (dw2_find_symbol_file): New comment for the returned string.
1354 (dwarf2_gdb_index_functions): Rename the function to
1355 dw2_expand_symtabs_with_fullname.
1356 * psymtab.c (read_psymtabs_with_filename): Rename to ...
1357 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
1358 fullname.
1359 (psym_functions): Rename the function to read_psymtabs_with_fullname.
1360 * symfile.h (struct quick_symbol_functions): Rename field
1361 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
1362 parameter filename to fullname. Document returned string meaning for
1363 find_symbol_file.
1364 * symtab.c (find_line_symtab): Rename the called function to
1365 expand_symtabs_with_fullname.
1366
af529f8f
JK
13672013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1368
1369 Code cleanup.
1370 * breakpoint.c (clear_command): Remove variable is_abs, unify the
1371 call of filename_cmp with compare_filenames_for_search.
1372 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
1373 is_abs, unify the call of FILENAME_CMP with
1374 compare_filenames_for_search. New gdb_asserts for real_path and name.
1375 Unify the call of compare_filenames_for_search with FILENAME_CMP.
1376 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
1377 * symfile.h (struct quick_symbol_functions): Extend the comment for
1378 map_symtabs_matching_filename.
1379 * symtab.c (compare_filenames_for_search): Remove the function comment
1380 relative path requirement. Handle absolute filenames, with a comment.
1381 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
1382 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
1383 real_path and name. Unify the call of compare_filenames_for_search
1384 with FILENAME_CMP.
1385 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
1386
2f202fde
JK
13872013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1388
1389 Code cleanup.
1390 * breakpoint.c (print_breakpoint_location): Replace bp_location field
1391 source_file references by symtab field references. Remove variables
1392 sal and fullname.
1393 (momentary_breakpoint_from_master, add_location_to_breakpoint):
1394 (clear_command, say_where): Replace bp_location field source_file
1395 references by symtab field references.
1396 (bp_location_dtor): Remove the source_file reference.
1397 (update_static_tracepoint): Replace bp_location field source_file
1398 references by symtab field references.
1399 (breakpoint_free_objfile): New function.
1400 * breakpoint.h (struct bp_location): Extend the comment for line_number.
1401 Replace the field source_file by field symtab, extend its comment.
1402 (breakpoint_free_objfile): New declaration.
1403 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
1404 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
1405 field source_file references by symtab field references.
1406
f5b95b50
JK
14072013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1408
1409 Replace xfullpath calls by gdb_realpath calls.
1410 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
1411 function comment.
1412 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
1413 Remove it from the iterate_over_some_symtabs call.
1414 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
1415 Remove it from the dw2_map_expand_apply calls, remove a block handling
1416 it.
1417 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
1418 Remove it from the iterate_over_some_symtabs call.
1419 (partial_map_symtabs_matching_filename): Remove parameter full_path.
1420 Remove it from the partial_map_expand_apply calls, remove a block
1421 handling it. Drop gdb_realpath call and cleanups from the real_path
1422 handling.
1423 * source.c (openp): Drop the comment part about xfullpath. Replace
1424 xfullpath calls by gdb_realpath calls.
1425 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
1426 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
1427 from method map_symtabs_matching_filename and its comment.
1428 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
1429 gdb_realpath call.
1430 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
1431 remove it also from the function comment, remove a block handling it.
1432 Drop gdb_realpath call and cleanups from the real_path handling.
1433 (iterate_over_symtabs): Drop variable full_path and its use.
1434 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
1435 * utils.c (xfullpath): Remove.
1436 * utils.h (xfullpath): Remove.
1437
d78489bf
AT
14382013-02-01 Andreas Tobler <andreast@fgznet.ch>
1439
1440 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
1441 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
1442 (ALLDEPFILES): Add ppc64-tdep.c.
1443 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
1444 ppc64-tdep.o to gdb_target_obs.
1445 * ppc64-tdep.h: New file.
1446 * ppc64-tdep.c: New file.
1447 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
1448 ppc-linux-tdep.c to here.
1449 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
1450 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
1451 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
1452 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
1453 from ppc-linux-tdep.c to here.
1454 (ppc64_convert_from_func_ptr_addr): Rename from
1455 ppc64_linux_convert_from_func_ptr_addr to
1456 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
1457 here.
1458 * rs6000-tdep.c:
1459 (read_insn): Move from ppc-linux-tdep.c to here.
1460 (insns_match_pattern, insn_d_field, insn_ds_field): Move
1461 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
1462 * ppc-linux-tdep.c: Include ppc64-tdep.h.
1463 Removed above functions.
1464 (ppc_linux_init_abi): Adjust.
1465
8db60374
AR
14662013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
1467
1468 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
1469
f2e5f4ce
AR
14702013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
1471
1472 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
1473
c1f7d745
PA
14742013-02-01 Pedro Alves <palves@redhat.com>
1475
1476 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
1477 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
1478
8a92335b
JK
14792013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
1480
1481 * elfread.c (elf_symfile_read): Limit separate debug info additions to
1482 files with no separate debug info.
1483 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
1484 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
1485 only for files with no separate debug info.
1486
8eacb197
TT
14872013-01-31 Tom Tromey <tromey@redhat.com>
1488
1489 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
1490 change type.
1491 (struct jit_program_space_data): Rename from jit_inferior_data.
1492 Update comments.
1493 (get_jit_program_space_data): Rename from get_jit_inferior_data.
1494 Change return type. Attach data to program space.
1495 (jit_program_space_data_cleanup): Rename from
1496 jit_inferior_data_cleanup; change argument type.
1497 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
1498 change type.
1499 (jit_register_code): Update.
1500 (jit_update_inferior_cache): Remove.
1501 (jit_breakpoint_deleted): Get jit data from the location's program
1502 space.
1503 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
1504 'ps_data', change type.
1505 (jit_inferior_init, jit_breakpoint_re_set_internal)
1506 (jit_event_handler): Update.
1507 (free_objfile_data): Get data from objfile's program space.
1508 (_initialize_jit): Update.
1509
f25c0135
TT
15102013-01-31 Tom Tromey <tromey@redhat.com>
1511
1512 PR gdb/13987:
1513 * jit.c (struct jit_inferior_data) <cached_code_address,
1514 jit_breakpoint>: New fields.
1515 (jit_breakpoint_re_set_internal): Fix logging. Only create
1516 breakpoint if cached address has changed.
1517 (jit_update_inferior_cache, jit_breakpoint_deleted): New
1518 functions.
1519 (_initialize_jit): Register breakpoint deleted observer.
1520
974a734b
AR
15212013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1522
1523 * infrun.c (handle_syscall_event): Remove unused gdbarch.
1524 (save_infcall_suspend_state): Ifdef out unused inf.
1525 (restore_infcall_suspend_state): Ifdef out unused inf.
1526 * jit.c (jit_register_code): Remove unused i, b, inf_data.
1527 (jit_frame_sniffer): Remove unused inf_data.
1528
df54f8eb
AR
15292013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1530
1531 * c-exp.y (classify_inner_name): Remove unused type.
1532 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
1533 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
1534 need_escape.
1535 (c_get_string): Remove unused kind.
1536 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
1537
5799c0b9
AR
15382013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1539
1540 * charset.c (intermediate_encoding): Remove unused i.
1541 * completer.c (signal_completer): Remove unused i.
1542 * continuations.c (discard_my_continuations_1): Remove unused
1543 continuation_ptr.
1544 * corelow.c (core_close): Remove unuseD name.
1545 (get_core_siginfo): Remove unused pid.
1546 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
1547 i, cps.
1548 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
1549 (loclist_describe_location): Remove unused first.
1550 * event-top.c (command_line_handler): Remove unused got_eof.
1551 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
1552 (resize_section_table): Remove unused old_value.
1553 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
1554 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
1555 * i386-tdep.c (i386_process_record): Remove unused rex.
1556 * infcmd.c (get_return_value): Remove unused uiout.
1557 * jv-lang.c (type_from_class): Remove unused is_array.
1558 * jv-valprint.c (java_val_print): Remove unused i.
1559 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
1560 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
1561 * m2-typeprint.c (m2_print_type): Remove unused code.
1562 * macroexp.c (get_character_constant): Remove unused body_start.
1563 (macro_stringify): Remove unused result.
1564 * objc-lang.c (find_methods): Remove unused gdbarch.
1565 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
1566 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
1567 * stack.c (print_frame_args): Remove unused summary.
1568 * thread.c (thread_apply_command): Remove unused p.
1569 * valarith.c (value_x_unop): Remove unused mangle_ptr.
1570 * valops.c (search_struct_method): Remove unused skip.
1571 * valprint.c (generic_val_print): Remove unused byte_order.
1572 * varobj.c (varobj_update): Remove unused changed.
1573 * cli/cli-cmds.c (complete_command): Remove unused next_item.
1574 (alias_command): Remove unused c.
1575 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
1576 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
1577 format.
1578 (mi_cmd_data_write_memory): Remove unused word_format.
1579 (mi_cmd_data_write_memory_bytes): Remove unused r.
1580 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
1581 p_start, p_end.
1582 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
1583 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
1584 line_width.
1585
c656bca5
AR
15862013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1587
1588 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
1589 * symtab.c (iterate_over_symtabs): Remove unused s.
1590 (find_pc_sect_symtab): Remove unused pspAce.
1591 (find_pc_sect_line): Remove unused alt_symtab.
1592 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
1593 (completion_list_add_name): Remove unused newsize.
1594
7078baeb
TT
15952013-01-31 Tom Tromey <tromey@redhat.com>
1596
1597 PR c++/14998:
1598 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
1599 TYPE_CODE_FUNC.
1600
c2e8b827
AR
16012013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1602
1603 * target.c (target_read_string): Remove unused origlen.
1604
0e43993a
AR
16052013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1606
1607 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
1608 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
1609 * ax-general.c (ax_print): Remove unused is_float.
1610 * blockframe.c (block_innermost_frame): Remove unused start, end.
1611 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
1612
765a97ab
AR
16132013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
1614
1615 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
1616 (svr4_read_so_list): Remove unused lmo.
1617 * solib-target.c (solib_target_relocate_section_addresses): Remove
1618 unused flags.
1619
a99dad3d
TT
16202013-01-30 Tom Tromey <tromey@redhat.com>
1621
1622 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
1623
3bff1ecd
TT
16242013-01-30 Tom Tromey <tromey@redhat.com>
1625
1626 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
1627 * utils.c (gnu_debuglink_crc32): Remove.
1628 * utils.h (gnu_debuglink_crc32): Don't declare.
1629
7d455152
TT
16302013-01-30 Tom Tromey <tromey@redhat.com>
1631
1632 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
1633 (read_structure_type, read_enumeration_type): Remove cast.
1634
abee88f2
TT
16352013-01-30 Tom Tromey <tromey@redhat.com>
1636
1637 * dwarf2read.c (read_namespace_type): Remove cast.
1638 (read_typedef): Likewise.
1639
8d9878a4
TT
16402013-01-29 Tom Tromey <tromey@redhat.com>
1641
1642 * dwarf2read.c (free_dwo_file): Remove assert.
1643
a543d2a9
TT
16442013-01-29 Tom Tromey <tromey@redhat.com>
1645
1646 * value.c (deprecated_set_value_modifiable): Remove.
1647 * value.h (deprecated_set_value_modifiable): Remove.
1648
bed911e5
DE
16492013-01-28 Doug Evans <dje@google.com>
1650
1651 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
1652 to addresses from dwo files.
1653
28c64fc2
SCR
16542013-01-25 Siva Chandra Reddy <sivachandra@google.com>
1655
1656 * valops.c (find_overload_match): Remove unused argument 'lax'.
1657 * value.h: Remove unused argument 'lax' from the declaration of
1658 find_overload_match.
1659 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
1660 to find_overload_match.
1661 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
1662 argument to find_overload_match.
1663
4d4ec4e5
TT
16642013-01-25 Tom Tromey <tromey@redhat.com>
1665
1666 * dwarf2read.c (processing_has_namespace_info): Remove.
1667 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
1668 (process_die, read_func_scope, dwarf2_start_symtab)
1669 (new_symbol_full): Update.
1670
195a3f6c
TT
16712013-01-25 Tom Tromey <tromey@redhat.com>
1672
1673 * cp-namespace.c (cp_set_block_scope): Remove.
1674 * cp-support.h (cp_set_block_scope): Remove.
1675 * dbxread.c: Include block.h.
1676 (cp_set_block_scope): New function.
1677 (process_one_symbol): Update.
1678 * dwarf2read.c (read_func_scope): Use block_set_scope.
1679
8ba0730a
PA
16802013-01-25 Pedro Alves <palves@redhat.com>
1681
1682 * remote.c (add_current_inferior_and_thread): Tweak comment.
1683
12aaed36
TT
16842013-01-25 Tom Tromey <tromey@redhat.com>
1685
1686 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
1687 (cp_add_using_directive): Add 'copy_names' argument.
1688 * cp-support.h (cp_add_using_directive): Update.
1689 (struct using_direct) <import_src, import_dest, alias,
1690 declaration>: Now const.
1691 * dwarf2read.c (read_import_statement): Use obconcat.
1692 Don't copy names passed to cp_add_using_directive.
1693
7fc75ca7
TT
16942013-01-25 Tom Tromey <tromey@redhat.com>
1695
1696 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
1697
3405876a
PA
16982013-01-25 Pedro Alves <palves@redhat.com>
1699
1700 * remote.c (stop_reply_extract_thread): New.
1701 (add_current_inferior_and_thread): New parameter 'wait_status'.
1702 Handle it.
1703 (remote_start_remote): Pass wait status to
1704 add_current_inferior_and_thread.
1705 (extended_remote_run): Update comment.
1706 (extended_remote_create_inferior_1): Pass wait status to
1707 add_current_inferior_and_thread.
1708
8954db33
AB
17092013-01-25 Andrew Burgess <aburgess@broadcom.com>
1710 Ulrich Weigand <uweigand@de.ibm.com>
1711
1712 * valarith.c (value_vector_widen): New function for replicating a
1713 scalar into a vector.
1714 (value_binop): Use value_vector_widen to widen scalar to vector
1715 rather than casting, this better matches gcc C behaviour.
1716 * valops.c (value_casst): Update logic for casting between vector
1717 types, and for casting from scalar to vector, try to match gcc C
1718 behaviour.
1719 * value.h (value_vector_widen): Declare.
1720 * opencl-lang.c (opencl_value_cast): New opencl specific casting
1721 function, handle special case for casting scalar to vector.
1722 (opencl_relop): Use opencl_value_cast.
1723 (evaluate_subexp_opencl): Use opencl_value_cast instead of
1724 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
1725 in order to use opencl_value_cast.
1726
843b20dc
YQ
17272013-01-25 Yao Qi <yao@codesourcery.com>
1728
1729 * event-loop.c: Include "queue.h".
1730 (gdb_event_p): New typedef.
1731 (DECLARE_QUEUE_P): Use.
1732 (DEFINE_QUEUE_P): Use.
1733 (async_queue_event): Remove.
1734 (gdb_event_xfree): New.
1735 (initialize_event_loop): New.
1736 (process_event): Use QUEUE macros.
1737 (event_queue): Remove.
1738 (gdb_wait_for_event): Caller update.
1739 (check_async_event_handlers): Likewise.
1740 (poll_timers): Likewise.
1741 * event-loop.h (initialize_event_loop): Declare.
1742 * event-loop.c (gdb_event_xfree): New.
1743 * top.c (gdb_init): Call initialize_event_loop.
1744
20ad8856
YQ
17452013-01-25 Yao Qi <yao@codesourcery.com>
1746
1747 * event-loop.c (async_queue_event): Remove one parameter
1748 'position'. Remove code handling 'position' == TAIL.
1749 (gdb_wait_for_event): Caller update.
1750 (check_async_event_handlers): Caller update.
1751 (poll_timers): Caller update.
1752 * event-loop.h (enum queue_position): Remove.
1753
3bbbe775
MK
17542013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
1755
1756 * MAINTAINERS: Update my email.
1757
a87d9ac4
YQ
17582013-01-25 Yao Qi <yao@codesourcery.com>
1759
1760 * main.c (print_gdb_help): Remove "--epoch" from the help
1761 message.
1762
2077afdd
TD
17632013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
1764
1765 * symtab.c (skip_prologue_using_sal): Consider a file
1766 change the same as an increased line number
1767
63da4037
TD
17682013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
1769
30e8ee25 1770 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 1771
45e6c716
TT
17722013-01-24 Tom Tromey <tromey@redhat.com>
1773
1774 * ada-lang.h (ada_decode_symbol): Make return type const.
1775 * ada-lang.c (ada_decode_symbol): Likewise.
1776
b1ae631a
DE
17772013-01-23 Doug Evans <dje@google.com>
1778
1779 * linespec.c (find_linespec_symbols): Make static.
1780
55a78401
SDJ
17812013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
1782
1783 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
1784 type on float conversion for complex type.
1785
bea883fd
SCR
17862013-01-23 Siva Chandra Reddy <sivachandra@google.com>
1787
1788 Add a new class gdb.Architecture which exposes GDB's
1789 internal representation of architecture via GDB Python API.
1790 * Makefile.in: Add entries corresponding to the new file
1791 python/py-arch.c.
1792 * NEWS (Python Scripting): Add entries for the new class
1793 gdb.Architecture and the new method gdb.Frame.architecture.
1794 * python/py-arch.c: Implement gdb.Architecture class.
1795 * python/py-frame.c (frapy_arch): Implement the method
1796 gdb.Frame.architecture().
1797 (frame_object_methods): Add 'architecture' to the method table.
1798 * python/python-internal.h: Add declarations of new utility
1799 functions.
1800 * python/python.c (_initialize_python): Initialize
1801 gdb.Architecture class.
1802
796a7ff8
DE
18032013-01-23 Doug Evans <dje@google.com>
1804
1805 Work around binutils/15021.
1806 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
1807 type_unit_group out of union s. All uses updated.
1808 (read_index_from_section): Watch for index version 8.
1809 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
1810 an imported symtab.
1811 (write_psymtabs_to_index): Increment version number to 8.
1812
0928e93d
PA
18132013-01-22 Pedro Alves <palves@redhat.com>
1814
1815 * annotate.c (breakpoint_changed): Skip if breakpoint is not
1816 user-visible.
1817
9c97429f
PA
18182013-01-22 Pedro Alves <palves@redhat.com>
1819
1820 * annotate.c (annotate_breakpoints_changed): Rename to ...
1821 (annotate_breakpoints_invalid): ... this. Make static.
1822 (breakpoint_changed): Adjust.
1823 (_initialize_annotate): Always install the observers. Install a
1824 "breakpoint_created" observer.
1825 * annotate.h (annotate_breakpoints_changed): Delete declaration.
1826 * breakpoint.c (set_breakpoint_condition)
1827 (breakpoint_set_commands, do_map_commands_command)
1828 (init_raw_breakpoint, clear_command, set_ignore_count)
1829 (enable_breakpoint_disp): No longer call
1830 annotate_breakpoints_changed.
1831
bd00c694
PA
18322013-01-22 Pedro Alves <palves@redhat.com>
1833
1834 * annotate.c: Include "inferior.h".
1835 (frames_invalid_emitted)
1836 (breakpoints_invalid_emitted): New globals.
1837 (async_background_execution_p): New function.
1838 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
1839 emitting the annotation if it has already been emitted.
1840 (annotate_display_prompt): New function.
1841 * annotate.h (annotate_display_prompt): New declaration.
1842 * event-top.c: Include annotate.h.
1843 (display_gdb_prompt): Call annotate_display_prompt.
1844
187d10dd
PA
18452013-01-22 Pedro Alves <palves@redhat.com>
1846
1847 * annotate.c (ignore_count_changed): Delete.
1848 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
1849 (annotate_ignore_count_change): Delete.
1850 (annotate_stopped): Don't emit a delayed breakpoints-changed
1851 annotation.
1852 * annotate.h (annotate_ignore_count_change): Delete.
1853 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
1854 annotate_ignore_count_change.
1855
d84cf7eb
TT
18562013-01-22 Tom Tromey <tromey@redhat.com>
1857
1858 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
1859 require_rvalue for a register location.
1860
8f1d5693
MK
18612013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
1862
1863 * breakpoint.c (print_one_breakpoint_location): Add MI
1864 field 'thread-groups' when printing a breakpoint.
1865 (output_thread_groups): New function.
1866
aa6199c6
SCR
18672013-01-21 Siva Chandra Reddy <sivachandra@google.com>
1868
1869 * python/lib/gdb/commands/explore.py
1870 (CompoundExplorer.explore_expr): Correct the name of a method
1871 being invoked.
1872 (ExploreTypeCommand.invoke): Add a missing 'return'.
1873
d2afef13
TT
18742013-01-21 Tom Tromey <tromey@redhat.com>
1875
1876 * gdb_obstack.h (obconcat): Move declaration here, from...
1877 * symfile.h (obconcat): ... here.
1878 * gdb_obstack.c: New file.
1879 (obconcat): Move from...
1880 * symfile.c (obconcat): ... here.
1881 * Makefile.in (SFILES): Add gdb_obstack.c.
1882 (COMMON_OBS): Add gdb_obstack.o.
1883
10f0c4bb
TT
18842013-01-21 Tom Tromey <tromey@redhat.com>
1885
1886 * symfile.h (obsavestring): Don't declare.
1887 * symfile.c (obsavestring): Remove.
1888 * ada-exp.y: Use obstack_copy0, not obsavestring.
1889 * ada-lang.c: Use obstack_copy0, not obsavestring.
1890 * coffread.c: Use obstack_copy0, not obsavestring.
1891 * cp-namespace.c: Use obstack_copy0, not obsavestring.
1892 * dbxread.c: Use obstack_copy0, not obsavestring.
1893 * dwarf2read.c: Use obstack_copy0, not obsavestring.
1894 * jit.c: Use obstack_copy0, not obsavestring.
1895 * mdebugread.c: Use obstack_copy0, not obsavestring.
1896 * psymtab.c: Use obstack_copy0, not obsavestring.
1897 * stabsread.c: Use obstack_copy0, not obsavestring.
1898 * xcoffread.c: Use obstack_copy0, not obsavestring.
1899
86f62fd7
TT
19002013-01-21 Tom Tromey <tromey@redhat.com>
1901
1902 * dwarf2read.c (fixup_go_packaging): Save package name
1903 on objfile obstack.
1904 * gdbtypes.c (init_type): Don't copy name.
1905
15d034d0
TT
19062013-01-21 Tom Tromey <tromey@redhat.com>
1907
1908 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
1909 const.
1910 (struct attribute) <u.str>: Now const.
1911 (struct fnfieldlist) <name>: Now const.
1912 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
1913 (partial_die_parent_scope): Make return type const.
1914 (partial_die_full_name, add_partial_symbol): Update.
1915 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
1916 'name' const.
1917 (find_file_and_directory): Make 'name' and 'comp_dir' const.
1918 (read_file_scope, read_func_scope, dwarf2_add_field)
1919 (dwarf2_add_member_fn, read_structure_type)
1920 (process_enumeration_scope, read_array_type, read_module_type)
1921 (read_base_type, read_subrange_type): Update.
1922 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
1923 (new_symbol_full, guess_full_die_structure_name): Update.
1924 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
1925 (dwarf2_name): Return const type.
1926 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
1927 const.
1928
748e18ae
TT
19292013-01-21 Tom Tromey <tromey@redhat.com>
1930
1931 * gdbtypes.c (init_type): Make 'name' const.
1932 * gdbtypes.h (init_type): Update.
1933
46212e0b
TT
19342013-01-21 Tom Tromey <tromey@redhat.com>
1935
1936 * buildsym.c (patch_subfile_names): Use set_last_source_file.
1937 (start_symtab): Make 'name' and 'dirname' const. Use
1938 set_last_source_file.
1939 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
1940 (last_source_file): Define. Now static.
1941 (set_last_source_file, get_last_source_file): New functions.
1942 * buildsym.h (last_source_file): Don't declare.
1943 (start_symtab): Update.
1944 (set_last_source_file, get_last_source_file): Declare.
1945 * coffread.c (complete_symtab): Use set_last_source_file.
1946 (coff_end_symtab): Likewise.
1947 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
1948 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
1949 set_last_source_file.
1950 (process_one_symbol): Use get_last_source_file.
1951 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
1952 (psymtab_to_symtab_1): Use get_last_source_file.
1953 * xcoffread.c (process_linenos): Use get_last_source_file.
1954 (complete_symtab): Use set_last_source_file.
1955 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
1956 (scan_xcoff_symtab): Use set_last_source_file.
1957
9d2ceabe
TT
19582013-01-21 Tom Tromey <tromey@redhat.com>
1959
1960 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
1961 (symbol_set_names): Remove casts. Handle field const-ness.
1962
cfc594ee
TT
19632013-01-21 Tom Tromey <tromey@redhat.com>
1964
1965 * dwarf2read.c (new_symbol_full): Remove cast.
1966 * symtab.c (symbol_set_demangled_name): Make 'name' const.
1967 * symtab.h (symbol_set_demangled_name): Update.
1968
5484b13a
TT
19692013-01-21 Tom Tromey <tromey@redhat.com>
1970
1971 * main.c (captured_main): Call bfd_init.
1972
1605ef26
TT
19732013-01-21 Tom Tromey <tromey@redhat.com>
1974
1975 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
1976 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
1977 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
1978 * NEWS: Update.
1979
3b74cdc3
JK
19802013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1981
1982 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
1983
5a352474
JK
19842013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1985
1986 Fix gdb.fortran/common-block.exp crash in PIE mode.
1987 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
1988 LOC_COMMON_BLOCK.
1989 * f-valprint.c (info_common_command_for_block): Expect
1990 LOC_COMMON_BLOCK in gdb_assert.
1991 * symtab.h (struct general_symbol_info): Update comment for the
1992 common_block member.
1993 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
1994 (enum address_class): New member LOC_COMMON_BLOCK.
1995
c60797fd
DB
19962013-01-18 David Blaikie <dblaikie@gmail.com>
1997
1998 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 1999
46f35228
TT
20002013-01-18 Tom Tromey <tromey@redhat.com>
2001
2002 PR c++/14999:
2003 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
2004 Call require_rvalue.
2005
257e7a09
YQ
20062013-01-18 Yao Qi <yao@codesourcery.com>
2007
2008 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
2009 (dbx_read_symtab): New declaration.
2010 (dbx_psymtab_to_symtab): Delete.
2011 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
2012 Rename parameter PST to SELF. Exchanged two parameters.
2013 (start_psymtab): Caller update.
2014 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
2015 (dwarf2_read_symtab): New declaration.
2016 (dwarf2_psymtab_to_symtab): Delete.
2017 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
2018 Rename parameter PST to SELF. Exchanged two parameters.
2019 (create_partial_symtab): Caller update.
2020 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
2021 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
2022 Rename parameter PST to SELF. Exchanged two parameters.
2023 (parse_partial_symbols, new_psymtab): Caller update.
2024 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
2025 two parameters.
2026 * psymtab.c (psymtab_to_symtab): Caller update.
2027 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
2028 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
2029 Rename parameter PST to SELF. Exchanged two parameters.
2030 (xcoff_start_psymtab): Caller update.
2031
0de5618e
YQ
20322013-01-18 Yao Qi <yao@codesourcery.com>
2033
2034 * infrun.c (proceed): Rename local variable 'oneproc' to
2035 'force_step'.
2036
5c04624b
DE
20372013-01-17 Doug Evans <dje@google.com>
2038
848e3e78
DE
2039 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
2040 (dw2_build_type_unit_groups): Delete. All uses updated.
2041
5c04624b
DE
2042 * symtab.h (struct symbol_search): Add comment.
2043
d84fca2c
JK
20442013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2045
2046 * symtab.c (compare_filenames_for_search): New comment for
2047 HAS_DRIVE_SPEC.
2048
6108433d
TT
20492013-01-17 Tom Tromey <tromey@redhat.com>
2050
2051 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
2052
c89ffd86
JK
20532013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2054
2055 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
2056 initialize it by existing make_cleanup. Call new do_cleanups.
2057
db2b2972
TT
20582013-01-17 Tom Tromey <tromey@redhat.com>
2059
2060 * cp-abi.c (cp_abi_completer): New function.
2061 (_initialize_cp_abi): Set completer for "set cp-abi".
2062
be7d37a2
TT
20632013-01-17 Tom Tromey <tromey@redhat.com>
2064
2065 * mem-break.c: Remove obsolete comment.
2066 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
2067
c9fb1240
SD
20682012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
2069
2070 * jit.c (jit_reader_load_command): Interpret the jit reader name
2071 as an absolute path if it begins with a forward slash.
2072
db334a01
SD
20732012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
2074
2075 PR gdb/14550
2076
2077 * jit.c (finalize_symtab): Ensure that only the global block has a
2078 NULL superblock.
2079
7d928dac
PA
20802013-01-17 Pedro Alves <palves@redhat.com>
2081
2082 * acinclude.m4: Include ../config/plugins.m4,
2083 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
2084 * Makefile.in (aclocal_m4_deps): Update.
2085 * aclocal.m4: Renegerate.
2086
fb8cf7c5
DE
20872013-01-16 Doug Evans <dje@google.com>
2088
2089 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
2090
ab04a2af
TT
20912013-01-16 Pedro Alves <palves@redhat.com>
2092 Tom Tromey <tromey@redhat.com>
2093
2094 PR cli/7221:
2095 * NEWS: Add "catch signal".
2096 * breakpoint.c (base_breakpoint_ops): No longer static.
2097 (bpstat_explains_signal): New function.
2098 (init_catchpoint): No longer static.
2099 (base_breakpoint_explains_signal): New function.
2100 (base_breakpoint_ops): Initialize new field.
2101 * breakpoint.h (enum bpstat_signal_value): New.
2102 (struct breakpoint_ops) <explains_signal>: New field.
2103 (bpstat_explains_signal): Remove macro, declare as function.
2104 (base_breakpoint_ops, init_catchpoint): Declare.
2105 * break-catch-sig.c: New file.
2106 * inferior.h (signal_catch_update): Declare.
2107 * infrun.c (signal_catch): New global.
2108 (handle_syscall_event): Update for change to
2109 bpstat_explains_signal.
2110 (handle_inferior_event): Likewise. Always handle random signals
2111 via bpstats.
2112 (signal_cache_update): Check signal_catch.
2113 (signal_catch_update): New function.
2114 (_initialize_infrun): Initialize signal_catch.
2115 * Makefile.in (SFILES): Add break-catch-sig.c.
2116 (COMMON_OBS): Add break-catch-sig.o.
2117
8ac3646f
TT
21182013-01-16 Tom Tromey <tromey@redhat.com>
2119
2120 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
2121 (print_one_catch_solib, print_one_catch_syscall)
2122 (print_one_catch_exec, print_one_exception_catchpoint): Emit
2123 "catch-type".
2124
5a18e302
YQ
21252013-01-16 Yao Qi <yao@codesourcery.com>
2126
2127 * printcmd.c (current_display_number): Make it static.
2128
3f01d0d0
YQ
21292013-01-16 Yao Qi <yao@codesourcery.com>
2130
2131 * infcmd.c (step_once): Don't check '!single_inst' as it was
2132 checked before.
2133
1ed59174
JK
21342013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2135
2136 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
2137
44478ab3
TT
21382013-01-14 Tom Tromey <tromey@redhat.com>
2139
2140 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
2141 set command.
2142 * command.h (add_setshow_string_noescape_cmd): Update.
2143 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
2144 (complete_set_gnutarget): New function.
2145 (_initialize_core): Set the "set gnutarget" completer.
2146
06d66ee9
TT
21472013-01-14 Tom Tromey <tromey@redhat.com>
2148
2149 PR symtab/14442:
2150 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
2151 (c_type_print_modifier): Likewise.
2152 * dwarf2read.c (read_tag_restrict_type): New function.
2153 (read_type_die_1): Handle DW_TAG_restrict_type.
2154 * gdbtypes.c (make_restrict_type): New function.
2155 (recursive_dump_type): Handle TYPE_RESTRICT.
2156 * gdbtypes.h (enum type_flag_values): Renumber.
2157 (enum type_instance_flag_value): Add
2158 TYPE_INSTANCE_FLAG_RESTRICT.
2159 (TYPE_RESTRICT): New macro.
2160 (make_restrict_type): Declare.
2161
c9bf0622
TT
21622013-01-14 Tom Tromey <tromey@redhat.com>
2163
2164 PR symtab/14931:
2165 * psymtab.c (struct psymtab_state): New.
2166 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
2167 functions.
2168 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
2169 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
2170
44d594fd
PA
21712013-01-14 Richard Sharman <richard_sharman@mitel.com>
2172 Pedro Alves <palves@redhat.com>
2173
2174 PR remote/14786
2175
2176 * remote.c (remote_threads_info): Make a copy of the reply from
2177 qfThreadInfo and use that instead of rs->buf.
2178
442e4d9c
YQ
21792013-01-14 Yao Qi <yao@codesourcery.com>
2180
2181 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
2182 (dbx_psymtab_to_symtab): Likewise.
2183 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
2184 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
2185 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
2186
5b12a61c
JK
21872013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2188
2189 * parse.c (parse_exp_in_context): New variable inner_chain. Call
2190 make_cleanup_restore_current_language. Call set_language. Move
2191 OLD_CHAIN and INNER_CHAIN cleanups.
2192 * utils.c (do_restore_current_language)
2193 (make_cleanup_restore_current_language): New functions.
2194 * utils.h (make_cleanup_restore_current_language): New declaration.
2195
f0a4b570
JK
21962013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2197
2198 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
2199 non-existing files.
2200
57b3c00c
JK
2201 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
2202 non-existing files if FILENAME is already absolute.
2203
daefa854
JK
22042013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2205
2206 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
2207 fputs_filtered. Append trailing newline.
2208
ca9c6ee2
YQ
22092013-01-11 Yao Qi <yao@codesourcery.com>
2210 Stan Shebs <stan@codesourcery.com>
2211
2212 * psymtab.c (init_psymbol_list): Clarify the comment.
2213
f28045c2
YQ
22142013-01-11 Yao Qi <yao@codesourcery.com>
2215
2216 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
2217 (update_dprintf_command_list): Assert that 'printf_line' is
2218 non-null. Remove condition check.
2219
da5132d3
JK
22202013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2221
2222 Code cleanup.
2223 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
2224 type const char *.
2225 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
2226 const char *.
2227 * tui/tui-source.h (tui_source_is_displayed): Likewise.
2228
843e694d
AG
22292013-01-09 Anthony Green <green@moxielogic.com>
2230
2231 * cp-abi.c (cplus_print_vtable): Don't return value from void
2232 function.
2233 * ada-lang.c (re_set_catch_assert): Ditto.
2234
da51c347
DE
22352013-01-09 Doug Evans <dje@google.com>
2236
2237 * symfile.h (quick_symbol_functions): Delete member
2238 pre_expand_symtabs_matching. All uses removed.
2239 * dwarf2read.c (dw2_lookup_symbol): Implement.
2240 (dw2_do_expand_symtabs_matching): Delete.
2241 (dw2_pre_expand_symtabs_matching): Delete.
2242 (struct dw2_symtab_iterator): New type.
2243 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
2244 (dw2_expand_symtabs_for_function): Rewrite.
2245 (dwarf2_gdb_index_functions): Update.
2246 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
2247 (psym_functions): Update.
2248
b2259038
TT
22492013-01-09 Tom Tromey <tromey@redhat.com>
2250
2251 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
2252 * configure: Rebuild.
2253 * configure.ac: Add somread.o to the build if BFD has SOM
2254 support.
2255 * somread.c: Include som/aout.h, not syms.h.
2256 (som_symtab_read): Use som_external_symbol_dictionary_record.
2257 Unpack records manually.
2258 (_initialize_somread): Declare.
2259
bdad4180
MF
22602012-01-08 Mike Frysinger <vapier@gentoo.org>
2261
2262 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
2263 Cast return_address to 64bits.
2264
03cdf680
HZ
22652013-01-08 Hui Zhu <hui_zhu@mentor.com>
2266
2267 * printcmd.c: Remove define of function output_command.
2268 * tracepoint.c: Remove extern of function output_command.
2269 * valprint.h: (output_command): New extern.
2270
8a808554
TT
22712013-01-07 Tom Tromey <tromey@redhat.com>
2272
2273 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
2274 Remove.
2275 (objc_language_defn): Use c_printchar, c_printstr,
2276 c_emit_char.
2277
e93a8774
TT
22782013-01-07 Tom Tromey <tromey@redhat.com>
2279
2280 PR cli/7719:
2281 * NEWS: Update.
2282 * ada-valprint.c (printstr, print_field_values): Remove
2283 "inspect_it" code.
2284 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
2285 code.
2286 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
2287 code.
2288 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
2289 * main.c (captured_main): Remove "epoch" argument.
2290 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
2291 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
2292 * p-valprint.c (pascal_object_print_value_fields): Remove
2293 "inspect_it" code.
2294 * printcmd.c (print_command_1): Remove 'inspect' argument.
2295 (print_command, call_command): Update.
2296 (inspect_command): Remove.
2297 (_initialize_printcmd): Make "inspect" an alias for "print".
2298 * top.c (epoch_interface): Remove.
2299 * top.h (epoch_interface): Remove.
2300 * valprint.c (user_print_options): Update.
2301 (print_converted_chars_to_obstack): Remove "inspect_it" code.
2302 * valprint.h (struct value_print_options) <inspect_it>: Remove
2303 field.
2304
23052013-01-04 Tom Tromey <tromey@redhat.com>
2306
2307 * valprint.h (read_string): Add 'extern'.
2308
b967eb24
JB
23092013-01-07 Joel Brobecker <brobecker@adacore.com>
2310
2311 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
2312 used to decide whether to define darwin_read_dyld_info or not.
2313
78a8b30e
PM
23142013-01-03 Pierre Muller <muller@sourceware.org>
2315
2316 * main.c (relocate_gdb_directory): Avoid calling stat function
2317 if DIR is empty.
2318
50da2f25
YQ
23192013-01-03 Yao Qi <yao@codesourcery.com>
2320
2321 * psymtab.c (fixup_psymbol_section): Update declaration.
2322 (fixup_psymbol_section): Remove code returning value.
2323
e7e8980f
YQ
23242013-01-03 Yao Qi <yao@codesourcery.com>
2325
2326 * symtab.h: Remove some out of date comments.
2327 (enum exception_event_kind): Move it ...
2328 * breakpoint.c: ... here.
2329
569283d4
MF
23302013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
2331
9f9d9a96 2332 PR gdb/14405
569283d4
MF
2333 * darwin-nat.c (darwin_read_dyld_info): Only build if
2334 TASK_DYLD_INFO_COUNT is defined.
2335 (darwin_xfer_partial): Call darwin_read_dyld_info only if
2336 TASK_DYLD_INFO_COUNT is defined.
2337
2e36fbea
TT
23382013-01-02 Tom Tromey <tromey@redhat.com>
2339
2340 * symfile.h (struct ecoff_debug_hack): Remove.
2341 * objfiles.c: Don't include mdebugread.h.
2342
4f05add4
TT
23432013-01-02 Tom Tromey <tromey@redhat.com>
2344
2345 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
2346 * configure.ac: Check for Mach-O support in BFD. Update
2347 CONFIG_OBS.
2348 * configure: Rebuild.
2349
def63ff0
TT
23502013-01-02 Tom Tromey <tromey@redhat.com>
2351
2352 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
2353 * configure.ac: Use GDB_AC_CHECK_BFD.
2354 * configure: Rebuild.
2355
60c5dd93
MK
23562013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
2357
2358 * MAINTAINERS: Update my email.
2359
6e58437e
JB
23602013-01-01 Joel Brobecker <brobecker@adacore.com>
2361
2362 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
2363
627fe805
JB
23642013-01-01 Joel Brobecker <brobecker@adacore.com>
2365
2366 * rs6000-nat.c (bss_data_overlap): New function.
2367 (vmap_symtab): Use it to adjust the .bss section's offset.
2368
28e7fd62
JB
23692013-01-01 Joel Brobecker <brobecker@adacore.com>
2370
2371 Update year range in copyright notice of all files.
2372
e93a8774 23732013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
2374
2375 * top.c (print_gdb_version): Update copyright year.
2376
72b20e9c 2377For older changes see ChangeLog-2012.
c906108c
SS
2378\f
2379Local Variables:
2380mode: change-log
2381left-margin: 8
2382fill-column: 74
2383version-control: never
57da7796 2384coding: utf-8
c906108c 2385End:
This page took 1.597087 seconds and 4 git commands to generate.