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