* configure, config.in: Rebuild.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
e68227b9
TT
12012-11-14 Tom Tromey <tromey@redhat.com>
2
3 * configure, config.in: Rebuild.
4 * configure.ac: Don't check for ctype.h, time.h.
5 * expprint.c: Don't use HAVE_CTYPE_H.
6
aff68abb
TT
72012-11-13 Tom Tromey <tromey@redhat.com>
8
9 * gdbarch.h, gdbarch.c: Rebuild.
10 * gdbarch.sh (set_target_gdbarch): Rename from
11 deprecated_target_gdbarch_select_hack.
12 * arch-utils.c (gdbarch_update_p): Update.
13 (set_gdbarch_from_file): Update.
14
f7c93334
PM
152012-11-05 Pierre Muller <muller@sourceware.org>
16
17 * MAINTAINERS (Responsible Maintainers/misc): Add myself
18 as responsible of contrib/ari directory.
19
2ae28aa9
YQ
202012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
21 Yao Qi <yao@codesourcery.com>
22
23 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
24 bit of EXC_RETURN.
25 (arm_m_exception_cache, arm_m_exception_this_id)
26 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
27 (arm_m_exception_unwind): New.
28 (arm_gdbarch_init): Register arm_m_exception_unwind.
29
62747a60
TT
302012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
31
32 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
33 parameter COUNT, for pattern filling of memory regions.
34 * NEWS: Mention it.
35
4cd29721
MM
362012-11-13 Markus Metzger <markus.t.metzger@intel.com>
37
38 * disasm.h (DISASSEMBLY_FILENAME): New macro.
39 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
40 to print_source_lines ().
41 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
42 flag.
43 * source.c (print_source_lines_base): Prefix source line with
44 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
45
dfaae886
MM
462012-11-13 Markus Metzger <markus.t.metzger@intel.com>
47
48 * symtab.h (print_source_lines_flags): New enum.
49 * source.c (print_source_lines_base): Change noerror to flags.
50 (print_source_lines): Change noerror to flags.
51
08850b56
PM
522012-11-13 Pierre Muller <muller@sourceware.org>
53
54 ARI fixes: Avoid sprintf function use rule.
55 * charset.c (convert_between_encodings): Use xsnprintf.
56 * cli-out.c (cli_field_int): Likewise.
57 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
58 * expprint.c (op_name_standard): Likewise.
59 * frv-tdep.c (set_variant_num_gprs): Likewise.
60 (set_variant_num_fprs): Likewise.
61 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
62 * nto-tdep.c (nto_find_and_open_solib): Likewise.
63 (nto_init_solib_absolute_prefix): Likewise.
64 * source.c (init_source_path): Likewise.
65 (print_source_lines_base): Likewise.
66 * valprint.c (print_wchar): Likewise.
67 * mi/mi-out.c (mi_field_int): Likewise.
68 windows-nat.c (windows_pid_to_exec_file): Likewise.
69 (windows_create_inferior): Likewise.
70 (_initialize_check_for_gdb_ini): Likewise.
71
ca9d61b9
JB
722012-11-12 Joel Brobecker <brobecker@adacore.com>
73
74 * frame.h (deprecated_frame_register_read): Renames
75 frame_register_read.
76 * frame.c (deprecated_frame_register_read): Renames
77 frame_register_read. Update all callers.
78 * i386-tdep.c: Update all callers of frame_register_read.
79 * infcmd.c: Likewise.
80 * jit.c: Likewise.
81 * mips-tdep.c: Likewise.
82 * mt-tdep.c: Likewise.
83 * sh64-tdep.c: Likewise.
84
b2c7d45a
JB
852012-11-12 Joel Brobecker <brobecker@adacore.com>
86
87 * frame.h (frame_register_read): Remove FIXME comment.
88 * frame.c (frame_register_read): Add suggestion explaining
89 which function to use in place of this one.
90
31594462
TT
912012-11-12 Tom Tromey <tromey@redhat.com>
92
93 * python/python.c (start_type_printers): Initialize 'result_obj'.
94
18a9fc12
TT
952012-11-12 Tom Tromey <tromey@redhat.com>
96
97 * NEWS: Update.
98 * data-directory/Makefile.in (PYTHON_FILES): Add
99 type_printers.py.
100 * python/lib/gdb/command/type_printers.py: New file.
101 * python/lib/gdb/command/types.py (TypePrinter): New class.
102 (_get_some_type_recognizers, get_type_recognizers,
103 apply_type_recognizers, register_type_printer): New
104 functions.
105 * python/py-objfile.c (objfile_object) <type_printers>: New
106 field.
107 (objfpy_dealloc): Decref new field.
108 (objfpy_new): Set new field.
109 (objfpy_get_type_printers, objfpy_set_type_printers): New
110 functions.
111 (objfile_to_objfile_object): Set new field.
112 (objfile_getset): Add "type_printers".
113 * python/py-progspace.c (pspace_object) <type_printers>: New
114 field.
115 (pspy_dealloc): Decref new field.
116 (pspy_new): Set new field.
117 (pspy_get_type_printers, pspy_set_type_printers): New functions.
118 (pspace_to_pspace_object): Set new field.
119 (pspace_getset): Add "type_printers".
120 * python/python.c (start_type_printers, apply_type_printers,
121 free_type_printers): New functions.
122 (_initialize_python): Set gdb.type_printers.
123 * python/python.h (start_type_printers, apply_type_printers,
124 free_type_printers): Declare.
125 * typeprint.c (type_print_raw_options, default_ptype_flags):
126 Update for new fields.
127 (do_free_global_table, create_global_typedef_table,
128 find_global_typedef): New functions.
129 (find_typedef_in_hash): Use find_global_typedef.
130 (whatis_exp): Use create_global_typedef_table. Change cleanup
131 handling.
132 * typeprint.h (struct type_print_options) <global_typedefs,
133 global_printers>: New fields.
134
bd69fc68
TT
1352012-11-12 Tom Tromey <tromey@redhat.com>
136
137 * c-typeprint.c (find_typedef_for_canonicalize,
138 print_name_maybe_canonical): New functions.
139 (c_print_type): Look up type name.
140 (cp_type_print_derivation_info): Add flags argument. Use
141 print_name_maybe_canonical.
142 (cp_type_print_method_args): Add wrapping.
143 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
144 (c_type_print_template_args): New function.
145 (c_type_print_base): Change wrapping. Use
146 print_name_maybe_canonical.
147 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
148 type name lookups.
149 * gdbtypes.c (types_equal): No longer static.
150 * gdbtypes.h (types_equal): Declare.
151 * typeprint.c (type_print_raw_options, default_ptype_flags):
152 Update.
153 (struct typedef_hash_table): New.
154 (hash_typedef_field, eq_typedef_field,
155 recursively_update_typedef_hash, add_template_parameters,
156 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
157 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
158 copy_typedef_hash, find_typedef_in_hash): New functions.
159 * typeprint.h (struct type_print_options) <local_typedefs>:
160 New field.
161 (recursively_update_typedef_hash, add_template_parameters,
162 create_typedef_hash, free_typedef_hash,
163 make_cleanup_free_typedef_hash, copy_typedef_hash,
164 find_typedef_in_hash): Declare.
165
2621e0fd
TT
1662012-11-12 Tom Tromey <tromey@redhat.com>
167
168 * cp-support.c (inspect_type,
169 replace_typedefs_qualified_name, replace_typedefs): Add
170 finder, data arguments. Call as needed.
171 (cp_canonicalize_string_full): New function.
172 (cp_canonicalize_string_no_typedefs): Rewrite.
173 * cp-support.h (canonicalization_ftype): New typedef.
174 (cp_canonicalize_string_full): Declare.
175
53342f27
TT
1762012-11-12 Tom Tromey <tromey@redhat.com>
177
178 * NEWS: Update.
179 * c-typeprint.c (c_type_print_base): Handle print_method and
180 print_typedefs flags.
181 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
182 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
183 options.
184 * typeprint.c (type_print_raw_options, default_ptype_flags):
185 Update for new field.s
186 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
187 (setprinttypelist, showprinttypelist, print_methods,
188 print_typedefs): New globals.
189 (set_print_type, show_print_type, set_print_type_methods,
190 show_print_type_methods, set_print_type_typedefs,
191 show_print_type_typedefs): New functions.
192 (_initialize_typeprint): Update documentation. Add "print
193 type methods" and "print type typedefs" parameters.
194 * typeprint.h (struct type_print_options) <print_methods,
195 print_typedefs>: New fields.
196
6c8702eb
TT
1972012-11-12 Tom Tromey <tromey@redhat.com>
198
199 * c-typeprint.c (cp_type_print_method_args): Add flags
200 argument. Call c_print_type, not type_print.
201 (c_type_print_base): Call c_print_type, not type_print.
202 Update.
203
79d43c61
TT
2042012-11-12 Tom Tromey <tromey@redhat.com>
205
206 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
207 to type-printing functions.
208 * ada-lang.h (ada_print_type): Add argument.
209 * ada-typeprint.c (print_array_type, print_variant_clauses,
210 print_variant_part, print_selected_record_field_types,
211 print_record_field_types, print_unchecked_union_type,
212 print_func_type, ada_print_type): Add flags argument.
213 (ada_print_typedef): Update.
214 * c-exp.y (OPERATOR conversion_type_id): Update.
215 * c-lang.h (c_print_type, c_type_print_base): Update.
216 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
217 c_type_print_modifier, c_type_print_args,
218 c_type_print_varspec_suffix, c_type_print_base): Add flags
219 argument.
220 * cp-valprint.c (cp_print_class_member): Update.
221 * dwarf2read.c (dwarf2_compute_name): Update.
222 * f-lang.h (f_print_type): Add argument.
223 * f-typeprint.c (f_print_type): Add flags argument.
224 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
225 * go-lang.h (go_print_type): Add argument.
226 * go-typeprint.c (go_print_type): Add flags argument.
227 * jv-lang.h (java_print_type): Add argument.
228 * jv-typeprint.c (java_type_print_base, java_print_type): Add
229 flags argument.
230 * language.c (unk_lang_print_type): Add flags argument.
231 * language.h (struct language_defn) <la_print_type>: Add flags
232 argument.
233 (LA_PRINT_TYPE): Likewise.
234 * m2-lang.h (m2_print_type): Add argument.
235 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
236 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
237 m2_unbounded_array, m2_record_fields): Add flags argument.
238 * p-lang.h (pascal_print_type, pascal_type_print_base,
239 pascal_type_print_varspec_prefix): Add argument.
240 * p-typeprint.c (pascal_print_type,
241 pascal_type_print_varspec_prefix, pascal_print_func_args,
242 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
243 flags argument.
244 * symmisc.c (print_symbol): Update.
245 * typeprint.c (type_print_raw_options, default_ptype_flags):
246 New globals.
247 (type_print): Update.
248 * typeprint.h (struct type_print_options): New.
249 (type_print_raw_options): Declare.
250 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
251
cf4ded82
KS
2522012-11-10 Keith Seitz <keiths@redhat.com>
253
254 * breakpoint.c (clear_command): Add cleanup for
255 sals.sals if an argument is given.
256
257 * linespec.c (parse_linespec): Do cleanups after
258 parsing a convenience variable.
259
0d63ecda
KS
2602012-11-10 Keith Seitz <keiths@redhat.com>
261
262 PR gdb/14288
263 * c-valprint.c (c_val_print): For character arrays
264 with "print null" option on, print ellipses if
265 the output is truncated and the next character is not \000.
266 * valprint.c (MAX_WCHARS): Define.
267 (WCHAR_BUFLEN): Likewise.
268 (WCHAR_BUFLEN_MAX): Likewise.
269 (struct converted_character): New structure.
270 (count_next_character): New function.
271 (print_converted_chars_to_obstack): New function.
272 (generic_printstr): Rewrite using count_next_character
273 and print_converted_chars_to_obstack.
274
9b8d6827
SC
2752012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
276
277 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
278 while executing the gdb command.
279 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
280 are called from prompt_for_continue.
281 * tui/tui-io.c (tui_redisplay_readline): Likewise.
282
e840f632
SC
2832012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
284
285 PR tui/9584
286
287 * tui/tui.c (tui_rl_command_key): Do not call execute_command
288 but insert the command to execute in readline's buffer.
289
f5656ead
TT
2902012-11-09 Tom Tromey <tromey@redhat.com>
291
292 * gdbarch.sh (target_gdbarch): Remove macro.
293 (get_target_gdbarch): Rename to target_gdbarch.
294 * gdbarch.c, gdbarch.h: Rebuild.
295 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
296 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
297 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
298 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
299 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
300 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
301 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
302 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
303 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
304 procfs.c, progspace.c, ravenscar-thread.c, record.c,
305 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
306 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
307 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
308 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
309 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
310 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
311 target-descriptions.c, target.c, target.h, tracepoint.c,
312 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
313 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
314 python/py-inferior.c, python/python.c: Update.
315
ed8a1c2d
AB
3162012-11-09 Andrew Burgess <aburgess@broadcom.com>
317
318 * source.c (print_source_lines_base): Add fullname field giving
319 full path to file in mi output.
320 * NEWS: Mention the new fullname field.
321
504b36fd
YQ
3222012-11-09 Yao Qi <yao@codesourcery.com>
323
324 * NEWS: Mention the fix to the ambiguity of 'fo' command.
325
9107fc8d
PA
3262012-11-09 Pedro Alves <palves@redhat.com>
327
328 PR gdb/14306
329
330 * infrun.c: Include target-descriptions.h.
331 (follow_exec): Fetch new target description.
332
30f8135b
YQ
3332012-11-09 Yao Qi <yao@codesourcery.com>
334
335 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
336 0x8d (lea).
337
558a9d82
YQ
3382012-11-09 Yao Qi <yao@codesourcery.com>
339
340 * breakpoint.c: Declare set_tracepoint_count.
341 (install_breakpoint): Call set_tracepoint_count if B is a
342 tracepoint.
343 (trace_command): Don't call set_tracepoint_count. Re-indent.
344 (strace_command, ftrace_command):
345 (create_tracepoint_from_upload): Likewise.
346
6ecd4729
PA
3472012-11-09 Pedro Alves <palves@redhat.com>
348
349 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
350 (get_target_gdbarch) <gdbarch.h>: New function.
351 (startup_gdbarch) <gdbarch.h>: Declare.
352 <gdbarch.c> (target_gdbarch): Delete.
353 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
354 current inferior's gdbarch.
355 <gdbarch.c> (get_target_gdbarch): New function.
356 * inferior.c: Include target-descriptions.h.
357 (free_inferior): Free target description info.
358 (add_inferior_with_spaces): Set the inferior's initial
359 architecture.
360 (clone_inferior_command): Copy the original inferior's target
361 description if it was user specified.
362 (initialize_inferiors): Add comment.
363 * inferior.h (struct target_desc_info): Forward declare.
364 (struct inferior) <gdbarch>: New field.
365 * linux-nat.c: Include target-descriptions.h.
366 (linux_child_follow_fork): Copy the parent's architecture and
367 target description to the child.
368 * target-descriptions.c: Include inferior.h.
369 (struct target_desc_info): New structure, holding the equivalents
370 of ...
371 (target_desc_fetched, current_target_desc)
372 (target_description_filename): ... these removed globals.
373 (get_tdesc_info, target_desc_info_from_user_p)
374 (copy_inferior_target_desc_info, target_desc_info_free): New.
375 (target_desc_fetched, current_target_desc)
376 (target_description_filename): Reimplemented as convenience
377 macros.
378 (tdesc_filename_cmd_string): New global.
379 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
380 tdescs filename ..." commands to the per-inferior equivalent.
381 (show_tdesc_filename_cmd): Get the value to show from the
382 per-inferior description filename.
383 (_initilize_target_descriptions): Change the "set/show tdesc
384 filename" commands' variable.
385 * target-descriptions.h (struct target_desc, struct target_desc_info)
386 (struct inferior): Forward declare.
387 (target_find_description, target_clear_description)
388 (target_current_description): Adjust comments.
389 (copy_inferior_target_desc_info, target_desc_info_free)
390 (target_desc_info_from_user_p). Declare.
391
4ca4d161
SC
3922012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
393
394 * tui/tui-hooks.c (tui_about_to_proceed): New function.
395 (tui_target_wait_hook): Remove.
396 (tui_install_hooks): Install the about_to_proceed observer.
397 (tui_remove_hooks): And remove it here.
398
9015683b
TT
3992012-11-08 Tom Tromey <tromey@redhat.com>
400
401 * linux-tdep.c (linux_make_siginfo_note): New function.
402 (linux_make_corefile_notes): Use it.
403 * corelow.c (get_core_siginfo): New function.
404 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
405
ea9f10bb
TT
4062012-11-08 Tom Tromey <tromey@redhat.com>
407
408 PR gdb/14704:
409 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
410 (zlib_decompress_section): Remove.
411 (gdb_bfd_map_section): Only check for compressed section
412 in mmap case. Use bfd_get_full_section_contents.
413 * osabi.c (check_note): Add 'sectsize' argument. Read
414 section data.
415 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
416 section data. Update for check_note change.
417 * xcoffread.c (xcoff_initial_scan): Use
418 bfd_get_full_section_contents.
419 * py-auto-load.c (auto_load_section_scripts): Use
420 bfd_get_full_section_contents.
421 * contrib/cc-with-tweaks.sh: Add -Z option.
422
d071a26b
TT
4232012-11-08 Tom Tromey <tromey@redhat.com>
424
425 * python/py-bpevent.c: Include defs.h.
426 * python/py-continueevent.c: Include defs.h.
427 * python/py-event.c: Include defs.h.
428 * python/py-event.h: Don't include defs.h.
429 * python/py-events.h: Don't include defs.h.
430 * python/py-evts.c: Include defs.h.
431 * python/py-exitedevent.c: Include defs.h.
432 * python/py-newobjfileevent.c: Include defs.h.
433 * python/py-signalevent.c: Include defs.h.
434 * python/py-stopevent.c: Include defs.h.
435 * python/py-threadevent.c: Include defs.h.
436
4574b35a
PM
4372012-11-08 Pierre Muller <muller@sourceware.org>
438
439 * update-web-ari.sh (print_heading): Add number of files
440 checked.
441 (nb_files): New variable counting the number of sources
442 files found by gdb_find.sh script.
443 (debug_awk): New variable to allow extra debug output.
444 (indexes): Add more information if DEBUG_AWK is set.
445
2834ab42
EBM
4462012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
447
448 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
449 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
450 following the change in PLT call stubs on linker.
451
84f13595
PM
4522012-11-08 Pierre Muller <muller@sourceware.org>
453
454 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
455 as default language.
456 (AWK): Use = instead of == for sh test to avoid warning.
457 (Linux rule): Correct [:digit] into [[:digit:]].
458 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
459 (vasprintf rule): Adapt to common subdirectory moves.
460 (xasprintf rule): Idem.
461 (xvasprintf rule): Idem.
462 (var_boolean rule): Accept occurence in == or != test.
463
464 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
465
d69e6a33
SC
4662012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
467
468 * tui/tui-hooks.c (tui_inferior_exit): New function.
469 (tui_detach_hook): Remove.
470 (tui_install_hooks): Install the inferior exit observer.
471 (tui_remove_hooks): Remove it.
472
1e96de83
YQ
4732012-11-08 Yao Qi <yao@codesourcery.com>
474
475 PR gdb/14777.
476 * source.c (_initialize_source): Call add_com_alias to abbreviate
477 'forward-search' as 'fo'.
478
0baeab03
PA
4792012-11-07 Pedro Alves <palves@redhat.com>
480
481 * arm-tdep.c: Make defs.h be the first include.
482 * coff-pe-read.c: Ditto.
483 * gnu-nat.c: Ditto.
484 * go32-nat.c: Ditto.
485 * i386-nat.c: Ditto.
486 * ppcnbsd-nat.c: Ditto.
487 * ada-varobj.h: Don't include defs.h.
488 * i386-darwin-tdep.h: Ditto.
489 * i386-nat.h: Ditto.
490
892a8570
PA
4912012-11-07 Pedro Alves <palves@redhat.com>
492
493 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
494 Committee.
495
719502e9
PM
4962012-11-07 Pierre Muller <muller@sourceware.org>
497
498 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
499 File already uses "gdb_dirent.h" header.
500
ed86b350
YQ
5012012-11-07 Yao Qi <yao@codesourcery.com>
502
503 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
504 tracepoint_count'.
505
9a4f1e4f
TT
5062012-11-06 Tom Tromey <tromey@redhat.com>
507
508 * target.h (inferior_has_forked, inferior_has_vforked)
509 (inferior_has_execd, inferior_has_called_syscall): Remove
510 declarations.
511
0316657e
PM
5122012-11-06 Pierre Muller <muller@sourceware.org>
513
514 * remote.c (remote_insert_hw_breakpoint): ARI fix,
515 add missing internalization markup.
516
f6592439
PA
5172012-11-06 Pedro Alves <palves@redhat.com>
518
519 PR gdb/14810
520
521 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
522
01f2564a
PM
5232012-11-06 Pierre Muller <muller@sourceware.org>
524
525 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
526 is not executable.
527
f37c4431
JB
5282012-11-05 Joel Brobecker <brobecker@adacore.com>
529
530 * gnulib/update-gnulib.sh: New script.
531
550889c3
JB
5322012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
533
534 * MAINTAINERS: Update my email address.
535
954b50b3
TT
5362012-11-05 Tom Tromey <tromey@redhat.com>
537
538 * frame.c (put_frame_register): Don't use temporary buffer.
539
68c9da30
PA
5402012-11-05 Pedro Alves <palves@redhat.com>
541
542 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
543 child. Clear 'pending_detach'.
544 * infrun.c (handle_vfork_child_exec_or_exit): Clear
545 'pending_detach' in the vfork parent.
546
80626a55
DE
5472012-11-05 Doug Evans <dje@google.com>
548
549 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
550 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
551 * dwarf2read.c: #include "elf-bfd.h".
552 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
553 (dwop_section_names): Renamed from dwo_section names. All uses
554 updated. Add entries for .debug_cu_index, .debug_tu_index.
555 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
556 All uses updated.
557 (struct dwp_sections): New type.
558 (struct virtual_dwo_sections): New type.
559 (struct dwp_hash_table): New type.
560 (struct dwp_file): New type.
561 (init_cutu_and_read_dies): Ensure DWO info/types section has been
562 read in. Handle DWOs coming from DWP files.
563 (lookup_dwo_file_slot): New function.
564 (dwarf2_locate_dwo_sections): Move definition closer to use.
565 (create_dwo_debug_info_hash_table_reader): Renamed from
566 create_debug_info_hash_table_reader. All callers updated.
567 (create_dwo_debug_info_hash_table): Renamed from
568 create_debug_info_hash_table. All callers updated.
569 (create_dwp_hash_table): New function.
570 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
571 (lookup_dwo_in_dwp): New function.
572 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
573 is_dwp. All callers updated.
574 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
575 (open_and_init_dwo_file): Renamed from init_dwo_file.
576 All callers updated.
577 (lookup_dwo_file): Delete.
578 (dwarf2_locate_dwp_sections): New function.
579 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
580 (allocate_dwp_loaded_cutus_table): New function.
581 (open_and_init_dwp_file): New function.
582 (lookup_dwo_cutu): New function.
583 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
584
6f6484cd
YQ
5852012-11-03 Yao Qi <yao@codesourcery.com>
586
587 Fix PR gdb/14617.
588 * breakpoint.c (trace_pass_set_count): Call
589 observer_notify_breakpoint_modified instead of
590 observer_notify_tracepoint_modified.
591 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
592
b45627a0
TT
5932012-11-02 Tom Tromey <tromey@redhat.com>
594
595 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
596 argument to complete_on_enum.
597
d4fb63e1
TT
5982012-11-02 Tom Tromey <tromey@redhat.com>
599
600 * configure: Rebuild.
601 * configure.ac (build_warnings): Add -Wempty-body.
602 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
603 * remote.c (handle_notification): Use braces for empty 'else' body.
604 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
605 'else' body.
606 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
607 'else' body.
608 * solib-som.c (som_relocate_section_addresses): Use braces
609 for empty 'else' body.
610 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
611 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
612
f50f4e56
PA
6132012-11-02 Pedro Alves <palves@redhat.com>
614
615 PR gdb/14766
616
617 * infrun.c (handle_inferior_event)
618 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
619 null_ptid before handling a vfork child exec or exit. Switch to
620 the event ptid afterwards.
621
f0559fff
YQ
6222012-11-02 Yao Qi <yao@codesourcery.com>
623
624 * std-operator.def: Remove OP_LABELED.
625 * eval.c: Remove the declaration of 'get_label'.
626 (get_label): Remove.
627 (evaluate_struct_tuple): Remove code handling OP_LABELED.
628 Update comment.
629 Remove local variable 'variantno' and related code.
630 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
631 with 'fieldno'.
632 * expprint.c (print_subexp_standard): Likewise.
633 (dump_subexp_body_standard): Likewise.
634 * parse.c (operator_length_standard): Likewise.
635
e5496e3e
PM
6362012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
637
638 Incorporate ARI web page generator into GDB sources.
639 * contrib/ari/create-web-ari-in-src.sh: New file.
640 * contrib/ari/gdb_ari.sh: New file.
641 * contrib/ari/gdb_find.sh: New file.
642 * contrib/ari/update-web-ari.sh: New file.
643
c66fb220
TT
6442012-10-31 Tom Tromey <tromey@redhat.com>
645
646 * gdbarch.c: Rebuild.
647 * gdbarch.sh: Remove references to gdbarch_swap.
648 * corelow.c (core_open): Remove obsolete comment.
649
2f27adfe
AB
6502012-10-31 Andrew Burgess <aburgess@broadcom.com>
651
652 PR cli/14772
653 * c-typeprint.c (c_print_type): Don't print a space for vector
654 types, this is handled within the suffix.
655 (c_type_print_varspec_suffix): Add a space to vector suffix.
656
144db827
PA
6572012-10-26 Pedro Alves <palves@redhat.com>
658
659 * amd64-tdep.c (amd64_relocate_instruction): Use
660 store_unsigned_integer instead of memcpy.
661 * i386-tdep.c (i386_relocate_instruction): Ditto.
662
940c3c06
PA
6632012-10-26 Pedro Alves <palves@redhat.com>
664
665 * infrun.c (handle_inferior_event): Merge handling of
666 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
667 switch case.
668
47b19065
PA
6692012-10-26 Pedro Alves <palves@redhat.com>
670
671 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
672 Remove comment.
673
87d2d2a4
PA
6742012-10-26 Pedro Alves <palves@redhat.com>
675
676 * target.c (target_waitstatus_to_string): Handle
677 TARGET_WAITKIND_VFORK_DONE.
678
fed708ed
PA
6792012-10-26 Pedro Alves <palves@redhat.com>
680
681 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
682 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
683
2590b645
JB
6842012-10-24 Tristan Gingold <gingold@adacore.com>
685
686 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
687 Add comments.
688
bed0c243
JB
6892012-10-24 Joel Brobecker <brobecker@adacore.com>
690
691 * ravenscar-thread.c (ravenscar_wait): Only update the list
692 of threads and inferior_ptid if the inferior is still alive.
693
f69c91ad
JB
6942012-10-24 Joel Brobecker <brobecker@adacore.com>
695
696 * ada-lang.c (is_known_support_routine): Use lbasename when
697 matching the symtab's filename against
698 known_runtime_file_name_patterns.
699
d99dcf51
JB
7002012-10-24 Joel Brobecker <brobecker@adacore.com>
701
702 * ada-lang.c (ada_same_array_size_p): New function.
703 (ada_promote_array_of_integrals): New function.
704 (coerce_for_assign): Add handling of arrays where the elements
705 are integrals of a smaller size than the size of the target
706 array element type.
707
32560274
JB
7082012-10-24 Joel Brobecker <brobecker@adacore.com>
709
710 * doublest.c (convert_doublest_to_floatformat): Fix comparison
711 against maximum exponent value.
712
5a04cc98
JB
7132012-10-24 Joel Brobecker <brobecker@adacore.com>
714
715 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
716 "unwind-seh.c".
717
5ded5331
JB
7182012-10-24 Joel Brobecker <brobecker@adacore.com>
719
720 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
721 strip typedef layer when computing the fixed type's field type,
722 only when computing its size.
723
2445fd7b
MK
7242012-10-24 Mark Kettenis <kettenis@gnu.org>
725
726 PR gdb/12783
727 * i386-tdep.c (i386_return_value): Handle complex double and long
728 double.
729
8f205f9c
JB
7302012-10-24 Joel Brobecker <brobecker@adacore.com>
731
732 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
733 New local variable args_len.
734 Quote the name of the executable when computing the command line.
735
7f7930dd
MK
7362012-10-23 Mark Kettenis <kettenis@gnu.org>
737
738 PR gdb/12796
739 PR gdb/12798
740 PR gdb/12800
741 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
742 AMD64_FTAG_REGNUM.
743 * amd64-tdep.c (amd64_classify): Classify complex types.
744 (amd64_return_value): Handle the COMPLEX_X87 class.
745
38a69d0a
JB
7462012-10-23 Joel Brobecker <brobecker@adacore.com>
747
748 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
749 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
750
83ab93c6
JB
7512012-10-23 Joel Brobecker <brobecker@adacore.com>
752
753 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
754 function.
755 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
756 to amd64_windows_auto_wide_charset.
757
f6fbab7d
YQ
7582012-10-23 Yao Qi <yao@codesourcery.com>
759
760 * event-top.c (mark_async_signal_handler_wrapper): Remove.
761 * event-top.h: Remove its declaration.
762 (async_request_quit): Call mark_async_signal_handler instead of
763 mark_async_signal_handler_wrapper.
764 (async_do_nothing, async_disconnect): Likewise.
765 (async_stop_sig): Likewise.
766 * remote.c (handle_remote_sigint): Likewise.
767 (handle_remote_sigint_twice): Likewise.
768
05fa9251
YQ
7692012-10-23 Yao Qi <yao@codesourcery.com>
770
771 * event-top.c (sigint_token, sighup_token): Replace 'void *'
772 with 'static struct async_signal_handler *'.
773 (sighup_token, sigquit_token, sigstp_token): Likewise.
774
08af7a40
AA
7752012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
776
777 * gdbarch.sh (function_list): Use 'pstring' when printing
778 a variable which could return NULL.
779 * gdbarch.c: Regenerate.
780
beb4b03c
JB
7812012-10-10 Joel Brobecker <brobecker@adacore.com>
782 Tom Tromey <tromey@redhat.com>
783
784 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
785 inneffective if condition by gdb assertion. Add function
786 description comment.
787
a5b12627
JB
7882012-10-19 Joel Brobecker <brobecker@adacore.com>
789
790 * parser-defs.h (struct exp_descriptor): Document constraint
791 on return value for "op_name" callbacks.
792
0b0865da
TT
7932012-10-18 Tom Tromey <tromey@redhat.com>
794
795 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
796 * symtab.c (iterate_over_some_symtabs): Constify.
797 * source.h (symtab_to_fullname): Return 'const char *'.
798 * source.c (symtab_to_fullname): Return 'const char *'.
799 * python/py-symtab.c (stpy_fullname): Constify.
800 * cli/cli-cmds.c (edit_command): Constify.
801 * breakpoint.c (print_breakpoint_location)
802 (update_static_tracepoint): Constify.
803
94b0e70d
TT
8042012-10-18 Tom Tromey <tromey@redhat.com>
805
806 * breakpoint.c (compare_breakpoints): Fix comparison.
807
fff10684
TT
8082012-10-18 Tom Tromey <tromey@redhat.com>
809
810 * valprint.c (generic_emit_char, generic_printstr): Pass size of
811 gdb_wchar_t to convert_between_encodings.
812
8de0566d
YQ
8132012-10-17 Yao Qi <yao@codesourcery.com>
814
815 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
816 more parameter 'inferior'.
817 * corefile.c (write_memory_with_notification): Caller update.
818
819 * mi/mi-cmd-var.c: Include "mi-main.h".
820 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
821 to 1 and restore it later.
822 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
823 and "data-write-memory-bytes.
824 * mi/mi-interp.c: Include objfiles.h.
825 (mi_interpreter_init): Call observer_attach_memory_changed.
826 (mi_memory_changed): New.
827 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
828 New field.
829
830 * NEWS: Mention new MI notification "memory-changed".
831
6235cdd1
JK
8322012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
833
834 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
835
07540c15
DE
8362012-10-15 Doug Evans <dje@google.com>
837
838 New option -nh: inhibit loading of ~/.gdbinit.
839 * NEWS: Mention -nh.
840 * main.c (captured_main): Recognize and process -nh.
841 (print_gdb_help): Mention -nh.
842 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
843
eab09350
L
8442012-10-15 H.J. Lu <hongjiu.lu@intel.com>
845
846 PR backtrace/14646
847 PR gdb/14647
848 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
849 pc_regnum_from_eax.
850 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
851 nor pc_regnum_from_eax.
852 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
853 nor pc_regnum_from_eax.
854
9e3a7d65
JK
8552012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
856
857 Fix entry values resolving in inlined frames.
858 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
859 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
860 entries of FRAME.
861
c83393b9
JB
8622012-10-15 Joel Brobecker <brobecker@adacore.com>
863
864 * configure.ac: Build with -DMS_WIN64 if building with Python
865 enabled using GCC on amd64-windows.
866 * configure: Regenerate.
867
801e4185
TT
8682012-10-15 Tom Tromey <tromey@redhat.com>
869
870 PR python/14635:
871 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
872 to Py_None.
873
74f910c8
TT
8742012-10-15 Tom Tromey <tromey@redhat.com>
875
876 PR python/14634:
877 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
878
2a7c8fd5
AB
8792012-10-11 Andrew Burgess <aburgess@broadcom.com>
880
881 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
882 reset thread numbering back to 1.
883
7c09e5a0
DE
8842012-10-11 Doug Evans <dje@google.com>
885
886 PR breakpoints/14643.
887 * linespec.c (struct ls_parser): New member keyword_ok.
888 (linespec_lexer_lex_string): Add comment.
889 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
890 for one.
891 (parse_linespec): Set keyword_ok.
892
a1855c1d
DE
8932012-10-10 Doug Evans <dje@google.com>
894
844226d6
DE
895 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
896 "0x" prefix on address in log message.
897
a1855c1d
DE
898 * dwarf2read.c (read_1_byte): Add const to buf parameter.
899 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
900 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
901 (lookup_dwo_file): Add const to dwo_name parameter.
902 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
903
2e24f4aa
JK
9042012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
905
906 Fix crash during stepping on ppc32.
907 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
908 SYM.
909
aa14df25
DE
9102012-10-03 Doug Evans <dje@google.com>
911
912 PR symtab/14601
913 * buildsym.c (buildsym_init): Reset using_directives to NULL.
914
3d468296
AB
9152012-10-02 Andrew Burgess <aburgess@broadcom.com>
916
917 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
918 output and use uint32_t not long to ensure 4 byte size.
919
8f0ee2eb
JB
9202012-10-02 Joel Brobecker <brobecker@adacore.com>
921
922 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
923 unref'ed it.
924
b3dc46ff
AB
9252012-10-01 Andrew Burgess <aburgess@broadcom.com>
926
927 * target.c (simple_search_memory): Include access length in
928 warning message.
929
f712f01f
EBM
9302012-09-28 Nathan Miller <nathanm2@us.ibm.com>
931 Edjunior Machado <emachado@linux.vnet.ibm.com>
932
933 PR gdb/13989
934 * solib.c (solib_find): Prevent GDB from loading native libraries when
935 debugging a cross-target corefile.
936
39181896
PA
9372012-09-28 selven <pcthegreat@gmail.com>
938
939 Make definition match declaration.
940
941 * regcache.c (regcache_register_status): Change return type to
942 enum register_status.
943
4c2786ba
YQ
9442012-09-28 Yao Qi <yao@codesourcery.com>
945
946 * mi/mi-main.c (mi_cmd_data_write_memory): Call
947 write_memory_with_notification instead of write_memory.
948 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
949 instead of target_write_memory.
950
1ae0c35e
YQ
9512012-09-28 Yao Qi <yao@codesourcery.com>
952
953 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
954 when the length of content is not an even number.
955
7977e5d2
TT
9562012-09-27 Tom Tromey <tromey@redhat.com>
957
958 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
959 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
960
807160da
JB
9612012-09-27 Joel Brobecker <brobecker@adacore.com>
962
963 * sol-thread.c (sol_thread_fetch_registers)
964 (sol_thread_store_registers): Delete commented out code.
965
43c75337
JB
9662012-09-27 Joel Brobecker <brobecker@adacore.com>
967
968 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
969 Move these functions to sparc-sol-thread.c.
970 * sparc-sol-thread.c: New file.
971 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
972 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
973 configurations.
974 * configure: Regenerate.
975
d292a972
JB
9762012-09-27 Joel Brobecker <brobecker@adacore.com>
977
978 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
979 Remove commented-out code.
980
8c3da003
JB
9812012-09-27 Joel Brobecker <brobecker@adacore.com>
982
983 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
984 Enable this code for sparc hosts only.
985
f00482b6
JB
9862012-09-27 Joel Brobecker <brobecker@adacore.com>
987
988 * procfs.h (procfs_find_LDT_entry): Add declaration.
989 * sol-thread.c (ps_lgetLDT): Delete local declaration of
990 function procfs_find_LDT_entry.
991
337c776f
JB
9922012-09-27 Joel Brobecker <brobecker@adacore.com>
993
994 * procfs.c (proc_get_LDT_entry): Make static.
995
1a04d88f
JB
9962012-09-27 Joel Brobecker <brobecker@adacore.com>
997
998 * procfs.c (proc_find_memory_regions): Fix declaration.
999
bad43aa5
SP
10002012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1001
1002 * amd64-tdep.c (amd64_return_value): Revert previous change
1003 that used TYPE_LENGTH directly.
1004 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1005 (bfin_store_return_value): Likewise.
1006 * cris-tdep.c (cris_store_return_value): Likewise.
1007 (cris_extract_return_value): Likewise.
1008 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1009 * hppa-tdep.c (hppa64_return_value): Likewise.
1010 * lm32-tdep.c (lm32_store_return_value): Likewise.
1011 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1012 * spu-tdep.c (spu_value_from_register): Likewise.
1013 * vax-tdep.c (vax_return_value): Likewise.
1014
63375b74
SP
10152012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1016
1017 * gdbtypes.c (lookup_array_range_type): Expand parameters
1018 LOW_BOUND and HIGH_BOUND to LONGEST.
1019 (lookup_string_range_type): Likewise.
1020 * gdbtypes.h (lookup_array_range_type): Likewise.
1021 (lookup_string_range_type): Likewise.
1022 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1023 Expand HIGHBOUND to ssize_t.
1024 (value_string): Likewise.
1025 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1026 (value_string): Likewise.
1027
19ca11c5
YQ
10282012-09-27 Yao Qi <yao@codesourcery.com>
1029
1030 PR breakpoints/13898
1031 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1032 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1033 per breakpoint type.
1034
92107356
PM
10352012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1036
1037 * procfs.c: Add gdb_bfd header.
1038 * rs6000-nat.c: Likewise.
1039 * solib-pa64.c: Likewise.
1040 * spu-linux-nat.c: Likewise.
1041 * windows-nat.c: Likewise.
1042
9742094a
TT
10432012-09-26 Tom Tromey <tromey@redhat.com>
1044
1045 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1046
0971de02
TT
10472012-09-26 Tom Tromey <tromey@redhat.com>
1048
1049 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1050 (read_common_block): Handle child DIEs with
1051 DW_AT_data_member_location.
1052 (new_symbol_full): Add special case for common blocks.
1053
4357ac6c
TT
10542012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1055 Tom Tromey <tromey@redhat.com>
1056
1057 * dwarf2read.c (read_common_block): Rewrite.
1058 (new_symbol_full): Handle DW_TAG_common_block.
1059 * f-lang.c (head_common_list, find_common_for_function):
1060 Remove.
1061 * f-lang.h (struct common_entry, struct saved_f77_common,
1062 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1063 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1064 BLANK_COMMON_NAME_LOCAL): Remove.
1065 (struct common_block): New.
1066 * f-valprint.c (list_all_visible_commons): Remove.
1067 (info_common_command_for_block): New function.
1068 (info_common_command): Use it.
1069 * stack.c (iterate_over_block_locals): Special case for
1070 COMMON_BLOCK_DOMAIN.
1071 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1072 constant.
1073 (struct general_symbol_info) <value.common_block>: New field.
1074 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1075
965f07a8
TT
10762012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1077 Tom Tromey <tromey@redhat.com>
1078
1079 * f-lang.c (allocate_saved_bf_node,
1080 allocate_saved_function_node, allocate_saved_f77_common_node,
1081 allocate_common_entry_node, tail_common_list, current_common,
1082 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1083 tmp_bf_ptr, add_common_block, add_common_entry,
1084 find_first_common_named, patch_common_entries,
1085 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1086 global_remote_debug, get_bf_for_fcn, saved_function_list,
1087 saved_function_list_end, clear_function_list, struct saved_fcn,
1088 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1089 SAVED_BF, SAVED_BF_PTR): Remove.
1090 * f-lang.h (tail_common_list, current_common,
1091 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1092 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1093 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1094 real_main_c_value): Remove.
1095 * f-valprint.c (there_is_a_visible_common_named): Remove.
1096
6f380991
AB
10972012-09-26 Andrew Burgess <aburgess@broadcom.com>
1098
1099 * breakpoint.c (update_global_location_list): Ignore previous
1100 duplicate status of a breakpoint when starting a new scan for
1101 duplicate breakpoints.
1102
9ead7ae4 11032012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 1104 PR breakpoints/14419
2536b51c
YQ
1105 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1106 support LLVM compiler.
9ead7ae4 1107
8f8a23a2
SP
11082012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1109
1110 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1111 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1112 (bfin_store_return_value): Likewise.
1113 * cris-tdep.c (cris_store_return_value): Likewise.
1114 (cris_extract_return_value): Likewise.
1115 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1116 * hppa-tdep.c (hppa64_return_value): Likewise.
1117 * lm32-tdep.c (lm32_store_return_value): Likewise.
1118 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1119 * spu-tdep.c (spu_value_from_register): Likewise.
1120 * vax-tdep.c (vax_return_value): Likewise.
1121
d7019589
SP
11222012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1123
1124 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1125 parameter LEN to ssize_t.
1126
744a8059
SP
11272012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1128
1129 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1130 variable LEN.
1131 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1132 directly.
1133 (alpha_store_return_value): Likewise.
1134 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1135 (amd64_push_arguments): Likewise.
1136 * ax-gdb.c (gen_trace_static_fields): Likewise.
1137 (gen_traced_pop): Likewise.
1138 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1139 * breakpoint.c (update_watchpoint): Likewise.
1140 * findcmd.c (parse_find_args): Use local variable for type
1141 instead of length.
1142 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1143 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1144 (h8300_store_return_value): Likewise.
1145 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1146 Use i386_darwin_arg_type_alignment directly.
1147 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1148 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1149 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1150 (m68hc11_extract_return_value): Likewise.
1151 * mep-tdep.c (mep_push_dummy_call): Likewise.
1152 * printcmd.c (float_type_from_length): Likewise.
1153 * s390-tdep.c (s390_value_from_register): Likewise.
1154 * stack.c (read_frame_arg): Likewise.
1155 * tracepoint.c (encode_actions_1): Likewise.
1156 * valops.c (value_fetch_lazy): Use local variable for type
1157 instead of length. Use TYPE_LENGTH directly.
1158 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1159
a4b411d6
JB
11602012-09-25 Joel Brobecker <brobecker@adacore.com>
1161
1162 * symtab.c (skip_prologue_sal): Fix typo in comment.
1163
11dba07a
JB
11642012-09-25 Joel Brobecker <brobecker@adacore.com>
1165
1166 * linespec.c (create_sals_line_offset): Fix typo in comment.
1167
318102b9
SP
11682012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1169
1170 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1171 use plongest to print the array size.
1172
b4aa388a
SP
11732012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1174
1175 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1176 * p-valprint.c (pascal_type_print_base): Likewise.
1177
84cebc4a
YQ
11782012-09-22 Yao Qi <yao@codesourcery.com>
1179
1180 * remote.c (remote_get_trace_status): Remove setting default
1181 values of fields of 'ts'.
1182
04e7407c
JK
11832012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1184
1185 Fix internal error on canonicalization of clang types.
1186 * cp-name-parser.y (operator): New comment at make_operator call for
1187 new, delete, new[] and delete[].
1188 (exp): Use "sizeof ". Add new comment at make_operator call.
1189
9bf4bce9
JK
11902012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1191
1192 Fix disassemble without parameters in tailcall frame.
1193 * cli/cli-cmds.c (disassemble_current_function): Use
1194 get_frame_address_in_block.
1195
1c5b7826
TT
11962012-09-21 Tom Tromey <tromey@redhat.com>
1197
1198 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1199 TYPE_CODE_UNION>: Unify, removing a goto.
1200
62a49610
TT
12012012-09-21 Tom Tromey <tromey@redhat.com>
1202
1203 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1204
2603f7ee
AB
12052012-09-21 Andrew Burgess <aburgess@broadcom.com>
1206
1207 * findvar.c (read_frame_register_value): Mark the result value as
1208 optimized out if any of the input registers have been optimized out.
1209
810849a3
AS
12102012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1211
1212 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1213
0953dec1
SP
12142012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1215
1216 * eval.c (evaluate_subexp_standard): Eliminate single-use
1217 variable LOWER.
1218
82a90ccf
YQ
12192012-09-21 Yao Qi <yao@codesourcery.com>
1220
1221 * mi/mi-interp.c: Declare mi_record_changed.
1222 (mi_interpreter_init): Call observer_attach_record_changed.
1223 (mi_record_changed): New.
1224 * record.c (record_open): Call observer_notify_record_changed.
1225 (cmd_record_stop): Call observer_notify_record_changed.
1226 * NEWS: Mention it.
1227
d7de8e3c
TT
12282012-09-20 Tom Tromey <tromey@redhat.com>
1229
1230 * NEWS: Update.
1231 * python/python.c (finalize_python): New function.
1232 (_initialize_python): Make a final cleanup.
1233
43c7c83d
DE
12342012-09-19 Doug Evans <dje@google.com>
1235
1236 * buildsym.h (param_symbols): Delete, unused.
1237 (context_stack): Delete member "params", unused.
1238 * buildsym.c (push_context): Update.
1239 * dwarf2read.c (read_func_scope): Update.
1240
aa9259cc
TS
12412012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1242
a6521d9a
TS
1243 * sh-tdep.c (sh_register_convert_to_virtual)
1244 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1245 all callers. Just do a memcpy if not the little-endian case.
1246
f92589cb
TS
1247 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1248 set_gdbarch_double_format and set_gdbarch_long_double_format.
1249 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1250 set_gdbarch_double_format.
1251 * sh-tdep.c (sh_gdbarch_init): Likewise.
1252
aa9259cc
TS
1253 * NEWS: Document the removal of SH's 'regs' command.
1254 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1255 command.
1256
c1d780c2
SDJ
12572012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1258
1259 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1260 `jump'.
1261
4ae24af0
JB
12622012-09-18 Joel Brobecker <brobecker@adacore.com>
1263
1264 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1265 language when iterating over symbols.
1266
bb25a15c
YQ
12672012-09-18 Yao Qi <yao@codesourcery.com>
1268
1269 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1270 (mi_interpreter_init): Call observer_attach_tsv_created and
1271 observer_attach_tsv_deleted.
1272 (mi_tsv_created, mi_tsv_deleted): New.
1273 * tracepoint.c (delete_trace_state_variable): Call
1274 observer_notify_tsv_deleted.
1275 (trace_variable_command): Call observer_notify_tsv_created.
1276 (delete_trace_variable_command): Call
1277 observer_notify_tsv_deleted.
1278 (create_tsv_from_upload): Call observer_notify_tsv_created.
1279 * NEWS: Mention it.
1280
201b4506
YQ
12812012-09-18 Yao Qi <yao@codesourcery.com>
1282
1283 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1284 if traceframe changed.
1285 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1286 "trace-find".
1287 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1288 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1289 'traceframe_changed'.
1290 (mi_traceframe_changed): New.
1291 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1292 New field.
1293 * NEWS: Mention the new MI notification.
1294
eaeb12db
MW
12952012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1296
1297 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1298
6e3c039e
JK
12992012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1300
1301 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1302 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1303 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1304 Extend code also for PaX support. Convert all gdb_assert to warning
1305 calls.
1306
9a950c7c
JK
13072012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1308
1309 Implement auto-load user conveniences suggested by Doug Evans.
1310 * auto-load.c: Include top.h.
1311 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1312 (_initialize_auto_load): New variable scripts_directory_help. Mention
1313 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1314 scripts-directory. Document in online help one can use also files for
1315 set auto-load safe-path.
1316 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1317 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1318
deec9a9d
SP
13192012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1320
1321 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1322 of LEN.
1323
354ecfd5
SP
13242012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1325
1326 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1327 ELTLEN and use TYPE_LENGTH directly.
1328 (m2_val_print): Likewise.
1329 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1330 variable LEN and use TYPE_LENGTH directly.
1331 (m68k_svr4_store_return_value): Likewise.
1332 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1333 ARGLEN and use TYPE_LENGTH directly.
1334 (mips_o64_push_dummy_call): Likewise.
1335 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1336 variable LENGTH and use TYPE_LENGTH directly.
1337 (s390_function_arg_float): Likewise.
1338 (s390_function_arg_integer): Likewise.
1339 (s390_push_dummy_call): Likewise.
1340 (s390_return_value_convention): Likewise.
1341 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1342 TYPE_LENGTH directly.
1343
6fc1c773
YQ
13442012-09-17 Yao Qi <yao@codesourcery.com>
1345
1346 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1347 Update comment to add_setshow_integer_cmd.
1348 * cli/cli-setshow.c (do_set_command): Handle case
1349 'var_zuinteger_unlimited'.
1350 (do_show_command): Likewise.
1351 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1352 for command 'remotetimeout'.
1353 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1354 to var_integer.
1355 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1356 for command 'set listsize'.
1357
6acef6cd
SP
13582012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1359
1360 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1361 variable LEN.
1362
1ab3b62c
JK
13632012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1364
1365 PR 14119
1366 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1367 (frame_pop): Drop also TAILCALL_FRAME frames.
1368 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1369
acf9414f
JK
13702012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1371 Pedro Alves <palves@redhat.com>
1372
1373 PR 14548
1374 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1375 function start if we are already at function start. Both for
1376 reverse-next and for reverse-step into function without line number
1377 info.
1378
193facb3
JK
13792012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1380
1381 Code cleanup - rename 'inline' depth to 'artificial' depth.
1382 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1383 frame_id_artificial_p, extend the comment.
1384 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1385 * frame.c (fprint_frame_id): Rename at a user, change debug output
1386 text to "artificial=".
1387 (skip_inlined_frames): Rename to ...
1388 (skip_artificial_frames): ... here. Extend the comment.
1389 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1390 (frame_id_inlined_p): Rename to ...
1391 (frame_id_artificial_p): ... here. Rename at a user.
1392 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1393 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1394 at a user.
1395 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1396 Extend the comment.
1397 (frame_id_inlined_p): Rename to ...
1398 (frame_id_artificial_p): ... here.
1399 * inline-frame.c (inline_frame_this_id): Rename at a user.
1400
42056501
AB
14012012-09-14 Andrew Burgess <aburgess@broadcom.com>
1402
1403 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1404 vector variables using vector_size syntax rather than array
1405 syntax.
1406
84c47588
SP
14072012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1408
1409 * valarith.c (value_concat): Replace unsafe ALLOCA with
1410 XMALLOC/XFREE.
1411
f4045bcb
PA
14122012-09-14 Pedro Alves <palves@redhat.com>
1413
1414 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1415
63b46266
YPK
14162012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1417
1418 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1419 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1420 data-directory as appropriate.
1421
ddd7a8e7
SP
14222012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1423
1424 * printcmd.c (ui_printf): Eliminate single-use variable
1425 PARAM_LEN.
1426
d649a38e
YQ
14272012-09-14 Yao Qi <yao@codesourcery.com>
1428 Pedro Alves <palves@redhat.com>
1429
1430 * valops.c (value_assign): Move observer_notify_target_changed
1431 below to replace reinit_frame_cache.
1432
b9516fa1
YPK
14332012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1434
1435 Refactor Python "gdb" module into a proper Python package, by
1436 introducing a new "_gdb" module for code implemented in C, and
1437 using reload/__import__ instead of exec.
1438 * python/lib/gdb/__init__.py: Import * from _gdb.
1439 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1440 prompt_hook, sys.argv): Moved from finish_python_initialization.
1441 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1442 (packages, auto_load_packages): New list and function replacing
1443 module_dict and auto-loading code, using __file__ instead of
1444 gdb.PYTHONDIR and reload/__import__ instead of exec.
1445 (GdbSetPythonDirectory): Replacing function of the same name
1446 from finish_python_initialization, using reload/__import__ instead
1447 of exec, as well as call auto_load_packages.
1448 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1449 gdb_python_module and not gdb_module.
1450 * python/python-internal.h (gdb_python_module): Declare.
1451 * python/python.c (gdb_python_module): New global.
1452 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1453 (_initialize_python): Rename gdb module to _gdb.
1454 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1455 (finish_python_initialization): Move Python code to
1456 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1457 __main__.
1458
aa0fbdd8
PA
14592012-09-13 Pedro Alves <palves@redhat.com>
1460
1461 * Makefile.in (COMMON_OBS): Add registry.o.
1462 * registry.c: New file.
1463 * registry.h (struct registry_container): Declare.
1464 (registry_data_callback): New typedef.
1465 (struct registry_data, struct registry_data_registration, struct
1466 registry_data_registry): New type.
1467 (register_data_with_cleanup, registry_alloc_data)
1468 (registry_callback_adaptor, registry_clear_data)
1469 (registry_container_free_data, registry_set_data, registry_data):
1470 Declare.
1471 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1472 the new common structures and functions.
1473 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1474 callback typedefs.
1475
42b5c53d
MW
14762012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1477
1478 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1479 there is an error inserting hardware breakpoints and use the
1480 error message from the target.
1481
1482 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1483 Catch this exception and print the error message contained within. Do not
1484 print the default hardware error breakpoint message in this case.
1485
a1b64ce1
DE
14862012-09-12 Doug Evans <dje@google.com>
1487
1488 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1489 cu == NULL.
1490
83a788b8
DE
14912012-09-11 Doug Evans <dje@google.com>
1492
1493 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1494 .gdb_index symbol attributes if there are none.
1495
d9eaeb59
JB
14962012-09-11 Joel Brobecker <brobecker@adacore.com>
1497
1498 * symtab.h (struct minimal_symbol) [has_size]: New field.
1499 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1500 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1501 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1502 minimal symbols if the symbol's size is actually known.
1503 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1504 of msymbol's size field. Add comment.
1505 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1506 SET_MSYMBOL_SIZE to set the minimal symbol size.
1507
a83e9154
JB
15082012-09-11 Joel Brobecker <brobecker@adacore.com>
1509
1510 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1511 minimal_symbol struct object, rather than setting some of its
1512 fields one by one.
1513
350b1b26
AB
15142012-09-11 Andrew Burgess <aburgess@broadcom.com>
1515
1516 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1517 passed_a_ptr flag when displaying typedef types.
1518
2fa15f23
JB
15192012-09-10 Joel Brobecker <brobecker@adacore.com>
1520
1521 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1522 the optimized_out flag is preserved.
1523
5152ff90
AG
15242012-09-10 Anthony Green <green@moxielogic.com>
1525
1526 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1527 prologue changes in GCC.
1528
5b4f6e25
KS
15292012-09-10 Keith Seitz <keiths@redhat.com>
1530
1531 PR gdb/13483
1532 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1533 (BOOL_CONVERSION_BADNESS): ... this.
1534 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1535 (rank_one_type): Allow all boolean conversions
1536 permitted by the standard.
1537
f1070426
TT
15382012-09-06 Tom Tromey <tromey@redhat.com>
1539
1540 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1541 Don't decref py_objfile.
1542
a8db4212
YPK
15432012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1544
1545 Do not enable -lmcheck by default when Python is enabled with
1546 threading support.
1547 * configure.ac: (python_has_threads) New variable, by testing
1548 if WITH_THREAD is defined in Python.h.
1549 Move --enable-lmcheck after --with-python.
1550 Do not enable -lmcheck by default if python_has_threads=yes.
1551 Warn if --enable-lmcheck and python_has_threads=yes.
1552 * configure: Regenerate.
1553
648beb2b
YQ
15542012-08-31 Yao Qi <yao@codesourcery.com>
1555
1556 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1557 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1558 Update some commands.
1559 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1560 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1561 to 1.
1562
ef07a9f7
YQ
15632012-08-31 Yao Qi <yao@codesourcery.com>
1564
1565 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1566
fda395cf
YPK
15672012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1568
1569 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1570
8efd8e78
DE
15712012-08-29 Doug Evans <dje@google.com>
1572
1573 * main.c (print_gdb_help): Remove reference to
1574 --use-deprecated-index-sections.
1575
883b9c6c
YQ
15762012-08-28 Yao Qi <yao@codesourcery.com>
1577
1578 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1579 (init_cmds): Call add_setshow_uinteger_cmd for command
1580 'max-user-call-depth'.
1581 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1582 declaration of 'max_user_call_depth'.
1583 * frame.c (backtrace_limit): Add 'unsigned'.
1584 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1585 'limit'.
1586 * remote.c (remoteaddresssize): Add 'unsigned'.
1587 (remote_address_masked): Change local var 'address_size' to
1588 'unsigned'.
1589 (_initialize_remote): Call add_setshow_uinteger_cmd for
1590 'remoteaddresssize'.
1591 * top.c (history_size): Add 'unsigned'.
1592 (show_commands): Change local variables to 'unsigned'.
1593 (set_history_size_command): Don't check history_size is negative.
1594 Adjust the condition to call unstifle_history and set history_size
1595 to UNIT_MAX.
1596
1292279a
PA
15972012-08-28 Pedro Alves <palves@redhat.com>
1598
1599 PR gdb/14428
1600
1601 * infcmd.c (default_print_one_register_info): New, factored out
1602 from default_print_registers_info.
1603 (default_print_registers_info): Use it. Mark value unavailable if
1604 necessary.
1605 (registers_info): Print user registers with
1606 default_print_one_register_info.
1607
f629cd75
L
16082010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1609
1610 PR tui/14486
1611 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1612 is not NULL before referencing it.
1613
1c8cdcb1
JK
16142012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1615
1616 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1617 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1618 original PC for it.
1619
e9687799
JK
16202012-08-27 Eli Zaretskii <eliz@gnu.org>
1621 Jan Kratochvil <jan.kratochvil@redhat.com>
1622
1623 * auto-load.c (auto_load_objfile_script): Rename to ...
1624 (auto_load_objfile_script_1): ... here, change variable realname to
1625 parameter realname, document it, add return value, add variable retval.
1626 (auto_load_objfile_script): New function.
1627
7afa1642
JK
16282012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1629
1630 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1631 followed by a whitespace.
1632
dc7650b8
JK
16332012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1634
28e66c70 1635 PR gdb/14494.
dc7650b8
JK
1636 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1637 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1638 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1639 here.
1640
1591a1e8
PA
16412012-08-27 Wei-cheng Wang <cole945@gmail.com>
1642
1643 * memattr.c (create_mem_region): Fix memory region overlapping
1644 checking.
1645
ecfb0d68
SP
16462012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1647
1648 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1649 with xmalloc/cleanup.
1650 * mt-tdep.c (mt_push_dummy_call): Likewise.
1651 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1652 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1653
8c56c1b9
YQ
16542012-08-24 Yao Qi <yao@codesourcery.com>
1655
1656 * jv-exp.y (push_expression_name): Add "." at the end of error
1657 message.
1658
e3480f4a
YPK
16592012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1660
1661 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
1662 * python/python.c (_initialize_python): Update documentation.
1663
dfbd5e7b
PA
16642012-08-23 Pedro Alves <palves@redhat.com>
1665
1666 * infrun.c (_initialize_infrun) <handle command help text>:
1667 Mention that multiple signals are supported.
1668
2edda2ff
PA
16692012-08-23 Pedro Alves <palves@redhat.com>
1670
1671 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1672 string.
1673
8d735b87
YQ
16742012-08-23 Yao Qi <yao@codesourcery.com>
1675
1676 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1677 (tfind_1): Don't call registers_changed, set_traceframe_num,
1678 and clear_traceframe_info.
1679 Call set_current_traceframe.
1680 (set_current_traceframe): call set_traceframe_num.
1681
c5d9b215
SDJ
16822012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1683
1684 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1685 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1686
037bbc8e
YPK
16872012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1688
1689 Enable readline in Python in a GDB-specific way and block the
1690 standard Python readline module to prevent conflicts with GDB.
1691 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1692 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1693 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1694 * python/py-gdb-readline.c: New file.
1695 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1696 prototype.
1697 * python/python.c (_initialize_python): Call
1698 gdbpy_initialize_gdb_readline.
1699
406b1477
KS
17002012-08-22 Keith Seitz <keiths@redhat.com>
1701
1702 * defs.h: Include build-gnulib/config.h
1703
6ca1b147
JM
17042012-08-22 Joseph Myers <joseph@codesourcery.com>
1705
1706 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1707 and blx pc.
1708
8315665e
YPK
17092012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1710
1711 Add a new "python-interactive" command that starts a standard
1712 Python interactive prompt with "pi" as alias, and add "py" as
1713 an alias to "python".
1714 * NEWS: Mention the new commands.
8315665e
YPK
1715 * python/python.c (eval_python_command): New function.
1716 (python_interactive_command): For "python-interactive" with
1717 arguments, call eval_python_command. For "python-interactive"
1718 without arguments, call PyRun_InteractiveLoop.
1719 (_initialize_python): Add "python-interactive" command with
1720 "pi" as alias, and add "py" as an alias to "python".
1721
522002f9
TT
17222012-08-22 Tom Tromey <tromey@redhat.com>
1723
1724 * defs.h (quit_flag): Don't declare.
1725 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1726 (QUIT): Use new functions.
1727 * event-top.c (command_handler): Use clear_quit_flag.
1728 (handle_sigint): Use set_quit_flag.
1729 (async_request_quit): Use check_quit_flag. Don't check
1730 immediate_quit.
1731 * exceptions.c (throw_exception): Use clear_quit_flag.
1732 * main.c (captured_main): Use clear_quit_flag.
1733 * python/python.c (clear_quit_flag, set_quit_flag)
1734 (check_quit_flag): New functions.
1735 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1736 clear_quit_flag.
1737 * remote.c (remote_wait_as): Use check_quit_flag,
1738 clear_quit_flag.
1739 (remote_start_remote): Call QUIT.
1740 * symfile.c (load_progress): Use check_quit_flag.
1741 * top.c (command_loop): Use clear_quit_flag.
1742 (command_line_input): Call QUIT.
1743 * utils.c (quit_flag): Conditionally define.
1744 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1745 functions.
1746 (prompt_for_continue): Call QUIT. Use quit, not
1747 async_request_quit.
1748 * remote-mips.c (mips_expect_timeout): Call QUIT.
1749 * monitor.c (monitor_expect): Call QUIT.
1750
b583003e
TT
17512012-08-22 Tom Tromey <tromey@redhat.com>
1752
1753 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1754 (async_init_signals): Update.
1755 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1756 (SIGWINCH_HANDLER_BODY): Remove.
1757
e1507e95
TT
17582012-08-22 Tom Tromey <tromey@redhat.com>
1759
1760 * jit.c (jit_object_close_impl): Don't malloc the objfile
1761 name.
1762 * objfiles.c (allocate_objfile): Don't malloc the objfile
1763 name.
1764 (free_objfile): Don't free the objfile name.
1765 * objfiles.h (struct objfile) <name>: Update comment.
1766 * symfile.c (reread_symbols): Fix reference counting. Don't
1767 malloc objfile name.
1768
1c00ec6b
TT
17692012-08-22 Tom Tromey <tromey@redhat.com>
1770
1771 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1772 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1773 (symfile_bfd_open): Likewise.
1774 (generic_load): Likewise.
1775 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1776 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1777 gdb_bfd_open.
1778 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1779 Use gdb_bfd_open.
1780 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1781 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1782 (pmon_load_fast): Likewise.
1783 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1784 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1785 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1786 (macho_check_dsym): Likewise.
1787 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1788 (m32r_upload_command): Likewise.
1789 * gdb_bfd.h (gdb_bfd_cache): Declare.
1790 * gdb_bfd.c (struct gdb_bfd_data): New.
1791 (gdb_bfd_cache): New global.
1792 (struct gdb_bfd_cache_search): New.
1793 (hash_bfd): New function.
1794 (eq_bfd): Likewise.
1795 (gdb_bfd_open): Likewise.
1796 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1797 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1798 gdb_bfd_data.
1799 * exec.c (exec_file_attach): Use gdb_bfd_open.
1800 * dsrec.c (load_srec): Use gdb_bfd_open.
1801
6532ff36
TT
18022012-08-22 Tom Tromey <tromey@redhat.com>
1803
1804 * dwarf2read.c (macro_start_file): Update.
1805 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1806 (free_objfile_per_bfd_storage): Destroy macro_cache.
1807 (allocate_objfile, free_objfile): Update.
1808 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1809 New field.
1810 (struct objfile) <macro_cache>: Remove.
1811 * symfile.c (reread_symbols): Update.
1812 * symmisc.c (print_symbol_bcache_statistics): Update.
1813 (print_objfile_statistics): Update.
1814
706e3705
TT
18152012-08-22 Tom Tromey <tromey@redhat.com>
1816
1817 * elfread.c (elf_symtab_read): Update.
1818 * objfiles.c (objfiles_bfd_data): New global.
1819 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1820 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1821 (allocate_objfile, free_objfile): Update.
1822 (_initialize_objfiles): Initialize objfiles_bfd_data.
1823 * objfiles.h (struct objfile_per_bfd_storage): New.
1824 (struct objfile) <per_bfd>: New field.
1825 <filename_cache>: Remove.
1826 (set_objfile_per_bfd): Declare.
1827 * symfile.c (reread_symbols): Update. Call
1828 set_objfile_per_bfd.
1829 (allocate_symtab): Update.
1830 * symmisc.c (print_symbol_bcache_statistics): Update.
1831 (print_objfile_statistics): Print the size of the BFD obstack.
1832
e992eda4
TT
18332012-08-22 Tom Tromey <tromey@redhat.com>
1834
1835 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1836 * gdb_bfd.c: Use DEFINE_REGISTRY.
1837 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1838 (gdb_bfd_ref): Call bfd_alloc_data.
1839 (gdb_bfd_unref): Call bfd_free_data.
1840
6b81941e
TT
18412012-08-22 Tom Tromey <tromey@redhat.com>
1842
1843 * registry.h (struct registry_fields): New.
1844 (REGISTRY_FIELDS): Redefine.
1845 (REGISTRY_ACCESS_FIELD): New macro.
1846 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1847 functions.
1848
8e260fc0
TT
18492012-08-22 Tom Tromey <tromey@redhat.com>
1850
1851 * auto-load.c (_initialize_auto_load): Update.
1852 * solib-svr4.c (_initialize_svr4_solib): Update
1853 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1854 * solib-darwin.c (_initialize_darwin_solib): Update.
1855 * registry.h: New file.
1856 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1857 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1858 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1859 (register_program_space_data_with_cleanup)
1860 (register_program_space_data, program_space_alloc_data)
1861 (clear_program_space_data, set_program_space_data)
1862 (program_space_data): Don't declare.
1863 * progspace.c: Use DEFINE_REGISTRY.
1864 (struct program_space_data, struct
1865 program_space_data_registration, struct
1866 program_space_data_registry, program_space_data_registry)
1867 (register_program_space_data_with_cleanup)
1868 (register_program_space_data, program_space_alloc_data)
1869 (program_space_free_data, clear_program_space_data)
1870 (set_program_space_data, program_space_data): Remove.
1871 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
1872 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
1873 (register_objfile_data_with_cleanup, register_objfile_data)
1874 (clear_objfile_data, set_objfile_data, objfile_data): Don't
1875 declare.
1876 * objfiles.c: Use DEFINE_REGISTRY.
1877 (struct objfile_data, struct objfile_data_registration, struct
1878 objfile_data_registry, objfile_data_registry)
1879 (register_objfile_data_with_cleanup, register_objfile_data)
1880 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
1881 (set_objfile_data, objfile_data): Remove.
1882 (_initialize_objfiles): Update.
1883 * jit.c (_initialize_jit): Update.
1884 * inflow.c (_initialize_inflow): Update.
1885 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
1886 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
1887 (register_inferior_data_with_cleanup, register_inferior_data)
1888 (clear_inferior_data, set_inferior_data, inferior_data): Don't
1889 declare.
1890 * inferior.c: Use DEFINE_REGISTRY.
1891 (struct inferior_data, struct inferior_data_registration, struct
1892 inferior_data_registry, inferior_data_registry)
1893 (register_inferior_data_with_cleanup, register_inferior_data)
1894 (inferior_alloc_data, inferior_free_data clear_inferior_data)
1895 (set_inferior_data, inferior_data): Remove.
1896 * auxv.c (_initialize_auxv): Update.
1897 * ada-lang.c (_initialize_ada_language): Update.
1898 * breakpoint.c (_initialize_breakpoint): Update.
1899 * i386-nat.c (i386_use_watchpoints): Update.
1900
ed9eebaf
TT
19012012-08-22 Tom Tromey <tromey@redhat.com>
1902
1903 * exec.c (exec_close, exec_file_attach): Update.
1904 (add_to_section_table): Initialize 'key' field.
1905 (add_target_sections, remove_target_sections): Add 'key' argument.
1906 * exec.h (add_target_sections, remove_target_sections): Add
1907 'key' argument.
1908 * solib.c (solib_map_sections, update_solib_list, clear_solib)
1909 (reload_shared_libraries_1): Update.
1910 * target.h (struct target_section) <key>: New field.
1911
2f2e97fa
TT
19122012-08-22 Tom Tromey <tromey@redhat.com>
1913
1914 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
1915
b3dbbd6f
PM
19162012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
1917
1918 * symfile.c (allocate_symtab): Use host_address_to_string
1919 function instead of cast of pointer to long which is not
1920 compatible with x86_64-w64-mingw32 build.
1921
f94363d7
AP
19222012-08-19 Andrew Pinski <apinski@cavium.com>
1923
1924 * mips-tdep.c (is_octeon): New function.
1925 (is_octeon_bbit_op): New function.
1926 (mips32_next_pc): Handle Octeon's bbit instructions.
1927 (mips32_instruction_has_delay_slot): Likewise.
1928
78a59c2f
AP
19292012-08-19 Andrew Pinski <apinski@cavium.com>
1930
1931 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
1932 before the function.
1933
4f5bcb50
AP
19342012-08-19 Andrew Pinski <apinski@cavium.com>
1935
1936 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
1937
e5afdbd7
KS
19382012-08-19 Keith Seitz <keiths@redhat.com>
1939
1940 PR c++/14365
1941 * c-typeprint.c (c_type_print_varspec_prefix): Pass
1942 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
1943
13c9750e
EZ
19442012-08-18 Eli Zaretskii <eliz@gnu.org>
1945
1946 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
1947 The typo broke "make TAGS".
1948
db761810 19492012-08-17 Joel Brobecker <brobecker@adacore.com>
1950
1951 GDB 7.5 released.
1952
a451cb65
KS
19532012-08-17 Keith Seitz <keiths@redhat.com>
1954
1955 PR c++/13356
1956 * gdbtypes.c (strict_type_checking): New variable.
1957 (show_strict_type_checking): New function.
1958 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
1959 if strict type checking is disabled.
1960 (_initialize_gdbtypes): Add "check type" subcommand.
1961 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
1962
19632012-08-17 Keith Seitz <keiths@redhat.com>
1964
1965 * language.h (type_mode): Remove.
1966 (type_check): Remove.
1967 (struct language_defn): Remove la_type_check.
1968 (STRICT_TYPE): Remove unused macro.
1969 (type_error): Remove.
1970 * language.c (set_type_range_case): Renamed to ...
1971 (set_range_case): ... this. Update all callers.
1972 Remove type_mode/type_check.
1973 (type_mode): Remove.
1974 (type_check): Remove.
1975 (show_type_command): Remove.
1976 (set_type_command): Remove.
1977 (language_info): Remove type checking output.
1978 (type_error): Remove unused function.
1979 (range_error): Update comment.
1980 (unknown_language_defn): Remove la_type_check.
1981 (auto_language_defn): Likewise.
1982 (local_language_defn): Likewise.
1983 (_initialize_language): Remove "check type" subcommand.
1984 * ada-lang.c (ada_language_defn): Remove la_type_check.
1985 * c-lang.c (c_language_defn): Likewise.
1986 (cplus_language_defn): Likewise.
1987 (asm_language_defn): Likewise.
1988 (minimal_language_defn): Likewise.
1989 * d-lang.c (d_language_defn): Likewise.
1990 * f-lang.c (f_language_defn): Likewise.
1991 * go-lang.c (go_language_defn): Likewise.
1992 * jv-lang.c (java_language_defn): Likewise.
1993 * m2-lang.c (m2_language_defn): Likewise.
1994 * objc-lang.c (objc_language_defn): Likewise.
1995 * opencl-lang.c (opencl_language_defn): Likewise.
1996 * p-lang.c (pascal_language_defn): Likewise.
1997
dbf6a605
MF
19982012-08-16 Mike Frysinger <vapier@gentoo.org>
1999
2000 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2001
973e3cf7
JB
20022012-08-16 Joel Brobecker <brobecker@adacore.com>
2003
2004 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2005 New function.
2006 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2007 using the regache. Use ia64_hpux_get_register_from_save_state_t
2008 to access the bsp and bspstore registers if not.
2009
d80ee84f
JB
20102012-08-16 Joel Brobecker <brobecker@adacore.com>
2011
2012 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2013 * breakpoint.c (detach_breakpoints): Change pid parameter into
2014 a ptid. Adjust code accordingly.
2015 * infrun.c (handle_inferior_event): Delete variable child_pid.
2016 Update call to detach_breakpoints to pass the child ptid for
2017 fork events.
2018 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2019 assert that inferior_ptid's lwp is zero.
2020 (linux_handle_extended_wait): Update call to detach_breakpoints.
2021 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2022 detach_breakpoints.
2023
2dcc6086
JB
20242012-08-16 Joel Brobecker <brobecker@adacore.com>
2025
2026 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2027 parent, only call detach_breakpoints if tts.tts_event ==
2028 TTEVT_VFORK.
2029
0c92d8c1
JB
20302012-08-16 Joel Brobecker <brobecker@adacore.com>
2031
2032 * dwarf2-frame.c (dwarf2_frame_cache): Use
2033 get_frame_address_in_block instead of get_frame_pc as
2034 the bound for executing the frame's FDE.
2035
6b1755ce
YQ
20362012-08-16 Yao Qi <yao@codesourcery.com>
2037
2038 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2039 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2040 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2041 (c_type_print_varspec_suffix): Likewise.
2042 * eval.c (evaluate_subexp_standard): Likewise.
2043 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2044 (f_type_print_varspec_suffix): Likewise.
2045 * gdbtypes.c (is_scalar_type): Likewise.
2046 (recursive_dump_type): Likewise.
2047 * infcall.c (value_arg_coerce): Likewise.
2048 * m2-valprint.c (m2_val_print): Likewise.
2049 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2050 (pascal_type_print_varspec_suffix): Likewise.
2051 (pascal_type_print_base): Likewise.
2052 * p-valprint.c (pascal_val_print): Likewise.
2053 (pascal_val_print): Likewise.
2054 * valops.c (value_slice): Likewise.
2055 * valprint.c (scalar_type_p): Likewise.
2056 * valarith.c (value_bitstring_subscript): Remove.
2057 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2058 Remove comment on TYPE_CODE_BITSTRING.
2059
2060 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2061 TYPE_CODE_BITSTRING.
2062
2063 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2064 slot 0.
2065
8acc4065
YQ
20662012-08-16 Yao Qi <yao@codesourcery.com>
2067
2068 * tracepoint.c (trace_find_none_command): Remove.
2069 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2070
8128fd8e
YQ
20712012-08-16 Yao Qi <yao@codesourcery.com>
2072
2073 * remote.c (handle_notification): Remove parameter 'length'.
2074 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2075
2873700e
KS
20762012-08-15 Keith Seitz <keiths@redhat.com>
2077
2078 * gdbtypes.c (opaque_type_resolution): Make static.
2079 Add missing comment.
2080 (overload_debug): Add missing comment.
2081 (show_opaque_type_resolution): Likewise.
2082 (show_overload_debug): Likewise.
2083 (print_bit_vector): Remove unnecessary forward declaration.
2084 (print_arg_types): Likewise.
2085 (dump_fn_fieldlists): Likewise.
2086 (print_cplus_stuff): Likewise.
2087
b82d08cd
TT
20882012-08-15 Tom Tromey <tromey@redhat.com>
2089
2090 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2091 (gdb_bfd_ref): Initialize new field.
2092 (gdb_bfd_unref): Unref the archive BFD.
2093 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2094 parent archive.
2095
db6573d6
TT
20962012-08-15 Tom Tromey <tromey@redhat.com>
2097
2098 PR python/14387:
2099 * python/py-bpevent.c (create_breakpoint_event_object): Update
2100 comment.
2101 * python/py-event.c (evpy_add_attribute): Update comment.
2102 * python/py-exitedevent.c (create_exited_event_object): Fix
2103 reference counting and error handling.
2104 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2105 Fix reference counting.
2106 * python/py-signalevent.c (create_signal_event_object): Fix
2107 reference counting and error handling.
2108 * python/py-stopevent.c (emit_stop_event): Fix reference
2109 counting.
2110 * python/py-threadevent.c (get_event_thread): Return a
2111 borrowed reference.
2112 * python/py-type.c (convert_field): Fix reference counting.
2113
a036ba48
TT
21142012-08-15 Tom Tromey <tromey@redhat.com>
2115
2116 * dwarf2read.c (dwarf_decode_macro_bytes)
2117 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2118 as hash key.
2119
486c7739
MF
21202012-08-14 Mike Frysinger <vapier@gentoo.org>
2121
2122 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2123 stepi, nexti, finish, next, step, jump, and continue commands.
2124 * infrun.c (_initialize_infrun): Update help text for the handle
2125 command.
2126
4cf93a03
DE
21272012-08-14 Doug Evans <dje@google.com>
2128
70b099cf
DE
2129 * gdbtypes.c (struct extra): Delete, unused.
2130
5212577a
DE
2131 * gdbtypes.c: Whitespace cleanup.
2132 (address_space_name_to_int): Remove "extern" from definition.
2133 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2134
4cf93a03
DE
2135 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2136 TYPE_POINTER_TYPE (type).
2137
3756ef7e
GB
21382012-08-14 Gary Benson <gbenson@redhat.com>
2139
2140 * solib-svr4.c (svr4_free_library_list): Use free_so.
2141
40d72643
MF
21422012-08-13 Mike Frysinger <vapier@gentoo.org>
2143
2144 * .gitignore: Add go-exp.c.
2145
f47f77df
DE
21462012-08-13 Doug Evans <dje@google.com>
2147
2148 * value.c (show_convenience): Tweak comment.
2149 (_initialize_values): Mention convenience functions in the help text
2150 for "show convenience".
2151
7507c54a
YQ
21522012-08-13 Yao Qi <yao@codesourcery.com>
2153
2154 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2155 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2156 TERNOP_SLICE_COUNT.
2157 * eval.c (evaluate_subexp_standard): Likewise.
2158 * expprint.c (print_subexp_standard): Likewise.
2159 (dump_subexp_body_standard): Likewise.
2160 * parse.c (operator_length_standard): Likewise.
2161
5cad9736
YQ
21622012-08-13 Yao Qi <yao@codesourcery.com>
2163
2164 * std-operator.def: Remove OP_BITSTRING.
2165 * breakpoint.c (watchpoint_exp_is_const): Update.
2166 * eval.c (evaluate_subexp_standard): Remove handling to
2167 OP_BITSTRING.
2168 * expprint.c (print_subexp_standard): Likewise.
2169 (dump_subexp_body_standard): Likewise.
2170 * parse.c (operator_length_standard): Likewise.
2171 * valops.c (value_bitstring): Remove.
2172 * value.h: Remove the declaration of 'value_bitstring'.
2173
bad7670a
SDJ
21742012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2175
2176 * linespec.c (find_methods): Remove unused variables `i1' and
2177 `name_len'.
2178 (decode_line_full): Likewise for `arg_start'.
2179
d9dce7fa
SDJ
21802012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2181
2182 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2183 (zlib_decompress_section): Likewise for `section_data'.
2184 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2185
a72c3253
DE
21862012-08-10 Doug Evans <dje@google.com>
2187
2188 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2189 * NEWS: Document them.
2190 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2191 function/strfns.py.
2192 * python/py-type.c (typy_array_1): New function.
2193 (typy_array): Call it.
2194 (typy_vector): New function.
2195 (type_object_methods): Add "vector".
2196 * python/lib/gdb/function/__init__.py: New file.
2197 * python/lib/gdb/function/strfns.py: New file.
2198
200bc880
SP
21992012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2200
2201 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2202 for TYPE_FIELD_BITPOS.
2203 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2204
de0bea00
MF
22052012-08-10 Mike Frysinger <vapier@gentoo.org>
2206
2207 PR cli/10436:
2208 * common/vec.h (VEC_merge): Define.
2209 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2210 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2211 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2212 * completer.c: Include gdb_signals.h.
2213 (signal_completer): Define.
2214 * completer.h (signal_completer): Add prototype.
2215 * infcmd.c (_initialize_infcmd): Assign the command
2216 completer for "signal" to handle_completer.
2217 * infrun.c: Include completer.h.
2218 (handle_completer): Define.
2219 (_initialize_infrun): Declare a new local variable c. Store the
2220 result of add_com("handle") to it. Assign the command
2221 completer for "handle" to handle_completer.
2222
5b9afe8a
YQ
22232012-08-09 Yao Qi <yao@codesourcery.com>
2224
2225 * cli/cli-decode.c (set_cmd_prefix): New.
2226 (lookup_cmd_for_prefixlist): New.
2227 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2228 of each cmd_list_element in *prefixlist.
2229 (add_setshow_cmd_full): set_cmd_prefix.
2230 (add_alias_cmd): Likewise.
2231 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2232 Declare 'auto_boolean_enums'.
2233 * cli/cli-setshow.c: Include "observer.h".
2234 (notify_command_param_changed_p): New.
2235 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2236 Remove 'static'.
2237 (do_setshow_command): Split it to ...
2238 (do_set_command, do_show_command): ... them. New.
2239 (do_set_command): Call observer_notify_command_param_changed if
2240 notify_command_param_changed_p returns true.
2241 (cmd_show_list): Caller update.
2242 * auto-load.c (set_auto_load_cmd): Likewise.
2243 * remote.c (show_remote_cmd): Likewise.
2244 * cli/cli-setshow.h: Update declarations.
2245 * top.c (execute_command): Call do_set_command and do_show_command.
2246
2247 * NEWS: Mention new MI notification.
2248 * mi/mi-interp.c: Declare mi_command_param_changed.
2249 (mi_interpreter_init): Attach mi_command_param_changed to
2250 observer command_param_changed.
2251 (mi_command_param_changed): New.
2252 Remove mi_suppress_breakpoint_notifications.
2253 Define global variable mi_suppress_notification.
2254 (mi_breakpoint_created): Update.
2255 (mi_breakpoint_deleted): Likewise.
2256 (mi_breakpoint_modified): Likewise.
2257 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2258 'gdb-set' and set mi_suppress_notification.
2259 * mi/mi-main.h: (mi_suppress_notification): New struct.
2260
1969df89
JK
22612012-08-09 Andreas Tobler <andreast@fgznet.ch>
2262 Jan Kratochvil <jan.kratochvil@redhat.com>
2263
2264 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2265
8bfd80db
YQ
22662012-08-09 Yao Qi <yao@codesourcery.com>
2267
2268 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2269 (skiplist): Move it to skip.c.
2270 (init_cmd_lists): Remove code setting enablebreaklist and
2271 skiplist to NULL.
2272 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2273 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2274 skiplist.
2275 * gdbcmd.h: Likewise.
2276 * skip.c (_initialize_step_skip): Move 'skiplist' from
2277 cli/cli-cmds.c.
2278
28578e6b
YQ
22792012-08-09 Yao Qi <yao@codesourcery.com>
2280
2281 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2282 * gnu-nat.c, symfile.c: Likewise.
2283
260c0b2a
DE
22842012-08-08 Aaron Gamble <agamble@google.com>
2285
2286 * utils.c (prompt_for_continue_wait_time): New static global.
2287 (make_command_stats_cleanup): Initialize it.
2288 (report_command_stats): Subtract time waiting for user.
2289 (prompt_for_continue): Track time waiting for user.
2290 (defaulted_query): Track time waiting for user.
2291
4f485ebc
DE
22922012-08-08 Doug Evans <dje@google.com>
2293
2294 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2295 UNOP_MEMVAL_TYPE.
2296 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2297 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2298 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2299 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2300 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2301 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2302 elt.
2303 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2304 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2305 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2306 (dump_prefix_expression): Handle OP_TYPE.
2307
2acf2b39
KS
23082012-08-08 Keith Seitz <keiths@redhat.com>
2309
2310 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2311 addr_start.
2312
e6712ff1
DE
23132012-08-08 Doug Evans <dje@google.com>
2314
2315 * linux-thread-db.c: #include "gdb_vecs.h".
2316 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2317 updated.
2318 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2319 (thread_db_load_search): Use a vector to iterate over path elements.
2320 Handle text appearing after "$pdir".
2321
2322 * gdb_string.h: Moved to ...
2323 * common/gdb_string.h: ... here.
2324 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2325 gdb_string.h and gdb_assert.h.
2326
ab854e54
YQ
23272012-08-08 Yao Qi <yao@codesourcery.com>
2328
2329 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2330 (tic6x_value_to_register): Likewise.
2331 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2332 and set_gdbarch_value_to_register.
2333
4f69f4c2
JK
23342012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2335 Jean-Marc Saffroy <saffroy@gmail.com>
2336
2337 PR 11804
2338 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2339 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2340 * gcore.c (gcore_create_callback): New function comment. Add modified
2341 parameter. Only write modified regions. Set SEC_READONLY exactly
2342 according to MODIFIED.
2343 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2344 the passed modified value to FUNC.
2345 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2346 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2347 first. New variables modified and has_anonymous. Parse the lines of
2348 smaps file. Add the passed MODIFIED value to FUNC.
2349 * procfs.c (find_memory_regions_callback): Add the passed modified
2350 value.
2351
78ac5f83
TT
23522012-08-06 Tom Tromey <tromey@redhat.com>
2353
2354 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2355 (dwarf2_frame_cache): Use it.
2356 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2357 cache initialization constraint.
2358
2c12abee
TT
23592012-08-06 Tom Tromey <tromey@redhat.com>
2360
2361 PR python/14386:
2362 * varobj.c (update_dynamic_varobj_children): Don't call
2363 PyIter_Check.
2364
4979d7f0
TT
23652012-08-06 Tom Tromey <tromey@redhat.com>
2366
2367 PR cli/14392:
2368 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2369
f3c8a52a
JK
23702012-08-06 Nathaniel Flath <flat0103@gmail.com>
2371
2372 * NEWS: New entry for 'cd' default parameters.
2373 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2374
5a1cf4d6
TT
23752012-08-03 Tom Tromey <tromey@redhat.com>
2376
2377 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2378 return.
2379
7c3270ae
UW
23802012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2381
2382 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2383 to attempting lseek/write.
2384 (inf_child_fileio_pread): Likewise for pread.
2385
ccce17b0
YQ
23862012-08-02 Yao Qi <yao@codesourcery.com>
2387
2388 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2389 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2390 add_setshow_zinteger_cmd.
2391 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2392 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2393 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2394 instead of add_setshow_zinteger_cmd.
2395 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2396 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2397 instead of add_setshow_zinteger_cmd.
2398 * frame.c (frame_debug): Add 'unsigned'.
2399 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2400 add_setshow_zinteger_cmd.
2401 * frame.h: Update the declaration of 'frame_debug'.
2402 * gdbtypes.c (overload_debug): Add 'unsigned'.
2403 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2404 add_setshow_zinteger_cmd.
2405 * inferior.h: Update declaration of 'debug_infrun'.
2406 * infrun.c (debug_infrun): Add 'unsigned'.
2407 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2408 add_setshow_zinteger_cmd.
2409 * jit.c (jit_debug): Add 'unsigned'.
2410 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2411 add_setshow_zinteger_cmd.
2412 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2413 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2414 instead of add_setshow_zinteger_cmd.
2415 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2416 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2417 add_setshow_zinteger_cmd.
2418 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2419 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2420 instead of add_setshow_zinteger_cmd.
2421 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2422 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2423 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2424 intead of add_setshow_zinteger_cmd.
2425 * mips-tdep.c (mips_debug): Add 'unsigned'.
2426 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2427 instead of add_setshow_zinteger_cmd.
2428 * monitor.c (monitor_debug): Add 'unsigned'.
2429 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2430 add_setshow_zinteger_cmd.
2431 * observer.c (observer_debug): Add 'unsigned'.
2432 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2433 add_setshow_zinteger_cmd.
2434 * parse.c (expressiondebug): Add 'unsigned'.
2435 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2436 add_setshow_zinteger_cmd.
2437 * record.c (record_debug): Add 'unsigned'.
2438 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2439 add_setshow_zinteger_cmd.
2440 * record.h: Update the declaration of 'record_debug'.
2441 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2442 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2443 add_setshow_zinteger_cmd.
2444 * serial.c (global_serial_debug_p): Add 'unsigned'.
2445 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2446 add_setshow_zinteger_cmd.
2447 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2448 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2449 add_setshow_zinteger_cmd.
2450 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2451 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2452 add_setshow_zinteger_cmd.
2453 * target.c (targetdebug): Add 'unsigned'.
2454 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2455 add_setshow_zinteger_cmd.
2456 * valops.c (overload_debug): Add 'unsigned'.
2457 * varobj.c (varobjdebug): Add 'unsigned'.
2458 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2459 add_setshow_zinteger_cmd.
2460 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2461 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2462 instead of add_setshow_zinteger_cmd.
2463
2464 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2465 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2466 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2467 instead of add_setshow_zinteger_cmd.
2468 * gdbarch.c, gdbarch.h: Re-generated.
2469
95b07c96
YQ
24702012-08-02 Yao Qi <yao@codesourcery.com>
2471
2472 * nto-tdep.c: Don't include cli/cli-decode.h and
2473 cli/cli-cmds.h.
2474 (_initialize_nto_tdep): Remove.
2475 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2476 Remove field.
2477 Remove macro nto_internal_debugging.
2478
57295b0b
RH
24792012-08-01 Richard Henderson <rth@redhat.com>
2480
2481 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2482 (mep-*-*) [gdb_target_obs]: Likewise.
2483
f782ad9b
AS
24842012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2485
2486 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2487 linux_get_siginfo_type.
2488
a14dd77e
JK
24892012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2490
2491 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2492 AT_ENTRY_POINT.
2493 (call_function_by_hand) <ON_STACK>: Call write_memory with
2494 gdbarch_breakpoint_from_pc, if possible.
2495 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2496 here.
2497
1467929f
YQ
24982012-07-31 Yao Qi <yao@codesourcery.com>
2499
2500 * tracepoint.c: Add 'static' for some variables.
2501
70976b65
YQ
25022012-07-31 Yao Qi <yao@codesourcery.com>
2503
2504 * go32-nat.c: Declare _initialize_go32_nat.
2505 * ser-go32.c: Declare _initialize_ser_dos.
2506 * top.c (do_chdir_cleanup): Add 'static'.
2507
eff9c3e6
KS
25082012-07-30 Keith Seitz <keiths@redhat.com>
2509
2510 * linespec.c (linespec_lex_number): A number followed
2511 by quotes is a valid number, too.
2512
728400d7
TT
25132012-07-30 Tom Tromey <tromey@redhat.com>
2514
2515 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2516
fcf303ab
UW
25172012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2518
2519 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2520 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2521
4e969b4f
AB
25222012-07-30 Andrew Burgess <aburgess@broadcom.com>
2523
2524 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2525 invalid or reevaluated to prevent prevent references to possibly
2526 delete'd type objects being left in the varobj.
2527
c4bfde41
JK
25282012-07-27 Tom Tromey <tromey@redhat.com>
2529 Jan Kratochvil <jan.kratochvil@redhat.com>
2530
2531 * copying.awk: Print buffer-read-only and vi ro markers.
2532 * copying.c: Rebuild.
2533 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2534 * gdbarch.c, gdbarch.h: Rebuild.
2535 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2536 buffer-read-only and vi ro markers.
2537 * features/arm-with-iwmmxt.c: Rebuild.
2538 * features/arm-with-m-fpa-layout.c: Rebuild.
2539 * features/arm-with-m-vfp-d16.c: Rebuild.
2540 * features/arm-with-m.c: Rebuild.
2541 * features/arm-with-neon.c: Rebuild.
2542 * features/arm-with-vfpv2.c: Rebuild.
2543 * features/arm-with-vfpv3.c: Rebuild.
2544 * features/i386/amd64-avx-linux.c: Rebuild.
2545 * features/i386/amd64-avx.c: Rebuild.
2546 * features/i386/amd64-linux.c: Rebuild.
2547 * features/i386/amd64.c: Rebuild.
2548 * features/i386/i386-avx-linux.c: Rebuild.
2549 * features/i386/i386-avx.c: Rebuild.
2550 * features/i386/i386-linux.c: Rebuild.
2551 * features/i386/i386-mmx-linux.c: Rebuild.
2552 * features/i386/i386-mmx.c: Rebuild.
2553 * features/i386/i386.c: Rebuild.
2554 * features/i386/x32-avx-linux.c: Rebuild.
2555 * features/i386/x32-avx.c: Rebuild.
2556 * features/i386/x32-linux.c: Rebuild.
2557 * features/i386/x32.c: Rebuild.
2558 * features/mips-dsp-linux.c: Rebuild.
2559 * features/mips-linux.c: Rebuild.
2560 * features/mips64-dsp-linux.c: Rebuild.
2561 * features/mips64-linux.c: Rebuild.
2562 * features/rs6000/powerpc-32.c: Rebuild.
2563 * features/rs6000/powerpc-32l.c: Rebuild.
2564 * features/rs6000/powerpc-403.c: Rebuild.
2565 * features/rs6000/powerpc-403gc.c: Rebuild.
2566 * features/rs6000/powerpc-405.c: Rebuild.
2567 * features/rs6000/powerpc-505.c: Rebuild.
2568 * features/rs6000/powerpc-601.c: Rebuild.
2569 * features/rs6000/powerpc-602.c: Rebuild.
2570 * features/rs6000/powerpc-603.c: Rebuild.
2571 * features/rs6000/powerpc-604.c: Rebuild.
2572 * features/rs6000/powerpc-64.c: Rebuild.
2573 * features/rs6000/powerpc-64l.c: Rebuild.
2574 * features/rs6000/powerpc-7400.c: Rebuild.
2575 * features/rs6000/powerpc-750.c: Rebuild.
2576 * features/rs6000/powerpc-860.c: Rebuild.
2577 * features/rs6000/powerpc-altivec32.c: Rebuild.
2578 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2579 * features/rs6000/powerpc-altivec64.c: Rebuild.
2580 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2581 * features/rs6000/powerpc-cell32l.c: Rebuild.
2582 * features/rs6000/powerpc-cell64l.c: Rebuild.
2583 * features/rs6000/powerpc-e500.c: Rebuild.
2584 * features/rs6000/powerpc-e500l.c: Rebuild.
2585 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2586 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2587 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2588 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2589 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2590 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2591 * features/rs6000/powerpc-vsx32.c: Rebuild.
2592 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2593 * features/rs6000/powerpc-vsx64.c: Rebuild.
2594 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2595 * features/rs6000/rs6000.c: Rebuild.
2596 * features/s390-linux32.c: Rebuild.
2597 * features/s390-linux32v1.c: Rebuild.
2598 * features/s390-linux32v2.c: Rebuild.
2599 * features/s390-linux64.c: Rebuild.
2600 * features/s390-linux64v1.c: Rebuild.
2601 * features/s390-linux64v2.c: Rebuild.
2602 * features/s390x-linux64.c: Rebuild.
2603 * features/s390x-linux64v1.c: Rebuild.
2604 * features/s390x-linux64v2.c: Rebuild.
2605 * features/tic6x-c62x-linux.c: Rebuild.
2606 * features/tic6x-c62x.c: Rebuild.
2607 * features/tic6x-c64x-linux.c: Rebuild.
2608 * features/tic6x-c64x.c: Rebuild.
2609 * features/tic6x-c64xp-linux.c: Rebuild.
2610 * features/tic6x-c64xp.c: Rebuild.
2611
826f0041
TT
26122012-07-27 Tom Tromey <tromey@redhat.com>
2613
2614 * c-exp.y (classify_name): Avoid assignment in condition.
2615
84552b16
PA
26162012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2617
2618 * amd64-windows-tdep.c: Include "frame.h".
2619 (amd64_windows_skip_trampoline_code): New function.
2620 (amd64_windows_init_abi): Add trampoline registration.
2621
a8a64aa8
YQ
26222012-07-27 Yao Qi <yao@codesourcery.com>
2623
2624 * tracepoint.c (cur_traceframe_number): Remove.
2625 (set_tfile_traceframe): Remove.
2626 (tfile_trace_find, tfile_fetch_registers): Update callers.
2627 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2628 (tfile_open, tfile_trace_find): Likewise.
2629
d99067cb
YQ
26302012-07-27 Yao Qi <yao@codesourcery.com>
2631
2632 * thread.c (switch_to_thread): Don't call registers_changed.
2633
f2e8016f
TT
26342012-07-26 Tom Tromey <tromey@redhat.com>
2635
f782ad9b
AS
2636 * Makefile.in (SFILES): Remove objc-exp.y.
2637 (YYFILES): Remove objc-exp.c.
2638 (YYOBJ): Remove objc-exp.o.
2639 (local-maintainer-clean): Don't mention objc-exp.c.
2640 * c-exp.y: Include objc-lang.h.
2641 (%union) <class>: New field.
2642 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2643 (exp): Clone subscript production for OBJC_LBRAC. Add various
2644 Objective C productions.
2645 (msglist, msgarglist, msgarg): New productions.
2646 (array_mod, func_mod, operator): Clone productions for
2647 OBJC_LBRAC.
2648 (parse_string_or_char): Handle '@' strings.
2649 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2650 (classify_name): Check la_name_of_this. Recognize ObjC class
2651 names.
2652 * objc-exp.y: Remove.
2653 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2654 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 2655
f66713d2
JK
26562012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2657
2658 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2659
7cfe01b4
JK
26602012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2661
2662 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2663 and decrement.
2664
5ba19b4c
TT
26652012-07-26 Tom Tromey <tromey@redhat.com>
2666
2667 * copying.c: Rebuild.
2668 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2669 'no_class'.
2670
27618ce4
TT
26712012-07-26 Tom Tromey <tromey@redhat.com>
2672
2673 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2674 immediate_quit.
2675 (print_objfile_statistics): Likewise.
2676 (maintenance_print_symbols): Likewise.
2677 (maintenance_print_msymbols): Likewise.
2678 (maintenance_print_objfiles): Likewise.
2679 * psymtab.c (print_partial_symbols): Call QUIT.
2680 (maintenance_print_psymbols): Likewise. Don't modify
2681 immediate_quit.
2682 * copying.c (show_copying_command): Don't modify immediate_quit.
2683 (show_warranty_command): Likewise.
2684 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2685
dd3818c8
KS
26862012-07-26 Keith Seitz <keiths@redhat.com>
2687
2688 * linespec.c (linespec_lexer_lex_number): The input
2689 is also a valid number if the next character is a comma
2690 or colon.
2691
23a80689
JB
26922012-07-26 Joel Brobecker <brobecker@adacore.com>
2693
2694 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2695 configure options.
2696
29f77997
TG
26972012-07-26 Tristan Gingold <gingold@adacore.com>
2698
2699 * machoread.c: Include gdb_bfd.h.
2700
a55c1f32
TG
27012012-07-26 Tristan Gingold <gingold@adacore.com>
2702
2703 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2704 offset.
2705
56eb65bd
SP
27062012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2707
2708 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2709 SIZE to size_t.
2710 (dwarf2_evaluate_loc_desc): Likewise.
2711 (dwarf2_loc_desc_needs_frame): Likewise.
2712 (locexpr_describe_location_1): Likewise.
2713 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2714 size_t.
2715 (struct dwarf2_loclist_baton): Likewise.
2716 * dwarf2read.c (struct dwarf_block): Likewise.
2717 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2718 (decode_locdesc): Expand SIZE and I to size_t.
2719
aec8845c
JK
27202012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2721
2722 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2723
33d7655b
JB
27242012-07-25 Joel Brobecker <brobecker@adacore.com>
2725
2726 * doublest.c (convert_doublest_to_floatformat): If the exponent
2727 is too small, treat the value as zero. If the exponent is too
2728 large, treat the value as infinity.
2729
a22d44ff
JB
27302012-07-25 Joel Brobecker <brobecker@adacore.com>
2731
2732 * configure.ac: Add --enable-lmcheck configure option.
2733 * configure: Regenerate.
2734
d6b28940
TT
27352012-07-25 Tom Tromey <tromey@redhat.com>
2736
f782ad9b
AS
2737 * NEWS: Mention maint info bfds.
2738 * gdb_bfd.c (all_bfds): New global.
2739 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2740 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2741 New functions.
d6b28940 2742
6e73ba20
RC
27432012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2744
2745 * configure.tgt: Add v850*-*-rtems*.
2746
d560eebd
TT
27472012-07-25 Tom Tromey <tromey@redhat.com>
2748
2749 * macrotab.c (macro_bcache_str): Remove cast.
2750
d7cbec71
HZ
27512012-07-25 Hui Zhu <hui_zhu@mentor.com>
2752
2753 * linespec.c (linespec_lexer_lex_number): Update comments,
2754 change the return and add check to make sure the input is
2755 the decimal numbers.
2756 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2757 false, call linespec_lexer_lex_string.
2758
882f447f
TT
27592012-07-24 Tom Tromey <tromey@redhat.com>
2760
2761 * symfile.c (symbol_file_add): Don't open BFD twice.
2762
53ab4066 27632012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
2764
2765 * breakpoint.c (create_breakpoint): Store condition for pending
2766 breakpoints.
2767
108fb0f7
AS
27682012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2769
2770 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2771 (m68k_return_value): Handle complex types like structures.
2772 (m68k_svr4_return_value): Likewise.
2773
1634dcbe
JK
27742012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2775
2776 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2777 parameters to bfd_get_section_name.
2778
e2d12c21
YQ
27792012-07-24 Yao Qi <yao@codesourcery.com>
2780
2781 * cli/cli-setshow.c: Handle case 'var_uinteger'
2782 and 'var_zuninteger' together. Handle case 'var_integer' and
2783 'var_zinteger' together.
2784
64b92e45
KS
27852012-07-23 Keith Seitz <keiths@redhat.com>
2786
2787 * linespec.c (convert_linespec_to_sal): Don't add
2788 any symbols to the result vector if symbol_to_sal
2789 returns zero.
2790
0f5f4ffe
KS
27912012-07-23 Keith Seitz <keiths@redhat.com>
2792
2793 * linespec.c (decode_objc): Record the function name
2794 in the linespec.
2795
da1cc82f
TT
27962012-07-23 Tom Tromey <tromey@redhat.com>
2797
2798 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2799 counting.
2800 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2801 (map_vmap): Acquire a reference to the BFD.
2802
6c18f3e0
SP
28032012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2804
2805 * p-valprint.c (pascal_object_print_value): Replace potentially
2806 unsafe alloca with xmalloc/xfree.
2807 * valops.c (search_struct_method): Likewise.
2808
695c3173
TT
28092012-07-23 Tom Tromey <tromey@redhat.com>
2810
2811 * solib-svr4.c (enable_break): Update.
2812 * bfd-target.h (target_bfd_reopen): Update documentation.
2813
08d2cd74
TT
28142012-07-23 Tom Tromey <tromey@redhat.com>
2815
2816 * symfile.c (separate_debug_file_exists): Update.
2817 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2818 (reread_symbols): Update.
2819 * elfread.c (build_id_verify): Update.
2820 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2821 bfd_open_maybe_remote.
2822
596f7d67
TT
28232012-07-23 Tom Tromey <tromey@redhat.com>
2824
2825 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2826
8ac244b4
TT
28272012-07-23 Tom Tromey <tromey@redhat.com>
2828
2829 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2830 and 'abfd'.
2831 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2832 and 'abfd'.
2833 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2834 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2835 'abfd'.
2836 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2837 * objfiles.c (allocate_objfile): Acquire a new reference.
2838 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2839 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2840 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2841 a cleanup for 'nbfd'.
2842 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2843 for 'nbfd'.
2844 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2845 make a cleanup for 'abfd'.
2846 (symbol_file_add): Make a BFD cleanup.
2847
64c31149
TT
28482012-07-23 Tom Tromey <tromey@redhat.com>
2849
2850 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2851 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2852 * corelow.c (core_open): Use gdb_bfd_fopen.
2853 * dsrec.c (load_srec): Use gdb_bfd_openr.
2854 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2855 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2856 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2857 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2858 (gdb_bfd_fdopenr): New functions.
2859 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2860 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2861 (gdb_bfd_fdopenr): Declare.
2862 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2863 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2864 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2865 gdb_bfd_openr_next_archived_file.
2866 (macho_check_dsym): Use gdb_bfd_openr.
2867 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
2868 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
2869 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
2870 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
2871 gdb_bfd_openr.
2872 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
2873 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
2874 gdb_bfd_openr_next_archived_file.
2875 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2876 Use gdb_bfd_openr.
2877 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2878 gdb_bfd_openr.
2879 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
2880 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
2881 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
2882 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
2883 (symfile_bfd_open): Use gdb_bfd_fopen.
2884 (generic_load): Use gdb_bfd_openr.
2885 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
2886
520b0001
TT
28872012-07-23 Tom Tromey <tromey@redhat.com>
2888
2889 * bfd-target.c (target_bfd_reopen): Update.
2890 * cli/cli-dump.c (bfd_openr_with_cleanup)
2891 (bfd_openw_with_cleanup): Update.
2892 * corelow.c (core_open): Update.
2893 * dsrec.c (load_srec): Update.
2894 * exec.c (exec_file_attach): Update.
2895 * gcore.c (create_gcore_bfd): Update.
2896 * gdb_bfd.c (gdb_bfd_ref): Return void.
2897 (gdb_bfd_open): Update.
2898 * gdb_bfd.h (gdb_bfd_ref): Return void.
2899 Update comments.
2900 * jit.c (jit_bfd_try_read_symtab): Update.
2901 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
2902 * machoread.c (macho_symfile_read_all_oso): Update.
2903 (macho_check_dsym): Update.
2904 * procfs.c (insert_dbx_link_bpt_in_file): Update.
2905 * remote-m32r-sdi.c (m32r_load): Update.
2906 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
2907 * rs6000-nat.c (add_vmap): Update.
2908 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2909 Update.
2910 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
2911 * solib-spu.c (spu_bfd_open): Update.
2912 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
2913 * spu-linux-nat.c (spu_bfd_open): Update.
2914 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
2915 (generic_load): Update.
2916 * windows-nat.c (windows_make_so): Update.
2917
2322ff16
SP
29182012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
2919
2920 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
2921
3def0b36
PA
29222012-07-20 Jeff Kenton <jkenton@tilera.com>
2923
2924 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
2925 SIGTRAMP_FRAME unwinding.
2926
e615022a
DE
29272012-07-20 Doug Evans <dje@google.com>
2928
2929 * NEWS: Document new options "set/show use-deprecated-index-sections",
2930 and delete reference to --use-deprecated-index-sections.
2931 * symfile.h (use_deprecated_index_sections): Delete.
2932 * dwarf2read.c (use_deprecated_index_sections): Make static.
2933 (read_index_from_section): Update wording of how to load
2934 deprecated index sections.
2935 (_initialize_dwarf2_read): New options
2936 "set/show use-deprecated-index-sections".
2937 * main.c (captured_main): Delete --use-deprecated-index-sections.
2938
64776a0b
PA
29392012-07-20 Pedro Alves <palves@redhat.com>
2940
2941 PR threads/11692
2942 PR gdb/12203
2943
2944 * infrun.c (handle_inferior_event) <new thread>: Don't special
2945 case minus_one_ptid.
2946 <TARGET_WAITKIND_SPURIOUS>: Ditto.
2947 * linux-thread-db.c (thread_get_info_callback): Don't return early
2948 if the thread is zombie.
2949 (thread_from_lwp): Change return type to void. Rewrite stale
2950 comment.
2951 (attach_thread): Don't return early if the thread is zombie,
2952 instead set its "dying" flag.
2953 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
2954 (find_new_threads_callback): Don't return early if the thread is
2955 zombie.
2956
09826ec5
PA
29572012-07-20 Pedro Alves <palves@redhat.com>
2958
2959 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
2960 * target.c (target_wait): Likewise.
2961 (str_comma_list_concat_elem, do_option, target_options_to_string):
2962 New functions.
2963 * target.h (target_options_to_string): Declare.
2964
f7a35f02
TT
29652012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
2966 Tom Tromey <tromey@redhat.com>
2967
2968 * dwarf2read.c (dwarf_decode_macros)
2969 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
2970 DW_MACRO_GNU_transparent_include_alt>: New cases.
2971 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
2972 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
2973
b81e1ee0
TT
29742012-07-20 Tom Tromey <tromey@redhat.com>
2975
2976 * dwarf2read.c (try_open_dwo_file): Don't call
2977 gdb_bfd_stash_filename.
2978
99c1624c
PA
29792012-07-20 Pedro Alves <palves@redhat.com>
2980
2981 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2982 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
2983 (i386_process_record): Tweak description comments.
2984
4ffa4fc7
PA
29852012-07-20 Pedro Alves <palves@redhat.com>
2986
2987 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
2988 (i386_process_record): Use record_read_memory.
2989 * record.c (record_read_memory): New function.
2990 (record_arch_list_add_mem, record_exec_insn): Use
2991 record_read_memory.
2992 * record.h (record_read_memory): Declare.
2993
c24343e2
YQ
29942012-07-20 Yao Qi <yao@codesourcery.com>
2995
2996 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
2997 NULL for xfree.
2998
90f47860
PA
29992012-07-19 Pedro Alves <palves@redhat.com>
3000
3001 * record.c (record_resume): Ask the target beneath to report all
3002 signals.
3003
01093045
DE
30042012-07-19 Doug Evans <dje@google.com>
3005
3006 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3007 there's no section at address zero.
3008 (dwarf2_record_block_ranges): Ditto.
3009
a7c3d162
YQ
30102012-07-19 Yao Qi <yao@codesourcery.com>
3011
3012 * command.h, remote.c: Fix a typo in comment.
3013
608b4967
TT
30142012-07-19 Tom Tromey <tromey@redhat.com>
3015
3016 PR exp/13206:
3017 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3018 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3019 OP_DECLTYPE>: New cases.
3020 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3021 (type_exp): Add new productions.
3022 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3023 and decltype.
3024 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3025 New case.
3026 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3027 OP_DECLTYPE>: New case.
3028 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3029 New case.
3030 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3031 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3032
274b54d7
TT
30332012-07-19 Tom Tromey <tromey@redhat.com>
3034
3035 * c-exp.y (enum token_flags): New.
3036 (struct token) <cxx_only>: Remove.
3037 <flags>: New field.
3038 (tokentab3, tokentab2, ident_tokens): Update.
3039 (lex_one_token): Update. Handle FLAG_SHADOW.
3040
9eaf6705
TT
30412012-07-19 Tom Tromey <tromey@redhat.com>
3042
3043 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3044 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3045 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3046 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3047 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3048 type_exp production where appropriate.
3049 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3050 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3051 <UNOP_MEMVAL_TYPE>: New case.
3052 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3053 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3054 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3055 <UNOP_MEMVAL_TYPE>: New case.
3056 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3057 UNOP_REINTERPRET_CAST>: Update.
3058 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3059 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3060 UNOP_REINTERPRET_CAST>: Update.
3061 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3062 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3063 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3064 constants.
3065
6ace3df1
YQ
30662012-07-19 Yao Qi <yao@codesourcery.com>
3067 Jan Kratochvil <jan.kratochvil@redhat.com>
3068
3069 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3070 and case 'var_optional_filename' together.
3071 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3072 instead of add_setshow_optional_filename_cmd for setshow command
3073 'args'. Set completer for 'set args'.
3074
48faced0
DE
30752012-07-18 Doug Evans <dje@google.com>
3076
3077 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3078 * common/gdb_vecs.c: New file, contents from utils.c.
3079 * common/host-defs.h: New file, contents from defs.h.
3080 * utils.h: New file, contents from defs.h.
3081 * defs.h: Move all declarations of objects defined in utils.c
3082 to utils.h (except QUIT() and related).
3083 #include "utils.h", "host-defs.h".
3084 * probe.h (probe_p): Move here from gdb_vecs.h.
3085 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3086 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3087 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3088 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3089 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3090 (COMMON_OBS): Add gdb_vecs.o.
3091 (gdb_vecs.o): New rule.
3092
66f1999b
KS
30932012-07-18 Keith Seitz <keiths@redhat.com>
3094
3095 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3096 parameter. If non-zero, use SYMNAME as the canonical name
3097 for the SaL.
3098 Update all callers.
3099 (convert_linespec_to_sals): Use add_sal_to_sals for
3100 expressions, too.
3101 (decode_line_full): No need to "fill in missing canonical names"
3102 anymore. Simply make cleanups for the allocated names.
3103
5d94e27b
KS
31042012-07-18 Keith Seitz <keiths@redhat.com>
3105
3106 * linespec.c (struct linespec): Constify expression,
3107 source_filename, function_name, and label_name.
3108 (symbol_not_found_error): Make all parameters const.
3109 (linespec_parser_delete): No need to check for NULL
3110 when using xfree. Cast const char * to char * for xfree.
3111
af4908ba
KS
31122012-07-18 Keith Seitz <keiths@redhat.com>
3113
3114 * breakpoint.c (invalid_thread_id_error): New function.
3115 (find_condition_and_thread): Use invalid_thread_id_error.
3116 (watch_command_1): Likewise.
3117
853254db
TT
31182012-07-18 Tom Tromey <tromey@redhat.com>
3119
3120 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3121 * contrib/cc-with-tweaks.sh: New file.
3122
2ec9a5e0
TT
31232012-07-18 Tom Tromey <tromey@redhat.com>
3124
3125 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3126 (locate_dwz_sections): Recognize .gdb_index.
3127 (create_cus_from_index_list): New function.
3128 (create_cus_from_index): Use it. Handle .dwz data.
3129 (read_index_from_section): New function, extracted from
3130 dwarf2_read_index.
3131 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3132 if needed.
3133
36586728
TT
31342012-07-18 Tom Tromey <tromey@redhat.com>
3135
3136 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3137 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3138 <is_dwz>: New field.
3139 (struct dwz_file): New.
3140 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3141 (locate_dwz_sections, dwarf2_get_dwz_file)
3142 (get_abbrev_section_for_cu): New functions.
3143 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3144 (read_and_check_type_unit_head): Add abbrev_section argument.
3145 (create_debug_types_hash_table): Update.
3146 (init_cutu_and_read_dies): Use proper abbrev section.
3147 (init_cutu_and_read_dies_no_follow): Likewise.
3148 (set_partial_user): Do nothing if PST==NULL.
3149 (read_comp_units_from_section): New function.
3150 (create_all_comp_units): Use it.
3151 (scan_partial_symbols, partial_die_parent_scope): Update.
3152 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3153 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3154 (find_partial_die): Add offset_in_dwz argument. Update.
3155 (guess_partial_die_structure_name, fixup_partial_die): Update.
3156 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3157 DW_FORM_GNU_strp_alt.
3158 (read_indirect_string_from_dwz): New function.
3159 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3160 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3161 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3162 (follow_die_offset): Add offset_in_dwz argument.
3163 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3164 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3165 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3166 Handle new macro forms.
3167 (dwarf_decode_macros): Update.
3168 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3169 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3170 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3171 (create_debug_types_hash_table): Use correct abbrev section.
3172 (get_debug_line_section): New function.
3173 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3174 (process_full_comp_unit): Pass 'required' argument to
3175 end_symtab_get_static_block.
3176 * buildsym.h (end_symtab_get_static_block): Update.
3177 * buildsym.c (end_symtab_get_static_block): Add 'required'
3178 argument.
3179 (end_symtab, end_expandable_symtab): Update.
3180
4bf44c1c
TT
31812012-07-18 Tom Tromey <tromey@redhat.com>
3182
3183 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3184 (pagesize): Remove.
3185 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3186 (zlib_decompress_section): Remove.
3187 (dwarf2_read_section): Use gdb_bfd_map_section.
3188 (munmap_section_buffer): Remove.
3189 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3190 munmap_section_buffer.
3191 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3192 (struct gdb_bfd_section_data): New.
3193 (free_one_bfd_section): New function.
3194 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3195 (get_section_descriptor, zlib_decompress_section)
3196 (gdb_bfd_map_section): New functions.
3197 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3198
bb397797
TT
31992012-07-18 Tom Tromey <tromey@redhat.com>
3200
3201 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3202
6ec53d05
TT
32032012-07-18 Tom Tromey <tromey@redhat.com>
3204
3205 * gdb_bfd.c (struct gdb_bfd_data): New.
3206 (gdb_bfd_cache): New global.
3207 (struct gdb_bfd_cache_search): New.
3208 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3209 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3210 * gdb_bfd.h (gdb_bfd_open): Declare.
3211
f9a062ff
TT
32122012-07-18 Tom Tromey <tromey@redhat.com>
3213
3214 * utils.c (make_cleanup_bfd_unref): Rename from
3215 make_cleanup_bfd_close.
3216 * defs.h (make_cleanup_bfd_unref): Rename from
3217 make_cleanup_bfd_close.
3218 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3219 (bfd_openw_with_cleanup): Update.
3220 * corelow.c (core_open): Update.
3221 * dsrec.c (load_srec): Update.
3222 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3223 * remote-m32r-sdi.c (m32r_load): Update.
3224 * remote-mips.c (mips_load_srec): Update.
3225 (pmon_load_fast): Update.
3226 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3227 Update.
3228 (darwin_bfd_open): Update.
3229 * solib.c (solib_bfd_fopen): Update.
3230 * symfile-mem.c (symbol_file_add_from_memory): Update.
3231 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3232 (symfile_bfd_open): Update.
3233 (generic_load): Update.
3234
d6ad71ba
TT
32352012-07-18 Tom Tromey <tromey@redhat.com>
3236
3237 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3238 (pmon_load_fast): Likewise.
3239 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3240 (m32r_upload_command): Likewise.
3241 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3242 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3243 Use make_cleanup_bfd_close.
3244
a4453b7e
TT
32452012-07-18 Tom Tromey <tromey@redhat.com>
3246
3247 * symfile.c (symfile_bfd_open): Don't copy name. Call
3248 gdb_bfd_stash_filename.
3249 (load_command): Open the new BFD before freeing the old.
3250 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3251 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3252 Call gdb_bfd_stash_filename.
3253 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3254 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3255 gdb_bfd_stash_filename.
3256 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3257 Free found_pathname.
3258 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3259 gdb_bfd_stash_filename.
3260 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3261 * machoread.c (macho_add_oso_symfile): Call
3262 gdb_bfd_stash_filename.
3263 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3264 gdb_bfd_stash_filename.
3265 (macho_check_dsym): Don't copy filename. Call
3266 gdb_bfd_stash_filename.
3267 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3268 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3269 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3270 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3271 * exec.c (exec_close): Don't free the BFD's filename.
3272 (exec_file_attach): Don't copy the filename. Call
3273 gdb_bfd_stash_filename.
3274 * corelow.c (core_close): Don't free the BFD's filename.
3275 (core_open): Call gdb_bfd_stash_filename.
3276 * corefile.c (reopen_exec_file): Remove #if 0 code.
3277 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3278 pathname.
3279 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3280
cbb099e8
TT
32812012-07-18 Tom Tromey <tromey@redhat.com>
3282
3283 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3284 gdb_bfd_unref.
3285 (free_dwo_file): Use gdb_bfd_unref.
3286 * cli/cli-dump.c: Include gdb_bfd.h.
3287 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3288 (bfd_openr_with_cleanup): Likewise.
3289 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3290 gdb_bfd_unref.
3291 * utils.c: Include gdb_bfd.h.
3292 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3293 * symfile.c: Include gdb_bfd.h.
3294 (separate_debug_file_exists): Use gdb_bfd_unref.
3295 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3296 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3297 (generic_load): Use gdb_bfd_ref.
3298 (reread_symbols): Use gdb_bfd_unref.
3299 * symfile-mem.c: Include gdb_bfd.h.
3300 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3301 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3302 * solib.c: Include gdb_bfd.h.
3303 (solib_bfd_fopen): Use gdb_bfd_ref.
3304 (solib_bfd_open): Use gdb_bfd_unref.
3305 (free_so_symbols): Use gdb_bfd_unref.
3306 (reload_shared_libraries_1): Use gdb_bfd_unref.
3307 * solib-spu.c: Include gdb_bfd.h.
3308 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3309 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3310 gdb_bfd_unref.
3311 * solib-frv.c: Include gdb_bfd.h.
3312 (enable_break2): Use gdb_bfd_unref.
3313 * solib-dsbt.c: Include gdb_bfd.h.
3314 (enable_break2): Use gdb_bfd_unref.
3315 * solib-darwin.c: Include gdb_bfd.h.
3316 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3317 gdb_bfd_unref.
3318 (darwin_bfd_open): Use gdb_bfd_unref.
3319 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3320 * remote-mips.c: Include gdb_bfd.h.
3321 (mips_load_srec): Use gdb_bfd_ref.
3322 (pmon_load_fast): Use gdb_bfd_ref.
3323 * remote-m32r-sdi.c: Include gdb_bfd.h.
3324 (m32r_load): Use gdb_bfd_ref.
3325 * record.c: Include gdb_bfd.h.
3326 (record_save_cleanups): Use gdb_bfd_unref.
3327 (cmd_record_save): Use gdb_bfd_unref.
3328 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3329 gdb_bfd_unref.
3330 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3331 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3332 * objfiles.c: Include gdb_bfd.h.
3333 (free_objfile): Use gdb_bfd_unref.
3334 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3335 gdb_bfd.c.
3336 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3337 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3338 (macho_check_dsym): Likewise.
3339 * m32r-rom.c: Include gdb_bfd.h.
3340 (m32r_load): Use gdb_bfd_ref.
3341 (m32r_upload_command): Use gdb_bfd_ref.
3342 * jit.c: Include gdb_bfd.h.
3343 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3344 * gdb_bfd.h: New file.
3345 * gdb_bfd.c: New file.
3346 * gcore.c: Include gdb_bfd.h.
3347 (create_gcore_bfd): Use gdb_bfd_ref.
3348 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3349 (gcore_command): Use gdb_bfd_unref.
3350 * exec.c: Include gdb_bfd.h.
3351 (exec_close): Use gdb_bfd_unref.
3352 (exec_close_1): Use gdb_bfd_unref.
3353 (exec_file_attach): Use gdb_bfd_ref.
3354 * elfread.c: Include gdb_bfd.h.
3355 (build_id_verify): Use gdb_bfd_unref.
3356 * dsrec.c: Include gdb_bfd.h.
3357 (load_srec): Use gdb_bfd_ref.
3358 * corelow.c: Include gdb_bfd.h.
3359 (core_close): Use gdb_bfd_unref.
3360 (core_open): Use gdb_bfd_ref.
3361 * bfd-target.c: Include gdb_bfd.h.
3362 (target_bfd_xclose): Use gdb_bfd_unref.
3363 (target_bfd_reopen): Use gdb_bfd_ref.
3364 * Makefile.in (SFILES): Add gdb_bfd.c.
3365 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3366 (COMMON_OBS): Add gdb_bfd.o.
3367
ed1d1739
KS
33682012-07-18 Keith Seitz <keiths@redhat.com>
3369
3370 * breakpoint.c (find_condition_and_thread): Initialize
3371 TASK and REST.
3372 (create_breakpiont): find_condition_and_thread will now
3373 initialize COND_STRING, THREAD, and REST (and TASK).
3374 (addr_string_to_sals): Likewise.
3375
eab402df
PA
33762012-07-18 Pedro Alves <palves@redhat.com>
3377
3378 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3379 Pull the single step breakpoints out of the target.
3380
2b963b68
SDJ
33812012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3382
3383 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3384 * stap-probe.c (compile_probe_arg): Likewise.
3385
6bac7473
SDJ
33862012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3387
3388 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3389 (elf_compile_to_ax): Likewise.
3390 * infrun.c (insert_exception_resume_from_probe): Likewise.
3391 (check_exception_resume): Remove `objfile' variable.
3392 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3393 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3394 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3395 (compare_entries): Rename to...
3396 (compare_probes): ...this. Adjust function to work with
3397 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3398 respectively.
3399 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3400 `VEC (probe_p) *'.
3401 (print_ui_out_info): Adjust argument to be `struct probe *'.
3402 (info_probes_for_ops): Adjust internal computations to use
3403 `VEC (probe_p) *'.
3404 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3405 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3406 gen_info_probes_table_values>: Remove `objfile' argument.
3407 (struct probe) <objfile>: New field.
3408 (find_probe_by_pc): Remove `objfile' argument.
3409 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3410 (stap_get_probe_argument_count): Likewise.
3411 (stap_get_arg): Likewise.
3412 (stap_evaluate_probe_argument): Likewise.
3413 (stap_compile_to_ax): Likewise.
3414 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3415 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3416 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3417 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3418 sym_compile_to_ax>: Likewise.
3419
3347eb1a 34202012-07-18 Terry Guo <terry.guo@arm.com>
3421
3422 PR 14329
3423 * defs.h (GDB_MI_MSG_WIDTH): New.
3424 * ser_base (ser_base_read_error_fd): New function.
3425 (do_ser_base_readchar): Poll error file descriptor as well as
3426 standard output.
f782ad9b 3427 (generic_readchar): Refactor error handling.
3347eb1a 3428
80c8d323
JB
34292012-07-18 Joel Brobecker <brobecker@adacore.com>
3430
3431 * NEWS: Create a new section for the next release branch.
3432 Rename the section of the current branch, now that it has
3433 been cut.
3434
b45a0664 34352012-07-18 Joel Brobecker <brobecker@adacore.com>
3436
3437 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3438 * version.in: Bump version to 7.5.50.20120718-cvs.
3439
09cf2b22
KS
34402012-07-17 Keith Seitz <keiths@redhat.com>
3441
3442 * linespec.c (linespec_parse_line_offset): Make parameter
3443 const.
3444
8f043999
JK
34452012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3446
3447 PR 11914
3448 * f-valprint.c (info_common_command): New variable frame_id.
3449 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3450 * printcmd.c (print_variable_and_value): Extend function comment.
3451 Add comment for invalidated FRAME.
3452 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3453 FI form FRAME_ID after each print_frame_local_vars.
3454 (struct print_variable_and_value_data): Change frame to frame_id.
3455 (do_print_variable_and_value): New variable frame, initialize it from
3456 p->frame_id. Add comment for invalidated FRAME.
3457 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3458 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3459 for invalidated FRAME.
3460
ae5e0686
MK
34612012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3462 Pedro Alves <palves@redhat.com>
3463
3464 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3465 loop.
3466
5049c5be
TT
34672012-07-16 Tom Tromey <tromey@redhat.com>
3468
3469 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3470
2908cac6
DE
34712012-07-15 Doug Evans <dje@google.com>
3472
094b34ac
DE
3473 * dwarf2read.c (stmt_list_hash): New struct.
3474 (type_unit_group): Embed "per_cu" member, remove pointer.
3475 New union member "t", move member "tus" into it, all uses updated.
3476 New member "hash", replaces member "line_offset, all uses updated.
3477 (quick_file_names): Replace member "offset" with "hash", all uses
3478 updated.
3479 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3480 (hash_file_name_entry, eq_file_name_entry): Call them.
3481 (hash_type_unit_group, eq_type_unit_group): Ditto.
3482 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3483 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3484 (dw2_get_file_names): Update.
3485 (create_type_unit_group): Replace "per_cu" arg with "cu".
3486 All callers updated. Fix "quick" (.gdb_index) handling.
3487 (get_type_unit_group): Replace "per_cu" arg with "cu".
3488 All callers updated.
3489 (build_type_unit_groups): Don't reset tu_stats.
3490
2908cac6
DE
3491 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3492 "tab_cur_size". Change member "tab" to be a htab_t.
3493 (create_filename_seen_cache): Update.
3494 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3495 (filename_seen): Update.
3496
a2b6eff5
DE
34972012-07-13 Doug Evans <dje@google.com>
3498
3499 * symtab.c (filename_seen): Update comment.
3500
4359dff1
JK
35012012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3502 Doug Evans <dje@google.com>
3503
3504 * buildsym.c (end_symtab_1): Split it to ...
3505 (end_symtab_get_static_block): ... this ...
3506 (end_symtab_from_static_block): ... and this function.
3507 (end_symtab, end_expandable_symtab): Call them.
3508 * buildsym.h (end_symtab_get_static_block)
3509 (end_symtab_from_static_block): New declarations.
3510 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3511 Set its valid CU ranges.
3512
a24f71ab
JK
35132012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3514
3515 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3516 DW_OP_GNU_parameter_ref.
3517
d76b7dbc
JK
35182012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3519
3520 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3521 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3522
9fdc877b
DE
35232012-07-13 Doug Evans <dje@google.com>
3524
3525 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3526 (filename_seen_cache): New struct.
3527 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3528 (create_filename_seen_cache): New function.
3529 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3530 (filename_seen): Delete arg "first". New arg "cache". All callers
3531 updated.
3532 (output_source_filename_data): New struct.
3533 (output_source_filename): Delete arg "first". New arg "data".
3534 All callers updated.
3535 (sources_info): Delete local "first". New locals "data", "cleanups".
3536 Rewrite to use filename_seen_cache.
3537 (add_partial_filename_data): Delete member "first". New member
3538 "filename_seen_cache". All uses updated.
3539 (make_source_files_completion_list): Rewrite to use
3540 filename_seen_cache.
3541
f80c6f3f
DE
35422012-07-12 Doug Evans <dje@google.com>
3543
3544 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3545
0bfa869d
DE
35462012-07-10 Doug Evans <dje@google.com>
3547
f4dc4d17
DE
3548 PR gdb/13498
3549 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3550 all_type_unit_groups, type_unit_groups, tu_stats.
3551 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3552 All uses updated. Add type_unit_group to union "s".
3553 (type_unit_group): New struct.
3554 (IS_TYPE_UNIT_GROUP): New macro.
3555 (abbrev_table): Delete unused member "section".
3556 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3557 (dw2_get_cu): Assert not used with type_unit_group.
3558 (dw2_get_primary_cu): New function.
3559 (dw2_build_type_unit_groups_reader): New function.
3560 (dw2_build_type_unit_groups): New function.
3561 (dw2_get_file_names): Assert not called on type units.
3562 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3563 Redo loop to iterate over type unit groups instead of type units.
3564 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3565 (read_abbrev_offset): New function.
3566 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3567 updated.
3568 (create_partial_symtab): New function.
3569 (process_psymtab_comp_unit_reader): Assert not used with type units.
3570 Call create_partial_symtab.
3571 (process_psymtab_type_unit): Delete.
3572 (hash_type_unit_group, eq_type_unit_group): New functions.
3573 (allocate_type_unit_groups_table): New function.
3574 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3575 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3576 (create_type_unit_group, get_type_unit_group): New functions.
3577 (tu_abbrev_offset): New struct.
3578 (sort_tu_by_abbrev_offset): New function.
3579 (add_type_unit_group_to_table): New function.
3580 (build_type_unit_groups): New function.
3581 (build_type_psymtabs_reader): New function.
3582 (build_type_psymtab_dependencies): New function.
3583 (build_type_psymtabs): Rewrite.
3584 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3585 is seen in a type unit.
3586 (process_queue): Move symtab expansion debugging printfs here.
3587 Call process_full_type_unit for type units.
3588 (compute_symtab_includes): Assert not called for type units.
3589 (process_cu_includes): Don't call compute_symtab_includes for
3590 type units.
3591 (process_full_type_unit): New function.
3592 (process_imported_unit_die): Flag an error if called for type units.
3593 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3594 updated. Assert not called for type units.
3595 (read_file_scope): Call dwarf2_start_symtab.
3596 (setup_type_unit_groups): New function.
3597 (read_type_unit_scope): Rewrite.
3598 (abbrev_table_read_table): Initialize abbrev_table->offset.
3599 (abbrev_table_free_cleanup): New function.
3600 (dwarf2_start_symtab): New function.
3601 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
3602 * buildsym.c (finish_block_internal): New arg "expandable".
3603 All callers updated.
3604 (start_symtab): Move most contents to ...
3605 (restart_symtab): ... here. New function.
3606 (reset_symtab_globals): New function.
3607 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3608 Call reset_symtab_globals.
3609 (end_symtab, end_expandable_symtab): New functions.
3610 (set_missing_symtab, augment_type_symtab): New functions.
3611 * buildsym.h (end_expandable_symtab): Declare.
3612 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
3613 * psympriv.h (struct partial_symtab): New member "anonymous".
3614 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3615 anonymous psymtabs.
3616 (read_psymtabs_with_filename): Ditto.
3617 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3618 (expand_symtabs_matching_via_partial): Ditto.
3619 (dump_psymtab): Update.
0bfa869d
DE
3620 * dictionary.c (dict_add_pending): New function.
3621 * dictionary.h (dict_add_pending): Declare.
3622
45e58e77
DE
36232012-07-09 Doug Evans <dje@google.com>
3624
b74db436
DE
3625 * buildsym.c (start_subfile): Remove unnecessary check for
3626 name == NULL.
3627
fd55216c
DE
3628 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3629
6721b2ec
DE
3630 * dwarf2read.c (load_full_type_unit): Simplify.
3631
b4dd5633
DE
3632 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3633 to struct signatured_type **. All uses updated.
3634
45e58e77
DE
3635 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3636 All callers updated.
3637
e314d629
TT
36382012-07-09 Tom Tromey <tromey@redhat.com>
3639
3640 * c-exp.y (check_parameter_typelist): New function.
3641 (parameter_typelist): Call it.
3642 * eval.c (make_params): Handle '(void)' case.
3643 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3644 '(void)' case.
3645
aa7c7447
JK
36462012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3647
3648 * common/linux-ptrace.c: Include gdb_assert.h.
3649 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3650 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3651 stdint.h.
3652 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3653 functions.
3654 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3655 * linux-nat.c (linux_child_post_attach)
3656 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3657
889003ed
JK
36582012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3659
3660 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3661 nptl <2.7 bug workaround for core files.
3662
da559b09
JK
36632012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3664
3665 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3666 clearing.
3667 (save_siginfo): Remove.
3668 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3669 call.
3670 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3671 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3672 * linux-nat.h (struct lwp_info): Remove field siginfo.
3673
f865ee35
JK
36742012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3675
3676 Code cleanup for the next patch.
3677 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3678 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3679 call for it.
3680 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3681 (ia64_linux_stopped_data_address):
3682 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3683 the return value.
3684 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3685 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3686 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3687 call for it.
3688
76b83c51
JK
36892012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3690
3691 PR 14321
3692 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3693 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3694
a6fb9c08
TT
36952012-07-06 Tom Tromey <tromey@redhat.com>
3696
3697 * c-exp.y (DOTDOTDOT): New token.
3698 (func_mod, exp): Use parameter_typelist.
3699 (parameter_typelist): New production.
3700 (tokentab3): Add "..." token.
3701 * eval.c (make_params): Handle varargs.
3702 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3703 varargs.
3704
71918a86
TT
37052012-07-06 Tom Tromey <tromey@redhat.com>
3706
3707 PR exp/9608:
3708 * c-exp.y (%union) <tvec>: Change type.
3709 (func_mod): Now uses <tvec> type.
3710 (exp): Update for tvec change.
3711 (direct_abs_decl): Push the typelist.
3712 (func_mod): Return a typelist.
3713 (nonempty_typelist): Update for tvec change.
3714 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3715 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3716 * parse.c (pop_type_list): New function.
3717 (push_typelist): New function.
3718 (follow_types): Handle tp_function_with_arguments.
3719 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3720 (enum type_pieces) <tp_function_with_arguments>: New constant.
3721 (union type_stack_elt) <typelist_val>: New field.
3722 (push_typelist): Declare.
3723
fcde5961
TT
37242012-07-06 Tom Tromey <tromey@redhat.com>
3725
3726 * c-exp.y (%union) <type_stack>: New field.
3727 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3728 (ptr_operator_ts): New production.
3729 (ptype): Update.
3730 * parse.c (type_stack_reserve): New function.
3731 (check_type_stack_depth): Use it.
3732 (pop_type_stack, append_type_stack, push_type_stack)
3733 (get_type_stack, type_stack_cleanup): New functions.
3734 (follow_types): Handle tp_type_stack.
3735 (_initialize_parse): Simplify initialization.
3736 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3737 constant.
3738 (union type_stack_elt) <stack_val>: New field.
3739 (get_type_stack, append_type_stack, push_type_stack)
3740 (type_stack_cleanup): Declare.
3741
1a7d0ce4
TT
37422012-07-06 Tom Tromey <tromey@redhat.com>
3743
3744 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3745 Remove.
3746 (struct type_stack): New.
3747 * parse.c (type_stack, type_stack_size, type_stack_depth):
3748 Remove.
3749 (type_stack): New global.
3750 (parse_exp_in_context, check_type_stack_depth)
3751 (insert_into_type_stack, insert_type, push_type, push_type_int)
3752 (insert_type_address_space, pop_type, pop_type_int)
3753 (_initialize_parse): Update.
3754
16d01384
TT
37552012-07-06 Tom Tromey <tromey@redhat.com>
3756
3757 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3758 Remove %type.
3759
9bfc60bf
SP
37602012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3761
3762 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3763
d5161074
SP
37642012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3765 Jan Kratochvil <jan.kratochvil@redhat.com>
3766
3767 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3768 alloca with xmalloc/xfree.
3769
a74bc576
SP
37702012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3771
3772 * MAINTAINERS (Write After Approval): Add myself to the list.
3773
667e0a4b
DE
37742012-07-05 Doug Evans <dje@google.com>
3775
3776 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3777
34b536a8
HZ
37782012-07-05 Hui Zhu <hui_zhu@mentor.com>
3779
3780 * ax-gdb.c (cli/cli-utils.h): New include.
3781 (linespec.h): Ditto.
3782 (agent_eval_command_one): New function.
3783 (agent_command_1): Ditto.
3784 (agent_command): Call function agent_command_1.
3785 (agent_eval_command): Ditto.
3786 (_initialize_ax_gdb): Change help for "maint agent"
3787 and "maint agent-eval".
3788
e6f0bce7
HZ
37892012-07-05 Hui Zhu <hui_zhu@mentor.com>
3790
3791 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3792 * cli/cli-utils.c (check_for_argument): New function.
3793 * cli/cli-utils.h (check_for_argument): Ditto.
3794
1b3371b1
L
37952012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3796
3797 * NEWS: Mention x32 ABI support.
3798
23e2d720
L
37992012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3800
3801 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3802 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3803
3804 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3805 and pc_regnum_from_eax to -1. Update SP regnum from
3806 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3807 needed.
3808
3809 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3810 pc_regnum_from_eax.
3811
836bf454
JK
38122012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3813
3814 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3815 * dwarf2expr.h: Include gdbtypes.h.
3816 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3817 these forward declarations.
3818 (cu_offset, sect_offset): Move these ...
3819 * gdbtypes.h: Remove include dwarf2expr.h.
3820 (cu_offset, sect_offset): ... here.
3821
1e55e04f
L
38222012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3823
3824 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3825 (amd64_linux_sigtramp_code): This.
3826 (amd64_x32_linux_sigtramp_code): New.
3827 (LINUX_SIGTRAMP_LEN): Updated.
3828 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3829
7d0e21ad
JK
38302012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3831
3832 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3833
8775fd2d
JK
38342012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3835
3836 * config.in: Regenerate.
3837 * configure: Regenerate.
3838 * configure.ac: Remove check for gnu/libc-version.h.
3839 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3840 gnu/libc-version.h.
3841 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3842 variables libc_version, libc_major and libc_minor. Replace sscanf by
3843 inferior_has_bug. Extend the comment.
3844
fcb44371
JK
38452012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3846
3847 * linux-thread-db.c (inferior_has_bug): New function.
3848 (thread_db_find_new_threads_silently): Return boolean as checked by
3849 inferior_has_bug, describe it in the comments.
3850 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3851 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 3852 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
3853 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3854 if UNTIL_NO_NEW,
3855
09406207
DE
38562012-07-02 Doug Evans <dje@google.com>
3857
0907af0c
DE
3858 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3859 related to queue management.
3860
09406207
DE
3861 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3862 instead of "debug dwarf2-die" in debugging printfs.
3863 (create_debug_info_hash_table_reader): Ditto.
3864 (create_debug_info_hash_table): Ditto.
3865 (init_dwo_file): Ditto.
3866 (init_cutu_and_read_dies): Add debugging printf.
3867 (init_cutu_and_read_dies_no_follow): Ditto.
3868 (process_psymtab_comp_unit_reader): Ditto.
3869
d3ce09f5
SS
38702012-07-02 Stan Shebs <stan@codesourcery.com>
3871
3872 Add target-side support for dynamic printf.
3873 * NEWS: Mention the additional style.
3874 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
3875 (struct bp_location): New field cmd_bytecode.
3876 * breakpoint.c: Include format.h.
3877 (disconnected_dprintf): New global.
3878 (parse_cmd_to_aexpr): New function.
3879 (build_target_command_list): New function.
3880 (insert_bp_location): Call it.
3881 (remove_breakpoints_pid): Skip dprintf breakpoints.
3882 (print_one_breakpoint_location): Ditto.
3883 (dprintf_style_agent): New global.
3884 (dprintf_style_enums): Add dprintf_style_agent.
3885 (update_dprintf_command_list): Add agent case.
3886 (agent_printf_command): New function.
3887 (_initialize_breakpoint): Add new commands.
3888 * common/ax.def (printf): New bytecode.
3889 * ax.h (ax_string): Declare.
3890 * ax-gdb.h (gen_printf): Declare.
3891 * ax-gdb.c: Include cli-utils.h, format.h.
3892 (gen_printf): New function.
3893 (maint_agent_print_command): New function.
3894 (_initialize_ax_gdb): Add maint agent-printf command.
3895 * ax-general.c (ax_string): New function.
3896 (ax_print): Add printf disassembly.
3897 * Makefile.in (SFILES): Add format.c
3898 (COMMON_OBS): Add format.o.
3899 * common/format.h: New file.
3900 * common/format.c: New file.
3901 * printcmd.c: Include format.h.
3902 (ui_printf): Call parse_format_string.
3903 * remote.c (remote_state): New field breakpoint_commands.
3904 (PACKET_BreakpointCommands): New enum.
3905 (remote_breakpoint_commands_feature): New function.
3906 (remote_protocol_features): Add new BreakpointCommands entry.
3907 (remote_can_run_breakpoint_commands): New function.
3908 (remote_add_target_side_commands): New function.
3909 (remote_insert_breakpoint): Call it.
3910 (remote_insert_hw_breakpoint): Ditto.
3911 (_initialize_remote): Add new packet configuration for
3912 target-side breakpoint commands.
3913 * target.h (struct target_ops): New field
3914 to_can_run_breakpoint_commands.
3915 (target_can_run_breakpoint_commands): New macro.
3916 * target.c (update_current_target): Handle
3917 to_can_run_breakpoint_commands.
3918
2d7b58e8
JK
39192012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3920
3921 Execute -ix and -iex only after system and user gdbinit files.
3922 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
3923 processing down after gdbinit files.
3924
8690e634
JK
39252012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3926
3927 Add fnmatch-gnu module.
3928 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
3929 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
3930 * gnulib/aclocal.m4: Regenerate.
3931 * gnulib/config.in: Regenerate.
3932 * gnulib/configure: Regenerate.
3933 * gnulib/import/dummy.c: Remove.
3934 * gnulib/import/Makefile.am: Regenerate.
3935 * gnulib/import/Makefile.in: Likewise.
3936 * gnulib/import/m4/gnulib-cache.m4: Likewise.
3937 * gnulib/import/m4/gnulib-comp.m4: Likewise.
3938 * gnulib/import/alloca.c: New file.
3939 * gnulib/import/alloca.in.h: Likewise.
3940 * gnulib/import/config.charset: Likewise.
3941 * gnulib/import/fnmatch.c: Likewise.
3942 * gnulib/import/fnmatch.in.h: Likewise.
3943 * gnulib/import/fnmatch_loop.c: Likewise.
3944 * gnulib/import/localcharset.c: Likewise.
3945 * gnulib/import/localcharset.h: Likewise.
3946 * gnulib/import/m4/alloca.m4: Likewise.
3947 * gnulib/import/m4/codeset.m4: Likewise.
3948 * gnulib/import/m4/configmake.m4: Likewise.
3949 * gnulib/import/m4/fcntl-o.m4: Likewise.
3950 * gnulib/import/m4/fnmatch.m4: Likewise.
3951 * gnulib/import/m4/glibc21.m4: Likewise.
3952 * gnulib/import/m4/localcharset.m4: Likewise.
3953 * gnulib/import/m4/locale-fr.m4: Likewise.
3954 * gnulib/import/m4/locale-ja.m4: Likewise.
3955 * gnulib/import/m4/locale-zh.m4: Likewise.
3956 * gnulib/import/m4/mbrtowc.m4: Likewise.
3957 * gnulib/import/m4/mbsinit.m4: Likewise.
3958 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
3959 * gnulib/import/m4/mbstate_t.m4: Likewise.
3960 * gnulib/import/m4/stdbool.m4: Likewise.
3961 * gnulib/import/m4/wchar_h.m4: Likewise.
3962 * gnulib/import/m4/wctype_h.m4: Likewise.
3963 * gnulib/import/m4/wint_t.m4: Likewise.
3964 * gnulib/import/mbrtowc.c: Likewise.
3965 * gnulib/import/mbsinit.c: Likewise.
3966 * gnulib/import/mbsrtowcs-impl.h: Likewise.
3967 * gnulib/import/mbsrtowcs-state.c: Likewise.
3968 * gnulib/import/mbsrtowcs.c: Likewise.
3969 * gnulib/import/ref-add.sin: Likewise.
3970 * gnulib/import/ref-del.sin: Likewise.
3971 * gnulib/import/stdbool.in.h: Likewise.
3972 * gnulib/import/streq.h: Likewise.
3973 * gnulib/import/strnlen1.c: Likewise.
3974 * gnulib/import/strnlen1.h: Likewise.
3975 * gnulib/import/verify.h: Likewise.
3976 * gnulib/import/wchar.in.h: Likewise.
3977 * gnulib/import/wctype.in.h: Likewise.
3978
202cbf1c
JK
39792012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3980
3981 Support shell wildcards for 'set auto-load safe-path'.
3982 * auto-load.c: Include fnmatch.h.
3983 (filename_is_in_dir): Rename to ...
3984 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
3985 it. Update function comment. Rename dir_len to pattern_len. New
3986 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
3987 messages. Use gdb_filename_fnmatch.
3988 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
3989 pattern.
3990 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
3991 * defs.h (gdb_filename_fnmatch): New declaration.
3992 * utils.c: Include fnmatch.h.
3993 (gdb_filename_fnmatch): New function.
3994
fb7b5af4
SDJ
39952012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
3996
3997 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
3998 `-probe' and `-probe-stap' options.
3999
72d0e2c5
YQ
40002012-07-01 Yao Qi <yao@codesourcery.com>
4001
4002 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4003 always_inserted_off, and always_inserted_enums.
4004 Change always_inserted_mode's type to 'enum auto_boolean'.
4005 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4006 callers.
4007 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4008 of add_setshow_enum_cmd.
4009 * infrun.c: Remove can_use_displaced_stepping_auto,
4010 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4011 can_use_displaced_stepping_enum.
4012 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4013 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4014 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4015 add_setshow_enum_cmd.
4016
42e7ad6c
DE
40172012-06-30 Doug Evans <dje@google.com>
4018
4019 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4020 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4021 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4022
39cf75f7
DE
40232012-06-29 Doug Evans <dje@google.com>
4024
4025 * linespec.c: #include "stack.h".
4026 (decode_line_with_current_source): Moved here from symtab.c and
4027 renamed from decode_line_spec. All callers updated.
4028 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4029 renamed from decode_line_spec_1. All callers updated.
4030 * linespec.h (decode_line_with_current_source): Move declaration here
4031 from symtab.h and renamed from decode_line_spec.
4032 (decode_line_with_last_displayed): Move declaration here from symtab.h
4033 and renamed from decode_line_spec_1.
4034 * macrocmd.c: #include "linespec.h".
4035 * symtab.c: Remove #include "linespec.h".
4036
433df2d4
DE
40372012-06-28 Doug Evans <dje@google.com>
4038
1ce1cefd
DE
4039 * dwarf2read.c (get_cu_length): New function.
4040 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4041 (create_debug_types_hash_table): Ditto.
4042 (init_cutu_and_read_dies): Ditto.
4043 (init_cutu_and_read_dies_no_follow): Ditto.
4044
3b80fe9b
DE
4045 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4046
433df2d4
DE
4047 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4048 (struct abbrev_table): Define.
4049 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4050 abbrev_table.
4051 (init_cutu_and_read_dies): Update.
4052 (abbrev_table_alloc_abbrev): New function. Replaces
4053 dwarf_alloc_abbrev. All callers updated.
4054 (abbrev_table_add_abbrev): New function.
4055 (abbrev_table_lookup_abbrev): New function. Replaces
4056 dwarf2_lookup_abbrev. All callers updated.
4057 (abbrev_table_read_table): New function. Contents moved here from
4058 dwarf2_read_abbrevs.
4059 (dwarf2_read_abbrevs): Call it.
4060 (abbrev_table_free): New function.
4061 (dwarf2_free_abbrev_table): Call it.
4062
71caed83
SS
40632012-06-28 Stan Shebs <stan@codesourcery.com>
4064
4065 * osdata.c (info_osdata_command): Filter out "Title" columns
4066 from non-MI uses.
4067 * common/linux-osdata.c (struct osdata_type): Add title field.
4068 (osdata_table): Add titles to each entry.
4069 (linux_command_xfer_osdata): Add a column for title data.
4070
37ce89eb
SS
40712012-06-28 Stan Shebs <stan@codesourcery.com>
4072
4073 Make logging work for MI.
4074 * NEWS: Mention it.
4075 * interps.h (interp_set_logging_ftype): New typedef.
4076 (struct interp_procs): New field set_logging_proc.
4077 (current_interp_set_logging): Declare.
4078 * interps.c (current_interp_set_logging): New function.
4079 * cli/cli-logging.c: Include interps.h.
4080 (set_logging_redirect): Call current_interp_set_logging.
4081 (pop_output_files): Ditto.
4082 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4083 * mi/mi-console.h (mi_console_set_raw): Declare.
4084 * mi/mi-console.c (mi_console_set_raw): New function.
4085 * mi/mi-interp.c (saved_raw_stdout): New global.
4086 (mi_set_logging): New function.
4087 (_initialize_mi_interp): Add it to interp procs.
4088
659c9f3a
DE
40892012-06-28 Doug Evans <dje@google.com>
4090
a743abeb
DE
4091 * symtab.c (lookup_symbol_aux_objfile): Use
4092 ALL_OBJFILE_PRIMARY_SYMTABS.
4093
659c9f3a
DE
4094 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4095
da2d6d3d
JK
40962012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4097
4098 * common/buffer.c: Include inttypes.h and stdint.h.
4099 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4100
e5ef252a
PA
41012012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4102 Pedro Alves <palves@redhat.com>
4103
4104 * gdbthread.h (ALL_THREADS): New macro.
4105 (thread_list): Declare.
4106 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4107 going, but instead fall through to the stepping handling.
4108 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4109 the passed in signal. Adjust debug output.
4110 (resume_callback): Rename to ...
4111 (linux_nat_resume_callback): ... this. Pass the thread's last
4112 stop signal, if in "pass" state.
4113 (linux_nat_resume): Adjust to rename.
4114 (stop_wait_callback): New assertion. Don't respawn signals;
4115 instead let the LWP remain with SIGNALLED set.
4116 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4117 * remote.c (append_pending_thread_resumptions): New.
4118 (remote_vcont_resume): Call it.
4119 * target.h (target_resume): Extend comment.
4120
1d7975eb
IS
41212012-06-28 Iain Sandoe <iain@codesourcery.com>
4122
4123 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4124
2e3cf129
DE
41252012-06-27 Doug Evans <dje@google.com>
4126
4127 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4128 Delete have_addr_base, unused. All uses updated.
4129 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4130 (dwarf2_get_pc_bounds): Add ranges_base.
4131 (dwarf2_record_block_ranges): Ditto.
4132
1bb9788d
TT
41332012-06-27 Tom Tromey <tromey@redhat.com>
4134
4135 PR macros/7961:
4136 * varobj.c (varobj_create): Update.
4137 (varobj_set_value): Update.
4138 * tracepoint.c (validate_actionline): Update.
4139 (encode_actions_1): Update.
4140 * parse.c (parse_exp_1): Add 'pc' argument.
4141 (parse_exp_in_context): Add 'pc' argument. Change how
4142 expression_context_pc is set.
4143 (parse_expression): Update.
4144 (parse_field_expression): Update.
4145 * expression.h (parse_exp_1): Update.
4146 * eval.c (parse_to_comma_and_eval): Update.
4147 * breakpoint.c (set_breakpoint_condition): Update.
4148 (update_watchpoint): Update.
4149 (init_breakpoint_sal): Update
4150 (find_condition_and_thread): Update.
4151 (watch_command_1): Update.
4152 (update_breakpoint_locations): Update.
4153 * ada-lang.c (ada_read_renaming_var_value): Update.
4154 (create_excep_cond_exprs): Update.
4155
0bc3a05c
DE
41562012-06-27 Doug Evans <dje@google.com>
4157
4158 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4159 type units.
4160
4bdcc0c1
DE
41612012-06-26 Doug Evans <dje@google.com>
4162
4163 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4164 prototype.
4165 (error_check_comp_unit_head): New arg abbrev_section. All callers
4166 updated.
4167 (read_and_check_comp_unit_head): Ditto.
4168 (read_and_check_type_unit_head): Ditto.
4169
ee0bf529
SCR
41702012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4171
4172 New attribute 'last' for gdb.Symtab_and_line.
4173 * NEWS (Python Scripting): Add entry about the new attribute.
4174 * python/py-symtab.c (salpy_get_last): New function which
4175 implements the get method for the 'last' attribute of
4176 gdb.Symtab_and_line.
4177 (sal_object_getset): Add entry for the 'last' attribute.
4178
1c658ad5
DE
41792012-06-26 Doug Evans <dje@google.com>
4180
09262596
DE
4181 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4182 (dwo_sections): Add macinfo, macro.
4183 (dwarf2_locate_dwo_sections): Watch for macro sections.
4184 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4185 All callers updated. Handle DWO files.
4186
45cfd468
DE
4187 * NEWS: Mention new options "set debug dwarf2-read" and
4188 "set debug symtab-create".
4189 * dwarf2read.c (dwarf2_read_debug): New static global.
4190 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4191 (process_queue): Ditto.
4192 (process_full_comp_unit): Ditto.
4193 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4194 * elfread.c (elf_symfile_read): Add debugging printf.
4195 * minsyms.c (install_minimal_symbols): Ditto.
4196 * psymtab.c (allocate_psymtab): Ditto.
4197 * symfile.c (allocate_symtab): Ditto.
4198 * symtab.c (symtab_create_debug): New global.
4199 (_initialize_symtab): Add new option "set debug symtab-create".
4200 * symtab.h (symtab_create_debug): Declare.
4201
1c658ad5
DE
4202 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4203 (lookup_dwo_type_unit): Ditto.
4204
6fea9e18
L
42052012-06-26 Roland McGrath <roland@hack.frob.com>
4206 H.J. Lu <hongjiu.lu@intel.com>
4207
4208 * amd64-linux-nat.c: Include <sys/user.h>.
4209 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4210 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4211 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4212
4213 * configure.ac: Check if the fs_base and gs_base members of
4214 `struct user_regs_struct' exist.
4215 * config.in: Regenerated.
4216 * configure: Likewise.
4217
adb4fe3b
ME
42182012-06-25 Michael Eager <eager@eagercon.com>
4219
4220 PR python/14291
f782ad9b 4221 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 4222
fc51cce1
MGD
42232012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4224
4225 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4226 register as a stack alignment in ARM mode.
4227
40a73391
JK
42282012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4229
4230 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4231 * gnulib/config.in: Regenerate.
4232 * gnulib/configure: Likewise.
4233 * gnulib/import/m4/extensions.m4: Update it.
4234 * gnulib/import/m4/gnulib-common.m4: Likewise.
4235 * gnulib/import/m4/memmem.m4: Likewise.
4236 * gnulib/import/m4/mmap-anon.m4: Likewise.
4237 * gnulib/import/m4/multiarch.m4: Likewise.
4238 * gnulib/import/stdint.in.h: Likewise.
4239
972daa01
YQ
42402012-06-24 Yao Qi <yao@codesourcery.com>
4241
4242 * corefile.c (write_memory_with_notification): New.
4243 * gdbcore.h: Declare write_memory_with_notification.
4244 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4245 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4246 * valops.c (value_assign): Likewise.
4247 * python/py-inferior.c (infpy_write_memory): Call
4248 'write_memory_with_notification'.
4249
8d6e0714
JK
42502012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4251
4252 * cc-with-index.sh: Use also -ex "set auto-load no".
4253
156942c7
DE
42542012-06-23 Doug Evans <dje@google.com>
4255
4256 PR 14125
4257 * NEWS: Document additions to .gdb_index.
4258 * dwarf2read.c: #include "gdb/gdb-index.h".
4259 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4260 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4261 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4262 (dwarf2_read_index): Recognize version 7.
4263 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4264 block_kind, domain): All callers updated.
4265 (dw2_find_symbol_file): Handle new index CU values.
4266 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4267 (add_index_entry): New args is_static, kind. All callers updated.
4268 (offset_type_compare, uniquify_cu_indices): New functions
4269 (symbol_kind): New function.
4270 (write_psymtabs_to_index): Remove duplicate CU values.
4271 (write_psymtabs_to_index): Write .gdb_index version 7.
4272
352b3eda
JB
42732012-06-22 Joel Brobecker <brobecker@adacore.com>
4274
4275 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4276 * configure: Regenerate.
4277
2678e2af
YQ
42782012-06-20 Yao Qi <yao@codesourcery.com>
4279
4280 * python/py-inferior.c: Update comments of infpy_read_memory
4281 and infpy_write_memory.
4282
95c391b6
TT
42832012-06-19 Tom Tromey <tromey@redhat.com>
4284
4285 PR exp/9514:
4286 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4287 (push_type_address_space): Remove.
4288 * parse.c (insert_into_type_stack): New function.
4289 (insert_type): Likewise.
4290 (insert_type_address_space): Rename from push_type_address_space.
4291 Insert tp_space_identifier.
4292 * c-exp.y (ptr_operator): New production.
4293 (abs_decl): Use ptr_operator.
4294 (space_identifier): Call insert_type_address_space.
4295 (ptype): Don't use const_or_volatile_or_space_identifier.
4296 (const_or_volatile_noopt): Call insert_type.
4297 (conversion_type_id, conversion_declarator): New productions.
4298 (operator): Use conversion_type_id.
4299
6ac9ef80
DE
43002012-06-18 Doug Evans <dje@google.com>
4301
422d65e7
DE
4302 * symtab.h (minimal_symbol): New member created_by_gdb.
4303 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4304 created by gdb.
4305 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4306 (search_symbols): Call it instead of lookup_symbol.
4307 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4308
49f6c839
DE
4309 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4310 Adjust address for DW_OP_GNU_addr_index.
4311 * dwarf2expr.h (dwarf_expr_context): Update comment.
4312 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4313 all callers updated. Handle TLS vars described with
4314 DW_OP_GNU_const_index.
4315 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4316 and DW_OP_GNU_const_index.
4317 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4318
6ac9ef80
DE
4319 * block.c (find_block_in_blockvector): Make explicit the fact that we
4320 ignore GLOBAL_BLOCK.
4321
4cd18215
TT
43222012-06-18 Tom Tromey <tromey@redhat.com>
4323
4324 * c-exp.y (operator): Remove trailing space after "delete" and
4325 "delete[]".
4326
a9b8d892
JK
43272012-06-18 Mark Kettenis <kettenis@gnu.org>
4328 Jan Kratochvil <jan.kratochvil@redhat.com>
4329
4330 Switch i386 and derived targets to ON_STACK.
4331 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4332 (amd64_dicos_init_abi): Remove its installment.
4333 * dicos-tdep.c (dicos_init_abi): Remove the
4334 set_gdbarch_call_dummy_location call. Update the comment here.
4335 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4336 (i386_dicos_init_abi): Remove its installment.
4337 * i386-tdep.c (i386_push_dummy_code): New function.
4338 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4339 i386_push_dummy_code.
4340
e2e4d78b
JK
43412012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4342
4343 Remove stale dummy frames.
4344 * breakpoint.c: Include dummy-frame.h.
4345 (longjmp_breakpoint_ops): New variable.
4346 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4347 bp_longjmp_call_dummy.
4348 (bpstat_what, bptype_string, print_one_breakpoint_location)
4349 (init_bp_location): Support bp_longjmp_call_dummy.
4350 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4351 (set_longjmp_breakpoint_for_call_dummy)
4352 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4353 functions.
4354 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4355 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4356 FIXME comment and extend the other comment for bp_call_dummy.
4357 (set_longjmp_breakpoint_for_call_dummy)
4358 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4359 * dummy-frame.c: Include gdbthread.h.
4360 (pop_dummy_frame_bpt): New function.
4361 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4362 (dummy_frame_discard): New function.
4363 (cleanup_dummy_frames): Update the comment about longjmps.
4364 * dummy-frame.h (dummy_frame_discard): New declaration.
4365 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4366 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4367 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4368 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4369 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4370 keep_going if IS_LONGJMP and there is no other reason to stop.
4371
09d5912c
TT
43722012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4373
4374 * remote-sim.c (sim_command_completer): Initialize
4375 variable 'result'.
4376
1788b2d3
JK
43772012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4378
4379 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4380 * dwarf2loc.c (call_site_parameter_matches): Support
4381 CALL_SITE_PARAMETER_PARAM_OFFSET.
4382 (needs_dwarf_reg_entry_value): Push stub value.
4383 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4384 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4385 * gdbtypes.h (enum call_site_parameter_kind): New item
4386 CALL_SITE_PARAMETER_PARAM_OFFSET.
4387 (struct call_site.parameter.u): New field param_offset.
4388
24c5c679
JK
43892012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4390
4391 Code cleanup: Generalize call_site.parameter key.
4392 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4393 variable dwarf_reg. New variable kind_u. Update parameters to
4394 push_dwarf_reg_entry_value.
4395 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4396 * dwarf2expr.h (enum call_site_parameter_kind)
4397 (union call_site_parameter_u): Forward declarations.
4398 (struct dwarf_expr_context_funcs): Update parameters and their
4399 description for push_dwarf_reg_entry_value.
4400 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4401 * dwarf2loc.c (call_site_parameter_matches): New function.
4402 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4403 description. Use call_site_parameter_matches.
4404 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4405 Update parameters and their description.
4406 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4407 New variable kind_u. Adjust the caller for updated parameters.
4408 (needs_dwarf_reg_entry_value): Update parameters.
4409 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4410 instead of attr. Update for the changed fields of struct
4411 call_site_parameter.
4412 * gdbtypes.h: Include dwarf2expr.h.
4413 (enum call_site_parameter_kind): New.
4414 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4415 fb_offset into new union u.
4416
ac142d96
L
44172012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4418
4419 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4420 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4421 for x32.
4422
ba224c70
L
44232012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4424
4425 * amd64-linux-nat.c (compat_x32_clock_t): New.
4426 (compat_x32_siginfo_t): Likewise.
4427 (compat_x32_siginfo_from_siginfo): Likewise.
4428 (siginfo_from_compat_x32_siginfo): Likewise.
4429 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4430 and siginfo_from_compat_x32_siginfo for x32.
4431
7ecbc825
HZ
44322012-06-15 Hui Zhu <hui_zhu@mentor.com>
4433
4434 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4435
233dfcf0
L
44362012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4437
4438 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4439 instead of gdbarch_ptr_bit.
4440 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4441 (amd64_supply_native_gregset): Likewise.
4442 (amd64_collect_native_gregset): Likewise.
4443 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4444 (amd64_supply_xsave): Likewise.
4445 (amd64_collect_fxsave): Likewise.
4446 (amd64_collect_xsave): Likewise.
4447
6da38f42
L
44482012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4449
4450 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4451 (amd64_linux_read_description): Check DS segment register for
4452 x32 process.
4453
663b969e
TT
44542012-06-15 Tom Tromey <tromey@redhat.com>
4455
4456 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4457 init_cutu_and_read_dies.
4458
d6f05027
IS
44592012-06-15 Iain Sandoe <iain@codesourcery.com>
4460
4461 * MAINTAINERS (Write After Approval): Add myself to the list.
4462
6598ed07
TT
44632012-06-15 Tom Tromey <tromey@redhat.com>
4464
4465 * valops.c (value_find_oload_method_list): Now static.
4466 * value.h (value_find_oload_method_list): Don't declare.
4467
2b214ea6
TT
44682012-06-15 Tom Tromey <tromey@redhat.com>
4469
4470 * valops.c (find_overload_match): Use value_ind.
4471
a210c238
MR
44722012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4473
4474 * infrun.c (handle_inferior_event): Correct indentation.
4475
3771a44c
DE
44762012-06-14 Doug Evans <dje@google.com>
4477
4478 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4479 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4480 All uses updated.
4481 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4482 updated. Handle DEBUG_LOC_START_LENGTH.
4483 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4484 (loclist_describe_location): Ditto.
4485
1c5a993e
MR
44862012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4487
4488 PR backtrace/13866
4489 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4490 after hiding inline functions.
4491
0b155465
JB
44922012-06-13 Joel Brobecker <brobecker@adacore.com>
4493
4494 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4495 _initialize_inf_ttrace.
4496
45717bac
JB
44972012-06-13 Joel Brobecker <brobecker@adacore.com>
4498
4499 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4500 _initialize_hppa_hpux_nat.
4501
34370865
JB
45022012-06-13 Joel Brobecker <brobecker@adacore.com>
4503
4504 * remote-sim.c (sim_command_completer): Change type of return
4505 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4506
284c5a60
MK
45072012-06-13 Mark Kettenis <kettenis@gnu.org>
4508 Jan Kratochvil <jan.kratochvil@redhat.com>
4509
4510 PR tdep/14222
4511 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4512 stack on a 16-byte boundary.
4513
2535757a
TT
45142012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4515
4516 * jit.c (finalize_symtab): Set function's return type to 'void' by
4517 default.
4518
fff4548b
MK
45192012-06-13 Mark Kettenis <kettenis@gnu.org>
4520 H.J. Lu <hongjiu.lu@intel.com>
4521
5a83521a
MK
4522 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4523 Move bits common to both the classic LP64 and the new x32 ILP32
4524 ABI here.
4525 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4526 (amd64_x32_linux_init_abi): New function.
4527 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4528 subtype.
4529
fff4548b
MK
4530 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4531 * i386-tdep.c (i386_pseudo_register_name): Make public.
4532 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4533 * amd64-tdep.c (amd64_dword_names): Add "eip".
4534 (amd64_x32_pseudo_register_type): New function
4535 (amd64_x32_init_abi): New function.
4536
dd80ea3c
JK
45372012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4538
4539 PR build/14003
4540 * inferior.h (struct inferior_suspend_state): Comment out.
4541 (struct inferior): Comment out the field suspend.
4542 * infrun.c (struct infcall_suspend_state): Comment out the field
4543 inferior_suspend.
4544 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4545 out its assignment.
4546
50af5481
JK
45472012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4548
4549 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4550 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4551 function comment. Return ERROR for unresolved cases. Implement
4552 returning proper NAME.
4553 (yylex): Accept also NAME from classify_inner_name.
4554 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4555 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4556 LOC_TYPEDEF type.
4557 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4558
d55637df
TT
45592012-06-13 Tom Tromey <tromey@redhat.com>
4560
4561 * breakpoint.c (condition_completer): New function.
4562 (_initialize_breakpoint): Use it.
4563 * value.c (complete_internalvar): New function.
4564 * value.h (complete_internalvar): Declare.
4565
49c4e619
TT
45662012-06-13 Tom Tromey <tromey@redhat.com>
4567
4568 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4569 * breakpoint.c (catch_syscall_completer): Return a VEC.
4570 * cli/cli-cmds.c (complete_command): Update.
4571 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4572 (complete_on_enum): Likewise.
4573 * command.h: Include gdb_vecs.h.
4574 (completer_ftype): Change return type.
4575 (complete_on_cmdlist, complete_on_enum): Likewise.
4576 * completer.c (noop_completer, filename_completer)
4577 (location_completer): Return a VEC.
4578 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4579 to a VEC.
4580 (expression_completer, complete_line_internal, complete_line)
4581 (command_completer): Return a VEC.
4582 (gdb_completion_word_break_characters, line_completion_function):
4583 Update.
4584 * completer.h: Include gdb_vecs.h.
4585 (complete_line, noop_completer, filename_completer)
4586 (expression_completer, location_completer, command_completer):
4587 Update.
4588 * f-lang.c (f_word_break_characters): Return a VEC.
4589 * interps.c (interpreter_completer): Return a VEC.
4590 * language.h (struct language_defn)
4591 <la_make_symbol_completion_list>: Return a VEC.
4592 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4593 * symtab.c (free_completion_list): Take a VEC.
4594 (return_val_size, return_val_index): Remove.
4595 (return_val): Now a VEC.
4596 (completion_list_add_name): Update.
4597 (default_make_symbol_completion_list_break_on)
4598 (default_make_symbol_completion_list, make_symbol_completion_list)
4599 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4600 Return a VEC.
4601 (add_filename_to_list): Update.
4602 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4603 <list>: Now a VEC.
4604 (maybe_add_partial_symtab_filename): Update.
4605 (make_source_files_completion_list): Return a VEC.
4606 * symtab.h (default_make_symbol_completion_list_break_on)
4607 (default_make_symbol_completion_list, make_symbol_completion_list)
4608 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4609 (make_source_files_completion_list): Update.
4610
625e8578
TT
46112012-06-13 Tom Tromey <tromey@redhat.com>
4612
4613 * breakpoint.c (add_catch_command): Use completer_ftype.
4614 * breakpoint.h: Include command.h.
4615 (add_catch_command): Use completer_ftype.
4616 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4617 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4618 Use completer_ftype.
4619 * command.h (completer_ftype): New typedef.
4620 (set_cmd_completer): Use it.
4621 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4622 completer_ftype.
4623
5eb3b062
PA
46242012-06-13 Pedro Alves <palves@redhat.com>
4625
4626 Partial revert of previous change.
4627
4628 * serial.c (scb_base): New global.
4629 (serial_for_fd): New.
4630 (serial_open, serial_fdopen_ops): Link new serial in open serials
4631 chain.
4632 (do_serial_close): Unlink serial from the open serials chain.
4633
8b3ee56d
PA
46342012-06-12 Pedro Alves <palves@redhat.com>
4635
4636 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4637 threads here.
4638 (prepare_for_detach): No longer context switch here in non-stop
4639 mode.
4640 (fetch_inferior_event): Ditto.
4641 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4642 to the event thread before removing breakpoints. Switch to the
4643 event thread before inserting breakpoints and resuming.
4644 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4645 event thread before resuming.
4646 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4647 Switch to the event thread before removing breakpoints.
4648
5d60742e
EZ
46492012-06-12 Eli Zaretskii <eliz@gnu.org>
4650
4651 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4652 special characters correctly for the Windows shells. See
4653 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4654 report.
4655 [!__MINGW32__]: Remove extra double quote character from special
4656 characters.
4657
a6feecf7
SS
46582012-06-11 Stan Shebs <stan@codesourcery.com>
4659
4660 * ui-out.h: Remove #if 0 declarations.
4661 * ui-out.c: Remove #if 0 functions.
4662
ddefb60f
PA
46632012-06-11 Pedro Alves <palves@redhat.com>
4664
4665 * ser-base.c (run_async_handler_and_reschedule): New.
4666 (fd_event, push_event): Use it.
4667 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4668 reference count to 1.
4669 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4670 instead of xfree.
4671 (serial_is_open, serial_ref, serial_unref): New.
4672 * serial.h (serial_open): Adjust comment.
4673 (serial_is_open): Declare.
4674 (serial_close): Adjust comment.
4675 (serial_ref, serial_unref) Declare.
4676 (struct serial): New field 'refcnt'.
4677
d5ad6aa5
PA
46782012-06-11 Pedro Alves <palves@redhat.com>
4679
4680 Remove #if 0'd "connect" command, and unnecessary associated
4681 refcounting and serial reuse bits.
4682
4683 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4684 * serial.c (last_serial_opened): Delete.
4685 (scb_base): Delete.
4686 (serial_open): Adjust.
4687 (serial_for_fd): Delete.
4688 (serial_fdopen_ops, do_serial_close): Adjust.
4689 (serial_fdopen_ops): Adjust.
4690
318aa544
PA
46912012-06-11 Pedro Alves <palves@redhat.com>
4692
4693 * serial.c (do_serial_close): Remove early return when SCB is
4694 null.
4695
07261596
TT
46962012-06-11 Tom Tromey <tromey@redhat.com>
4697
4698 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4699
cc80f267
JK
47002012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4701
4702 Fix regression by the "ambiguous linespec" series.
4703 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4704 get_last_displayed_symtab and get_last_displayed_line and depending
4705 on CURSAL.
4706
356d9f9d
TT
47072012-06-11 Tom Tromey <tromey@redhat.com>
4708
4709 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4710 (dw2_find_symbol_file): Use it.
4711
232b8704
ME
47122012-06-11 Michael Eager <eager@eagercon.com>
4713
4714 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4715 * mips-linux-tdep.h (mips_signals): New
4716
e81a37f7
TT
47172012-06-11 Tom Tromey <tromey@redhat.com>
4718
4719 * infrun.c (handle_inferior_event)
4720 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4721 breakpoint.
4722 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4723 exception logic in all cases. Update comments.
4724 (insert_longjmp_resume_breakpoint): Set the exception resume
4725 breakpoint.
4726
2e81047f
MR
47272012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4728
4729 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4730
4e32eda7
SCR
47312012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4732
4733 * valarith.c (binop_types_user_defined_p): Fix a typo.
4734
18648a37 47352012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 4736 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
4737
4738 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4739 * arch-utils.h: Declare.
4740 * gdbarch.sh: Add return_in_first_hidden_param_p.
4741 * gdbarch.c, gdbarch.h: Regenerated.
4742 * infcall.c (call_function_by_hand): Call
4743 gdbarch_return_in_first_hidden_param_p instead of
4744 language_pass_by_reference.
4745
4746 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4747 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4748 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4749 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4750 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4751 `cplus_return_struct_by_reference'.
4752 (tic6x_return_value): Handle language cplusplus.
4753 (tic6x_return_in_first_hidden_param_p): New.
4754 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4755
034e5797
DE
47562012-06-07 Doug Evans <dje@google.com>
4757
4758 * dwarf2read.c (dwarf2_cu): Add comment.
4759
6a00aa1e
MR
47602012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4761
4762 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4763 variable.
4764 (mips_eabi_push_dummy_call): Likewise.
4765 (mips_n32n64_push_dummy_call): Likewise.
4766 (mips_o32_push_dummy_call): Likewise.
4767 (mips_o64_push_dummy_call): Likewise.
4768
eaa05d59
MR
47692012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4770
4771 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4772
de13fcf2
MR
47732012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4774
4775 * mips-tdep.c (mips_pseudo_register_type): Use
4776 mips_float_register_p.
4777
c3a01a22
PA
47782012-06-06 Pedro Alves <palves@redhat.com>
4779
4780 * infrun.c (handle_inferior_event): Remove calls to
4781 reinit_frame_cache that follow a context_switch call.
4782
d25f45d9
PA
47832012-06-06 Pedro Alves <palves@redhat.com>
4784
4785 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4786 context_switch and remove stale comment.
4787
359f5fe6
PA
47882012-06-06 Pedro Alves <palves@redhat.com>
4789
4790 * infrun.c (struct execution_control_state): Remove
4791 `new_thread_event' field.
4792 (handle_inferior_event): Simplify new threads handling; don't
4793 resume the inferior if we find a new thread.
4794
2d4c29c5
TS
47952012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4796
4797 * NEWS: Document the deprecation of SH's 'regs' command.
4798 * inferior.h (all_registers_info): Add function declaration.
4799 * sh-tdep.c (sh_show_regs): Remove variable.
4800 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4801 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4802 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4803 (sh_show_regs_command): Remove functions.
4804 (sh_gdbarch_init): Don't set sh_show_regs.
4805 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4806 'info all-registers'.
4807 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4808 (sh64_show_regs): Remove functions.
4809 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4810
f5f1cdb6
JK
48112012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4812
4813 * configure.ac: Move development=true below AC_INIT.
4814 * configure: Regenerate.
4815
bf6309af
SS
48162012-06-05 Stan Shebs <stan@codesourcery.com>
4817
4818 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4819 gdb_stdout.
4820
45aa4659
JK
48212012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4822
4823 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4824 argument as ssize_t.
4825 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4826 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4827 * target.c (target_read_stack, target_write_memory)
4828 (target_write_raw_memory): Likewise.
4829 * target.h (target_read_stack, target_write_memory)
4830 (target_write_raw_memory): Likewise.
4831
1b162304
JK
48322012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4833
4834 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4835 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4836 * target.c (target_read_memory): Change LEN to ssize_t.
4837 * target.h (target_read_memory): Change LEN to ssize_t.
4838
8556afb4
PA
48392012-06-05 Pedro Alves <palves@redhat.com>
4840
4841 PR backtrace/13866
4842
4843 * breakpoint.c (until_break_command): Only fetch the selected
4844 frame after decode_line_1.
4845
fb139f32
PA
48462012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4847
4848 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4849 event breakpoint at _start, __start or main if a program
4850 interpreter is not found.
4851
a8e1bb34
JB
48522012-06-05 Joel Brobecker <brobecker@adacore.com>
4853
4854 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4855 Add declaration.
4856 * windows-tdep.c: #include "objfiles.h".
4857 (windows_iterate_over_objfiles_in_search_order): New function.
4858 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4859 iterate_over_objfiles_in_search_order gdbarch method to
4860 windows_iterate_over_objfiles_in_search_order.
4861 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4862
19630284
JB
48632012-06-05 Joel Brobecker <brobecker@adacore.com>
4864
4865 * gdbarch.sh: Add generation of
4866 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
4867 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
4868 (iterate_over_objfiles_in_search_order): New gdbarch method.
4869 * gdbarch.h, gdbarch.c: Regenerate.
4870 * objfiles.h (default_iterate_over_objfiles_in_search_order):
4871 Add declaration.
4872 * objfiles.c (default_iterate_over_objfiles_in_search_order):
4873 New function.
4874 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4875 out of lookup_symbol_aux_symtabs.
4876 (lookup_symbol_aux_symtabs): Replace extracted-out code by
4877 call to lookup_symbol_aux_objfile.
4878 (struct global_sym_lookup_data): New type.
4879 (lookup_symbol_global_iterator_cb): New function.
4880 (lookup_symbol_global): Search for symbol using
4881 gdbarch_iterate_over_objfiles_in_search_order and
4882 lookup_symbol_global_iterator_cb.
4883 * findvar.c (struct minsym_lookup_data): New type.
4884 (minsym_lookup_iterator_cb): New function.
4885 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
4886 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
4887 and minsym_lookup_iterator_cb.
4888
67ff19f7
JB
48892012-06-05 Joel Brobecker <brobecker@adacore.com>
4890
4891 Revert the following patch:
4892 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4893 try locating the symbol in the symbol's own objfile first, before
4894 extending the search to all objfiles.
4895 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4896 out of lookup_symbol_aux_symtabs.
4897 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4898 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4899 Do not search EXCLUDE_OBJFILE.
4900 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4901 (lookup_symbol_global): Search for matches in the block's objfile
4902 first, before searching all other objfiles.
4903
ccab2054
JB
49042012-06-05 Joel Brobecker <brobecker@adacore.com>
4905
4906 * breakpoint.c (find_condition_and_thread): Stop parsing
4907 as soon as the first invalid keyword is found.
4908
e23d4a9c
JB
49092012-06-05 Joel Brobecker <brobecker@adacore.com>
4910
4911 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
4912
70160166
JB
49132012-06-05 Joel Brobecker <brobecker@adacore.com>
4914
4915 * config/djgpp/djcheck.sh: Add copyright header.
4916
399501a5
JB
49172012-06-05 Joel Brobecker <brobecker@adacore.com>
4918
4919 * copyright.py (update_files, main): Fix path to update-copyright
4920 script.
4921
3770a159
JB
49222012-06-05 Joel Brobecker <brobecker@adacore.com>
4923
4924 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
4925 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
4926 for which a reminder to update by hand is printed.
4927
4aad0dfc
DE
49282012-06-04 Doug Evans <dje@google.com>
4929
4930 * buildsym.c (make_blockvector): Add comment.
4931
1f8cf220
PA
49322012-06-04 Pedro Alves <palves@redhat.com>
4933
4934 * arch-utils.c (default_gdb_signal_from_target): Delete.
4935 * arch-utils.h (default_gdb_signal_from_target): Delete.
4936 * corelow.c (core_open) <signal mapping>: Extended comment. Check
4937 gdbarch_gdb_signal_from_target_p.
4938 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
4939 predicate).
4940 * gdbarch.h: Regenerate.
4941 * gdbarch.c: Regenerate.
4942
86b49880
PA
49432012-06-04 Pedro Alves <palves@redhat.com>
4944
4945 * gdbarch.sh (gdb_signal_from_target): Mention that the
4946 implementation of the method must be host independent.
4947 * gdbarch.h: Regenerate.
4948
fe78531d
JK
49492012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4950
4951 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
4952 parameters.
4953 (target_read_memory_bfd): New function.
4954 (symbol_file_add_from_memory): Use it.
4955
d790cf0a
DE
49562012-06-03 Doug Evans <dje@google.com>
4957
78e5175a
DE
4958 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
4959 of primary symtab.
4960 (basic_lookup_transparent_type): Ditto.
4961
d790cf0a
DE
4962 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
4963 (ALL_PRIMARY_SYMTABS): Use it.
4964 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
4965 * dwarf2read.c (dw2_find_symbol_file): Ditto.
4966 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
4967 * symtab.c (lookup_symbol_aux_objfile): Ditto.
4968 (basic_lookup_transparent_type): Ditto.
4969
c6e5ee5e
SDJ
49702012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
4971
4972 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
4973 it to optimize resolution of demangled name.
4974
a68ffae9
JK
49752012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
4976
4977 * configure.ac (development): Define new variable.
4978 Call AC_CHECK_LIB for mcheck if $development.
4979 (ERROR_ON_WARNING): Enable it by default only if $development.
4980 * config.in: Regenerate.
4981 * configure: Regenerate.
4982
5299c1c4
JK
49832012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
4984
4985 * target.c (target_read_memory): Make LEN argument as size_t.
4986 * target.h (target_read_memory): Likewise.
4987
49882012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
4989
4990 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
4991
0c56f59b
EBM
49922012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
4993
4994 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
4995 BookE interface for PowerPC server processors if not available
4996 in the Linux Kernel.
4997
71bdabee
KS
49982012-05-31 Keith Seitz <keiths@redhat.com>
4999
5000 * linespec.c (decode_objc): Add cleanup to free
5001 INFO.FILE_SYMTABS.
5002 (find_linespec_symbols): Add cleanup to free CLASSES.
5003 * symfile.c (find_separate_debug_file_by_debuglink): Add
5004 cleanup to free DEBUGLINK.
5005 * ui-out.c (clear_header_list): No need to check if
5006 HEADER_NEXT.COLHDR is NULL.
5007 Free HEADER_NEXT.COL_NAME.
5008
acbd605d
MGD
50092012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5010
5011 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5012 warning.
5013
65662cde
PA
50142012-05-30 Jeff Kenton <jkenton@tilera.com>
5015
5016 * configure.host (gdb_host_cpu): Handle tilegx*.
5017 (gdb_host): Handle tilegx-*-linux*.
5018 * tilegx-linux-nat.c: New file.
5019 * config/tilegx/linux.mh: New file.
5020
ade64f0e
PA
50212012-05-30 Jeff Kenton <jkenton@tilera.com>
5022
5023 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5024 tilegx-linux-tdep.o.
5025 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5026 tilegx-linux-tdep.c.
5027 * configure.tgt: Handle tilegx-*-linux*.
5028 * tilegx-tdep.h: New file.
5029 * tilegx-tdep.c: New file.
5030 * tilegx-linux-tdep.c: New file.
5031 * regformats/reg-tilegx.dat: New file.
5032
bb08bdbd
EBM
50332012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5034
5035 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5036 accounting of hw watchpoints on ppc.
5037
ebd86fb5
TJB
50382012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5039
5040 * source.c (openp): Expand tilde in path entries.
5041
0a0edcd5
DE
50422012-05-29 Doug Evans <dje@google.com>
5043
98cc87bd
DE
5044 * buildsym.c (block_compar): Fix comment.
5045 (end_symtab): Fix and clarify some comments.
5046
0a0edcd5
DE
5047 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5048 cleanup_undefined_types.
5049 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5050 All callers updated.
5051
6f0c7050
TT
50522012-05-29 Tom Tromey <tromey@redhat.com>
5053
5054 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5055 fails.
5056 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5057 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5058 fails.
5059 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5060 fails.
5061
ec95993c
TG
50622012-05-29 Tristan Gingold <gingold@adacore.com>
5063
5064 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5065 (struct darwin_info): ... New struct.
5066 (solib_darwin_pspace_data): New variable.
5067 (darwin_pspace_data_cleanup): New function.
5068 (get_darwin_info): Likewise.
5069 (darwin_dyld_version_ok, darwin_load_image_infos)
5070 (darwin_solib_get_all_image_info_addr_at_init)
5071 (darwin_solib_read_all_image_info_addr): Add info argument.
5072 Adjust code.
5073 (darwin_current_sos): Use per pspace structure.
5074 (darwin_solib_create_inferior_hook): Likewise.
5075 (darwin_clear_solib): Likewise.
5076 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5077
ae25568b
PA
50782012-05-28 Pedro Alves <palves@redhat.com>
5079
5080 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5081 block that uses them. Clear ecss before handling each event.
5082
0c5bf5a9
JK
50832012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5084
5085 * solib-svr4.c (svr4_current_sos): New comment on
5086 svr4_current_sos_via_xfer_libraries fall back.
5087
bfb05775
JK
50882012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5089
5090 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5091 it as a fallback for TYPE_IS_OPAQUE.
5092 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5093 symbols for lookup_symbol.
5094
685b1105
JK
50952012-05-24 John Steele Scott <toojays@toojays.net>
5096
5097 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5098 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5099 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5100 (check_producer): ... this new function, which also checks for ICC
5101 and caches the result.
5102 (producer_is_icc): New function.
5103 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5104 producer was ICC.
5105
22203bbf
PA
51062012-05-24 Pedro Alves <palves@redhat.com>
5107
5108 PR gdb/7205
5109
5110 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5111 (default_gdb_signal_to_target): ... this. Add comment.
5112 (default_gdb_signal_from_host): Rename to ...
5113 (default_gdb_signal_from_target): ... this. Add comment.
5114 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5115 (default_gdb_signal_to_target): ... this.
5116 (default_gdb_signal_from_host): Rename to ...
5117 (default_gdb_signal_from_target): ... this.
5118 * corelow.c (core_open): Adjust to naming change. Replace comment.
5119 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5120 (gdb_signal_from_target): ... this. Adjust to
5121 default_gdb_signal_from_host naming change. Extend comment.
5122 (gdb_signal_to_host): Rename to ...
5123 (gdb_signal_to_target): ... this. Adjust to
5124 default_gdb_signal_to_host naming change.
5125 * gdbarch.h, gdbarch.c: Renegerate.
5126
a493e3e2
PA
51272012-05-24 Pedro Alves <palves@redhat.com>
5128
5129 PR gdb/7205
5130
f782ad9b 5131 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 5132
2ea28649
PA
51332012-05-24 Pedro Alves <palves@redhat.com>
5134
5135 PR gdb/7205
5136
5137 Replace target_signal with gdb_signal throughout.
5138
b09846a9
PA
51392012-05-24 Pedro Alves <palves@redhat.com>
5140
5141 PR tui/14159
5142
5143 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5144 string, instead of reusing the va_list argument.
5145
e77c107e
TT
51462012-05-24 Tom Tromey <tromey@redhat.com>
5147
5148 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5149 Remove.
5150
9fccedf7
DE
51512012-05-23 Doug Evans <dje@google.com>
5152
d50bd42b
DE
5153 * symtab.c (search_symbols): Formatting fixes.
5154 (print_symbol_info): Formatting fixes.
5155
9fccedf7
DE
5156 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5157 int64_t change to leb128 API.
5158 (read_encoded_value, decode_frame_entry_1): Ditto.
5159 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5160 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5161 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5162 (execute_stack_op): Ditto.
5163 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5164 (safe_read_uleb128, safe_read_sleb128): Ditto.
5165 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5166 (dwarf2_compile_expr_to_ax): Ditto.
5167 (locexpr_describe_location_piece): Ditto.
5168 (disassemble_dwarf_expression): Ditto.
5169 (locexpr_describe_location_1): Ditto.
5170
f3e0e960
SS
51712012-05-23 Stan Shebs <stan@codesourcery.com>
5172 Kwok Cheung Yeung <kcy@codesourcery.com>
5173
5174 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5175 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5176 (mi-cmd-info.o): New rule.
5177 * osdata.h (info_osdata_command): New declaration.
5178 * osdata.c (info_osdata_command): Change to non-static.
5179 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5180 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5181 * mi/mi-cmd-info.c: New file.
5182
c51fe631
DE
51832012-05-23 Doug Evans <dje@google.com>
5184
71cddcc1
DE
5185 * symtab.c (search_symbols): Pass NULL for file_matcher to
5186 expand_symtabs_matching if there are no files to match.
5187
c51fe631
DE
5188 * gdbtypes.c (lookup_typename): Simplify.
5189
a79378d4
PA
51902012-05-23 Pedro Alves <palves@redhat.com>
5191
5192 * arch-utils.h (default_target_signal_to_host): Delete.
5193 * arch-utils.c (default_target_signal_to_host): Delete.
5194 * gdbarch.sh (target_signal_to_host): Remove.
5195 * gdbarch.h, gdbarch.c: Regenerate.
5196
f664829e
DE
51972012-05-22 Doug Evans <dje@google.com>
5198
5199 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5200 "const gdb_byte *".
5201 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5202 (execute_cfa_program): Update to match API of leb128 functions.
5203 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5204 "const gdb_byte *".
5205 (read_unsigned_leb128, read_signed_leb128): Delete.
5206 (read_initial_length): Change type of buf argument to
5207 "const gdb_byte *".
5208 (read_encoded_value): Update to match API of leb128 functions.
5209 (decode_frame_entry): Change result to "const gdb_byte *", and
5210 similarly for "start" parameter.
5211 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5212 (dwarf2_build_frame_info): Change local frame_ptr to
5213 "const gdb_byte *".
5214 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5215 read_uleb128, read_sleb128. All callers updated.
5216 (safe_skip_leb128): New function.
5217 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5218 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5219 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5220 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5221 read_uleb128, read_sleb128.
5222 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5223 (execute_stack_op): Update to match API of leb128 functions.
5224 * dwarf2expr.h: #include "leb128.h".
5225 (read_uleb128, read_sleb128): Delete.
5226 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5227 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5228 * dwarf2loc.c (debug_loc_kind): New enum.
5229 (decode_debug_loc_addresses): New function.
5230 (decode_debug_loc_dwo_addresses): New function.
5231 (dwarf2_find_location_expression): Rewrite.
5232 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5233 (locexpr_describe_location_piece): Ditto.
5234 (disassemble_dwarf_expression): Ditto.
5235 (locexpr_describe_location_1): Ditto.
5236 (loclist_describe_location): Rewrite.
5237 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5238 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5239 (dwarf2_section_buffer_overflow_complaint): Renamed from
5240 dwarf2_macros_too_long_complaint. All callers updated.
5241 (skip_leb128): Delete.
5242 (init_cu_die_reader): Initialize reader->buffer_end.
5243 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5244 (skip_form_bytes): New arg buffer_end. All callers updated.
5245 Replace call to skip_leb128 with gdb_skip_leb128.
5246 (skip_unknown_opcode): New arg mac_end. All callers updated.
5247 (fill_in_loclist_baton): Initialize baton->from_dwo.
5248
837a1b32
MR
52492012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5250
5251 * mips-linux-nat.c (mips_linux_read_description): Use a more
5252 verbose error message.
5253
d0e64392
MR
52542012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5255
5256 * NEWS: Add MIPS/Linux DSP support.
5257 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5258 (SIGCONTEXT_DSPCTL): New macro.
5259 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5260 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5261 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5262 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5263 (N64_SIGCONTEXT_HI3): Likewise.
5264 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5265 (N64_SIGCONTEXT_LO3): Likewise.
5266 (N64_SIGCONTEXT_DSPCTL): Likewise.
5267 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5268 (mips_linux_o32_sigframe_init): Handle DSP registers.
5269 (mips_linux_n32n64_sigframe_init): Likewise.
5270
8bea7ed1
PM
52712012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5272
5273 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5274 call to abort.
5275
dab06dbe
PA
52762012-05-22 Pedro Alves <palves@redhat.com>
5277
5278 * target.h (store_waitstatus): Move declaration ...
5279 * inf-child.h (store_waitstatus): ... here.
5280 * target.c: Move inclusion of gdb_wait.h, and ...
5281 (store_waitstatus): ... this ...
5282 * inf-child.c: ... here.
5283 * linux-nat.c: Include inf-child.h.
5284 * rs6000-nat.c: Include inf-child.h.
5285 * spu-linux-nat.c: Include inf-child.h.
5286
43011e52
PM
52872012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5288
5289 * tracepoint.c (start_tracing): Add missing i18n markup.
5290 (stop_tracing, set_trace_user): Ditto.
5291 (set_trace_notes, set_trace_stop_notes): Ditto.
5292
b1af9e97
TT
52932012-05-21 Tom Tromey <tromey@redhat.com>
5294
5295 PR c++/7173:
5296 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5297 types.
5298 * value.h (value_cast_pointers): Update.
5299 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5300 (value_cast): Update.
5301 (update_search_result): New function.
5302 (do_search_struct_field): New, from search_struct_field. Check
5303 for ambiguous results.
5304 (search_struct_field): Rewrite.
5305 * infcall.c (value_arg_coerce): Update.
5306 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5307 value_cast_pointers.
5308 * ada-lang.c (ada_convert_actual): Update.
5309
e9e5e6b3
TT
53102012-05-21 Tom Tromey <tromey@redhat.com>
5311
5312 * macroexp.c (macro_stringify): Terminate the string.
5313
1564a261
JK
53142012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5315
5316 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5317 Describe it.
5318 * auto-load.c (auto_load_expand_dir_vars): New function.
5319 (auto_load_safe_path_vec_update): Use it, remove the
5320 substitute_path_component call thanks to it.
5321 (auto_load_objfile_script): Remove the debug_file_directory processing.
5322 Use auto_load_expand_dir_vars, remove the substitute_path_component
5323 call thanks to it.
5324 * configure: Regenerate.
5325 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5326 path. Escape $ also for $debugdir.
5327 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5328 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5329
a3ec0bb1
DE
53302012-05-20 Doug Evans <dje@google.com>
5331
5332 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5333 before use. Check for symtab->includes == NULL before scanning it.
5334
d467df4e
MR
53352012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5336
5337 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5338
4cc0665f
MR
53392012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5340
5341 * NEWS: Add microMIPS support and "set mips compression",
5342 "show mips compression" commands.
5343 * mips-tdep.h (mips_isa): New enum.
5344 (gdbarch_tdep): Add mips_isa.
5345 (mips_pc_is_mips16): Update prototype.
5346 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5347 * mips-tdep.c (mips_compression_mips16): New variable.
5348 (mips_compression_micromips): Likewise.
5349 (mips_compression_strings): Likewise.
5350 (mips_compression_string): Likewise.
5351 (is_mips16_isa, is_micromips_isa): New functions.
5352 (is_mips16_addr): Rename to...
5353 (is_compact_addr): ... this.
5354 (unmake_mips16_addr): Likewise to...
5355 (unmake_compact_addr): ... this.
5356 (make_mips16_addr): Likewise to...
5357 (make_compact_addr): ... this.
5358 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5359 functions.
5360 (mips_elf_make_msymbol_special): Handle microMIPS code.
5361 (msymbol_is_special): Rename to...
5362 (msymbol_is_mips16): ... this.
5363 (mips_make_symbol_special, mips_pc_is_mips16): Update
5364 accordingly.
5365 (msymbol_is_mips, msymbol_is_micromips): New functions.
5366 (mips16_to_32_reg): Rename to...
5367 (mips_reg3_to_reg): ... this.
5368 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5369 (mips_pc_isa): Likewise.
5370 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5371 code.
5372 (mips_fetch_instruction): Pass return status instead of printing
5373 an error message if requested. Handle microMIPS code. Bail out
5374 on an invalid ISA.
5375 (micromips_op): New macro.
5376 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5377 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5378 (b6s4_op, b7s3_reg): Likewise.
5379 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5380 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5381 (mips_insn_size): New function.
5382 (mips32_next_pc): Update mips_fetch_instruction call.
5383 (micromips_relative_offset7): New function.
5384 (micromips_relative_offset10): Likewise.
5385 (micromips_relative_offset16): Likewise.
5386 (micromips_pc_insn_size): Likewise.
5387 (micromips_bc1_pc): Likewise.
5388 (micromips_next_pc): Likewise.
5389 (unpack_mips16): Update mips_fetch_instruction call.
5390 (extended_mips16_next_pc): Update according to change to
5391 mips16_to_32_reg.
5392 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5393 code.
5394 (mips16_scan_prologue): Update mips_fetch_instruction call.
5395 Update according to change to mips16_to_32_reg.
5396 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5397 (mips_insn16_frame_base_sniffer): Likewise.
5398 (micromips_decode_imm9): New function.
5399 (micromips_scan_prologue): Likewise.
5400 (mips_micro_frame_cache): Likewise.
5401 (mips_micro_frame_this_id): Likewise.
5402 (mips_micro_frame_prev_register): Likewise.
5403 (mips_micro_frame_sniffer): Likewise.
5404 (mips_micro_frame_unwind): New variable.
5405 (mips_micro_frame_base_address): New function.
5406 (mips_micro_frame_base): New variable.
5407 (mips_micro_frame_base_sniffer): New function.
5408 (mips32_scan_prologue): Update mips_fetch_instruction call.
5409 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5410 rather than for MIPS16.
5411 (mips_insn32_frame_base_sniffer): Likewise.
5412 (mips_addr_bits_remove): Handle microMIPS code.
5413 (deal_with_atomic_sequence): Rename to...
5414 (mips_deal_with_atomic_sequence): ... this. Update the type
5415 of the variable used to hold an instruction. Remove the ISA bit
5416 check. Update mips_fetch_instruction call.
5417 (micromips_deal_with_atomic_sequence): New function.
5418 (deal_with_atomic_sequence): Likewise.
5419 (mips_about_to_return): Handle microMIPS code. Update
5420 mips_fetch_instruction call.
5421 (heuristic_proc_start): Check for the standard MIPS ISA rather
5422 than for MIPS16. Update mips_pc_is_mips16 and
5423 mips_fetch_instruction calls. Handle microMIPS code.
5424 (mips_push_dummy_code): Handle microMIPS code.
5425 (mips_eabi_push_dummy_call): Likewise.
5426 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5427 (mips_o64_push_dummy_call): Handle microMIPS code.
5428 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5429 (is_delayed): Remove function.
5430 (mips_single_step_through_delay): Replace the call to is_delayed
5431 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5432 Handle microMIPS code.
5433 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5434 microMIPS code.
5435 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5436 call.
5437 (micromips_in_function_epilogue_p): New function.
5438 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5439 call.
5440 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5441 Handle microMIPS.
5442 (gdb_print_insn_mips): Likewise.
5443 (mips_breakpoint_from_pc): Likewise.
5444 (mips_remote_breakpoint_from_pc): New function.
5445 (mips32_instruction_has_delay_slot): Simplify making use of the
5446 updated mips_fetch_instruction interface.
5447 (micromips_instruction_has_delay_slot): New function.
5448 (mips16_instruction_has_delay_slot): Simplify making use of the
5449 updated mips_fetch_instruction interface.
5450 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 5451 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
5452 calls. Handle microMIPS code.
5453 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5454 (mips_skip_trampoline_code): Handle microMIPS code.
5455 (global_mips_compression): New function.
5456 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5457 file flags. Register the microMIPS remote breakpoint handler
5458 and heuristic frame unwinder.
5459 (show_mips_compression): New function.
5460 (_initialize_mips_tdep): Add the "set mips compression" and
5461 "show mips compression" commands.
5462
22e048c9
SDJ
54632012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5464
5465 * ada-lang.c:
5466 * ada-tasks.c:
5467 * ada-varobj.c:
5468 * amd64-darwin-tdep.c:
5469 * arm-symbian-tdep.c:
5470 * arm-tdep.c:
5471 * avr-tdep.c:
5472 * ax-gdb.c:
5473 * bfin-linux-tdep.c:
5474 * breakpoint.c:
5475 * c-valprint.c:
5476 * cli/cli-cmds.c:
5477 * coffread.c:
5478 * cp-support.c:
5479 * cris-tdep.c:
5480 * dwarf2-frame-tailcall.c:
5481 * dwarf2-frame.c:
5482 * dwarf2expr.c:
5483 * dwarf2loc.c:
5484 * dwarf2read.c:
5485 * elfread.c:
5486 * eval.c:
5487 * expprint.c:
5488 * f-valprint.c:
5489 * frv-tdep.c:
5490 * h8300-tdep.c:
5491 * hppa-hpux-tdep.c:
5492 * hppa-tdep.c:
5493 * hppanbsd-tdep.c:
5494 * i386-nto-tdep.c:
5495 * i386-tdep.c:
5496 * i387-tdep.c:
5497 * ia64-tdep.c:
5498 * jit.c:
5499 * linespec.c:
5500 * linux-tdep.c:
5501 * lm32-tdep.c:
5502 * m2-valprint.c:
5503 * m32c-tdep.c:
5504 * m32r-rom.c:
5505 * m32r-tdep.c:
5506 * m68k-tdep.c:
5507 * m68klinux-tdep.c:
5508 * mi/mi-main.c:
5509 * microblaze-tdep.c:
5510 * mips-linux-tdep.c:
5511 * mips-tdep.c:
5512 * mn10300-tdep.c:
5513 * p-valprint.c:
5514 * parse.c:
5515 * ppc-linux-tdep.c:
5516 * ppc-sysv-tdep.c:
5517 * printcmd.c:
5518 * python/py-finishbreakpoint.c:
5519 * python/py-inferior.c:
5520 * python/py-infthread.c:
5521 * python/py-type.c:
5522 * python/python.c:
5523 * remote-fileio.c:
5524 * remote-m32r-sdi.c:
5525 * remote-mips.c:
5526 * reverse.c:
5527 * rl78-tdep.c:
5528 * rs6000-aix-tdep.c:
5529 * rs6000-tdep.c:
5530 * s390-tdep.c:
5531 * score-tdep.c:
5532 * sh64-tdep.c:
5533 * skip.c:
5534 * solib-darwin.c:
5535 * solib-dsbt.c:
5536 * solib-frv.c:
5537 * sparc-tdep.c:
5538 * spu-multiarch.c:
5539 * spu-tdep.c:
5540 * stack.c:
5541 * symfile.c:
5542 * symtab.c:
5543 * tic6x-tdep.c:
5544 * tracepoint.c:
5545 * v850-tdep.c:
5546 * valarith.c:
5547 * valprint.c:
5548 * value.c:
5549 * xcoffread.c:
5550 * xtensa-tdep.c:
5551 * ada-lang.c:
5552 * ada-tasks.c:
5553 * ada-varobj.c:
5554 * amd64-darwin-tdep.c:
5555 * arm-symbian-tdep.c:
5556 * arm-tdep.c: Delete unused variables.
5557
aff139ff
JK
55582012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5559
5560 Rename $ddir to $datadir.
5561 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5562 * auto-load.c (auto_load_safe_path_vec_update)
5563 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5564 * configure: Regenerate.
5565 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5566 Likewise. Remove the 'use $ddir' help string.
5567
f7bfa992
JK
55682012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5569
5570 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5571 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5572
9cb709b6
TT
55732012-05-18 Tom Tromey <tromey@redhat.com>
5574
5575 PR exp/13907:
5576 * valprint.h (struct value_print_options) <symbol_print>: New
5577 field.
5578 * valprint.c (user_print_options): Add default for symbol_print.
5579 (show_symbol_print): New function.
5580 (generic_val_print): Respect symbol_print.
5581 (_initialize_valprint): Add "print symbol" setting.
5582 * f-valprint.c (f_val_print): Respect symbol_print.
5583 * c-valprint.c (c_val_print): Respect symbol_print.
5584 * NEWS: Update.
5585 * printcmd.c (print_address_symbolic): Return int. Ignore some
5586 zero-size symbols.
5587 (print_address_demangle): Return int.
5588 * defs.h: (print_address_symbolic): Return int.
5589 * value.h (print_address_demangle): Return int.
5590
b012acdd
TT
55912012-05-18 Tom Tromey <tromey@redhat.com>
5592
5593 * valprint.c (val_print_string): Don't print leading space.
5594 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5595 print space before string or vtbl.
5596 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5597 before string.
5598 * jv-valprint.c (java_value_print): Print space before string.
5599 * go-valprint.c (print_go_string): Print space before string.
5600 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5601 space before string.
5602 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5603 space before string or vtbl.
5604 * auxv.c (fprint_target_auxv): Print space after address.
5605
1d51a733
TT
56062012-05-18 Tom Tromey <tromey@redhat.com>
5607
5608 * printcmd.c (print_address_demangle): Remove special case for 0.
5609
edf0c1b7
TT
56102012-05-18 Tom Tromey <tromey@redhat.com>
5611
5612 * printcmd.c (print_address_demangle): Add 'opts' argument.
5613 * p-valprint.c (pascal_val_print): Update.
5614 * jv-valprint.c (java_val_print): Update.
5615 * value.h: Update.
5616 * valprint.c (generic_val_print): Update.
5617 (print_function_pointer_address): Add 'options' argument. Remove
5618 'addressprint' argument. Update.
5619 * m2-valprint.c (print_unpacked_pointer): Update.
5620 * gnu-v3-abi.c (print_one_vtable): Update.
5621 (gnuv3_print_method_ptr): Update.
5622 * f-valprint.c (f_val_print): Update.
5623 * cp-valprint.c (cp_print_value_fields): Update.
5624 * valprint.h (print_function_pointer_address): Update.
5625 * c-valprint.c (c_val_print): Update.
5626
9703b513
TT
56272012-05-18 Tom Tromey <tromey@redhat.com>
5628
5629 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5630 directly corresponding to the found psymtab.
5631 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5632 (dw2_find_pc_sect_symtab): Use it.
5633 * block.h (blockvector_contains_pc): Declare.
5634 * block.c (find_block_in_blockvector): New function.
5635 (blockvector_for_pc_sect): Use it.
5636 (blockvector_contains_pc): New function.
5637
5a439849
MR
56382012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5639
5640 * mips-tdep.h (mips_write_pc): New prototype.
5641 * mips-tdep.c (mips_write_pc): Make external, add description.
5642 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5643 add description.
5644
8376de04
MR
56452012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5646
5647 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5648 mips_regnum->pc.
5649 (mips_unwind_pc, mips_write_pc): Likewise.
5650 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5651 gdbarch_read_pc.
5652
d3581e61
JB
56532012-05-17 Joel Brobecker <brobecker@adacore.com>
5654
5655 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5656 proc_warn, proc_error, proc_get_status, proc_flags,
5657 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5658 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5659 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5660 proc_stop_process, proc_wait_for_stop, proc_run_process,
5661 proc_set_traced_signals, proc_set_traced_faults,
5662 proc_set_traced_sysentry, proc_set_traced_sysexit,
5663 proc_set_held_signals, proc_get_held_signals,
5664 proc_get_traced_signals, proc_get_traced_faults,
5665 proc_get_traced_sysentry, proc_get_traced_sysexit,
5666 proc_clear_current_fault, proc_set_current_signal,
5667 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5668 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5669 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5670 proc_get_current_thread, proc_get_current_thread,
5671 proc_get_current_thread, proc_update_threads,
5672 proc_update_threads, proc_update_threads, proc_update_threads,
5673 proc_iterate_over_threads, procfs_find_new_threads,
5674 procfs_pid_to_str): Make static. Remove advance declaration.
5675 (proc_cursig): Make static. Conditionalized defintion on
5676 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5677 (proc_syscall, proc_set_kill_on_last_close,
5678 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5679 proc_get_pending_signals, proc_get_signal_actions,
5680 proc_trace_signal, proc_ignore_signal): Delete.
5681
81b9b86e
SDJ
56822012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5683
5684 * coffread.c (cs_section_address): Passing proper argument for
5685 `bfd_get_section_vma'.
5686 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5687 `bfd_get_section_flags'.
5688 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5689 `bfd_get_section_vma'.
5690
abc9d0dc
TT
56912012-05-16 Tom Tromey <tromey@redhat.com>
5692
5693 PR macros/13205:
5694 * macrotab.h: (macro_define_special): Declare.
5695 (enum macro_special_kind): New.
5696 (struct macro_definition) <argc, replacement>: Update comments.
5697 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5698 (macro_define_object_internal): New function.
5699 (macro_define_object): Use it.
5700 (macro_define_special): New function.
5701 (fixup_definition): New function.
5702 (macro_lookup_definition, foreach_macro_in_scope)
5703 (foreach_macro): Use fixup_definition.
5704 * macroexp.h (macro_stringify): Declare.
5705 * macroexp.c (free_buffer_return_text): New function.
5706 (stringify): Constify "arg".
5707 (macro_stringify): New function.
5708 * dwarf2read.c (macro_start_file): Call macro_define_special.
5709
6a3a010b 57102012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 5711 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
5712
5713 * breakpoint.h (bp_location): Add related_address member.
5714 * inferior.h (get_return_value): Take a pointer to struct value
5715 instead of struct type for the function requested.
5716 * value.h (using_struct_return): Likewise.
5717 * gdbarch.sh (return_value): Take a pointer to struct value
5718 instead of struct type for the function requested.
5719 * breakpoint.c (set_breakpoint_location_function): Initialize
5720 related_address for bp_gnu_ifunc_resolver breakpoints.
5721 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5722 requested function's address to gdbarch_return_value.
5723 * eval.c (evaluate_subexp_standard): Pass the requested
5724 function's address to using_struct_return.
5725 * infcall.c (call_function_by_hand): Pass the requested
5726 function's address to using_struct_return and
5727 gdbarch_return_value.
5728 * infcmd.c (get_return_value): Take a pointer to struct value
5729 instead of struct type for the function requested.
5730 (print_return_value): Update accordingly.
5731 (finish_command_continuation): Likewise.
5732 * stack.c (return_command): Pass the requested function's
5733 address to using_struct_return and gdbarch_return_value.
5734 * value.c (using_struct_return): Take a pointer to struct value
5735 instead of struct type for the function requested. Pass the
5736 requested function's address to gdbarch_return_value.
5737 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5738 New function_value member, replacing function_type.
5739 (bpfinishpy_dealloc): Update accordingly.
5740 (bpfinishpy_pre_stop_hook): Likewise.
5741 (bpfinishpy_init): Likewise. Record the requested function's
5742 address.
5743 * mips-tdep.c (mips_fval_reg): New enum.
5744 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5745 words put in GP registers.
5746 (mips_o64_push_dummy_call): Update a comment.
5747 (mips_o32_return_value): Take a pointer to struct value instead
5748 of struct type for the function requested and use it to check if
5749 using the MIPS16 calling convention. Return the designated
5750 general purpose registers for floating-point values returned in
5751 MIPS16 mode.
5752 (mips_o64_return_value): Likewise.
5753 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5754 (ppc_sysv_abi_broken_return_value): Likewise.
5755 (ppc64_sysv_abi_return_value): Likewise.
5756 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5757 value instead of struct type for the function requested.
5758 * amd64-tdep.c (amd64_return_value): Likewise.
5759 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5760 * arm-tdep.c (arm_return_value): Likewise.
5761 * avr-tdep.c (avr_return_value): Likewise.
5762 * bfin-tdep.c (bfin_return_value): Likewise.
5763 * cris-tdep.c (cris_return_value): Likewise.
5764 * frv-tdep.c (frv_return_value): Likewise.
5765 * h8300-tdep.c (h8300_return_value): Likewise.
5766 (h8300h_return_value): Likewise.
5767 * hppa-tdep.c (hppa32_return_value): Likewise.
5768 (hppa64_return_value): Likewise.
5769 * i386-tdep.c (i386_return_value): Likewise.
5770 * ia64-tdep.c (ia64_return_value): Likewise.
5771 * iq2000-tdep.c (iq2000_return_value): Likewise.
5772 * lm32-tdep.c (lm32_return_value): Likewise.
5773 * m32c-tdep.c (m32c_return_value): Likewise.
5774 * m32r-tdep.c (m32r_return_value): Likewise.
5775 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5776 * m68k-tdep.c (m68k_return_value): Likewise.
5777 (m68k_svr4_return_value): Likewise.
5778 * m88k-tdep.c (m88k_return_value): Likewise.
5779 * mep-tdep.c (mep_return_value): Likewise.
5780 * microblaze-tdep.c (microblaze_return_value): Likewise.
5781 * mn10300-tdep.c (mn10300_return_value): Likewise.
5782 * moxie-tdep.c (moxie_return_value): Likewise.
5783 * mt-tdep.c (mt_return_value): Likewise.
5784 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5785 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5786 (ppc_sysv_abi_broken_return_value): Likewise.
5787 (ppc64_sysv_abi_return_value): Likewise.
5788 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5789 * rl78-tdep.c (rl78_return_value): Likewise.
5790 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5791 * rx-tdep.c (rx_return_value): Likewise.
5792 * s390-tdep.c (s390_return_value): Likewise.
5793 * score-tdep.c (score_return_value): Likewise.
5794 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5795 (sh_return_value_fpu): Likewise.
5796 * sh64-tdep.c (sh64_return_value): Likewise.
5797 * sparc-tdep.c (sparc32_return_value): Likewise.
5798 * sparc64-tdep.c (sparc64_return_value): Likewise.
5799 * spu-tdep.c (spu_return_value): Likewise.
5800 * tic6x-tdep.c (tic6x_return_value): Likewise.
5801 * v850-tdep.c (v850_return_value): Likewise.
5802 * vax-tdep.c (vax_return_value): Likewise.
5803 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5804 * xtensa-tdep.c (xtensa_return_value): Likewise.
5805 * gdbarch.c: Regenerate.
5806 * gdbarch.h: Regenerate.
5807
29ca12b3
TT
58082012-05-15 Tom Tromey <tromey@redhat.com>
5809
5810 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5811
588ae58c
JB
58122012-05-15 Joel Brobecker <brobecker@adacore.com>
5813
5814 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5815 of command in two error message.
5816
855a6e68
JB
58172012-05-15 Joel Brobecker <brobecker@adacore.com>
5818
5819 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5820
d634f2de
JB
58212012-05-15 Joel Brobecker <brobecker@adacore.com>
5822
5823 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5824
9cc815f5
JK
58252012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5826
5827 * NEWS (show auto-load scripts-directory): Add forgotten command.
5828
6a609e58
JK
58292012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5830
5831 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5832 parameters.
5833
ac1438b5
L
58342012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5835
5836 * amd64-tdep.c: Include features/i386/x32.c and
5837 features/i386/x32-avx.c.
5838 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5839 initialize_tdesc_x32_avx.
5840
e7e0cddf
SS
58412012-05-14 Stan Shebs <stan@codesourcery.com>
5842
5843 Add dynamic printf.
5844 * breakpoint.h (enum bptype): New type bp_dprintf.
5845 (struct breakpoint): New field extra_string.
5846 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5847 (create_breakpoint): Add extra_string arg.
5848 * breakpoint.c (dprintf_breakpoint_ops): New.
5849 (is_breakpoint): Add bp_dprintf.
5850 (bpstat_what): Add dprintf case.
5851 (bptype_string): Ditto.
5852 (print_one_breakpoint_location): Ditto.
5853 (init_bp_location): Ditto.
5854 (bkpt_print_mention): Ditto.
5855 (dprintf_style_enums): New array.
5856 (dprintf_style): New global.
5857 (dprintf_function): New global.
5858 (dprintf_channel): New global.
5859 (update_dprintf_command_list): New function.
5860 (update_dprintf_commands): New function.
5861 (init_breakpoint_sal): Add extra_string argument, handle it.
5862 (create_breakpoint_sal): Add extra_string argument.
5863 (create_breakpoints_sal): Add extra_string argument, update callers.
5864 (find_condition_and_thread): Add extra argument.
5865 (create_breakpoint): Add extra_string argument, record it.
5866 (dprintf_command): New function.
5867 (break_command_1): Add arg to create_breakpoint call.
5868 (handle_gnu_v3_exceptions): Ditto.
5869 (trace_command): Ditto.
5870 (ftrace_command): Ditto.
5871 (strace_command): Ditto.
5872 (bkpt_print_mention): Add dprintf case.
5873 (create_breakpoint_sal_default): Add extra_string argument.
5874 (_initialize_breakpoint): Add new commands.
5875 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
5876 * python/py-breakpoint.c (bppy_init): Ditto.
5877 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
5878
8ae38c14
MR
58792012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
5880
5881 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
5882
9f676e66
SCR
58832012-05-14 Siva Chandra Reddy <sivachandra@google.com>
5884
5885 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
5886 unsigned long long.
5887
7efc75aa
SCR
58882012-05-13 Siva Chandra Reddy <sivachandra@google.com>
5889
5890 Add a new function gdb.find_pc_line to the Python API.
5891 * NEWS (Python Scripting): Add entry about the new function.
5892 * python/python.c (gdbpy_find_pc_line): New function which
5893 implements gdb.find_pc_line.
5894 (GdbMethods): Add entry for the new function.
5895
70af3797
PA
58962012-05-12 Pedro Alves <palves@redhat.com>
5897
5898 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
5899 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
5900
06da564e
EZ
59012012-05-12 Eli Zaretskii <eliz@gnu.org>
5902
5903 * inferior.c: Include completer.h
5904 (initialize_inferiors): Set completer of add-inferior to
5905 filename_completer.
5906
0288cee2
L
59072012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5908
5909 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
5910 gdbarch_ptr_bit for x32 core dump.
5911
f6537a2c
L
59122012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5913
5914 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
5915 and features/i386/x32-avx-linux.c.
5916
85d4a676
SS
59172012-05-11 Stan Shebs <stan@codesourcery.com>
5918 Kwok Cheung Yeung <kcy@codesourcery.com>
5919
5920 * NEWS: Describe new info os commands.
5921 * common/linux-osdata.c (PID_T, TIME_T): Define.
5922 (MAX_PID_T_STRLEN): New.
5923 (linux_common_core_of_thread): Add comment. Change to use PID_T and
5924 MAX_PID_T_STRLEN.
5925 (command_from_pid): Add comment. Change to use PID_T.
5926 (commandline_from_pid): Change to use PID_T.
5927 (user_from_pid): Add comment.
5928 (get_process_owner): Add comment. Change to use PID_T and
5929 MAX_PID_T_STRLEN.
5930 (get_number_of_cpu_cores): Add comment.
5931 (get_cores_used_by_process): Add comment. Change to use PID_T and
5932 MAX_PID_T_STRLEN.
5933 (linux_xfer_osdata_processes): Change to use PID_T and
5934 MAX_PID_T_STRLEN.
5935 (compare_processes): New function.
5936 (linux_xfer_osdata_processgroups): New function.
5937 (linux_xfer_osdata_threads): Change to use PID_T.
5938 (linux_xfer_osdata_fds): New function.
5939 (format_socket_state, print_sockets): New functions.
5940 (union socket_addr): New union.
5941 (linux_xfer_osdata_isockets): New function.
5942 (time_from_time_t, group_from_gid): New functions.
5943 (linux_xfer_osdata_shm): New function.
5944 (linux_xfer_osdata_sem): New function.
5945 (linux_xfer_osdata_msg): New function.
5946 (linux_xfer_osdata_modules): New function.
5947 (osdata_table): Add new entries.
5948 * common/buffer.c (buffer_xml_printf): Add support for long and
5949 long long format specifiers.
5950
f24afd6d
L
59512012-05-11 H.J. Lu <hongjiu.lu@intel.com>
5952
5953 * amd64-linux-tdep.h (tdesc_x32_linux): New.
5954 (tdesc_x32_avx_linux): Likewise.
5955
7349ff92
JK
59562012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5957
5958 Implement multi-component --with-auto-load-dir.
5959 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
5960 entries.
5961 (--with-auto-load-safe-path): Update the default value description.
5962 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
5963 New.
5964 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
5965 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
5966 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
5967 (_initialize_auto_load): Initialize also auto_load_dir. Install new
5968 "set auto-load scripts-directory".
5969 * config.in: Regenerate.
5970 * configure: Regenerate.
5971 * configure.ac (--with-auto-load-dir): New configure option.
5972 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
5973
6dea1fbd
JK
59742012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5975
5976 Provide $ddir substitution for --with-auto-load-safe-path.
5977 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
5978 entries.
5979 * auto-load.c: Include observer.h.
5980 (auto_load_safe_path_vec_update): Call substitute_path_component for
5981 each component. New variable ddir_subst.
5982 (auto_load_gdb_datadir_changed): New function.
5983 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5984 AUTO_LOAD_SAFE_PATH. New comment.
5985 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
5986 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
5987 * config.in: Regenerate.
5988 * configure: Regenerate.
5989 * configure.ac (--auto-load-safe-path): Rename
5990 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
5991 GDB_DATADIR/auto-load.
5992 * defs.h (substitute_path_component): New declaration.
5993 * top.c: Include observer.h.
5994 (set_gdb_datadir): New function.
5995 (init_main): Install it for "set data-directory".
5996 * utils.c (substitute_path_component): New function.
5997
b09aca3a
JK
59982012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5999
6000 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6001 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6002 DEBUG_FILE_DIRECTORY. Handle multiple components of
6003 DEBUG_FILE_DIRECTORY.
6004
95554aad
TT
60052012-05-10 Tom Tromey <tromey@redhat.com>
6006
6007 * dwarf2read.c (recursively_write_psymbols): New function.
6008 (write_psymtabs_to_index): Use it.
6009
6010 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6011 field.
6012 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6013 (load_partial_comp_unit): Update.
6014 (queue_comp_unit): Add argument 'pretend_language'.
6015 (process_queue): Update.
6016 (psymtab_to_symtab_1): Skip dependencies that have a user.
6017 (load_partial_comp_unit_reader): Give meaning to the 'data'
6018 argument.
6019 (load_full_comp_unit): Add 'pretend_language' argument.
6020 (process_full_comp_unit): Add 'pretend_language' argument. Set
6021 language on CU.
6022 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6023 Update.
6024 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6025 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6026 Update.
6027 (prepare_one_comp_unit): Add 'pretend_language' argument.
6028
6029 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6030 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6031 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6032 (dw2_do_instantiate_symtab): Check whether symtab was read in
6033 before queueing.
6034 (dw2_instantiate_symtab): Add assertion. Call
6035 process_cu_includes.
6036 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6037 (partial_symtab_p): New typedef.
6038 (set_partial_user): New function.
6039 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6040 (scan_partial_symbols): Add imported CU to imported_symtabs.
6041 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6042 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6043 (get_symtab, recursively_compute_inclusions)
6044 (compute_symtab_includes, process_cu_includes)
6045 (process_imported_unit_die): New functions.
6046 (process_die) <DW_TAG_imported_unit>: New case.
6047 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6048
6049 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6050 comment.
6051 (struct partial_die_info) <locdesc>: Remove.
6052 <d>: New field.
6053 (process_psymtab_comp_unit): Add 'read_partial' argument.
6054 Update.
6055 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6056 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6057 (add_partial_symbol): Update.
6058 (process_die): Handle DW_TAG_partial_unit.
6059 (read_file_scope): Update comment.
6060 (load_partial_dies): Handle DW_TAG_imported_unit.
6061 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6062 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6063
e871fbb9
TT
60642012-05-10 Tom Tromey <tromey@redhat.com>
6065
6066 * cc-with-dwz.sh: New file.
6067
b5b04b5b
TT
60682012-05-10 Tom Tromey <tromey@redhat.com>
6069
6070 * symtab.h (struct symtab) <includes, user>: New fields.
6071 * block.h (struct block_iterator) <d, idx, which>: New fields.
6072 * block.c (initialize_block_iterator, find_iterator_symtab)
6073 (block_iterator_step, block_iter_name_step)
6074 (block_iter_match_step): New functions.
6075 (block_iterator_first, block_iterator_next)
6076 (block_iter_name_first, block_iter_name_next)
6077 (block_iter_match_first, block_iter_match_next): Rewrite.
6078 (get_block_symtab): New function.
6079
84a146c9
TT
60802012-05-10 Tom Tromey <tromey@redhat.com>
6081
6082 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6083 set_block_symtab.
6084 * jit.c (finalize_symtab): Use allocate_global_block,
6085 set_block_symtab.
6086 * buildsym.c (finish_block_internal): New function, from old
6087 finish_block.
6088 (finish_block): Rewrite.
6089 (end_symtab): Use finish_block_internal, set_block_symtab.
6090 * block.h (struct global_block): New.
6091 (allocate_global_block, set_block_symtab): Declare.
6092 * block.c (allocate_global_block, set_block_symtab): New
6093 functions.
6094
9439a077
TT
60952012-05-10 Tom Tromey <tromey@redhat.com>
6096
6097 * psymtab.c (partial_map_expand_apply): Add assertion.
6098 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6099 (psymtab_to_symtab): Find unshared psymtab.
6100 (dump_psymtab): Print including psymtabs.
6101 (recursively_search_psymtabs): New function.
6102 (expand_symtabs_matching_via_partial): Use it.
6103 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6104 fields.
6105 (enum psymtab_search_status): New.
6106
8157b174
TT
61072012-05-10 Tom Tromey <tromey@redhat.com>
6108
6109 * tracepoint.c (scope_info): Update.
6110 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6111 (find_pc_sect_symtab, search_symbols)
6112 (default_make_symbol_completion_list_break_on)
6113 (make_file_symbol_completion_list): Update.
6114 * symmisc.c (dump_symtab_1): Update.
6115 * stack.c (print_frame_args, iterate_over_block_locals)
6116 (print_frame_labels, iterate_over_block_arg_vars): Update.
6117 * python/py-block.c (block_object) <dict>: Remove.
6118 <block>: New field.
6119 <iter>: Change type.
6120 (blpy_iter): Update.
6121 (blpy_block_syms_iternext): Update.
6122 * psymtab.c (map_block): Use block iterators.
6123 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6124 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6125 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6126 * infrun.c (check_exception_resume): Update.
6127 * cp-support.c (make_symbol_overload_list_block): Update.
6128 * coffread.c (patch_opaque_types): Update.
6129 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6130 * block.h (struct block_iterator): New.
6131 (block_iterator_first, block_iterator_next, block_iter_name_first)
6132 (block_iter_name_next, block_iter_match_first)
6133 (block_iter_match_next): Declare.
6134 (ALL_BLOCK_SYMBOLS): Redefine.
6135 * block.c (block_iterator_first, block_iterator_next)
6136 (block_iter_name_first, block_iter_name_next)
6137 (block_iter_match_first, block_iter_match_next): New functions.
6138 * ada-lang.c (ada_add_block_symbols)
6139 (ada_make_symbol_completion_list): Use block iterator.
6140
a2ca7a52
TT
61412012-05-10 Tom Tromey <tromey@redhat.com>
6142
6143 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6144 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6145 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6146 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6147 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6148 Update.
6149
64ea88dc
JB
61502012-05-10 Joel Brobecker <brobecker@adacore.com>
6151
6152 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6153 print-file-var-lib2.c, print-file-var-main.c and
6154 print-file-var.exp (located in gdb/testsuite/gdb.base).
6155
99a547d6
JB
61562012-05-10 Joel Brobecker <brobecker@adacore.com>
6157
6158 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6159 try locating the symbol in the symbol's own objfile first, before
6160 extending the search to all objfiles.
6161 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6162 out of lookup_symbol_aux_symtabs.
6163 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6164 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6165 Do not search EXCLUDE_OBJFILE.
6166 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6167 (lookup_symbol_global): Search for matches in the block's objfile
6168 first, before searching all other objfiles.
6169
0ece64fd
TG
61702012-05-10 Tristan Gingold <gingold@adacore.com>
6171
6172 * printcmd.c (set_command): Add pre/post inc/dec.
6173
3d16a105
FCE
61742012-05-09 Frank Ch. Eigler <fche@redhat.com>
6175
6176 * gdb.1: Document -ex option.
6177
2efbc0f7
JB
61782012-05-09 Joel Brobecker <brobecker@adacore.com>
6179
6180 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6181 * inferior.h (AT_SYMBOL): Delete.
6182
2c76a0c7
JB
61832012-05-09 Joel Brobecker <brobecker@adacore.com>
6184
6185 * mips-tdep.c (mips_push_dummy_code): New function.
6186 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6187 ON_STACK and install mips_push_dummy_code as our gdbarch
6188 push_dummy_code routine.
6189
9401a810
PA
61902012-05-09 Pedro Alves <palves@redhat.com>
6191
6192 * target.c (set_maintenance_target_async_permitted): Rename to ...
6193 (set_target_async_command): ... this.
6194 (show_maintenance_target_async_permitted): Rename to ...
6195 (show_target_async_command): ... this.
6196 (initialize_targets): Adjust.
6197
3929b321
DE
61982012-05-08 Doug Evans <dje@google.com>
6199
6200 * go-exp.y (classify_name): Add missing assignment of fields of
6201 yylval.ssym.
6202
c41535fd
EZ
62032012-05-08 Eli Zaretskii <eliz@gnu.org>
6204
6205 Display the ">" prompt in interactive mode while reading canned
6206 commands, even when the current interpreter is MI.
6207
6208 * interps.c (interp_set_temp): New function.
6209
6210 * interps.h (interp_set_temp): Add prototype.
6211
6212 * cli/cli-script.c (restore_interp): New cleanup function.
6213 (read_command_lines): Temporarily override the current interpreter
6214 with CLI and arrange for restoring the original one.
6215
c0749c4d
JS
62162012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6217
6218 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6219
d7333987
SDJ
62202012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6221
6222 * probe.c (parse_probes): Move conditional to check for
6223 debuginfo files from here...
6224 * stap-probe.c (stap_get_probes): ... to here.
6225
649e6d92
MK
62262012-05-07 Mark Kettenis <kettenis@gnu.org>
6227 H.J. Lu <hongjiu.lu@intel.com>
6228
6229 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6230 `movl %esp, %ebp' for the X32 ABI.
6231
f39c6ffd
TT
62322012-05-07 Tom Tromey <tromey@redhat.com>
6233
6234 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6235 get_DW_TAG_name.
6236 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6237 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6238 (dwarf_stack_op_name): Remove.
6239 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6240 (decode_locdesc): Use get_DW_OP_name.
6241 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6242 (dwarf2_compile_expr_to_ax): Likewise.
6243 (disassemble_dwarf_expression): Likewise.
6244 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6245
1e1f6591
CLT
62462012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6247
6248 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6249 (sh_linux_sigtramp_cache): New function.
6250 (sh_linux_sigreturn_init): New function.
6251 (sh_linux_rt_sigreturn_init): New function.
6252 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6253 patterns.
6254 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6255 syscall codes.
6256 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6257 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6258 (sh_linux_init_abi): Add init calls to register new tramp_frame
6259 definitions under 32-bit SH, update comments.
6260
545c08b4
PA
62612012-05-07 Pedro Alves <palves@redhat.com>
6262
daac165e
PA
6263 PR gdb/10952
6264
545c08b4
PA
6265 * amd64-linux-tdep.c: Include glibc-tdep.h.
6266 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6267 gdbarch_skip_solib_resolver callback.
6268
af2c1515
JK
62692012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6270
6271 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6272 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6273 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6274 (add_auto_load_safe_path): Change the error message.
6275 (_initialize_auto_load): Change the "safe-path" help text.
6276 * configure: Regenerate
6277 * configure.ac (--without-auto-load-safe-path): Set
6278 WITH_AUTO_LOAD_SAFE_PATH to /.
6279
1067f998
SDJ
62802012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6281
6282 * stap-probe.h: Do not include unecessary `probe.h'.
6283
45dfa85a
AM
62842012-05-05 Alan Modra <amodra@gmail.com>
6285
6286 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6287 bfd_und_section_ptr.
6288 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6289 and bfd_com_section_ptr.
6290
cf093994
JB
62912012-05-04 Joel Brobecker <brobecker@adacore.com>
6292
762ebb75 6293 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 6294
d40dc7a8
JB
62952012-05-04 Joel Brobecker <brobecker@adacore.com>
6296
6297 * windows-nat.h (segment_register_p_ftype): New typedef.
6298 (windows_set_segment_register_p): Add declaration.
6299 * windows-nat.c (segment_register_p): New static global.
6300 (windows_set_segment_register_p): New function.
6301 (do_windows_fetch_inferior_registers): Add special handling
6302 for segment registers.
6303 * amd64-windows-nat.c: #include "amd64-tdep.h".
6304 (amd64_windows_segment_register_p): New function.
6305 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6306 * i386-windows-nat.c: #include "i386-tdep.h".
6307 (i386_windows_segment_register_p): New function.
6308 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6309
52b3699b
TG
63102012-05-04 Tristan Gingold <gingold@adacore.com>
6311
6312 * printcmd.c (set_command): Emit a warning if the expression is not
6313 an assignment.
6314
94c74239
JB
63152012-05-03 Joel Brobecker <brobecker@adacore.com>
6316
6317 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6318 Make static.
6319
fcf57f19
SDJ
63202012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6321
6322 * stap-probe.c (stap_is_operator): Change declaration.
6323 (stap_get_opcode): Change return value.
6324 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6325 `stap_parse_argument_1'.
6326
27d2932e
PA
63272012-05-03 Pedro Alves <pedro@codesourcery.com>
6328
6329 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6330 debug log.
6331
a20ee7a4
SCR
63322012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6333
6334 Add two new methods global_block and static_block to gdb.Symtab
6335 objects.
6336 * NEWS (Python scripting): Add entry about the new methods.
6337 * python/py-symtab.c (stpy_global_block): New function which
6338 implements the gdb.Symtab.global_block() method.
6339 (stpy_static_block): New function which implements the
6340 gdb.Symtab.static_block() method.
6341 (symtab_object_methods): Add entries for the two new methods.
6342
943cb756
DE
63432012-05-03 Doug Evans <dje@google.com>
6344
6345 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6346 files.
6347
f4644a3f
YQ
63482012-05-03 Yao Qi <yao@codesourcery.com>
6349
6350 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6351 space.
6352 (i386_process_record): Ditto.
6353
ef61f180
JB
63542012-05-02 Joel Brobecker <brobecker@adacore.com>
6355
6356 * infcall.c (unwind_on_signal_p): Make static.
6357
02f1df11
JB
63582012-05-02 Joel Brobecker <brobecker@adacore.com>
6359
6360 * sol-thread.c (solaris_pid_to_str): Make static.
6361 (_initialize_sol_thread): Add prototype.
6362
39023530
JB
63632012-05-02 Joel Brobecker <brobecker@adacore.com>
6364
6365 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6366
c6b0c501
CF
63672012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6368
6369 * MAINTAINERS: Remove myself.
6370
1ef71717
JK
63712012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6372
6373 Fix --without-auto-load-safe-path for MS-Windows host platform.
6374 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6375
b31b86a7
EZ
63762012-05-02 Eli Zaretskii <eliz@gnu.org>
6377
6378 * gdb_curses.h: Undefine KEY_EVENT before including curses
6379 headers. Move "#undef MOUSE_MOVED" before any curses header
6380 inclusion.
6381
777532fc
SDJ
63822012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6383
6384 * features/i386/i386-mmx-linux.c: Regenerate.
6385 * features/rs6000/powerpc-32.c: Likewise.
6386 * features/rs6000/powerpc-32l.c: Likewise.
6387 * features/rs6000/powerpc-403.c: Likewise.
6388 * features/rs6000/powerpc-403gc.c: Likewise.
6389 * features/rs6000/powerpc-405.c: Likewise.
6390 * features/rs6000/powerpc-505.c: Likewise.
6391 * features/rs6000/powerpc-601.c: Likewise.
6392 * features/rs6000/powerpc-602.c: Likewise.
6393 * features/rs6000/powerpc-603.c: Likewise.
6394 * features/rs6000/powerpc-604.c: Likewise.
6395 * features/rs6000/powerpc-64.c: Likewise.
6396 * features/rs6000/powerpc-64l.c: Likewise.
6397 * features/rs6000/powerpc-750.c: Likewise.
6398 * features/rs6000/powerpc-860.c: Likewise.
6399 * features/rs6000/powerpc-e500.c: Likewise.
6400 * features/rs6000/powerpc-e500l.c: Likewise.
6401 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6402 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6403 * features/rs6000/rs6000.c: Likewise.
6404
d71871bc
SDJ
64052012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6406
6407 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6408 variable.
6409 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6410 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6411 (stap_parse_argument) <e>: Likewise.
6412 (handle_stap_probe) <byte_order>: Likewise.
6413
fd820528
DE
64142012-04-30 Doug Evans <dje@google.com>
6415
6416 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6417 init_and_read_dies_worker. All callers updated.
6418 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6419 replaced with init_cutu_and_read_dies.
6420 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6421 (find_partial_die): Remove FIXME. Don't free current CU.
6422
ec3f619d 64232012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
6424
6425 * contrib: New directory.
6426 * contrib/test_pubnames_and_indexes.py: New file.
6427
fceca515
DE
64282012-04-30 Doug Evans <dje@google.com>
6429
6430 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6431 All callers updated.
6432 (init_cu_die_reader): Verify the section is non-empty.
6433 (dwarf_decode_line_header): Don't dereference section->asection
6434 until we know the section is present.
6435
311fe7e1
SDJ
64362012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6437
6438 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6439 probes.
6440
5977971a
YQ
64412012-04-29 Yao Qi <yao@codesourcery.com>
6442
6443 * gdb-code-style.el: New hook gdb-markup-hook
6444 and gdb-comment-hook.
6445
dee91e82
DE
64462012-04-28 Doug Evans <dje@google.com>
6447
3019eac3
DE
6448 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6449 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6450 objfile->obfd.
6451 * symfile.h (dwarf2_debug_sections): New member addr.
6452 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6453 (ctx_no_get_addr_index): New function.
6454 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6455 (ctx_no_get_addr_index): Declare.
6456 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6457 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6458 (dwarf_expr_ctx_funcs): Update.
6459 (needs_get_addr_index): New function.
6460 (needs_frame_ctx_funcs): Update.
6461 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6462 * dwarf2read.c: #include "gdbcore.h".
6463 (dwarf2_per_objfile): New members addr, dwo_files.
6464 (dwarf2_elf_names): Add entry for addr.
6465 (struct dwo_section_names): New type.
6466 (dwo_section_names): New static global.
6467 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6468 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6469 old debug_types_section member updated to use this.
6470 Rename member debug_types_section to info_or_types_section,
6471 all uses updated.
6472 (signatured_type): Rename member type_offset to type_offset_in_tu,
6473 all uses updated. New member type_offset_in_section.
6474 (struct dwo_sections): New type.
6475 (struct dwo_unit): New type.
6476 (struct dwo_file): New type.
6477 (die_reader_specs): New member dwo_file.
6478 (dwarf2_locate_sections): Watch for .debug_addr.
6479 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6480 (dwarf2_read_section): Get bfd of section from bfd's asection,
6481 instead of objfile.
6482 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6483 (create_signatured_type_table_from_index): Initialize
6484 sig_type->info_or_types_section.
6485 (dw2_get_file_names): Statement lists for type units with DWO files
6486 live in the DWO file.
6487 (create_debug_types_hash_table): New function.
6488 (create_all_type_units): Rewrite.
6489 (init_cu_die_reader): New arg dwo_file, all callers updated.
6490 (init_and_read_dies_worker): Get section from
6491 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6492 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6493 continue reading the CU/TU from there.
6494 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6495 updated. Get section from this_cu->info_or_types_section.
6496 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6497 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6498 DW_FORM_GNU_str_index.
6499 (hash_dwo_file, eq_dwo_file): New functions.
6500 (allocate_dwo_file_hash_table): New function.
6501 (hash_dwo_unit, eq_dwo_unit): New functions.
6502 (allocate_dwo_unit_table): New function.
6503 (dwarf2_locate_dwo_sections): New function.
6504 (struct create_dwo_info_table_data): New type.
6505 (create_debug_info_hash_table_reader): New function.
6506 (create_debug_info_hash_table): New function.
6507 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6508 (lookup_dwo_file): New function.
6509 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6510 (free_dwo_file, free_dwo_file_cleanup): New functions.
6511 (free_dwo_file_from_slot, free_dwo_files): New functions.
6512 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6513 (dwarf2_record_block_ranges): Ditto.
6514 (read_partial_die): Ditto.
6515 (process_enumeration_scope): Update to use type_offset_in_section.
6516 (read_full_die_1): New function.
6517 (read_full_die): Rewrite.
6518 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6519 DW_FORM_GNU_str_index.
6520 (read_addr_index_1, read_addr_index): New functions.
6521 (read_addr_index_from_leb128): New function.
6522 (struct dwarf2_read_addr_index_data): New type.
6523 (dwarf2_read_addr_index_reader): New function.
6524 (dwarf2_read_addr_index): New function.
6525 (read_str_index): New function.
6526 (leb128_size): New function.
6527 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6528 If processing a type unit from a DWO file, get the line section
6529 from the DWO file.
6530 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6531 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6532 DW_FORM_GNU_str_index.
6533 (lookup_die_type): Check whether section offset of type's die is
6534 known before looking it up. Remove assert. Condition can
6535 legimately happen for inter-cu type references.
6536 (dwarf_attr_name): Handle Fission attributes.
6537 (dwarf_form_name): Handle Fission forms.
6538 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6539 DW_FORM_GNU_str_index.
6540 (follow_die_sig): Update to use type_offset_in_section.
6541 (decode_locdesc): New case DW_OP_GNU_addr_index.
6542 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6543 DW_FORM_GNU_str_index.
6544 (cu_debug_loc_section): New function.
6545 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6546 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6547 Free DWO files if present.
6548 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6549
dee91e82
DE
6550 Refactor DIE reading.
6551 * dwarf2read.c (dwarf2_per_objfile): Replace members
6552 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6553 (die_reader_specs): New member "die_section". Temporarily make
6554 member "buffer" non-const, pending constifying all info_ptr uses.
6555 (die_reader_func_ftype): New typedef.
6556 (dw2_get_file_names_reader): New function.
6557 (dw2_get_file_names): Rewrite.
6558 (read_and_check_type_unit_head): Rename arg type_offset to
6559 type_offset_in_tu.
6560 (create_all_type_units): Improve debugging message.
6561 Improve dummy type unit check.
6562 (init_cu_die_reader): New arg "section". All callers updated.
6563 (init_and_read_dies_worker): New function.
6564 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6565 (init_cutu_and_read_dies_no_follow): New function.
6566 (init_cutu_and_read_dies_simple): New function.
6567 (process_psymtab_comp_unit_reader): New function.
6568 (process_psymtab_comp_unit): Delete args section,
6569 is_debug_types_section. Rewrite. All callers updated.
6570 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6571 All callers updated. Rewrite.
6572 (load_partial_comp_unit_reader): New function.
6573 (load_partial_comp_unit): Rewrite.
6574 (skip_children): New arg reader. Delete args buffer, cu.
6575 All callers updated.
6576 (skip_one_die): New arg reader. Delete args buffer, cu.
6577 All callers updated.
6578 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6579 All callers updated.
6580 (load_full_comp_unit_reader): New function.
6581 (load_full_comp_unit): Rewrite.
6582 (read_comp_unit): Delete.
6583 (read_die_and_children_1): Delete, contents moved ...
6584 (read_die_and_children): ... here.
6585 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6586 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6587 All callers updated.
6588 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6589 All callers updated.
6590 (find_partial_die): Rewrite load_all_dies support.
6591 (read_attribute_value): New arg reader. Delete args abfd, cu.
6592 All callers updated.
6593 (read_attribute): New arg reader. Delete args abfd, cu.
6594 All callers updated.
6595 (load_full_type_unit): Add assert.
6596 (read_signatured_type_reader): New function.
6597 (read_signatured_type): Rewrite.
6598 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6599 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6600 All callers updated. Set per_cu->cu = NULL after freeing it.
6601 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6602 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6603 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6604 (set_die_type): Update.
6605 (get_die_type_at_offset): Update.
6606 (read_file_scope): Call prepare_one_comp_unit.
6607 (read_type_unit_scope): Ditto.
6608 (prepare_one_comp_unit): Set producer if present.
6609
72d59e0d
SDJ
66102012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6611
6612 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6613 gettext function on `error'.
6614
0fefef59
DE
66152012-04-27 Doug Evans <dje@google.com>
6616
6617 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6618 is empty.
6619
28106bc2
SDJ
66202012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6621 Tom Tromey <tromey@redhat.com>
6622
6623 * breakpoint.c (struct breakpoint_objfile_data)
6624 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6625 <exception_probes>: New fields.
6626 (free_breakpoint_probes): New function.
6627 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6628 `_Unwind_DebugHook'.
6629 (create_exception_master_breakpoint): Likewise.
6630 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6631 * infrun.c: Including necessary header files for handling SystemTap
6632 probes.
6633 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6634 via SystemTap probes.
6635 (check_exception_resume): Remove `func' argument. Handle exception
6636 unwinding breakpoint set via a SystemTap probe.
6637 (insert_exception_resume_from_probe): New function.
6638
55aa24fb
SDJ
66392012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6640 Tom Tromey <tromey@redhat.com>
6641 Jan Kratochvil <jan.kratochvil@redhat.com>
6642
6643 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6644 (COMMON_OBS): Likewise.
6645 (HFILES_NO_SRCDIR): Add `probe'.
6646 * NEWS: Mention support for static and SystemTap probes.
6647 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6648 SystemTap probes' arguments parser.
6649 * arm-linux-tdep.c: Including headers needed to perform the parsing
6650 of SystemTap probes' arguments.
6651 (arm_stap_is_single_operand): New function.
6652 (arm_stap_parse_special_token): Likewise.
6653 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6654 probes' arguments parser.
6655 * ax-gdb.c (require_rvalue): Removing static declaration.
6656 (gen_expr): Likewise.
6657 * ax-gdb.h (gen_expr): Declaring function.
6658 (require_rvalue): Likewise.
6659 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6660 (bkpt_probe_breakpoint_ops): New variable.
6661 (momentary_breakpoint_from_master): Set the `probe' value.
6662 (add_location_to_breakpoint): Likewise.
6663 (break_command_1): Using proper breakpoint_ops according to the
6664 argument passed by the user in the command line.
6665 (bkpt_probe_insert_location): New function.
6666 (bkpt_probe_remove_location): Likewise.
6667 (bkpt_probe_create_sals_from_address): Likewise.
6668 (bkpt_probe_decode_linespec): Likewise.
6669 (tracepoint_probe_create_sals_from_address): Likewise.
6670 (tracepoint_probe_decode_linespec): Likewise.
6671 (tracepoint_probe_breakpoint_ops): New variable.
6672 (trace_command): Using proper breakpoint_ops according to the
6673 argument passed by the user in the command line.
6674 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6675 static probes on breakpoints and tracepoints.
6676 * breakpoint.h (struct bp_location) <probe>: New field.
6677 * cli-utils.c (skip_spaces_const): New function.
6678 (extract_arg): Likewise.
6679 * cli-utils.h (skip_spaces_const): Likewise.
6680 (extract_arg): Likewise.
6681 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6682 * configure.ac: Append `stap-probe.o' to be generated when ELF
6683 support is present.
6684 * configure: Regenerate.
6685 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6686 * elfread.c: Include `probe.h' and `arch-utils.h'.
6687 (probe_key): New variable.
6688 (elf_get_probes): New function.
6689 (elf_get_probe_argument_count): Likewise.
6690 (elf_evaluate_probe_argument): Likewise.
6691 (elf_compile_to_ax): Likewise.
6692 (elf_symfile_relocate_probe): Likewise.
6693 (stap_probe_key_free): Likewise.
6694 (elf_probe_fns): New variable.
6695 (elf_sym_fns): Add `sym_probe_fns' value.
6696 (elf_sym_fns_lazy_psyms): Likewise.
6697 (elf_sym_fns_gdb_index): Likewise.
6698 (_initialize_elfread): Initialize objfile cache for static
6699 probes.
6700 * gdb_vecs.h (struct probe): New forward declaration.
6701 (probe_p): New VEC declaration.
6702 * gdbarch.c: Regenerate.
6703 * gdbarch.h: Regenerate.
6704 * gdbarch.sh (stap_integer_prefix): New variable.
6705 (stap_integer_suffix): Likewise.
6706 (stap_register_prefix): Likewise.
6707 (stap_register_suffix): Likewise.
6708 (stap_register_indirection_prefix): Likewise.
6709 (stap_register_indirection_suffix): Likewise.
6710 (stap_gdb_register_prefix): Likewise.
6711 (stap_gdb_register_suffix): Likewise.
6712 (stap_is_single_operand): New function.
6713 (stap_parse_special_token): Likewise.
6714 (struct stap_parse_info): Forward declaration.
6715 * i386-tdep.c: Including headers needed to perform the parsing
6716 of SystemTap probes' arguments.
6717 (i386_stap_is_single_operand): New function.
6718 (i386_stap_parse_special_token): Likewise.
6719 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6720 probes' arguments parser.
6721 * i386-tdep.h (i386_stap_is_single_operand): New function.
6722 (i386_stap_parse_special_token): Likewise.
6723 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6724 * mipsread.c (ecoff_sym_fns): Likewise.
6725 * objfiles.c (objfile_relocate1): Support relocation for static
6726 probes.
6727 * parse.c (prefixify_expression): Remove static declaration.
6728 (initialize_expout): Likewise.
6729 (reallocate_expout): Likewise.
6730 * parser-defs.h (initialize_expout): Declare function.
6731 (reallocate_expout): Likewise.
6732 (prefixify_expression): Likewise.
6733 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6734 of SystemTap probes' arguments.
6735 (ppc_stap_is_single_operand): New function.
6736 (ppc_stap_parse_special_token): Likewise.
6737 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6738 probes' arguments parser.
6739 * probe.c: New file, for generic statically defined probe support.
6740 * probe.h: Likewise.
6741 * s390-tdep.c: Including headers needed to perform the parsing of
6742 SystemTap probes' arguments.
6743 (s390_stap_is_single_operand): New function.
6744 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6745 probes' arguments parser.
6746 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6747 * stap-probe.c: New file, for SystemTap probe support.
6748 * stap-probe.h: Likewise.
6749 * symfile.h: Include `gdb_vecs.h'.
6750 (struct sym_probe_fns): New struct.
6751 (struct sym_fns) <sym_probe_fns>: New field.
6752 * symtab.c (init_sal): Initialize `probe' field.
6753 * symtab.h (struct probe): Forward declaration.
6754 (struct symtab_and_line) <probe>: New field.
6755 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6756 locations.
6757 (stop_tracing): Likewise.
6758 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6759
22d2b532
SDJ
67602012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6761 Tom Tromey <tromey@redhat.com>
6762
6763 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6764 and to compile agent expressions.
6765 * infrun.c (siginfo_make_value): New argument `ignore'.
6766 (siginfo_funcs): New struct.
6767 (_initialize_infrun): New argument when calling
6768 `create_internalvar_type_lazy'.
6769 * thread.c (thread_id_make_value): New argument `ignore'.
6770 (thread_funcs): New struct.
6771 (_initialize_thread): New argument when calling
6772 `create_internalvar_type_lazy'.
6773 * tracepoint.c (sdata_make_value): New argument `ignore'.
6774 (sdata_funcs): New struct.
6775 (_initialize_tracepoint): New argument when calling
6776 `create_internalvar_type_lazy'.
6777 * value.c (make_value): New struct.
6778 (create_internalvar_type_lazy): New argument `data'.
6779 (compile_internalvar_to_ax): New function.
6780 (value_of_internalvar): Properly handling `make_value' case.
6781 (clear_internalvar): Likewise.
6782 (show_convenience): Adding `TRY_CATCH' block.
6783 * value.h (internalvar_make_value): Delete, replace by...
6784 (struct internalvar_funcs): ... this.
6785 (create_internalvar_type_lazy) <fun>: Delete argument.
6786 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6787 (compile_internalvar_to_ax): New function.
6788 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6789 (tlb_funcs): New struct.
6790 (_initialize_windows_tdep): New argument when calling
6791 `create_internalvar_type_lazy'.
6792
91da1414
MW
67932012-04-27 Mark Wielaard <mjw@redhat.com>
6794
6795 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6796 see whether it is an address or a constant offset from DW_AT_low_pc.
6797 (dwarf2_record_block_ranges): Likewise.
6798 (read_partial_die): Likewise.
6799
4ab9d8ec
MW
68002012-04-26 Mark Wielaard <mjw@redhat.com>
6801
6802 * MAINTAINERS (Write After Approval): Add myself to the list.
6803
a0911fd0
MR
68042012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6805
6806 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6807 (proc_prettyprint_signal): Likewise.
6808 (proc_prettyprint_faultset): Likewise.
6809 (proc_prettyprint_fault): Likewise.
6810 (proc_prettyprint_actionset): Likewise.
6811 (proc_prettyprint_flags): Move to new proc-flags.c section.
6812 (proc_prettyfprint_flags): New prototype.
6813 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6814 (proc_syscall, proc_cursig): Likewise.
6815 (proc_set_kill_on_last_close): Likewise.
6816 (proc_unset_kill_on_last_close): Likewise.
6817 (proc_set_watchpoint): Make static.
6818 (proc_delete_dead_threads): Likewise.
6819 (procfs_set_watchpoint): Likewise.
6820 (_initialize_procfs): Add prototype.
6821 * proc-events.c: Include proc-utils.h.
6822 (init_syscall_table): Make static.
6823 * proc-api.c (_initialize_proc_api): Add prototype.
6824 * proc-flags.c: Include proc-utils.h.
6825
9009e1ae
MR
68262012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6827
6828 * configure.ac: Add AC_ARG_PROGRAM.
6829 * configure: Regenerate.
6830
4fae6e18
JK
68312012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6832
6833 Fix DW_AT_lower_bound defaults for DWARF-4+.
6834 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6835 high. New variable low_default_is_valid. Implement DWARF-4+
6836 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6837 no default by the DWARF standard.
6838
14132e89 68392012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 6840 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
6841
6842 * infrun.c (handle_inferior_event): Move the check for return
6843 trampolines ahead of the check for function trampolines.
6844 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6845 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6846 (mips_str_mips16_ret_stub): Likewise.
6847 (mips_str_call_fp_stub): Likewise.
6848 (mips_str_call_stub): Likewise.
6849 (mips_str_fn_stub): Likewise.
6850 (mips_str_pic): Likewise.
6851 (mips_in_frame_stub): New function.
6852 (mips_unwind_pc): Return the return address rather than the PC
6853 if the PC of an intermediate frame is inside a call thunk.
6854 (mips_is_stub_suffix): New function.
6855 (mips_is_stub_mode): Likewise.
6856 (mips_get_mips16_fn_stub_pc): Likewise.
6857 (mips_skip_mips16_trampoline_code): Update to handle all the
6858 currently generated stub types. Don't recurse into __fn_stub
6859 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6860 Use cooked register accesses.
6861 (mips_in_return_stub): Reintroduce function.
6862 (mips_skip_trampoline_code): Traverse trampolines recursively.
6863 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6864
518f0db5 68652012-04-26 Joel Brobecker <brobecker@adacore.com>
6866
6867 GDB 7.4.1 released.
6868
3184d3f9
JL
68692012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
6870
6871 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
6872 * features/arm-with-m-vfp-d16.xml: New file. Describes
6873 Cortex-M with VFPv4-sp-d16 FPU register layout.
6874 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
6875 * features/arm-with-m-vfp-d16.c: New. Generated from above.
6876 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
6877 (arm-register_g_packet_guesses): Add vfp-d16 guess.
6878 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
6879
b6201d44
DE
68802012-04-25 Doug Evans <dje@google.com>
6881
6882 * cli/cli-decode.c (print_doc_line): Use stream instead of
6883 current_uiout.
6884
4e2f8df6
SDJ
68852012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
6886
6887 * features/arm-with-iwmmxt.c: Regenerate.
6888 * features/arm-with-m-fpa-layout.c: Likewise.
6889 * features/arm-with-m.c: Likewise.
6890 * features/arm-with-neon.c: Likewise.
6891 * features/arm-with-vfpv2.c: Likewise.
6892 * features/arm-with-vfpv3.c: Likewise.
6893 * features/mips-dsp-linux.c: Likewise.
6894 * features/mips-linux.c: Likewise.
6895 * features/mips64-dsp-linux.c: Likewise.
6896 * features/mips64-linux.c: Likewise.
6897 * features/s390-linux32.c: Likewise.
6898 * features/s390-linux32v1.c: Likewise.
6899 * features/s390-linux32v2.c: Likewise.
6900 * features/s390-linux64.c: Likewise.
6901 * features/s390-linux64v1.c: Likewise.
6902 * features/s390-linux64v2.c: Likewise.
6903 * features/s390x-linux64.c: Likewise.
6904 * features/s390x-linux64v1.c: Likewise.
6905 * features/s390x-linux64v2.c: Likewise.
6906 * features/tic6x-c62x-linux.c: Likewise.
6907 * features/tic6x-c62x.c: Likewise.
6908 * features/tic6x-c64x-linux.c: Likewise.
6909 * features/tic6x-c64x.c: Likewise.
6910 * features/tic6x-c64xp-linux.c: Likewise.
6911 * features/tic6x-c64xp.c: Likewise.
6912 * target-descriptions.c: Only generate `field_type' and `type'
6913 variables when needed.
6914
2def3e66
JB
69152012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
6916
6917 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
6918
a766d390
DE
69192012-04-25 Doug Evans <dje@google.com>
6920
6921 Initial pass at Go language support.
6922 * NEWS: Mention Go.
6923 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
6924 go-valprint.c.
6925 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
6926 (YYFILES): Add go-exp.c.
6927 (YYOBJ): Add go-exp.o.
6928 (local-maintainer-clean): Delete go-exp.c.
6929 * defs.h (enum language): Add language_go.
6930 * dwarf2read.c: #include "go-lang.h".
6931 (fixup_go_packaging): New function.
6932 (process_full_comp_unit): Call it when processing Go CUs.
6933 (dwarf2_physname): Add Go support.
6934 (read_file_scope): Handle missing language spec for GNU Go.
6935 (set_cu_language): Handle DW_LANG_Go.
6936 * go-exp.y: New file.
6937 * go-lang.h: New file.
6938 * go-lang.c: New file.
6939 * go-typeprint.c: New file.
6940 * go-valprint.c: New file.
6941 * symtab.c: #include "go-lang.h".
6942 (symbol_set_language): Handle language_go.
6943 (symbol_find_demangled_name, symbol_set_names): Ditto.
6944 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
6945
4e2af517
JM
69462012-04-24 Jim Meyering <meyering@redhat.com>
6947
6948 avoid a few strncpy-induced buffer overruns
6949 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
6950 fname and psargs before trying to concatenate.
6951 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
6952 "name" before applying strchr.
6953
b77b7f52
SCR
69542012-04-25 Siva Chandra Reddy <sivachandra@google.com>
6955
6956 * CONTRIBUTE: Use unified diff instead of context diff when
6957 generating patches.
6958
6321c22a
MR
69592012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6960
6961 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
6962 code. Handle JR.HB correctly.
6963
742c84f6
MR
69642012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
6965
6966 * mips-tdep.c
6967 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
6968 with the other MIPS16 helpers.
6969
7fc7e0c3
SDJ
69702012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
6971
6972 * observer.sh: Conditionally declare `args', thus cleaning up
6973 unused instances of this variable.
6974
20388dd6
YQ
69752012-04-24 Yao Qi <yao@codesourcery.com>
6976
6977 Revert this patch to allow breakpoint always-inserted
6978 in record target.
6979 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
6980 * breakpoint.c: Include record.h.
6981 (breakpoints_always_inserted_mode): Return false when the record
6982 target is in use.
20388dd6
YQ
6983
6984 * breakpoint.c (iterate_over_bp_locations): New.
6985 * breakpoint.h: Declare.
6986 New typedef walk_bp_location_callback.
6987 * record.c (record_open): Call record_init_record_breakpoints.
6988 (record_sync_record_breakpoints): New.
6989 (record_init_record_breakpoints): New.
6990 * NEWS: Mention supporting breakpoint always-inserted mode in
6991 record target.
6992
4734f50e
MK
69932012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
6994
6995 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
6996 any thread.
6997
c326b90e
YQ
69982012-04-24 Yao Qi <yao@codesourcery.com>
6999
7000 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7001 (is_catchpoint): ... it.
7002 (print_one_breakpoint_location): Caller update.
7003 * breakpoint.h: Update declaration.
7004
d8fb5a1e
DM
70052012-04-23 David S. Miller <davem@davemloft.net>
7006
7007 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7008
34431a2a
TT
70092012-04-23 Tom Tromey <tromey@redhat.com>
7010
7011 * buildsym.c (add_free_pendings): Remove.
7012 * buildsym.h (add_free_pendings): Remove.
7013
4568ecf9
DE
70142012-04-23 Doug Evans <dje@google.com>
7015
7016 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7017 attr.u.unsnd instead of attr.u.addr.
7018 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7019 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7020 DW_FORM_ref_udata.
7021 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7022 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7023 DW_FORM_ref_udata.
7024 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7025
dca9aa3a
MR
70262012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7027
7028 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7029 (mips_o32_return_value): Likewise.
7030 (mips_o64_return_value): Likewise.
7031
c8ea1972
PH
70322012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7033
7034 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
7035 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7036 their treatment in eval.c.
c8ea1972 7037
8d1b3521
DM
70382012-04-21 David S. Miller <davem@davemloft.net>
7039
7040 * sparc-tdep.c (X_DISP10): Define.
7041 (sparc_analyze_control_transfer): Handle compare-and-branch.
7042
03145bf4
JL
70432012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7044
7045 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7046 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7047
004159a2 70482012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 7049 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
7050
7051 * mips-tdep.c (mips_float_register_p): New function.
7052 (mips_convert_register_float_case_p): Use mips_float_register_p.
7053 (mips_register_type): Likewise.
7054 (mips_print_register): Likewise.
7055 (print_gp_register_row): Likewise.
7056 (mips_print_registers_info): Likewise.
7057
7f0e6aae
MR
70582012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7059
7060 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7061 of mips16 symbols.
7062
bc17beea
AP
70632012-04-20 Andrew Pinski <apinski@cavium.com>
7064
7065 * MAINTAINERS (Write After Approval): Add myself to the list.
7066
1730a5a5
SDJ
70672012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7068
7069 * MAINTAINERS: Update my e-mail address.
7070
38ea300a
PA
70712012-04-20 Pedro Alves <palves@redhat.com>
7072
7073 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7074 $srcdir.
7075 * configure: Regenerate.
7076
111dfaae
SDJ
70772012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7078
7079 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7080 declaration.
7081 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7082
4fb2c64a
JK
70832012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7084
7085 Fix compilation compatibility with python-2.4
7086 * python/py-type.c (convert_field): Cast ADDRSTRING for
7087 PyObject_SetAttrString as non-const. New comment.
7088
6328eb38
TT
70892012-04-19 Tom Tromey <tromey@redhat.com>
7090
7091 * top.c (quit_target): Use all_cleanups.
7092 * main.c (captured_command_loop): Use all_cleanups.
7093 * exceptions.c (throw_exception): Use all_cleanups.
7094
c971b7fa
PA
70952012-04-19 Pedro Alves <palves@redhat.com>
7096
7097 * Makefile.in (GNULIB_BUILDDIR): New.
7098 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7099 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7100 (CLEANDIRS). Remove gnulib/import.
7101 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7102 (all-lib): Ditto.
7103 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7104 (gnulib/import/Makefile): Replace gnulib/import with
7105 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7106 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7107 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7108 acx_configure_dir.m4.
7109 * acinclude.m4: Include acx_configure_dir.m4.
7110 * acx_configure_dir.m4: New file.
7111 * aclocal.m4: Regenerate.
a09130f9
PA
7112 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7113 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7114 (GNULIB): New variable.
7115 (GNULIB_STDINT_H): Adjust.
7116 (AC_OUTPUT): Don't output gnulib/Makefile.
7117 * gdb/defs.h: Include build-gnulib/config.h.
7118 * aclocal.m4: Regenerate.
7119 * config.in: Regenerate.
7120 * configure: Regenerate.
7121
7122 * gnulib/Makefile.in: New file.
7123 * gnulib/configure.ac: New file.
7124 * gnulib/aclocal.m4: New file.
7125 * gnulib/config.in: New file.
7126 * gnulib/configure: New file.
c971b7fa
PA
7127 * gnulib/: Re-run gnulib-tool to adjust.
7128
b10faa68
DE
71292012-04-19 Doug Evans <dje@google.com>
7130
7131 * cleanups.h (struct cleanup): Move to cleanups.c.
7132 (make_cleanup_dtor_ftype): New typedef.
7133 (make_cleanup_dtor): Use it.
7134 (ALL_CLEANUPS): Replace with ...
7135 (all_cleanups): ... this. Declare. All uses updated.
7136 * cleanups.c: #include "gdb_assert.h".
7137 (sentinel_cleanup): New static global.
7138 (SENTINEL_CLEANUP): Define.
7139 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7140 (make_my_cleanup2): Assert result is non-NULL.
7141 (all_cleanups): New function.
7142 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7143 of NULL.
7144
d8c267cc
PA
71452012-04-19 Pedro Alves <palves@redhat.com>
7146
7147 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7148 Adjust paths to gnulib imported files.
7149
809277f8
PA
71502012-04-19 Pedro Alves <palves@redhat.com>
7151
7152 * gnulib/: Move whole directory ...
7153 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7154 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7155 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7156 (aclocal_m4_deps): Adjust.
7157 * aclocal.m4: Regenerate.
7158 * configure: Regenerate.
7159 * configure.ac: Adjust AC_OUTPUT output.
7160
aad9eab9
YQ
71612012-04-19 Yao Qi <yao@codesourcery.com>
7162
7163 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7164 (vec.o): New rule.
7165 * vec.c: Move it ...
7166 * common/vec.c: ... here.
7167 * vec.h: Move it ...
7168 * common/vec.h: ... here.
7169
48fe4669
YQ
71702012-04-19 Yao Qi <yao@codesourcery.com>
7171
7172 * gdb-code-style.el: New.
7173
770d76d7
PA
71742012-04-18 Pedro Alves <palves@redhat.com>
7175
7176 Update gnulib from latest git.
7177 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7178
7179 * gnulib/Makefile.am: Update.
7180 * gnulib/dummy.c: Update.
7181 * gnulib/extra/arg-nonnull.h: Update.
7182 * gnulib/extra/c++defs.h: Update.
7183 * gnulib/extra/update-copyright: Update.
7184 * gnulib/extra/warn-on-use.h: Update.
7185 * gnulib/inttypes.in.h: Update.
7186 * gnulib/m4/00gnulib.m4: Update.
7187 * gnulib/m4/extensions.m4: Update.
7188 * gnulib/m4/gnulib-cache.m4: Update.
7189 * gnulib/m4/gnulib-common.m4: Update.
7190 * gnulib/m4/gnulib-comp.m4: Update.
7191 * gnulib/m4/gnulib-tool.m4: Update.
7192 * gnulib/m4/include_next.m4: Update.
7193 * gnulib/m4/inttypes-pri.m4: Update.
7194 * gnulib/m4/inttypes.m4: Update.
7195 * gnulib/m4/longlong.m4: Update.
7196 * gnulib/m4/memchr.m4: Update.
7197 * gnulib/m4/memmem.m4: Update.
7198 * gnulib/m4/mmap-anon.m4: Update.
7199 * gnulib/m4/multiarch.m4: Update.
7200 * gnulib/m4/onceonly.m4: Update.
7201 * gnulib/m4/stddef_h.m4: Update.
7202 * gnulib/m4/stdint.m4: Update.
7203 * gnulib/m4/string_h.m4: Update.
7204 * gnulib/m4/warn-on-use.m4: Update.
7205 * gnulib/m4/wchar_h.m4: Update.
7206 * gnulib/m4/wchar_t.m4: Update.
7207 * gnulib/m4/wint_t.m4: Update.
7208 * gnulib/memchr.c: Update.
7209 * gnulib/memmem.c: Update.
7210 * gnulib/stddef.in.h: Update.
7211 * gnulib/stdint.in.h: Update.
7212 * gnulib/str-two-way.h: Update.
7213 * gnulib/string.in.h: Update.
7214 * gnulib/wchar.in.h: Update.
7215
7216 * gnulib/extra/arg-nonnull.h: Delete.
7217 * gnulib/extra/c++defs.h: Delete.
7218 * gnulib/extra/warn-on-use.h: Delete.
7219 * gnulib/m4/wchar_h.m4: Delete.
7220 * gnulib/m4/wint_t.m4: Delete.
7221 * gnulib/wchar.in.h: Delete.
7222
7223 * gnulib/extra/snippets/arg-nonnull.h: New.
7224 * gnulib/extra/snippets/c++defs.h: New.
7225 * gnulib/extra/snippets/warn-on-use.h: New.
7226
7227 * aclocal.m4: Regenerate.
7228 * config.in: Regenerate.
7229 * configure: Regenerate.
7230 * gnulib/Makefile.in: Regenerate.
7231
174e088e
PA
72322012-04-18 Pedro Alves <palves@redhat.com>
7233
7234 Reimport the update-copyright module from gnulib
7235 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7236
7237 * configure: Regenerate.
7238 * gnulib/Makefile.am: Update.
7239 * gnulib/Makefile.in: Regenerate.
7240 * gnulib/extra/update-copyright: Update.
7241 * gnulib/m4/gnulib-cache.m4: Update.
7242 * gnulib/m4/gnulib-comp.m4: Update.
7243
7f533142
JB
72442012-04-18 Tristan Gingold <gingold@adacore.com>
7245
7246 * configure.ac (aix): Put -lpthread into libs.
7247 * configure: Regenerate.
7248
001822aa
TT
72492012-04-18 Tom Tromey <tromey@redhat.com>
7250
7251 * linespec.c (convert_linespec_to_sals): Don't use
7252 SYMBOL_OBJ_SECTION.
7253 (compare_msymbols): Arguments are minsym_and_objfile, not
7254 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7255
db026a31
PA
72562012-04-18 Pedro Alves <palves@redhat.com>
7257
7258 Revert gnulib/ part of:
7259 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7260 Copyright year update in most files (performed by copyright.sh).
7261
12df843f
JK
72622012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7263
7264 Fix 64-bit constants on 32-bit hosts.
7265 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7266 from unsigned long to ULONGEST.
7267 (read_signed_leb128): Change declaration return type from long to
7268 LONGEST.
7269 (dwarf2_const_value_attr): Change declaration parameter value from long
7270 to LONGEST.
7271 (dwarf2_compute_name): Change variable value from long to LONGEST.
7272 (read_unsigned_leb128): Change return type, variable result and some
7273 casts from unsigned long to ULONGEST.
7274 (read_signed_leb128): Change return type, variable result and some
7275 casts from long to LONGEST.
7276 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7277 value from long to LONGEST.
7278 (dwarf2_const_value): Change variable value from long to LONGEST.
7279 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7280 plongest and hex_string.
7281 * symtab.h (struct general_symbol_info): Change ivalue from long to
7282 LONGEST, remove the comment.
7283 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7284 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7285
14e75d8e
JK
72862012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7287
7288 PR symtab/7259:
7289 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7290 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
7291 (ada_discrete_type_low_bound): Fix function comment. Use
7292 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
7293 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7294 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7295 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7296 Use TYPE_FIELD_ENUMVAL.
7297 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7298 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7299 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7300 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7301 TYPE_CODE_ENUM.
7302 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7303 * dwarf2read.c (process_enumeration_scope): Likewise.
7304 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7305 field.bitpos.
7306 (class StructMainTypePrettyPrinter): Support also
7307 FIELD_LOC_KIND_ENUMVAL.
7308 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7309 TYPE_CODE_ENUM.
7310 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7311 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7312 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7313 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7314 field enumval.
7315 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7316 accommodate enumval.
7317 (struct call_site): Adjust loc_kind to accommodate enumval.
7318 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7319 (TYPE_FIELD_ENUMVAL): New macros.
7320 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7321 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7322 TYPE_CODE_ENUM.
7323 * p-typeprint.c (pascal_type_print_base): Likewise.
7324 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7325 enumval.
7326 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7327 * python/py-type.c (convert_field): New variable addrstring. Use
7328 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7329 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7330 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7331 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7332 TYPE_CODE_ENUM.
7333 * valprint.c (generic_val_print): Likewise.
7334
380bca97
DE
73352012-04-17 Doug Evans <dje@google.com>
7336
dcc07052
DE
7337 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7338
380bca97
DE
7339 * dwarf2read.c: Whitespace fixes.
7340 (lookup_signatured_type): Tweak comment.
7341 (get_die_type_at_offset): Fix comment.
7342
ec92004f
JB
73432012-04-17 Joel Brobecker <brobecker@adacore.com>
7344
7345 * xcoffread.c (xcoff_secnum_to_sections): New function.
7346 (secnum_to_section, secnum_to_bfd_section): Reimplement
7347 using xcoff_secnum_to_sections. Rename "secnum" parameter
7348 into "n_scnum".
7349 (RECORD_MINIMAL_SYMBOL): Delete.
7350 (record_minimal_symbol): New function.
7351 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7352 by call to record_minimal_symbol and set misc_func_recorded
7353 to 1. Set last_csect_sec to the XCOFF section index instead
7354 of GDB's section_offset index. Update calls to
7355 prim_record_minimal_symbol_and_info to pass the BFD section
7356 as well.
7357
40301fb7
JB
73582012-04-17 Joel Brobecker <brobecker@adacore.com>
7359
7360 * xcoffread.c (read_xcoff_symtab): Delete variables
7361 last_csect_val and last_csect_sec and associated code.
7362
e0088cfd
DE
73632012-04-17 Doug Evans <dje@google.com>
7364
58d5e2c3
DE
7365 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7366 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7367 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7368 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7369
c27f5738
DE
7370 * cleanups.h: New file.
7371 * cleanups.c: New file.
7372 * Makefile.in (SFILES): Add cleanups.c.
7373 (HFILES_NO_SRCDIR): Add cleanups.h.
7374 (COMMON_OBS): Add cleanups.o.
7375 * defs.h (struct cleanup): Moved to cleanups.h.
7376 (do_cleanups,do_final_cleanups): Ditto.
7377 (discard_cleanups,discard_final_cleanups): Ditto
7378 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7379 (save_cleanups,save_final_cleanups): Ditto.
7380 (restore_cleanups,restore_final_cleanups): Ditto.
7381 (null_cleanup): Ditto.
7382 (make_my_cleanup,make_my_cleanup2): Ditto.
7383 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7384 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7385 (do_cleanups,do_final_cleanups): Ditto.
7386 (discard_cleanups,discard_final_cleanups): Ditto
7387 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7388 (save_cleanups,save_final_cleanups): Ditto.
7389 (restore_cleanups,restore_final_cleanups): Ditto.
7390 (null_cleanup): Ditto.
7391 (make_my_cleanup,make_my_cleanup2): Ditto.
7392 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7393
e0088cfd
DE
7394 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7395 make_my_cleanup.
7396 (make_cleanup_dyn_string_delete): Ditto.
7397 (make_cleanup_ui_file_delete): Ditto.
7398 (make_cleanup_ui_out_redirect_pop): Ditto.
7399 (make_cleanup_free_section_addr_info): Ditto.
7400 (make_cleanup_restore_integer): Ditto.
7401 (make_cleanup_unpush_target): Ditto.
7402 (make_cleanup_value_free_to_mark): Ditto.
7403 (make_cleanup_value_free): Ditto.
7404 (make_cleanup_free_so): Ditto.
7405
4dc84fd1
JK
74062012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7407
7408 New option "set debug auto-load".
7409 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7410 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7411 (auto_load_safe_path_vec_update)
7412 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7413 if DEBUG_AUTO_LOAD.
7414 (file_is_auto_load_safe): New parameters debug_fmt and ....
7415 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7416 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7417 caller by explanatory string.
7418 (_initialize_auto_load): Register "set debug auto-load".
7419 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7420 and ....
7421 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7422 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7423 by explanatory string.
7424 * main.c (captured_main): Likewise.
7425 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7426 (source_section_scripts): Likewise.
7427
bccbefd2
JK
74282012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7429
7430 New option "set auto-load safe-path".
7431 * NEWS: New commands "set auto-load safe-path"
7432 and "show auto-load safe-path".
7433 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7434 (auto_load_safe_path, auto_load_safe_path_vec)
7435 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7436 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7437 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7438 (source_gdb_script_for_objfile): New variable is_safe. Call
7439 file_is_auto_load_safe. Return if it is not.
7440 (struct loaded_script): New field loaded.
7441 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7442 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7443 output "Missing" to "No".
7444 (_initialize_auto_load): New variable cmd. Initialize
7445 auto_load_safe_path. Register "set auto-load safe-path",
7446 "show auto-load safe-path" and "add-auto-load-safe-path".
7447 * auto-load.h (maybe_add_script): Add parameter loaded.
7448 (file_is_auto_load_safe): New declaration.
7449 * config.in: Regenerate.
7450 * configure: Regenerate.
7451 * configure.ac: New parameters --with-auto-load-safe-path
7452 and --without-auto-load-safe-path.
7453 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7454 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7455 * main.c (captured_main): Check file_is_auto_load_safe for
7456 LOCAL_GDBINIT.
7457 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7458 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7459 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7460 not.
7461
bf88dd68
JK
74622012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7463
7464 auto-load: Implementation.
7465 * NEWS: New descriptions for "info auto-load",
7466 "info auto-load gdb-scripts", "info auto-load python-scripts",
7467 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7468 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7469 and "show auto-load-scripts". New description for "set auto-load",
7470 "show auto-load", "set auto-load gdb-scripts",
7471 "show auto-load gdb-scripts", "set auto-load python-scripts",
7472 "show auto-load python-scripts", "set auto-load local-gdbinit",
7473 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7474 "show auto-load libthread-db".
7475 * auto-load.c: Remove include python/python-internal.h. Add includes
7476 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7477 cli/cli-setshow.h.
7478 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7479 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7480 (gdbpy_global_auto_load): Rename to ...
7481 (global_auto_load): ... here.
7482 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7483 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7484 (script_language_gdb, source_gdb_script_for_objfile): New.
7485 (struct loaded_script): New field language.
7486 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7487 LANGUAGE.
7488 (maybe_add_script): Add parameter language. Drop redundant
7489 entry.full_path initialization. Initialize entry.language and
7490 (*slot)->language.
7491 (auto_load_objfile_script): Change parameter suffix to language.
7492 Remove the call of maybe_add_script.
7493 Call language->source_script_for_objfile.
7494 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7495 New.
7496 (collect_matching_scripts): Adjust it for
7497 struct collect_matching_scripts_data.
7498 (auto_load_info_scripts_pattern_nl): New variable.
7499 (info_auto_load_scripts): Rename to ...
7500 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7501 for struct collect_matching_scripts_data.
7502 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7503 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7504 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7505 (auto_load_info_cmdlist_get): New.
7506 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7507 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7508 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7509 "info auto-load local-gdbinit".
7510 * auto-load.h (struct script_language): New.
7511 (gdbpy_global_auto_load): Rename to ...
7512 (global_auto_load): ... here.
7513 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7514 (auto_load_local_gdbinit_loaded): New declarations.
7515 (maybe_add_script): New parameter language.
7516 (auto_load_objfile_script): Change parameter suffix to language.
7517 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7518 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7519 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7520 declarations.
7521 * linux-thread-db.c: Include auto-load.h and ctype.h.
7522 (auto_load_thread_db, show_auto_load_thread_db): New.
7523 (struct thread_db_info): New field filename.
7524 (delete_thread_db_info): Call xfree for FILENAME.
7525 (try_thread_db_load): Initialize FILENAME.
7526 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7527 if !AUTO_LOAD_THREAD_DB.
7528 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7529 (_initialize_thread_db): Install auto_load_thread_db
7530 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7531 as "info auto-load libthread-db".
7532 * main.c (captured_main): Rename gdbpy_global_auto_load to
7533 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7534 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7535 (print_gdb_help): Extend the help for 'local init file'.
7536 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7537 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7538 (auto_load_scripts): Rename to ...
7539 (auto_load_python_scripts): ... here, update the comment.
7540 (gdbpy_load_auto_script_for_objfile): New declaration.
7541 (show_auto_load_python_scripts, script_language_python)
7542 (gdbpy_load_auto_script_for_objfile): New.
7543 (source_section_scripts): Refactor the code.
7544 (load_auto_scripts_for_objfile): Rename to ...
7545 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7546 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7547 (info_auto_load_python_scripts): New.
7548 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7549 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7550 Register "set auto-load-scripts" as its deprecated alias. Register
7551 "info auto-load python-scripts". Register "info auto-load-scripts" as
7552 its deprecated alias.
7553 (load_auto_scripts_for_objfile): Rename to ...
7554 (gdbpy_load_auto_scripts_for_objfile): ... here.
7555 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7556 (gdbpy_load_auto_scripts_for_objfile): ... here.
7557
e2207b9a
JK
75582012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7559
7560 auto-load: Move files.
7561 * Makefile.in (SFILES): Add auto-load.c.
7562 (HFILES_NO_SRCDIR): Add auto-load.h.
7563 (COMMON_OBS): Add auto-load.o.
7564 (distclean): Change .gdbinit for gdb-gdb.gdb.
7565 * auto-load.c: New file, with parts from python/py-auto-load.c.
7566 * auto-load.h: New file, with parts from python/python.h.
7567 * configure: Regenerate.
7568 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7569 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7570 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7571 * main.c: Include auto-load.h.
7572 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7573 command.h, observer.h and progspace.h to auto-load.c. Add include
7574 auto-load.h.
7575 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7576 (struct loaded_script, auto_load_pspace_data)
7577 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7578 (hash_loaded_script_entry, eq_loaded_script_entry)
7579 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7580 (maybe_add_script): Move to auto-load.c.
7581 (source_section_scripts): Change maybe_add_script parameters passing,
7582 use script_not_found_warning_print.
7583 (clear_section_scripts, auto_load_objfile_script)
7584 (auto_load_new_objfile, loaded_script_ptr)
7585 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7586 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7587 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7588 auto_load_new_objfile and info_auto_load_scripts initizations to
7589 auto-load.c.
7590 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7591
e4ab2fad
JK
75922012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7593
7594 Code cleanup.
7595 * charset.c (find_charset_names): Remove variables ix and elt.
7596 Use free_char_ptr_vec.
7597 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7598 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7599 debugdir_end. New variable debugdir_len.
7600 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7601 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7602 declarations.
7603 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7604 and elt. Use free_char_ptr_vec.
7605 * source.c (add_path): Remove variables argv, arg and argv_index.
7606 New variables dir_vec, back_to, ix and name.
7607 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7608 make_cleanup_freeargv. Remove variable separator. Simplify the code
7609 no longer expecting DIRNAME_SEPARATOR.
7610 (openp): Remove variable p, p1 and len. New variables dir_vec,
7611 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7612 no longer expecting DIRNAME_SEPARATOR.
7613 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7614 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7615 debugdir_end.
7616 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7617 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7618 (dirnames_to_char_ptr_vec): New functions.
7619
5ee4ed9f
JK
76202012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7621
7622 Code cleanup.
7623 * source.c (add_path): Remove always true conditional 'p == 0' and
7624 unindent its code block.
7625
f41f5e61
PA
76262012-04-17 Pedro Alves <palves@redhat.com>
7627
7628 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7629 (FIELD_BITPOS_LVAL): ... this.
7630 (FIELD_BITPOS): New.
7631 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7632 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7633 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7634 SET_FIELD_BITPOS.
7635 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7636 SET_FIELD_BITPOS.
7637 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7638 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7639 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7640 SET_FIELD_BITPOS.
7641
945b3a32
JK
76422012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7643
7644 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7645 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7646 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7647 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7648 * jv-lang.c (java_link_class_type): Likewise, once.
7649 * stabsread.c (read_enum_type): Likewise.
7650
42476b70
YQ
76512012-04-16 Yao Qi <yao@codesourcery.com>
7652
7653 * common/agent.c (agent_run_command): Add one more parameter `len'.
7654 Update callers.
7655 * common/agent.h: Update declaration.
7656 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7657 Update.
7658 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7659
8264ba82
AG
76602012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7661
7662 PR mi/13393
7663 * value.c (value_actual_type): New function.
7664 * value.h (value_actual_type): New declaration.
7665 * varobj.c (update_type_if_necessary): New function.
7666 (varobj_create): Call value_actual_type instead of
7667 value_type.
7668 (install_dynamic_child): distinct changed and type changed MI variable
7669 objects.
7670 (update_dynamic_varobj_children): Updated for install_dynamic_child
7671 change. All callers updated.
a09130f9 7672 (varobj_update): Support for MI variable object type change if
8264ba82
AG
7673 the value changed and RTTI is used to determine the type.
7674 (create_child_with_value): Call value_actual_type instead of
7675 value_type.
a09130f9 7676 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
7677 specify whether the given value should be casted to enclosing type.
7678 All callers updated.
7679
55a8c076
YQ
76802012-04-14 Yao Qi <yao@codesourcery.com>
7681
7682 Import gnulib module inttypes from git
7683 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7684 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
7685 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7686 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
7687 * aclocal.m4, config.in, configure: Regenerated.
7688 * gnulib/Makefile.am: Update.
7689 * gnulib/Makefile.in: Update.
7690 * gnulib/m4/gnulib-cache.m4: Update.
7691 * gnulib/m4/gnulib-comp.m4: Update.
7692 * gnulib/inttypes.in.h: New.
7693 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 7694 * gnulib/m4/inttypes.m4: New.
55a8c076 7695
ca7781d2
LM
76962012-04-13 Luis Machado <lgustavo@codesourcery.com>
7697
7698 * infrun.c (resume): Update PC address to the real PC after
7699 preparing to do displaced stepping.
7700
e319fa28
DE
77012012-04-12 Doug Evans <dje@google.com>
7702
7703 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7704 All callers updated.
7705
15add3f5
MK
77062012-04-12 Mark Kettenis <kettenis@gnu.org>
7707
7708 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7709
52dc124a
DE
77102012-04-12 Doug Evans <dje@google.com>
7711
0e50663e
DE
7712 * dwarf2read.c (create_all_type_units): Renamed from
7713 create_debug_types_hash_table. All callers updated.
7714
52dc124a
DE
7715 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7716 local type_sig to sig_type, type_offset to type_offset_in_tu.
7717 (hash_signatured_type): Renamed from hash_type_signature,
7718 all callers updated.
7719 (eq_signatured_type): Renamed from eq_type_signature,
7720 all callers updated.
7721 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7722 (process_enumeration_scope): Ditto.
7723 (lookup_signatured_type_at_offset): Ditto.
7724 (load_full_type_unit, read_signatured_type): Ditto.
7725
248fd3bf
YQ
77262012-04-12 Yao Qi <yao@codesourcery.com>
7727
7728 * remote.c (async_remote_interrupt): Correct function name in
7729 debug message.
7730 (async_remote_interrupt_twice): Ditto.
7731
bc3aa6c3
DE
77322012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7733
7734 * source.c (find_and_open_source): Consistently pass resulting
7735 full path through xfullpath.
7736
9e529e1d
JK
77372012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7738
7739 Provide more specific displaced-stepping memory error message.
7740 * infrun.c (displaced_step_prepare): New variable status. Call
7741 target_read_memory instead of read_memory, provide more specific
7742 error message.
7743
82e0cec1
TG
77442012-04-11 Tristan Gingold <gingold@adacore.com>
7745
7746 PR gdb/13901
7747 * darwin-nat.c (darwin_execvp): Revert previous patch.
7748
d987a266
TG
77492012-04-11 Tristan Gingold <gingold@adacore.com>
7750
7751 PR gdb/13901
7752 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7753 in case of change.
7754
016b7430
TG
77552012-04-11 Tristan Gingold <gingold@adacore.com>
7756
7757 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7758 warning.
7759
06fc020f
SCR
77602012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7761
7762 New command 'explore' which helps explore values and types in
7763 scope.
7764 * NEWS: Add an entry about the new 'explore' command.
7765 * data-directory/Makefile.in: Add gdb/command/explore.py
7766 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 7767 command using the GDB Python API.
06fc020f 7768
de0919f8 77692012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
7770
7771 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7772 extension in jump target calculation.
7773
de0919f8 77742012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
7775
7776 * mips-tdep.c (mips32_next_pc): Handle JALX.
7777
2f26ef89
YQ
77782012-04-10 Yao Qi <yao@codesourcery.com>
7779
7780 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7781
2e505b66
YQ
77822012-04-10 Yao Qi <yao@codesourcery.com>
7783
7784 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7785 and gnulib/m4/gnulib-tool.m4.
7786
0d99eb77
DE
77872012-04-10 Doug Evans <dje@google.com>
7788
7789 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7790 (load_partial_dies): Clarify comment.
7791 (find_partial_die): Support rereading type units.
7792 Clarify CU handling, if we know offset is in CU, don't search for the
7793 containing CU. Add comment regarding memory waste.
7794
9a82b8ff
L
77952012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7796
7797 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7798 i386/x32-avx and i386/x32-avx-linux.
7799 (i386/x32-expedite): New.
7800 (i386/x32-linux-expedite): Likewise.
7801 (i386/x32-avx-expedite): Likewise.
7802 (i386/x32-avx-linux-expedite): Likewise.
7803 ($(outdir)/i386/x32.dat): Likewise.
7804 ($(outdir)/i386/x32-linux.dat): Likewise.
7805 ($(outdir)/i386/x32-avx.dat): Likewise.
7806 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7807
7808 * features/i386/x32-avx-linux.xml: New file.
7809 * features/i386/x32-avx.xml: Likewise.
7810 * features/i386/x32-core.xml: Likewise.
7811 * features/i386/x32-linux.xml: Likewise.
7812 * features/i386/x32.xml: Likewise.
7813
7814 * features/i386/x32-avx-linux.c: New. Generated.
7815 * features/i386/x32-avx.c: Likewise.
7816 * features/i386/x32-linux.c: Likewise.
7817 * features/i386/x32.c: Likewise.
7818 * regformats/i386/x32-avx-linux.dat: Likewise.
7819 * regformats/i386/x32-avx.dat: Likewise.
7820 * regformats/i386/x32-linux.dat: Likewise.
7821 * regformats/i386/x32.dat: Likewise.
7822
ee41036f
TG
78232012-04-10 Tristan Gingold <gingold@adacore.com>
7824
7825 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7826 code to kill the inferior.
7827
a7aa5b8a
MK
78282012-04-09 Mark Kettenis <kettenis@gnu.org>
7829
7830 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7831 defines.
7832 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7833 defines.
a09130f9 7834 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
7835 (yyvsp): New defines.
7836 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7837 defines.
7838 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7839 defines.
7840 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7841 defines.
7842 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7843 defines.
7844 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7845 defines.
7846
fb57d452
MK
78472012-04-09 Mark Kettenis <kettenis@gnu.org>
7848
a09130f9 7849 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
7850 (sparc64_store_arguments): Fix coding style.
7851
cdc7b32f
MK
78522012-04-07 Mark Kettenis <kettenis@gnu.org>
7853
7854 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7855 complex floats, adjust some related comments and tighten a related
7856 assertion.
7857 (sparc64_extract_return_value): Handle complex floats.
7858
7adf1e79
DE
78592012-04-07 Doug Evans <dje@google.com>
7860
7861 * dwarf2read.c (load_partial_dies): Change condition to assert.
7862
50f1ae7b
DE
78632012-04-06 Doug Evans <dje@google.com>
7864
7865 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
7866 "mov %rsp,%rbp".
7867
55fa75c3
KB
78682012-04-05 Kevin Buettner <kevinb@redhat.com>
7869
7870 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
7871 fencepost error.
7872 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
7873 (v850_gdbarch_init): Set `num_regs' as appropriate for the
7874 architecture.
7875
40e084e1
KS
78762012-04-05 Keith Seitz <keiths@redhat.com>
7877
7878 * linespec.c (decode_compound): Remove.
7879 (enum offset_relative_sign): New enum.
7880 (struct line_offset): New struct.
7881 (struct linespec): New struct.
7882 (struct linespec_state): Move file_symtabs,
7883 user_filename, and user_function into struct linespec.
7884 Make result an anonymous struct holding vectors of
7885 symbolp and minsym_and_objfile_d.
7886 Add language member.
7887 (enum ls_token_type): New enum.
7888 (linespec_keywords): New array.
7889 (struct ls_token): New struct.
7890 (struct ls_parser): New struct.
7891 (linespec_lexer_lex_number): New function.
7892 (linespec_lexer_lex_keyword): New function.
7893 (is_ada_operator): New function.
7894 (skip_quote_char): New function.
7895 (copy_token_string): New function.
7896 (is_closing_quote_enclosed): New function.
7897 (find_parameter_list_end): New function.
7898 (linespec_lexer_lex_string): New function.
7899 (linespec_lexer_lex_one): New function.
7900 (linespec_lexer_consume_token): New function.
7901 (linespec_lexer_peek_token): New function.
7902 (cplusplus_error): Remove unused function.
7903 (find_methods): Update comment.
7904 (find_toplevel_char): Return const.
7905 (is_objc_method_format): Remove unused function.
7906 (find_toplevel_string): New function.
7907 (is_linespec_boundary): Remove.
7908 (symbol_not_found_error): New function.
7909 (find_method_overload_end): Remove function.
7910 (unexpected_linespec_error): New function.
7911 (keep_name_info): Remove.
7912 (linespec_parse_line_offset): New function.
7913 (linespec_parse_basic): New function.
7914 (canonicalize_linespec): New function.
7915 (decode_line_internal): Remove.
7916 (create_sals_line_offset): New function adapted from
7917 decode_all_digits.
7918 (convert_linespec_to_sals): New function.
7919 (parse_linespec): New function.
7920 (linespec_parser_new): New function.
7921 (linespec_state_destructor): Change parameter type to
7922 struct linespec_state *.
7923 Add language parameter.
7924 Remove freeing of moved members.
7925 (linespec_parser_delete): New function.
7926 (decode_line_full): Use parse_linespec and linespec_parser_new.
7927 (decode_line_1): Likewise.
7928 (decode_indirect): Rename to ...
7929 (linespec_expression_to_pc): ... this and rewrite
7930 to simply find CORE_ADDR, storing this result for later
7931 conversion to SALs.
7932 (locate_first_half): Remove.
7933 (deocde_objc): Add parameter LS.
7934 Initialize new struct collect_info members.
7935 Handle minimal symbols, too.
7936 (decode_compound): Delete.
7937 (lookup_prefix_sym): Rewrite.
7938 (compare_msymbols): New function.
7939 (find_method): Rewrite.
7940 Do not call cplusplus_error.
7941 (symtabs_from_filename): Rewrite.
7942 (collect_function_symbols): Delete.
7943 (find_function_symbols): Rewrite without ARGPTR-style
7944 processing.
7945 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
7946 (decode_dollar): Adapted and renamed to ...
7947 (linespec_parse_variable): ... this.
7948 (find_linespec_symbols): New function.
7949 (decode_label): Adapted and renamed to ...
7950 (find_label_symbols): ... this.
7951 (decode_digits_list_mode): Add and use LS argument.
7952 (decode_digits_ordinary): Likewise.
7953 (collect_symbols): Do not collect SALs, just symbols and msymbols.
7954 If in list mode, allow any symbol class. Otherwise, only
7955 permit LOC_BLOCK symbols.
7956 (minsym_found): Update comments.
7957 (search_minsyms_for_name): Do not convert the matching symbol
7958 into a SAL. Simply push the symbol and objfile into the
7959 result vector.
7960 (decode_variable): Delete. Contents adapted into
7961 find_linespec_symbols.
7962
7963 * cp-support.c (SKIP_SPACE): Remove.
7964 (operator_tokens): Remove unused global.
7965 (cp_validate_operator): Remove.
7966 * cp-support.h (cp_validate_operator): Remove declaration.
7967
a72c8f6a
JK
79682012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7969
7970 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
7971 for TYPE_VPTR_FIELDNO.
7972 * valprint.c (valprint_check_validity): Make it global, move the
7973 function comment ...
7974 * value.h (valprint_check_validity): ... to this new declaration.
7975
cf9bb588
TG
79762012-04-02 Tristan Gingold <gingold@adacore.com>
7977
7978 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
7979 the STATE32 api for i386 state.
7980 (i386_darwin_store_inferior_registers): Likewise.
7981
17092398
TG
79822012-04-02 Tristan Gingold <gingold@adacore.com>
7983
7984 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
7985 SS offset.
7986 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7987 format_string.
7988
ece0061f
TG
79892012-04-02 Tristan Gingold <gingold@adacore.com>
7990
7991 PR gdb/13901
d987a266 7992 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 7993
cf65ecd3
JK
79942012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7995
7996 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
7997
9bc3523d
TT
79982012-03-30 Tom Tromey <tromey@redhat.com>
7999
8000 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8001 of TRY_CATCH. Fix error handling.
8002 * python/py-value.c (convert_value_from_python): Move 'old'
8003 declaration to innermost scope.
8004
b1ed564a
JB
80052012-03-29 Joel Brobecker <brobecker@adacore.com>
8006 Andrey Smirnov <andrew.smirnov@gmail.com>
8007
8008 -Wshadow warning fix.
8009 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8010 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8011 Adjust code accordingly.
8012
cb8e9b97
JB
80132012-03-29 Joel Brobecker <brobecker@adacore.com>
8014
8015 * ada-lang.c (symbol_completion_add): Rename parameter
8016 "encoded" into "encoded_p". Ajust code and documentation
8017 accordingly.
8018
c0af1706
JB
80192012-03-29 Joel Brobecker <brobecker@adacore.com>
8020 Andrey Smirnov <andrew.smirnov@gmail.com>
8021
8022 -Wshadow warning fix.
8023 * ada-lang.c (symbol_completion_add): Rename parameter
8024 "wild_match" into wild_match_p. Update code and documentation
8025 accordingly.
8026
6ea35997
JB
80272012-03-29 Joel Brobecker <brobecker@adacore.com>
8028
8029 * ada-lang.c (symbol_completion_match): Rename parameter
8030 "encoded" into "encoded_p". Ajust code and documentation
8031 accordingly.
8032
e701b3c0
JB
80332012-03-29 Joel Brobecker <brobecker@adacore.com>
8034 Andrey Smirnov <andrew.smirnov@gmail.com>
8035
8036 -Wshadow warning fix.
8037 * ada-lang.c (symbol_completion_match): Rename parameter
8038 "wild_match" into "wild_match_p". Adjust code and function
8039 documentation accordingly.
8040
5e2336be
JB
80412012-03-29 Joel Brobecker <brobecker@adacore.com>
8042 Andrey Smirnov <andrew.smirnov@gmail.com>
8043
8044 -Wshadow warning fix.
8045 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8046 "symbol_info" into "info". Adjust code accordingly.
8047 (ada_lookup_symbol): Likewise.
8048
9f88c959
JB
80492012-03-29 Joel Brobecker <brobecker@adacore.com>
8050
8051 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8052 of this function's documentation.
8053
82ccd55e
JB
80542012-03-29 Joel Brobecker <brobecker@adacore.com>
8055 Andrey Smirnov <andrew.smirnov@gmail.com>
8056
8057 -Wshadow warning fix.
8058 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8059 variable into "wild_match_p". Adjust code accordingly.
8060
d0a8ab18
JB
80612012-03-29 Joel Brobecker <brobecker@adacore.com>
8062 Andrey Smirnov <andrew.smirnov@gmail.com>
8063
8064 -Wshadow warning fix.
8065 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8066 parameter into "wild_match_p". Adjust code accordingly.
8067 Document this parameter in the function description.
8068
48b78332
JB
80692012-03-29 Joel Brobecker <brobecker@adacore.com>
8070 Andrey Smirnov <andrew.smirnov@gmail.com>
8071
8072 -Wshadow warning fix.
8073 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8074 "wild_match" parameter to "wild_match_p" (-Wshadow).
8075
2e6e0353
JB
80762012-03-29 Joel Brobecker <brobecker@adacore.com>
8077
8078 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8079 in function documentation.
8080
dc4024cd
JB
80812012-03-29 Joel Brobecker <brobecker@adacore.com>
8082 Andrey Smirnov <andrew.smirnov@gmail.com>
8083
8084 -Wshadow warning fix.
8085 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8086 variable into wild_match_p. Adjust code accordingly.
8087
6c88661c
JB
80882012-03-29 Joel Brobecker <brobecker@adacore.com>
8089 Andrey Smirnov <andrew.smirnov@gmail.com>
8090
8091 * ada-valprint.c (ada_val_print_1): Move the code handling
8092 TYPE_CODE_ENUM inside its own lexical block. Declare
8093 variables len and val there, instead of in the function's
8094 top level block. Avoid declaring deref_val again in a way
8095 that shadows another variable of the same name declared
8096 in one of the up-level blocks. Just re-use the up-level
8097 variable instead.
8098
4e5c77fe
JB
80992012-03-29 Joel Brobecker <brobecker@adacore.com>
8100
8101 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8102 Replace block_found argument by symbol_info. Adjust
8103 implementation accordingly. Add function documentation.
8104 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8105 Fix documentation.
8106 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8107 * ada-exp.y (write_object_renaming): Adjust to new
8108 ada_lookup_encoded_symbol API.
8109
1c0ac8c7
JB
81102012-03-29 Joel Brobecker <brobecker@adacore.com>
8111
8112 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8113 documentation.
8114
2aaed979
KB
81152012-03-28 Rathish C <rathish.c@kpitcummins.com>
8116
8117 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8118 (v850_register_name): Add the mpu and fpu register names.
8119 (v850e_register_name): Add the mpu and fpu register names.
8120 (v850e2_register_name): New function.
a09130f9 8121 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
8122 bfd_mach_v850e2v3.
8123
927fbba6
JB
81242012-03-28 Joel Brobecker <brobecker@adacore.com>
8125
8126 * NEWS: Add entry for Ada varobj support.
8127
d32cafc7
JB
81282012-03-28 Joel Brobecker <brobecker@adacore.com>
8129
8130 * varobj.c (default_value_is_changeable_p): New function,
8131 extracted from varobj_value_is_changeable_p. Add declaration.
8132 (ada_value_is_changeable_p): New function, extracted from
8133 varobj_value_is_changeable_p. Add declaration.
8134 (struct language_specific): New field "value_is_changeable_p".
8135 (languages): Add entries for new field.
8136 (varobj_create): Set language before calling install_new_value.
8137 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8138 "value_is_changeable_p" language callback.
8139
181875a4
JB
81402012-03-28 Joel Brobecker <brobecker@adacore.com>
8141
8142 * ada-varobj.h, ada-varobj.c: New files.
8143 * Makefile.in (SFILES): Add ada-varobj.c.
8144 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8145 (COMMON_OBS): Add ada-varobj.o.
8146
7a290c40
JB
81472012-03-28 Joel Brobecker <brobecker@adacore.com>
8148
8149 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8150 (struct language_specific): New field "value_has_mutated".
8151 (languages): Set field "value_has_mutated" in each entry of array.
8152 (varobj_value_has_mutated): New function.
8153 (varobj_udpdate): Add handling of type mutation.
8154 (value_of_root): Add handling of type mutation.
8155 (ada_value_has_mutated): New function.
8156
ca9b8b9c
PA
81572012-03-28 Pedro Alves <palves@redhat.com>
8158
8159 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8160 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8161
cc0265cd
TT
81622012-03-28 Tom Tromey <tromey@redhat.com>
8163
8164 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8165 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8166 before returning.
8167
3ad2ec6f
TT
81682012-03-28 Tom Tromey <tromey@redhat.com>
8169
8170 * .dir-locals.el: New file.
8171
4a6510ba
PA
81722012-03-28 Pedro Alves <palves@redhat.com>
8173
8174 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8175
5a75128f
JB
81762012-03-28 Joel Brobecker <brobecker@adacore.com>
8177
8178 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8179 handling for r0.
8180
f99d8bf4
PA
81812012-03-27 Pedro Alves <palves@redhat.com>
8182
8183 Eliminate struct ui_stream.
8184
8185 * ui-out.h (struct ui_stream): Delete.
8186 (ui_out_field_stream): Adjust prototype.
8187 (ui_out_stream_new, ui_out_stream_delete)
8188 (make_cleanup_ui_out_stream_delete): Delete declarations.
8189 * ui-out.c (ui_out_field_stream): Change prototype to take a
8190 ui_file instead of a ui_stream. Adjust.
8191 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8192 (make_cleanup_ui_out_stream_delete): Delete.
8193 * breakpoint.c (print_breakpoint_location)
8194 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8195 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8196 * disasm.c (dump_insns): Ditto.
8197 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8198 prototype.
8199 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8200 ui_stream/ui_out_stream_new.
8201 * infcmd.c (print_return_value): Ditto.
8202 * osdata.c (info_osdata_command): Don't allocate a local
8203 ui_stream.
8204 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8205 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8206 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8207 allocate a local ui_stream.
8208 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8209 instead of ui_stream/ui_out_stream_new.
8210 (list_args_or_locals): Don't allocate a local ui_stream.
8211 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8212 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8213 ui_stream/ui_out_stream_new.
8214 * cli/cli-setshow.c (do_setshow_command): Ditto.
8215
6350a066 82162012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 8217
6350a066
PA
8218 * arm-linux-tdep.c (arm_linux_init_abi): Call
8219 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8220 * arm-tdep.c (arm_process_record): New function.
8221 (deallocate_reg_mem): New function.
8222 (decode_insn): New function.
8223 (thumb_record_branch): New function.
8224 (thumb_record_ldm_stm_swi(): New function.
8225 (thumb_record_misc): New function.
8226 (thumb_record_ld_st_stack): New function.
8227 (thumb_record_ld_st_imm_offset): New function.
8228 (thumb_record_ld_st_reg_offset(): New function.
8229 (thumb_record_add_sub_cmp_mov): New function.
8230 (thumb_record_shift_add_sub): New function.
8231 (arm_record_coproc_data_proc): New function.
8232 (arm_record_coproc): New function.
8233 (arm_record_b_bl): New function.
8234 (arm_record_ld_st_multiple): New function.
8235 (arm_record_ld_st_reg_offset): New function.
8236 (arm_record_ld_st_imm_offset): New function.
8237 (arm_record_data_proc_imm): New function.
8238 (arm_record_data_proc_misc_ld_str): New function.
8239 (arm_record_extension_space): New function.
8240 (arm_record_strx): New function.
8241 (sbo_sbz): New function.
8242 (struct insn_decode_record): New structure for arm insn record.
8243 (REG_ALLOC): New macro for reg allocations.
8244 (MEM_ALLOC): New macro for memory allocations.
8245 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 8246
89e028e2
AS
82472012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8248
8249 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8250 (store_register): Likewise.
8251
6350a066 82522012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 8253
6350a066 8254 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 8255
5b43fab2
JK
82562012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8257
8258 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8259 Describe also the option "auto".
8260
b5453b95
RH
82612012-03-22 Richard Henderson <rth@redhat.com>
8262
8263 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8264 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8265
227ee7fc
RH
82662012-03-22 Richard Henderson <rth@redhat.com>
8267
8268 * jit.c (jit_read_code_entry): Compute alignment and offset of
8269 int64_t member before computing entry_size.
8270
7b282c5a
SCR
82712012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8272
8273 Python scripting: Add new method Value.referenced_value to
8274 gdb.Value which can dereference pointer as well as reference
8275 values.
8276 * NEWS: Add entry under 'Python scripting' about the new method
8277 Value.referenced_value on gdb.Value objects.
8278 * python/py-value.c (valpy_referenced_value): New function
8279 defining a new method on gdb.Value objects which can dereference
8280 pointer and reference values.
8281
0c83539f
SCR
82822012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8283
8284 * MAINTAINERS (Write After Approval): Add myself to the list.
8285
7ccffd7c
KB
82862012-03-21 Kevin Buettner <kevinb@redhat.com>
8287
8288 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8289 in addition to "main".
8290
bd0b9f9e
JB
82912012-03-21 Joel Brobecker <brobecker@adacore.com>
8292
8293 * expression.h (op_name): Add declaration.
8294 * expprint.c (op_name): Remove declaration. Make non-static.
8295 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8296
a5362b9a
TS
82972012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8298
8299 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8300 of struct siginfo.
8301 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8302 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8303 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8304 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8305 (linux_nat_get_siginfo): Likewise.
8306 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8307 (linux_nat_get_siginfo): Likewise.
8308 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8309 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8310 * procfs.c (gdb_siginfo_t): Likewise.
8311
adcadaab
MF
83122012-03-21 Mike Frysinger <vapier@gentoo.org>
8313
8314 * .gitignore: Ignore more files.
8315
e278ad5b
PA
83162012-03-20 Pedro Alves <palves@redhat.com>
8317
8318 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8319 returns.
8320
741e63d7
YQ
83212012-03-20 Yao Qi <yao@codesourcery.com>
8322
8323 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8324 comment.
8325
b64f50a1
JK
83262012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8327
8328 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8329 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8330 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8331 sect_offset.
8332 * dwarf2expr.h (cu_offset, sect_offset): New types.
8333 (struct dwarf_expr_context_funcs) <dwarf_call>
8334 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8335 sect_offset.
8336 (struct dwarf_expr_context) <len>: Improve the comment.
8337 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8338 cu_offset and sect_offset.
8339 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8340 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8341 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8342 * dwarf2loc.h: Include dwarf2expr.h.
8343 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8344 and sect_offset.
8345 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8346 Improve the comment.
8347 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8348 (struct signatured_type, struct line_header, struct partial_die_info)
8349 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8350 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8351 (get_die_type_at_offset, create_cus_from_index)
8352 (create_signatured_type_table_from_index, dw2_get_file_names)
8353 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8354 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8355 (create_debug_types_hash_table, process_psymtab_comp_unit)
8356 (load_partial_comp_unit, create_all_comp_units)
8357 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8358 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8359 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8360 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8361 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8362 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8363 (find_partial_die, read_attribute_value, lookup_die_type)
8364 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8365 (is_ref_attr): New function comment.
8366 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8367 Use cu_offset and sect_offset.
8368 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8369 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8370 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8371 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8372 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8373 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8374 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8375 sect_offset.
8376
e97a38f7
JK
83772012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8378
8379 Code cleanup.
8380 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8381 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8382 with xfree.
8383 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8384
8320cc4f
JK
83852012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8386
8387 * NEWS: Describe new options --init-command=FILE, -ix and
8388 --init-eval-command=COMMAND, -iex.
8389 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8390 CMDARG_INIT_COMMAND.
8391 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8392 "init-command", "init-eval-command", "ix" and "iex" to the variable
8393 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8394 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8395 (print_gdb_help): Describe --init-command=FILE, -ix and
8396 --init-eval-command=COMMAND, -iex.
8397
26743505
JK
83982012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8399
8400 Code cleanup.
8401 * main.c (struct cmdarg): Move it here from main. Add more comments.
8402 (cmdarg_s, VEC (cmdarg_s)): New.
8403 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8404 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8405 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8406 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8407 of CMDARG.
8408
5ff5c7b4
TT
84092012-03-19 Tom Tromey <tromey@redhat.com>
8410
8411 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8412
ab260dad
JK
84132012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8414
8415 PR symtab/13777
8416 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8417 GCC >=4.5.
8418
c366c1f0
TT
84192012-03-16 Chris January <chris.january@allinea.com>
8420
8421 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8422 of clear.
8423
e16edb45
TT
84242012-03-16 Chris January <chris.january@allinea.com>
8425
8426 * source.c (add_path): Use memmove instead of strcpy because the
8427 strings overlap.
8428
53ba8333
JB
84292012-03-16 Joel Brobecker <brobecker@adacore.com>
8430
8431 * value.h (set_value_parent): Add declaration.
8432 * value.c (set_value_parent): New function.
8433 (value_address): If VALUE->PARENT is not NULL, then use it as
8434 the base address instead of VALUE->LOCATION.address.
8435 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8436 the same as OBJ's address. Adjust V's offset accordingly.
8437 Set V's parent.
8438
481860b3
GB
84392012-03-16 Gary Benson <gbenson@redhat.com>
8440
8441 PR breakpoints/10738
8442 * dwarf2read.c (use_deprecated_index_sections): New global.
8443 (struct partial_die_info): New member may_be_inlined.
8444 (read_partial_die): Set may_be_inlined where appropriate.
8445 (add_partial_subprogram): Add partial symbols for partial
8446 DIEs that may be inlined.
8447 (new_symbol_full): Add inlined subroutines to the current
8448 scope.
8449 (write_psymtabs_to_index): Bump version number.
8450 (dwarf2_read_index): Read only version 6 indices unless
8451 use_deprecated_index_sections is set.
8452 * linespec.c (symbol_and_data_callback): New structure.
8453 (iterate_inline_only): New function.
8454 (iterate_over_all_matching_symtabs): New argument
8455 "include_inline". If nonzero, also call the callback for
8456 symbols representing inlined subroutines.
8457 (lookup_prefix_sym): Pass extra argument to the above.
8458 (find_function_symbols): Likewise.
8459 (add_matching_symbols_to_info): Likewise.
8460 * NEWS: Mention that GDB can now set breakpoints on inlined
8461 functions.
8462
d0e7e15a
PM
84632012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8464
8465 * p-typeprint.c (pascal_type_print_method_args):
8466 Fix display of parameter of methods.
8467
3d354654
PM
84682012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8469
8470 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8471 Add missing prototype.
8472
cafe75b0
JK
84732012-03-16 Yao Qi <yao@codesourcery.com>
8474 Jan Kratochvil <jan.kratochvil@redhat.com>
8475
8476 Fix false compilation warning.
8477 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8478
25f8c692
JL
84792012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8480 Pedro Alves <pedro@codesourcery.com>
8481
8482 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8483 (arm_register_g_packet_guesses): New function.
8484 (arm_gdbarch_init): Don't force a target description with
8485 registers when the executable is detected as M-profile. Instead
8486 set gdbarch->tdep->is_m. Register `g' packet guesses.
8487 (_initialize_arm_tdep): Initialize the new target description.
8488 * features/arm-with-m-fpa-layout.xml: New description.
8489 * features/arm-with-m-fpa-layout.c: New, generated.
8490
35c63cd8
JB
84912012-03-15 Joel Brobecker <brobecker@adacore.com>
8492
8493 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8494 Update function description.
8495 (insert_bp_location): Do not wipe bl->target_info out.
8496 * mem-break.c: #include "gdb_string.h".
8497 (default_memory_insert_breakpoint): Do not call target_read_memory
8498 with a pointer to the breakpoint's shadow_contents buffer. Use
8499 a local buffer instead.
8500 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8501
57651221
TT
85022012-03-15 Tom Tromey <tromey@redhat.com>
8503
8504 * NEWS: Mention "info vtbl", not "info vtable".
8505 * cp-support.c (info_vtbl_command): Fix comment.
8506 (_initialize_cp_support): Fix text.
8507
410528f0
TT
85082012-03-15 Tom Tromey <tromey@redhat.com>
8509
8510 * cp-valprint.c (cp_print_value_fields): Use
8511 print_function_pointer_address for vtable slot.
8512
c4aeac85
TT
85132012-03-15 Tom Tromey <tromey@redhat.com>
8514
8515 * gnu-v3-abi.c (struct value_and_voffset): New.
8516 (hash_value_and_voffset, eq_value_and_voffset)
8517 (compare_value_and_voffset, compute_vtable_size)
8518 (print_one_vtable, gnuv3_print_vtable): New functions.
8519 (init_gnuv3_ops): Initialize 'print_vtable' field.
8520 * cp-support.c (info_vtbl_command): New function.
8521 (_initialize_cp_support): Add "info vtbl".
8522 * cp-abi.h (cplus_print_vtable): Declare.
8523 (struct cp_abi_ops) <print_vtable>: New field.
8524 * cp-abi.c (cplus_print_vtable): New function.
8525 * NEWS: Update.
8526
95cbceff
TT
85272012-03-15 Tom Tromey <tromey@redhat.com>
8528
8529 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8530 iterate_over_symbols.
8531
589b4a32
DE
85322012-03-14 Doug Evans <dje@google.com>
8533
8534 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8535 DW_OP_GNU_parameter_ref.
8536
e837f12a
JK
85372012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8538
8539 Fix double prompt of 'interpreter-exec mi'.
8540 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8541 (mi_interpreter_resume): use it.
8542 (mi_execute_command_input_handler): New function.
8543 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8544 mi_execute_command_input_handler.
8545
ff1e4526 85462012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
8547
8548 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8549 prototype.
8550 (darwin_debug_port_info): Make static.
8551 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8552 * machoread.c (_initialize_machoread): Add prototype.
8553 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8554 (i386_darwin_set_control, i386_darwin_get_control)
8555 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8556 i386_darwin_get_status, i386_darwin_get_control):
8557 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8558
d8a5d6ee
JB
85592012-03-13 Joel Brobecker <brobecker@adacore.com>
8560
8561 * ax-gdb.c (gen_usual_unary): Remove special handling of
8562 enum and bool types.
8563
af381b8c
JB
85642012-03-13 Joel Brobecker <brobecker@adacore.com>
8565
8566 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8567
786c562f
JB
85682012-03-13 Joel Brobecker <brobecker@adacore.com>
8569
8570 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8571
e3ebf1bb
JB
85722012-03-13 Chris January <chris.january@allinea.com>
8573
8574 * aix-thread.c (fill_sprs): Store the floating point registers
8575 at the correct offsets into vals.
8576
c5b7e1cb
DE
85772012-03-13 Doug Evans <dje@google.com>
8578
16899756
DE
8579 * NEWS: Mention symbol-reloading has been deleted.
8580 * symfile.c (symbol_reloading): Delete.
8581 (show_symbol_reloading): Delete.
8582 (_initialize_symfile): Delete set/show symbol-reloading.
8583
c5b7e1cb
DE
8584 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8585 read_in_chain until we have successfully read it in.
8586 (load_full_comp_unit): Ditto.
8587 (read_signatured_type): Add comment.
8588
46cb6474
JB
85892012-03-13 Chris January <chris.january@allinea.com>
8590
8591 * stabsread.c (fix_common_block): Change type of valu argument
8592 to CORE_ADDR.
8593
76219d77
JB
85942012-03-13 Chris January <chris.january@allinea.com>
8595
8596 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8597 instruction.
8598
87b0bb13
JK
85992012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8600
8601 * common/linux-procfs.c (linux_proc_get_int): New, from
8602 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8603 field.
8604 (linux_proc_get_tgid): Only call linux_proc_get_int.
8605 (linux_proc_get_tracerpid): New.
8606 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8607 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8608 linux_proc_pid_has_state.
8609 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8610 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8611 (linux_ptrace_attach_warnings): New.
8612 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8613 New declaration.
8614 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8615 (linux_nat_attach): New variables ex, buffer, message and message_s.
8616 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8617
5f572dec
JK
86182012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8619
8620 * Makefile.in (linux-ptrace.o): New.
8621 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8622 from linux-nat.c.
8623 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8624 * common/linux-ptrace.c: New file.
8625 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8626 * config/arm/linux.mh: Likewise.
8627 * config/i386/linux.mh: Likewise.
8628 * config/i386/linux64.mh: Likewise.
8629 * config/ia64/linux.mh: Likewise.
8630 * config/m32r/linux.mh: Likewise.
8631 * config/m68k/linux.mh: Likewise.
8632 * config/mips/linux.mh: Likewise.
8633 * config/pa/linux.mh: Likewise.
8634 * config/powerpc/linux.mh: Likewise.
8635 * config/powerpc/ppc64-linux.mh: Likewise.
8636 * config/powerpc/spu-linux.mh: Likewise.
8637 * config/s390/s390.mh: Likewise.
8638 * config/sparc/linux.mh: Likewise.
8639 * config/sparc/linux64.mh: Likewise.
8640 * config/xtensa/linux.mh: Likewise.
8641 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8642 common/linux-procfs.c.
8643 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8644
44f238bb
PA
86452012-03-13 Hui Zhu <teawater@gmail.com>
8646 Pedro Alves <palves@redhat.com>
8647
8648 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8649 CREATE_BREAKPOINT_FLAGS_INSERTED.
8650 (create_breakpoint_sal, create_breakpoints_sal)
8651 (base_breakpoint_create_breakpoints_sal)
8652 (tracepoint_create_breakpoints_sal)
8653 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8654 down.
8655 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8656 (ftrace_command, strace_command): Adjust.
8657 (create_tracepoint_from_upload): Pass
8658 CREATE_BREAKPOINT_FLAGS_INSERTED.
8659 * breakpoint.h (enum breakpoint_create_flags): New.
8660 (create_breakpoint): New flags parameter.
8661 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8662 * python/py-breakpoint.c (bppy_init): Adjust.
8663 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8664 * spu-tdep.c (spu_catch_start): Adjust.
8665
1e51243a
PA
86662012-03-13 Pedro Alves <palves@redhat.com>
8667 Hui Zhu <teawater@gmail.com>
8668 Yao Qi <yao@codesourcery.com>
8669
8670 * remote.c (struct remote_state): New field `starting_up'.
8671 (remote_start_remote): Set and clear it.
8672 (remote_can_download_tracepoint): If starting up, return false.
8673
fa3064dd
YQ
86742012-03-13 Yao Qi <yao@codesourcery.com>
8675
8676 * inferior.h (struct inferior): Remove fields any_syscall_count,
8677 syscalls_counts and total_syscalls_count. Move them to new
8678 struct catch_syscall_inferior_data in breakpoint.c.
8679 * breakpoint.c: Call DEF_VEC_I(int).
8680 (struct catch_syscall_inferior_data): New.
8681 (get_catch_syscall_inferior_data): New.
8682 (catch_syscall_inferior_data_cleanup): New.
8683 (insert_catch_syscall): Update to access data in
8684 struct catch_syscall_inferior_data.
8685 (insert_catch_syscall): Likewise.
8686 (remove_catch_syscall): Likewise.
8687 (remove_catch_syscall): Likewise.
8688 (is_syscall_catchpoint_enabled): Likewise.
8689 (add_catch_command): Likewise.
8690 (_initialize_breakpoint): Register cleanup.
8691 * breakpoint.h: Removed DEF_VEC_I(int).
8692 * dwarf2loc.c: Call DEF_VEC_I(int).
8693 * mi/mi-main.c: Likewise.
8694
460fac3c
MK
86952012-03-12 Mark Kettenis <kettenis@gnu.org>
8696
8697 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8698
e1aca11e
JB
86992012-03-12 Chris January <chris.january@allinea.com>
8700
8701 * aix-thread.c (_initialize_aix_thread): Add prototype.
8702 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8703 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8704
649c7061
JB
87052012-03-12 Joel Brobecker <brobecker@adacore.com>
8706
8707 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8708 include of "amd64-nat.h".
8709
0b49e518
TT
87102012-03-12 Tom Tromey <tromey@redhat.com>
8711
8712 * buildsym.c (record_pending_block): Now static.
8713 * buildsym.h: (record_pending_block): Remove.
8714
fd24fa94
AT
87152012-03-12 Andreas Tobler <andreast@fgznet.ch>
8716
8717 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8718
ba919b58
TT
87192012-03-09 Tom Tromey <tromey@redhat.com>
8720
8721 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8722 producer_is_gxx_lt_4_6>: New fields.
8723 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8724
a48e046c
TT
87252012-03-09 Tom Tromey <tromey@redhat.com>
8726
8727 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8728
6f5e9362
JB
87292012-03-08 Joel Brobecker <brobecker@adacore.com>
8730
8731 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8732 prototype.
8733
8d037db9
JB
87342012-03-08 Joel Brobecker <brobecker@adacore.com>
8735
8736 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8737
4e841acf
JK
87382012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8739
8740 Fix -Wmissing-prototypes build.
8741 * arm-linux-nat.c (get_thread_id): Make it static.
8742 * xtensa-linux-nat.c (get_thread_id): Likewise.
8743
c6030312
JB
87442012-03-08 Joel Brobecker <brobecker@adacore.com>
8745
8746 * server.c (process_point_options): If a conditional expression
8747 is found, only print a message if remote_debug is nonzero.
8748
52323be9
LM
87492012-03-08 Luis Machado <lgustavo@codesourcery.com>
8750
8751 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8752 of internal error for unknown/unsupported types.
8753
7fe25d9b
JK
87542012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8755
8756 Fix CU relative vs. absolute DIE offsets.
8757 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8758 offset to offset_in_cu.
8759 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8760 TYPE_OFFSET.
8761 (dwarf2_fetch_die_location_block): Rename parameter offset to
8762 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8763
05e7c244
JK
87642012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8765
8766 * libunwind-frame.c: Rename to ...
8767 * ia64-libunwind-tdep.c: ... here.
8768 * libunwind-frame.h: Rename to ...
8769 * ia64-libunwind-tdep.h: ... here.
8770 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8771 ia64-libunwind-tdep.h.
8772 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8773 * README (--with-libunwind): Rename to ...
8774 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8775 * config.in: Regenerate.
8776 * configure: Regenerate.
8777 * configure.ac: New option --with-libunwind-ia64, make the
8778 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8779 Remove AC_DEFINE for HAVE_LIBUNWIND.
8780 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8781 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8782 Rename libunwind-frame in the general comment.
8783 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8784 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8785 Move forward declarations inside #ifndef. Rename libunwind-frame in
8786 the general comment.
8787 * ia64-tdep.c: Rename libunwind-frame.h #include to
8788 ia64-libunwind-tdep.h.
8789 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8790 (ia64_libunwind_descr): Rename libunwind-frame to
8791 ia64-libunwind-tdep in these function comments.
8792 * ia64-tdep.h: Rename libunwind-frame.h #include to
8793 ia64-libunwind-tdep.h.
8794 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8795 ia64-libunwind-tdep in that data comment.
8796
3755cbfd
JK
87972012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8798
8799 * libunwind-frame.h (struct frame_unwind): New declaration.
8800
d1cda5d9
JB
88012012-03-08 Joel Brobecker <brobecker@adacore.com>
8802
8803 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8804 "set breakpoint condition-evaluation" command.
8805
a0ba0aa2
TG
88062012-03-08 Tristan Gingold <gingold@adacore.com>
8807
8808 * sparc-stub.c: Move to stubs/
8809 * sh-stub.c: Likewise.
8810 * m68k-stub.c: Likewise.
8811 * m32r-stub.c: Likewise.
8812 * i386-stub.c: Likewise.
8813
7b8b6d6d
AS
88142012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8815
007cafee
AS
8816 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8817 linux_get_siginfo_type.
8818
7b8b6d6d
AS
8819 * m68klinux-nat.c: Include "gdb_proc_service.h".
8820 (PTRACE_GET_THREAD_AREA): Define.
8821 (ps_get_thread_area): New function.
8822
bba74b36
YQ
88232012-03-08 Yao Qi <yao@codesourcery.com>
8824
8825 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8826 `xsnprintf'.
8827 (remote_query_attached): Likewise.
8828 (remote_static_tracepoint_marker_at): Likewise.
8829 (remote_set_permissions): Likewise.
8830 (remote_detach_1, extended_remote_attach_1): Likewise.
8831 (send_g_packet, remote_vkill): Likewise.
8832 (extended_remote_disable_randomization): Likewise.
8833 (remote_add_target_side_condition): Likewise.
8834 (remote_insert_breakpoint): Likewise.
8835 (remote_remove_breakpoint): Likewise.
8836 (remote_insert_watchpoint): Likewise.
8837 (remote_remove_watchpoint): Likewise.
8838 (remote_insert_hw_breakpoint): Likewise.
8839 (remote_insert_hw_breakpoint): Likewise.
8840 (remote_remove_hw_breakpoint): Likewise.
8841 (remote_download_command_source): Likewise.
8842 (remote_download_tracepoint): Likewise.
8843 (remote_download_trace_state_variable): Likewise.
8844 (remote_disable_tracepoint): Likewise.
8845 (remote_trace_set_readonly_regions): Likewise.
8846 (remote_get_tracepoint_status): Likewise.
8847 (remote_trace_find): Likewise.
8848 (remote_get_trace_state_variable_value): Likewise.
8849 (remote_set_disconnected_tracing): Likewise.
8850 (remote_set_circular_trace_buffer): Likewise.
8851 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8852 (remote_use_agent): Likewise.
8853 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8854 Update callers.
8855
9b224c5e
PA
88562012-03-07 Pedro Alves <palves@redhat.com>
8857
8858 * NEWS: Mention QProgramSignals.
8859 * inferior.h (update_signals_program_target): Declare.
8860 * infrun.c: (update_signals_program_target): New.
8861 (handle_command): Update the target of the new program signals
8862 array changes.
8863 * remote.c (PACKET_QProgramSignals): New enum.
8864 (last_program_signals_packet): New global.
8865 (remote_program_signals): New.
8866 (remote_start_remote): Update the target with the program signals
8867 list.
8868 (remote_protocol_features): Add entry for QPassSignals.
8869 (remote_open_1): Free anc clear last_program_signals_packet.
8870 (init_remote_ops): Install remote_program_signals.
8871 * target.c (update_current_target): Adjust.
8872 (target_program_signals): New.
8873 * target.h (struct target_ops) <to_program_signals>: New field.
8874 (target_program_signals): Declare.
8875
74c48cbb
PA
88762012-03-07 Pedro Alves <palves@redhat.com>
8877
8878 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
8879 extensions.
8880
0c13fc49
AS
88812012-03-07 Andreas Schwab <schwab@linux-m68k.org>
8882
8883 * m68klinux-nat.c (getregs_supplies): Make static.
8884 (getfpregs_supplies): Likewise.
8885 (have_ptrace_getregs): Likewise.
8886
1281d2a3
JB
88872012-03-06 Joel Brobecker <brobecker@adacore.com>
8888
8889 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
8890 in call to get_die_type_at_offset.
8891
2b03b41d
SS
88922012-03-06 Stan Shebs <stan@codesourcery.com>
8893
8894 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
8895 * mi/mi-cmd-disas.c: Ditto.
8896 * mi/mi-cmd-env.c: Ditto.
8897 * mi/mi-cmd-file.c: Ditto.
8898 * mi/mi-cmd-stack.c: Ditto.
8899 * mi/mi-cmd-target.c: Ditto.
8900 * mi/mi-cmd-var.c: Ditto.
8901 * mi/mi-cmds.c: Ditto.
8902 * mi/mi-cmds.h: Ditto.
8903 * mi/mi-console.c: Ditto.
8904 * mi/mi-getopt.c: Ditto.
8905 * mi/mi-getopt.h: Ditto.
8906 * mi/mi-interp.c: Ditto.
8907 * mi/mi-main.c: Ditto.
8908 * mi/mi-out.c: Ditto.
8909 * mi/mi-parse.c: Ditto.
8910 * mi/mi-parse.h: Ditto.
8911 * mi/mi-symbol-cmds.c: Ditto.
8912
8913 * mi/mi-getopt.h: Move mi_opt struct up.
8914 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
8915 return.
8916 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
8917
c988ad87
TT
89182012-03-06 Tom Tromey <tromey@redhat.com>
8919
8920 * proc-service.c (ps_pglobal_lookup): Set the current program
8921 space.
8922
1b7c1b10
PA
89232012-03-06 Pedro Alves <palves@redhat.com>
8924
8925 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
8926
3c182069
JB
89272012-03-05 Joel Brobecker <brobecker@adacore.com>
8928
8929 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
8930
2e794194
JK
89312012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8932
8933 Code cleanup.
8934 * common/linux-osdata.c (linux_common_core_of_thread): New function
8935 comment.
8936 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
8937 call by linux_common_core_of_thread.
8938 (linux_nat_core_of_thread_1): Remove.
8939 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
8940 * linux-thread-db.c: Include linux-osdata.h.
8941 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
8942 linux_common_core_of_thread.
8943
9f9f1f31
TT
89442012-03-05 Tom Tromey <tromey@redhat.com>
8945
8946 * value.c (value_primitive_field): Don't fetch contents for
8947 non-virtual bases.
8948
b7b189f3
TT
89492012-03-05 Tom Tromey <tromey@redhat.com>
8950
8951 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
8952
05b8a789 89532012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 8954
5538f557
JB
8955 * s390-nat.c: Include "gregset.h".
8956
75528772
JK
89572012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
8958
8959 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
8960 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
8961 (libunwind_load): New variable so_error, use it for dlerror. Try to
8962 load also LIBUNWIND_SO_7.
8963
275418ae
PA
89642012-03-05 Pedro Alves <palves@redhat.com>
8965
8966 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
8967 is not NULL, and remove resulting dead code.
8968
5cbb9812
TS
89692012-03-05 Thomas Schwinge <thomas@codesourcery.com>
8970
8971 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
8972 prologue to sh_analyze_prologue.
8973 (sh_analyze_prologue): Make better use of such an upper limit, and
8974 generally be more cautious about accessing memory.
8975
541515ad
TT
89762012-03-05 Tom Tromey <tromey@redhat.com>
8977
8978 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
8979 _initialize_ia64_hpux_tdep.
8980
b4d36fb8
PA
89812012-03-05 Pedro Alves <palves@redhat.com>
8982
24490249
PA
8983 PR gdb/13766
8984
b4d36fb8
PA
8985 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
8986 the register state is clear, supply explicit zero, instead of
8987 marking the register unavailable.
8988
60c9a3c0
TG
89892012-03-05 Tristan Gingold <gingold@adacore.com>
8990
8991 * NEWS: Mention OpenVMS ia64 new target.
8992
696759ad
TG
89932012-03-05 Tristan Gingold <gingold@adacore.com>
8994
8995 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
8996 (ia64_unw_accessors, ia64_unw_rse_accessors)
8997 (ia64_libunwind_descr): Declare.
8998 * ia64-vms-tdep.c: New file.
8999 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9000 (ia64_libunwind_descr): Make them public.
9001 * configure.tgt: Add ia64-*-*vms*.
9002 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9003 (ALLDEPFILES): Add ia64-vms-tdep.c
9004
34864976
TG
90052012-03-05 Tristan Gingold <gingold@adacore.com>
9006
169081d0
TG
9007 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9008 * remote.c (PACKET_qXfer_uib): New enum value.
9009 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9010 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9011 (_initialize_remote): Call add_packet_config_cmd for
9012 xfer:uib packet.
9013
90142012-03-05 Tristan Gingold <gingold@adacore.com>
9015
9016 * osabi.c (gdb_osabi_names): Add OpenVMS.
9017 (generic_elf_osabi_sniffer): Likewise.
9018 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 9019
6597b100
JK
90202012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9021
9022 Removed unused code.
9023 * libunwind-frame.c (libunwind_frame_unwind)
9024 (libunwind_frame_base_address): Remove.
9025 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9026
87399aa1
YQ
90272012-03-04 Yao Qi <yao@codesourcery.com>
9028
9029 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9030 remove trailing new line.
9031 (agent_run_command, agent_run_command): Add _ markup.
9032 (agent_capability_check): Likewise.
9033
abf1152a
JK
90342012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9035
9036 * breakpoint.c (set_condition_evaluation_mode): Set
9037 CONDITION_EVALUATION_MODE unconditionally.
9038
5808517f
YQ
90392012-03-03 Yao Qi <yao@codesourcery.com>
9040
9041 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9042 * common/agent.h: Update declaration.
9043 * inf-child.c (inf_child_use_agent): New.
9044 (inf_child_can_use_agent): New.
9045 (inf_child_target): Initialize fields `to_use_agent'
9046 and `to_can_use_agent'.
9047 * agent.c (agent_new_objfile): New.
89b7509a 9048 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
9049 observer.
9050
9051 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9052 New.
89b7509a 9053 (linux_target_install_ops): Initialize field
5808517f
YQ
9054 `to_static_tracepoint_markers_by_strid'.
9055 * remote.c (free_current_marker): Move it to ...
9056 * tracepoint.c (free_current_marker): ... here. New.
9057 (cleanup_target_stop): New.
9058 * tracepoint.h: Declare free_current_marker.
9059 * NEWS: Add one entry about `info static-tracepoint-marker'.
9060
58b4daa5
YQ
90612012-03-03 Yao Qi <yao@codesourcery.com>
9062
9063 * common/agent.c (agent_loaded_p): New.
89b7509a 9064 (agent_look_up_symbols): New global.
58b4daa5
YQ
9065 * common/agent.h: Declare agent_loaded_p.
9066
8ffcbaaf
YQ
90672012-03-03 Yao Qi <yao@codesourcery.com>
9068
9069 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9070 (agent_capability_check, agent_capability_invalidate): New.
9071 (symbol_list): New array element.
9072 * common/agent.h (enum agent_capa): New.
9073 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9074
d1feda86
YQ
90752012-03-03 Yao Qi <yao@codesourcery.com>
9076
9077 * target.h (struct target_ops) <to_use_agent>: New field.
9078 (struct target_ops) <to_can_use_agent>: New field.
9079 (target_use_agent, target_can_use_agent): New macro.
9080 * target.c (update_current_target): Update.
9081 * remote.c: New enum `PACKET_QAgent'.
9082 (remote_protocol_features): Add a new element.
9083 (remote_use_agent, remote_can_use_agent): New.
9084 (init_remote_ops): Initialize field `can_use_agent' with
9085 remote_can_use_agent. Intiailize field `use_agent' with
9086 remote_use_agent.
9087 * common/agent.c (use_agent): New global.
9088 * common/agent.h: Declare it.
9089 * tracepoint.c (info_static_tracepoint_markers_command): Add
9090 comment.
9091 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9092 (COMMON_OBS): Add common/agent.o and agent.o
9093 (common-agent.o): New rule.
9094 * agent.c: New.
9095
2fa291ac
YQ
90962012-03-03 Yao Qi <yao@codesourcery.com>
9097
9098 * common/agent.c: New.
9099 * common/agent.h: New.
9100 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9101 AC_CHECK_HEADERS.
9102 * configure, configh.in: Regenerated.
9103
9fc05685
KB
91042012-03-02 Kevin Buettner <kevinb@redhat.com>
9105
9106 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9107 unless it exists for this architecture.
9108
a5ee536b
JB
91092012-03-02 Joel Brobecker <brobecker@adacore.com>
9110
9111 * language.h (struct language_defn): New "method" la_read_var_value.
9112 * findvar.c: #include "language.h".
9113 (default_read_var_value): Renames read_var_value. Rewrite
9114 function description.
9115 (read_var_value): New function.
9116 * value.h (default_read_var_value): Add prototype.
9117 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9118 New functions.
9119 (ada_language_defn): Add entry for la_read_var_value.
9120 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9121 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9122 language_defn structures to add entry for new la_read_var_value
9123 field.
9124
f59f708a
PA
91252012-03-02 Tom Tromey <tromey@redhat.com>
9126 Pedro Alves <palves@redhat.com>
9127
9128 PR breakpoints/13776:
9129 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9130 breakpoints.
9131 (delete_longjmp_breakpoint_at_next_stop): New.
9132 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9133 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9134 before deleting the inferior. Add comments.
9135 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9136 breakpoints immediately, but only on next stop. Move that code
9137 next to where we mark other breakpoints for deletion.
9138
44099a67
JB
91392012-03-02 Joel Brobecker <brobecker@adacore.com>
9140
9141 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9142 marker.
9143 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9144 violation.
9145
2a2ef594
PA
91462012-03-02 Pedro Alves <palves@redhat.com>
9147
9148 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9149
b261e0c5
UW
91502012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9151
9152 Fix -Wmissing-prototypes build.
9153 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9154 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9155 (gdbsim_has_memory): Likewise.
9156
a95babbf
YQ
91572012-03-02 Yao Qi <yao@codesourcery.com>
9158
9159 Fix -Wmissing-prototypes build.
9160 * charset.c (phony_iconv_open): Make static.
9161 (phony_iconv_close, phony_iconv): Likewise.
9162 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9163 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9164 prototype.
9165 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9166 * ser-mingw.c (create_select_thread): Make static.
9167 * windows-termcap.c (tgetent): New prototype.
9168 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9169
d603d4b3
JK
91702012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9171
9172 Fix -Wmissing-prototypes build.
9173 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9174 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9175 (_initialize_loadable): New prototypes.
9176
7fb3ad1f
DE
91772012-03-02 Doug Evans <dje@google.com>
9178
9179 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9180 abbrev table, read_comp_unit will do it.
9181
693be288
JK
91822012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9183
9184 Fix -Wmissing-prototypes build.
9185 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9186 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9187 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9188 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9189 (_initialize_arm_symbian_tdep): New prototype.
9190 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9191 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9192 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9193 static.
9194 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9195 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9196 prototype.
9197 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9198 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9199 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9200 static.
9201 * moxie-tdep.c (moxie_process_record): Likewise.
9202 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9203 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9204 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9205 (_initialize_rl78_tdep): New prototype.
9206 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9207 (_initialize_rx_tdep): New prototype.
9208 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9209 (_initialize_darwin_solib): New prototype.
9210 * solib-spu.c: Include solib-spu.h.
9211 (_initialize_spu_solib): New prototype.
9212 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9213 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9214 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9215 (tic6x_software_single_step): Make it static.
9216 (_initialize_tic6x_tdep): New prototype.
9217
638234e5
JK
92182012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9219
9220 Fix -Wmissing-prototypes build.
9221 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9222 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9223
f4a6f16d
JK
92242012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9225
9226 Fix -Wmissing-prototypes build.
9227 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9228 (frv_have_stopped_data_address): Remove.
9229
04dcf5fa
JK
92302012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9231
9232 Fix -Wmissing-prototypes build.
9233 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9234 * sh-tdep.c: Include sh64-tdep.h.
9235 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9236 * sh64-tdep.c: Include sh64-tdep.h.
9237 * sh64-tdep.h: New file.
9238
19080931
MR
92392012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9240
9241 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9242
9aac7884
MR
92432012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9244
9245 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9246 sp_regnum once the gdbarch_init_osabi hook has been called.
9247
a385295e
MR
92482012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9249
9250 * mips-tdep.c (mips32_bc1_pc): New function.
9251 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9252 BPOSGE32 and BPOSGE64 instructions.
9253 (deal_with_atomic_sequence): Likewise.
9254 (mips32_instruction_has_delay_slot): Likewise.
9255
1faeff08 92562012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
9257 Chris Dearman <chris@mips.com>
9258 Maciej W. Rozycki <macro@codesourcery.com>
9259 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
9260
9261 * features/mips-dsp.xml: New file.
9262 * features/mips64-dsp.xml: New file.
9263 * features/mips-dsp-linux.xml: New file.
9264 * features/mips64-dsp-linux.xml: New file.
9265 * features/Makefile (WHICH): Add mips-dsp-linux and
9266 mips64-dsp-linux.
9267 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9268 * features/mips-dsp-linux.c: New file.
9269 * features/mips64-dsp-linux.c: New file.
9270 * regformats/mips-dsp-linux.dat: New file.
9271 * regformats/mips64-dsp-linux.dat: New file.
9272 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9273 registers.
9274 (mips64_linux_register_addr): Likewise.
9275 (mips64_linux_regsets_fetch_registers): Likewise.
9276 (mips64_linux_regsets_store_registers): Likewise.
9277 (mips64_linux_fetch_registers): Update call to
9278 mips64_linux_regsets_fetch_registers.
9279 (mips64_linux_store_registers): Update call to
9280 mips64_linux_regsets_store_registers.
9281 (mips_linux_read_description): Probe for DSP registers.
9282 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9283 and initialize_tdesc_mips64_dsp_linux.
9284 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9285 Remove padding of no longer used embedded register slots.
9286 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9287 (MIPS_RESTART_REGNUM): Redefine enum value.
9288 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9289 strings.
9290 (mips_tx39_reg_names): Likewise.
9291 (mips_linux_reg_names): New array of register names for Linux
9292 targets.
9293 (mips_register_name): Check for a null pointer in
9294 mips_processor_reg_names and return an empty string.
9295 (mips_register_type): Exclude embedded registers for the IRIX
9296 and Linux ABIs.
9297 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9298 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9299 DSP registers.
9300 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9301 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9302 (mips_gdbarch_init): Likewise. Initialize internal register
9303 indices for the Linux ABI. Use dynamic numbers to refer to
9304 registers, as applicable, while parsing the target description.
9305 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9306
263689d8
JB
93072012-03-01 Joel Brobecker <brobecker@adacore.com>
9308
9309 * frame.h (read_frame_register_unsigned): Fix typo in function
9310 description.
9311
f3b4f45c
PA
93122012-03-01 Pedro Alves <palves@redhat.com>
9313
9314 * jit-reader.in [!__cplusplus]
9315 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9316
b03a2011
PA
93172012-03-01 Pedro Alves <palves@redhat.com>
9318
9319 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9320 * configure: Regenerate.
9321
70221824
PA
93222012-03-01 Pedro Alves <palves@redhat.com>
9323
9324 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9325 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9326 (ftrace_command, strace_command): Make static.
9327 * d-lang.c (_initialize_d_language): Declare.
9328 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9329 * dwarf2loc.c (_initialize_dwarf2loc):
9330 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9331 * exec.c (exec_get_section_table): Make static.
9332 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9333 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9334 * inferior.c (remove_inferior_command, add_inferior_command)
9335 (clone_inferior_command): Make static.
9336 * linux-nat.c (linux_nat_thread_address_space)
9337 (linux_nat_core_of_thread): Make static.
9338 * linux-tdep.c (_initialize_linux_tdep): Declare.
9339 * objc-lang.c (_initialize_objc_lang): Declare.
9340 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9341 Make static.
9342 (_initialize_opencl_language): Declare.
9343 * record.c (_initialize_record): Declare.
9344 * remote.c (demand_private_info, remote_get_tib_address)
9345 (remote_supports_cond_tracepoints)
9346 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9347 Make static.
9348 * skip.c (_initialize_step_skip): Declare.
9349 * symtab.c (skip_prologue_using_lineinfo): Make static.
9350 * tracepoint.c (delete_trace_state_variable)
9351 (trace_variable_command, delete_trace_variable_command)
9352 (get_uploaded_tsv, find_matching_tracepoint_location)
9353 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9354 Make static.
9355 * value.c (pack_unsigned_long): Make static.
9356 * varobj.c (varobj_ensure_python_env): Make static.
9357 * windows-tdep.c (_initialize_windows_tdep): Declare.
9358 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9359
33fbcbee
PA
93602012-03-01 Pedro Alves <palves@redhat.com>
9361
9362 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9363 gdbarch parameter.
9364 (linux_init_abi): Install it as has_shared_address_space gdbarch
9365 callback.
9366
44d0cd3b
PA
93672012-03-01 Pedro Alves <palves@redhat.com>
9368
9369 * observer.c (observer_test_first_notification_function)
9370 (observer_test_second_notification_function)
9371 (observer_test_third_notification_function): Add declarations.
9372
ed01b82c
PA
93732012-03-01 Pedro Alves <palves@redhat.com>
9374
9375 * common/signals.c (default_target_signal_to_host)
9376 (default_target_signal_from_host): Move ...
9377 * arch-utils.c: ... here.
9378 * arch-utils.h (default_target_signal_to_host)
9379 (default_target_signal_from_host): Declare.
9380
9381 * common/signals.c (target_signal_from_command): Move ...
9382 * infrun.c: ... here.
9383 * inferior.h (target_signal_from_command): Declare.
9384 * target.h (target_signal_from_command)
9385 (default_target_signal_from_host, default_target_signal_to_host):
9386 Delete declarations.
9387
9388 * common/signals.c (_initialize_signals): Delete.
9389
c9b87335
PA
93902012-03-01 Pedro Alves <palves@redhat.com>
9391
9392 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9393 both __cplusplus and !__cplusplus.
9394
9340a6c0
PA
93952012-03-01 Pedro Alves <palves@redhat.com>
9396
9397 * psymtab.c (find_and_open_source): Delete declaration.
9398 * source.c (find_and_open_source): Move comment ...
9399 * source.h (find_and_open_source): ... to this new declaration.
9400
e451c4a1
PA
94012012-03-01 Pedro Alves <palves@redhat.com>
9402
9403 * inline-frame.c: Include inline-frame.h.
9404
983fb104
PA
94052012-03-01 Pedro Alves <palves@redhat.com>
9406
9407 * tui/tui-data.c (set_gen_win_origin): Delete.
9408 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9409 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9410
5fbce5df
PA
94112012-03-01 Pedro Alves <palves@redhat.com>
9412
9413 * remote.c (encode_actions): Delete declaration.
9414 * tracepoint.c (encode_actions): Make extern.
9415 * tracepoint.h (encode_actions): Declare.
9416
49a8461d
PA
94172012-03-01 Pedro Alves <palves@redhat.com>
9418
9419 * python/py-breakpoint.c: Include python.h.
9420 * python/py-continueevent.c (create_continue_event_object): Make
9421 static.
9422 * python/py-lazy-string.c (stpy_get_type): Make static.
9423 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9424 Make static.
9425 * python/py-utils.c (unicode_to_target_python_string): Make
9426 static.
9427 * python/py-value.c: Include python.h.
9428
9079102f
PA
94292012-03-01 Pedro Alves <palves@redhat.com>
9430
9431 * inferior.c (delete_threads_of_inferior): Delete.
9432
a298c5e8
PA
94332012-03-01 Pedro Alves <palves@redhat.com>
9434
9435 Import fallback definitions from glibc.
9436
9437 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9438 ps_prochandle): Forward declare.
9439 (ps_err_e): Use glibc's comments.
9440 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9441 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9442 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9443 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9444 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9445 (struct ps_prochandle): Adjust comment.
9446
e3084549
PA
94472012-03-01 Pedro Alves <palves@redhat.com>
9448
9449 * ada-lang.c (ada_modulus_from_name): Delete.
9450 * ada-lex.l (lexer_init): Make static.
9451
ad5f7d6e
PA
94522012-03-01 Pedro Alves <palves@redhat.com>
9453
9454 PR gdb/13767
9455
9456 * frame.c (read_frame_register_unsigned): New.
9457 * frame.h (read_frame_register_unsigned): Declare.
9458 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9459 Handle it.
9460 (print_i387_control_word): New parameter `control_p'. Handle it.
9461 (i387_print_float_info): Handle unavailable float registers.
9462
e0a4d108
KS
94632012-03-01 Keith Seitz <keiths@redhat.com>
9464
9465 * linespec.c (decode_line_2): Sort the list of methods
9466 alphabetically before presenting the user with a selection
9467 menu.
9468
122d1940
DE
94692012-03-01 Doug Evans <dje@google.com>
9470
9471 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9472 has_namespace_info.
9473 (dwarf2_read_abbrevs): Remove corresponding initialization.
9474
7d74f244
DE
94752012-03-01 Scott J. Goldman <scottjg@vmware.com>
9476
9477 * NEWS: Mention new python command class gdb.COMMAND_USER.
9478 * cli/cli-cmds.c (show_user): Print error when used on a python
9479 command.
9480 (init_cli_cmds): Update documentation strings for "show user" and
9481 "set/show max-user-call-depth" to clarify that it does not apply to
9482 python commands.
9483 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9484 error check.
9485 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9486 gdb python api.
9487 * top.c (execute_command): Only execute a user-defined command as a
9488 legacy macro if c->user_commands is set.
9489
e88acd96
TT
94902012-03-01 Tom Tromey <tromey@redhat.com>
9491
9492 * valprint.h (struct generic_val_print_decorations): New.
9493 (generic_val_print): Declare.
9494 * valprint.c (generic_val_print): New function.
9495 * p-valprint.c (p_decorations): New global.
9496 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9497 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9498 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9499 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9500 * m2-valprint.c (m2_decorations): New global.
9501 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9502 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9503 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9504 TYPE_CODE_ERROR>: Call generic_val_print.
9505 * f-valprint.c (f_decorations): New global.
9506 (f_val_print): Use print_function_pointer_address.
9507 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9508 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9509 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9510 generic_val_print.
9511 * c-valprint.c (c_decorations): New global.
9512 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9513 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9514 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9515 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9516 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9517 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9518 case.
9519
d3eab38a
TT
95202012-03-01 Tom Tromey <tromey@redhat.com>
9521
9522 * valprint.c (val_print): Update.
9523 * p-valprint (pascal_val_print): Return void.
9524 * p-lang.h (pascal_val_print): Return void.
9525 * m2-valprint.c (m2_val_print): Return void.
9526 * m2-lang.h (m2_val_print): Return void.
9527 * language.h (struct language_defn) <la_val_print>: Return void.
9528 * language.c (unk_lang_val_print): Return void.
9529 * jv-valprint.c (java_val_print): Return void.
9530 * jv-lang.h (java_val_print): Return void.
9531 * f-valprint.c (f_val_print): Return void.
9532 * f-lang.h (f_val_print): Return void.
9533 * d-valprint.c (d_val_print): Return void.
9534 (dynamic_array_type): Update.
9535 * d-lang.h (d_val_print): Return void.
9536 * c-valprint.c (c_val_print): Return void.
9537 * c-lang.h (c_val_print): Return void.
9538 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9539 void.
9540 * ada-lang.h (ada_val_print): Return void.
9541
35c0084b
TT
95422012-03-01 Tom Tromey <tromey@redhat.com>
9543
9544 * value.h (val_print): Return void.
9545 * valprint.c (val_print): Return void.
9546
a1f5dd1b
TT
95472012-03-01 Tom Tromey <tromey@redhat.com>
9548
9549 * value.h (common_val_print): Return void.
9550 * valprint.c (common_val_print): Return void.
9551
8e069a98
TT
95522012-03-01 Tom Tromey <tromey@redhat.com>
9553
9554 * value.h (value_print): Return void.
9555 * valprint.c (value_print): Return void.
9556 * p-valprint.c (pascal_value_print): Return void.
9557 * p-lang.h (pascal_value_print): Return void.
9558 * language.h (struct language_defn) <la_value_print>: Return
9559 void.
9560 * language.c (unk_lang_value_print): Return void.
9561 * jv-valprint.c (java_value_print): Return void.
9562 * jv-lang.h (java_value_print): Return void.
9563 * f-valprint.c (c_value_print): Don't declare.
9564 Include c-lang.h.
9565 * c-valprint.c (c_value_print): Return void.
9566 * c-lang.h (c_value_print): Return void.
9567 * ada-valprint.c (ada_value_print): Return void.
9568 * ada-lang.h (ada_value_print): Return void.
9569
be335936
TT
95702012-03-01 Tom Tromey <tromey@redhat.com>
9571
9572 * value.c (value_primitive_field): Handle virtual base classes.
9573
b0db66a7
TT
95742012-03-01 Tom Tromey <tromey@redhat.com>
9575
9576 * gdbtypes.h (struct vbase): Remove.
9577
132c57b4
TT
95782012-03-01 Tom Tromey <tromey@redhat.com>
9579
9580 * c-valprint.c (print_function_pointer_address): Move...
9581 * valprint.c: ... here. Make non-static.
9582 * m2-valprint.c (print_function_pointer_address): Remove.
9583 * valprint.h (print_function_pointer_address): Declare.
9584
e41eec66
JB
95852012-03-01 Joel Brobecker <brobecker@adacore.com>
9586
9587 * NEWS: Document the fact that one can provide a condition when
9588 creating an Ada exception catchpoint.
9589
19c37f24
TT
95902012-03-01 Tom Tromey <tromey@redhat.com>
9591
9592 * valprint.c (val_print_type_code_flags): Fix placement of
9593 trailing brace.
9594
f0fed3a3
JB
95952012-03-01 Joel Brobecker <brobecker@adacore.com>
9596
9597 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9598 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9599 environment variable before calling update-copyright.
9600
8ba85d85
JB
96012012-03-01 Joel Brobecker <brobecker@adacore.com>
9602
9603 * gnulib/extra/update-copyright: Update to the latest from
9604 gnulib's git repository.
9605 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9606 variable to 2 instead of 1.
9607
8219b1e8
JB
96082012-02-29 Joel Brobecker <brobecker@adacore.com>
9609
9610 * varobj.c (c_value_of_variable): Remove dead code.
9611
718cb7da
JB
96122012-02-29 Joel Brobecker <brobecker@adacore.com>
9613
9614 * ada-lex.p (processId): Do not modify already encoded IDs.
9615 Update function documentation.
9616
739593e0
JB
96172012-02-29 Joel Brobecker <brobecker@adacore.com>
9618
9619 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9620 "name" with "struct symbol *name_sym".
9621 * ada-exp.y (write_var_or_type): Update call to
9622 ada_find_renaming_symbol.
9623 "name" with "struct symbol *name_sym". Adjust Implementation
9624 accordingly. Adjust the function documentation.
9625
852dff6c
JB
96262012-02-29 Joel Brobecker <brobecker@adacore.com>
9627
9628 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9629 * ada-lang.c (ada_find_any_type): Add advance declaration.
9630 Make static. Replace ada_find_any_symbol by
9631 ada_find_any_type_symbol.
9632 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9633 Improve function description. Make static.
9634 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9635 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9636
1b611343
JB
96372012-02-29 Joel Brobecker <brobecker@adacore.com>
9638
9639 * ada-lang.c (struct tag_args): Delete.
9640 (ada_get_tsd_type): Function body moved up in source file.
9641 (ada_tag_name_1, ada_tag_name_2): Delete.
9642 (ada_get_tsd_from_tag): New function.
9643 (ada_tag_name_from_tsd): New function.
9644 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9645 to determine the tag name.
9646
41246937
JB
96472012-02-29 Joel Brobecker <brobecker@adacore.com>
9648
9649 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9650 declaration.
9651 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9652 function.
9653
ffde82bf
JB
96542012-02-29 Joel Brobecker <brobecker@adacore.com>
9655
9656 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9657
2ad01556
JB
96582012-02-29 Joel Brobecker <brobecker@adacore.com>
9659
9660 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9661 full searches.
9662
99b1c762
JB
96632012-02-29 Joel Brobecker <brobecker@adacore.com>
9664
9665 * ada-lang.c (constrained_packed_array_type): If there is a
9666 parallel XA type, use it to determine the array index type.
9667
2d4a02ee
JB
96682012-02-29 Joel Brobecker <brobecker@adacore.com>
9669
9670 * ada-valprint.c (ada_val_print_1): If our value is a reference
9671 to an array descriptor, dereference it before converting it
9672 to a simple array.
9673
c48db5ca
JB
96742012-02-29 Joel Brobecker <brobecker@adacore.com>
9675
9676 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9677 creating fixed value.
9678 (ada_value_ind, ada_coerce_ref, assign_component)
9679 (ada_evaluate_subexp): Remove call to unwrap_value before
9680 call to ada_to_fixed_value.
9681
2e6fda7d
JB
96822012-02-29 Joel Brobecker <brobecker@adacore.com>
9683
9684 * ada-lang.c (to_fixed_array_type): Set result's type name.
9685
5845583d
JB
96862012-02-29 Joel Brobecker <brobecker@adacore.com>
9687
9688 * ada-lang.c (catch_ada_exception_command_split): Add new
9689 argument cond_string. Add support for condition at end of
9690 "catch exception" commands.
9691 (ada_decode_exception_location): Add new argument cond_string.
9692 Update call to catch_ada_exception_command_split.
9693 (create_ada_exception_catchpoint): Add new argument cond_string.
9694 Set the breakpoint condition if needed.
9695 (catch_ada_exception_command): Update call to
9696 ada_decode_exception_location.
9697 (ada_decode_assert_location): Add function documentation.
9698 Add support for condition at end of "catch assert" command.
9699 (catch_assert_command): Update calls to ada_decode_assert_location
9700 and create_ada_exception_catchpoint.
9701
9a7f938f
JK
97022012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9703
9704 Fix disp-step-syscall.exp: fork: single step over fork.
9705 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9706 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9707 comment, change parameters gdbarch and ptid to regcache. Remove
9708 parameter regcache, initialize gdbarch from regcache here.
9709 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9710 New functions.
9711 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9712 instead.
9713 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9714 'syscall'. Make the 'int' check more strict.
9715
ffdf6de5
JK
97162012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9717
9718 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9719 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9720 (i386_linux_intx80_sysenter_syscall_record): ... here.
9721 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9722 Use the renamed function name.
9723
c70a6932
JK
97242012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9725
9726 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9727 * breakpoint.c (until_break_command): Likewise.
9728 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9729 * infcall.c (call_function_by_hand): Likewise.
9730 * infcmd.c (finish_forward): Likewise.
9731 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9732
05b8a789 97332012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 9734
d4cd3da9
JB
9735 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9736 avoid variable assignments inside condition.
9737
6425366c
JK
97382012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9739
9740 Fix static analysis issue found by cppcheck.
9741 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9742 uninitialized BUF for size 2.
9743
c8cef75f 97442012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
9745 Nathan Froyd <froydnj@codesourcery.com>
9746 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
9747
9748 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9749 (mips16_instruction_has_delay_slot): Likewise.
9750 (mips_segment_boundary): Likewise.
9751 (mips_adjust_breakpoint_address): Likewise.
9752 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9753
473347ad 97542012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 9755 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
9756
9757 * infrun.c (handle_inferior_event): Don't proceed through
9758 shared library trampolines if stepping at the machine
9759 instruction level.
9760
cf233303
MR
97612012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9762
9763 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9764 too.
9765
cb2cf4ce
TS
97662012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9767
9768 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9769 (sh_stub_unwind_sniffer): New functions.
9770 (sh_stub_unwind): New variable.
9771 (sh_gdbarch_init): Wire everything.
9772
644cebc9
PA
97732012-02-27 Pedro Alves <palves@redhat.com>
9774
9775 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9776 (linux_nat_post_attach_wait): Adjust to use
9777 linux_proc_pid_is_stopped.
9778 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9779 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9780 based on pid_is_stopped from both linux-nat.c and
9781 gdbserver/linux-low.c, and renamed.
9782
283002cf
MR
97832012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9784
9785 * remote.c (remote_watchpoint_addr_within_range): New function.
9786 (init_remote_ops): Use it.
9787
9b3e86b1
MR
97882012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9789
9790 * target.h (target_watchpoint_addr_within_range): Document macro.
9791
e36930bb
PA
97922012-02-24 Pedro Alves <palves@redhat.com>
9793
9794 * stack.c (set_last_displayed_sal): Issue internal_error instead
9795 of warning, and issue it after clearing the last displayed sal.
9796
883bc8d1
PA
97972012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9798 Pedro Alves <palves@redhat.com>
9799
9800 * breakpoint.c (until_break_command): Install breakpoints after
9801 all frame manipulations.
9802
b775012e
LM
98032012-02-24 Luis Machado <lgustavo@codesourcery.com>
9804
9805 * remote.c (remote_supports_cond_breakpoints): New forward
9806 declaration.
9807 (remote_add_target_side_condition): New function.
9808 (remote_insert_breakpoint): Add target-side breakpoint
9809 conditional if supported.
9810 (remote_insert_hw_breakpoint): Likewise.
9811 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9812 hook.
9813
9814 * target.c (update_current_target): Inherit
9815 to_supports_evaluation_of_breakpoint_conditions.
9816 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9817
9818 * target.h (struct target_ops)
9819 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9820 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9821
9822 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9823 (condition_evaluation_both, condition_evaluation_auto,
9824 condition_evaluation_host, condition_evaluation_target,
9825 condition_evaluation_enums, condition_evaluation_mode_1,
9826 condition_evaluation_mode): New static globals.
9827 (translate_condition_evaluation_mode): New function.
9828 (breakpoint_condition_evaluation_mode): New function.
9829 (gdb_evaluates_breakpoint_condition_p): New function.
9830 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9831 (mark_breakpoint_modified): New function.
9832 (mark_breakpoint_location_modified): New function.
9833 (set_condition_evaluation_mode): New function.
9834 (show_condition_evaluation_mode): New function.
9835 (bp_location_compare_addrs): New function.
9836 (get_first_location_gte_addr): New helper function.
9837 (set_breakpoint_condition): Free condition bytecode if locations
9838 has become unconditional. Call mark_breakpoint_modified (...).
9839 (condition_command): Call update_global_location_list (1) for
9840 breakpoints.
9841 (breakpoint_xfer_memory): Use is_breakpoint (...).
9842 (is_breakpoint): New function.
9843 (parse_cond_to_aexpr): New function.
9844 (build_target_condition_list): New function.
9845 (insert_bp_location): Handle target-side conditional
9846 breakpoints and call build_target_condition_list (...).
9847 (update_inserted_breakpoint_locations): New function.
9848 (insert_breakpoint_locations): Handle target-side conditional
9849 breakpoints.
9850 (bpstat_check_breakpoint_conditions): Add comment.
9851 (bp_condition_evaluator): New function.
9852 (bp_location_condition_evaluator): New function.
9853 (print_breakpoint_location): Print information on where the condition
9854 will be evaluated.
9855 (print_one_breakpoint_location): Likewise.
9856 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9857 breakpoint location.
9858 (force_breakpoint_reinsertion): New functions.
9859 (update_global_location_list): Handle target-side breakpoint
9860 conditions.
9861 Reinsert locations that are already inserted if conditions have
9862 changed.
9863 (bp_location_dtor): Free agent expression bytecode.
9864 (disable_breakpoint): Call mark_breakpoint_modified (...).
9865 Call update_global_location_list (...) with parameter 1 for breakpoints.
9866 (disable_command): Call mark_breakpoint_location_modified (...).
9867 Call update_global_location_list (...) with parameter 1 for breakpoints.
9868 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
9869 (enable_command): mark_breakpoint_location_modified (...).
9870 (_initialize_breakpoint): Update documentation and add
9871 condition-evaluation breakpoint subcommand.
9872
9873 * breakpoint.h: Include ax.h.
9874 (condition_list): New data structure.
9875 (condition_status): New enum.
9876 (bp_target_info) <cond_list>: New field.
9877 (bp_location) <condition_changed, cond_bytecode>: New fields.
9878 (is_breakpoint): New prototype.
9879
3788aec7
LM
98802012-02-24 Luis Machado <lgustavo@codesourcery.com>
9881
9882 * remote.c (remote_state) <cond_breakpoints>: New field.
9883 (PACKET_ConditionalBreakpoints): New enum.
9884 (remote_cond_breakpoint_feature): New function.
9885 (remote_protocol_features): Add new ConditionalBreakpoints entry.
9886 (remote_supports_cond_breakpoints): New function.
9887 (_initialize_remote): Add new packet configuration for
9888 target-side conditional breakpoints.
9889
72895ff6
LM
98902012-02-24 Luis Machado <lgustavo@codesourcery.com>
9891
9892 * NEWS: Mention target-side conditional breakpoint support,
9893 new condition-evaluation breakpoint subcommand and remote
9894 packet extensions.
9895
dea2aa5f
LM
98962012-02-24 Luis Machado <lgustavo@codesourcery.com>
9897
9898 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
9899 number.
9900
8a8bc27f
TS
99012012-02-24 Thomas Schwinge <thomas@codesourcery.com>
9902
9903 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
9904 (after_prologue): Remove.
9905
6b446fdf
TT
99062012-02-23 Tom Tromey <tromey@redhat.com>
9907
9908 * jv-valprint.c (java_val_print): Remove dead code.
9909
ef59abfb
TG
99102012-02-23 Tristan Gingold <gingold@adacore.com>
9911
a09130f9
PA
9912 * ada-tasks.c (struct ada_tasks_inferior_data): Add
9913 known_tasks_element and known_tasks_length fields.
9914 (read_known_tasks_array): Change argument type. Use pointer type
9915 and number of elements from DATA. Adjust.
9916 (read_known_tasks_list): Likewise.
9917 (get_known_tasks_addr): Remove.
9918 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
9919 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
9920 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 9921
def166f6
JK
99222012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9923
9924 PR backtrace/13716
9925 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
9926 it after set_momentary_breakpoint.
9927
aeaa2474
SA
99282012-02-22 Sterling Augustine <saugustine@google.com>
9929
9930 PR 13689:
9931 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
9932
feea76c2
GB
99332012-02-22 Gary Benson <gbenson@redhat.com>
9934
9935 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
9936 (find_slot_in_mapped_hash): Likewise.
9937
f06e05e0
JK
99382012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
9939
9940 PR build/13638
9941 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
9942 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
9943 * configure: Regenerate.
9944
b54a8fd7
PA
99452012-02-21 Tristan Gingold <gingold@adacore.com>
9946 Pedro Alves <palves@redhat.com>
9947
9948 * ia64-tdep.c: Do not include libunwind-ia64.h.
9949 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
9950 Include libunwind-ia64.h instead of libunwind.h.
9951 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
9952 for libunwind.h existence.
9953 * configure, config.in: Regenerate.
9954
dfcee124
AG
99552012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9956
9957 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
9958 instead of value_rtti_target_type.
9959 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
9960 instead of value_rtti_target_type.
9961 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
9962 value_rtti_target_type.
9963 * valops.c (value_ind): Extract function readjust_indirect_value_type.
9964 (value_rtti_target_type): Rename to ...
9965 (value_rtti_indirect_type): ... here and make it indirect. Update
9966 function comment.
9967 * value.c (readjust_indirect_value_type): New function.
9968 (coerce_ref): Support for enclosing type setting for references
9969 with readjust_indirect_value_type.
9970 * value.h (readjust_value_type): New declaration.
9971 (value_rtti_target_type): Rename to ...
9972 (value_rtti_indirect_type): ... here.
9973
02568277
AG
99742012-02-21 Anton Gorenkov <xgsa@yandex.ru>
9975
9976 * MAINTAINERS (Write After Approval): Add myself to the list.
9977
10c07b7e 99782012-02-20 Doug Evans <dje@google.com>
28ee876a 9979
d82ea6a8
DE
9980 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
9981 Rename objfile_p_char parameter to objfilep.
9982 (build_objfile_section_table): Result is now void. All callers
9983 updated.
9984 * objfiles.h (struct objfile): Tweak comments, whitespace.
9985 (build_objfile_section_table): Update.
9986
28ee876a
DE
9987 * elfread.c (elf_symfile_segments): Fix warning text.
9988
24c79950
TT
99892012-02-20 Tom Tromey <tromey@redhat.com>
9990
9991 PR gdb/13498:
9992 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
9993 particular set of file names once.
9994 (dw2_map_symbol_filenames): Likewise.
9995
3a9b40b6
JK
99962012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
9997
9998 Code cleanup.
9999 * main.c (write_files): Remove the declaration.
10000 (external_editor_command): Move the declaration ...
10001 [GDBTK] (external_editor_command): ... here. Fix the comment.
10002
4d0795ca
TT
100032012-02-20 Tom Tromey <tromey@redhat.com>
10004
10005 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10006 extraneous block.
10007
637fd620
TG
100082012-02-20 Tristan Gingold <gingold@adacore.com>
10009
10010 * darwin-nat.h (enum darwin_msg_state): Add comments.
10011
6f124894
TG
100122012-02-20 Tristan Gingold <gingold@adacore.com>
10013
10014 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10015 value.
10016
2e6e3d9c
JB
100172012-20-18 Joel Brobecker <brobecker@adacore.com>
10018
10019 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10020 between function description and implementation.
10021
2e8265fd
TT
100222012-02-17 Tom Tromey <tromey@redhat.com>
10023
10024 PR python/12070:
10025 * python/py-event.c (event_object_getset): New global.
10026 (event_object_type): Reference it.
10027 * python/py-type.c (field_object_getset): New global.
10028 (field_object_type): Reference it.
10029 * python/python-internal.h (gdb_py_generic_dict): Declare.
10030 * python/py-utils.c (gdb_py_generic_dict): New function.
10031
8544a150 100322012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 10033
8544a150 10034 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 10035
ca193e27
TS
100362012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10037
10038 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10039 TYPE_CALLING_CONVENTION annotation.
10040
e5586183
KB
100412012-02-16 Kevin Buettner <kevinb@redhat.com>
10042
10043 * MAINTAINERS: Add rx to target ISA section.
10044 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10045 (ALLDEPFILES): Add rx-tdep.c.
10046
7dcd53a0
TT
100472012-02-16 Tom Tromey <tromey@redhat.com>
10048
10049 * symfile.c (symbol_file_add_main_1): Use inferior's
10050 symfile_flags.
10051 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10052 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10053 inferior.
10054 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10055 inferior.
10056 (follow_exec): Use inferior's symfile_flags.
10057 * inferior.h (struct inferior) <symfile_flags>: New field.
10058
ddd60447
MF
100592012-02-16 Mike Frysinger <vapier@gentoo.org>
10060
10061 PR gdb/9734:
10062 * remote-sim.c (gdbsim_create_inferior): Call error() when
10063 sim_create_inferior() fails.
10064
b0d32fb6
TG
100652012-02-16 Josh Matthews <josh@joshmatthews.net>
10066
10067 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10068
9addecb9
TT
100692012-02-16 Tom Tromey <tromey@redhat.com>
10070
10071 PR c++/13653:
10072 * thread.c (struct current_thread_cleanup) <was_removable>: New
10073 field.
10074 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10075 (make_cleanup_restore_current_thread): Initialize new field.
10076
a58b110a
KB
100772012-02-15 Kevin Buettner <kevinb@redhat.com>
10078
10079 * MAINTAINERS: Add rl78 to target ISA section.
10080 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10081 (ALLDEPFILES): Add rl78-tdep.c.
10082 * NEWS: Mention rl78 as a new target.
10083
4cb6da1c
AR
100842012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10085
10086 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10087 data.
10088 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10089
3af2590d
TT
100902012-02-15 Tom Tromey <tromey@redhat.com>
10091
10092 PR gdb/12659:
10093 * infcmd.c (registers_info): Print just the current register's
10094 name.
10095
c6910659
TT
100962012-02-15 Tom Tromey <tromey@redhat.com>
10097
10098 * python/py-symbol.c (sympy_value): Use _().
10099
7cee1e54
PA
101002012-02-15 Pedro Alves <palves@redhat.com>
10101
10102 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10103 output to be like native targets'.
10104 (remote_pid_to_str): Special case the null ptid.
10105
816338b5
SS
101062012-02-14 Stan Shebs <stan@codesourcery.com>
10107
10108 * NEWS: Mention enable count command.
10109 * breakpoint.h (struct breakpoint): New field enable_count.
10110 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10111 (enable_breakpoint): Add arg to call.
10112 (struct disp_data): New struct.
10113 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10114 (do_map_enable_once_breakpoint): Create a struct and pass it.
10115 (do_map_enable_delete_breakpoint): Ditto.
10116 (do_map_enable_count_breakpoint): New function.
10117 (enable_count_command): New function.
10118 (bpstat_stop_status): Decrement enable_count.
10119 (print_one_breakpoint_location): Report enable count.
10120 (_initialize_breakpoint): Add enable count command.
10121
c47a44f4
KB
101222012-02-14 Kevin Buettner <kevinb@redhat.com>
10123
10124 * rl78-tdep.c (reggroups.h): Include.
10125 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10126 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10127 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10128 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10129 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10130 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10131 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10132 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10133 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10134 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10135 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10136 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10137 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10138 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10139 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10140 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10141 beginning of register list.
10142 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10143 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10144 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10145 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10146 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10147 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10148 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10149 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10150 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10151 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10152 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10153 the pseudo registers. Rearrange other pseudo registers too so
10154 that the bank registers appear at the end.
10155 (rl78_register_type): Account for the fact that the byte sized
10156 bank registers are now pseudo-registers.
10157 (rl78_register_name): Rearrange the register name array. Make
10158 initial set of raw banked registers inaccessible.
10159 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10160 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10161 case for copying bytes back and forth between raw and pseudo
10162 versions of the banked registers. Update other cases to reflect
10163 the changed names.
10164 (rl78_return_value): Update to account for changed names of
10165 raw registers.
10166 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10167 rl78_register_sim_regno().
10168
e4569f1e
KB
101692012-02-14 Kevin Buettner <kevinb@redhat.com>
10170
10171 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10172 the name parameter being passed to find_pc_partial_function().
10173
7a05aae7
JK
101742012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10175
10176 * MAINTAINERS: Step down from being ia64 target maintainer.
10177
11fde611
JK
101782012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10179
10180 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10181 compilation warning.
10182
57008375
JK
101832012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10184
10185 Fix crash on loaded shlibs without loaded exec_bfd.
10186 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10187 (set_section_command): Replace exec_bfd by p->bfd.
10188
ff3c9849
TT
101892012-02-10 Tom Tromey <tromey@redhat.com>
10190
10191 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10192 when we have a C++ qualified name.
10193
db2b9fdd
PA
101942012-02-10 Pedro Alves <palves@redhat.com>
10195
10196 * inferior.c (inferior_pid_to_str): New.
10197 (print_inferior, inferior_command): Use it.
10198
12cd34f3
PA
101992012-02-10 Pedro Alves <palves@redhat.com>
10200
10201 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10202 the test CFLAGS.
10203 * configure: Regenerate.
10204
e871429d
JK
102052012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10206
10207 * linespec.c (decode_line_internal): Fix comment correctness.
10208
1916efaf
PA
102092012-02-09 Valery Khromov <valery.khromov@gmail.com>
10210
10211 PR gdb/12953
10212 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10213 * amd64bsd-nat.c: Add support for debug registers (adapted from
10214 i386bsd-nat.c).
10215 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10216 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10217 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10218 (amd64bsd_dr_get_control): New functions.
10219 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10220 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10221 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10222 watchpoints initialization.
10223 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10224
f4859d94
JK
102252012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10226
10227 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10228 flds_bnds.fields.
10229 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10230
c56a97f9
JK
102312012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10232
10233 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10234
1a119f36
JB
102352012-02-08 Joel Brobecker <brobecker@adacore.com>
10236
10237 * language.h (symbol_name_cmp_ftype): Renames
10238 symbol_name_match_p_ftype.
10239 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10240 la_get_symbol_name_match_p.
10241 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10242 ada_get_symbol_name_match_p. Update comment.
10243 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10244 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10245 Renames symbol_name_match_p. Update field type.
10246 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10247 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10248 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10249 "la_get_symbol_name_cmp" in comments.
10250 * language.c: Likewise.
10251
c71bb1cf
RO
102522012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10253
10254 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10255 %eflags offset.
10256 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10257 (amd64_sol2_gregset32_reg_offs): Likewise.
10258
4b2d20a5
TG
102592012-02-08 Joel Brobecker <brobecker@adacore.com>
10260
10261 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10262 of the returned BFD is allocated by GDB.
10263
f0823d2c
TT
102642012-02-07 Tom Tromey <tromey@redhat.com>
10265
10266 PR python/12027:
10267 * python/python-internal.h (frame_object_type): Declare.
10268 * python/py-symbol.c (sympy_needs_frame): New function.
10269 (sympy_value): New function.
10270 (symbol_object_getset): Add "needs_frame".
10271 (symbol_object_methods): Add "value".
10272 * python/py-frame.c (frame_object_type): No longer static.
10273
64e7d9dd
TT
102742012-02-07 Tom Tromey <tromey@redhat.com>
10275
10276 PR python/13599:
10277 * python/py-symbol.c (sympy_line): New function.
10278 (symbol_object_getset): Add "line".
10279
1d6b2d2b
TT
102802012-02-07 Tom Tromey <tromey@redhat.com>
10281
10282 * charset.c (find_charset_names): Check 'in' against NULL.
10283
0d5cff50
DE
102842012-02-06 Doug Evans <dje@google.com>
10285
10286 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10287 and fields.name members from char * to const char *. All uses updated.
10288 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10289 from char * to const char *. All uses updated.
10290 (type_name_no_tag): Update.
10291 (lookup_unsigned_typename, lookup_signed_typename): Update.
10292 * gdbtypes.c (type_name_no_tag): Change result type
10293 from char * to const char *. All callers updated.
10294 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10295 name parameter from char * to const char *.
10296 * symtab.h (struct cplus_specific): Change type of demangled_name
10297 member from char * to const char *. All uses updated.
10298 (struct general_symbol_info): Change type of name and
10299 mangled_lang.demangled_name members from char * to const char *.
10300 All uses updated.
10301 (symbol_get_demangled_name, symbol_natural_name): Update.
10302 (symbol_demangled_name, symbol_search_name): Update.
10303 * symtab.c (symbol_get_demangled_name): Change result type
10304 from char * to const char *. All callers updated.
10305 (symbol_natural_name, symbol_demangled_name): Ditto.
10306 (symbol_search_name): Ditto.
10307 (completion_list_add_name): Change type of symname,sym_text,
10308 text,word parameters from char * to const char *.
10309 (completion_list_objc_symbol): Change type of sym_text,
10310 text,word parameters from char * to const char *.
10311 * ada-lang.c (find_struct_field): Change type of name parameter
10312 from char * to const char *.
10313 (encoded_ordered_before): Similarly for N0,N1 parameters.
10314 (old_renaming_is_invisible): Similarly for function_name parameter.
10315 (ada_type_name): Change result type from char * to const char *.
10316 All callers updated.
10317 * ada-lang.h (ada_type_name): Update.
10318 * buildsym.c (hashname): Change type of name parameter
10319 from char * to const char *.
10320 * buildsym.h (hashname): Update.
10321 * dbxread.c (end_psymtab): Change type of include_list parameter
10322 from char ** to const char **.
10323 * dwarf2read.c (determine_prefix): Change result type
10324 from char * to const char *. All callers updated.
10325 * f-lang.c (find_common_for_function): Change type of name, funcname
10326 parameters from char * to const char *.
10327 * f-lang.c (find_common_for_function): Update.
10328 * f-valprint.c (list_all_visible_commons): Change type of funcname
10329 parameters from char * to const char *.
10330 * gdbarch.sh (static_transform_name): Change type of name parameter
10331 and result from char * to const char *.
10332 * gdbarch.c: Regenerate.
10333 * gdbarch.h: Regenerate.
10334 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10335 of name parameter from char * to const char *.
10336 * jv-lang.c (java_primitive_type_from_name): Ditto.
10337 (java_demangled_signature_length): Similarly for signature parameter.
10338 (java_demangled_signature_copy): Ditto.
10339 (java_demangle_type_signature): Ditto.
10340 * jv-lang.h (java_primitive_type_from_name): Update.
10341 (java_demangle_type_signature): Update.
10342 * objc-lang.c (specialcmp): Change type of a,b parameters
10343 from char * to const char *.
10344 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10345 from char * to const char *. All callers updated.
10346 * p-lang.h (is_pascal_string_type): Update.
10347 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10348 of name parameter from char * to const char *.
10349 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10350 * utils.c (fprintf_symbol_filtered): Ditto.
10351 * defs.h (fprintf_symbol_filtered): Update.
10352 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10353 * stabsread.h (end_psymtab): Update.
10354 * stack.c (find_frame_funname): Change type of funname parameter
10355 from char ** to const char **.
10356 * stack.h (find_frame_funname): Update.
10357 * typeprint.c (type_print): Change type of varstring parameter
10358 from char * to const char *.
10359 * value.h (type_print): Update.
10360 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10361 from char * to const char *. All callers updated.
10362 (xcoff_end_psymtab): Change type of include_list parameter
10363 from char ** to const char **. All callers updated.
10364 (swap_sym): Similarly for name parameter. All callers updated.
10365 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10366 Use xstrdup.
10367 (process_coff_symbol): Use xstrdup.
10368 * stabsread.c (stabs_method_name_from_physname): Renamed from
10369 update_method_name_from_physname. Change result type from void
10370 to char *. All callers updated.
10371 (read_member_functions): In has_destructor case, store name in objfile
10372 obstack instead of malloc space. In !has_stub case, fix mem leak.
10373
5579a92e
TT
103742012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10375
10376 * configure: Rebuild.
10377 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10378 LDFLAGS.
10379
9058f767
KB
103802012-02-03 Kevin Buettner <kevinb@redhat.com>
10381
10382 * configure.tgt (rl78-*-elf): New target.
10383 * rl78-tdep.c: New file.
10384
5b37825d
PW
103852012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10386
10387 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10388 and continue the loop. Add QUIT statement.
10389
e009ee71
TT
103902012-02-03 Tom Tromey <tromey@redhat.com>
10391
10392 PR gdb/13596:
10393 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10394 bfd_lookup_symbol_from_symtab.
10395 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10396 gdb_bfd_lookup_symbol_from_symtab.
10397
f7e44f65
JB
103982012-02-03 Joel Brobecker <brobecker@adacore.com>
10399
10400 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10401 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10402 symbol. Add assertion that sym2 is never NULL.
10403
2c02bd72
DE
104042012-02-02 Doug Evans <dje@google.com>
10405
10406 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10407 "name" parameter to const char ** from char **. All callers updated.
10408 (find_pc_partial_function): Ditto.
10409 (cache_pc_function_name): Change type to const char * from char *.
10410 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10411 (find_pc_partial_function): Update.
10412 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10413 type of "name" parameter to const char * from char *.
10414 All uses updated.
10415 * arch-utils.c (generic_in_solib_return_trampoline): Change
10416 type of "name" parameter to const char * from char *.
10417 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10418 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10419 type of "name" parameter to const char * from char *.
10420 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10421 * gdbarch.c: Regenerate.
10422 * gdbarch.h: Regenerate.
10423 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10424 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10425 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10426 type of "name" parameter to const char * from char *.
10427 * skip.c (skip_function_pc): Ditto.
10428 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10429 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10430 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10431 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10432 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10433 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10434 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10435 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10436 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10437
e886a173
PA
104382012-02-02 Pedro Alves <palves@redhat.com>
10439
10440 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10441 the current inferior has no execution. Make sure the current
10442 remote process matches gdb's current inferior.
10443
c709a7c2
TT
104442012-02-02 Tom Tromey <tromey@redhat.com>
10445
10446 PR gdb/13405:
10447 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10448 read-only memory.
10449
f149aabd
TT
104502012-02-02 Tom Tromey <tromey@redhat.com>
10451
10452 PR gdb/9307:
10453 * symtab.c (lookup_language_this): Set block_found.
10454
03bef283
TT
104552012-02-01 Tom Tromey <tromey@redhat.com>
10456
10457 PR gdb/13431:
10458 * jit.c (struct jit_inferior_data): Rewrite.
10459 (struct jit_objfile_data): New.
10460 (get_jit_objfile_data): New function.
10461 (add_objfile_entry): Update.
10462 (jit_read_descriptor): Return int. Replace descriptor_addr
10463 argument with inf_data. Update. Don't call error.
10464 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10465 descriptor here.
10466 (jit_inferior_init): Don't look up descriptor. Don't call error.
10467 (jit_reset_inferior_data_and_breakpoints)
10468 (jit_inferior_created_observer): Remove.
10469 (jit_inferior_exit_hook): Update.
10470 (jit_executable_changed_observer): Remove.
10471 (jit_event_handler): Update.
10472 (free_objfile_data): Reset inferior data if needed.
10473 (_initialize_jit): Update.
10474
f0bbc364
TT
104752012-02-01 Tom Tromey <tromey@redhat.com>
10476
10477 * jit.c (bfd_open_from_target_memory): Move higher in file.
10478
47c1316c
TG
104792012-02-01 Tristan Gingold <gingold@adacore.com>
10480
10481 * libunwind-frame.c (libunwind_load): Display message if dlopen
10482 failed.
10483
8e704927
GB
104842012-02-01 Gary Benson <gbenson@redhat.com>
10485
09c7a31f 10486 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
10487 (iterate_over_symbols): Use the above.
10488 * symtab.c (iterate_over_symbols): Likewise.
10489 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10490 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10491 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10492 (iterate_name_matcher): Document return values.
10493 (collect_one_symbol): Likewise.
10494 (collect_function_symbols): Likewise.
10495 (collect_symbols): Likewise.
10496
d9680e73
TT
104972012-02-01 Tom Tromey <tromey@redhat.com>
10498
10499 * ada-lang.c (resolve_subexp): Update.
10500 (ada_lookup_symbol_list): Add 'full_search' argument.
10501 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10502 ada_lookup_symbol_list.
10503 (ada_lookup_encoded_symbol): Update.
10504 (get_var_value): Update.
10505 * ada-exp.y (block_lookup): Update.
10506 (write_var_or_type): Update.
10507 (write_name_assoc): Update.
10508 * ada-lang.h (ada_lookup_symbol_list): Update.
10509
72e1143f
TT
105102012-01-31 Tom Tromey <tromey@redhat.com>
10511
10512 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10513 comment.
10514
ab2d2ad3
DE
105152012-01-31 Doug Evans <dje@google.com>
10516
10517 * symtab.h: Remove outdated comment.
e9111bf7 10518 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 10519
bc884eba
JB
105202012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10521
10522 Fix build error in Darwin port.
10523 * i386-darwin-nat.c: Include i386-nat.h.
10524
8fc3fc34
TT
105252012-01-30 Tom Tromey <tromey@redhat.com>
10526
10527 PR breakpoints/13568:
10528 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10529 argument. Check for recursive includes.
10530 (dwarf_decode_macros): Create an include hash.
10531
5d853008
ME
105322012-01-30 Michael Eager <eager@eagercon.com>
10533
10534 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10535 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 10536 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
10537 (powerpc_linux_in_plt_stub): New function.
10538 (powerpc_linux_in_dynsym_resolve_code): New function.
10539 (ppc_skip_trampoline_code): New function.
10540 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10541 Use glibc_skip_solib_resolver.
10542
40478521
JK
105432012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10544
10545 Code cleanup: Make 1440 bytes of data segment read-only.
10546 * arch-utils.c (endian_enum): Make it const char *const [].
10547 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10548 Likewise.
10549 * breakpoint.c (always_inserted_enums): Likewise.
10550 * cli/cli-cmds.c (script_ext_enums): Likewise.
10551 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10552 enumlist parameter const char *const *.
10553 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10554 const char *const *.
10555 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10556 parameter const char *const *.
10557 * cris-tdep.c (cris_modes): Make it const char *const [].
10558 * filesystem.c (target_file_system_kinds): Likewise.
10559 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10560 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10561 (can_use_displaced_stepping_enum, scheduler_enums)
10562 (exec_direction_names): Likewise.
10563 * language.c (_initialize_language): Make the type_or_range_names and
10564 case_sensitive_names variables const char *const [].
10565 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10566 * python/python.c (python_excp_enums): Likewise.
10567 * remote.c (interrupt_sequence_modes): Likewise.
10568 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10569 * serial.c (logbase_enums): Likewise.
10570 * sh-tdep.c (sh_cc_enum): Likewise.
10571 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10572 Likewise.
10573 * symtab.c (multiple_symbols_modes): Likewise.
10574 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10575 Likewise.
10576 * utils.c (internal_problem_modes): Likewise.
10577
b3b8b934
JK
105782012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10579
10580 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10581 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10582 result.
10583
8c85a4e2
DE
105842012-01-27 Doug Evans <dje@google.com>
10585
10586 * configure.ac (with_python): Fix absolute path handling for win32.
10587 * configure: Regenerate.
10588
78d8b4d7
DE
105892012-01-26 Doug Evans <dje@google.com>
10590
eca864fe
DE
10591 * symtab.c: Whitespace cleanup, no code changes.
10592
7e082072
DE
10593 * symtab.c (lookup_symbol_in_language): Improve comment.
10594 (lookup_symbol_aux): Fix comment.
10595
7dc25483
DE
10596 * psymtab.c (add_psymbol_to_list): Result is now "void".
10597 * psympriv.h (add_psymbol_to_list): Update.
10598
78d8b4d7
DE
10599 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10600
4c63965b
JK
106012012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10602
10603 Do not open script filenames twice.
10604 * cli/cli-cmds.c (source_script_from_stream): Pass to
10605 source_python_script also STREAM.
10606 * python/py-auto-load.c (source_section_scripts): Pass to
10607 source_python_script_for_objfile also STREAM.
10608 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10609 also INPUT.
10610 * python/python-internal.h (source_python_script_for_objfile): New
10611 parameter file, rename parameter file to filename.
10612 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10613 instead if !_WIN32. Update the function comment.
10614 (source_python_script, source_python_script_for_objfile)
10615 (source_python_script): New parameter file, rename parameter file to
10616 filename. Pass FILENAME to python_run_simple_file.
10617 * python/python.h (source_python_script): New parameter file, rename
10618 parameter file to filename.
10619
88f38a04
PA
106202012-01-26 Pedro Alves <palves@redhat.com>
10621
10622 * corelow.c (core_has_fake_pid): Delete.
10623 (core_close): Delete references to `core_has_fake_pid'.
10624 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10625 (core_open): Delete references to `core_has_fake_pid'.
10626 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10627 the removed global.
10628
e078317b
JB
106292012-01-26 Joel Brobecker <brobecker@adacore.com>
10630
10631 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10632 Remove language parameter from name_matcher. Adjust the comment.
10633 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10634 Remove language parameter.
10635 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10636 * linespec.c (iterate_name_matcher): Likewise.
10637 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10638 name_matcher. Adjust call accordingly.
10639 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10640 (maintenance_check_symtabs): Adjust type of parameter "fun".
10641 * psymtab.h (maintenance_check_symtabs): Likewise.
10642
74ccd7f5
JB
106432012-01-26 Joel Brobecker <brobecker@adacore.com>
10644
10645 * language.h (symbol_name_match_p_ftype): New typedef.
10646 (struct language_defn): Replace field la_symbol_name_compare
10647 by la_get_symbol_name_match_p.
10648 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10649 (ada_language_defn): Use it.
10650 * linespec.c (struct symbol_matcher_data): New type.
10651 (iterate_name_matcher): Rewrite.
10652 (iterate_over_all_matching_symtabs): Pass a pointer to
10653 a symbol_matcher_data struct to expand_symtabs_matching
10654 instead of just the lookup name.
10655 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10656 opencl-lang.c, p-lang.c, language.c: Delete field
10657 la_symbol_name_compare, and replace by NULL for new field
10658 la_get_symbol_name_match_p.
10659 * symfile.h (struct quick_symbol_functions): Update comment.
10660
5d268276
TT
106612012-01-25 Tom Tromey <tromey@redhat.com>
10662
10663 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10664 dereferencing.
10665
edcc5120
TT
106662012-01-24 Tom Tromey <tromey@redhat.com>
10667
10668 PR symtab/12406:
10669 * solib.c (update_solib_list): Update the program space's
10670 added_solibs and deleted_solibs fields.
10671 * progspace.h (struct program_space) <added_solibs,
10672 deleted_solibs>: New fields.
10673 (clear_program_space_solib_cache): Declare.
10674 * progspace.c (release_program_space): Call
10675 clear_program_space_solib_cache.
10676 (clear_program_space_solib_cache): New function.
10677 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10678 bpstat_stop_status. Use handle_solib_event.
10679 * breakpoint.c: Include gdb_regex.h.
10680 (print_solib_event): New function.
10681 (bpstat_print): Use print_solib_event.
10682 (bpstat_stop_status): Add special case for bp_shlib_event.
10683 (handle_solib_event): New function.
10684 (bpstat_what): Use handle_solib_event.
10685 (struct solib_catchpoint): New.
10686 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10687 (breakpoint_hit_catch_solib, check_status_catch_solib)
10688 (print_it_catch_solib, print_one_catch_solib)
10689 (print_mention_catch_solib, print_recreate_catch_solib): New
10690 functions.
10691 (catch_solib_breakpoint_ops): New global.
10692 (catch_load_or_unload, catch_load_command_1)
10693 (catch_unload_command_1): New functions.
10694 (internal_bkpt_check_status): Add special case for
10695 bp_shlib_event.
10696 (internal_bkpt_print_it): Use print_solib_event.
10697 (initialize_breakpoint_ops): Initialize
10698 catch_solib_breakpoint_ops.
10699 (_initialize_breakpoint): Register "catch load" and "catch
10700 unload".
10701 * breakpoint.h (handle_solib_event): Declare.
10702 * NEWS: Add entry for "catch load" and "catch unload".
10703
fa864999
TT
107042012-01-24 Tom Tromey <tromey@redhat.com>
10705
10706 * ada-lang.c: Include gdb_vecs.h.
10707 * charset.c: Include gdb_vecs.h.
10708 * tracepoint.h: Include gdb_vecs.h.
10709 * gdb_vecs.h: New file.
10710
f90263c1
TT
107112012-01-24 Pedro Alves <pedro@codesourcery.com>
10712
10713 * breakpoint.c (breakpoint_hit_catch_fork)
10714 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10715 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10716 * infrun.c (inferior_has_forked, inferior_has_vforked)
10717 (inferior_has_execd, inferior_has_called_syscall): Delete.
10718 (handle_syscall_event): Get syscall_number from the execution
10719 control state's wait status.
10720 (wait_for_inferior): Don't clear syscall_number.
10721
09ac7c10
TT
107222012-01-24 Pedro Alves <palves@redhat.com>
10723
10724 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10725 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10726 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10727 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10728 `ws' parameter.
10729 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10730 false for events other than TARGET_SIGNAL_TRAP.
10731 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10732 Add `ws' parameter.
10733 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10734 events other than TARGET_SIGNAL_TRAP.
10735 (tracepoint_breakpoint_hit): Add `ws' parameter.
10736 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10737 parameter.
10738 (bpstat_stop_status): Same.
10739 (pc_at_non_inline_function): Same.
10740 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10741 to pass the current event's waitstatus to bpstat_stop_status
10742 and pc_at_non_inline_function.
10743
86eb7e95
JK
107442012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10745
10746 Code cleanup.
10747 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10748 Update the function comment for it.
10749 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10750 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10751 for STREAM.
10752
a9b3a50f
PA
107532012-01-24 Pedro Alves <palves@redhat.com>
10754
10755 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10756 outside `bs->stop' block.
10757 (bpstat_what): Rework bp_shlib_event handling.
10758 (internal_bkpt_check_status): If the breakpoint is a
10759 bp_shlib_event, then set bs->stop and bs->print if
10760 stop_on_solib_events is set.
10761
53fe1783
GB
107622012-01-24 Gary Benson <gbenson@redhat.com>
10763
10764 Delete #if 0'd out code.
10765 * stack.c (print_frame_label_vars): Remove.
10766 (catch_info): Likewise.
10767 (_initialize_stack): Remove "info catch" command.
10768 * NEWS: Mention the above.
10769
49c62f2e
PA
107702012-01-24 Pedro Alves <palves@redhat.com>
10771
10772 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10773 it.
10774 (remote_notice_new_inferior): If the remote end doesn't support
10775 the multiprocess extensions, then the PID is fake.
10776 (add_current_inferior_and_thread): New.
10777 (remote_start_remote): Use it.
10778 (extended_remote_attach_1): Adjust.
10779 (extended_remote_create_inferior_1): Use
10780 add_current_inferior_and_thread.
10781
d0d8b0c6
JK
107822012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10783
10784 Fix watchpoints to be specific for each inferior.
10785 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10786 current_program_space.
10787 * i386-nat.c (i386_inferior_data_cleanup): New.
10788 (i386_inferior_data_get): Replace variable inf_data_local by an
10789 inferior_data call.
10790 (i386_use_watchpoints): Initialize i386_inferior_data.
10791 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10792 specific iterate_over_lwps.
10793
4403d8e9
JK
107942012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10795
10796 Fix watchpoints across inferior fork.
10797 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10798 comment for linux_nat_iterate_watchpoint_lwps.
10799 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10800 linux_nat_iterate_watchpoint_lwps.
10801 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10802 * i386-linux-nat.c (update_debug_registers_callback): Update the
10803 comment for linux_nat_iterate_watchpoint_lwps.
10804 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10805 linux_nat_iterate_watchpoint_lwps.
10806 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10807 * i386-nat.c: Include inferior.h.
10808 (dr_mirror): Remove.
10809 (i386_inferior_data, struct i386_inferior_data)
10810 (i386_inferior_data_get): New.
10811 (i386_debug_reg_state): Use i386_inferior_data_get.
10812 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10813 (i386_insert_watchpoint, i386_remove_watchpoint)
10814 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10815 (i386_remove_hw_breakpoint): New variable state, use
10816 i386_debug_reg_state instead of DR_MIRROR.
10817 * linux-nat.c (delete_lwp): New declaration.
10818 (num_lwps): Move here from downwards.
10819 (delete_lwp_cleanup): New.
10820 (linux_child_follow_fork): Create new child_lp, call
10821 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10822 PTRACE_DETACH.
10823 (num_lwps): Move upwards.
10824 (linux_nat_iterate_watchpoint_lwps): New.
10825 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10826 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10827
2992c9a7 108282012-01-24 Joel Brobecker <brobecker@adacore.com>
10829
10830 GDB 7.4 released.
10831
e360902b
PA
108322012-01-23 Pedro Alves <palves@redhat.com>
10833
10834 * top.c (caution): Rename to ...
10835 (confirm): ... this.
10836 (show_caution): Rename to ...
10837 (show_confirm): ... this.
10838 (quit_cover): Adjust.
10839 (init_main): Adjust.
10840 * top.h (caution): Rename to ...
10841 (confirm): ... this.
10842 * utils.c (internal_vproblem, defaulted_query): Adjust.
10843
050a2e1d
PA
108442012-01-23 Pedro Alves <palves@redhat.com>
10845
10846 * top.c (caution): Update comment.
10847 (execute_command): Don't consider the current value of `caution'.
10848
77a35dd8
JK
108492012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10850
10851 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10852
a71b5a38
UW
108532012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10854
10855 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10856 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10857 * target.c (target_fileio_pwrite): Remove buffer address from
10858 debug output.
10859 (target_fileio_pread): Likewise.
10860
d99bd577
UW
108612012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10862
10863 * NEWS: Document remote "info proc" and "generate-core-file".
10864
35c2fab7
UW
108652012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10866
10867 * gdbarch.sh (find_memory_regions): New callback.
10868 * gdbarch.c, gdbarch.h: Regenerate.
10869
10870 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
10871 callback before falling back to target method.
10872
10873 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
10874 (linux_target_install_ops): No longer install it.
10875
10876 * linux-tdep.c (linux_find_memory_regions): New function.
10877 (linux_init_abi): Install it.
10878
6432734d
UW
108792012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10880
10881 * gdbarch.sh (make_corefile_notes): New architecture callback.
10882 * gdbarch.c: Regenerate.
10883 * gdbarch.h: Likewise.
10884
10885 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
10886 before target_make_corefile_notes. If NULL is returned, the
10887 target does not support core file generation.
10888
10889 * linux-nat.c: Include "linux-tdep.h".
10890 (find_signalled_thread, find_stop_signal): Remove.
10891 (linux_nat_do_thread_registers): Likewise.
10892 (struct linux_nat_corefile_thread_data): Likewise.
10893 (linux_nat_corefile_thread_callback): Likewise.
10894 (iterate_over_spus): Likewise.
10895 (struct linux_spu_corefile_data): Likewise.
10896 (linux_spu_corefile_callback): Likewise.
10897 (linux_spu_make_corefile_notes): Likewise.
10898 (linux_nat_collect_thread_registers): New function.
10899 (linux_nat_make_corefile_notes): Replace contents by call to
10900 linux_make_corefile_notes passing linux_nat_collect_thread_registers
10901 as native-only callback.
10902
10903 * linux-tdep.h: Include "bfd.h".
10904 (struct regcache): Add forward declaration.
10905 (linux_collect_thread_registers_ftype): New typedef.
10906 (linux_make_corefile_notes): Add prototype.
10907 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
10908 "regset.h", and "elf-bfd.h".
10909 (find_signalled_thread, find_stop_signal): New functions.
10910 (linux_spu_make_corefile_notes): Likewise.
10911 (linux_collect_thread_registers): Likewise.
10912 (struct linux_corefile_thread_data): New data structure.
10913 (linux_corefile_thread_callback): New funcion.
10914 (linux_make_corefile_notes): Likewise.
10915 (linux_make_corefile_notes_1): Likewise.
10916 (linux_init_abi): Install it.
10917
3030c96e
UW
109182012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10919
10920 * gdbarch.sh (info_proc): New callback.
10921 * gdbarch.c, gdbarch.h: Regenerate.
10922
10923 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
10924 before falling back to the target info_proc callback.
10925
10926 * linux-nat.c: Do not include "cli/cli-utils.h".
10927 (linux_nat_info_proc): Remove.
10928 (linux_target_install_ops): No longer install it.
10929
10930 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
10931 (read_mapping): New function.
10932 (linux_info_proc): Likewise.
10933 (linux_init_abi): Install it.
10934
145b16a9
UW
109352012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10936
10937 * defs.h (enum info_proc_what): Moved here from linux-nat.c
10938 * infcmd.c: (info_proc_cmd_1): New function.
10939 (info_proc_cmd): New function, moved here from equivalent routine
10940 orignally in linux-nat.c.
10941 (info_proc_cmd_mappings): Likewise.
10942 (info_proc_cmd_stat): Likewise.
10943 (info_proc_cmd_status): Likewise.
10944 (info_proc_cmd_cwd): Likewise.
10945 (info_proc_cmd_cmdline): Likewise.
10946 (info_proc_cmd_exe): Likewise.
10947 (info_proc_cmd_all): Likewise.
10948 (_initialize_infcmd): Install "info proc" command and subcommands.
10949
10950 * target.h (struct target_ops): Add to_info_proc.
10951 (target_info_proc): Add prototype.
10952 * target.c (target_info_proc): New function.
10953
10954 * procfs.c (procfs_info_proc): Add prototype.
10955 (info_proc_cmd): Rename into ...
10956 (procfs_info_proc): ... this. Update argument types as appropriate
10957 for a to_info_proc implementation. Handle "what" argument.
10958 (procfs_target): Install procfs_info_proc.
10959 (_initialize_procfs): No longer install "info proc" command.
10960
10961 * linux-nat.c: (enum info_proc_what): Remove.
10962 (linux_nat_info_proc_cmd_1): Rename into ...
10963 (linux_nat_info_proc): ... this. Update argument types as appropriate
10964 for a to_info_proc implementation.
10965 (linux_nat_info_proc_cmd): Remove.
10966 (linux_nat_info_proc_cmd_mappings): Likewise.
10967 (linux_nat_info_proc_cmd_stat): Likewise.
10968 (linux_nat_info_proc_cmd_status): Likewise.
10969 (linux_nat_info_proc_cmd_cwd): Likewise.
10970 (linux_nat_info_proc_cmd_cmdline): Likewise.
10971 (linux_nat_info_proc_cmd_exe): Likewise.
10972 (linux_nat_info_proc_cmd_all): Likewise.
10973 (linux_target_install_ops): Install linux_nat_info_proc.
10974 (_initialize_linux_nat): No longer install "info proc" command
10975 and subcommands.
10976
b9e7b9c3
UW
109772012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10978
10979 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
10980 * config.in, configure: Regenerate.
10981
10982 * target.h (struct target_ops): Add to_fileio_readlink.
10983 (target_fileio_readlink): Add prototype.
10984 * target.c (target_fileio_readlink): New function.
10985
10986 * inf-child.c: Conditionally include <sys/param.h>.
10987 (inf_child_fileio_readlink): New function.
10988 (inf_child_target): Install it.
10989
10990 * remote.c (PACKET_vFile_readlink): New enum value.
10991 (remote_hostio_readlink): New function.
10992 (init_remote_ops): Install it.
10993 (_initialize_remote): Handle vFile:readlink packet type.
10994
7313baad
UW
109952012-01-20 Pedro Alves <palves@redhat.com>
10996 Ulrich Weigand <ulrich.weigand@linaro.org>
10997
10998 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
10999 * config.in, configure: Regenerate.
11000
11001 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11002 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11003 (target_fileio_open): Add prototype.
11004 (target_fileio_pwrite): Likewise.
11005 (target_fileio_pread): Likewise.
11006 (target_fileio_close): Likewise.
11007 (target_fileio_unlink): Likewise.
11008 (target_fileio_read_alloc): Likewise.
11009 (target_fileio_read_stralloc): Likewise.
11010
11011 * target.c: Include "gdb/fileio.h".
11012 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11013 (default_fileio_target): New function.
11014 (target_fileio_open): Likewise.
11015 (target_fileio_pwrite): Likewise.
11016 (target_fileio_pread): Likewise.
11017 (target_fileio_close): Likewise.
11018 (target_fileio_unlink): Likewise.
11019 (target_fileio_close_cleanup): Likewise.
11020 (target_fileio_read_alloc_1): Likewise.
11021 (target_fileio_read_alloc): Likewise.
11022 (target_fileio_read_stralloc): Likewise.
11023
11024 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11025 <fcntl.h>, and <unistd.h>.
11026 (inf_child_fileio_open_flags_to_host): New function.
11027 (inf_child_errno_to_fileio_error): Likewise.
11028 (inf_child_fileio_open): Likewise.
11029 (inf_child_fileio_pwrite): Likewise.
11030 (inf_child_fileio_pread): Likewise.
11031 (inf_child_fileio_close): Likewise.
11032 (inf_child_fileio_unlink): Likewise.
11033 (inf_child_target): Install to_fileio routines.
11034
11035 * remote.c (init_remote_ops): Install to_fileio routines.
11036
901f9912
UW
110372012-01-20 Pedro Alves <palves@redhat.com>
11038 Ulrich Weigand <ulrich.weigand@linaro.org>
11039
11040 * remote.c (remote_multi_process_p): Only check for multi-process
11041 protocol feature, do not check for extended protocol.
11042 (remote_supports_multi_process): Check for extended protocol here.
11043 (set_general_process): Likewise.
11044 (extended_remote_kill): Likewise.
11045 (remote_pid_to_str): Likewise.
11046 (remote_query_supported): Always query multiprocess mode.
11047
e714e1bf
UW
110482012-01-20 Pedro Alves <palves@redhat.com>
11049 Ulrich Weigand <ulrich.weigand@linaro.org>
11050
11051 * inferior.h (struct inferior): Add fake_pid_p.
11052 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11053 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11054 magic_null_ptid since the remote side doesn't provide a real PID.
11055
50897289
TT
110562012-01-19 Tom Tromey <tromey@redhat.com>
11057
11058 * NEWS: Combine the two Python sections.
11059
1afc2033
JK
110602012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11061
11062 * target.h (target_close): Update comment on the target's unpush state.
11063
305436e0
PA
110642012-01-19 Pedro Alves <palves@redhat.com>
11065
11066 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11067 linux_nat_async directly instead of going through the target
11068 vector.
11069 * target.c (unpush_target): Close target after unpushing it, not
11070 before.
11071
49323895
GB
110722012-01-19 Gary Benson <gbenson@redhat.com>
11073
11074 * mdebugread.c (sort_blocks): Replace integer constants with ones
11075 derived from FIRST_LOCAL_BLOCK.
11076
1db33378
PP
110772012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11078 Jan Kratochvil <jan.kratochvil@redhat.com>
11079
11080 PR gdb/9538
11081 * symfile.c (find_separate_debug_file): New function.
11082 (terminate_after_last_dir_separator): Likewise.
11083 (find_separate_debug_file_by_debuglink): Also try realpath.
11084 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11085 * configure: Regenerate.
11086 * config.in: Regenerate.
11087
f83d8a90
DE
110882012-01-18 Doug Evans <dje@google.com>
11089
11090 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11091 (main.o): Remove rule.
11092 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11093 (--with-sysroot): Rewrite.
11094 * configure: Regenerate.
11095 * config.in: Regenerate.
11096
2dbca4d6
SDJ
110972012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11098
11099 * parse.c (initialize_expout): New function.
11100 (reallocate_expout): Likewise.
11101 (parse_exp_in_context): Use `initialize_expout' and
11102 `reallocate_expout' when appropriate.
11103
0695b514
PA
111042012-01-18 Pedro Alves <palves@redhat.com>
11105
11106 * record.c (struct record_breakpoint, record_breakpoint_p)
11107 (record_breakpoints): New.
11108 (record_insert_breakpoint, record_remove_breakpoint): Manage
11109 record breakpoints list. Only remove breakpoints from the
11110 inferior if they had been inserted there in the first place.
11111
136e1c30
DE
111122012-01-17 Doug Evans <dje@google.com>
11113
11114 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11115 if we know we don't have a file name to look for.
11116
c0bf857d
PA
111172012-01-17 Pedro Alves <palves@redhat.com>
11118
11119 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11120 the frame's stop reason is UNWIND_UNAVAILABLE.
11121
b486de60
JK
111222012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11123
11124 Fix compilation error.
11125 * m2-exp.y (yyerror): Use ANSI C prototype.
11126
d04550a6
SDJ
111272012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11128
11129 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11130 (growbuf_by_size): Likewise.
11131 (yyerror): Likewise.
11132 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11133 (modblock): Remove variable (was #if 0'ed).
11134 (parse_number): Convert prototype from K&R to ANSI C.
11135 (yyerror): Likewise.
11136 * objc-exp.y (parse_number): Likewise.
11137 (yyerror): Likewise.
11138 (yylex): Remove #if 0'ed code.
11139 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11140 (yyerror): Likewise.
11141
4aac40c8
TT
111422012-01-16 Tom Tromey <tromey@redhat.com>
11143
11144 * NEWS: Add item.
11145 * symtab.h (compare_filenames_for_search): Declare.
11146 * symtab.c (compare_filenames_for_search): New function.
11147 (iterate_over_some_symtabs): Use it.
11148 * symfile.h (struct quick_symbol_functions)
11149 <map_symtabs_matching_filename>: Change spec.
11150 * psymtab.c (partial_map_symtabs_matching_filename): Use
11151 compare_filenames_for_search. Update for new spec.
11152 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11153 compare_filenames_for_search. Update for new spec.
11154 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11155
cafec441
TT
111562012-01-16 Tom Tromey <tromey@redhat.com>
11157
11158 PR python/13281:
11159 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11160 (struct main_type) <flag_flag_enum>: New field.
11161 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11162 * NEWS: Add entries.
11163 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11164 enums.
11165 * python/lib/gdb/printing.py (_EnumInstance): New class.
11166 (FlagEnumerationPrinter): Likewise.
11167
983af33b
SDJ
111682012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11169
11170 * breakpoint.c (create_sals_from_address_default): New function.
11171 (create_breakpoints_sal_default): Likewise.
11172 (decode_linespec_default): Likewise.
11173 (is_marker_spec): Removed.
11174 (strace_marker_p): New function.
11175 (init_breakpoint_sal): Using `strace_marker_p' instead of
11176 `is_marker_spec'.
11177 (create_breakpoint): Call method `create_sals_from_address' from
11178 breakpoint_ops, replacing code that created SALs conditionally
11179 on the type of the breakpoint. Call method `create_breakpoints_sal',
11180 replacing code that created breakpoints conditionally on the type
11181 wanted.
11182 (base_breakpoint_create_sals_from_address): New function.
11183 (base_breakpoint_create_breakpoints_sal): Likewise.
11184 (base_breakpoint_decode_linespec): Likewise.
11185 (base_breakpoint_ops): Add methods
11186 `base_breakpoint_create_sals_from_address',
11187 `base_breakpoint_create_breakpoints_sal' and
11188 `base_breakpoint_decode_linespec'.
11189 (bkpt_create_sals_from_address): New function.
11190 (bkpt_create_breakpoints_sal): Likewise.
11191 (bkpt_decode_linespec): Likewise.
11192 (tracepoint_create_sals_from_address): Likewise.
11193 (tracepoint_create_breakpoints_sal): Likewise.
11194 (tracepoint_decode_linespec): Likewise.
11195 (strace_marker_create_sals_from_address): Likewise.
11196 (strace_marker_create_breakpoints_sal): Likewise.
11197 (strace_marker_decode_linespec): Likewise.
11198 (strace_marker_breakpoint_ops): New variable.
11199 (addr_string_to_sals): Remove `marker_spec'. Call method
11200 `decode_linespec' from breakpoint_ops, replacing code that decoded
11201 an address string into a SAL. Use `strace_marker_p' instead of
11202 `marker_spec'.
11203 (strace_command): Decide whether we are dealing with a static
11204 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11205 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11206 * breakpoint.h (linespec_result, linespec_sals): New forward
11207 declarations.
11208 (breakpoint_ops) <create_sals_from_address>,
11209 <create_breakpoints_sal>, <decode_linespec>: New methods.
11210
4795f398
DE
112112012-01-14 Doug Evans <dje@google.com>
11212
11213 * NEWS: Update text for "maint set python print-stack".
11214 It is deprecated in gdb 7.4 and deleted in 7.5.
11215
ee5106fe
EZ
112162012-01-13 Eli Zaretskii <eliz@gnu.org>
11217
11218 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11219 including curses.h.
11220
b161e06f
JK
112212012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11222
11223 * configure: Regenerate.
11224 * config.in: Regenerate.
11225
85254831
KS
112262012-01-12 Keith Seitz <keiths@redhat.com>
11227
11228 PR mi/10586
11229 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11230 (ANONYMOUS_UNION_NAME): Define.
11231 (is_path_expr_parent): New function.
11232 (get_path_expr_parent): New function.
11233 (is_anonymous_child): New function.
11234 (create_child_with_value): If the child is anonymous and without
11235 a name, assign an object name to it.
11236 (c_describe_child): Use get_path_expr_parent to determine
11237 the parent expression.
11238 If there field represents an anonymous struct or union and
11239 has no name, set an appropriate display name and expression.
11240 (cplus_describe_child): Likewise.
11241
620fa63a
PA
112422012-01-12 Pedro Alves <palves@redhat.com>
11243
11244 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11245 available when %ebp is found to be zero (outermost).
11246
2efa2c79
AT
112472012-01-11 Andreas Tobler <andreast@fgznet.ch>
11248
11249 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11250 an internal gdb_static_assert.
11251 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11252
88e7d25d
TT
112532012-01-11 Tom Tromey <tromey@redhat.com>
11254
11255 PR gdb/9598:
11256 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11257 catch" and "catch throw".
11258
72384ba3
PH
112592012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11260
11261 * blockframe.c (block_innermost_frame): Start search from selected
11262 frame, if present, or otherwise the current frame.
11263
11264 * c-exp.y (variable): Update innermost_block for
11265 'block COLONCOLON NAME' clause.
11266 * m2-exp.y (variable): Ditto.
11267 * objc-exp.y (variable): Ditto.
11268
065a711f
TT
112692012-01-10 Tom Tromey <tromey@redhat.com>
11270
11271 PR python/13199:
11272 * python/python.c (finish_python_initialization): Set sys.argv.
11273
f3f5162e
DE
112742012-01-10 Doug Evans <dje@google.com>
11275
11276 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11277 "want_line_info". All callers updated.
11278 (dwarf_decode_lines_1): New function.
11279 (handle_DW_AT_stmt_list): Add function comment.
11280 New arg "want_line_info". All callers updated.
11281 (read_file_scope,read_type_unit_scope): Move comment from
11282 handle_DW_AT_stmt_list to here.
11283
9934703b
JK
112842012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11285
11286 Fix regression after libiberty/ update for GCC PR 6057 and others.
11287 * c-exp.y (operator) <OPERATOR DELETE>
11288 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11289 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11290 (make_builtin_type, make_name): New variable i, add gdb_assert.
11291 (operator) <OPERATOR NEW>: Update ARGS to 3.
11292 (operator) <OPERATOR DELETE>: Add trailing space.
11293 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11294 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11295 * cp-support.c (cp_canonicalize_string): Check NULL from
11296 cp_comp_to_string, call warning and return.
11297
06b9f45f
JK
112982012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11299
11300 Fix duplicate .o files after omitting libbfd.a.
11301 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11302 (SFILES): Add corelow.c.
11303 (COMMON_OBS): Add corelow.o.
11304 (ALLDEPFILES): Remove corelow.c.
11305 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11306 * config/alpha/alpha-osf3.mh: Likewise.
11307 * config/alpha/fbsd.mh: Likewise.
11308 * config/arm/nbsdaout.mh: Likewise.
11309 * config/arm/nbsdelf.mh: Likewise.
11310 * config/i386/i386gnu.mh: Likewise.
11311 * config/ia64/hpux.mh: Likewise.
11312 * config/ia64/linux.mh: Likewise.
11313 * config/m32r/linux.mh: Likewise.
11314 * config/m68k/linux.mh: Likewise.
11315 * config/mips/irix5.mh: Likewise.
11316 * config/mips/irix6.mh: Likewise.
11317 * config/pa/hpux.mh: Likewise.
11318 * config/pa/linux.mh: Likewise.
11319 * config/powerpc/aix.mh: Likewise.
11320 * config/sparc/linux.mh: Likewise.
11321 * config/sparc/linux64.mh: Likewise.
11322 * config/sparc/sol2.mh: Likewise.
11323 * config/vax/vax.mh: Likewise.
11324 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11325 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11326 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11327 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11328 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11329 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11330 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11331 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11332 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11333 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11334 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11335 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11336 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11337 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11338 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11339 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11340 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11341 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11342 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11343 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11344 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11345 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11346 corelow.o from gdb_target_obs.
11347 * corefile.c (core_target): Update the comment on NULL value.
11348 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11349 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11350 MATCHES. Drop YUMMY set on NULL.
11351 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11352 reclaim CORE_DATA if it is already NULL.
11353
34365054
DE
113542012-01-09 Doug Evans <dje@google.com>
11355
11356 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11357 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11358
696166a3
KS
113592012-01-09 Keith Seitz <keiths@redhat.com>
11360
11361 * breakpoint.c (wrapper.h): Don't include.
11362
8e7b59a5
KS
113632012-01-09 Keith Seitz <keiths@redhat.com>
11364
11365 * Makefile.in (SFILES): Remove wrapper.c.
11366 (HFILES_NO_SRCDIR): Remove wrapper.h.
11367 (COMMON_OBS): Remove wrapper.o.
11368 * cli/cli-interp.c: Don't inlude wrapper.h.
11369 * corelow.c: Likewise.
11370 (core_open): Replace gdb_target_find_new_threads with
11371 TRY_CATCH around target_find_new_threads.
11372 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11373 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11374 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11375 evaluate_expression.
11376 (varobj_set_value): Likewise for evaluate_expression and
11377 value_assign.
11378 (install_new_variable): Likewise for value_fetch_lazy.
11379 (adjust_value_for_child_access): Likewise for value_ind.
11380 (c_describe_child): Likewise for value_subscript and
11381 value_ind.
11382 (c_value_of_root): Likewise for evaluate_expression.
11383 * wrapper.c: Remove.
11384 * wrapper.h: Remove.
11385
1a4eeb98
DE
113862012-01-09 Doug Evans <dje@google.com>
11387
9ff913ba
DE
11388 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11389 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11390 "abfd" args with "section". All callers updated.
11391 Error checking code moved ...
11392 (error_check_comp_unit_head): ... here. New function.
11393 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11394 Delete arg "abfd". New arg "type_offset". All callers updated.
11395 (create_debug_types_hash_table): Simplify by using
11396 read_and_check_type_unit_head.
11397
1a4eeb98
DE
11398 * parser-defs.h (namecopy): Delete.
11399 * parse.c (namecopy, namecopy_size): Move into copy_name.
11400
2e6af8c0
JK
114012012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11402
11403 Partially fix duplicate .o files after omitting libbfd.a.
11404 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11405 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11406 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11407 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11408 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11409 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11410 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11411
9f2f828a
PA
114122012-01-09 Pedro Alves <palves@redhat.com>
11413
11414 * MAINTAINERS: Update my email address.
11415
4d72c0bc
DE
114162012-01-08 Doug Evans <dje@google.com>
11417
d467dd73
DE
11418 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11419 n_type_units. Rename type_comp_units to all_type_units.
11420 All uses updated.
11421 (add_signatured_type_cu_to_table): Renamed from
11422 add_signatured_type_cu_to_list. All callers updated.
11423
4d72c0bc
DE
11424 * gdbtypes.h (struct cplus_struct_type): Delete member
11425 nfn_fields_total. All uses removed.
11426
21b2bd31
DE
114272012-01-06 Doug Evans <dje@google.com>
11428
11429 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11430 to top of file.
11431 (dwarf2_find_comp_unit): Delete.
11432 (process_psymtab_comp_unit): Make result "void".
11433 Delete args buffer, info_ptr, buffer_size, and replace with
11434 "section". All callers updated.
11435 (dwarf2_build_psymtabs_hard): Simplify.
11436
bfd189b1
SDJ
114372012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11438 Thiago Jung Bauermann <bauerman@br.ibm.com>
11439
11440 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11441 before `struct gdb_exception'.
11442 * breakpoint.c (update_global_location_list_nothrow)
11443 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11444 * cp-abi.c (value_rtti_type): Likewise.
11445 * cp-support.c (cp_validate_operator): Likewise.
11446 * infrun.c (insert_exception_resume_breakpoint)
11447 (check_exception_resume, keep_going): Likewise.
11448 * mi-interp.c (mi_breakpoint_created)
11449 (mi_breakpoint_modified): Likewise.
11450 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11451 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11452 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11453
6b07635f
DE
114542012-01-05 Doug Evans <dje@google.com>
11455
0b30b85c
DE
11456 * dwarf2read.c (statement_prologue): Delete, unused.
11457
98714339
DE
11458 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11459 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11460
6b07635f
DE
11461 * dwarf2read.c (comp_unit_header): Delete, unused.
11462
761f4555
UW
114632012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11464
11465 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11466 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11467
2ca0b532
PA
114682012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11469
11470 * infrun.c (normal_stop): Don't skip calling the normal_stop
11471 observers if the thread was doing a multi-step, but stopped for
11472 some reason other than stepping.
11473
50aeff07
PA
114742012-01-05 Pedro Alves <alves.ped@gmail.com>
11475
11476 * cli/cli-decode.h: Add comments.
11477 (CMD_LIST_AMBIGUOUS): Moved to command.h
11478 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11479 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11480 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11481 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11482 (add_com, add_com_alias, add_info, add_info_alias)
11483 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11484 declarations.
11485 * command.h: Add and adjust comments.
11486 (CMD_LIST_AMBIGUOUS): Moved here.
11487 (help_cmd, help_cmd_list): Delete declarations.
11488
5953832c
DE
114892012-01-04 Doug Evans <dje@google.com>
11490
e5fe5e75
DE
11491 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11492 All callers updated.
11493 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11494 Replace all arguments with "per_cu". All callers updated.
11495
28dee7f5
DE
11496 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11497
23745b47
DE
11498 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11499 New arg "per_cu". All callers updated.
11500
5953832c
DE
11501 Delete #if 0'd out code.
11502 * language.c (binop_result_type): Delete.
11503 (simple_type, ordered_type, same_type, integral_type): Delete.
11504 (numeric_type, character_type, string_type, boolean_type): Delete.
11505 (float_type, structured_type): Delete.
11506 * language.h: Update.
11507
0f5b7562
TT
115082012-01-04 Tom Tromey <tromey@redhat.com>
11509
11510 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11511
78218f56
JB
115122012-01-04 Joel Brobecker <brobecker@adacore.com>
11513
11514 * corefile.c (close_exec_file): Delete.
11515 (reopen_exec_file): Remove commented out code that seems related
11516 to close_exec_file, which is being deleted here.
11517 * inferior.h (close_exec_file): Delete.
11518 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11519
0fcd72ba
JB
115202012-01-04 Joel Brobecker <brobecker@adacore.com>
11521
11522 * ada-lang.c: #include "cli/cli-utils.h".
11523 (get_selections): Use skip_spaces.
11524 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11525 (catch_ada_exception_command_split): Use skip_spaces.
11526 (ada_decode_assert_location): Likewise.
11527
1dabb4c4
JB
115282012-01-04 Joel Brobecker <brobecker@adacore.com>
11529
11530 * linespec.c (decode_line_internal): Check for C++ or Java
11531 compound constructs only if the current language is C, C++
11532 or Java.
11533
5931a2fa
JK
115342012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11535
11536 Revert:
11537 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11538 Joel Brobecker <brobecker@adacore.com>
11539 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11540 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11541 3 times.
11542 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11543 fall through into AT_ENTRY_POINT.
11544 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11545 DUMMY_ADDR with it.
11546 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11547 PPC_INSN_SIZE skip to 3 times.
11548
1a2da5ee
JB
115492012-01-04 Joel Brobecker <brobecker@adacore.com>
11550
11551 * linespec.c (add_minsym): Preserve function descriptors.
11552
8645ff69
UW
115532012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11554
11555 * breakpoint.c (all_locations_are_pending): Consider locations
11556 in program spaces executing during startup pending as well.
11557
0b302171
JB
115582012-01-04 Joel Brobecker <brobecker@adacore.com>
11559
11560 Copyright year update in most files of the GDB Project.
11561
8ba098ad
JB
115622012-01-04 Joel Brobecker <brobecker@adacore.com>
11563
11564 * copyright.sh: Delete.
11565 * copyright.py: Rewrite.
11566
09c01c30
JB
115672012-01-04 Joel Brobecker <brobecker@adacore.com>
11568
11569 * gnulib/extra/update-copyright: New file, imported from gnulib.
11570
3c36c0af
JB
115712012-01-04 Joel Brobecker <brobecker@adacore.com>
11572
11573 * README (Copyright and License Notices): New section.
11574
888fe1e1
TT
115752012-01-03 Tom Tromey <tromey@redhat.com>
11576
11577 PR python/12533:
11578 * python/py-value.c (valpy_dereference, valpy_get_address
11579 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11580 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11581 (valpy_absolute, valpy_richcompare): Free intermediate values.
11582
6e681866
JB
115832011-01-03 Joel Brobecker <brobecker@adacore.com>
11584
11585 * ada-lang.c: Reformat the copyright notice.
11586
0cd09acb
JK
115872012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11588
11589 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11590 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11591 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11592 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11593 Revert this part of:
11594 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11595 Build gdb directly from *.o files not using libgdb.a.
11596 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11597
12c3e59c
JB
115982012-01-02 Joel Brobecker <brobecker@adacore.com>
11599
11600 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11601 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11602 Reformat the copyright header.
11603
11bf1490
JK
116042012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11605
11606 Revert this part of:
11607 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11608 Remove the gdbtui binary.
11609 * gdb.c (main): Remove args.interpreter_p initialization.
11610 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11611 * main.h (struct captured_main_args): Remove interpreter_p.
11612
1fef196f
JB
116132012-01-02 Joel Brobecker <brobecker@adacore.com>
11614
11615 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11616
67827812
JB
116172012-01-02 Joel Brobecker <brobecker@adacore.com>
11618
11619 * top.c (print_gdb_version): Update copyright year.
11620
a4d0b831
YQ
116212012-01-02 Yao Qi <yao@codesourcery.com>
11622
11623 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11624
b5914469
JK
116252012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11626 Joel Brobecker <brobecker@adacore.com>
11627
11628 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11629 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11630 3 times.
11631 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11632 fall through into AT_ENTRY_POINT.
11633 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11634 DUMMY_ADDR with it.
11635 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11636 PPC_INSN_SIZE skip to 3 times.
11637
8da828f7
JK
116382012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11639
11640 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11641 the return value.
11642 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11643
8574e74b
JK
116442012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11645
11646 Build gdb directly from *.o files not using libgdb.a.
11647 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11648 (COMMON_OBS): Remove solib-target.o.
11649 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11650 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11651 (LIBGDB_OBS, libgdb.a): Move it above.
11652 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11653 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11654 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11655 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11656 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11657 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11658 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11659 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11660 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11661 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11662 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11663 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11664 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11665 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11666 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11667 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11668 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11669 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11670 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11671 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11672 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11673 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11674 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11675 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11676 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11677 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11678 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11679
217bff3e
JK
116802012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11681
11682 Remove the gdbtui binary.
11683 * .gitignore (/gdbtui): Remove.
11684 * Makefile.in (TUI): Remove.
11685 (SUBDIR_TUI_OBS): Remove tui-main.o.
11686 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11687 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11688 (tui-main.o): Remove.
11689 (all_object_files): Remove tui-main.o.
11690 * NEWS: New note for the gdbtui removal.
11691 * configure: Rebuilt.
11692 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11693 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11694 CONFIG_UNINSTALL respectively.
11695 * gdb.c (main): Remove args.interpreter_p initialization.
11696 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11697 * main.h (struct captured_main_args): Remove interpreter_p.
11698 * tui/tui-main.c: Remove.
11699
9cdd5dbd
DE
117002012-01-01 Doug Evans <dje@google.com>
11701
bb5ed363
DE
11702 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11703 (dwarf2_physname, read_import_statement): Ditto.
11704 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11705 (process_structure_scope read_subroutine_type): Ditto.
11706 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11707 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11708 (dwarf2_fetch_die_location_block): Ditto.
11709 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11710
a0f42c21
DE
11711 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11712 All callers updated.
11713 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11714 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11715 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11716
2dc860c0
DE
11717 * dwarf2read.c (load_cu): Move assert to more useful location.
11718
68dc6402
DE
11719 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11720 All callers updated.
11721
9cdd5dbd
DE
11722 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11723 (dwarf2_elf_names): Minor reformat.
11724 (dwarf2_per_cu_data): Tweak comment.
11725 (dwarf2_read_section): Fix comment.
11726 (create_all_comp_units): Fix comment.
11727 (load_full_comp_unit): Fix comment.
11728 (process_full_comp_unit): Fix comment.
11729 (read_signatured_type): Fix comment.
11730
0c10e53e 11731For older changes see ChangeLog-2011.
c906108c
SS
11732\f
11733Local Variables:
11734mode: change-log
11735left-margin: 8
11736fill-column: 74
11737version-control: never
57da7796 11738coding: utf-8
c906108c 11739End:
This page took 2.1151 seconds and 4 git commands to generate.