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