gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
d6cb50a2
JK
12013-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2
3 * remote.c (unpush_and_perror): Add output message final dot.
4
cf2cb5ec
YQ
52013-04-11 Yao Qi <yao@codesourcery.com>
6
7 * tracepoint.c (tfile_interp_line): Fit parameters line and
8 utpp in one line.
9
07293be4
JB
102013-04-10 Joel Brobecker <brobecker@adacore.com>
11
12 * solib.c (solib_map_sections): Remove code overwriting
13 SO->SO_NAME with the bfd's filename.
14
f81d1120
PA
152013-04-10 Pedro Alves <palves@redhat.com>
16
17 * cli/cli-decode.c (integer_unlimited_completer): New function.
18 (add_setshow_integer_cmd, add_setshow_uinteger_cmd)
19 (add_setshow_zuinteger_unlimited_cmd): Install the "unlimited"
20 completer.
21 * cli/cli-setshow.c: Include "cli/cli-utils.h".
22 (is_unlimited_literal): New function.
23 (do_set_command): Handle literal "unlimited" arguments.
24 * frame.c (_initialize_frame) <set backtrace limit>: Document
25 "unlimited".
26 * printcmd.c (_initialize_printcmd) <set print
27 max-symbolic-offset>: Add help text.
28 * record-full.c (_initialize_record_full) <set record full
29 insn-number-max>: Likewise.
30 * record.c (_initialize_record) <set record
31 instruction-history-size, set record function-call-history-size>:
32 Add help text.
33 * ser-tcp.c (_initialize_ser_tcp) <set tcp connect-timeout>: Add
34 help text.
35 * tracepoint.c (_initialize_tracepoint) <set trace-buffer-size>:
36 Likewise.
37 * source.c (_initialize_source) <set listsize>: Add help text.
38 * utils.c (initialize_utils) <set height, set width>: Likewise.
39 <set pagination>: Mention "set height unlimited".
40 * valprint.c (_initialize_valprint) <set print elements, set print
41 repeats>: Document "unlimited".
42
2f9d54cf
PA
432013-04-10 Pedro Alves <palves@redhat.com>
44
45 * cli/cli-cmds.c (quit_command): Call query_if_trace_running
46 instead of disconnect_tracing.
47 * infcmd.c (detach_command, disconnect_command): Call
48 query_if_trace_running. Adjust.
49 * top.c: Include "tracepoint.h".
50 (quit_target): Delete. Contents moved ...
51 (quit_force): ... here. Wrap each stage of teardown in
52 TRY_CATCH. Call disconnect_tracing before detaching.
53
393fd4c3
YQ
542013-04-10 Hui Zhu <hui@codesourcery.com>
55 Yao Qi <yao@codesourcery.com>
56
57 * configure.ac: Check libbabeltrace is installed.
58 * config.in: Regenerate.
59 * configure: Regenerate.
60 * Makefile.in (LIBBABELTRACE): New.
61 (CLIBS): Add LIBBABELTRACE.
62 * ctf.c: Include "exec.h".
63 (CTF_EVENT_ID_STATUS, CTF_EVENT_ID_TSV_DEF): New macros.
64 (CTF_EVENT_ID_TP_DEF, ctf_save_write_int32): New macros.
65 (ctf_save_metadata_header): Define new type aliases in
66 metadata.
67 (ctf_write_header): Define event type "tsv_def" and "tp_def"
68 in metadata. Start a new faked packet for trace status.
69 (ctf_write_status): Write trace status to CTF.
70 (ctf_write_uploaded_tsv): Write TSV to CTF.
71 (ctf_write_uploaded_tp): Write tracepoint definition to CTF.
72 (ctf_write_definition_end): End the faked packet.
73
74 (ctx, ctf_iter, trace_dirname): New.
75 (start_pos): New variable.
76 (ctf_destroy, ctf_open_dir, ctf_open): New.
77 (SET_INT32_FIELD, SET_ARRAY_FIELD, SET_STRING_FIELD): New
78 macros.
79 (ctf_read_tsv, ctf_read_tp, ctf_close, ctf_files_info): New.
80 (ctf_fetch_registers, ctf_xfer_partial): New.
81 (ctf_get_trace_state_variable_value): New.
82 (ctf_get_tpnum_from_frame_event): New.
83 (ctf_get_traceframe_address): New.
84 (ctf_trace_find, ctf_has_stack): New.
85 (ctf_has_registers, ctf_traceframe_info, init_ctf_ops): New.
86 (ctf_get_trace_status, ctf_read_status): New.
87 (_initialize_ctf): New.
88 * tracepoint.c (get_tracepoint_number): New
89 (get_uploaded_tsv): Remove 'static'.
90 (struct traceframe_info, trace_regblock_size): Move it to ...
91 * tracepoint.h: ... here.
92 (get_tracepoint_number): Declare it.
93 (get_uploaded_tsv): Declare it.
94
95 * NEWS: Mention new configure option.
96
5c2b4418
HZ
972013-04-10 Pedro Alves <palves@redhat.com>
98 Hui Zhu <hui@codesourcery.com>
99
100 * breakpoint.c (dprintf_re_set): New.
101 (initialize_breakpoint_ops): Set dprintf_breakpoint_ops re_set
102 to dprintf_re_set.
103
a5c66735
JB
1042013-04-09 Joel Brobecker <brobecker@adacore.com>
105
106 * configure.tgt (gdb_target_obs) <powerpc-*-aix* | rs6000-*-*>:
107 Remove solib-svr4.o from the list.
108
9e77999c
JB
1092013-04-09 Joel Brobecker <brobecker@adacore.com>
110
111 * varobj.c (update_dynamic_varobj_children) [!HAVE_PYTHON]:
112 Use gdb_assert_not_reached instead of invalid boolean expression.
113
1927e618
PA
1142013-04-09 Pedro Alves <palves@redhat.com>
115
116 * remote.c (unpush_and_perror): New function.
117 (readchar, remote_serial_write): Use it.
118
10782d74
MM
1192013-04-09 Markus Metzger <markus.t.metzger@intel.com>
120
121 * NEWS: Mention new btrace RSP packets.
122
4c8429ef
TT
1232013-04-08 Tom Tromey <tromey@redhat.com>
124
125 * symmisc.c (dump_msymbols): Cast fprintf_filtered argument to
126 long.
127
8625fc1b
TT
1282013-04-08 Tom Tromey <tromey@redhat.com>
129
130 * maint.c (print_bfd_section_info): Print the section index.
131 * symmisc.c (dump_msymbols): Print the section index.
132
e27d198c
TT
1332013-04-08 Tom Tromey <tromey@redhat.com>
134
135 PR symtab/8424:
136 * blockframe.c (find_pc_partial_function_gnu_ifunc): Check
137 SYMBOL_SECTION, not SYMBOL_OBJ_SECTION.
138 * breakpoint.c (resolve_sal_pc): Update.
139 * elfread.c (elf_gnu_ifunc_record_cache): Update.
140 * findvar.c (struct minsym_lookup_data) <objfile>: New field.
141 (minsym_lookup_iterator_cb): Use it.
142 (default_read_var_value): Update.
143 * hppa-hpux-tdep.c (hppa64_hpux_in_solib_call_trampoline):
144 Update.
145 * infcmd.c (jump_command): Update.
146 * linespec.c (minsym_found): Update.
147 * maint.c (maintenance_translate_address): Update.
148 * minsyms.c (lookup_minimal_symbol_by_pc_section_1): Update.
149 (prim_record_minimal_symbol_full): Don't set SYMBOL_OBJ_SECTION.
150 * parse.c (write_exp_msymbol): Update.
151 * printcmd.c (address_info): Update.
152 * psymtab.c (find_pc_sect_psymbol): Update.
153 (fixup_psymbol_section): Check SYMBOL_SECTION, not
154 SYMBOL_OBJ_SECTION.
155 (add_psymbol_to_bcache): Correctly initialize SYMBOL_SECTION.
156 Don't initialize SYMBOL_OBJ_SECTION.
157 * spu-tdep.c (spu_catch_start): Update.
158 * stabsread.c (define_symbol): Don't set SYMBOL_SECTION.
159 * symmisc.c (dump_msymbols, print_symbol): Update.
160 * symtab.c (fixup_section): Don't set 'obj_section'. Change
161 how fallback section is computed.
162 (fixup_symbol_section): Update.
163 (find_pc_sect_symtab, find_function_start_sal, skip_prologue_sal):
164 Update.
165 (allocate_symbol, initialize_symbol, allocate_template_symbol):
166 Initialize SYMBOL_SECTION.
167 * symtab.h (struct general_symbol_info) <section>: Update comment.
168 <obj_section>: Remove.
169 (SYMBOL_OBJ_SECTION): Add 'objfile' argument. Rewrite.
170 (SYMBOL_OBJFILE): New macro.
171
e6dc44a8
TT
1722013-04-08 Tom Tromey <tromey@redhat.com>
173
174 * coffread.c (record_minimal_symbol): Update.
175 * dbxread.c (record_minimal_symbol): Update.
176 * elfread.c (record_minimal_symbol): Update.
177 * machoread.c (macho_symtab_add_minsym): Update.
178 * mdebugread.c (record_minimal_symbol, parse_partial_symbols):
179 Update.
180 * minsyms.c (prim_record_minimal_symbol): Update.
181 (prim_record_minimal_symbol_full): Remove 'bfd_section'
182 argument.
183 (prim_record_minimal_symbol_and_info): Likewise.
184 * minsyms.h (prim_record_minimal_symbol_full)
185 (prim_record_minimal_symbol_and_info): Update.
186 * symtab.c (allocate_symbol, initialize_symbol)
187 (allocate_template_symbol): Initialize SYMBOL_SECTION.
188 * xcoffread.c (record_minimal_symbol, scan_xcoff_symtab):
189 Update.
190
36192a8d
TT
1912013-04-08 Tom Tromey <tromey@redhat.com>
192
193 PR symtab/8423:
194 * solib-som.c (som_solib_section_offsets): Use BFD section
195 indices. Set offsets for all sections.
196 * somread.c (som_symtab_read): Compute BFD section for
197 symbol. Use prim_record_minimal_symbol_and_info.
198 (som_symfile_read): Fix comment.
199 (struct find_section_offset_arg): New.
200 (find_section_offset, set_section_index): New functions.
201 (som_symfile_offsets): Use set_section_index to compute
202 section indices.
203
65cf3563
TT
2042013-04-08 Tom Tromey <tromey@redhat.com>
205
206 * coffread.c (cs_to_section): Use gdb_bfd_section_index.
207 * elfread.c (record_minimal_symbol, elf_symtab_read): Use
208 gdb_bfd_section_index.
209 * gdb_bfd.c (gdb_bfd_section_index, gdb_bfd_count_sections):
210 New functions.
211 * gdb_bfd.h (gdb_bfd_section_index, gdb_bfd_count_sections):
212 Declare.
213 * machoread.c (macho_symtab_add_minsym, macho_symfile_offsets):
214 Update.
215 * objfiles.c (add_to_objfile_sections_full): New function.
216 (add_to_objfile_sections): Use it.
217 (build_section_table): Rewrite.
218 (objfile_relocate1): Use gdb_bfd_section_index. Update.
219 * objfiles.h (obj_section_offset): Use gdb_bfd_section_index.
220 (struct objfile) <sections>: Update comment.
221 (ALL_OBJFILE_OSECTIONS): Skip sections where the_bfd_section
222 is NULL.
223 (ALL_OBJSECTIONS): Use it.
224 * solib-dsbt.c (dsbt_relocate_main_executable): Update.
225 * solib-frv.c (frv_relocate_main_executable): Update.
226 * solib-target.c (solib_target_relocate_section_addresses):
227 Use gdb_bfd_section_index.
228 * symfile.c (build_section_addr_info_from_section_table):
229 Use gdb_bfd_section_index.
230 (build_section_addr_info_from_bfd, place_section): Likewise.
231 * symtab.c (fixup_section): Update.
232 * xcoffread.c (find_targ_sec): Use gdb_bfd_section_index.
233
7cbd4a93
TT
2342013-04-08 Tom Tromey <tromey@redhat.com>
235
236 * minsyms.h (struct bound_minimal_symbol): New.
237 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
238 Remove objfile argument.
239 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
240 Return bound_minimal_symbol.
241 * minsyms.c (lookup_minimal_symbol_by_pc_1)
242 (lookup_minimal_symbol_by_pc_section, lookup_minimal_symbol_by_pc):
243 Return bound_minimal_symbol.
244 (in_gnu_ifunc_stub): Update.
245 (lookup_minimal_symbol_and_objfile): Return bound_minimal_symbol.
246 Remove 'objfile_p' argument.
247 (lookup_solib_trampoline_symbol_by_pc): Update.
248 * ada-tasks.c, amd64-windows-tdep.c, arm-tdep.c,
249 arm-wince-tdep.c, block.c, blockframe.c, breakpoint.c, btrace.c,
250 c-valprint.c, dwarf2loc.c, elfread.c, frame.c, frv-tdep.c,
251 glibc-tdep.c, gnu-v2-abi.c, gnu-v3-abi.c, hppa-hpux-tdep.c,
252 i386-tdep.c, ia64-tdep.c, infcall.c, infcmd.c, jit.c,
253 linux-fork.c, m32c-tdep.c, m68hc11-tdep.c, maint.c,
254 mips-tdep.c, p-valprint.c, parse.c, ppc-linux-tdep.c,
255 ppc-sysv-tdep.c, printcmd.c, rs6000-tdep.c, sh64-tdep.c,
256 stack.c, symtab.c, tui/tui-disasm.c: Update.
257
f85f34ed
TT
2582013-04-08 Tom Tromey <tromey@redhat.com>
259
260 * ada-lang.c (ada_decode_symbol): Check and set 'ada_mangled'.
261 Use symbol's obstack, not an objfile.
262 * coffread.c (process_coff_symbol): Update.
263 * dwarf2read.c (fixup_go_packaging, new_symbol_full): Update.
264 * jv-lang.c (add_class_symbol): Update.
265 * mdebugread.c (new_symbol): Update.
266 * minsyms.c (prim_record_minimal_symbol_full)
267 (terminate_minimal_symbol_table): Update.
268 * psymtab.c (add_psymbol_to_bcache): Clear entire symbol. Update.
269 * stabsread.c (define_symbol, read_enum_type): Update.
270 * symtab.c (symbol_set_demangled_name, symbol_get_demangled_name):
271 Handle Ada specially.
272 (symbol_set_language): Add 'obstack' argument.
273 (symbol_set_names): Update.
274 (symbol_natural_name, symbol_demangled_name): Always use
275 ada_decode_symbol.
276 * symtab.h (struct general_symbol_info)
277 <language_specific::obstack>: New field.
278 <ada_mangled>: New field.
279 (SYMBOL_SET_LANGUAGE): Add 'obstack' argument.
280 (symbol_set_language): Update.
281
ccde22c0
TT
2822013-04-08 Tom Tromey <tromey@redhat.com>
283
284 * symtab.c (symbol_init_cplus_specific, symbol_set_demangled_name):
285 Take an obstack, not an objfile.
286 (symbol_set_names): Update.
287 * symtab.h (symbol_set_demangled_name): Update.
288
e623cf5d
TT
2892013-04-08 Tom Tromey <tromey@redhat.com>
290
291 * coffread.c (process_coff_symbol, coff_read_enum_type): Call
292 allocate_symbol.
293 * dwarf2read.c (fixup_go_packaging): Call allocate_symbol.
294 (read_func_scope): Call allocate_template_symbol.
295 (new_symbol_full): Call allocate_symbol.
296 * jit.c (finalize_symtab): Call allocate_symbol.
297 * jv-lang.c (add_class_symbol): Call allocate_symbol.
298 * mdebugread.c (parse_symbol, new_block): Call allocate_symbol.
299 * stabsread.c (patch_block_stabs, define_symbol, read_enum_type)
300 (common_block_end): Call allocate_symbol.
301 * symtab.c (allocate_symbol, initialize_symbol)
302 (allocate_template_symbol): New functions.
303 * symtab.c (allocate_symbol, initialize_symbol)
304 (allocate_template_symbol): Declare.
305 * xcoffread.c (process_xcoff_symbol): Call initialize_symbol.
306
f6de8ec2
PA
3072013-04-08 Pedro Alves <palves@redhat.com>
308 Keith Seitz <keiths@redhat.com>
309
310 * breakpoint.c (create_breakpoint): Rename
311 "parse_condition_and_thread" parameter to "parse_arg". Update
312 describing comment. If !PARSE_ARG, then error out if ARG is not
313 the empty string after extracting the location.
314 * breakpoint.h (create_breakpoint): Rename
315 "parse_condition_and_thread" parameter to "parse_arg".
316
f65ce5fb
AR
3172013-04-08 Aleksandar Ristovski <aristovski@qnx.com
318
319 * solib-svr4.c (lm_addr_check): Add const qualifier to 'so' arg.
320
cc5925ad
YQ
3212013-04-07 Yao Qi <yao@codesourcery.com>
322
323 * remote.c (remote_trace_find): Change type of parameters 'addr1'
324 and 'addr2' to CORE_ADDR.
325 * target.c (update_current_target): Update.
326 * target.h (struct target_ops) <to_trace_find>: Change parameter
327 type to CORE_ADDR.
328 * tracepoint.c (tfind_1): Change type of parameters 'addr1' and
329 'addr2' to CORE_ADDR.
330 (tfile_trace_find): Likewise.
331 (tfile_get_traceframe_address): Change return type to CORE_ADDR.
332 Change local variable 'addr' to type CORE_ADDR.
333 * tracepoint.h (tfind_1): Update declaration.
334
d9ac0664
EZ
3352013-04-06 Eli Zaretskii <eliz@gnu.org>
336
337 * windows-nat.c (windows_get_absolute_argv0): Move from here...
338 * mingw-hdep.c (windows_get_absolute_argv0): ...to here.
339 Include main.h.
340
341 * windows-nat.h (windows_get_absolute_argv0): Move prototype from
342 here...
343 * main.h (windows_get_absolute_argv0): ...to here.
344
02142a6c
DE
3452013-04-05 Doug Evans <dje@google.com>
346
347 * dwarf2read.c (struct dwarf2_per_objfile): Tweak comment.
348 (read_cutu_die_from_dwo): Add comments.
349 (read_structure_type): Update comment.
350 (read_enumeration_type, read_namespace_type): Update comment.
351 (read_die_type, get_die_type_at_offset, get_die_type): Update comment.
352
43662968
JK
3532013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
354
355 Convert man pages to texinfo, new gdbinit.5 texinfo page.
356 * Makefile.in (gdb.z): Remove.
357 (install-only): Remove $(man1dir) and gdb.1 installation.
358 * gdb.1: Remove.
359
9ead1b84
JK
3602013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
361
362 Fix compatibility with Linux kernel 3.8.3.
363 * linux-tdep.c (linux_find_memory_regions_full): Move variable number
364 to more inner block. Remove parsing of NUMBER from outer block.
365 Parse NUMBER only if KEYWORD has been identified.
366
d1794952
JK
3672013-04-05 Jan Kratochvil <jan.kratochvil@redhat.com>
368
369 Fix variable name shadowing.
370 * linux-tdep.c (linux_find_memory_regions_full): Rename outer variable
371 filename to mapsfilename and update its uses.
372
9025569e
EZ
3732013-04-05 Eli Zaretskii <eliz@gnu.org>
374
375 * Makefile.in (TAGS): Avoid warning from etags when $GDB_NM_FILE is
376 empty. See http://sourceware.org/ml/gdb-patches/2012-08/msg00504.html
377 and http://sourceware.org/ml/gdb-patches/2013-04/msg00055.html for
378 details of the problem.
379
c9a6ce02
PA
3802013-04-04 Pedro Alves <palves@redhat.com>
381 Hui Zhu <hui@codesourcery.com>
382
383 * breakpoint.c (validate_commands_for_breakpoint): If validating a
384 tracepoint, reset its STEP_COUNT and call validate_actionline.
385
5ff888ce
DE
3862013-04-03 Doug Evans <dje@google.com>
387
bf6af496
DE
388 * dwarf2read.c (read_die_and_siblings_1): Renamed from
389 read_die_and_siblings.
390 (read_die_and_siblings): New function.
391 (read_cutu_die_from_dwo): Dump die if requested.
392 (read_die_and_children): Call read_full_die_1 and
393 read_die_and_siblings_1.
394 (read_full_die): Dump die if requested.
395
396 * dwarf2read.c (read_comp_units_from_section): Add debugging printf.
397
0ac5b59e
DE
398 * dwarf2read.c (struct dwo_file): New member comp_dir.
399 Rename member name to dwo_name. All uses updated.
400 (hash_dwo_file): Include comp_dir in computation.
401 (eq_dwo_file): Ditto.
402 (lookup_dwo_file_slot): New arg comp_dir. All callers updated.
403 (create_dwo_in_dwp, lookup_dwo_in_dwp, open_and_init_dwo_file): Ditto.
404
5ff888ce
DE
405 * psymtab.c (read_psymtabs_with_fullname): Don't call
406 psymtab_to_fullname if the basenames are different.
407
ec83d211
JK
4082013-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
409
410 * NEWS (Changes in GDB 7.6): Update the data-disassemble for "fullname".
411 New entry about "fullname" presence.
412
4f4352f7
PA
4132013-04-03 Pedro Alves <palves@redhat.com>
414
415 * NEWS: Mention x86_64/Cygwin as new native configuration.
416
3d1d5ea3
DE
4172013-04-02 Doug Evans <dje@google.com>
418
419 * dwarf2read.c (read_structure_type): Fix typo in comment.
420
be9a8770
PA
4212013-04-02 Pedro Alves <palves@redhat.com>
422
423 * NEWS: Mention "set/show debug aarch64", "set/show debug
424 coff-pe-read" and "set/show debug mach-o".
425
a46c1e42
PA
4262013-04-02 Pedro Alves <palves@redhat.com>
427
428 * NEWS: Mention "set/show remote trace-buffer-size-packet".
429
3ad18b19
EZ
4302013-04-02 Eli Zaretskii <eliz@gnu.org>
431
432 * Makefile.in (HFILES_NO_SRCDIR): Remove call-cmds.h.
433 gdb_string.h is now in common/.
434
e9f1758d
PA
4352013-04-02 Pedro Alves <palves@redhat.com>
436
437 * NEWS: Move "set debug notification" and "set trace-buffer-size"
438 under "New options".
439
049dc89b
JK
4402013-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
441
442 Revert this patch:
443 PR gdb/15275
444 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
445
c33e31fd
PA
4462013-04-02 Pedro Alves <palves@redhat.com>
447
448 PR gdb/15275
449
450 * remote.c (send_interrupt_sequence): Use remote_serial_write.
451 (remote_serial_write): New function.
452 (putpkt_binary, getpkt_or_notif_sane_1): Use remote_serial_write.
453
ea5f3910
JW
4542013-04-01 Jiong Wang <jiwang@tilera.com>
455
456 * NEWS: Mention TILE-Gx in "New native configurations" and
457 "New targets" sections.
458
5c6fa7ab
DE
4592013-04-01 Doug Evans <dje@google.com>
460
c0f78cd4
DE
461 * dwarf2read.c (lookup_signatured_type_at_offset): Delete.
462 (process_enumeration_scope): Simplify.
463
0186c6a7
DE
464 * dwarf2read.c (struct dwarf2_per_cu_data): Move member
465 type_unit_group ...
466 (struct signatured_type): ... to here.
467 (sig_type_ptr): New typedef.
468 (type_unit_group): Delete member 't.first_cu'. Move member 'tus'
469 out of union 't'. All uses updated.
470 (dw2_get_file_names_reader): Assert not called for a type unit.
471 (dw2_get_file_names): Assert not called for a type unit or type
472 unit group.
473 (build_type_psymtabs_reader): Assert called for a type unit.
474 (build_type_psymtab_dependencies): Assert called for a type unit group.
475
5c6fa7ab
DE
476 * dwarf2read.c (free_dwo_file): Add comment.
477 (dwarf2_per_objfile_free): Unref dwp bfd.
478
b3c0ad67 4792013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
cebca8c1
AR
480
481 * coff-pe-read.c (add_pe_exported_sym): Remove unused 'dll_name_len'.
482 (add_pe_forwarded_sym): Remove unused 'section', 'dll_name_len'.
483 (read_pe_exported_syms): Remove unused 'exportix'.
484 (pe_text_section_offset): Remove unused 'opthdr_ofs', 'num_entries',
485 'export_rva', 'export_size', 'expptr', 'exp_funcbase', 'expdata',
486 'erva', 'name_rvas', 'ordinals', 'nexp', 'ordbase', 'dll_name'.
487
e2df1547
AR
4882013-04-01 Aleksandar Ristovski <aristovski@qnx.com>
489
490 * breakpoint.c (parse_cond_to_aexpr): Remove unused 'old_chain'.
491 (print_it_watchpoint): Remove unused 'bl'.
492 (say_where): Remove unused 'uiout'.
493 (bpstat_remove_breakpoint_callback): Remove unused 'uiout'.
494 (bkpt_breakpoint_hit): Remove unused 'b'.
495 (internal_bkpt_print_it): Remove unused 'uiout'.
496 * buildsym.c (augment_type_symtab): Remove unused 'i'.
497
d81e75c0
TD
4982013-03-31 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
499
500 * ppc-sysv-tdep.c (ppc64_sysv_abi_push_float): New function.
501 (ppc64_sysv_abi_push_dummy_call): Handle complex arguments.
502
5a8b3f62
DE
5032013-03-29 Doug Evans <dje@google.com>
504
ab5088bf
DE
505 * dwarf2read.c (open_dwo_file): Renamed from open_dwop_file.
506 Delete arg is_dwp. All callers updated.
507 (open_dwp_file): New function.
508 (open_and_init_dwp_file): Call it.
509 (get_dwp_file): New function.
510 (lookup_dwo_cutu): Call it.
511
a8ad1e57
DE
512 * dwarf2read.c (open_and_init_dwp_file): Remove incorrect, and
513 unnecessary, cleanup.
514
6296d8c1
DE
515 * dwarf2read.c (lookup_dwo_cutu): Improve complaint text.
516
b0c7bfa9
DE
517 * dwarf2read.c (read_cutu_die_from_dwo): New function.
518 (lookup_dwo_unit): New function.
519 (init_cutu_and_read_dies): Move DWO handling to new functions.
520
c88ee1f0
DE
521 * dwarf2read.c (struct signatured_type): Tweak comment.
522 (struct dwo_unit): Tweak comment.
523 (create_debug_types_hash_table): Tweak comment. Reformat long line.
524 (create_dwo_debug_info_hash_table): Tweak comment.
525 (dwarf2_per_cu_offset_and_type): Tweak comment.
526
5a8b3f62
DE
527 * dwarf2read.c (lookup_signatured_type): Remove complaint about
528 missing .debug_types section.
529
9852c492
YQ
5302013-03-29 Yao Qi <yao@codesourcery.com>
531
532 * corelow.c: Include "completer.h".
533 (_initialize_corelow): Call add_target_with_completer with
534 argument 'filename_completer'.
535 * tracepoint.c: Likewise.
536 * exec.c (_initialize_exec): Likewise.
537 * target.c (add_target): Rename to ...
538 (add_target_with_completer): ... this. Call set_cmd_completer
539 if parameter completer is not NULL.
540 (add_target): New.
541 * target.h: Include "command.h".
542 (add_target_with_completer): Declare it.
543
af312be7
JB
5442013-03-28 Joel Brobecker <brobecker@adacore.com>
545
546 * coffread.c (is_import_fixup_symbol): New function.
547 (record_minimal_symbol): Use is_import_fixup_symbol to
548 detect import fixup symbols, and discard them.
549
8a0459fd
DE
5502013-03-28 Doug Evans <dje@google.com>
551
0349ea22
DE
552 * dwarf2read.c (create_debug_types_hash_table): Don't allocate the
553 types hash table until we know we need it.
554
f652bce2
DE
555 * dwarf2read.c (create_addrmap_from_index): Complain about bad CU
556 index numbers.
557
e4a48d9d
DE
558 * dwarf2read.c (dw2_get_file_names): Delete arg "objfile".
559 All callers updated.
560 (dw2_print_stats): Print #read CUs too.
561 (dump_die_shallow): Print signatured types better.
562
8a0459fd
DE
563 * dwarf2read.c (struct dwarf2_per_cu_data): Rename member
564 info_or_types_section to section. All uses updated.
565 (struct dwo_unit): Ditto.
566
bd3eecc3
PA
5672013-03-28 Pedro Alves <palves@redhat.com>
568
569 * NEWS (New options): New section.
570 (New options): Mention set/show remote trace-status-packet.
571 * remote.c (PACKET_qTStatus): New enumeration value.
572 (remote_get_trace_status): Skip sending qTStatus if the packet is
573 disabled. Use packet_ok.
574 (_initialize_remote): Register a configuration command for
575 qTStatus packet.
576
41245087
DE
5772013-03-28 Doug Evans <dje@google.com>
578
7edbb660
DE
579 * symfile.c (find_separate_debug_file): Add comment.
580 (terminate_after_last_dir_separator): Tweak comment.
581
0018ea6f
DE
582 * dwarf2read.c (create_partial_symtab): Add forward decl.
583 (create_partial_symtab): Move to be closer to other psymtab functions.
584 (process_psymtab_comp_unit_reader, process_psymtab_comp_unit): Ditto.
585
ca69b9e6
DE
586 * dwarf2read.c (dwarf2_physname): Move declaration to better spot.
587 (compute_symtab_includes): Remove unnecessary forward declaration.
588 (die_needs_namespace): Add comment marking group of functions for
589 dwarf2 name computation.
590
a9375afe
DE
591 * typeprint.c (_initialize_typeprint): Improve type help text.
592
41245087
DE
593 * python/python.c (finish_python_initialization): Provide suggestion
594 for how to tell gdb to find its python files.
595
7f7cc265
PA
5962013-03-28 Pedro Alves <palves@redhat.com>
597
598 PR gdb/15294
599
600 * source.c (_initialize_source): Change back "set listsize" to an
601 integer command.
602
ec21308c
JK
6032013-03-27 Gareth McMullin <gareth@blacksphere.co.nz>
604
605 PR gdb/15275
606 * remote.c (remote_get_trace_status): Include putpkt in TRY_CATCH.
607
840a9a1f
PA
6082013-03-27 Pedro Alves <palves@redhat.com>
609
610 * top.c (history_size): Rename to ...
611 (history_size_setshow_var): ... this. Add comment.
612 (show_commands): Use readline's 'history_length' instead of
613 computing the history length by calling history_get in a loop.
614 (set_history_size_command): Error out for sizes over INT_MAX.
615 Restore previous history size on invalid size.
616 (init_history): If HISTSIZE is negative, leave the history size as
617 zero. Add comments.
618 (init_main): Adjust.
619
826ecc4d
PA
6202013-03-27 Pedro Alves <palves@redhat.com>
621
622 * coff-pe-read.c (_initialize_coff_pe_read): Rename "set debug
623 coff_pe_read" command to "set debug coff-pe-read".
624
0ccfeeae
MM
6252013-03-27 Markus Metzger <markus.t.metzger@intel.com>
626
627 * record.c (command_size_to_target_size): Fix size comparison.
628 Change parameter type from pointer to integer to integer.
629 Update all users.
630
40653b35
PM
6312013-03-27 Pierre Muller <muller@sourceware.org>
632
633 * windows-nat.c (handle_output_debug_string): Avoid typecast
634 from integer of different size warning.
635
c62fa0e2
JB
6362013-03-26 Joel Brobecker <brobecker@adacore.com>
637
638 * windows-nat.c (handle_output_debug_string): Add empty line
639 after local block variable definition.
640
2c619be2
PA
6412013-03-26 Pedro Alves <palves@redhat.com>
642
643 * ser-tcp.c (wait_for_connect): Make 'polls' parameter unsigned.
644 (net_open): Make 'polls' local unsigned.
645
1b493192
PA
6462013-03-26 Pedro Alves <palves@redhat.com>
647
648 * remote.c (_initialize_remote): Make "set remoteaddresssize"
649 a zuinteger command instead of uinteger.
650
7ee70bf5
PA
6512013-03-26 Pedro Alves <palves@redhat.com>
652
653 * record-full.c (record_full_insn_num): Make it unsigned.
654 (record_full_check_insn_num, record_full_message)
655 (record_full_registers_change, record_full_xfer_partial): Remove
656 record_full_insn_max_num check (it's always != 0).
657 (record_full_info, record_full_restore): Use %u as format string.
658 (): Use %u as format string.
659 (set_record_full_insn_max_num): Remove record_full_insn_max_num
660 check (it's always != 0).
661
dfd1f9bb
PA
6622013-03-26 Pedro Alves <palves@redhat.com>
663
664 * dcache.c (_initialize_dcache): Make the "set dcache line-size"
665 and "set dcache size" commands zuinteger instead of uinteger.
666
addb4faf
PA
6672013-03-26 Pedro Alves <palves@redhat.com>
668
669 * cris-tdep.c (_initialize_cris_tdep): Make the "set cris-version"
670 command zuinteger instead of uinteger.
671
b75bf488
PA
6722013-03-26 Pedro Alves <palves@redhat.com>
673
674 * coff-pe-read.c (_initialize_coff_pe_read): Make the command
675 zuinteger instead of uinteger.
676
42c634cb
PA
6772013-03-26 Pedro Alves <palves@redhat.com>
678
679 * record.c (record_insn_history_size_setshow_var)
680 (record_call_history_size_setshow_var): New globals.
681 (command_size_to_target_size): New function.
682 (cmd_record_insn_history, cmd_record_call_history): Use
683 command_size_to_target_size instead of cast.
684 (validate_history_size, set_record_insn_history_size)
685 (set_record_call_history_size): New functions.
686 (_initialize_record): Install set_record_insn_history_size and
687 set_record_call_history_size as "set" hooks of "set record
688 instruction-history-size" and "set record
689 function-call-history-size".
690
1fb2e2b5
PA
6912013-03-26 Pedro Alves <palves@redhat.com>
692
693 * top.c (gdb_rl_operate_and_get_next): Replace max_input_history
694 use with history_max_entries use. Remove FIXME note.
695
99c819ee
MM
6962013-03-26 Markus Metzger <markus.t.metzger@intel.com>
697
698 * record-btrace.c (record_btrace_close): Call
699 record_btrace_auto_disable.
700
9f9e404c
JB
7012013-03-25 Joel Brobecker <brobecker@adacore.com>
702
703 * rs6000-nat.c (fixup_breakpoints): Delete declaration.
704
ebcdfe33
DE
7052013-03-25 Doug Evans <dje@google.com>
706
707 * contrib/cc-with-tweaks.sh: Check exit code of dwp.
708
24955f63
TT
7092013-03-25 Tom Tromey <tromey@redhat.com>
710
711 PR symtab/11462:
712 * c-exp.y (exp): Add new productions for destructors after '.' and
713 '->'.
714 (write_destructor_name): New function.
715
fce632b6
TT
7162013-03-25 Tom Tromey <tromey@redhat.com>
717
718 PR c++/9197:
719 * opencl-lang.c (evaluate_subexp_opencl) <STRUCTOP_STRUCT>: Use
720 value_struct_elt, not lookup_struct_elt_type.
721 * eval.c (evaluate_subexp_standard) <STRUCTOP_STRUCT,
722 STRUCTOP_PTR>: Use value_struct_elt, not lookup_struct_elt_type.
723 * expression.h (EVAL_AVOID_SIDE_EFFECTS): Update comment.
724
a4341769
YQ
7252013-03-25 Yao Qi <yao@codesourcery.com>
726
727 * ctf.c [USE_WIN32API]: Undef 'mkdir' and use 'mkdir'
728 instead of '_mkdir'.
729
b5981e5a
EZ
7302013-03-23 Eli Zaretskii <eliz@gnu.org>
731
732 * windows-nat.c (windows_get_absolute_argv0): New function.
733 * windows-nat.h: Add its prototype.
734
735 * main.c (get_init_files): Use filename_ncmp instead of strncmp.
736 Use IS_DIR_SEPARATOR instead of looking for a character inside
737 SLASH_STRING. Include filenames.h.
738 (captured_main) [__MINGW32__]: Make argv[0] absolute, so that
739 relocate_gdb_directory works when passed gdb_program_name.
740 Include windows-nat.h.
741
598d3636
JK
7422013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
743
744 * exceptions.h (enum errors): New entry TARGET_CLOSE_ERROR.
745 * remote.c (trace_error): Remove the special handling of '2'.
746 (readchar) <SERIAL_EOF>
747 (readchar) <SERIAL_ERROR>
748 (getpkt_or_notif_sane_1): Use TARGET_CLOSE_ERROR for them.
749 (remote_get_trace_status): Call throw_exception if EX is
750 TARGET_CLOSE_ERROR.
751 * utils.c (perror_with_name): Rename to ...
752 (throw_perror_with_name): ... here. New parameter errcode, describe it
753 in the function comment.
754 (perror_with_name): New function wrapper.
755 * utils.h (enum errors): New stub declaration.
756 (throw_perror_with_name): New declaration.
757
82b821e9
PA
7582013-03-22 Pedro Alves <palves@redhat.com>
759 Yao Qi <yao@codesourcery.com>
760 Mark Kettenis <kettenis@gnu.org>
761
762 * cli/cli-setshow.c (do_set_command) <var_uinteger>:
763 Don't let the user set the value to UINT_MAX directly.
764 <var_integer>: Don't let the user set the value to INT_MAX
765 directly.
766
78a095c3
JK
7672013-03-22 Jan Kratochvil <jan.kratochvil@redhat.com>
768
769 * remote.c (remote_unpush_target): New function.
770 (remote_open_1): Remove two pop_target calls, update one comment, add
771 comment to target_preopen call. Replace pop_target call by
772 remote_unpush_target call.
773 (interrupt_query, readchar, getpkt_or_notif_sane_1): Replace
774 pop_target calls by remote_unpush_target calls.
775
3e74e146
PA
7762013-03-22 Pedro Alves <palves@redhat.com>
777
778 * linux-nat.c (linux_child_follow_fork): Don't call
779 linux_enable_event_reporting.
780 (linux_handle_extended_wait): Don't call
781 linux_enable_event_reporting.
782
a2213dca
PA
7832013-03-22 Pedro Alves <palves@redhat.com>
784
785 * hppa-hpux-tdep.c (hppa_hpux_push_dummy_code): Define INSN macro,
786 use it to rewrite the trampoline buffers with type gdb_byte[], and
787 undefine the macro. Remove char* cast.
788
bd712aed
DE
7892013-03-21 Doug Evans <dje@google.com>
790
791 New commands "mt set per-command {space,time,symtab} {on,off}".
792 * NEWS: Add entry.
793 * event-top.c: #include "maint.h".
794 * main.c: #include "maint.h".
795 * maint.c: #include <sys/time.h>, <time.h>, block.h, top.h,
796 timeval-utils.h, maint.h, cli/cli-setshow.h.
797 (per_command_time, per_command_space): New static globals.
798 (per_command_symtab): New static global.
799 (per_command_setlist, per_command_showlist): New static globals.
800 (struct cmd_stats): Move here from utils.c.
801 (set_per_command_time): Renamed from set_display_time in utils.c
802 and moved here. All callers updated.
803 (set_per_command_space): Renamed from set_display_space in utils.c
804 and moved here. All callers updated.
805 (count_symtabs_and_blocks): New function.
806 (report_command_stats): Moved here from utils.c. Add support for
807 printing symtab stats. Only print data if enabled before command
808 executed.
809 (make_command_stats_cleanup): Ditto.
810 (sert_per_command_cmd, show_per_command_cmd): New functions.
811 (_initialize_maint_cmds): Add new commands
812 mt set per-command {space,time,symtab} {on,off}.
813 * maint.h: New file.
814 * top.c: #include "maint.h".
815 * utils.c (reset_prompt_for_continue_wait_time): New function.
816 (get_prompt_for_continue_wait_time): New function.
817 * utils.h (reset_prompt_for_continue_wait_time): Declare
818 (get_prompt_for_continue_wait_time): Declare.
819 (make_command_stats_cleanup): Moved to maint.h.
820 (set_display_time, set_display_space): Moved to maint.h and renamed
821 to set_per_command_time, set_per_command_space.
822 * cli/cli-setshow.c (parse_cli_boolean_value): Renamed from
823 parse_binary_operation and made non-static. Don't call error,
824 just return an error marker. All callers updated.
825 * cli/cli-setshow.h (parse_cli_boolean_value): Declare.
826
d76488d8
TT
8272013-03-21 Tom Tromey <tromey@redhat.com>
828
829 * symfile.c (alloc_section_addr_info): Update header. Don't set
830 'num_sections' field.
831 (build_section_addr_info_from_section_table): Set 'num_sections'.
832 (build_section_addr_info_from_bfd): Likewise.
833 (build_section_addr_info_from_objfile): Remove dead loop
834 condition.
835 (free_section_addr_info): Unconditionally call xfree.
836 (relative_addr_info_to_section_offsets, addrs_section_sort)
837 (addr_info_make_relative, syms_from_objfile_1): Remove dead loop
838 condition.
839 (syms_from_objfile_1): Remove dead 'if' condition. Check
840 'num_sections'.
841 (add_symbol_file_command): Set 'num_sections'.
842 * symfile-mem.c (symbol_file_add_from_memory): Set
843 'num_sections'.
844 * somread.c (som_symfile_offsets): Remove dead loop condition.
845 * machoread.c (macho_symfile_offsets): Remove dead 'if'.
846 * jit.c (jit_bfd_try_read_symtab): Set 'num_sections'.
847
a72e5169 8482013-03-21 Tom Tromey <tromey@redhat.com>
92bc6a20
TT
849
850 * tracepoint.h (decode_agent_options): Add 'trace_string'
851 argument.
852 * tracepoint.c (decode_agent_options): Add 'trace_string'
853 argument.
854 (validate_actionline): Update.
855 (collect_symbol): Add 'trace_string' argument.
856 (struct add_local_symbols_data) <trace_string>: New field.
857 (do_collect_symbol): Update.
858 (add_local_symbols): Add 'trace_string' argument.
859 (encode_actions_1): Update.
860 (trace_dump_actions): Update.
861 * dwarf2loc.c (access_memory): Update.
862 * ax.h (struct agent_expr) <tracing, trace_string>: New fields.
863 * ax-general.c (new_agent_expr): Update.
864 * ax-gdb.h (gen_trace_for_expr, gen_trace_for_var)
865 (gen_trace_for_return_address): Add argument.
866 (trace_kludge, trace_string_kludge): Remove.
867 * ax-gdb.c (trace_kludge, trace_string_kludge): Remove.
868 (gen_traced_pop, gen_fetch, gen_bitfield_ref, gen_expr): Update.
869 (gen_trace_for_var): Add 'trace_string' argument.
870 (gen_trace_for_expr, gen_trace_for_return_address): Likewise.
871 (gen_printf, agent_eval_command_one): Update.
872
b2f83c08
TT
8732013-03-21 Tom Tromey <tromey@redhat.com>
874
875 PR exp/15109:
876 * c-exp.y (yylex): Rewrite to push all tokens onto the FIFO.
877 Handle FILENAME token.
878
9507860e
TT
8792013-03-21 Tom Tromey <tromey@redhat.com>
880
881 * c-exp.y (YYPRINT): Define.
882 (c_print_token): New function.
883
e403aa4b
TT
8842013-03-21 Tom Tromey <tromey@redhat.com>
885
886 * c-exp.y (%union) <sym, ivar, ivec>: Remove.
887
af307d6a
YQ
8882013-03-21 Yao Qi <yao@codesourcery.com>
889
890 * ctf.c: Include "gdb_stat.h".
891 [USE_WIN32API]: New macro 'mkdir'.
892 (ctf_start): Use permission bits macros if they are defined.
893
fb81d016
KS
8942013-03-20 Keith Seitz <keiths@redhat.com>
895
896 * breakpoint.h (struct breakpoint): Add comment to
897 extra_string indicating that this member is mallod'd.
898 * breakpoint.c (base_breakpoint_dtor): Free extra_string.
899
ef0026f0
PA
9002013-03-20 Pedro Alves <palves@redhat.com>
901
902 PR gdb/15289
903
904 * cli/cli-setshow.c (do_set_command)
905 <var_uinteger, var_zuinteger>: Use LONGEST for variable holding
906 the result of parsing the command argument. Throw error if the
907 value is greater than UINT_MAX. Print the invalid value with
908 plongest.
909 <var_integer, var_zinteger>: Use LONGEST for variable holding the
910 result of parsing the command argument. Throw error if the value
911 is greater than INT_MAX, not greater or equal. Also throw error
912 if the value is less than INT_MIN. Print the invalid value with
913 plongest.
914 <var_zuinteger_unlimited>: Throw error if the value is greater
915 than INT_MAX, not greater or equal.
916 (do_show_command) <var_integer, var_zinteger,
917 var_zuinteger_unlimited>: Use %d for printing int, not %u.
918
24d6c2a0
TT
9192013-03-20 Tom Tromey <tromey@redhat.com>
920
921 * ax-gdb.c (gen_var_ref): Unconditionally call via computed ops,
922 if possible.
923 * dwarf2read.c (read_func_scope): Remove old FIXME.
924 * eval.c (evaluate_subexp_standard): Check SYMBOL_COMPUTED_OPS,
925 not LOC_COMPUTED.
926 * findvar.c (symbol_read_needs_frame, default_read_var_value):
927 Unconditionally call via computed ops, if possible.
928 * printcmd.c (address_info): Unconditionally call via computed ops,
929 if possible.
930 * stack.c (read_frame_arg): Unconditionally call via computed ops,
931 if possible.
932 * symtab.c (register_symbol_computed_impl): Sanity check 'ops'.
933 * tracepoint.c (scope_info): Unconditionally call via computed ops,
934 if possible.
935
f1e6e072
TT
9362013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
937 Tom Tromey <tromey@redhat.com>
938
939 PR symtab/8421:
940 * coffread.c (coff_register_index): New global.
941 (process_coff_symbol, coff_read_enum_type): Set
942 SYMBOL_ACLASS_INDEX.
943 (_initialize_coffread): Initialize new global.
944 * dwarf2loc.c (locexpr_find_frame_base_location)
945 (dwarf2_block_frame_base_locexpr_funcs)
946 (loclist_find_frame_base_location)
947 (dwarf2_block_frame_base_loclist_funcs): New.
948 (dwarf_expr_frame_base_1): Call SYMBOL_BLOCK_OPS, remove internal_error.
949 (dwarf2_locexpr_funcs, dwarf2_loclist_funcs): Add location_has_loclist.
950 * dwarf2loc.h (dwarf2_block_frame_base_locexpr_funcs)
951 (dwarf2_block_frame_base_loclist_funcs): New.
952 * dwarf2read.c (dwarf2_locexpr_index, dwarf2_loclist_index)
953 (dwarf2_locexpr_block_index, dwarf2_loclist_block_index): New
954 globals.
955 (read_func_scope): Update.
956 (fixup_go_packaging, mark_common_block_symbol_computed)
957 (var_decode_location, new_symbol_full, dwarf2_const_value):
958 Set SYMBOL_ACLASS_INDEX.
959 (dwarf2_symbol_mark_computed): Likewise. Add 'is_block' argument.
960 (_initialize_dwarf2_read): Initialize new globals.
961 * jit.c (finalize_symtab): Set SYMBOL_ACLASS_INDEX.
962 * jv-lang.c (add_class_symbol): Set SYMBOL_ACLASS_INDEX.
963 * mdebugread.c (mdebug_register_index, mdebug_regparm_index): New
964 globals.
965 (parse_symbol, psymtab_to_symtab_1): Set SYMBOL_ACLASS_INDEX.
966 (_initialize_mdebugread): Initialize new globals.
967 * psympriv.h (struct partial_symbol) <aclass>: Update comment.
968 * stabsread.c (patch_block_stabs): Set SYMBOL_ACLASS_INDEX.
969 (stab_register_index, stab_regparm_index): New globals.
970 (define_symbol, read_enum_type, common_block_end): Set
971 SYMBOL_ACLASS_INDEX.
972 (_initialize_stabsread): Initialize new globals.
973 * symtab.c (next_aclass_value, symbol_impl, symbol_impls): New
974 globals.
975 (MAX_SYMBOL_IMPLS): New define.
976 (register_symbol_computed_impl, register_symbol_block_impl)
977 (register_symbol_register_impl)
978 (initialize_ordinary_address_classes): New functions.
979 (_initialize_symtab): Call initialize_ordinary_address_classes.
980 * symtab.h (enum address_class) <LOC_FINAL_VALUE>: New constant.
981 (struct symbol_impl): New.
982 (SYMBOL_ACLASS_BITS): New define.
983 (struct symbol) <aclass, ops>: Remove fields.
984 <aclass_index>: New field.
985 (symbol_impls): Declare.
986 (SYMBOL_CLASS, SYMBOL_COMPUTED_OPS, SYMBOL_REGISTER_OPS): Redefine.
987 (SYMBOL_IMPL, SYMBOL_ACLASS_INDEX): New defines.
988 (register_symbol_computed_impl, register_symbol_block_impl)
989 (register_symbol_register_impl): Declare.
990 (struct symbol_computed_ops): Add location_has_loclist.
991 (struct symbol_block_ops): New.
992 (SYMBOL_BLOCK_OPS): New.
993 * xcoffread.c (process_xcoff_symbol): Set SYMBOL_ACLASS_INDEX.
994
dbccfd4c
TT
9952013-03-20 Tom Tromey <tromey@redhat.com>
996
997 * psymtab.c (find_pc_sect_psymbol, fixup_psymbol_section)
998 (print_partial_symbols, recursively_search_psymtabs): Use
999 PSYMBOL_CLASS.
1000
e3f1ad4f
PM
10012013-03-20 Pierre Muller <muller@sourceware.org>
1002
1003 * contrib/ari/gdb_ari.sh (OP eol rule): Also check
1004 addtion, subtraction, multiplication and division binary operator.
1005
460014f5
JK
10062013-03-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1007
1008 Code cleanup.
1009 * bfd-target.c (target_bfd_xclose): Remove parameter quitting.
1010 * bsd-kvm.c (bsd_kvm_close): Likewise.
1011 * bsd-uthread.c (bsd_uthread_close): Likewise.
1012 * corelow.c (core_close): Likewise.
1013 (core_close_cleanup): Remove parameter quitting from a caller.
1014 * event-top.c (async_disconnect): Likewise.
1015 * exec.c (exec_close_1): Remove parameter quitting.
1016 * go32-nat.c (go32_close): Likewise.
1017 * linux-nat.c (linux_nat_close): Remove parameter quitting. Remove
1018 parameter quitting from a caller.
1019 * mips-linux-nat.c (super_close): Remove parameter quitting from the
1020 variable.
1021 (mips_linux_close): Remove parameter quitting. Remove parameter
1022 quitting from a caller.
1023 * monitor.c (monitor_close): Remove parameter quitting.
1024 * monitor.h (monitor_close): Likewise.
1025 * record-btrace.c (record_btrace_close): Likewise.
1026 * record-full.c (record_full_close): Likewise.
1027 * remote-m32r-sdi.c (m32r_close): Remove parameter quitting and remove
1028 it also from fprintf_unfiltered.
1029 * remote-mips.c (mips_close): Remove parameter quitting.
1030 (mips_detach): Remove parameter quitting from a caller.
1031 * remote-sim.c (gdbsim_close): Remove parameter quitting.
1032 (gdbsim_close): Remove duplicate function comment. Remove parameter
1033 quitting and remove it also from printf_filtered.
1034 * remote.c (remote_close): Remove parameter quitting.
1035 * solib-svr4.c (enable_break): Remove parameter quitting from a caller.
1036 * target.c (update_current_target): Remove parameter int from to_close
1037 de_fault.
1038 (push_target, unpush_target, pop_target): Remove parameter quitting from
1039 a caller.
1040 (pop_all_targets_above, pop_all_targets): Remove parameter quitting.
1041 Remove parameter quitting from a caller.
1042 (target_preopen): Remove parameter quitting from a caller.
1043 (target_close): Remove parameter quitting. Remove parameter quitting
1044 from a caller two times. Remove parameter quitting also from
1045 fprintf_unfiltered.
1046 * target.h (struct target_ops): Remove parameter quitting and as int
1047 from fields to_xclose and to_close.
1048 (extern struct target_ops current_target):
1049 (target_close, pop_all_targets): Remove parameter quitting. Update the
1050 comment.
1051 (pop_all_targets_above): Remove parameter quitting.
1052 * top.c (quit_target): Remove parameter quitting from a caller.
1053 * tracepoint.c (tfile_close): Remove parameter quitting.
1054 * windows-nat.c (windows_close): Remove parameter quitting.
1055
35a7120b
CV
10562013-03-20 Corinna Vinschen <vinschen@redhat.com>
1057
1058 * windows-nat.c (handle_output_debug_string): Replace call
1059 to string_to_core_addr with call to strtoull.
1060
8249a5a9
YQ
10612013-03-20 Yao Qi <yao@codesourcery.com>
1062
1063 * ctf.c (ctf_save_metadata_header): Define macro HOST_ENDIANNESS
1064 and write it to CTF metadata.
1065
2c15ef43
CV
10662013-03-19 Corinna Vinschen <vinschen@redhat.com>
1067
1068 * windows-nat.c (handle_output_debug_string): Change type of n to
1069 SIZE_T to avoid crash on 64 bit systems.
1070
1cdd3232
EZ
10712013-03-17 Eli Zaretskii <eliz@gnu.org>
1072
1073 * python/python-internal.h (HAVE_SNPRINTF)
1074 [_WIN32 && HAVE_DECL_SNPRINTF]: Define, to avoid compiler warnings
1075 about redefinition of snprintf by pyerrors.h.
1076
3cb2ab1a
SE
10772013-03-15 Steve Ellcey <sellcey@mips.com>
1078
1079 * remote-sim.c (sim_command_completer): Make char arguments const.
1080
9ce98649
TT
10812013-03-15 Tom Tromey <tromey@redhat.com>
1082
1083 PR c++/15116:
1084 * gdbtypes.c (types_equal): Handle TYPE_CODE_FUNC.
1085
dccee2de
TT
10862013-03-14 Tom Tromey <tromey@redhat.com>
1087
1088 * gdb_bfd.c (struct gdb_bfd_data) <crc_computed, crc>:
1089 New fields.
1090 (get_file_crc): Move from symfile.c.
1091 (gdb_bfd_crc): New function.
1092 * gdb_bfd.h (gdb_bfd_crc): Declare.
1093 * objfiles.h (struct objfile) <crc32, crc32_p>: Remove.
1094 * symfile.c (get_file_crc): Move to gdb_bfd.c.
1095 (separate_debug_file_exists): Use gdb_bfd_crc.
1096
cc0ea93c
TT
10972013-03-14 Tom Tromey <tromey@redhat.com>
1098
1099 * symfile.c (get_debug_link_info): Remove.
1100 (find_separate_debug_file_by_debuglink): Use
1101 bfd_get_debug_link_info.
1102
08c23b0d
TT
11032013-03-14 Tom Tromey <tromey@redhat.com>
1104
1105 * symtab.c (error_in_psymtab_expansion): New function.
1106 (lookup_symbol_aux_quick)
1107 (basic_lookup_transparent_type_quick): Remove "last resort"
1108 code. Use error_in_psymtab_expansion.
1109
288e77a7
JK
11102013-03-14 Doug Evans <dje@google.com>
1111 Jan Kratochvil <jan.kratochvil@redhat.com>
1112
1113 * dwarf2read.c (dw2_map_symtabs_matching_filename): Put continue after
1114 any successful compare_filenames_for_search or FILENAME_CMP.
1115 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
1116 * symtab.c (iterate_over_some_symtabs): Likewise.
1117
8f1b8b82
JK
11182013-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
1119
1120 * source.c (print_source_lines_base): Make a local copy of
1121 symtab_to_fullname.
1122
23eb71e4
JK
11232013-03-14 Hui Zhu <hui_zhu@mentor.com>
1124 Jan Kratochvil <jan.kratochvil@redhat.com>
1125
1126 * source.c (print_source_lines_base): Suppress "file" for TUI.
1127
bb869963
SDJ
11282013-03-14 Keith Seitz <keiths@redhat.com>
1129 Alan Matsuoka <alanm@redhat.com>
1130
1131 PR c++/15203
1132 PR c++/15210
1133 * cp-namespace.c (cp_lookup_nested_symbol): Handle TYPE_CODE_FUNC and
1134 TYPE_CODE_METHOD.
1135 * elfread.c (elf_symtab_read): Handle BSF_GNU_UNIQUE for certain
1136 symbols.
1137
d6682f9e
YQ
11382013-03-14 Yao Qi <yao@codesourcery.com>
1139
1140 * tracepoint.c (tfile_write_status): Write 'stop_desc' of trace
1141 status to tfile if trace is stopped by command 'tstop'.
1142
a22fa6e4
YQ
11432013-03-14 Yao Qi <yao@codesourcery.com>
1144
1145 * tracepoint.c (tfile_write_status): Write trace notes and user
1146 name into tfile if they are not NULL.
1147
d0353e76
YQ
11482013-03-14 Hui Zhu <hui@codesourcery.com>
1149 Yao Qi <yao@codesourcery.com>
1150
1151 * Makefile.in (REMOTE_OBS): Add ctf.o.
1152 (SFILES): Add ctf.c.
1153 (HFILES_NO_SRCDIR): Add ctf.h.
1154 * ctf.c, ctf.h: New files.
1155 * tracepoint.c: Include 'ctf.h'.
1156 (collect_pseudocommand): Remove static.
1157 (trace_save_command): Parse option "-ctf".
1158 Produce different trace file writers per option.
1159 Adjust output message.
1160 (trace_save_tfile, trace_save_ctf): New.
1161 * tracepoint.h (trace_save_tfile, trace_save_ctf): Declare.
1162 * mi/mi-main.c: Include 'ctf.h'.
1163 (mi_cmd_trace_save): Handle option '-ctf'. Call either
1164 trace_save_tfile or trace_save_ctf.
1165 * NEWS: Mention these changes.
1166
3f43bc09
YQ
11672013-03-14 Yao Qi <yao@codesourcery.com>
1168
1169 * tracepoint.c (trace_file_writer_xfree): New.
1170 (struct tfile_writer_data): New.
1171 (tfile_dtor, tfile_can_target_save, tfile_start): New.
1172 (tfile_write_header, tfile_write_regblock_type): New.
1173 (tfile_write_status, tfile_write_uploaded_tsv): New.
1174 (tfile_write_uploaded_tp, tfile_write_definition_end): New.
1175 (tfile_write_raw_data, (tfile_end): New.
1176 (tfile_write_ops): New global variable.
1177 (TRACE_WRITE_R_BLOCK): New macro.
1178 (TRACE_WRITE_M_BLOCK_HEADER): New macro.
1179 (TRACE_WRITE_M_BLOCK_MEMORY): New macro.
1180 (TRACE_WRITE_V_BLOCK): New macro.
1181 (trace_save): Add extra one parameter WRITER. Make it static.
1182 Use WRITER to writer trace.
1183 (tfile_trace_file_writer_new): New.
1184 (trace_save_command): Caller update.
1185 (trace_save_tfile): Write trace data in TFILE format.
1186 * tracepoint.h (struct trace_frame_write_ops): New.
1187 (struct trace_file_write_ops): New.
1188 (struct trace_file_writer): New.
1189 (trace_save): Remove its declaration.
1190 (trace_save_tfile): Declare it.
1191 * mi/mi-main.c (mi_cmd_trace_save): Call trace_save_tfile
1192 instead of trace_save.
1193
58665b40
PA
11942013-03-13 Pedro Alves <palves@redhat.com>
1195
1196 * hppa-hpux-nat.c (hppa_hpux_save_state_offset): Make static.
1197
10217050
PA
11982013-03-13 Pedro Alves <palves@redhat.com>
1199
1200 * dbxread.c (read_ofile_symtab, process_one_symbol): Remove
1201 commented out code.
1202 * demangle.c (current_demangling_style_string): Make it const.
1203 (set_demangling_command): Assert the demangling style is known.
1204 Remove all handling of unknown styles. Set
1205 'current_demangling_style_string' to an element of the
1206 demangling_style_names array.
1207 (set_demangling_style): Delete.
1208 (_initialize_demangler): Set current_demangling_style_string to the
1209 element of the demangling_style_names array that corresponds to
1210 the default demangling style. Remove FIXME note. Don't call
1211 set_demangling_style.
1212 * gdb-demangle.h (set_demangling_style): Remove declaration.
1213
6f937416
PA
12142013-03-13 Pedro Alves <palves@redhat.com>
1215
1216 * ada-lang.c (struct add_partial_datum) <text, text0, word>: Make
1217 fields const.
1218 (ada_make_symbol_completion_list): Make "text0" parameter const.
1219 * ax-gdb.c (agent_eval_command_one): Make "exp" parameter const.
1220 * breakpoint.c (condition_completer): Make "text" and "word"
1221 parameters const. Adjust.
1222 (check_tracepoint_command): Adjust to validate_actionline
1223 prototype change.
1224 (catch_syscall_completer): Make "text" and "word" parameters
1225 const.
1226 * cli/cli-cmds.c (show_user): Make "comname" local const.
1227 (valid_command_p): Make "command" parameter const.
1228 (alias_command): Make "alias_prefix" and "command_prefix" locals
1229 const.
1230 * cli/cli-decode.c (add_cmd): Make "name" parameter const.
1231 (add_alias_cmd): Make "name" and "oldname" parameters const.
1232 Adjust. No longer make copy of OLDNAME.
1233 (add_prefix_cmd, add_abbrev_prefix_cmd, add_set_or_show_cmd)
1234 (add_setshow_cmd_full, add_setshow_enum_cmd)
1235 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
1236 (add_setshow_filename_cmd, add_setshow_string_cmd)
1237 (add_setshow_string_noescape_cmd)
1238 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1239 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1240 (add_setshow_zuinteger_unlimited_cmd, add_setshow_zuinteger_cmd)
1241 (delete_cmd, add_info, add_info_alias, add_com, add_com_alias):
1242 Make "name" parameter const.
1243 (help_cmd): Rename "command" parameter to "arg". New const local
1244 "command".
1245 (find_cmd): Make "command" parameter const.
1246 (lookup_cmd_1): Make "text" parameter pointer to const. Adjust to
1247 deprecated_cmd_warning prototype change.
1248 (undef_cmd_error): Make "cmdtype" parameter const.
1249 (lookup_cmd): Make "line" parameter const.
1250 (deprecated_cmd_warning): Change type of "text" parameter to
1251 pointer to const char, from pointer to pointer to char. Adjust.
1252 (lookup_cmd_composition): Make "text" parameter const.
1253 (complete_on_cmdlist, complete_on_enum): Make "text" and "word"
1254 parameters const.
1255 * cli/cli-decode.h (struct cmd_list_element) <name>: Make field
1256 const.
1257 * cli/cli-script.c (validate_comname): Make "tem" local const.
1258 (define_command): New const local "tem_c". Use it in calls to
1259 lookup_cmd.
1260 (document_command): Make "tem" and "comfull" locals const.
1261 (show_user_1): Make "prefix" and "name" parameters const.
1262 * cli-script.h (show_user_1): Make "prefix" and "name" parameters
1263 const.
1264 * command.h (add_cmd, add_alias_cmd, add_prefix_cmd)
1265 (add_abbrev_prefix_cmd, completer_ftype, lookup_cmd, lookup_cmd_1)
1266 (deprecated_cmd_warning, lookup_cmd_composition, add_com)
1267 (add_com_alias, add_info, add_info_alias, complete_on_cmdlist)
1268 (complete_on_enum, add_setshow_enum_cmd)
1269 (add_setshow_auto_boolean_cmd, add_setshow_boolean_cmd)
1270 (add_setshow_filename_cmd, add_setshow_string_cmd)
1271 (add_setshow_string_noescape_cmd)
1272 (add_setshow_optional_filename_cmd, add_setshow_integer_cmd)
1273 (add_setshow_uinteger_cmd, add_setshow_zinteger_cmd)
1274 (add_setshow_zuinteger_cmd, add_setshow_zuinteger_unlimited_cmd):
1275 Change prototypes, constifying strings.
1276 * completer.c (noop_completer, filename_completer): Make "text"
1277 and "prefix" parameters const.
1278 (location_completer, expression_completer)
1279 (complete_line_internal): Make "text" and "prefix" parameters
1280 const and adjust.
1281 (command_completer, signal_completer): Make "text" and "prefix"
1282 parameters const.
1283 * completer.h (noop_completer, filename_completer)
1284 (expression_completer, location_completer, command_completer)
1285 (signal_completer): Change prototypes.
1286 * corefile.c (complete_set_gnutarget): Make "text" and "word"
1287 parameters const.
1288 * cp-abi.c (cp_abi_completer): Likewise.
1289 * expression.h (parse_expression_for_completion): Change
1290 prototype.
1291 * f-lang.c (f_make_symbol_completion_list): Make "text" and "word"
1292 parameters const.
1293 * infcmd.c (_initialize_infcmd): Make "cmd_name" local const.
1294 * infrun.c (handle_completer): Make "text" and "word" parameters
1295 const.
1296 * interps.c (interpreter_completer): Make "text" and "word"
1297 parameters const.
1298 * language.h (struct language_defn)
1299 <la_make_symbol_completion_list>: Make "text" and "word"
1300 parameters const.
1301 * parse.c (parse_exp_1): Move const hack to parse_exp_in_context.
1302 (parse_exp_in_context): Rename to ...
1303 (parse_exp_in_context_1): ... this.
1304 (parse_exp_in_context): Reimplement, with const hack from
1305 parse_exp_1.
1306 (parse_expression_for_completion): Make "string" parameter const.
1307 * printcmd.c (decode_format): Make "string_ptr" parameter pointer
1308 to pointer to const char. Adjust.
1309 (print_command_1): Make "exp" parameter const.
1310 (output_command): Rename to ...
1311 (output_command_const): ... this. Make "exp" parameter const.
1312 (output_command): Reimplement.
1313 (x_command): Adjust.
1314 (display_command): Rename "exp" parameter to "arg". New "exp"
1315 local, const version of "arg".
1316 * python/py-auto-load.c (gdbpy_initialize_auto_load): Make
1317 "cmd_name" local const.
1318 * python/py-cmd.c (cmdpy_destroyer): Cast const away in xfree
1319 call.
1320 (cmdpy_completer): Make "text" and "word" parameters const.
1321 (gdbpy_parse_command_name): Make "prefix_text2" local const.
1322 * python/py-param.c (add_setshow_generic): Make "tmp_name" local
1323 const.
1324 * remote.c (_initialize_remote): Make "cmd_name" local const.
1325 * symtab.c (language_search_unquoted_string): Make "text" and "p"
1326 parameters const. Adjust.
1327 (completion_list_add_fields): Make "sym_text", "text" and "word"
1328 parameters const.
1329 (struct add_name_data) <sym_text, text, word>: Make fields const.
1330 (default_make_symbol_completion_list_break_on): Make "text" and
1331 "word" parameters const. Adjust locals.
1332 (default_make_symbol_completion_list)
1333 (make_symbol_completion_list, make_symbol_completion_type)
1334 (make_symbol_completion_list_fn): Make "text" and "word"
1335 parameters const.
1336 (make_file_symbol_completion_list): Make "text", "word" and
1337 "srcfile" parameters const. Adjust locals.
1338 (add_filename_to_list): Make "text" and "word" parameters const.
1339 (struct add_partial_filename_data) <text, word>: Make fields
1340 const.
1341 (make_source_files_completion_list): Make "text" and "word"
1342 parameters const.
1343 * symtab.h (default_make_symbol_completion_list_break_on)
1344 (default_make_symbol_completion_list, make_symbol_completion_list)
1345 (make_symbol_completion_type enum type_code)
1346 (make_symbol_completion_list_fn make_file_symbol_completion_list)
1347 (make_source_files_completion_list): Change prototype.
1348 * top.c (execute_command): Adjust to pass pointer to pointer to
1349 const char to lookup_cmd, and to deprecated_cmd_warning prototype
1350 change.
1351 (set_verbose): Make "cmdname" local const.
1352 * tracepoint.c (decode_agent_options): Make "exp" parameter const,
1353 and adjust.
1354 (validate_actionline): Make "line" parameter a pointer to const
1355 char, and adjust.
1356 (encode_actions_1): Make "action_exp" local const, and adjust.
1357 (encode_actions): Adjust.
1358 (replace_comma): Delete.
1359 (trace_dump_actions): Make "action_exp" and "next_comma" locals
1360 const, and adjust. Don't frob the action string while splitting
1361 it at commas. Instead, make a copy of each split substring in
1362 turn.
1363 (trace_dump_command): Adjust to validate_actionline prototype
1364 change.
1365 * tracepoint.h (decode_agent_options, decode_agent_options)
1366 (encode_actions, validate_actionline): Change prototypes.
1367 * valprint.h (output_command): Delete declaration.
1368 (output_command_const): Declare.
1369 * value.c (function_destroyer): Cast const away in xfree call.
1370
a0bcdaa7
PA
13712013-03-13 Pedro Alves <palves@redhat.com>
1372
1373 * ada-lang.c (ada_decode_symbol): Cast away constness of GSYMBOL
1374 rather than casting 'const char * const *' to 'const char **'.
1375 * ada-lex.l (processInt): Make "trailer" local const. Remove
1376 'const char **' cast.
1377 * arm-linux-tdep.c (arm_stap_parse_special_token): Add 'char *'
1378 locals, and use those as strtol output pointer, instead than doing
1379 invalid casts to from 'const char **' to 'char **'.
1380 (_initialize_demangle): Remove cast.
1381 * i386-tdep.c (i386_stap_parse_special_token): : Add 'char *'
1382 locals, and use those as strtol output pointer, instead than doing
1383 invalid casts to from 'const char **' to 'char **'.
1384 * solib-dsbt.c (dsbt_get_initial_loadmaps): Remove 'gdb_byte**'
1385 casts.
1386 * stap-probe.c (stap_parse_register_operand)
1387 (stap_parse_single_operand): Likewise.
1388
8ddb1965
YQ
13892013-03-13 Yao Qi <yao@codesourcery.com>
1390
1391 * tracepoint.c (tfile_get_trace_state_variable_value): Look for
1392 the last matched 'V' blcok in trace frame.
1393
2d450646
JB
13942013-03-12 Joel Brobecker <brobecker@adacore.com>
1395
1396 * NEWS: Create a new section for the next release branch.
1397 Rename the section of the current branch, now that it has
1398 been cut.
1399
b4b79973 14002013-03-12 Joel Brobecker <brobecker@adacore.com>
1401
1402 GDB 7.6 branch created (branch timestamp: 2013-03-12 22:15 UTC)
1403 * version.in: Bump version to 7.6.50.20130312-cvs.
1404
ee047554
KS
14052013-03-12 Keith Seitz <keiths@redhat.com>
1406
1407 * mi/mi-cmds.h (mi_execute_command): Make "cmd" const.
1408 * mi/mi-interp.c (mi_interpreter_exec): Make "command" const.
1409 Remove temporary copy of input string.
1410 (mi_execute_command_wrapper): Make "cmd" const.
1411 * mi/mi-main.c (mi_execute_command): Make "string_ptr" const.
1412 * mi/mi-parse.c (mi_parse_argv): Make "args" const.
1413 Use const strings.
1414 (mi_parse): Make "cmd" const.
1415 Use const strings.
1416 * mi/mi-parse.h (mi_parse): Make "cmd" const.
1417
bbc13ae3
KS
14182013-03-12 Keith Seitz <keiths@redhat.com>
1419
1420 * ada-lang.c (ada_read_renaming_var_value): Pass const
1421 pointer to expression string to parse_exp_1.
1422 (create_excep_cond_exprs): Likewise.
1423 * ax-gdb.c (agent_eval_command_one): Likewise.
1424 (maint_agent_printf_command): Likewise.
1425 Constify much of the string handling/parsing.
1426 * breakpoint.c (set_breakpoint_condition): Pass const
1427 pointer to expression string to parse_exp_1.
1428 (update_watchpoint): Likewise.
1429 (parse_cmd_to_aexpr): Constify string handling.
1430 Pass const pointer to parse_exp_1.
1431 (init_breakpoint_sal): Pass const pointer to parse_exp_1.
1432 (find_condition_and_thread): Likewise.
1433 Make TOK const.
1434 (watch_command_1): Make "arg" const.
1435 Constify string handling.
1436 Copy the expression string instead of changing the input
1437 string.
1438 (update_breakpoint_location): Pass const pointer to
1439 parse_exp_1.
1440 * eval.c (parse_and_eval_address): Make "exp" const.
1441 (parse_to_comma_and_eval): Make "expp" const.
1442 (parse_and_eval): Make "exp" const.
1443 * expression.h (parse_expression): Make argument const.
1444 (parse_exp_1): Make first argument const.
1445 * findcmd.c (parse_find_args): Treat "args" as const.
1446 * linespec.c (parse_linespec): Pass const pointer to
1447 linespec_expression_to_pc.
1448 (linespec_expression_to_pc): Make "exp_ptr" const.
1449 * parse.c (parse_exp_1): Make "stringptr" const.
1450 Make a copy of the expression to pass to parse_exp_in_context until
1451 this whole interface can be constified.
1452 (parse_expression): Make "string" const.
1453 * printcmd.c (ui_printf): Treat "arg" as const.
1454 Handle const strings.
1455 * tracepoint.c (validate_actionline): Pass const pointer to
1456 all calls to parse_exp_1.
1457 (encode_actions_1): Likewise.
1458 * value.h (parse_to_comma_and_eval): Make argument const.
1459 (parse_and_eval_address): Likewise.
1460 (parse_and_eval): Likewise.
1461 * varobj.c (varobj_create): Pass const pointer to parse_exp_1.
1462 (varobj_set_value): Likewise.
1463 * cli/cli-cmds.c (disassemble_command): Treat "arg" as const and
1464 constify string handling.
1465 Pass const pointers to parse_and_eval_address and
1466 parse_to_comman_and_eval.
1467 * cli/cli-utils.c (skip_to_space): Rename to ...
1468 (skip_to_space_const): ... this. Handle const strings.
1469 * cli/cli-utils.h (skip_to_space): Turn into macro which invokes
1470 skip_to_space_const.
1471 (skip_to_space_const): Declare.
1472 * common/format.c (parse_format_string): Make "arg" const.
1473 Handle const strings.
1474 * common/format.h (parse_format_string): Make "arg" const.
1475 * gdbserver/ax.c (ax_printf): Make "format" const.
1476 * python/python.c (gdbpy_parse_and_eval): Do not make a copy
1477 of the expression string.
1478
f3cec7e6
HZ
14792013-03-12 Hui Zhu <hui@codesourcery.com>
1480
1481 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Update error message.
1482
9df7235c
HZ
14832013-03-12 Yao Qi <yao@codesourcery.com>
1484 Hui Zhu <hui@codesourcery.com>
1485
1486 * dwarf2loc.c (access_memory): Change nbits to nbytes in gdb_assert.
1487 (dwarf2_compile_expr_to_ax): Call access_memory in DW_OP_deref and
1488 DW_OP_deref_size.
1489
82d049ab
PH
14902013-03-12 Paul Hilfinger <hilfingr@adacore.com>
1491
1492 * ada-lex.l (rules): Only recognize 'thread' as a
1493 delimiter when followed by numerals, as for c-exp.y.
1494 Use new rewind_to_char function to rewind the input for
1495 expression-delimiting tokens.
1496 (rewind_to_char): New function.
1497
8c1fb155
JK
14982013-03-11 Pedro Alves <palves@redhat.com>
1499 Jan Kratochvil <jan.kratochvil@redhat.com>
1500
1501 * configure: Regenerate.
1502 * configure.ac (check dynamic export flag): Link python test with
1503 $PYTHON_LIBS.
1504
cc81e1c6
DE
15052013-03-11 Doug Evans <dje@google.com>
1506 Keith Seitz <keiths@redhat.com>
1507
1508 * linespec.c (find_linespec_symbols): Call find_function_symbols
1509 first, and then call lookup_prefix_sym/find_method.
1510
39086a0e
PA
15112013-03-11 Pedro Alves <palves@redhat.com>
1512
1513 * charset.c (convert_between_encodings): Don't cast between
1514 different pointer to pointer types. Instead, make the 'inp' local
1515 be of the type iconv expects.
1516 (wchar_iterate): Don't cast between different pointer to pointer
1517 types. Instead, use new pointer local of the type iconv expects.
1518 * target.c (target_read_stralloc, target_fileio_read_stralloc):
1519 Add new local of type char pointer, and use it to get a
1520 char/string view of the byte buffer, instead of casting between
1521 pointer to pointer types.
1522
90585175
HAQ
15232013-03-11 Hafiz Abid Qadeer <abidh@codesourcery.com>
1524
1525 * remote.c (remote_set_trace_buffer_size): Move != operator
1526 to the start of next line to fix an ARI warning.
1527
59ea5688
MM
15282013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1529
1530 * NEWS: Add record changes.
1531
946287b7
MM
15322013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1533
1534 * record-btrace.c (btrace_insn_history): Omit the pc prefix in
1535 the instruction history disassembly.
1536 * disasm.c (dump_insns): Omit the pc prefix, if requested.
1537 * disasm.h (DISASSEMBLY_OMIT_PC): New.
1538
afedecd3
MM
15392013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1540
1541 * Makefile.in (SFILES): Add record-btrace.c
1542 (COMMON_OBS): Add record-btrace.o
1543 * record-btrace.c: New.
1544 * objfiles.c: Include btrace.h.
1545 (free_objfile): call btrace_free_objfile.
1546
15984c13
MM
15472013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1548
1549 * target.c (target_call_history, target_call_history_from,
1550 target_call_history_range): New.
1551 * target.h (target_ops) <to_call_history, to_call_history_from,
1552 to_call_history_range>: New fields.
1553 (target_call_history, target_call_history_from,
1554 target_call_history_range): New declaration.
1555 * record.c (get_call_history_modifiers, cmd_record_call_history,
1556 record_call_history_size): New.
1557 (_initialize_record): Add the "record function-call-history" command.
1558 Add "set/show record function-call-history-size" commands.
1559 * record.h (record_print_flag): New.
1560
67c86d06
MM
15612013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1562
1563 * target.h (target_ops) <to_insn_history, to_insn_history_from,
1564 to_insn_history_range>: New fields.
1565 (target_insn_history): New.
1566 (target_insn_history_from): New.
1567 (target_insn_history_range): New.
1568 * target.c (target_insn_history): New.
1569 (target_insn_history_from): New.
1570 (target_insn_history_range): New.
1571 * record.c: Include cli/cli-utils.h, disasm.h, ctype.h.
1572 (record_insn_history_size): New.
1573 (get_insn_number): New.
1574 (get_context_size): New.
1575 (no_chunk): New.
1576 (get_insn_history_modifiers): New.
1577 (cmd_record_insn_history): New.
1578 (_initialize_record): Add "set/show record instruction-history-size"
1579 command. Add "record instruction-history" command.
1580
7c1687a9
MM
15812013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1582
1583 * record.h (record_disconnect): New.
1584 (record_detach): New.
1585 (record_mourn_inferior): New.
1586 (record_kill): New.
1587 * record-full.c (record_disconnect, record_detach,
1588 record_mourn_inferior, record_kill): Move to...
1589 * record.c: ...here.
1590 (DEBUG): New.
1591 (record_stop): New.
1592 (record_unpush): New.
1593 (cmd_record_stop): Call record_stop. Replace unpush_target
1594 call with record_unpush call.
1595 (record_disconnect, record_detach): Assert that the target
1596 is of record stratum. Call record_unpush, record_stop, and
1597 DEBUG.
1598 (record_mourn_inferior, record_kill): Assert that the target
1599 is of record stratum. Call record_unpush and DEBUG.
1600
25ea693b
MM
16012013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1602
1603 * record-full.h, record-full.c (record_memory_query): Rename
1604 to ...
1605 (record_full_memory_query): ...this. Update all users.
1606 (record_arch_list_add_reg): Rename to ...
1607 (record_full_arch_list_add_reg): ...this. Update all users.
1608 (record_arch_list_add_mem): Rename to ...
1609 (record_full_arch_list_add_mem): ...this. Update all users.
1610 (record_arch_list_add_end): Rename to ...
1611 (record_full_arch_list_add_end): ...this. Update all users.
1612 (record_gdb_operation_disable_set): Rename to ...
1613 (record_full_gdb_operation_disable_set): ...this.
1614 Update all users.
1615
88d1aa9d
MM
16162013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1617
1618 * record-full.c (DEFAULT_RECORD_INSN_MAX_NUM): Renamed to ...
1619 (DEFAULT_RECORD_FULL_INSN_MAX_NUM): ... this. Updated all users.
1620 (RECORD_IS_REPLAY): Renamed to ...
1621 (RECORD_FULL_IS_REPLAY): ... this. Updated all users.
1622 (RECORD_FILE_MAGIC): Renamed to ...
1623 (RECORD_FULL_FILE_MAGIC): ... this. Updated all users.
1624 (record_mem_entry): Renamed to ...
1625 (record_full_mem_entry): ... this. Updated all users.
1626 (record_reg_entry): Renamed to ...
1627 (record_full_reg_entry): ... this. Updated all users.
1628 (record_end_entry): Renamed to ...
1629 (record_full_end_entry): ... this. Updated all users.
1630 (record_type) <record_end, record_reg, record_mem>: Renamed
1631 to ...
1632 (record_full_type) <record_full_end, record_full_reg,
1633 record_full_mem>: ... this. Updated all users.
1634 (record_entry): Renamed to ...
1635 (record_full_entry): ... this. Updated all users.
1636 (record_core_buf_entry): Renamed to ...
1637 (record_full_core_buf_entry): ... this. Updated all users.
1638 (record_core_regbuf): Renamed to ...
1639 (record_full_core_regbuf): ... this. Updated all users.
1640 (record_core_start): Renamed to ...
1641 (record_full_core_start): ... this. Updated all users.
1642 (record_core_end): Renamed to ...
1643 (record_full_core_end): ... this. Updated all users.
1644 (record_core_buf_list): Renamed to ...
1645 (record_full_core_buf_list): ... this. Updated all users.
1646 (record_first): Renamed to ...
1647 (record_full_first): ... this. Updated all users.
1648 (record_list): Renamed to ...
1649 (record_full_list): ... this. Updated all users.
1650 (record_arch_list_head): Renamed to ...
1651 (record_full_arch_list_head): ... this. Updated all users.
1652 (record_arch_list_tail): Renamed to ...
1653 (record_full_arch_list_tail): ... this. Updated all users.
1654 (record_stop_at_limit): Renamed to ...
1655 (record_full_stop_at_limit): ... this. Updated all users.
1656 (record_insn_max_num): Renamed to ...
1657 (record_full_insn_max_num): ... this. Updated all users.
1658 (record_insn_num): Renamed to ...
1659 (record_full_insn_num): ... this. Updated all users.
1660 (record_insn_count): Renamed to ...
1661 (record_full_insn_count): ... this. Updated all users.
1662 (record_ops): Renamed to ...
1663 (record_full_ops): ... this. Updated all users.
1664 (record_core_ops): Renamed to ...
1665 (record_full_core_ops): ... this. Updated all users.
1666 (set_record_cmdlist): Renamed to ...
1667 (set_record_full_cmdlist): ... this. Updated all users.
1668 (show_record_cmdlist): Renamed to ...
1669 (show_record_full_cmdlist): ... this. Updated all users.
1670 (record_cmdlist): Renamed to ...
1671 (record_full_cmdlist): ... this. Updated all users.
1672 (record_beneath_to_resume_ops): Renamed to ...
1673 (record_full_beneath_to_resume_ops): ... this. Updated all users.
1674 (record_beneath_to_resume): Renamed to ...
1675 (record_full_beneath_to_resume): ... this. Updated all users.
1676 (record_beneath_to_wait_ops): Renamed to ...
1677 (record_full_beneath_to_wait_ops): ... this. Updated all users.
1678 (record_beneath_to_wait): Renamed to ...
1679 (record_full_beneath_to_wait): ... this. Updated all users.
1680 (record_beneath_to_store_registers_ops): Renamed to ...
1681 (record_full_beneath_to_store_registers_ops): ... this.
1682 Updated all users.
1683 (record_beneath_to_store_registers): Renamed to ...
1684 (record_full_beneath_to_store_registers): ... this.
1685 Updated all users.
1686 (record_beneath_to_xfer_partial_ops): Renamed to ...
1687 (record_full_beneath_to_xfer_partial_ops): ... this.
1688 Updated all users.
1689 (record_beneath_to_xfer_partial): Renamed to ...
1690 (record_full_beneath_to_xfer_partial): ... this.
1691 Updated all users.
1692 (record_beneath_to_insert_breakpoint): Renamed to ...
1693 (record_full_beneath_to_insert_breakpoint): ... this.
1694 Updated all users.
1695 (record_beneath_to_stopped_by_watchpoint): Renamed to ...
1696 (record_full_beneath_to_stopped_by_watchpoint): ... this.
1697 Updated all users.
1698 (record_beneath_to_stopped_data_address): Renamed to ...
1699 (record_full_beneath_to_stopped_data_address): ... this.
1700 Updated all users.
1701 (record_beneath_to_async): Renamed to ...
1702 (record_full_beneath_to_async): ... this. Updated all users.
1703 (record_goto_insn): Renamed to ...
1704 (record_full_goto_insn): ... this. Updated all users.
1705 (record_save): Renamed to ...
1706 (record_full_save): ... this. Updated all users.
1707 (record_reg_alloc): Renamed to ...
1708 (record_full_reg_alloc): ... this. Updated all users.
1709 (record_reg_release): Renamed to ...
1710 (record_full_reg_release): ... this. Updated all users.
1711 (record_mem_alloc): Renamed to ...
1712 (record_full_mem_alloc): ... this. Updated all users.
1713 (record_mem_release): Renamed to ...
1714 (record_full_mem_release): ... this. Updated all users.
1715 (record_end_alloc): Renamed to ...
1716 (record_full_end_alloc): ... this. Updated all users.
1717 (record_end_release): Renamed to ...
1718 (record_full_end_release): ... this. Updated all users.
1719 (record_entry_release): Renamed to ...
1720 (record_full_entry_release): ... this. Updated all users.
1721 (record_list_release): Renamed to ...
1722 (record_full_list_release): ... this. Updated all users.
1723 (record_list_release_following): Renamed to ...
1724 (record_full_list_release_following): ... this.
1725 Updated all users.
1726 (record_list_release_first): Renamed to ...
1727 (record_full_list_release_first): ... this. Updated all users.
1728 (record_arch_list_add): Renamed to ...
1729 (record_full_arch_list_add): ... this. Updated all users.
1730 (record_get_loc): Renamed to ...
1731 (record_full_get_loc): ... this. Updated all users.
1732 (record_check_insn_num): Renamed to ...
1733 (record_full_check_insn_num): ... this. Updated all users.
1734 (record_arch_list_cleanups): Renamed to ...
1735 (record_full_arch_list_cleanups): ... this. Updated all users.
1736 (record_message): Renamed to ...
1737 (record_full_message): ... this. Updated all users.
1738 (record_message_wrapper): Renamed to ...
1739 (record_full_message_wrapper): ... this. Updated all users.
1740 (record_message_wrapper_safe): Renamed to ...
1741 (record_full_message_wrapper_safe): ... this. Updated all users.
1742 (record_gdb_operation_disable): Renamed to ...
1743 (record_full_gdb_operation_disable): ... this. Updated all users.
1744 (record_hw_watchpoint): Renamed to ...
1745 (record_full_hw_watchpoint): ... this. Updated all users.
1746 (record_exec_insn): Renamed to ...
1747 (record_full_exec_insn): ... this. Updated all users.
1748 (record_restore): Renamed to ...
1749 (record_full_restore): ... this. Updated all users.
1750 (record_async_inferior_event_token): Renamed to ...
1751 (record_full_async_inferior_event_token): ... this.
1752 Updated all users.
1753 (record_async_inferior_event_handler): Renamed to ...
1754 (record_full_async_inferior_event_handler): ... this.
1755 Updated all users.
1756 (record_core_open_1): Renamed to ...
1757 (record_full_core_open_1): ... this. Updated all users.
1758 (record_open_1): Renamed to ...
1759 (record_full_open_1): ... this. Updated all users.
1760 (record_open): Renamed to ...
1761 (record_full_open): ... this. Updated all users.
1762 (record_close): Renamed to ...
1763 (record_full_close): ... this. Updated all users.
1764 (record_resume_step): Renamed to ...
1765 (record_full_resume_step): ... this. Updated all users.
1766 (record_resumed): Renamed to ...
1767 (record_full_resumed): ... this. Updated all users.
1768 (record_execution_dir): Renamed to ...
1769 (record_full_execution_dir): ... this. Updated all users.
1770 (record_resume): Renamed to ...
1771 (record_full_resume): ... this. Updated all users.
1772 (record_get_sig): Renamed to ...
1773 (record_full_get_sig): ... this. Updated all users.
1774 (record_sig_handler): Renamed to ...
1775 (record_full_sig_handler): ... this. Updated all users.
1776 (record_wait_cleanups): Renamed to ...
1777 (record_full_wait_cleanups): ... this. Updated all users.
1778 (record_wait_1): Renamed to ...
1779 (record_full_wait_1): ... this. Updated all users.
1780 (record_wait): Renamed to ...
1781 (record_full_wait): ... this. Updated all users.
1782 (record_stopped_by_watchpoint): Renamed to ...
1783 (record_full_stopped_by_watchpoint): ... this. Updated all users.
1784 (record_disconnect): Renamed to ...
1785 (record_full_disconnect): ... this. Updated all users.
1786 (record_detach): Renamed to ...
1787 (record_full_detach): ... this. Updated all users.
1788 (record_mourn_inferior): Renamed to ...
1789 (record_full_mourn_inferior): ... this. Updated all users.
1790 (record_kill): Renamed to ...
1791 (record_full_kill): ... this. Updated all users.
1792 (record_stopped_data_address): Renamed to ...
1793 (record_full_stopped_data_address): ... this. Updated all users.
1794 (record_registers_change): Renamed to ...
1795 (record_full_registers_change): ... this. Updated all users.
1796 (record_store_registers): Renamed to ...
1797 (record_full_store_registers): ... this. Updated all users.
1798 (record_xfer_partial): Renamed to ...
1799 (record_full_xfer_partial): ... this. Updated all users.
1800 (record_breakpoint): Renamed to ...
1801 (record_full_breakpoint): ... this. Updated all users.
1802 (record_breakpoint_p): Renamed to ...
1803 (record_full_breakpoint_p): ... this. Updated all users.
1804 (record_breakpoints): Renamed to ...
1805 (record_full_breakpoints): ... this. Updated all users.
1806 (record_sync_record_breakpoints): Renamed to ...
1807 (record_full_sync_record_breakpoints): ... this.
1808 Updated all users.
1809 (record_init_record_breakpoints): Renamed to ...
1810 (record_full_init_record_breakpoints): ... this.
1811 Updated all users.
1812 (record_insert_breakpoint): Renamed to ...
1813 (record_full_insert_breakpoint): ... this. Updated all users.
1814 (record_remove_breakpoint): Renamed to ...
1815 (record_full_remove_breakpoint): ... this. Updated all users.
1816 (record_can_execute_reverse): Renamed to ...
1817 (record_full_can_execute_reverse): ... this. Updated all users.
1818 (record_get_bookmark): Renamed to ...
1819 (record_full_get_bookmark): ... this. Updated all users.
1820 (record_goto_bookmark): Renamed to ...
1821 (record_full_goto_bookmark): ... this. Updated all users.
1822 (record_async): Renamed to ...
1823 (record_full_async): ... this. Updated all users.
1824 (record_can_async_p): Renamed to ...
1825 (record_full_can_async_p): ... this. Updated all users.
1826 (record_is_async_p): Renamed to ...
1827 (record_full_is_async_p): ... this. Updated all users.
1828 (record_execution_direction): Renamed to ...
1829 (record_full_execution_direction): ... this. Updated all users.
1830 (record_info): Renamed to ...
1831 (record_full_info): ... this. Updated all users.
1832 (record_delete): Renamed to ...
1833 (record_full_delete): ... this. Updated all users.
1834 (record_is_replaying): Renamed to ...
1835 (record_full_is_replaying): ... this. Updated all users.
1836 (record_goto_entry): Renamed to ...
1837 (record_full_goto_entry): ... this. Updated all users.
1838 (record_goto_begin): Renamed to ...
1839 (record_full_goto_begin): ... this. Updated all users.
1840 (record_goto_end): Renamed to ...
1841 (record_full_goto_end): ... this. Updated all users.
1842 (record_goto): Renamed to ...
1843 (record_full_goto): ... this. Updated all users.
1844 (init_record_ops): Renamed to ...
1845 (init_record_full_ops): ... this. Updated all users.
1846 (record_core_resume): Renamed to ...
1847 (record_full_core_resume): ... this. Updated all users.
1848 (record_core_kill): Renamed to ...
1849 (record_full_core_kill): ... this. Updated all users.
1850 (record_core_fetch_registers): Renamed to ...
1851 (record_full_core_fetch_registers): ... this. Updated all users.
1852 (record_core_prepare_to_store): Renamed to ...
1853 (record_full_core_prepare_to_store): ... this. Updated all users.
1854 (record_core_store_registers): Renamed to ...
1855 (record_full_core_store_registers): ... this. Updated all users.
1856 (record_core_xfer_partial): Renamed to ...
1857 (record_full_core_xfer_partial): ... this. Updated all users.
1858 (record_core_insert_breakpoint): Renamed to ...
1859 (record_full_core_insert_breakpoint): ... this. Updated all users.
1860 (record_core_remove_breakpoint): Renamed to ...
1861 (record_full_core_remove_breakpoint): ... this. Updated all users.
1862 (record_core_has_execution): Renamed to ...
1863 (record_full_core_has_execution): ... this. Updated all users.
1864 (init_record_core_ops): Renamed to ...
1865 (init_record_full_core_ops): ... this. Updated all users.
1866 (cmd_record_restore): Renamed to ...
1867 (cmd_record_full_restore): ... this. Updated all users.
1868 (record_save_cleanups): Renamed to ...
1869 (record_full_save_cleanups): ... this. Updated all users.
1870 (cmd_record_start): Renamed to ...
1871 (cmd_record_full_start): ... this. Updated all users.
1872 (set_record_insn_max_num): Renamed to ...
1873 (set_record_full_insn_max_num): ... this. Updated all users.
1874 (set_record_command): Renamed to ...
1875 (set_record_full_command): ... this. Updated all users.
1876 (show_record_command): Renamed to ...
1877 (show_record_full_command): ... this. Updated all users.
1878 (_initialize_record): Renamed to ...
1879 (_initialize_record_full): ... this. Updated all users.
1880
d02ed0bb
MM
18812013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1882
1883 * record.h: Split into this and ...
1884 * record-full.h: ... this.
1885 * record.c: Split into this and ...
1886 * record-full.c: ... this.
1887 * target.h (target_ops): Add new fields to_info_record,
1888 to_save_record, to_delete_record, to_record_is_replaying,
1889 to_goto_record_begin, to_goto_record_end, to_goto_record.
1890 (target_info_record): New.
1891 (target_save_record): New.
1892 (target_supports_delete_record): New.
1893 (target_delete_record): New.
1894 (target_record_is_replaying): New.
1895 (target_goto_record_begin): New.
1896 (target_goto_record_end): New.
1897 (target_goto_record): New.
1898 * target.c (target_info_record): New.
1899 (target_save_record): New.
1900 (target_supports_delete_record): New.
1901 (target_delete_record): New.
1902 (target_record_is_replaying): New.
1903 (target_goto_record_begin): New.
1904 (target_goto_record_end): New.
1905 (target_goto_record): New.
1906 * record.h: Declare struct cmd_list_element.
1907 (record_cmdlist): New declaration.
1908 (set_record_cmdlist): New declaration.
1909 (show_record_cmdlist): New declaration.
1910 (info_record_cmdlist): New declaration.
1911 (cmd_record_goto): New declaration.
1912 * record.c: Remove unnecessary includes.
1913 Include inferior.h.
1914 (cmd_record_goto): Remove declaration.
1915 (record_cmdlist): Now extern. Initialize.
1916 (set_record_cmdlist): Now extern. Initialize.
1917 (show_record_cmdlist): Now extern. Initialize.
1918 (info_record_cmdlist): Now extern. Initialize.
1919 (find_record_target): New.
1920 (require_record_target): New.
1921 (cmd_record_start): Update.
1922 (cmd_record_delete): Remove target-specific code.
1923 Call target_delete_record.
1924 (cmd_record_stop): Unpush any record target.
1925 (set_record_insn_max_num): Move to record-full.c
1926 (set_record_command): Add comment.
1927 (show_record_command): Add comment.
1928 (info_record_command): Update comment.
1929 Remove target-specific code.
1930 Call the record target's to_info_record.
1931 (cmd_record_start): New.
1932 (cmd_record_goto): Now extern.
1933 Remove target-specific code.
1934 Call target_goto_begin, target_goto_end, or target_goto.
1935 (_initialize_record): Move record target ops initialization to
1936 record-full.c.
1937 Change "record" command help text.
1938 Move "record restore", "record set", and "record show" commands to
1939 record-full.c.
1940 * Makefile.in (SFILES): Add record-full.c.
1941 (HFILES_NO_SRCDIR): Add record-full.h.
1942 (COMMON_OBS): Add record-full.o.
1943 * amd64-linux-tdep.c: Include record-full.h instead of record.h.
1944 * arm-tdep.c: Include record-full.h.
1945 * i386-linux-tdep.c: Include record-full.h instead of record.h.
1946 * i386-tdep.c: Include record-full.h.
1947 * infrun.c: Include record-full.h.
1948 * linux-record.c: Include record-full.h.
1949 * moxie-tdep.c: Include record-full.h.
1950 * record-full.c: Include record-full.h.
1951 Change module comment.
1952 (set_record_full_cmdlist): New.
1953 (show_record_full_cmdlist): New.
1954 (record_full_cmdlist): New.
1955 (record_goto_insn): New declaration.
1956 (record_save): New declaration.
1957 (record_check_insn_num): Change query string.
1958 (record_info): New.
1959 (record_delete): New.
1960 (record_is_replaying): New.
1961 (record_goto_entry): New.
1962 (record_goto_begin): New.
1963 (record_goto_end): New.
1964 (record_goto): New.
1965 (init_record_ops): Update.
1966 (init_record_core_ops): Update.
1967 (cmd_record_save): Rename to record_save. Remove target and arg checks.
1968 (cmd_record_start): New.
1969 (set_record_insn_max_num): Moved from record.c
1970 (set_record_full_command): New.
1971 (show_record_full_command): New.
1972 (_initialize_record_full): New.
1973
b48d48eb
MM
19742013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1975
1976 * target.h (add_deprecated_target_alias): New.
1977 * target.c (add_deprecated_target_alias): New.
1978
a950d57c
MM
19792013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1980
1981 * common/linux-btrace.c: Include sys/ptrace, sys/types, sys/wait.h,
1982 and signal.h.
1983 (linux_supports_btrace): Add kernel and
1984 cpuid check.
1985 (kernel_supports_btrace): New function.
1986 (cpu_supports_btrace): New function.
1987 (intel_supports_btrace): New function.
1988
9accd112
MM
19892013-03-11 Markus Metzger <markus.t.metzger@intel.com>
1990
1991 * target.h (enum target_object): Add TARGET_OBJECT_BTRACE.
1992 * remote.c: Include btrace.h.
1993 (struct btrace_target_info): New struct.
1994 (remote_supports_btrace): New function.
1995 (send_Qbtrace): New function.
1996 (remote_enable_btrace): New function.
1997 (remote_disable_btrace): New function.
1998 (remote_teardown_btrace): New function.
1999 (remote_read_btrace): New function.
2000 (init_remote_ops): Add btrace ops.
2001 (enum <unnamed>): Add btrace packets.
2002 (struct protocol_feature remote_protocol_features[]): Add btrace packets.
2003 (_initialize_remote): Add packet configuration for branch tracing.
2004
c12a2917
MM
20052013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2006
2007 * features/btrace.dtd: New file.
2008 * Makefile.in (XMLFILES): Add btrace.dtd.
2009 * btrace.h (parse_xml_btrace): New declaration.
2010 * btrace.c: Include xml-support.h.
2011 (parse_xml_btrace): New function.
2012 (parse_xml_btrace_block): New function.
2013 (block_attributes): New struct.
2014 (btrace_attributes): New struct.
2015 (btrace_children): New struct.
2016 (btrace_elements): New struct.
2017
3e3aea48
MM
20182013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2019
2020 * amd64-linux-nat.c: Include btrace.h and linux-btrace.h.
2021 (amd64_linux_enable_btrace): New.
2022 (amd64_linux_disable_btrace): New.
2023 (amd64_linux_teardown_btrace): New.
2024 (_initialize_amd64_linux_nat): Initialize btrace ops.
2025 * i386-linux.nat.c: Include btrace.h and linux-btrace.h.
2026 (i386_linux_enable_btrace): New.
2027 (i386_linux_disable_btrace): New.
2028 (i386_linux_teardown_btrace): New.
2029 (_initialize_i386_linux_nat): Initialize btrace ops.
2030 * config/i386/linux.mh: Add linux-btrace.o.
2031 * config/i386/linux64.mh: Add linux-btrace.o.
2032
7c97f91e
MM
20332013-03-11 Markus Metzger <markus.t.metzger@intel.com>
2034
2035 * common/linux_btrace.h: New file.
2036 * common/linux_btrace.c: New file.
2037 * Makefile.in (SFILES): Add btrace.c.
2038 (HFILES_NO_SRCDIR): Add common/linux-btrace.h.
2039 (COMMON_OBS): Add btrace.o.
2040 (linux-btrace.o): New rule.
2041
1999790b 20422013-03-11 Markus Metzger <markus.t.metzger@intel.com>
02d27625
MM
2043
2044 * target.h: Include btrace.h.
2045 (struct target_ops) <to_supports_btrace, to_enable_btrace,
2046 to_disable_btrace, to_teardown_btrace, to_read_btrace>: New.
2047 * target.c (target_supports_btrace): New function.
2048 (target_enable_btrace): New function.
2049 (target_disable_btrace): New function.
2050 (target_teardown_btrace): New function.
2051 (target_read_btrace): New function.
2052 * btrace.h: New file.
2053 * btrace.c: New file.
2054 * Makefile.in: Add btrace.c.
2055 * gdbthread.h: Include btrace.h.
2056 (struct thread_info): Add btrace field.
2057 * thread.c: Include btrace.h.
2058 (clear_thread_inferior_resources): Call target_teardown_btrace.
2059 * common/btrace-common.h: New file.
2060
61a31a67
JK
20612013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2062
2063 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Call also kill
2064 for CHILD, ignore PTRACE_KILL errors, move the inner block variable
2065 kill_status to outer block.
2066
05c56a9d
JK
20672013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2068
2069 Fix entry-values if the callee called a noreturn function.
2070 * dwarf2-frame-tailcall.c (dwarf2_tailcall_sniffer_first): Use
2071 get_frame_address_in_block. Add new comment.
2072
9112db09
JK
20732013-03-10 Jan Kratochvil <jan.kratochvil@redhat.com>
2074
2075 Fix entry-values in C++ across CUs.
2076 * dwarf2loc.c (call_site_to_target_addr) <FIELD_LOC_KIND_PHYSNAME>: Use
2077 lookup_minimal_symbol. Add a comment.
2078 * dwarf2read.c
2079 (read_call_site_scope) <is_ref_attr> <die_is_declaration>: Prefer
2080 DW_AT_linkage_name.
2081
9b67fcec
YQ
20822013-03-08 Yao Qi <yao@codesourcery.com>
2083
2084 * tracepoint.c (_initialize_tracepoint): Indent the code.
2085
6221be90
PA
20862013-03-08 Pedro Alves <palves@redhat.com>
2087
2088 * findcmd.c (put_bits): Change type of parameter to 'gdb_byte *'.
2089 (parse_find_args, find_command): Change type of pattern buffer
2090 locals to 'gdb_byte *'.
2091
be9a119c 20922013-03-08 Stan Shebs <stan@codesourcery.com>
f6f899bf
HAQ
2093 Hafiz Abid Qadeer <abidh@codesourcery.com>
2094
2095 * NEWS: Mention set and show trace-buffer-size commands.
2096 Mention new packet.
2097 * target.h (struct target_ops): New method
2098 to_set_trace_buffer_size.
2099 (target_set_trace_buffer_size): New macro.
2100 * target.c (update_current_target): Set up new method.
2101 * tracepoint.c (trace_buffer_size): New global.
2102 (start_tracing): Send it to the target.
2103 (set_trace_buffer_size): New function.
2104 (_initialize_tracepoint): Add new setshow for trace-buffer-size.
2105 * remote.c (remote_set_trace_buffer_size): New function.
2106 (_initialize_remote): Use it.
2107 (QTBuffer:size) New remote command.
2108 (PACKET_QTBuffer_size): New enum.
2109 (remote_protocol_features): Add an entry for
2110 PACKET_QTBuffer_size.
2111
7da3ab79
TT
21122013-03-08 Tom Tromey <tromey@redhat.com>
2113
2114 * remote-m32r-sdi.c (m32r_load): Call skip_spaces on correct
2115 variable.
2116
0c1f71e7
PA
21172013-03-07 Pedro Alves <palves@redhat.com>
2118
2119 * target.c (target_read_stralloc, target_fileio_read_alloc):
2120 *Cast pointer to 'gdb_byte *' in target call.
2121
c8af03a2
PA
21222013-03-07 Pedro Alves <palves@redhat.com>
2123
2124 * corefile.c (read_memory_string): Cast pointer to gdb_byte* in
2125 call.
2126
529480d0
KS
21272013-03-07 Keith Seitz <keiths@redhat.com>
2128
2129 * breakpoint.c (catch_syscall_split_args): Use skip_spaces.
2130 (trace_pass_command): Likewise.
2131 * cli/cli-cmds.c: Include cli/cli-utils.h.
2132 (source_command): Use skip-spaces.
2133 (disassemble_command): Likewise.
2134 * findcmd.c: Include cli/cli-utils.h.
2135 (parse_find_args): Use skip_spaces.
2136 * go32-nat.c: Include cli/cli-utils.h.
2137 (go32_sldt): Use skip_spaces.
2138 (go32_sgdt): Likewise.
2139 (go32_sidt): Likewise.
2140 (go32_pde): Likewise.
2141 (go32_pte): Likewise.
2142 (go32_pte_for_address): Likewise.
2143 * infcmd.c: Include cli/cli-utils.h.
2144 (registers_info): Use skip_spaces.
2145 * linux-tdep.c (read_mapping): Use skip_spaces_const.
2146 (linux_info_proc): Likewise.
2147 * linux-thread-db.c: Include cli/cli-utils.h.
2148 (info_auto_load_libthread_db): Use skip_spaces_const.
2149 * m32r-rom.c: Include cli/cli-utils.h.
2150 (m32r_upload_command): Use skip_spaces.
2151 * maint.c: Include cli/cli-utils.h.
2152 (maintenance_translate_address): Use skip_spaces.
2153 * mi/mi-parse.c: Include cli/cli-utils.h.
2154 (mi_parse_argv): Use skip_spaces.
2155 (mi_parse): Likewise.
2156 * minsyms.c: Include cli/cli-utils.h.
2157 (msymbol_hash_iw): Use skip_spaces_const.
2158 * objc-lang.c: Include cli/cli-utils.h.
2159 (parse_selector): Use skip_spaces.
2160 (parse_method): Likewise.
2161 * python/python.c: Include cli/cli-utils.h.
2162 (python_interactive_command)[HAVE_PYTHON]: Use skip_spaces.
2163 (python_command)[HAVE_PYTHON]: Likewise.
2164 (python_interactive_command)[!HAVE_PYTHON]: Likewise.
2165 * remote-m32r-sdi.c: Include cli/cli-utils.h.
2166 (m32r_load): Use skip_spaces.
2167 * serial.c: Include cli/cli-utils.h.
2168 (serial_open): Use skip_spaces_const.
2169 * stack.c: Include cli/cli-utils.h.
2170 (parse_frame_specification_1): Use skip_spaces_const.
2171 * symfile.c: Include cli/cli-utils.h.
2172 (set_ext_lang_command): Use skip_spaces.
2173 * symtab.c: Include cli/cli-utils.h.
2174 (rbreak_command): Use skip_spaces.
2175 * thread.c (thread_name_command): Use skip_spaces.
2176 * tracepoint.c (validate_actionline): Use skip_spaces.
2177 (encode_actions_1): Likewise.
2178 (trace_find_range_command): Likewise.
2179 (trace_find_outside_command): Likewise.
2180 (trace_dump_actions): Likewise.
2181
ac91cd70
PA
21822013-03-07 Pedro Alves <palves@redhat.com>
2183
2184 * c-lang.c (parse_one_string): Cast argument to gdb_byte *.
2185 * expprint.c (print_subexp_standard): Likewise.
2186 * utils.c (host_char_to_target): Likewise.
2187 * valprint.c (generic_emit_char, generic_printstr): Likewise.
2188 * varobj.c (value_get_print_value): Change type of local to char*.
2189 Cast it gdb_byte * in call to language printer.
2190
2898e560
PA
21912013-03-07 Pedro Alves <palves@redhat.com>
2192
2193 * charset.c (struct wchar_iterator) <input>: Change type to 'const
2194 gdb_byte *'.
2195 (make_wchar_iterator): Remove cast to char*.
2196 (wchar_iterate): Change type of local.
2197
a09b4448
PA
21982013-03-07 Pedro Alves <palves@redhat.com>
2199
2200 * regcache.c (regcache_xmalloc_1): Call XCALLOC with signed char
2201 for 'regcache->register_status'.
2202
20ced3e4
PA
22032013-03-07 Pedro Alves <palves@redhat.com>
2204
c2d6a675 2205 * breakpoint.c (breakpoint_xfer_memory): Change type of local to
20ced3e4
PA
2206 int.
2207
fe106009
PA
22082013-03-07 Pedro Alves <palves@redhat.com>
2209
2210 * stap-probe.c (handle_stap_probe): Add cast to char*.
2211
8ac2c12b
PA
22122013-03-07 Pedro Alves <palves@redhat.com>
2213
2214 * linux-record.c (record_linux_system_call) <gdb_sys_msgrcv,
2215 RECORD_MSGRCV>: Pass a signed variable to
2216 regcache_raw_read_signed, instead of an unsigned one.
2217
99f0a309
PA
22182013-03-07 Pedro Alves <palves@redhat.com>
2219
2220 * remote-notif.c (notif_debug): Change type to int.
2221 * remote-notif.h (notif_debug): Likewise.
2222
964b8317
PA
22232013-03-07 Pedro Alves <palves@redhat.com>
2224
2225 * ser-tcp.c (tcp_retry_limit): Change type to unsigned int.
2226
f0cc8ad4
PA
22272013-03-07 Pedro Alves <palves@redhat.com>
2228
2229 * remote.c (hex2bin, bin2hex): Move extern declarations to ...
2230 * remote.h (hex2bin, bin2hex): ... here.
2231 * tracepoint.c (hex2bin, bin2hex): Remove extern declarations.
2232
77dec115
EZ
22332013-03-07 Eli Zaretskii <eliz@gnu.org>
2234
2235 * utils.c (initialize_utils): Improve doc strings of "set/show
2236 width", "set/show height", and "set/show pagination".
2237
741d92cf
KS
22382013-03-06 Keith Seitz <keiths@redhat.com>
2239
2240 * ax-gdb.c (gen_printf): Make FORMAT const.
2241 * ax-gdb.h (gen_printf): Likewise.
2242 * ax-general.c (ax_string): Make STR const.
2243 * ax.h (ax_string): Likewise.
2244
7b6c814e
DE
22452013-03-06 Doug Evans <dje@google.com>
2246
2247 * elfread.c (elf_symfile_read): Move debugging printf to more
2248 logical location.
2249
634334ab
PA
22502013-03-06 Pedro Alves <palves@redhat.com>
2251
2252 * python/py-utils.c (target_string_to_unicode): Delete function.
2253 * python/python-internal.h (target_string_to_unicode): Delete
2254 declaration.
2255
e482a1a7
PM
22562013-03-06 Pierre Muller <muller@sourceware.org>
2257
2258 * linespec.c (get_current_search_block): ARI fix, use (void)
2259 for empty parameter list.
2260
4eeaa230
DE
22612013-03-05 Doug Evans <dje@google.com>
2262
2263 * ada-lang.c (ada_lookup_symbol_list_worker): New function, contents
2264 of old ada_lookup_symbol_list. In !full_search case, don't
2265 search superblocks.
2266 (ada_lookup_symbol_list): Delete arg full_search, all callers
2267 updated. Call ada_lookup_symbol_list_worker.
2268 (ada_iterate_over_symbols): Call ada_lookup_symbol_list_worker.
2269 * ada-lang.h (ada_lookup_symbol_list): Update.
2270 * language.h (language_defn): Update comment for
2271 la_iterate_over_symbols.
2272 * linespec.c (iterate_over_file_blocks): New function.
2273 (iterate_over_all_matching_symtabs): Call it.
2274 (lookup_prefix_sym): Ditto.
2275 (get_current_search_block): New function.
2276 (get_search_block): Delete.
2277 (find_label_symbols): Call get_current_search_block.
2278 (add_matching_symbols_to_info): Call iterate_over_file_blocks.
2279 * symtab.c (iterate_over_symbols): Don't search superblocks.
2280
b69b1fb1
YQ
22812013-03-05 Yao Qi <yao@codesourcery.com>
2282
2283 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): Change
2284 parameter VAR's type from "unsigned int" to "int".
2285 * command.h (var_zuinteger_unlimited): Update its comments.
2286 (add_setshow_zuinteger_unlimited_cmd): Update the declaration.
2287
3c095f49
CV
22882013-03-05 Corinna Vinschen <vinschen@redhat.de>
2289
2290 * NEWS: Mention new target x86_64-*-cygwin*.
2291
b5b0b0af
CV
22922013-03-05 Corinna Vinschen <vinschen@redhat.de>
2293
2294 * configure.host: Add x86_64-*-cygwin* as host.
2295 * configure.tgt: Add x86_64-*-cygwin* as target.
2296 * config/i386/cygwin64.mh: New file.
2297
f6f99966
JK
22982013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2299
2300 * linespec.c (decode_line_2): Fix duplicate request off by two message.
2301
33f448b1
JK
23022013-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
2303
2304 * linespec.c (struct linespec_canonical_name): New.
2305 (struct linespec_state): Change canonical_names type to it.
2306 (add_sal_to_sals): Change variable canonical_name to canonical. Change
2307 xrealloc element size. Initialize the different CANONICAL fields.
2308 (canonical_to_fullform): New.
2309 (filter_results): Use it. Add variables canonical, fullform and
2310 cleanup.
2311 (struct decode_line_2_item, decode_line_2_compare_items): New.
2312 (decode_line_2): Remove variables iter and item_names, add variables
2313 items and items_count. Modify the code for these new variables.
2314
feb14725
CV
23152013-03-04 Corinna Vinschen <vinschen@redhat.com>
2316
2317 * coff-pe-read.c (read_pe_exported_syms): Don't return without
2318 calling do_cleanup.
2319
e83b17ba
HZ
23202013-03-04 Luis Machado <lgustavo@codesourcery.com>
2321
2322 * tracepoint.c (build_traceframe_info): Add code for byte order.
2323
a2d13a0d
KB
23242013-03-02 Kevin Buettner <kevinb@redhat.com>
2325
8dddcae8
KB
2326 * v850-tdep.c: (v850e2_register_name): Revise system register
2327 names to match current V850E2M architecture specifications.
2328 Update register number enum comments too.
a2d13a0d 2329
d79e58d8
JW
23302013-03-01 Jiong Wang <jiwang@tilera.com>
2331 Pedro Alves <palves@redhat.com>
2332
2333 * tilegx-tdep.c (tilegx_analyze_prologue): Limit bundle reading
2334 to END_ADDR.
2335 (tilegx_skip_prologue): Limit prologue analysis to section end.
2336
c4be5165
JK
23372013-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
2338
2339 * dwarf2loc.c (call_site_find_chain_1): New variable save_callee_pc,
2340 use it.
2341
e362b510
PA
23422013-03-01 Pedro Alves <palves@redhat.com>
2343
2344 Use gdb_byte for bytes from the program being debugged.
2345
2346 * arm-tdep.c (arm_store_return_value, arm_get_longjmp_target):
2347 Change type of local 'buf' to gdb_byte.
2348 * avr-tdep.c (avr_frame_prev_register, avr_push_dummy_call): Likewise.
2349 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
2350 * cris-tdep.c (cris_sigcontext_addr)
2351 (cris_sigtramp_frame_unwind_cache): Likewise.
2352 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp)
2353 (frv_linux_sigcontext_reg_addr, frv_linux_sigtramp_frame_cache):
2354 Likewise.
2355 * frv-tdep.c (frv_pseudo_register_write, frv_analyze_prologue): Likewise.
2356 * hppa-hpux-tdep.c (hppa32_hpux_find_global_pointer)
2357 (hppa32_hpux_search_dummy_call_sequence)
2358 (hppa_hpux_supply_save_state): Likewise.
2359 * hppa-linux-tdep.c (insns_match_pattern)
2360 (hppa_linux_find_global_pointer): Likewise.
2361 * hppa-tdep.c (hppa_in_function_epilogue_p)
2362 (skip_prologue_hard_way, hppa_frame_cache): Likewise.
2363 * i386-nto-tdep.c (i386nto_sigcontext_addr): Likewise.
2364 * i386fbsd-tdep.c (i386fbsd_supply_uthread)
2365 (i386fbsd_collect_uthread): Likewise.
2366 * ia64-hpux-tdep.c (ia64_hpux_push_dummy_code): Likewise.
2367 * ia64-linux-tdep.c (ia64_linux_sigcontext_register_address): Likewise.
2368 * ia64-tdep.c (examine_prologue, ia64_frame_cache)
2369 (ia64_frame_prev_register, ia64_sigtramp_frame_cache)
2370 (ia64_sigtramp_frame_prev_register, ia64_access_reg)
2371 (ia64_access_rse_reg, ia64_libunwind_frame_this_id)
2372 (ia64_libunwind_frame_prev_register)
2373 (ia64_libunwind_sigtramp_frame_this_id)
2374 (ia64_find_global_pointer_from_dynamic_section)
2375 (find_extant_func_descr, find_func_descr, ia64_dummy_id)
2376 (ia64_unwind_pc): Likewise.
2377 * iq2000-tdep.c (iq2000_store_return_value): Likewise.
2378 * m68hc11-tdep.c (m68hc11_push_dummy_call)
2379 (m68hc11_extract_return_value): Likewise.
2380 * m68klinux-nat.c (fetch_register, store_register): Likewise.
2381 * mep-tdep.c (mep_pseudo_cr32_read, mep_pseudo_cr32_write)
2382 (mep_get_insn, mep_push_dummy_call): Likewise.
2383 * mips-linux-tdep.c (mips_linux_get_longjmp_target)
2384 (mips_linux_in_dynsym_stub): Likewise.
2385 * mn10300-tdep.c (mep_pseudo_cr32_write): Likewise.
2386 * ppc-linux-nat.c (fetch_register, store_register): Likewise.
2387 * regcache.c (dump_endian_bytes): Change type of parameter 'buf'
2388 to gdb_byte.
2389 * remote-mips.c (mips_set_register): Likewise.
2390 * remote-sim.c (gdbsim_fetch_register): Likewise.
2391 * score-tdep.c (score7_fetch_inst): Change type of parameter
2392 'memblock' and local 'buf' to gdb_byte.
2393 (score7_malloc_and_get_memblock): Change return type to gdb_byte.
2394 Change type of local 'buf' to gdb_byte. Adjust.
2395 (score7_adjust_memblock_ptr): Change type of parameter 'memblock'
2396 to gdb_byte**.
2397 (score7_analyze_prologue): Change type of 'memblock' and
2398 'memblock_ptr' locals to gdb_byte*.
2399 * sh64-tdep.c (sh64_extract_return_value)
2400 (sh64_store_return_value): Change type of local 'buf' to gdb_byte.
2401 * solib-darwin.c (darwin_current_sos, darwin_read_exec_load_addr):
2402 * solib-pa64.c (pa64_solib_create_inferior_hook)
2403 (pa64_open_symbol_file_object): Remove local 'buf'.
2404 * solib-som.c (som_solib_create_inferior_hook, link_map_start)
2405 (som_open_symbol_file_object): Likewise.
2406 * solib-spu.c (spu_current_sos): Likewise.
2407 * spu-linux-nat.c (spu_fetch_inferior_registers): Likewise.
2408 * spu-multiarch.c (parse_spufs_run, spu_fetch_registers)
2409 (spu_store_registers): Likewise.
2410 * target.c (debug_print_register): Likewise.
2411 * tic6x-tdep.c (tic6x_get_longjmp_target): Likewise.
2412 * xstormy16-tdep.c (xstormy16_store_return_value)
2413 (xstormy16_push_dummy_call, xstormy16_resolve_jmp_table_entry)
2414 (xstormy16_find_jmp_table_entry): Likewise.
2415
75cc61ca 24162013-03-01 Jiong Wang <jiwang@tilera.com>
61d8bd0e
JW
2417
2418 * tilegx-tdep.c (tilegx_get_longjmp_target): New function.
2419 (tilegx_gdbarch_init): Install it.
2420
ddb08e9c
TT
24212013-02-28 Tom Tromey <tromey@redhat.com>
2422
2423 * python/py-arch.c (archpy_disassemble): Use PyInt_Check and
2424 PyLong_Check.
2425
62d7fb51
DE
24262013-02-28 Doug Evans <dje@google.com>
2427
2428 * python/py-finishbreakpoint.c (bpfinishpy_init): gcc -Wall lint.
2429 * python/python.c (gdbpy_find_pc_line): Ditto.
2430
c4a9e8b4
TT
24312013-02-28 Tom Tromey <tromey@redhat.com>
2432
2433 * contrib/excheck.py: New file.
2434 * contrib/exsummary.py: New file.
2435 * contrib/gcc-with-excheck: New file.
2436
7f6a5dde
TT
24372013-02-28 Tom Tromey <tromey@redhat.com>
2438
2439 * python/python.c (gdbpy_print_stack): Call begin_line and
2440 fprintf_filtered inside TRY_CATCH.
2441
9e974e55
TT
24422013-02-28 Tom Tromey <tromey@redhat.com>
2443
2444 * python/python.c (gdbpy_find_pc_line): Call find_pc_line
2445 inside TRY_CATCH.
2446
dd5fa3e7
TT
24472013-02-28 Tom Tromey <tromey@redhat.com>
2448
2449 * py-finishbreakpoint.c (bpfinishpy_init): Reorganize to call
2450 frame_object_to_frame_info inside TRY_CATCH.
2451
86a3263f
TT
24522013-02-28 Tom Tromey <tromey@redhat.com>
2453
2454 * py-block.c (gdbpy_block_for_pc): Call block_for_pc inside
2455 TRY_CATCH.
2456
81b52a3a
TT
24572013-02-28 Tom Tromey <tromey@redhat.com>
2458
2459 * objfiles.h (ALL_PSPACE_OBJFILES): Remove trailing backlash.
2460
d50a0ce2
CV
24612013-02-27 Corinna Vinschen <vinschen@redhat.com>
2462
2463 * windows-nat.c: Throughout, fix format strings and casts of
2464 printf-like functions to avoid type related warnings on all
2465 platforms.
2466 (handle_output_debug_string): Fetch context information address
2467 from debug string using string_to_core_addr.
2468
e1f58301
JW
24692013-02-27 Jiong Wang <jiwang@tilera.com>
2470
2471 * regformats/reg-tilegx.dat (name): Change abi name to "tilegx".
2472 * regformats/reg-tilegx32.dat: New.
2473
4fcd89fc
JW
24742013-02-27 Jiong Wang <jiwang@tilera.com>
2475
2476 * configure.tgt (tilegx-*-linux*): Enable gdbserver.
2477
748d24e6
JW
24782013-02-27 Jiong Wang <jiwang@tilera.com>
2479
2480 * configure.tgt (tilegx-*-linux*): Replace whitespace with tab.
2481
6c8e944d
YQ
24822013-02-27 Yao Qi <yao@codesourcery.com>
2483 Pedro Alves <palves@redhat.com>
2484
2485 * tracepoint.c (tfile_trace_find): For tfind
2486 pc/tp/range/outside, look for the next trace frame instead of
2487 always starting from frame 0.
2488
acd7db30
AG
24892013-02-26 Anthony Green <green@moxielogic.com>
2490
2491 * configure.tgt: Add support for moxie-*-rtems* target.
2492
025e6dce
PA
24932013-02-25 Pedro Alves <palves@redhat.com>
2494
2495 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx): Change
2496 warning text.
2497
ca9c94ef
MR
24982013-02-24 Maciej W. Rozycki <macro@codesourcery.com>
2499
2500 * mips-tdep.c (mips32_scan_prologue): Reset frame_offset to zero
2501 if $fp is used as the virtual frame pointer.
2502
24c274a1
AM
25032013-02-23 Alan Modra <amodra@gmail.com>
2504
2505 * elfread.c (elf_symtab_read): Do not use udata.p here to find
2506 symbol size.
2507 * ppc64-tdep.c (ppc64_elf_make_msymbol_special): New function.
2508 * ppc64-tdep.h (ppc64_elf_make_msymbol_special): Declare.
2509 * ppc-linux-tdep.c (ppc_linux_init_abi): Set up to use the above.
2510 * ppcfbsd-tdep.c (ppcfbsd_init_abi): Likewise.
2511
bfada189
JK
25122013-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
2513
2514 Code cleanup.
2515 * elfread.c (build_id_bfd_get): Make the return type const.
2516 (build_id_verify): Make the check parameter const.
2517 (build_id_to_debug_filename): Make the build_id parameter and variable
2518 data const.
2519 (find_separate_debug_file_by_buildid): Make the variable build_id const.
2520
c0355132
AM
25212013-02-21 Alan Modra <amodra@gmail.com>
2522
2523 * elfread.c (build_id_bfd_get): Adjust for elf_tdata changes.
2524
9f44fbc0
SCR
25252013-02-20 Siva Chandra Reddy <sivachandra@google.com>
2526
2527 Add a new method 'disassemble' to gdb.Architecture class.
2528 * python/py-arch.c (archpy_disassmble): Implementation of the
2529 new method gdb.Architecture.disassemble.
2530 (arch_object_methods): Add entry for the new method.
2531
b74ea3eb
JW
25322013-02-20 Jiong Wang <jiwang@tilera.com>
2533
2534 * MAINTAINERS (Write After Approval): Add myself to the list.
2535
61a672f1
PA
25362013-02-19 Pedro Alves <palves@redhat.com>
2537
2538 Garbage collect 'struct monitor_ops'::load_routine.
2539
2540 * monitor.h (struct monitor_ops) <load_routine>: Remove field.
2541 * monitor.c (monitor_load): No longer call
2542 current_monitor->load_routine.
2543 * dbug-rom.c (init_dbug_cmds): Don't set 'load_routine'.
2544 * m32r-rom.c (init_m32r_cmds): Don't set 'load_routine'.
2545 * ppcbug-rom.c (init_ppc_cmds): Don't set 'load_routine'.
2546
40e397df
PA
25472013-02-19 Pedro Alves <palves@redhat.com>
2548
2549 PR gdb/15161
2550
2551 Harmonize with generic_load.
2552
2553 * monitor.c: Include "readline/readline.h".
2554 (monitor_load): Rename parameter 'file' to 'args'. Use build_argv
2555 instead of sscanf. Use CORE_ADDR/strtoulst instead of unsigned
2556 long/strtol for the 'load_offset' local. Error out if no argument
2557 is given or if too many arguments are given. Tilde expand the
2558 passed in file name.
2559
f698ca8e
KT
25602013-02-19 Kai Tietz <ktietz@redhat.com>
2561
2562 PR gdb/15161
2563 * symfile.c (load_section_data): Change type of load_offset
2564 to CORE_ADDR.
2565 (generic_load): User strtoulst instead of strtoul for conversion
2566 of load_offset.
2567
3361b059
WL
25682013-02-19 Jiong Wang <jiwang@tilera.com>
2569
2570 * tilegx-tdep.c (tilegx_analyze_prologue): add check for
2571 for return address, "lr" register, saved on stack.
2572 * tilegx-tdep.c (tilegx_frame_cache): update "PC" reg
2573 after we invoke tilegx_analyze_prologue.
2574
3e9d5130
WL
25752013-02-19 Jiong Wang <jiwang@tilera.com>
2576
bb1bcd86
WL
2577 * tilegx-tdep.c (itilegx_gdbarch_init): char type should be signed.
2578
3361b059 25792013-02-19 Jiong Wang <jiwang@tilera.com>
bb1bcd86 2580
b74ea3eb 2581 * tilegx-tdep.c (tilegx_skip_prologue): Use skip_prologue_using_sal.
3e9d5130 2582
4aaf2503
WL
25832013-02-19 Jiong Wang <jiwang@tilera.com>
2584
b74ea3eb 2585 * tilegx-tdep.c (INT_SWINT_1_SIGRETURN): New macro.
4aaf2503
WL
2586 (tilegx_write_pc): New function.
2587 (tilegx_cannot_reference_register): Return zero if REGNO
2588 is TILEGX_FAULTNUM_REGNUM.
2589 (tilegx_gdbarch_init): Add call to set_gdbarch_write_pc.
2590 (tilegx_register_name): Add handling of "faultnum" register.
2591 * tilegx-tdep.h (enum tilegx_regnum): Add TILEGX_FAULTNUM_REGNUM.
2592 * tilegx-linux-tdep.c (tilegx_linux_supply_regset): Add
2593 handling of TILEGX_FAULTNUM_REGNUM.
2594 * tilegx-linux-nat.c (regmap): Add entry for TILEGX_FAULTNUM_REGNUM.
2595
bc23a956
WL
25962013-02-19 Jiong Wang <jiwang@tilera.com>
2597
2598 * tilegx-tdep.c (tilegx_push_dummy_call): args pushed on stack
b74ea3eb 2599 should be aligned to 64bit.
bc23a956 2600
42f45f1a
KT
26012013-02-19 Kai Tietz <ktietz@redhat.com>
2602
2603 * windows-nat.c (windows_xfer_memory): Fix debug-output
2604 for LLP64.
2605
6ce4c112
LL
26062013-02-19 Lei Liu <lei.liu2@windriver.com>
2607
2608 * mips-linux-nat.c (mips64_linux_regsets_store_registers):
2609 Don't check DSP register number if HAVE_DSP is not set.
2610
30e8ee25
AM
26112013-02-19 Alan Modra <amodra@gmail.com>
2612
2613 * elfread.c (struct build_id): Delete. Use struct elf_build_id
2614 throughout file instead.
2615 (build_id_bfd_get): Update to use new elf_tdata build_id field.
2616 Don't xmalloc return value.
2617 (build_id_verify): Similarly. Don't xfree.
2618 (build_id_to_debug_filename): Update.
2619 (find_separate_debug_file_by_buildid): Update, don't xfree.
2620
4c9ad8c2
TT
26212013-02-18 Tom Tromey <tromey@redhat.com>
2622
2623 PR gdb/15102:
2624 * dwarf2read.c (read_subrange_type): Use result of
2625 'check_typedef'.
2626
983dc440
YQ
26272013-02-16 Yuanhui Zhang <asmwarrior@gmail.com>
2628
2629 * frame.c: Remove one extra white space after #include
2630 directive.
2631
7fb2b84a
JK
26322013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2633
2634 * contrib/cc-with-tweaks.sh: Extend the comment for -p option.
2635
edceb2a9
JK
26362013-02-15 Jan Kratochvil <jan.kratochvil@redhat.com>
2637
2638 * gdb-gdb.gdb.in: Wrap set complaints, b internal_error, b info_command
2639 and dir commands into an if block.
2640
e81b7af8
TT
26412013-02-15 Sanimir Agovic <sanimir.agovic@intel.com>
2642
2643 * python/py-breakpoint (struct pybp_code): Use int instead of
2644 enum type_code.
2645
f5911ea1
HAQ
26462013-02-15 Pedro Alves <pedro@codesourcery.com>
2647 Hafiz Abid Qadeer <abidh@codesourcery.com>
2648
2649 * NEWS: Mention new field "trace-file".
2650 * tracepoint.c (trace_status_mi): Output "trace-file" field.
2651 (tfile_open): Record the trace file's filename in the trace
2652 status.
2653 (tfile_files_info): Mention the name of the trace file.
2654 Check the "filename" field explicitely.
2655 (trace_status_command): Explicitely check "filename" field.
2656 (trace_find_command): Ditto.
2657 (trace_find_pc_command): Ditto.
2658 (trace_find_tracepoint_command): Ditto.
2659 (trace_find_line_command): Ditto.
2660 (trace_find_range_command): Ditto.
2661 (trace_find_outside_command): Ditto.
2662 * tracepoint.h (struct trace_status) <from_file>: Rename it
2663 to "filename" and make it hold the trace file's filename
2664 instead of a boolean.
2665 * remote.c (remote_get_trace_status): Initialize "filename"
2666 field with NULL instead of 0.
2667
796cb314
YQ
26682013-02-15 Yao Qi <yao@codesourcery.com>
2669
2670 * remote.c: Fix a typo.
2671
42e79b1d
PM
26722013-02-14 Pierre Muller <muller@sourceware.org>
2673
2674 * contrib/ari/gdb_ari.sh (GNU/Linux rule): Remove.
2675
baea0dae
PA
26762013-02-14 Pedro Alves <palves@redhat.com>
2677
2678 * utils.c (savestring): Don't #undef it. Move function to
2679 common/common-utils.c.
2680 * common/common-utils.c: Include gdb_string.h.
2681 (savestring): Move here from utils.c.
2682 * common/common-utils.h (savestring): Declare.
2683
57c3b6ed
PA
26842013-02-14 Pedro Alves <palves@redhat.com>
2685
2686 * utils.c (savestring): Rename parameter 'size' to 'len'.
2687
d6c44983
YZ
26882013-02-14 Pedro Alves <palves@redhat.com>
2689 Yufeng Zhang <yufeng.zhang@arm.com>
2690
2691 * aarch64-linux-nat.c (aarch64_init_debug_reg_state): Delete.
2692 (aarch64_inferior_data, struct aarch64_inferior_data):
2693 Delete.
2694 (struct aarch64_process_info): New.
2695 (aarch64_process_list): New global.
2696 (aarch64_find_process_pid, aarch64_add_process)
2697 (aarch64_process_info_get): New functions.
2698 (aarch64_inferior_data_get): Delete.
2699 (aarch64_process_info_get): New function.
2700 (aarch64_forget_process): New function.
2701 (aarch64_get_debug_reg_state): New parameter 'pid'. Reimplement.
2702 (aarch64_linux_prepare_to_resume): Pass the lwp's pid to
2703 aarch64_get_debug_reg_state.
2704 (aarch64_notify_debug_reg_change): Use iterate_over_lwps
2705 instead of linux_nat_iterate_watchpoint_lwps.
2706 (aarch64_linux_new_fork): New function.
2707 (aarch64_linux_child_post_startup_inferior): Use
2708 aarch64_forget_process instead of aarch64_init_debug_reg_state.
2709 (aarch64_handle_breakpoint, aarch64_linux_insert_hw_breakpoint)
2710 (aarch64_linux_remove_hw_breakpoint)
2711 (aarch64_handle_aligned_watchpoint)
2712 (aarch64_handle_unaligned_watchpoint)
2713 (aarch64_linux_insert_watchpoint)
2714 (aarch64_linux_remove_watchpoint)
2715 (aarch64_linux_stopped_data_address): Adjust to pass the current
2716 process id to aarch64_debug_reg_state.
2717 (_initialize_aarch64_linux_nat): Install aarch64_linux_new_fork as
2718 linux_nat_new_fork hook, and aarch64_forget_process as
2719 linux_nat_forget_process hook; remove the call to
2720 register_inferior_data_with_cleanup.
2721
4819b3f8
PA
27222013-02-14 Pedro Alves <palves@redhat.com>
2723
2724 * eval.c (evaluate_subexp_for_address) <default_case_after_eval,
2725 EVAL_AVOID_SIDE_EFFECTS>: Swap and handle TYPE_CODE_REF before
2726 lval_memory.
2727
1773c82c
HAQ
27282013-02-14 Pedro Alves <pedro@codesourcery.com>
2729 Hafiz Abid Qadeer <abidh@codesourcery.com>
2730
2731 * tracepoint.h (validate_trace_state_variable_name): Declare.
2732 * tracepoint.c (validate_trace_state_variable_name): New.
2733 (trace_variable_command): Parse the trace state variable's name
2734 without using parse_expression. Do several validations.
2735 * mi/mi-main.c (mi_cmd_trace_define_variable): Don't parse the
2736 trace state variable's name with parse_expression. Validate it.
2737
53778a97
YQ
27382013-02-14 Yao Qi <yao@codesourcery.com>
2739
2740 * infcmd.c (breakpoint_proceeded): Remove it.
2741
7b3ae3a6
YQ
27422013-02-14 Yao Qi <yao@codesourcery.com>
2743
2744 * tracepoint.c (end_actions_pseudocommand): Make it static.
2745 (while_stepping_pseudocommand): Likewise.
2746 * tracepoint.h (end_actions_pseudocommand): Remove the
2747 declaration.
2748 (while_stepping_pseudocommand): Likewise.
2749
64580925
YQ
27502013-02-14 Yao Qi <yao@codesourcery.com>
2751
2752 * cli/cli-decode.c (help_cmd): Remove the declaration of
2753 "cmdlist".
2754 (help_all): Likewise.
2755
26cb8b7c
PA
27562013-02-13 Pedro Alves <palves@redhat.com>
2757
2758 * amd64-linux-nat.c (update_debug_registers_callback):
2759 Update comment.
2760 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
2761 iterate_over_lwps.
2762 (amd64_linux_prepare_to_resume): Pass the lwp's pid to
2763 i386_debug_reg_state.
2764 (amd64_linux_new_fork): New function.
2765 (_initialize_amd64_linux_nat): Install amd64_linux_new_fork as
2766 linux_nat_new_fork hook, and i386_forget_process as
2767 linux_nat_forget_process hook.
2768 * i386-linux-nat.c (update_debug_registers_callback):
2769 Update comment.
a8256ea1 2770 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
26cb8b7c
PA
2771 iterate_over_lwps.
2772 (i386_linux_prepare_to_resume): Pass the lwp's pid to
2773 i386_debug_reg_state.
2774 (i386_linux_new_fork): New function.
2775 (_initialize_i386_linux_nat): Install i386_linux_new_fork as
2776 linux_nat_new_fork hook, and i386_forget_process as
2777 linux_nat_forget_process hook.
2778 * i386-nat.c (i386_init_dregs): Delete.
2779 (i386_inferior_data, struct i386_inferior_data):
2780 Delete.
2781 (struct i386_process_info): New.
2782 (i386_process_list): New global.
2783 (i386_find_process_pid, i386_add_process, i386_process_info_get):
2784 New functions.
2785 (i386_inferior_data_get): Delete.
2786 (i386_process_info_get): New function.
2787 (i386_debug_reg_state): New parameter 'pid'. Reimplement.
2788 (i386_forget_process): New function.
2789 (i386_cleanup_dregs): Rewrite.
2790 (i386_update_inferior_debug_regs, i386_insert_watchpoint)
2791 (i386_remove_watchpoint, i386_region_ok_for_watchpoint)
2792 (i386_stopped_data_address, i386_insert_hw_breakpoint)
2793 (i386_remove_hw_breakpoint): Adjust to pass the current process id
2794 to i386_debug_reg_state.
2795 (i386_use_watchpoints): Don't register inferior data.
2796 * i386-nat.h (i386_debug_reg_state): Add new 'pid' parameter, and
2797 adjust comment.
2798 (i386_forget_process): Declare.
2799 * linux-fork.c (delete_fork): Call linux_nat_forget_process.
2800 * linux-nat.c (linux_nat_new_fork, linux_nat_forget_process_hook):
2801 New static globals.
2802 (linux_child_follow_fork): Don't call linux_nat_new_thread here.
2803 (add_initial_lwp): New, factored out from ...
2804 (add_lwp): ... this. Don't check the number of lwps before
2805 calling linux_nat_new_thread.
2806 (linux_nat_iterate_watchpoint_lwps): Delete.
2807 (linux_nat_attach): Use add_initial_lwp instead of add_lwp.
2808 (linux_handle_extended_wait): Call the linux_nat_new_fork hook on
2809 forks and vforks.
2810 (linux_nat_wait_1): Use add_initial_lwp instead of add_lwp for the
2811 initial lwp.
2812 (linux_nat_kill, linux_nat_mourn_inferior): Call
2813 linux_nat_forget_process.
2814 (linux_nat_set_new_fork, linux_nat_set_forget_process)
2815 (linux_nat_forget_process): New functions.
2816 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): Delete
2817 type.
2818 (linux_nat_iterate_watchpoint_lwps): Delete declaration.
2819 (linux_nat_new_fork_ftype, linux_nat_forget_process_ftype): New
2820 types.
2821 (linux_nat_set_new_fork, linux_nat_set_forget_process)
2822 (linux_nat_forget_process): New declarations.
2823
2824 * amd64fbsd-nat.c (super_mourn_inferior): New global.
2825 (amd64fbsd_mourn_inferior): New function.
2826 (_initialize_amd64fbsd_nat): Override to_mourn_inferior.
2827 * windows-nat.c (windows_detach): Call i386_cleanup_dregs.
2828
5befea72
MS
28292013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
2830
55015247
YQ
2831 * aarch64-linux-nat.c (aarch64_linux_get_debug_reg_capacity):
2832 Adding _().
5befea72 2833
1d3ffd6b
MS
28342013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
2835
2836 * aarch64-linux-nat.c (debug_reg_change_callback)
2837 (aarch64_linux_get_debug_reg_capacity): ARI fix: Replace %llx with
2838 %s and phex().
2839
6eb04473
MS
28402013-02-13 Marcus Shawcroft <marcus.shawcroft@arm.com>
2841
2842 * aarch64-linux-nat.c (dr_changed_t): ARI fix: Replace long long
2843 with LONGEST.
2844
a016fc87
HAQ
28452013-02-13 Pedro Alves <palves@redhat.com>
2846 Hafiz Abid Qadeer <abidh@codesourcery.com>
2847
2848 * c-lang.c (c_op_print_tab): Add entry for UNOP_PLUS.
2849
e234dfaf
TT
28502013-02-12 Tom Tromey <tromey@redhat.com>
2851
2852 PR symtab/11464:
2853 * c-exp.y (lex_one_token): Initialize other fields of yylval on
2854 NAME return.
2855 (classify_inner_name): Remove 'first_name' argument, add
2856 'context'. Remove unused variable.
2857 (yylex): Explicitly maintain the context type. Exit loop earlier
2858 if NAME result is seen.
2859
0b1afbb3
PA
28602013-02-12 Pedro Alves <palves@redhat.com>
2861
2862 * amd64-darwin-tdep.c: Add (C) after Copyright.
2863 * cli/cli-cmds.h: Ditto.
2864 * cli/cli-decode.c: Ditto.
2865 * cli/cli-decode.h: Ditto.
2866 * cli/cli-dump.c: Ditto.
2867 * cli/cli-dump.h: Ditto.
2868 * cli/cli-interp.c: Ditto.
2869 * cli/cli-logging.c: Ditto.
2870 * cli/cli-script.c: Ditto.
2871 * cli/cli-script.h: Ditto.
2872 * cli/cli-setshow.c: Ditto.
2873 * cli/cli-setshow.h: Ditto.
2874 * cli/cli-utils.c: Ditto.
2875 * cli/cli-utils.h: Ditto.
2876 * config/alpha/nm-osf3.h: Ditto.
2877 * config/djgpp/djconfig.sh: Ditto.
2878 * config/i386/nm-fbsd.h: Ditto.
2879 * config/i386/nm-i386gnu.h: Ditto.
2880 * config/nm-linux.h: Ditto.
2881 * config/nm-nto.h: Ditto.
2882 * config/rs6000/nm-rs6000.h: Ditto.
2883 * config/sparc/nm-sol2.h: Ditto.
2884 * darwin-nat-info.c: Ditto.
2885 * dfp.c: Ditto.
2886 * dfp.h: Ditto.
2887 * gdb-demangle.h: Ditto.
2888 * i386-darwin-nat.c: Ditto.
2889 * i386-darwin-tdep.c: Ditto.
2890 * linux-fork.h: Ditto.
2891 * m32c-tdep.c: Ditto.
2892 * microblaze-linux-tdep.c: Ditto.
2893 * microblaze-rom.c: Ditto.
2894 * microblaze-tdep.c: Ditto.
2895 * microblaze-tdep.h: Ditto.
2896 * mips-linux-tdep.h: Ditto.
2897 * ppc-ravenscar-thread.c: Ditto.
2898 * ppc-ravenscar-thread.h: Ditto.
2899 * prologue-value.c: Ditto.
2900 * prologue-value.h: Ditto.
2901 * ravenscar-thread.c: Ditto.
2902 * ravenscar-thread.h: Ditto.
2903 * sparc-ravenscar-thread.c: Ditto.
2904 * sparc-ravenscar-thread.h: Ditto.
2905 * tilegx-linux-tdep.c: Ditto.
2906 * unwind_stop_reasons.def: Ditto.
2907 * windows-nat.h: Ditto.
2908 * xtensa-linux-tdep.c: Ditto.
2909 * xtensa-xtregs.c: Ditto.
2910 * regformats/regdat.sh: Ditto.
2911 * regformats/regdef.h: Ditto.
2912
6c01dd94
PA
29132013-02-12 Pedro Alves <palves@redhat.com>
2914
2915 * break-catch-sig.c: Update copyright years.
2916
b65a2bd9
SCR
29172013-02-11 Siva Chandra Reddy <sivachandra@google.com>
2918
2919 Add support for a destructor for ui_out data and use it to
2920 provide a ui_out destructor.
2921 * ui-out.h: Declare the new ui_out destructor.
2922 (ui_out_impl): Add a field for data destructor in ui_out_impl.
2923 * ui-out.c (default_data_destroy): Add a default data destructor
2924 which does nothing.
2925 (default_ui_out_impl): Set the new data_destroy field to
2926 default_data_destroy
2927 (uo_data_destroy): Local function which invokes the data
2928 destructor if present.
2929 (clear_table): Local function which clears the table data of a
2930 ui_out object.
2931 (ui_out_destroy): Public function which frees a ui_out object.
2932 (ui_out_table_end): Use the new clear_table function.
2933 * cli-out.c (cli_ui_out_impl): Set the new data_destroy field to
2934 NULL.
2935 * mi/mi-out.c (mi_ui_out_impl): Set the new data_destroy field
2936 to NULL.
2937
c2792f5a
DE
29382013-02-11 Doug Evans <dje@google.com>
2939
2940 * printcmd.c (printf_c_string,printf_wide_c_string): New functions.
2941 (printf_decfloat): New function. Broken out from ui_printf.
2942 Remove unnecessary code to shift the entire format string down.
2943 (printf_pointer): New function.
2944 (ui_printf): Code to print C strings, wide C strings, decfloats,
2945 and pointers moved to separate functions.
2946
d9e98382
SDJ
29472013-02-11 Sergio Durigan Junior <sergiodj@redhat.com>
2948
2949 * valops.c (value_assign): Handling bitfield offset in
2950 `lval_internalvar_component' case.
2951
4ff3ce77
DE
29522013-02-08 Doug Evans <dje@google.com>
2953
2954 * common/format.c (parse_format_string): Fix whitespace.
2955
901900c4
MGD
29562013-02-08 Matthew Gretton-Dann <matthew.gretton-dann@linaro.org>
2957
2958 * stack.c (return_command): Work around uninitialized variable
2959 warning.
2960
b5dbc8d4
YZ
29612013-02-08 Yufeng Zhang <yufeng.zhang@arm.com>
2962
2963 * aarch64-linux-tdep.c (AARCH64_LINUX_SIZEOF_GREGSET): Change the
2964 number of the registers from 36 to 34.
2965
51d66578
MS
29662013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
2967
2968 * NEWS: Mention new AArch64 native and target support.
2969
176b1c95
MS
29702013-02-08 Marcus Shawcroft <marcus.shawcroft@arm.com>
2971
2972 * MAINTAINERS (Write After Approval): Add myself.
2973
9d19df75
MS
29742013-02-08 Jim MacArthur <jim.macarthur@arm.com>
2975 Marcus Shawcroft <marcus.shawcroft@arm.com>
2976 Nigel Stephens <nigel.stephens@arm.com>
2977 Yufeng Zhang <yufeng.zhang@arm.com>
2978
2979 * aarch64-linux-nat.c: New file.
2980 * config/aarch64/linux.mh: New file.
2981 * configure.host: Add AArch64.
2982 * Makefile.in (ALLDEPFILES): Add aarch64-linux-nat.c.
2983
7e1e0340
DE
29842013-02-07 Doug Evans <dje@google.com>
2985
2986 * cli/cli-cmds.c (_initialize_cli_cmds): Clarify argument to
2987 disassemble command.
2988
45e25a36
MS
29892013-02-07 Marcus Shawcroft <marcus.shawcroft@arm.com>
2990
2991 * aarch64-linux-tdep.c (aarch64_linux_init_abi): Call
2992 set_gdbarch_fetch_tls_load_module_address.
2993
bbfdfe1c
DM
29942013-02-06 David S. Miller <davem@davemloft.net>
2995
2996 * sparc-tdep.c (sparc32_return_value): Handle writing return value when
2997 using RETURN_VALUE_ABI_PRESERVES_ADDRESS.
2998 * value.c (struct_return_convention): New function.
2999 (using_struct_return): Implement in terms of struct_return_convention.
3000 * value.h (struct_return_convention): Declare.
3001 * stack.c (return_command): Allow successful overriding of the return
3002 value when RETURN_VALUE_ABI_PRESERVES_ADDRESS.
3003
bc9abe4a
TT
30042013-02-06 Tom Tromey <tromey@redhat.com>
3005
3006 * python/py-type.c (typy_strip_typedefs): Don't call check_typedef
3007 outside of TRY_CATCH.
3008
134a2066
YQ
30092013-02-06 Yao Qi <yao@codesourcery.com>
3010
3011 * mi/mi-interp.c: Include "tracepoint.h".
3012 (mi_tsv_modified): Declare.
3013 (mi_tsv_created, mi_tsv_deleted): Update declaration.
3014 (mi_interpreter_init): Call observer_attach_tsv_modified.
3015 (mi_tsv_modified): New.
3016 (mi_tsv_created, mi_tsv_deleted): Update.
3017 * tracepoint.c (trace_variable_command): Call
3018 observer_notify_tsv_modified if the initial value of tsv is
3019 changed.
3020 (delete_trace_state_variable): Call
3021 observer_notify_tsv_deleted earlier.
3022 (trace_variable_command): Caller update.
3023 (create_tsv_from_upload): Likewise.
3024 * observer.sh: Declare "struct trace_state_variable".
3025
3026 * NEWS: Mention the new MI notification "=tsv-modified".
3027
59be2b6a
DE
30282013-02-05 Doug Evans <dje@google.com>
3029
3030 * completer.c (location_completer): Fix typo in comment.
3031
d30113d4
JK
30322013-02-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3033
3034 * breakpoint.c (add_location_to_breakpoint): Insert the location with
3035 ADDRESS sorted.
3036
14ac654f
MS
30372013-02-05 Marcus Shawcroft <marcus.shawcroft@arm.com>
3038
3039 * aarch64-tdep.c (aarch64_analyze_prologue): ARI fix:
3040 Refactor if statement to avoid trailing || operator.
3041
543bf33d
AT
30422013-02-05 Andreas Tobler <andreast@fgznet.ch>
3043
3044 * NEWS: Add PowerPC FreeBSD as a new native configuration.
3045
dc18f110
AT
30462013-02-04 Andreas Tobler <andreast@fgznet.ch>
3047
3048 * Makefile.in (ALL_TARGET_OBS): Add powerpc FreeBSD files.
3049 * configure.host: Add powerpc*-*-freebsd* target.
3050 * configure.tgt: Add target info for powerpc*-*-freebsd*.
3051 * ppcfbsd-nat.c, ppcfbsd-tdep.h, ppcfbsd-tdep.c: New files.
3052 * config/powerpc/fbsd.mh: New file.
3053
b3ac9c77
SDJ
30542013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
3055 Denys Vlasenko <dvlasenk@redhat.com>
3056 Pedro Alves <palves@redhat.com>
3057
3058 * gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
3059 (struct elf_internal_linux_prpsinfo): Forward declare.
3060 * gdbarch.h, gdbarch.c: Regenerate.
3061 * linux-tdep.c: Include `cli/cli-utils.h'.
3062 (linux_fill_prpsinfo): New function.
3063 (linux_make_corefile_notes): Use linux_fill_prpsinfo. If there's
3064 an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
3065 elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
3066 depending on gdbarch pointer bitness.
3067 * ppc-linux-tdep.c: Include elf-bfd.h.
3068 (ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
3069 on 32-bit.
3070
176eb98c
MS
30712013-02-04 Jim MacArthur <jim.macarthur@arm.com>
3072 Marcus Shawcroft <marcus.shawcroft@arm.com>
3073 Nigel Stephens <nigel.stephens@arm.com>
3074 Yufeng Zhang <yufeng.zhang@arm.com>
3075
3076 * configure.tgt (aarch64*-*-linux*): Set build_gdbserver=yes.
3077
cf0dbd6f
MS
30782013-02-04 Jim MacArthur <jim.macarthur@arm.com>
3079 Marcus Shawcroft <marcus.shawcroft@arm.com>
3080 Nigel Stephens <nigel.stephens@arm.com>
3081 Yufeng Zhang <yufeng.zhang@arm.com>
3082
3083 * aarch64-newlib-tdep.c: New file.
3084 * configure.tgt: Add aarch64-newlib-tdep.o to gdb_target_obs of
3085 aarch64*-*-elf.
3086 * defs.h (enum gdb_osabi): Add GDB_OSABI_NEWLIB.
3087 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-newlib-tdep.o.
3088 (ALLDEPFILES): Add aarch64-newlib-tdep.c.
3089 * osabi.c (gdb_osabi_names): Add "Newlib".
3090
1ae3db19
MS
30912013-02-04 Jim MacArthur <jim.macarthur@arm.com>
3092 Marcus Shawcroft <marcus.shawcroft@arm.com>
3093 Nigel Stephens <nigel.stephens@arm.com>
3094 Yufeng Zhang <yufeng.zhang@arm.com>
3095
3096 * Makefile.in (ALL_64_TARGET_OBS): Add aarch64-linux-tdep.o.
3097 (ALLDEPFILES): Add aarch64-linux-tdep.c.
3098 * aarch64-linux-tdep.c: New file.
3099 * aarch64-linux-tdep.h: New file.
3100 * aarch64-tdep.h (gdbarch_tdep): Define gregset and fpregset.
3101 * configure.tgt: Add aarch64-none-linux-gnu.
3102
07b287a0
MS
31032013-02-04 Jim MacArthur <jim.macarthur@arm.com>
3104 Marcus Shawcroft <marcus.shawcroft@arm.com>
3105 Nigel Stephens <nigel.stephens@arm.com>
3106 Yufeng Zhang <yufeng.zhang@arm.com>
3107
3108 * Makefile.in (ALL_64_TARGET_OBS): Add arch64-tdep.o.
3109 (HFILES_NO_SRCDIR): Add aarch64-tdep.h.
3110 (ALLDEPFILES): Add aarch64-tdep.c.
3111 * aarch64-tdep.c: New file.
3112 * aarch64-tdep.h: New file.
3113 * configure.tgt: Add AArch64.
3114 * features/Makefile (WHICH): Add aarch64 and aarch64-without-fpu.
3115 (aarch64-expedite): New definition.
3116 * features/aarch64-core.xml: New file.
3117 * features/aarch64-fpu.xml: New file.
3118 * features/aarch64-without-fpu.c: New file (generated).
3119 * features/aarch64-without-fpu.xml: New file.
3120 * features/aarch64.c: New file (generated).
3121 * features/aarch64.xml: New file.
3122 * regformats/aarch64-without-fpu.dat: New file (generated).
3123 * regformats/aarch64.dat: New file (generated).
3124
0f1b18ab
JK
31252013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3126
3127 * contrib/expect-read1.c: New file.
3128 * contrib/expect-read1.sh: New file.
3129
233d95b5
JK
31302013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3131
3132 * dwarf2read.c (file_file_name): New function with code from
3133 file_full_name.
3134 (file_full_name): Move most of the code to file_file_name.
3135 (macro_start_file): Rename variable full_name to file_name and use
3136 file_file_name for it. Add comp_dir parameter to new_macro_table.
3137 * macrocmd.c (show_pp_source_pos): New variable fullname. Replace any
3138 macro_source_file->filename access by macro_source_fullname call.
3139 * macroscope.c (_initialize_macroscope): Update the new_macro_table
3140 caller.
3141 * macrotab.c (struct macro_table): New field comp_dir.
3142 (macro_include): New variables link_fullname and source_fullname.
3143 Replace any macro_source_file->filename access by macro_source_fullname
3144 call.
3145 (macro_lookup_inclusion): Remove the partial filenames checking code.
3146 (check_for_redefinition): New variables source_fullname and
3147 found_key_fullname. Replace any macro_source_file->filename access by
3148 macro_source_fullname call.
3149 (macro_undef): New variables source_fullname and key_fullname. Replace
3150 any macro_source_file->filename access by macro_source_fullname call.
3151 (macro_lookup_definition): New variables retval and source_fullname.
3152 Replace any macro_source_file->filename access by macro_source_fullname
3153 call.
3154 (foreach_macro): New variable key_fullname. Replace any
3155 macro_source_file->filename access by macro_source_fullname call.
3156 (foreach_macro_in_scope): New variable datum_fullname. Replace any
3157 macro_source_file->filename access by macro_source_fullname call.
3158 (new_macro_table): Add parameter comp_dir. Initialize T with it.
3159 (macro_source_fullname): New function.
3160 * macrotab.h (struct macro_source_file): Extent the filename field
3161 comment.
3162 (new_macro_table): New parameter comp_dir, add a comment for it.
3163 (macro_source_fullname): new declaration.
3164
da235a7c
JK
31652013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3166
3167 * dwarf2read.c (dw2_map_symtabs_matching_filename): Move variable
3168 this_real_name to outer block. Use it also for
3169 compare_filenames_for_search.
3170 (dw2_expand_symtabs_matching): New variable this_real_name. Use it
3171 with dw2_get_real_path for file_matcher, considering also
3172 BASENAMES_MAY_DIFFER.
3173 (file_full_name): Prepend COMP_DIR even for relative lh->INCLUDE_DIRS.
3174
fbd9ab74
JK
31752013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3176
3177 * dwarf2read.c (dw2_expand_symtabs_matching): Add basenames parameter
3178 to the file_matcher parameter. Pass 0 to it.
3179 (dwarf2_create_include_psymtab): Copy also DIRNAME.
3180 * psymtab.c (partial_map_symtabs_matching_filename): Drop handling of
3181 NULL psymtab_to_fullname result.
3182 (psymtab_to_fullname): Remove variable r. Never return NULL, assemble
3183 an expected filename instead.
3184 (expand_symtabs_matching_via_partial): Add basenames parameter to the
3185 file_matcher parameter. Call also psymtab_to_fullname, after newly
3186 considering BASENAMES_MAY_DIFFER.
3187 * source.c (rewrite_source_path): Remove static.
3188 * source.h (rewrite_source_path): New declaration.
3189 * symfile.h (struct quick_symbol_functions): Add basenames parameter to
3190 the expand_symtabs_matching field. Comment it.
3191 * symtab.c (file_matches): New function comment. Add parameter
3192 basenames, implement it.
3193 (search_symbols_file_matches): Add basenames parameter. Update the
3194 file_matches caller.
3195 (search_symbols): Match FILES also against symtab_to_fullname.
3196 Optimize it for BASENAMES_MAY_DIFFER.
3197
56d397a3
JK
31982013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3199
3200 * source.c (print_source_lines_base): Print for TUI also "fullname".
3201 * tui/tui-data.c (init_content_element): Change tui_locator_element
3202 field to full_name.
3203 * tui/tui-data.h (struct tui_locator_element): Likewise.
3204 * tui/tui-disasm.c (tui_show_disassem_and_update_source): Rename
3205 tui_update_locator_filename calls to tui_update_locator_fullname.
3206 Replace symtab->filename refererence by symtab_to_fullname call.
3207 * tui/tui-out.c (tui_field_string): Check for "fullname" now.
3208 * tui/tui-source.c (tui_set_source_content): Change tui_locator_element
3209 field to full_name. Replace symtab->filename refererence by
3210 symtab_to_fullname call.
3211 (tui_show_symtab_source): Rename parameter to fullname. Change
3212 tui_locator_element field to full_name.
3213 * tui/tui-stack.c: Include source.h.
3214 (tui_set_locator_filename): Rename the declaration to ...
3215 (tui_set_locator_fullname): ... here. Rename its parameter to
3216 fullname, updates its comment.
3217 (tui_set_locator_info): Rename its parameter to fullname.
3218 (tui_set_locator_filename): Rename the definition to ...
3219 (tui_set_locator_fullname): ... here. Rename its parameter to
3220 fullname, updates its comment. Change tui_locator_element field to
3221 full_name.
3222 (tui_set_locator_info): Rename its parameter to fullname.
3223 (tui_set_locator_info): Rename callee to tui_set_locator_fullname.
3224 (tui_update_locator_filename): Rename to ...
3225 (tui_update_locator_fullname): ... here. Rename callee to
3226 tui_set_locator_fullname.
3227 (tui_show_frame_info): Replace symtab->filename refererence by
3228 symtab_to_fullname call.
3229 * tui/tui-stack.h (tui_update_locator_filename): Rename to ...
3230 (tui_update_locator_fullname): ... here.
3231 * tui/tui-winsource.c (tui_display_main): Rename the callee to
3232 tui_update_locator_fullname. Replace symtab->filename refererence by
3233 symtab_to_fullname call.
3234 * tui/tui.c (tui_show_source): Rename its parameter to fullname.
3235 Rename the callee to tui_update_locator_fullname.
3236 * tui/tui.h (tui_show_source): Rename its parameter to fullname.
3237
05cba821
JK
32382013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3239
3240 * ada-lang.c (user_select_syms): Replace symtab->filename refererences
3241 by symtab_to_filename_for_display calls.
3242 * breakpoint.c (print_breakpoint_location, resolve_sal_pc): Likewise.
3243 (clear_command): New variable sal_fullname, initialize it. Replace
3244 compare_filenames_for_search by filename_cmp with sal_fullname.
3245 (say_where, update_static_tracepoint): Replace symtab->filename
3246 refererences by symtab_to_filename_for_display calls.
3247 * cli/cli-cmds.c (edit_command, list_command, ambiguous_line_spec):
3248 Likewise.
3249 * dwarf2read.c: Include source.h.
3250 (fixup_go_packaging): Replace symtab->filename refererences by
3251 symtab_to_filename_for_display calls.
3252 * linespec.c (add_sal_to_sals): Rename variable filename to fullname.
3253 Replace symtab->filename refererences by symtab_to_filename_for_display
3254 calls.
3255 (create_sals_line_offset, convert_linespec_to_sals): New variable
3256 fullname, initialize it, replace symtab->filename reference by the
3257 variable.
3258 * linux-fork.c: Include source.h.
3259 (info_checkpoints_command): Replace symtab->filename refererences by
3260 symtab_to_filename_for_display calls.
3261 * macroscope.c (sal_macro_scope): Replace symtab->filename refererences
3262 by symtab_to_filename_for_display calls.
3263 * mdebugread.c: Include source.h.
3264 (psymtab_to_symtab_1): Replace symtab->filename refererences by
3265 symtab_to_filename_for_display calls.
3266 * mi/mi-cmd-file.c (mi_cmd_file_list_exec_source_file)
3267 (mi_cmd_file_list_exec_source_files): Likewise.
3268 * printcmd.c: Include source.h.
3269 (build_address_symbolic): Replace symtab->filename refererences by
3270 symtab_to_filename_for_display calls.
3271 * psymtab.c (partial_map_symtabs_matching_filename)
3272 (read_psymtabs_with_fullname): Call compare_filenames_for_search also
3273 with psymtab_to_fullname.
3274 * python/py-symtab.c (stpy_str): Replace symtab->filename refererences
3275 by symtab_to_filename_for_display calls.
3276 (stpy_get_filename): New variable filename, initialize it, use instead
3277 of symtab->filename refererences.
3278 (salpy_str): Make variable filename const char *. Replace
3279 symtab->filename refererences by symtab_to_filename_for_display calls.
3280 * skip.c: Include source.h and filenames.h.
3281 (skip_file_command): Remove const from the symtab variable. Replace
3282 symtab->filename refererences by symtab_to_fullname call.
3283 (function_name_is_marked_for_skip): New variables searched_for_fullname
3284 and fullname. Use them to search also with symtab's fullname.
3285 * source.c (find_source_lines): Replace symtab->filename refererences
3286 by symtab_to_filename_for_display calls.
3287 (print_source_lines_base): New variable filename, use it instead of
3288 symtab->filename. Replace symtab->filename refererences by
3289 symtab_to_filename_for_display calls.
3290 (line_info, forward_search_command): Replace symtab->filename
3291 refererences by symtab_to_filename_for_display calls.
3292 (reverse_search_command): Replace symtab->filename refererences by
3293 symtab_to_filename_for_display calls. New variable filename for it.
3294 * stack.c (frame_info): Likewise.
3295 * symmisc.c: Include source.h.
3296 (dump_objfile, dump_symtab_1, maintenance_print_symbols)
3297 (maintenance_info_symtabs): Replace symtab->filename refererences by
3298 symtab_to_filename_for_display calls.
3299 * symtab.c (iterate_over_some_symtabs): Call
3300 compare_filenames_for_search also with symtab_to_fullname.
3301 (lookup_symbol_aux_quick, basic_lookup_transparent_type_quick): Replace
3302 symtab->filename refererences by symtab_to_filename_for_display calls.
3303 (find_line_symtab): Replace symtab->filename refererences by
3304 symtab_to_filename_for_display calls.
3305 (file_matches): Replace filename_cmp by compare_filenames_for_search.
3306 (print_symbol_info): Make the last parameter const char *. New
3307 variable s_filename. Use it in the function.
3308 (symtab_symbol_info): Make the last_filename variable const char *.
3309 Replace symtab->filename refererences by symtab_to_filename_for_display
3310 calls.
3311 (rbreak_command): New variable fullname. Use it. Replace
3312 symtab->filename refererence by symtab_to_filename_for_display call.
3313 * tracepoint.c (set_traceframe_context, trace_find_line_command)
3314 (print_one_static_tracepoint_marker): Replace symtab->filename
3315 refererences by symtab_to_filename_for_display calls.
3316 * tui/tui-source.c (tui_set_source_content): New variables filename and
3317 s_filename. Replace symtab->filename refererences by this variable.
3318 Replace other symtab->filename refererences by
3319 symtab_to_filename_for_display calls.
3320
1b56eb55
JK
33212013-02-03 Eldar Gaynetdinov <hal9000ed2k@gmail.com>
3322 Jan Kratochvil <jan.kratochvil@redhat.com>
3323
3324 Add a new variable that controls a way in which filenames are
3325 displayed.
3326 * NEWS (set filename-display): New entry.
3327 * source.c (filename_display_basename, filename_display_relative)
3328 (filename_display_absolute, filename_display_kind_names)
3329 (filename_display_string, show_filename_display_string)
3330 (symtab_to_filename_for_display): New.
3331 (_initialize_source): Added initialization of 'filename-display'
3332 variable.
3333 * source.h (symtab_to_filename_for_display): Added declaration.
3334 * stack.c (print_frame): Added new variable and calling of a new
3335 function and condition with this variable. Changed third argument of
3336 calling of a function.
3337
aa079c93
JK
33382013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3339
3340 * tui/tui-data.c (init_win_info, tui_del_window, tui_free_window):
3341 Rename field reference filename to fullname.
3342 * tui/tui-data.h (struct tui_source_info): Rename field filename to
3343 fullname. New comment for it.
3344 * tui/tui-source.c (tui_set_source_content): Rename field reference
3345 filename to fullname. Initialize field by symtab_to_fullname now.
3346 * tui/tui-winsource.c (tui_update_breakpoint_info): Rename field
3347 reference filename to fullname. Use symtab_to_fullname during
3348 comparison.
3349
652a8996
JK
33502013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3351
3352 Code cleanup.
3353 * dwarf2read.c (dw2_expand_symtabs_with_filename): Rename to ...
3354 (dw2_expand_symtabs_with_fullname): ... here. Rename parameter
3355 filename to fullname. Rename variable this_name to this_fullname.
3356 Lowercase FILENAME_CMP call.
3357 (dw2_find_symbol_file): New comment for the returned string.
3358 (dwarf2_gdb_index_functions): Rename the function to
3359 dw2_expand_symtabs_with_fullname.
3360 * psymtab.c (read_psymtabs_with_filename): Rename to ...
3361 (read_psymtabs_with_fullname): ... here. Rename parameter filename to
3362 fullname.
3363 (psym_functions): Rename the function to read_psymtabs_with_fullname.
3364 * symfile.h (struct quick_symbol_functions): Rename field
3365 expand_symtabs_with_filename to expand_symtabs_with_fullname and its
3366 parameter filename to fullname. Document returned string meaning for
3367 find_symbol_file.
3368 * symtab.c (find_line_symtab): Rename the called function to
3369 expand_symtabs_with_fullname.
3370
af529f8f
JK
33712013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3372
3373 Code cleanup.
3374 * breakpoint.c (clear_command): Remove variable is_abs, unify the
3375 call of filename_cmp with compare_filenames_for_search.
3376 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove variable
3377 is_abs, unify the call of FILENAME_CMP with
3378 compare_filenames_for_search. New gdb_asserts for real_path and name.
3379 Unify the call of compare_filenames_for_search with FILENAME_CMP.
3380 * psymtab.c (partial_map_symtabs_matching_filename): Likewise.
3381 * symfile.h (struct quick_symbol_functions): Extend the comment for
3382 map_symtabs_matching_filename.
3383 * symtab.c (compare_filenames_for_search): Remove the function comment
3384 relative path requirement. Handle absolute filenames, with a comment.
3385 (iterate_over_some_symtabs): Remove variable is_abs, unify the call of
3386 FILENAME_CMP with compare_filenames_for_search. New gdb_asserts for
3387 real_path and name. Unify the call of compare_filenames_for_search
3388 with FILENAME_CMP.
3389 (iterate_over_symtabs): New gdb_assert on REAL_PATH.
3390
2f202fde
JK
33912013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3392
3393 Code cleanup.
3394 * breakpoint.c (print_breakpoint_location): Replace bp_location field
3395 source_file references by symtab field references. Remove variables
3396 sal and fullname.
3397 (momentary_breakpoint_from_master, add_location_to_breakpoint):
3398 (clear_command, say_where): Replace bp_location field source_file
3399 references by symtab field references.
3400 (bp_location_dtor): Remove the source_file reference.
3401 (update_static_tracepoint): Replace bp_location field source_file
3402 references by symtab field references.
3403 (breakpoint_free_objfile): New function.
3404 * breakpoint.h (struct bp_location): Extend the comment for line_number.
3405 Replace the field source_file by field symtab, extend its comment.
3406 (breakpoint_free_objfile): New declaration.
3407 * objfiles.c (free_objfile): Call breakpoint_free_objfile.
3408 * tui/tui-winsource.c (tui_update_breakpoint_info): Replace bp_location
3409 field source_file references by symtab field references.
3410
f5b95b50
JK
34112013-02-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3412
3413 Replace xfullpath calls by gdb_realpath calls.
3414 * cli/cli-cmds.c (find_and_open_script): Remove xfullpath from the
3415 function comment.
3416 * dwarf2read.c (dw2_map_expand_apply): Remove parameter full_path.
3417 Remove it from the iterate_over_some_symtabs call.
3418 (dw2_map_symtabs_matching_filename): Remove parameter full_path.
3419 Remove it from the dw2_map_expand_apply calls, remove a block handling
3420 it.
3421 * psymtab.c (partial_map_expand_apply): Remove parameter full_path.
3422 Remove it from the iterate_over_some_symtabs call.
3423 (partial_map_symtabs_matching_filename): Remove parameter full_path.
3424 Remove it from the partial_map_expand_apply calls, remove a block
3425 handling it. Drop gdb_realpath call and cleanups from the real_path
3426 handling.
3427 * source.c (openp): Drop the comment part about xfullpath. Replace
3428 xfullpath calls by gdb_realpath calls.
3429 (find_and_open_source): Replace xfullpath call by gdb_realpath call.
3430 * symfile.h (struct quick_symbol_functions): Remove parameter full_path
3431 from method map_symtabs_matching_filename and its comment.
3432 * symmisc.c (maintenance_print_msymbols): Replace xfullpath call by
3433 gdb_realpath call.
3434 * symtab.c (iterate_over_some_symtabs): Remove parameter full_path,
3435 remove it also from the function comment, remove a block handling it.
3436 Drop gdb_realpath call and cleanups from the real_path handling.
3437 (iterate_over_symtabs): Drop variable full_path and its use.
3438 * symtab.h (iterate_over_some_symtabs): Remove parameter full_path.
3439 * utils.c (xfullpath): Remove.
3440 * utils.h (xfullpath): Remove.
3441
d78489bf
AT
34422013-02-01 Andreas Tobler <andreast@fgznet.ch>
3443
3444 * Makefile.in (ALL_TARGET_OBS): Add ppc64-tdep.o.
3445 (HFILES_NO_SRCDIR): Add ppc64-tdep.h.
3446 (ALLDEPFILES): Add ppc64-tdep.c.
3447 * configure.tgt (powerpc-*-linux* | powerpc64-*-linux*): Add
3448 ppc64-tdep.o to gdb_target_obs.
3449 * ppc64-tdep.h: New file.
3450 * ppc64-tdep.c: New file.
3451 (insn_d, insn_ds, insn_xfx, ppc64_desc_entry_point): Move from
3452 ppc-linux-tdep.c to here.
3453 (PPC64_STANDARD_LINKAGE1_LEN, PPC64_STANDARD_LINKAGE2_LEN)
3454 (PPC64_STANDARD_LINKAGE2_LEN): Likewise and use ARRAY_SIZE macro.
3455 (ppc64_standard_linkage1_target, ppc64_standard_linkage2_target)
3456 (ppc64_standard_linkage3_target, ppc64_skip_trampoline_code): Move
3457 from ppc-linux-tdep.c to here.
3458 (ppc64_convert_from_func_ptr_addr): Rename from
3459 ppc64_linux_convert_from_func_ptr_addr to
3460 ppc64_convert_from_func_ptr_addr and move from ppc-linux-tdep.c to
3461 here.
3462 * rs6000-tdep.c:
3463 (read_insn): Move from ppc-linux-tdep.c to here.
3464 (insns_match_pattern, insn_d_field, insn_ds_field): Move
3465 from ppc-linux-tdep.c to here and rename them with the ppc_ prefix.
3466 * ppc-linux-tdep.c: Include ppc64-tdep.h.
3467 Removed above functions.
3468 (ppc_linux_init_abi): Adjust.
3469
8db60374
AR
34702013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
3471
3472 * ada-valprint.c (ada_print_floating): Remove unused 'len'.
3473
f2e5f4ce
AR
34742013-02-01 Aleksandar Ristovski <aristovski@qnx.com>
3475
3476 * ada-lang.c (assign_aggregate): Remove unused 'is_array_aggregate'.
3477
c1f7d745
PA
34782013-02-01 Pedro Alves <palves@redhat.com>
3479
3480 * dummy-frame.c (deprecated_pc_in_call_dummy): Delete function.
3481 * frame.h (deprecated_pc_in_call_dummy): Delete declaration.
3482
8a92335b
JK
34832013-02-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3484
3485 * elfread.c (elf_symfile_read): Limit separate debug info additions to
3486 files with no separate debug info.
3487 * objfiles.c (add_separate_debug_objfile): Add gdb_assert calls.
3488 * symfile.c (read_symbols): Call find_separate_debug_file_in_section
3489 only for files with no separate debug info.
3490
8eacb197
TT
34912013-01-31 Tom Tromey <tromey@redhat.com>
3492
3493 * jit.c (jit_program_space_data): Rename from jit_inferior_data;
3494 change type.
3495 (struct jit_program_space_data): Rename from jit_inferior_data.
3496 Update comments.
3497 (get_jit_program_space_data): Rename from get_jit_inferior_data.
3498 Change return type. Attach data to program space.
3499 (jit_program_space_data_cleanup): Rename from
3500 jit_inferior_data_cleanup; change argument type.
3501 (jit_read_descriptor): Change 'inf_data' argument to 'ps_data',
3502 change type.
3503 (jit_register_code): Update.
3504 (jit_update_inferior_cache): Remove.
3505 (jit_breakpoint_deleted): Get jit data from the location's program
3506 space.
3507 (jit_breakpoint_re_set_internal): Rename 'inf_data' argument to
3508 'ps_data', change type.
3509 (jit_inferior_init, jit_breakpoint_re_set_internal)
3510 (jit_event_handler): Update.
3511 (free_objfile_data): Get data from objfile's program space.
3512 (_initialize_jit): Update.
3513
f25c0135
TT
35142013-01-31 Tom Tromey <tromey@redhat.com>
3515
3516 PR gdb/13987:
3517 * jit.c (struct jit_inferior_data) <cached_code_address,
3518 jit_breakpoint>: New fields.
3519 (jit_breakpoint_re_set_internal): Fix logging. Only create
3520 breakpoint if cached address has changed.
3521 (jit_update_inferior_cache, jit_breakpoint_deleted): New
3522 functions.
3523 (_initialize_jit): Register breakpoint deleted observer.
3524
974a734b
AR
35252013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3526
3527 * infrun.c (handle_syscall_event): Remove unused gdbarch.
3528 (save_infcall_suspend_state): Ifdef out unused inf.
3529 (restore_infcall_suspend_state): Ifdef out unused inf.
3530 * jit.c (jit_register_code): Remove unused i, b, inf_data.
3531 (jit_frame_sniffer): Remove unused inf_data.
3532
df54f8eb
AR
35332013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3534
3535 * c-exp.y (classify_inner_name): Remove unused type.
3536 * c-lang.c (c_printstr): Remove unused byte_order, i, things_printed,
3537 in_quotes, need_comma, wchar_buf, output, cleanup, iter, finished,
3538 need_escape.
3539 (c_get_string): Remove unused kind.
3540 * c-typeprint.c (c_type_print_args): Remove unused i, len, args, table2.
3541
5799c0b9
AR
35422013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3543
3544 * charset.c (intermediate_encoding): Remove unused i.
3545 * completer.c (signal_completer): Remove unused i.
3546 * continuations.c (discard_my_continuations_1): Remove unused
3547 continuation_ptr.
3548 * corelow.c (core_close): Remove unuseD name.
3549 (get_core_siginfo): Remove unused pid.
3550 * cp-namespace.c (cp_lookup_symbol_imports_or_template): Remove unused
3551 i, cps.
3552 * dwarf2loc.c (dwarf2_compile_expr_to_ax): Remove unused base_offset.
3553 (loclist_describe_location): Remove unused first.
3554 * event-top.c (command_line_handler): Remove unused got_eof.
3555 * exec.c (exec_close_1): Remove unused need_symtab_cleanup.
3556 (resize_section_table): Remove unused old_value.
3557 * gdb_bfd.c (gdb_bfd_map_section): Remove unused header.
3558 * gnu-v3-abi.c (compute_vtable_size): Remove unused addr.
3559 * i386-tdep.c (i386_process_record): Remove unused rex.
3560 * infcmd.c (get_return_value): Remove unused uiout.
3561 * jv-lang.c (type_from_class): Remove unused is_array.
3562 * jv-valprint.c (java_val_print): Remove unused i.
3563 * linux-nat.c (linux_nat_stop_lwp): Remove unused ptid.
3564 * linux-thread-db.c (thread_db_find_new_threads_2): Remove unuseD pid.
3565 * m2-typeprint.c (m2_print_type): Remove unused code.
3566 * macroexp.c (get_character_constant): Remove unused body_start.
3567 (macro_stringify): Remove unused result.
3568 * objc-lang.c (find_methods): Remove unused gdbarch.
3569 * objfiles.c (filter_overlapping_sections): Remove unused abfd1, abfd2.
3570 * regcache.c (regcache_cooked_read): Remove unused gdbarch.
3571 * stack.c (print_frame_args): Remove unused summary.
3572 * thread.c (thread_apply_command): Remove unused p.
3573 * valarith.c (value_x_unop): Remove unused mangle_ptr.
3574 * valops.c (search_struct_method): Remove unused skip.
3575 * valprint.c (generic_val_print): Remove unused byte_order.
3576 * varobj.c (varobj_update): Remove unused changed.
3577 * cli/cli-cmds.c (complete_command): Remove unused next_item.
3578 (alias_command): Remove unused c.
3579 * mi/mi-cmd-catch.c (mi_catch_load_unload): Remove unused c.
3580 * mi/mi-main.c (mi_cmd_data_write_register_values): Remove unused
3581 format.
3582 (mi_cmd_data_write_memory): Remove unused word_format.
3583 (mi_cmd_data_write_memory_bytes): Remove unused r.
3584 * python/py-gdb-readline.c (gdbpy_readline_wrapper): Remove unused
3585 p_start, p_end.
3586 * python/python.c (_initialize_python): Remove unused cmd_name, cmd.
3587 * tui/tui-disasm.c (tui_set_disassem_content): Remove unused
3588 line_width.
3589
c656bca5
AR
35902013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3591
3592 * dwarf2-frame.c (dwarf2_compile_cfa_to_ax): Remove unused num_regs.
3593 * symtab.c (iterate_over_symtabs): Remove unused s.
3594 (find_pc_sect_symtab): Remove unused pspAce.
3595 (find_pc_sect_line): Remove unused alt_symtab.
3596 (find_pcs_for_symtab_line): Remove unused ix, previous_function.
3597 (completion_list_add_name): Remove unused newsize.
3598
7078baeb
TT
35992013-01-31 Tom Tromey <tromey@redhat.com>
3600
3601 PR c++/14998:
3602 * dwarf2read.c (read_tag_ptr_to_member_type): Handle
3603 TYPE_CODE_FUNC.
3604
c2e8b827
AR
36052013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3606
3607 * target.c (target_read_string): Remove unused origlen.
3608
0e43993a
AR
36092013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3610
3611 * auto-load.c (auto_load_expand_dir_vars): Remove unused dir_vec.
3612 * ax-gdb.c (gen_printf): Remove unused expr, i, bot, fr, flen, fmt.
3613 * ax-general.c (ax_print): Remove unused is_float.
3614 * blockframe.c (block_innermost_frame): Remove unused start, end.
3615 * break-catch-sig.c (catch_signal_command): Remove unused gdbarch.
3616
765a97ab
AR
36172013-01-31 Aleksandar Ristovski <aristovski@qnx.com>
3618
3619 * solib-svr4.c (svr4_keep_data_in_core): Remove unused lmo.
3620 (svr4_read_so_list): Remove unused lmo.
3621 * solib-target.c (solib_target_relocate_section_addresses): Remove
3622 unused flags.
3623
a99dad3d
TT
36242013-01-30 Tom Tromey <tromey@redhat.com>
3625
3626 * hppa-tdep.c (read_unwind_info): Use SECT_OFF_TEXT, not "0".
3627
3bff1ecd
TT
36282013-01-30 Tom Tromey <tromey@redhat.com>
3629
3630 * symfile.c (get_file_crc): Use bfd_calc_gnu_debuglink_crc32.
3631 * utils.c (gnu_debuglink_crc32): Remove.
3632 * utils.h (gnu_debuglink_crc32): Don't declare.
3633
7d455152
TT
36342013-01-30 Tom Tromey <tromey@redhat.com>
3635
3636 * dwarf2read.c (compute_delayed_physnames, read_call_site_scope)
3637 (read_structure_type, read_enumeration_type): Remove cast.
3638
abee88f2
TT
36392013-01-30 Tom Tromey <tromey@redhat.com>
3640
3641 * dwarf2read.c (read_namespace_type): Remove cast.
3642 (read_typedef): Likewise.
3643
8d9878a4
TT
36442013-01-29 Tom Tromey <tromey@redhat.com>
3645
3646 * dwarf2read.c (free_dwo_file): Remove assert.
3647
a543d2a9
TT
36482013-01-29 Tom Tromey <tromey@redhat.com>
3649
3650 * value.c (deprecated_set_value_modifiable): Remove.
3651 * value.h (deprecated_set_value_modifiable): Remove.
3652
bed911e5
DE
36532013-01-28 Doug Evans <dje@google.com>
3654
3655 * dwarf2loc.c (dwarf2_find_location_expression): Don't add base address
3656 to addresses from dwo files.
3657
28c64fc2
SCR
36582013-01-25 Siva Chandra Reddy <sivachandra@google.com>
3659
3660 * valops.c (find_overload_match): Remove unused argument 'lax'.
3661 * value.h: Remove unused argument 'lax' from the declaration of
3662 find_overload_match.
3663 * eval.c (value_subexp_standard): Do not pass a 'lax' argument
3664 to find_overload_match.
3665 * valarith.c (value_user_defined_cpp_op): Do not pass a 'lax'
3666 argument to find_overload_match.
3667
4d4ec4e5
TT
36682013-01-25 Tom Tromey <tromey@redhat.com>
3669
3670 * dwarf2read.c (processing_has_namespace_info): Remove.
3671 (struct dwarf2_cu) <processing_has_namespace_info>: New field.
3672 (process_die, read_func_scope, dwarf2_start_symtab)
3673 (new_symbol_full): Update.
3674
195a3f6c
TT
36752013-01-25 Tom Tromey <tromey@redhat.com>
3676
3677 * cp-namespace.c (cp_set_block_scope): Remove.
3678 * cp-support.h (cp_set_block_scope): Remove.
3679 * dbxread.c: Include block.h.
3680 (cp_set_block_scope): New function.
3681 (process_one_symbol): Update.
3682 * dwarf2read.c (read_func_scope): Use block_set_scope.
3683
8ba0730a
PA
36842013-01-25 Pedro Alves <palves@redhat.com>
3685
3686 * remote.c (add_current_inferior_and_thread): Tweak comment.
3687
12aaed36
TT
36882013-01-25 Tom Tromey <tromey@redhat.com>
3689
3690 * cp-namespace.c (cp_scan_for_anonymous_namespaces): Update.
3691 (cp_add_using_directive): Add 'copy_names' argument.
3692 * cp-support.h (cp_add_using_directive): Update.
3693 (struct using_direct) <import_src, import_dest, alias,
3694 declaration>: Now const.
3695 * dwarf2read.c (read_import_statement): Use obconcat.
3696 Don't copy names passed to cp_add_using_directive.
3697
7fc75ca7
TT
36982013-01-25 Tom Tromey <tromey@redhat.com>
3699
3700 * c-exp.y (qualified_name): Use TYPE_SAFE_NAME.
3701
3405876a
PA
37022013-01-25 Pedro Alves <palves@redhat.com>
3703
3704 * remote.c (stop_reply_extract_thread): New.
3705 (add_current_inferior_and_thread): New parameter 'wait_status'.
3706 Handle it.
3707 (remote_start_remote): Pass wait status to
3708 add_current_inferior_and_thread.
3709 (extended_remote_run): Update comment.
3710 (extended_remote_create_inferior_1): Pass wait status to
3711 add_current_inferior_and_thread.
3712
8954db33
AB
37132013-01-25 Andrew Burgess <aburgess@broadcom.com>
3714 Ulrich Weigand <uweigand@de.ibm.com>
3715
3716 * valarith.c (value_vector_widen): New function for replicating a
3717 scalar into a vector.
3718 (value_binop): Use value_vector_widen to widen scalar to vector
3719 rather than casting, this better matches gcc C behaviour.
3720 * valops.c (value_casst): Update logic for casting between vector
3721 types, and for casting from scalar to vector, try to match gcc C
3722 behaviour.
3723 * value.h (value_vector_widen): Declare.
3724 * opencl-lang.c (opencl_value_cast): New opencl specific casting
3725 function, handle special case for casting scalar to vector.
3726 (opencl_relop): Use opencl_value_cast.
3727 (evaluate_subexp_opencl): Use opencl_value_cast instead of
3728 value_cast, and handle BINOP_ASSIGN, UNOP_CAST, and UNOP_CAST_TYPE
3729 in order to use opencl_value_cast.
3730
843b20dc
YQ
37312013-01-25 Yao Qi <yao@codesourcery.com>
3732
3733 * event-loop.c: Include "queue.h".
3734 (gdb_event_p): New typedef.
3735 (DECLARE_QUEUE_P): Use.
3736 (DEFINE_QUEUE_P): Use.
3737 (async_queue_event): Remove.
3738 (gdb_event_xfree): New.
3739 (initialize_event_loop): New.
3740 (process_event): Use QUEUE macros.
3741 (event_queue): Remove.
3742 (gdb_wait_for_event): Caller update.
3743 (check_async_event_handlers): Likewise.
3744 (poll_timers): Likewise.
3745 * event-loop.h (initialize_event_loop): Declare.
3746 * event-loop.c (gdb_event_xfree): New.
3747 * top.c (gdb_init): Call initialize_event_loop.
3748
20ad8856
YQ
37492013-01-25 Yao Qi <yao@codesourcery.com>
3750
3751 * event-loop.c (async_queue_event): Remove one parameter
3752 'position'. Remove code handling 'position' == TAIL.
3753 (gdb_wait_for_event): Caller update.
3754 (check_async_event_handlers): Caller update.
3755 (poll_timers): Caller update.
3756 * event-loop.h (enum queue_position): Remove.
3757
3bbbe775
MK
37582013-01-25 Maxim Kuvyrkov <maxim@kugelworks.com>
3759
3760 * MAINTAINERS: Update my email.
3761
a87d9ac4
YQ
37622013-01-25 Yao Qi <yao@codesourcery.com>
3763
3764 * main.c (print_gdb_help): Remove "--epoch" from the help
3765 message.
3766
2077afdd
TD
37672013-01-24 Ulrich Weigand  <uweigand@de.ibm.com>
3768
3769 * symtab.c (skip_prologue_using_sal): Consider a file
3770 change the same as an increased line number
3771
63da4037
TD
37722013-01-24 Tiago Stürmer Daitx  <tdaitx@linux.vnet.ibm.com>
3773
30e8ee25 3774 * MAINTAINERS (Write After Approval): Add myself to the list.
63da4037 3775
45e6c716
TT
37762013-01-24 Tom Tromey <tromey@redhat.com>
3777
3778 * ada-lang.h (ada_decode_symbol): Make return type const.
3779 * ada-lang.c (ada_decode_symbol): Likewise.
3780
b1ae631a
DE
37812013-01-23 Doug Evans <dje@google.com>
3782
3783 * linespec.c (find_linespec_symbols): Make static.
3784
55a78401
SDJ
37852013-01-23 Tiago Stürmer Daitx <tdaitx@linux.vnet.ibm.com>
3786
3787 * ppc-sysv-tdep.c (ppc64_sysv_abi_return_value): Set correct
3788 type on float conversion for complex type.
3789
bea883fd
SCR
37902013-01-23 Siva Chandra Reddy <sivachandra@google.com>
3791
3792 Add a new class gdb.Architecture which exposes GDB's
3793 internal representation of architecture via GDB Python API.
3794 * Makefile.in: Add entries corresponding to the new file
3795 python/py-arch.c.
3796 * NEWS (Python Scripting): Add entries for the new class
3797 gdb.Architecture and the new method gdb.Frame.architecture.
3798 * python/py-arch.c: Implement gdb.Architecture class.
3799 * python/py-frame.c (frapy_arch): Implement the method
3800 gdb.Frame.architecture().
3801 (frame_object_methods): Add 'architecture' to the method table.
3802 * python/python-internal.h: Add declarations of new utility
3803 functions.
3804 * python/python.c (_initialize_python): Initialize
3805 gdb.Architecture class.
3806
796a7ff8
DE
38072013-01-23 Doug Evans <dje@google.com>
3808
3809 Work around binutils/15021.
3810 * dwarf2read.c (dwarf2_per_cu_data): Split imported_symtabs and
3811 type_unit_group out of union s. All uses updated.
3812 (read_index_from_section): Watch for index version 8.
3813 (follow_die_sig): If using .gdb_index version <= 7, record the TU as
3814 an imported symtab.
3815 (write_psymtabs_to_index): Increment version number to 8.
3816
0928e93d
PA
38172013-01-22 Pedro Alves <palves@redhat.com>
3818
3819 * annotate.c (breakpoint_changed): Skip if breakpoint is not
3820 user-visible.
3821
9c97429f
PA
38222013-01-22 Pedro Alves <palves@redhat.com>
3823
3824 * annotate.c (annotate_breakpoints_changed): Rename to ...
3825 (annotate_breakpoints_invalid): ... this. Make static.
3826 (breakpoint_changed): Adjust.
3827 (_initialize_annotate): Always install the observers. Install a
3828 "breakpoint_created" observer.
3829 * annotate.h (annotate_breakpoints_changed): Delete declaration.
3830 * breakpoint.c (set_breakpoint_condition)
3831 (breakpoint_set_commands, do_map_commands_command)
3832 (init_raw_breakpoint, clear_command, set_ignore_count)
3833 (enable_breakpoint_disp): No longer call
3834 annotate_breakpoints_changed.
3835
bd00c694
PA
38362013-01-22 Pedro Alves <palves@redhat.com>
3837
3838 * annotate.c: Include "inferior.h".
3839 (frames_invalid_emitted)
3840 (breakpoints_invalid_emitted): New globals.
3841 (async_background_execution_p): New function.
3842 (annotate_breakpoints_changed, annotate_frames_invalid): Skip
3843 emitting the annotation if it has already been emitted.
3844 (annotate_display_prompt): New function.
3845 * annotate.h (annotate_display_prompt): New declaration.
3846 * event-top.c: Include annotate.h.
3847 (display_gdb_prompt): Call annotate_display_prompt.
3848
187d10dd
PA
38492013-01-22 Pedro Alves <palves@redhat.com>
3850
3851 * annotate.c (ignore_count_changed): Delete.
3852 (annotate_breakpoints_changed): Don't clear ignore_count_changed.
3853 (annotate_ignore_count_change): Delete.
3854 (annotate_stopped): Don't emit a delayed breakpoints-changed
3855 annotation.
3856 * annotate.h (annotate_ignore_count_change): Delete.
3857 * breakpoint.c (bpstat_check_breakpoint_conditions): Don't call
3858 annotate_ignore_count_change.
3859
d84cf7eb
TT
38602013-01-22 Tom Tromey <tromey@redhat.com>
3861
3862 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>: Only
3863 require_rvalue for a register location.
3864
8f1d5693
MK
38652013-01-21 Marc Khouzam <marc.khouzam@ericsson.com>
3866
3867 * breakpoint.c (print_one_breakpoint_location): Add MI
3868 field 'thread-groups' when printing a breakpoint.
3869 (output_thread_groups): New function.
3870
aa6199c6
SCR
38712013-01-21 Siva Chandra Reddy <sivachandra@google.com>
3872
3873 * python/lib/gdb/commands/explore.py
3874 (CompoundExplorer.explore_expr): Correct the name of a method
3875 being invoked.
3876 (ExploreTypeCommand.invoke): Add a missing 'return'.
3877
d2afef13
TT
38782013-01-21 Tom Tromey <tromey@redhat.com>
3879
3880 * gdb_obstack.h (obconcat): Move declaration here, from...
3881 * symfile.h (obconcat): ... here.
3882 * gdb_obstack.c: New file.
3883 (obconcat): Move from...
3884 * symfile.c (obconcat): ... here.
3885 * Makefile.in (SFILES): Add gdb_obstack.c.
3886 (COMMON_OBS): Add gdb_obstack.o.
3887
10f0c4bb
TT
38882013-01-21 Tom Tromey <tromey@redhat.com>
3889
3890 * symfile.h (obsavestring): Don't declare.
3891 * symfile.c (obsavestring): Remove.
3892 * ada-exp.y: Use obstack_copy0, not obsavestring.
3893 * ada-lang.c: Use obstack_copy0, not obsavestring.
3894 * coffread.c: Use obstack_copy0, not obsavestring.
3895 * cp-namespace.c: Use obstack_copy0, not obsavestring.
3896 * dbxread.c: Use obstack_copy0, not obsavestring.
3897 * dwarf2read.c: Use obstack_copy0, not obsavestring.
3898 * jit.c: Use obstack_copy0, not obsavestring.
3899 * mdebugread.c: Use obstack_copy0, not obsavestring.
3900 * psymtab.c: Use obstack_copy0, not obsavestring.
3901 * stabsread.c: Use obstack_copy0, not obsavestring.
3902 * xcoffread.c: Use obstack_copy0, not obsavestring.
3903
86f62fd7
TT
39042013-01-21 Tom Tromey <tromey@redhat.com>
3905
3906 * dwarf2read.c (fixup_go_packaging): Save package name
3907 on objfile obstack.
3908 * gdbtypes.c (init_type): Don't copy name.
3909
15d034d0
TT
39102013-01-21 Tom Tromey <tromey@redhat.com>
3911
3912 * dwarf2read.c (struct partial_die_info) <name, scope>: Now
3913 const.
3914 (struct attribute) <u.str>: Now const.
3915 (struct fnfieldlist) <name>: Now const.
3916 (dw2_get_file_names_reader, init_cutu_and_read_dies): Update.
3917 (partial_die_parent_scope): Make return type const.
3918 (partial_die_full_name, add_partial_symbol): Update.
3919 (dwarf2_compute_name, dwarf2_full_name, dwarf2_physname): Make
3920 'name' const.
3921 (find_file_and_directory): Make 'name' and 'comp_dir' const.
3922 (read_file_scope, read_func_scope, dwarf2_add_field)
3923 (dwarf2_add_member_fn, read_structure_type)
3924 (process_enumeration_scope, read_array_type, read_module_type)
3925 (read_base_type, read_subrange_type): Update.
3926 (dwarf2_start_symtab): Make 'name' and 'comp_dir' const.
3927 (new_symbol_full, guess_full_die_structure_name): Update.
3928 (dwarf2_canonicalize_name): Return const type. Make 'name' const.
3929 (dwarf2_name): Return const type.
3930 (dwarf_decode_macro_bytes, dwarf_decode_macros): Make 'comp_dir'
3931 const.
3932
748e18ae
TT
39332013-01-21 Tom Tromey <tromey@redhat.com>
3934
3935 * gdbtypes.c (init_type): Make 'name' const.
3936 * gdbtypes.h (init_type): Update.
3937
46212e0b
TT
39382013-01-21 Tom Tromey <tromey@redhat.com>
3939
3940 * buildsym.c (patch_subfile_names): Use set_last_source_file.
3941 (start_symtab): Make 'name' and 'dirname' const. Use
3942 set_last_source_file.
3943 (restart_symtab, reset_symtab_globals): Use set_last_source_file.
3944 (last_source_file): Define. Now static.
3945 (set_last_source_file, get_last_source_file): New functions.
3946 * buildsym.h (last_source_file): Don't declare.
3947 (start_symtab): Update.
3948 (set_last_source_file, get_last_source_file): Declare.
3949 * coffread.c (complete_symtab): Use set_last_source_file.
3950 (coff_end_symtab): Likewise.
3951 (coff_symtab_read): Use set_last_source_file, get_last_source_file.
3952 * dbxread.c (read_dbx_symtab, read_ofile_symtab): Use
3953 set_last_source_file.
3954 (process_one_symbol): Use get_last_source_file.
3955 * mdebugread.c (parse_partial_symbols): Use set_last_source_file.
3956 (psymtab_to_symtab_1): Use get_last_source_file.
3957 * xcoffread.c (process_linenos): Use get_last_source_file.
3958 (complete_symtab): Use set_last_source_file.
3959 (read_xcoff_symtab): Use set_last_source_file, get_last_source_file.
3960 (scan_xcoff_symtab): Use set_last_source_file.
3961
9d2ceabe
TT
39622013-01-21 Tom Tromey <tromey@redhat.com>
3963
3964 * symtab.c (struct demangled_name_entry) <mangled>: Now const.
3965 (symbol_set_names): Remove casts. Handle field const-ness.
3966
cfc594ee
TT
39672013-01-21 Tom Tromey <tromey@redhat.com>
3968
3969 * dwarf2read.c (new_symbol_full): Remove cast.
3970 * symtab.c (symbol_set_demangled_name): Make 'name' const.
3971 * symtab.h (symbol_set_demangled_name): Update.
3972
5484b13a
TT
39732013-01-21 Tom Tromey <tromey@redhat.com>
3974
3975 * main.c (captured_main): Call bfd_init.
3976
1605ef26
TT
39772013-01-21 Tom Tromey <tromey@redhat.com>
3978
3979 * gnu-v2-abi.c (_initialize_gnu_v2_abi): Don't set default ABI.
3980 * gnu-v3-abi.c (_initialize_gnu_v3_abi): Set default ABI.
3981 * minsyms.c (install_minimal_symbols): Don't check for _Z symbols.
3982 * NEWS: Update.
3983
3b74cdc3
JK
39842013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3985
3986 * symmisc.c (maintenance_print_msymbols): Check also ST_DEV.
3987
5a352474
JK
39882013-01-21 Jan Kratochvil <jan.kratochvil@redhat.com>
3989
3990 Fix gdb.fortran/common-block.exp crash in PIE mode.
3991 * dwarf2read.c (new_symbol_full) <DW_TAG_common_block>: Use
3992 LOC_COMMON_BLOCK.
3993 * f-valprint.c (info_common_command_for_block): Expect
3994 LOC_COMMON_BLOCK in gdb_assert.
3995 * symtab.h (struct general_symbol_info): Update comment for the
3996 common_block member.
3997 (domain_enum): Extend comment for the COMMON_BLOCK_DOMAIN member.
3998 (enum address_class): New member LOC_COMMON_BLOCK.
3999
c60797fd
DB
40002013-01-18 David Blaikie <dblaikie@gmail.com>
4001
4002 * MAINTAINERS (Write After Approval): Add "David Blaikie".
0cae7dfb 4003
46f35228
TT
40042013-01-18 Tom Tromey <tromey@redhat.com>
4005
4006 PR c++/14999:
4007 * dwarf2loc.c (dwarf2_compile_expr_to_ax) <DW_OP_fbreg>:
4008 Call require_rvalue.
4009
257e7a09
YQ
40102013-01-18 Yao Qi <yao@codesourcery.com>
4011
4012 * dbxread.c (dbx_psymtab_to_symtab): Delete the declaration.
4013 (dbx_read_symtab): New declaration.
4014 (dbx_psymtab_to_symtab): Delete.
4015 (dbx_read_symtab): Rename from dbx_psymtab_to_symtab.
4016 Rename parameter PST to SELF. Exchanged two parameters.
4017 (start_psymtab): Caller update.
4018 * dwarf2read.c (dwarf2_psymtab_to_symtab): Delete the declaration.
4019 (dwarf2_read_symtab): New declaration.
4020 (dwarf2_psymtab_to_symtab): Delete.
4021 (dwarf2_read_symtab): Rename from dwarf2_psymtab_to_symtab.
4022 Rename parameter PST to SELF. Exchanged two parameters.
4023 (create_partial_symtab): Caller update.
4024 * mdebugread.c (mdebug_psymtab_to_symtab): Delete.
4025 (mdebug_read_symtab): Rename from mdebug_psymtab_to_symtab.
4026 Rename parameter PST to SELF. Exchanged two parameters.
4027 (parse_partial_symbols, new_psymtab): Caller update.
4028 * psympriv.h (struct partial_symtab) <read_symtab>: Exchange
4029 two parameters.
4030 * psymtab.c (psymtab_to_symtab): Caller update.
4031 * xcoffread.c (xcoff_psymtab_to_symtab): Delete.
4032 (xcoff_read_symtab): Rename from xcoff_psymtab_to_symtab.
4033 Rename parameter PST to SELF. Exchanged two parameters.
4034 (xcoff_start_psymtab): Caller update.
4035
0de5618e
YQ
40362013-01-18 Yao Qi <yao@codesourcery.com>
4037
4038 * infrun.c (proceed): Rename local variable 'oneproc' to
4039 'force_step'.
4040
5c04624b
DE
40412013-01-17 Doug Evans <dje@google.com>
4042
848e3e78
DE
4043 * dwarf2read.c (dw2_build_type_unit_groups_reader): Delete.
4044 (dw2_build_type_unit_groups): Delete. All uses updated.
4045
5c04624b
DE
4046 * symtab.h (struct symbol_search): Add comment.
4047
d84fca2c
JK
40482013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4049
4050 * symtab.c (compare_filenames_for_search): New comment for
4051 HAS_DRIVE_SPEC.
4052
6108433d
TT
40532013-01-17 Tom Tromey <tromey@redhat.com>
4054
4055 * cp-abi.c (cp_abi_completer): Fix typo in assignment.
4056
c89ffd86
JK
40572013-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4058
4059 * symtab.c (iterate_over_some_symtabs): New variable cleanups,
4060 initialize it by existing make_cleanup. Call new do_cleanups.
4061
db2b2972
TT
40622013-01-17 Tom Tromey <tromey@redhat.com>
4063
4064 * cp-abi.c (cp_abi_completer): New function.
4065 (_initialize_cp_abi): Set completer for "set cp-abi".
4066
be7d37a2
TT
40672013-01-17 Tom Tromey <tromey@redhat.com>
4068
4069 * mem-break.c: Remove obsolete comment.
4070 * bfin-tdep.c (bfin_breakpoint_from_pc): Fix comment.
4071
c9fb1240
SD
40722012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
4073
4074 * jit.c (jit_reader_load_command): Interpret the jit reader name
4075 as an absolute path if it begins with a forward slash.
4076
db334a01
SD
40772012-01-17 Sanjoy Das <sanjoy@playingwithpointers.com>
4078
4079 PR gdb/14550
4080
4081 * jit.c (finalize_symtab): Ensure that only the global block has a
4082 NULL superblock.
4083
7d928dac
PA
40842013-01-17 Pedro Alves <palves@redhat.com>
4085
4086 * acinclude.m4: Include ../config/plugins.m4,
4087 ../config/largefile.m4 and ../config/lead-dot.m4. Add comments.
4088 * Makefile.in (aclocal_m4_deps): Update.
4089 * aclocal.m4: Renegerate.
4090
fb8cf7c5
DE
40912013-01-16 Doug Evans <dje@google.com>
4092
4093 * contrib/cc-with-tweaks.sh: Add references to Fission docs.
4094
ab04a2af
TT
40952013-01-16 Pedro Alves <palves@redhat.com>
4096 Tom Tromey <tromey@redhat.com>
4097
4098 PR cli/7221:
4099 * NEWS: Add "catch signal".
4100 * breakpoint.c (base_breakpoint_ops): No longer static.
4101 (bpstat_explains_signal): New function.
4102 (init_catchpoint): No longer static.
4103 (base_breakpoint_explains_signal): New function.
4104 (base_breakpoint_ops): Initialize new field.
4105 * breakpoint.h (enum bpstat_signal_value): New.
4106 (struct breakpoint_ops) <explains_signal>: New field.
4107 (bpstat_explains_signal): Remove macro, declare as function.
4108 (base_breakpoint_ops, init_catchpoint): Declare.
4109 * break-catch-sig.c: New file.
4110 * inferior.h (signal_catch_update): Declare.
4111 * infrun.c (signal_catch): New global.
4112 (handle_syscall_event): Update for change to
4113 bpstat_explains_signal.
4114 (handle_inferior_event): Likewise. Always handle random signals
4115 via bpstats.
4116 (signal_cache_update): Check signal_catch.
4117 (signal_catch_update): New function.
4118 (_initialize_infrun): Initialize signal_catch.
4119 * Makefile.in (SFILES): Add break-catch-sig.c.
4120 (COMMON_OBS): Add break-catch-sig.o.
4121
8ac3646f
TT
41222013-01-16 Tom Tromey <tromey@redhat.com>
4123
4124 * breakpoint.c (print_one_catch_fork, print_one_catch_vfork)
4125 (print_one_catch_solib, print_one_catch_syscall)
4126 (print_one_catch_exec, print_one_exception_catchpoint): Emit
4127 "catch-type".
4128
5a18e302
YQ
41292013-01-16 Yao Qi <yao@codesourcery.com>
4130
4131 * printcmd.c (current_display_number): Make it static.
4132
3f01d0d0
YQ
41332013-01-16 Yao Qi <yao@codesourcery.com>
4134
4135 * infcmd.c (step_once): Don't check '!single_inst' as it was
4136 checked before.
4137
1ed59174
JK
41382013-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4139
4140 * dwarf2read.c (psymtab_include_file_name): Extend the function comment.
4141
44478ab3
TT
41422013-01-14 Tom Tromey <tromey@redhat.com>
4143
4144 * cli/cli-decode.c (add_setshow_string_noescape_cmd): Return the
4145 set command.
4146 * command.h (add_setshow_string_noescape_cmd): Update.
4147 * corefile.c (set_gnutarget_command): Remove trailing whitespace.
4148 (complete_set_gnutarget): New function.
4149 (_initialize_core): Set the "set gnutarget" completer.
4150
06d66ee9
TT
41512013-01-14 Tom Tromey <tromey@redhat.com>
4152
4153 PR symtab/14442:
4154 * c-typeprint.c (cp_type_print_method_args): Handle 'restrict'.
4155 (c_type_print_modifier): Likewise.
4156 * dwarf2read.c (read_tag_restrict_type): New function.
4157 (read_type_die_1): Handle DW_TAG_restrict_type.
4158 * gdbtypes.c (make_restrict_type): New function.
4159 (recursive_dump_type): Handle TYPE_RESTRICT.
4160 * gdbtypes.h (enum type_flag_values): Renumber.
4161 (enum type_instance_flag_value): Add
4162 TYPE_INSTANCE_FLAG_RESTRICT.
4163 (TYPE_RESTRICT): New macro.
4164 (make_restrict_type): Declare.
4165
c9bf0622
TT
41662013-01-14 Tom Tromey <tromey@redhat.com>
4167
4168 PR symtab/14931:
4169 * psymtab.c (struct psymtab_state): New.
4170 (discard_psymtabs_upto, make_cleanup_discard_psymtabs): New
4171 functions.
4172 * psympriv.h (make_cleanup_discard_psymtabs): Declare.
4173 * dwarf2read.c (dwarf2_build_psymtabs): Catch exceptions.
4174
44d594fd
PA
41752013-01-14 Richard Sharman <richard_sharman@mitel.com>
4176 Pedro Alves <palves@redhat.com>
4177
4178 PR remote/14786
4179
4180 * remote.c (remote_threads_info): Make a copy of the reply from
4181 qfThreadInfo and use that instead of rs->buf.
4182
442e4d9c
YQ
41832013-01-14 Yao Qi <yao@codesourcery.com>
4184
4185 * dbxread.c (dbx_psymtab_to_symtab_1): Don't check PST is NULL.
4186 (dbx_psymtab_to_symtab): Likewise.
4187 * dwarf2read.c (dwarf2_psymtab_to_symtab): Likewise.
4188 * mdebugread.c (mdebug_psymtab_to_symtab): Likewise.
4189 * xcoffread.c (xcoff_psymtab_to_symtab_1): Likewise.
4190
5b12a61c
JK
41912013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4192
4193 * parse.c (parse_exp_in_context): New variable inner_chain. Call
4194 make_cleanup_restore_current_language. Call set_language. Move
4195 OLD_CHAIN and INNER_CHAIN cleanups.
4196 * utils.c (do_restore_current_language)
4197 (make_cleanup_restore_current_language): New functions.
4198 * utils.h (make_cleanup_restore_current_language): New declaration.
4199
f0a4b570
JK
42002013-01-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4201
4202 * source.c (symtab_to_fullname): Apply rewrite_source_path also for
4203 non-existing files.
4204
57b3c00c
JK
4205 * source.c (symtab_to_fullname): Do not prepend DIRNAME for
4206 non-existing files if FILENAME is already absolute.
4207
daefa854
JK
42082013-01-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4209
4210 * macrocmd.c (macro_inform_no_debuginfo): Use puts_filtered instead of
4211 fputs_filtered. Append trailing newline.
4212
ca9c6ee2
YQ
42132013-01-11 Yao Qi <yao@codesourcery.com>
4214 Stan Shebs <stan@codesourcery.com>
4215
4216 * psymtab.c (init_psymbol_list): Clarify the comment.
4217
f28045c2
YQ
42182013-01-11 Yao Qi <yao@codesourcery.com>
4219
4220 * breakpoint.c (print_one_breakpoint_location): Remove dead code.
4221 (update_dprintf_command_list): Assert that 'printf_line' is
4222 non-null. Remove condition check.
4223
da5132d3
JK
42242013-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
4225
4226 Code cleanup.
4227 * psymtab.c (psymtab_to_fullname, psymtab_to_fullname): Make the return
4228 type const char *.
4229 * tui/tui-source.c (tui_source_is_displayed): Make the parameter fname
4230 const char *.
4231 * tui/tui-source.h (tui_source_is_displayed): Likewise.
4232
843e694d
AG
42332013-01-09 Anthony Green <green@moxielogic.com>
4234
4235 * cp-abi.c (cplus_print_vtable): Don't return value from void
4236 function.
4237 * ada-lang.c (re_set_catch_assert): Ditto.
4238
da51c347
DE
42392013-01-09 Doug Evans <dje@google.com>
4240
4241 * symfile.h (quick_symbol_functions): Delete member
4242 pre_expand_symtabs_matching. All uses removed.
4243 * dwarf2read.c (dw2_lookup_symbol): Implement.
4244 (dw2_do_expand_symtabs_matching): Delete.
4245 (dw2_pre_expand_symtabs_matching): Delete.
4246 (struct dw2_symtab_iterator): New type.
4247 (dw2_symtab_iter_init, dw2_symtab_iter_next): New functions.
4248 (dw2_expand_symtabs_for_function): Rewrite.
4249 (dwarf2_gdb_index_functions): Update.
4250 * psymtab.c (pre_expand_symtabs_matching_psymtabs): Delete.
4251 (psym_functions): Update.
4252
b2259038
TT
42532013-01-09 Tom Tromey <tromey@redhat.com>
4254
4255 * config/pa/hpux.mh (NATDEPFILES): Remove somread.o.
4256 * configure: Rebuild.
4257 * configure.ac: Add somread.o to the build if BFD has SOM
4258 support.
4259 * somread.c: Include som/aout.h, not syms.h.
4260 (som_symtab_read): Use som_external_symbol_dictionary_record.
4261 Unpack records manually.
4262 (_initialize_somread): Declare.
4263
bdad4180
MF
42642012-01-08 Mike Frysinger <vapier@gentoo.org>
4265
4266 * common/linux-ptrace.c (linux_ptrace_test_ret_to_nx) [__x86_64__]:
4267 Cast return_address to 64bits.
4268
03cdf680
HZ
42692013-01-08 Hui Zhu <hui_zhu@mentor.com>
4270
4271 * printcmd.c: Remove define of function output_command.
4272 * tracepoint.c: Remove extern of function output_command.
4273 * valprint.h: (output_command): New extern.
4274
8a808554
TT
42752013-01-07 Tom Tromey <tromey@redhat.com>
4276
4277 * objc-lang.c (objc_emit_char, objc_printchar, objc_printstr):
4278 Remove.
4279 (objc_language_defn): Use c_printchar, c_printstr,
4280 c_emit_char.
4281
e93a8774
TT
42822013-01-07 Tom Tromey <tromey@redhat.com>
4283
4284 PR cli/7719:
4285 * NEWS: Update.
4286 * ada-valprint.c (printstr, print_field_values): Remove
4287 "inspect_it" code.
4288 * cp-valprint.c (cp_print_value_fields): Remove "inspect_it"
4289 code.
4290 * jv-valprint.c (java_print_value_fields): Remove "inspect_it"
4291 code.
4292 * m2-lang.c (m2_printstr): Remove "inspect_it" code.
4293 * main.c (captured_main): Remove "epoch" argument.
4294 * objc-lang.c (objc_printstr): Remove "inspect_it" code.
4295 * p-lang.c (pascal_printstr): Remove "inspect_it" code.
4296 * p-valprint.c (pascal_object_print_value_fields): Remove
4297 "inspect_it" code.
4298 * printcmd.c (print_command_1): Remove 'inspect' argument.
4299 (print_command, call_command): Update.
4300 (inspect_command): Remove.
4301 (_initialize_printcmd): Make "inspect" an alias for "print".
4302 * top.c (epoch_interface): Remove.
4303 * top.h (epoch_interface): Remove.
4304 * valprint.c (user_print_options): Update.
4305 (print_converted_chars_to_obstack): Remove "inspect_it" code.
4306 * valprint.h (struct value_print_options) <inspect_it>: Remove
4307 field.
4308
43092013-01-04 Tom Tromey <tromey@redhat.com>
4310
4311 * valprint.h (read_string): Add 'extern'.
4312
b967eb24
JB
43132013-01-07 Joel Brobecker <brobecker@adacore.com>
4314
4315 * darwin-nat.c: Fix typo in TASK_DYLD_INFO_COUNT macro test
4316 used to decide whether to define darwin_read_dyld_info or not.
4317
78a8b30e
PM
43182013-01-03 Pierre Muller <muller@sourceware.org>
4319
4320 * main.c (relocate_gdb_directory): Avoid calling stat function
4321 if DIR is empty.
4322
50da2f25
YQ
43232013-01-03 Yao Qi <yao@codesourcery.com>
4324
4325 * psymtab.c (fixup_psymbol_section): Update declaration.
4326 (fixup_psymbol_section): Remove code returning value.
4327
e7e8980f
YQ
43282013-01-03 Yao Qi <yao@codesourcery.com>
4329
4330 * symtab.h: Remove some out of date comments.
4331 (enum exception_event_kind): Move it ...
4332 * breakpoint.c: ... here.
4333
569283d4
MF
43342013-01-02 Iain Sandoe <developer@sandoe-acoustics.co.uk>
4335
9f9d9a96 4336 PR gdb/14405
569283d4
MF
4337 * darwin-nat.c (darwin_read_dyld_info): Only build if
4338 TASK_DYLD_INFO_COUNT is defined.
4339 (darwin_xfer_partial): Call darwin_read_dyld_info only if
4340 TASK_DYLD_INFO_COUNT is defined.
4341
2e36fbea
TT
43422013-01-02 Tom Tromey <tromey@redhat.com>
4343
4344 * symfile.h (struct ecoff_debug_hack): Remove.
4345 * objfiles.c: Don't include mdebugread.h.
4346
4f05add4
TT
43472013-01-02 Tom Tromey <tromey@redhat.com>
4348
4349 * config/i386/darwin.mh (NATDEPFILES): Remove machoread.o.
4350 * configure.ac: Check for Mach-O support in BFD. Update
4351 CONFIG_OBS.
4352 * configure: Rebuild.
4353
def63ff0
TT
43542013-01-02 Tom Tromey <tromey@redhat.com>
4355
4356 * acinclude.m4 (GDB_AC_CHECK_BFD): New macro.
4357 * configure.ac: Use GDB_AC_CHECK_BFD.
4358 * configure: Rebuild.
4359
60c5dd93
MK
43602013-01-01 Maxim Kuvyrkov <maxim.kuvyrkov@gmail.com>
4361
4362 * MAINTAINERS: Update my email.
4363
6e58437e
JB
43642013-01-01 Joel Brobecker <brobecker@adacore.com>
4365
4366 * cli/cli-script.h (make_cleanup_free_command_lines): Make extern.
4367
627fe805
JB
43682013-01-01 Joel Brobecker <brobecker@adacore.com>
4369
4370 * rs6000-nat.c (bss_data_overlap): New function.
4371 (vmap_symtab): Use it to adjust the .bss section's offset.
4372
28e7fd62
JB
43732013-01-01 Joel Brobecker <brobecker@adacore.com>
4374
4375 Update year range in copyright notice of all files.
4376
e93a8774 43772013-01-01, 13 Joel Brobecker <brobecker@adacore.com>
b9786c74
JB
4378
4379 * top.c (print_gdb_version): Update copyright year.
4380
72b20e9c 4381For older changes see ChangeLog-2012.
c906108c
SS
4382\f
4383Local Variables:
4384mode: change-log
4385left-margin: 8
4386fill-column: 74
4387version-control: never
57da7796 4388coding: utf-8
c906108c 4389End:
This page took 1.662208 seconds and 4 git commands to generate.