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