Add forgotten ChangeLog for previous ARI fixes commit
[binutils-gdb.git] / gdb / ChangeLog
1 2012-11-20 Pierre Muller <muller@sourceware.org>
2
3 ARI fixes: sprintf rule.
4 Replace sprintf function calls for char arrays by
5 calls to xsnprintf calls.
6 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
7 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
8 (arm_neon_quad_read, arm_pseudo_read): Ditto.
9 (arm_neon_quad_write, arm_pseudo_write): Ditto.
10 * breakpoint.c (condition_completer): Ditto.
11 (create_tracepoint_from_upload): Ditto.
12 * dwarf2read.c (file_full_name): Ditto.
13 * gcore.c (gcore_command): Ditto.
14 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
15 * go32-nat.c (go32_sysinfo): Ditto.
16 * interps.c (interp_set): Ditto.
17 * m32c-tdep.c (make_types): Ditto.
18 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
19 * remote-m32r-sdi.c (m32r_open): Ditto.
20 * sol-thread.c (td_err_string): Ditto.
21 (td_state_string, solaris_pid_to_str): Ditto.
22 * symtab.c (gdb_mangle_name): Ditto.
23 * cli/cli-script.c (execute_control_command): Ditto.
24 (define_command, document_command): Ditto.
25 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
26 * tui/tui-stack.c (tui_make_status_line): Ditto.
27 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
28
29 2012-11-20 Mike Frysinger <vapier@gentoo.org>
30
31 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
32 it when looking at ptr->func.
33 * command.h (complete_on_cmdlist): Add a fourth arg.
34 * completer.c (complete_line_internal): Add local ignore_help_classes,
35 and set it to 1 when reason is not handle_help. Pass this down to
36 lookup_cmd_1 and complete_on_cmdlist.
37
38 2012-11-20 Tom Tromey <tromey@redhat.com>
39
40 * completer.c (count_struct_fields): Remove.
41 (expression_completer): Don't call count_struct_fields.
42
43 2012-11-20 Pedro Alves <palves@redhat.com>
44
45 * annotate.c (breakpoints_changed): Rename to ...
46 (annotate_breakpoints_changed): ... this.
47 (annotate_stopped, breakpoint_changed): Adjust caller.
48 * annotate.h (breakpoints_changed): Rename to ...
49 (annotate_breakpoints_changed): ... this.
50 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
51 (do_map_commands_command, init_raw_breakpoint, clear_command)
52 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
53
54 2012-11-20 David S. Miller <davem@davemloft.net>
55
56 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
57 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
58 sysconf.
59 (get_cores_used_by_process): Update comment.
60
61 2012-11-20 Yao Qi <yao@codesourcery.com>
62
63 * objfiles.c (init_entry_point_info): Remove trailing spaces.
64
65 2012-11-20 Yao Qi <yao@codesourcery.com>
66
67 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
68 to deprecated_context_hook.
69
70 2012-11-19 Yao Qi <yao@codesourcery.com>
71
72 * infrun.c (infwait_state): Add static.
73
74 2012-11-16 Keith Seitz <keiths@redhat.com>
75
76 PR c++/13615
77 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
78 parameter and pass it to lookup_symbol_file.
79 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
80 to search base classes.
81 (cp_lookup_symbol_namespace): Likewise.
82 (lookup_namespace_scope): Likewise.
83 (lookup_symbol_file): Add SEARCH parameter.
84 If SEARCH is non-zero and no symbol is found, lookup the class
85 and call cp_lookup_nested_symbol.
86 (find_symbol_in_baseclass): New function.
87 (cp_lookup_nested_symbol): Do not let
88 cp_lookup_symbol_in_namespace search through base classes.
89 Do that later when there is no global symbol match.
90
91 2012-11-16 Doug Evans <dje@google.com>
92
93 * main.c (gdb_datadir_provided): New static global.
94 (get_init_files): If --data-directory is provided,
95 and SYSTEM_GDBINIT lives in data-directory, look for it there.
96 * NEWS: Mention it.
97
98 2012-11-15 Pierre Muller <muller@sourceware.org>
99
100 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
101 * gdb_stat.h: Delete. Moved to common directory.
102 * common/gdb_stat.h: New file.
103 * gdb_wait.h: Delete. Moved to common directory.
104 * common/gdb_wait.h: New file.
105 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
106 location.
107 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
108 location.
109 (stat.h rule): Adapt to new gdb_stat.h location.
110 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
111 <sys/stat.h> header.
112 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
113 <sys/wait.h> header.
114
115 2012-11-15 Pierre Muller <muller@sourceware.org>
116
117 * configure.ac (AC_HEADER_STAT): Remove.
118 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
119 and corresponding code.
120 * configure: Regenerate.
121 * config.in: Regenerate.
122
123 2012-11-15 Pierre Muller <muller@sourceware.org>
124
125 ARI xasprintf rule fixes.
126 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
127 instead of xasprintf.
128 (open_and_init_dwp_file): Ditto.
129
130 2012-11-14 Luis Machado <lgustavo@codesourcery.com>
131
132 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
133 target types.
134
135 2012-11-14 Tom Tromey <tromey@redhat.com>
136
137 * configure, config.in: Rebuild.
138 * configure.ac: Don't check for ctype.h, time.h.
139 * expprint.c: Don't use HAVE_CTYPE_H.
140
141 2012-11-13 Tom Tromey <tromey@redhat.com>
142
143 * gdbarch.h, gdbarch.c: Rebuild.
144 * gdbarch.sh (set_target_gdbarch): Rename from
145 deprecated_target_gdbarch_select_hack.
146 * arch-utils.c (gdbarch_update_p): Update.
147 (set_gdbarch_from_file): Update.
148
149 2012-11-14 Pierre Muller <muller@sourceware.org>
150
151 * MAINTAINERS (Responsible Maintainers/misc): Add myself
152 as responsible of contrib/ari directory.
153
154 2012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
155 Yao Qi <yao@codesourcery.com>
156
157 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
158 bit of EXC_RETURN.
159 (arm_m_exception_cache, arm_m_exception_this_id)
160 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
161 (arm_m_exception_unwind): New.
162 (arm_gdbarch_init): Register arm_m_exception_unwind.
163
164 2012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
165
166 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
167 parameter COUNT, for pattern filling of memory regions.
168 * NEWS: Mention it.
169
170 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
171
172 * disasm.h (DISASSEMBLY_FILENAME): New macro.
173 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
174 to print_source_lines ().
175 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
176 flag.
177 * source.c (print_source_lines_base): Prefix source line with
178 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
179
180 2012-11-13 Markus Metzger <markus.t.metzger@intel.com>
181
182 * symtab.h (print_source_lines_flags): New enum.
183 * source.c (print_source_lines_base): Change noerror to flags.
184 (print_source_lines): Change noerror to flags.
185
186 2012-11-13 Pierre Muller <muller@sourceware.org>
187
188 ARI fixes: Avoid sprintf function use rule.
189 * charset.c (convert_between_encodings): Use xsnprintf.
190 * cli-out.c (cli_field_int): Likewise.
191 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
192 * expprint.c (op_name_standard): Likewise.
193 * frv-tdep.c (set_variant_num_gprs): Likewise.
194 (set_variant_num_fprs): Likewise.
195 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
196 * nto-tdep.c (nto_find_and_open_solib): Likewise.
197 (nto_init_solib_absolute_prefix): Likewise.
198 * source.c (init_source_path): Likewise.
199 (print_source_lines_base): Likewise.
200 * valprint.c (print_wchar): Likewise.
201 * mi/mi-out.c (mi_field_int): Likewise.
202 windows-nat.c (windows_pid_to_exec_file): Likewise.
203 (windows_create_inferior): Likewise.
204 (_initialize_check_for_gdb_ini): Likewise.
205
206 2012-11-12 Joel Brobecker <brobecker@adacore.com>
207
208 * frame.h (deprecated_frame_register_read): Renames
209 frame_register_read.
210 * frame.c (deprecated_frame_register_read): Renames
211 frame_register_read. Update all callers.
212 * i386-tdep.c: Update all callers of frame_register_read.
213 * infcmd.c: Likewise.
214 * jit.c: Likewise.
215 * mips-tdep.c: Likewise.
216 * mt-tdep.c: Likewise.
217 * sh64-tdep.c: Likewise.
218
219 2012-11-12 Joel Brobecker <brobecker@adacore.com>
220
221 * frame.h (frame_register_read): Remove FIXME comment.
222 * frame.c (frame_register_read): Add suggestion explaining
223 which function to use in place of this one.
224
225 2012-11-12 Tom Tromey <tromey@redhat.com>
226
227 * python/python.c (start_type_printers): Initialize 'result_obj'.
228
229 2012-11-12 Tom Tromey <tromey@redhat.com>
230
231 * NEWS: Update.
232 * data-directory/Makefile.in (PYTHON_FILES): Add
233 type_printers.py.
234 * python/lib/gdb/command/type_printers.py: New file.
235 * python/lib/gdb/command/types.py (TypePrinter): New class.
236 (_get_some_type_recognizers, get_type_recognizers,
237 apply_type_recognizers, register_type_printer): New
238 functions.
239 * python/py-objfile.c (objfile_object) <type_printers>: New
240 field.
241 (objfpy_dealloc): Decref new field.
242 (objfpy_new): Set new field.
243 (objfpy_get_type_printers, objfpy_set_type_printers): New
244 functions.
245 (objfile_to_objfile_object): Set new field.
246 (objfile_getset): Add "type_printers".
247 * python/py-progspace.c (pspace_object) <type_printers>: New
248 field.
249 (pspy_dealloc): Decref new field.
250 (pspy_new): Set new field.
251 (pspy_get_type_printers, pspy_set_type_printers): New functions.
252 (pspace_to_pspace_object): Set new field.
253 (pspace_getset): Add "type_printers".
254 * python/python.c (start_type_printers, apply_type_printers,
255 free_type_printers): New functions.
256 (_initialize_python): Set gdb.type_printers.
257 * python/python.h (start_type_printers, apply_type_printers,
258 free_type_printers): Declare.
259 * typeprint.c (type_print_raw_options, default_ptype_flags):
260 Update for new fields.
261 (do_free_global_table, create_global_typedef_table,
262 find_global_typedef): New functions.
263 (find_typedef_in_hash): Use find_global_typedef.
264 (whatis_exp): Use create_global_typedef_table. Change cleanup
265 handling.
266 * typeprint.h (struct type_print_options) <global_typedefs,
267 global_printers>: New fields.
268
269 2012-11-12 Tom Tromey <tromey@redhat.com>
270
271 * c-typeprint.c (find_typedef_for_canonicalize,
272 print_name_maybe_canonical): New functions.
273 (c_print_type): Look up type name.
274 (cp_type_print_derivation_info): Add flags argument. Use
275 print_name_maybe_canonical.
276 (cp_type_print_method_args): Add wrapping.
277 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
278 (c_type_print_template_args): New function.
279 (c_type_print_base): Change wrapping. Use
280 print_name_maybe_canonical.
281 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
282 type name lookups.
283 * gdbtypes.c (types_equal): No longer static.
284 * gdbtypes.h (types_equal): Declare.
285 * typeprint.c (type_print_raw_options, default_ptype_flags):
286 Update.
287 (struct typedef_hash_table): New.
288 (hash_typedef_field, eq_typedef_field,
289 recursively_update_typedef_hash, add_template_parameters,
290 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
291 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
292 copy_typedef_hash, find_typedef_in_hash): New functions.
293 * typeprint.h (struct type_print_options) <local_typedefs>:
294 New field.
295 (recursively_update_typedef_hash, add_template_parameters,
296 create_typedef_hash, free_typedef_hash,
297 make_cleanup_free_typedef_hash, copy_typedef_hash,
298 find_typedef_in_hash): Declare.
299
300 2012-11-12 Tom Tromey <tromey@redhat.com>
301
302 * cp-support.c (inspect_type,
303 replace_typedefs_qualified_name, replace_typedefs): Add
304 finder, data arguments. Call as needed.
305 (cp_canonicalize_string_full): New function.
306 (cp_canonicalize_string_no_typedefs): Rewrite.
307 * cp-support.h (canonicalization_ftype): New typedef.
308 (cp_canonicalize_string_full): Declare.
309
310 2012-11-12 Tom Tromey <tromey@redhat.com>
311
312 * NEWS: Update.
313 * c-typeprint.c (c_type_print_base): Handle print_method and
314 print_typedefs flags.
315 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
316 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
317 options.
318 * typeprint.c (type_print_raw_options, default_ptype_flags):
319 Update for new field.s
320 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
321 (setprinttypelist, showprinttypelist, print_methods,
322 print_typedefs): New globals.
323 (set_print_type, show_print_type, set_print_type_methods,
324 show_print_type_methods, set_print_type_typedefs,
325 show_print_type_typedefs): New functions.
326 (_initialize_typeprint): Update documentation. Add "print
327 type methods" and "print type typedefs" parameters.
328 * typeprint.h (struct type_print_options) <print_methods,
329 print_typedefs>: New fields.
330
331 2012-11-12 Tom Tromey <tromey@redhat.com>
332
333 * c-typeprint.c (cp_type_print_method_args): Add flags
334 argument. Call c_print_type, not type_print.
335 (c_type_print_base): Call c_print_type, not type_print.
336 Update.
337
338 2012-11-12 Tom Tromey <tromey@redhat.com>
339
340 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
341 to type-printing functions.
342 * ada-lang.h (ada_print_type): Add argument.
343 * ada-typeprint.c (print_array_type, print_variant_clauses,
344 print_variant_part, print_selected_record_field_types,
345 print_record_field_types, print_unchecked_union_type,
346 print_func_type, ada_print_type): Add flags argument.
347 (ada_print_typedef): Update.
348 * c-exp.y (OPERATOR conversion_type_id): Update.
349 * c-lang.h (c_print_type, c_type_print_base): Update.
350 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
351 c_type_print_modifier, c_type_print_args,
352 c_type_print_varspec_suffix, c_type_print_base): Add flags
353 argument.
354 * cp-valprint.c (cp_print_class_member): Update.
355 * dwarf2read.c (dwarf2_compute_name): Update.
356 * f-lang.h (f_print_type): Add argument.
357 * f-typeprint.c (f_print_type): Add flags argument.
358 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
359 * go-lang.h (go_print_type): Add argument.
360 * go-typeprint.c (go_print_type): Add flags argument.
361 * jv-lang.h (java_print_type): Add argument.
362 * jv-typeprint.c (java_type_print_base, java_print_type): Add
363 flags argument.
364 * language.c (unk_lang_print_type): Add flags argument.
365 * language.h (struct language_defn) <la_print_type>: Add flags
366 argument.
367 (LA_PRINT_TYPE): Likewise.
368 * m2-lang.h (m2_print_type): Add argument.
369 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
370 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
371 m2_unbounded_array, m2_record_fields): Add flags argument.
372 * p-lang.h (pascal_print_type, pascal_type_print_base,
373 pascal_type_print_varspec_prefix): Add argument.
374 * p-typeprint.c (pascal_print_type,
375 pascal_type_print_varspec_prefix, pascal_print_func_args,
376 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
377 flags argument.
378 * symmisc.c (print_symbol): Update.
379 * typeprint.c (type_print_raw_options, default_ptype_flags):
380 New globals.
381 (type_print): Update.
382 * typeprint.h (struct type_print_options): New.
383 (type_print_raw_options): Declare.
384 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
385
386 2012-11-10 Keith Seitz <keiths@redhat.com>
387
388 * breakpoint.c (clear_command): Add cleanup for
389 sals.sals if an argument is given.
390
391 * linespec.c (parse_linespec): Do cleanups after
392 parsing a convenience variable.
393
394 2012-11-10 Keith Seitz <keiths@redhat.com>
395
396 PR gdb/14288
397 * c-valprint.c (c_val_print): For character arrays
398 with "print null" option on, print ellipses if
399 the output is truncated and the next character is not \000.
400 * valprint.c (MAX_WCHARS): Define.
401 (WCHAR_BUFLEN): Likewise.
402 (WCHAR_BUFLEN_MAX): Likewise.
403 (struct converted_character): New structure.
404 (count_next_character): New function.
405 (print_converted_chars_to_obstack): New function.
406 (generic_printstr): Rewrite using count_next_character
407 and print_converted_chars_to_obstack.
408
409 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
410
411 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
412 while executing the gdb command.
413 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
414 are called from prompt_for_continue.
415 * tui/tui-io.c (tui_redisplay_readline): Likewise.
416
417 2012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
418
419 PR tui/9584
420
421 * tui/tui.c (tui_rl_command_key): Do not call execute_command
422 but insert the command to execute in readline's buffer.
423
424 2012-11-09 Tom Tromey <tromey@redhat.com>
425
426 * gdbarch.sh (target_gdbarch): Remove macro.
427 (get_target_gdbarch): Rename to target_gdbarch.
428 * gdbarch.c, gdbarch.h: Rebuild.
429 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
430 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
431 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
432 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
433 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
434 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
435 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
436 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
437 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
438 procfs.c, progspace.c, ravenscar-thread.c, record.c,
439 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
440 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
441 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
442 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
443 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
444 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
445 target-descriptions.c, target.c, target.h, tracepoint.c,
446 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
447 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
448 python/py-inferior.c, python/python.c: Update.
449
450 2012-11-09 Andrew Burgess <aburgess@broadcom.com>
451
452 * source.c (print_source_lines_base): Add fullname field giving
453 full path to file in mi output.
454 * NEWS: Mention the new fullname field.
455
456 2012-11-09 Yao Qi <yao@codesourcery.com>
457
458 * NEWS: Mention the fix to the ambiguity of 'fo' command.
459
460 2012-11-09 Pedro Alves <palves@redhat.com>
461
462 PR gdb/14306
463
464 * infrun.c: Include target-descriptions.h.
465 (follow_exec): Fetch new target description.
466
467 2012-11-09 Yao Qi <yao@codesourcery.com>
468
469 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
470 0x8d (lea).
471
472 2012-11-09 Yao Qi <yao@codesourcery.com>
473
474 * breakpoint.c: Declare set_tracepoint_count.
475 (install_breakpoint): Call set_tracepoint_count if B is a
476 tracepoint.
477 (trace_command): Don't call set_tracepoint_count. Re-indent.
478 (strace_command, ftrace_command):
479 (create_tracepoint_from_upload): Likewise.
480
481 2012-11-09 Pedro Alves <palves@redhat.com>
482
483 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
484 (get_target_gdbarch) <gdbarch.h>: New function.
485 (startup_gdbarch) <gdbarch.h>: Declare.
486 <gdbarch.c> (target_gdbarch): Delete.
487 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
488 current inferior's gdbarch.
489 <gdbarch.c> (get_target_gdbarch): New function.
490 * inferior.c: Include target-descriptions.h.
491 (free_inferior): Free target description info.
492 (add_inferior_with_spaces): Set the inferior's initial
493 architecture.
494 (clone_inferior_command): Copy the original inferior's target
495 description if it was user specified.
496 (initialize_inferiors): Add comment.
497 * inferior.h (struct target_desc_info): Forward declare.
498 (struct inferior) <gdbarch>: New field.
499 * linux-nat.c: Include target-descriptions.h.
500 (linux_child_follow_fork): Copy the parent's architecture and
501 target description to the child.
502 * target-descriptions.c: Include inferior.h.
503 (struct target_desc_info): New structure, holding the equivalents
504 of ...
505 (target_desc_fetched, current_target_desc)
506 (target_description_filename): ... these removed globals.
507 (get_tdesc_info, target_desc_info_from_user_p)
508 (copy_inferior_target_desc_info, target_desc_info_free): New.
509 (target_desc_fetched, current_target_desc)
510 (target_description_filename): Reimplemented as convenience
511 macros.
512 (tdesc_filename_cmd_string): New global.
513 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
514 tdescs filename ..." commands to the per-inferior equivalent.
515 (show_tdesc_filename_cmd): Get the value to show from the
516 per-inferior description filename.
517 (_initilize_target_descriptions): Change the "set/show tdesc
518 filename" commands' variable.
519 * target-descriptions.h (struct target_desc, struct target_desc_info)
520 (struct inferior): Forward declare.
521 (target_find_description, target_clear_description)
522 (target_current_description): Adjust comments.
523 (copy_inferior_target_desc_info, target_desc_info_free)
524 (target_desc_info_from_user_p). Declare.
525
526 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
527
528 * tui/tui-hooks.c (tui_about_to_proceed): New function.
529 (tui_target_wait_hook): Remove.
530 (tui_install_hooks): Install the about_to_proceed observer.
531 (tui_remove_hooks): And remove it here.
532
533 2012-11-08 Tom Tromey <tromey@redhat.com>
534
535 * linux-tdep.c (linux_make_siginfo_note): New function.
536 (linux_make_corefile_notes): Use it.
537 * corelow.c (get_core_siginfo): New function.
538 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
539
540 2012-11-08 Tom Tromey <tromey@redhat.com>
541
542 PR gdb/14704:
543 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
544 (zlib_decompress_section): Remove.
545 (gdb_bfd_map_section): Only check for compressed section
546 in mmap case. Use bfd_get_full_section_contents.
547 * osabi.c (check_note): Add 'sectsize' argument. Read
548 section data.
549 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
550 section data. Update for check_note change.
551 * xcoffread.c (xcoff_initial_scan): Use
552 bfd_get_full_section_contents.
553 * py-auto-load.c (auto_load_section_scripts): Use
554 bfd_get_full_section_contents.
555 * contrib/cc-with-tweaks.sh: Add -Z option.
556
557 2012-11-08 Tom Tromey <tromey@redhat.com>
558
559 * python/py-bpevent.c: Include defs.h.
560 * python/py-continueevent.c: Include defs.h.
561 * python/py-event.c: Include defs.h.
562 * python/py-event.h: Don't include defs.h.
563 * python/py-events.h: Don't include defs.h.
564 * python/py-evts.c: Include defs.h.
565 * python/py-exitedevent.c: Include defs.h.
566 * python/py-newobjfileevent.c: Include defs.h.
567 * python/py-signalevent.c: Include defs.h.
568 * python/py-stopevent.c: Include defs.h.
569 * python/py-threadevent.c: Include defs.h.
570
571 2012-11-08 Pierre Muller <muller@sourceware.org>
572
573 * update-web-ari.sh (print_heading): Add number of files
574 checked.
575 (nb_files): New variable counting the number of sources
576 files found by gdb_find.sh script.
577 (debug_awk): New variable to allow extra debug output.
578 (indexes): Add more information if DEBUG_AWK is set.
579
580 2012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
581
582 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
583 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
584 following the change in PLT call stubs on linker.
585
586 2012-11-08 Pierre Muller <muller@sourceware.org>
587
588 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
589 as default language.
590 (AWK): Use = instead of == for sh test to avoid warning.
591 (Linux rule): Correct [:digit] into [[:digit:]].
592 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
593 (vasprintf rule): Adapt to common subdirectory moves.
594 (xasprintf rule): Idem.
595 (xvasprintf rule): Idem.
596 (var_boolean rule): Accept occurence in == or != test.
597
598 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
599
600 2012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
601
602 * tui/tui-hooks.c (tui_inferior_exit): New function.
603 (tui_detach_hook): Remove.
604 (tui_install_hooks): Install the inferior exit observer.
605 (tui_remove_hooks): Remove it.
606
607 2012-11-08 Yao Qi <yao@codesourcery.com>
608
609 PR gdb/14777.
610 * source.c (_initialize_source): Call add_com_alias to abbreviate
611 'forward-search' as 'fo'.
612
613 2012-11-07 Pedro Alves <palves@redhat.com>
614
615 * arm-tdep.c: Make defs.h be the first include.
616 * coff-pe-read.c: Ditto.
617 * gnu-nat.c: Ditto.
618 * go32-nat.c: Ditto.
619 * i386-nat.c: Ditto.
620 * ppcnbsd-nat.c: Ditto.
621 * ada-varobj.h: Don't include defs.h.
622 * i386-darwin-tdep.h: Ditto.
623 * i386-nat.h: Ditto.
624
625 2012-11-07 Pedro Alves <palves@redhat.com>
626
627 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
628 Committee.
629
630 2012-11-07 Pierre Muller <muller@sourceware.org>
631
632 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
633 File already uses "gdb_dirent.h" header.
634
635 2012-11-07 Yao Qi <yao@codesourcery.com>
636
637 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
638 tracepoint_count'.
639
640 2012-11-06 Tom Tromey <tromey@redhat.com>
641
642 * target.h (inferior_has_forked, inferior_has_vforked)
643 (inferior_has_execd, inferior_has_called_syscall): Remove
644 declarations.
645
646 2012-11-06 Pierre Muller <muller@sourceware.org>
647
648 * remote.c (remote_insert_hw_breakpoint): ARI fix,
649 add missing internalization markup.
650
651 2012-11-06 Pedro Alves <palves@redhat.com>
652
653 PR gdb/14810
654
655 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
656
657 2012-11-06 Pierre Muller <muller@sourceware.org>
658
659 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
660 is not executable.
661
662 2012-11-05 Joel Brobecker <brobecker@adacore.com>
663
664 * gnulib/update-gnulib.sh: New script.
665
666 2012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
667
668 * MAINTAINERS: Update my email address.
669
670 2012-11-05 Tom Tromey <tromey@redhat.com>
671
672 * frame.c (put_frame_register): Don't use temporary buffer.
673
674 2012-11-05 Pedro Alves <palves@redhat.com>
675
676 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
677 child. Clear 'pending_detach'.
678 * infrun.c (handle_vfork_child_exec_or_exit): Clear
679 'pending_detach' in the vfork parent.
680
681 2012-11-05 Doug Evans <dje@google.com>
682
683 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
684 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
685 * dwarf2read.c: #include "elf-bfd.h".
686 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
687 (dwop_section_names): Renamed from dwo_section names. All uses
688 updated. Add entries for .debug_cu_index, .debug_tu_index.
689 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
690 All uses updated.
691 (struct dwp_sections): New type.
692 (struct virtual_dwo_sections): New type.
693 (struct dwp_hash_table): New type.
694 (struct dwp_file): New type.
695 (init_cutu_and_read_dies): Ensure DWO info/types section has been
696 read in. Handle DWOs coming from DWP files.
697 (lookup_dwo_file_slot): New function.
698 (dwarf2_locate_dwo_sections): Move definition closer to use.
699 (create_dwo_debug_info_hash_table_reader): Renamed from
700 create_debug_info_hash_table_reader. All callers updated.
701 (create_dwo_debug_info_hash_table): Renamed from
702 create_debug_info_hash_table. All callers updated.
703 (create_dwp_hash_table): New function.
704 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
705 (lookup_dwo_in_dwp): New function.
706 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
707 is_dwp. All callers updated.
708 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
709 (open_and_init_dwo_file): Renamed from init_dwo_file.
710 All callers updated.
711 (lookup_dwo_file): Delete.
712 (dwarf2_locate_dwp_sections): New function.
713 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
714 (allocate_dwp_loaded_cutus_table): New function.
715 (open_and_init_dwp_file): New function.
716 (lookup_dwo_cutu): New function.
717 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
718
719 2012-11-03 Yao Qi <yao@codesourcery.com>
720
721 Fix PR gdb/14617.
722 * breakpoint.c (trace_pass_set_count): Call
723 observer_notify_breakpoint_modified instead of
724 observer_notify_tracepoint_modified.
725 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
726
727 2012-11-02 Tom Tromey <tromey@redhat.com>
728
729 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
730 argument to complete_on_enum.
731
732 2012-11-02 Tom Tromey <tromey@redhat.com>
733
734 * configure: Rebuild.
735 * configure.ac (build_warnings): Add -Wempty-body.
736 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
737 * remote.c (handle_notification): Use braces for empty 'else' body.
738 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
739 'else' body.
740 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
741 'else' body.
742 * solib-som.c (som_relocate_section_addresses): Use braces
743 for empty 'else' body.
744 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
745 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
746
747 2012-11-02 Pedro Alves <palves@redhat.com>
748
749 PR gdb/14766
750
751 * infrun.c (handle_inferior_event)
752 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
753 null_ptid before handling a vfork child exec or exit. Switch to
754 the event ptid afterwards.
755
756 2012-11-02 Yao Qi <yao@codesourcery.com>
757
758 * std-operator.def: Remove OP_LABELED.
759 * eval.c: Remove the declaration of 'get_label'.
760 (get_label): Remove.
761 (evaluate_struct_tuple): Remove code handling OP_LABELED.
762 Update comment.
763 Remove local variable 'variantno' and related code.
764 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
765 with 'fieldno'.
766 * expprint.c (print_subexp_standard): Likewise.
767 (dump_subexp_body_standard): Likewise.
768 * parse.c (operator_length_standard): Likewise.
769
770 2012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
771
772 Incorporate ARI web page generator into GDB sources.
773 * contrib/ari/create-web-ari-in-src.sh: New file.
774 * contrib/ari/gdb_ari.sh: New file.
775 * contrib/ari/gdb_find.sh: New file.
776 * contrib/ari/update-web-ari.sh: New file.
777
778 2012-10-31 Tom Tromey <tromey@redhat.com>
779
780 * gdbarch.c: Rebuild.
781 * gdbarch.sh: Remove references to gdbarch_swap.
782 * corelow.c (core_open): Remove obsolete comment.
783
784 2012-10-31 Andrew Burgess <aburgess@broadcom.com>
785
786 PR cli/14772
787 * c-typeprint.c (c_print_type): Don't print a space for vector
788 types, this is handled within the suffix.
789 (c_type_print_varspec_suffix): Add a space to vector suffix.
790
791 2012-10-26 Pedro Alves <palves@redhat.com>
792
793 * amd64-tdep.c (amd64_relocate_instruction): Use
794 store_unsigned_integer instead of memcpy.
795 * i386-tdep.c (i386_relocate_instruction): Ditto.
796
797 2012-10-26 Pedro Alves <palves@redhat.com>
798
799 * infrun.c (handle_inferior_event): Merge handling of
800 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
801 switch case.
802
803 2012-10-26 Pedro Alves <palves@redhat.com>
804
805 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
806 Remove comment.
807
808 2012-10-26 Pedro Alves <palves@redhat.com>
809
810 * target.c (target_waitstatus_to_string): Handle
811 TARGET_WAITKIND_VFORK_DONE.
812
813 2012-10-26 Pedro Alves <palves@redhat.com>
814
815 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
816 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
817
818 2012-10-24 Tristan Gingold <gingold@adacore.com>
819
820 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
821 Add comments.
822
823 2012-10-24 Joel Brobecker <brobecker@adacore.com>
824
825 * ravenscar-thread.c (ravenscar_wait): Only update the list
826 of threads and inferior_ptid if the inferior is still alive.
827
828 2012-10-24 Joel Brobecker <brobecker@adacore.com>
829
830 * ada-lang.c (is_known_support_routine): Use lbasename when
831 matching the symtab's filename against
832 known_runtime_file_name_patterns.
833
834 2012-10-24 Joel Brobecker <brobecker@adacore.com>
835
836 * ada-lang.c (ada_same_array_size_p): New function.
837 (ada_promote_array_of_integrals): New function.
838 (coerce_for_assign): Add handling of arrays where the elements
839 are integrals of a smaller size than the size of the target
840 array element type.
841
842 2012-10-24 Joel Brobecker <brobecker@adacore.com>
843
844 * doublest.c (convert_doublest_to_floatformat): Fix comparison
845 against maximum exponent value.
846
847 2012-10-24 Joel Brobecker <brobecker@adacore.com>
848
849 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
850 "unwind-seh.c".
851
852 2012-10-24 Joel Brobecker <brobecker@adacore.com>
853
854 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
855 strip typedef layer when computing the fixed type's field type,
856 only when computing its size.
857
858 2012-10-24 Mark Kettenis <kettenis@gnu.org>
859
860 PR gdb/12783
861 * i386-tdep.c (i386_return_value): Handle complex double and long
862 double.
863
864 2012-10-24 Joel Brobecker <brobecker@adacore.com>
865
866 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
867 New local variable args_len.
868 Quote the name of the executable when computing the command line.
869
870 2012-10-23 Mark Kettenis <kettenis@gnu.org>
871
872 PR gdb/12796
873 PR gdb/12798
874 PR gdb/12800
875 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
876 AMD64_FTAG_REGNUM.
877 * amd64-tdep.c (amd64_classify): Classify complex types.
878 (amd64_return_value): Handle the COMPLEX_X87 class.
879
880 2012-10-23 Joel Brobecker <brobecker@adacore.com>
881
882 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
883 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
884
885 2012-10-23 Joel Brobecker <brobecker@adacore.com>
886
887 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
888 function.
889 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
890 to amd64_windows_auto_wide_charset.
891
892 2012-10-23 Yao Qi <yao@codesourcery.com>
893
894 * event-top.c (mark_async_signal_handler_wrapper): Remove.
895 * event-top.h: Remove its declaration.
896 (async_request_quit): Call mark_async_signal_handler instead of
897 mark_async_signal_handler_wrapper.
898 (async_do_nothing, async_disconnect): Likewise.
899 (async_stop_sig): Likewise.
900 * remote.c (handle_remote_sigint): Likewise.
901 (handle_remote_sigint_twice): Likewise.
902
903 2012-10-23 Yao Qi <yao@codesourcery.com>
904
905 * event-top.c (sigint_token, sighup_token): Replace 'void *'
906 with 'static struct async_signal_handler *'.
907 (sighup_token, sigquit_token, sigstp_token): Likewise.
908
909 2012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
910
911 * gdbarch.sh (function_list): Use 'pstring' when printing
912 a variable which could return NULL.
913 * gdbarch.c: Regenerate.
914
915 2012-10-10 Joel Brobecker <brobecker@adacore.com>
916 Tom Tromey <tromey@redhat.com>
917
918 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
919 inneffective if condition by gdb assertion. Add function
920 description comment.
921
922 2012-10-19 Joel Brobecker <brobecker@adacore.com>
923
924 * parser-defs.h (struct exp_descriptor): Document constraint
925 on return value for "op_name" callbacks.
926
927 2012-10-18 Tom Tromey <tromey@redhat.com>
928
929 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
930 * symtab.c (iterate_over_some_symtabs): Constify.
931 * source.h (symtab_to_fullname): Return 'const char *'.
932 * source.c (symtab_to_fullname): Return 'const char *'.
933 * python/py-symtab.c (stpy_fullname): Constify.
934 * cli/cli-cmds.c (edit_command): Constify.
935 * breakpoint.c (print_breakpoint_location)
936 (update_static_tracepoint): Constify.
937
938 2012-10-18 Tom Tromey <tromey@redhat.com>
939
940 * breakpoint.c (compare_breakpoints): Fix comparison.
941
942 2012-10-18 Tom Tromey <tromey@redhat.com>
943
944 * valprint.c (generic_emit_char, generic_printstr): Pass size of
945 gdb_wchar_t to convert_between_encodings.
946
947 2012-10-17 Yao Qi <yao@codesourcery.com>
948
949 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
950 more parameter 'inferior'.
951 * corefile.c (write_memory_with_notification): Caller update.
952
953 * mi/mi-cmd-var.c: Include "mi-main.h".
954 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
955 to 1 and restore it later.
956 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
957 and "data-write-memory-bytes.
958 * mi/mi-interp.c: Include objfiles.h.
959 (mi_interpreter_init): Call observer_attach_memory_changed.
960 (mi_memory_changed): New.
961 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
962 New field.
963
964 * NEWS: Mention new MI notification "memory-changed".
965
966 2012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
967
968 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
969
970 2012-10-15 Doug Evans <dje@google.com>
971
972 New option -nh: inhibit loading of ~/.gdbinit.
973 * NEWS: Mention -nh.
974 * main.c (captured_main): Recognize and process -nh.
975 (print_gdb_help): Mention -nh.
976 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
977
978 2012-10-15 H.J. Lu <hongjiu.lu@intel.com>
979
980 PR backtrace/14646
981 PR gdb/14647
982 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
983 pc_regnum_from_eax.
984 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
985 nor pc_regnum_from_eax.
986 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
987 nor pc_regnum_from_eax.
988
989 2012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
990
991 Fix entry values resolving in inlined frames.
992 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
993 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
994 entries of FRAME.
995
996 2012-10-15 Joel Brobecker <brobecker@adacore.com>
997
998 * configure.ac: Build with -DMS_WIN64 if building with Python
999 enabled using GCC on amd64-windows.
1000 * configure: Regenerate.
1001
1002 2012-10-15 Tom Tromey <tromey@redhat.com>
1003
1004 PR python/14635:
1005 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1006 to Py_None.
1007
1008 2012-10-15 Tom Tromey <tromey@redhat.com>
1009
1010 PR python/14634:
1011 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1012
1013 2012-10-11 Andrew Burgess <aburgess@broadcom.com>
1014
1015 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1016 reset thread numbering back to 1.
1017
1018 2012-10-11 Doug Evans <dje@google.com>
1019
1020 PR breakpoints/14643.
1021 * linespec.c (struct ls_parser): New member keyword_ok.
1022 (linespec_lexer_lex_string): Add comment.
1023 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1024 for one.
1025 (parse_linespec): Set keyword_ok.
1026
1027 2012-10-10 Doug Evans <dje@google.com>
1028
1029 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1030 "0x" prefix on address in log message.
1031
1032 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1033 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1034 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1035 (lookup_dwo_file): Add const to dwo_name parameter.
1036 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1037
1038 2012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1039
1040 Fix crash during stepping on ppc32.
1041 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1042 SYM.
1043
1044 2012-10-03 Doug Evans <dje@google.com>
1045
1046 PR symtab/14601
1047 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1048
1049 2012-10-02 Andrew Burgess <aburgess@broadcom.com>
1050
1051 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1052 output and use uint32_t not long to ensure 4 byte size.
1053
1054 2012-10-02 Joel Brobecker <brobecker@adacore.com>
1055
1056 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1057 unref'ed it.
1058
1059 2012-10-01 Andrew Burgess <aburgess@broadcom.com>
1060
1061 * target.c (simple_search_memory): Include access length in
1062 warning message.
1063
1064 2012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1065 Edjunior Machado <emachado@linux.vnet.ibm.com>
1066
1067 PR gdb/13989
1068 * solib.c (solib_find): Prevent GDB from loading native libraries when
1069 debugging a cross-target corefile.
1070
1071 2012-09-28 selven <pcthegreat@gmail.com>
1072
1073 Make definition match declaration.
1074
1075 * regcache.c (regcache_register_status): Change return type to
1076 enum register_status.
1077
1078 2012-09-28 Yao Qi <yao@codesourcery.com>
1079
1080 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1081 write_memory_with_notification instead of write_memory.
1082 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1083 instead of target_write_memory.
1084
1085 2012-09-28 Yao Qi <yao@codesourcery.com>
1086
1087 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1088 when the length of content is not an even number.
1089
1090 2012-09-27 Tom Tromey <tromey@redhat.com>
1091
1092 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1093 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1094
1095 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1096
1097 * sol-thread.c (sol_thread_fetch_registers)
1098 (sol_thread_store_registers): Delete commented out code.
1099
1100 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1101
1102 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1103 Move these functions to sparc-sol-thread.c.
1104 * sparc-sol-thread.c: New file.
1105 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1106 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1107 configurations.
1108 * configure: Regenerate.
1109
1110 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1111
1112 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1113 Remove commented-out code.
1114
1115 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1116
1117 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1118 Enable this code for sparc hosts only.
1119
1120 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1121
1122 * procfs.h (procfs_find_LDT_entry): Add declaration.
1123 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1124 function procfs_find_LDT_entry.
1125
1126 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1127
1128 * procfs.c (proc_get_LDT_entry): Make static.
1129
1130 2012-09-27 Joel Brobecker <brobecker@adacore.com>
1131
1132 * procfs.c (proc_find_memory_regions): Fix declaration.
1133
1134 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1135
1136 * amd64-tdep.c (amd64_return_value): Revert previous change
1137 that used TYPE_LENGTH directly.
1138 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1139 (bfin_store_return_value): Likewise.
1140 * cris-tdep.c (cris_store_return_value): Likewise.
1141 (cris_extract_return_value): Likewise.
1142 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1143 * hppa-tdep.c (hppa64_return_value): Likewise.
1144 * lm32-tdep.c (lm32_store_return_value): Likewise.
1145 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1146 * spu-tdep.c (spu_value_from_register): Likewise.
1147 * vax-tdep.c (vax_return_value): Likewise.
1148
1149 2012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1150
1151 * gdbtypes.c (lookup_array_range_type): Expand parameters
1152 LOW_BOUND and HIGH_BOUND to LONGEST.
1153 (lookup_string_range_type): Likewise.
1154 * gdbtypes.h (lookup_array_range_type): Likewise.
1155 (lookup_string_range_type): Likewise.
1156 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1157 Expand HIGHBOUND to ssize_t.
1158 (value_string): Likewise.
1159 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1160 (value_string): Likewise.
1161
1162 2012-09-27 Yao Qi <yao@codesourcery.com>
1163
1164 PR breakpoints/13898
1165 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1166 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1167 per breakpoint type.
1168
1169 2012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1170
1171 * procfs.c: Add gdb_bfd header.
1172 * rs6000-nat.c: Likewise.
1173 * solib-pa64.c: Likewise.
1174 * spu-linux-nat.c: Likewise.
1175 * windows-nat.c: Likewise.
1176
1177 2012-09-26 Tom Tromey <tromey@redhat.com>
1178
1179 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1180
1181 2012-09-26 Tom Tromey <tromey@redhat.com>
1182
1183 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1184 (read_common_block): Handle child DIEs with
1185 DW_AT_data_member_location.
1186 (new_symbol_full): Add special case for common blocks.
1187
1188 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1189 Tom Tromey <tromey@redhat.com>
1190
1191 * dwarf2read.c (read_common_block): Rewrite.
1192 (new_symbol_full): Handle DW_TAG_common_block.
1193 * f-lang.c (head_common_list, find_common_for_function):
1194 Remove.
1195 * f-lang.h (struct common_entry, struct saved_f77_common,
1196 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1197 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1198 BLANK_COMMON_NAME_LOCAL): Remove.
1199 (struct common_block): New.
1200 * f-valprint.c (list_all_visible_commons): Remove.
1201 (info_common_command_for_block): New function.
1202 (info_common_command): Use it.
1203 * stack.c (iterate_over_block_locals): Special case for
1204 COMMON_BLOCK_DOMAIN.
1205 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1206 constant.
1207 (struct general_symbol_info) <value.common_block>: New field.
1208 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1209
1210 2012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1211 Tom Tromey <tromey@redhat.com>
1212
1213 * f-lang.c (allocate_saved_bf_node,
1214 allocate_saved_function_node, allocate_saved_f77_common_node,
1215 allocate_common_entry_node, tail_common_list, current_common,
1216 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1217 tmp_bf_ptr, add_common_block, add_common_entry,
1218 find_first_common_named, patch_common_entries,
1219 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1220 global_remote_debug, get_bf_for_fcn, saved_function_list,
1221 saved_function_list_end, clear_function_list, struct saved_fcn,
1222 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1223 SAVED_BF, SAVED_BF_PTR): Remove.
1224 * f-lang.h (tail_common_list, current_common,
1225 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1226 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1227 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1228 real_main_c_value): Remove.
1229 * f-valprint.c (there_is_a_visible_common_named): Remove.
1230
1231 2012-09-26 Andrew Burgess <aburgess@broadcom.com>
1232
1233 * breakpoint.c (update_global_location_list): Ignore previous
1234 duplicate status of a breakpoint when starting a new scan for
1235 duplicate breakpoints.
1236
1237 2012-09-26 Karthik Bhat <kv.bhat@samsung.com>
1238 PR breakpoints/14419
1239 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1240 support LLVM compiler.
1241
1242 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1243
1244 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1245 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1246 (bfin_store_return_value): Likewise.
1247 * cris-tdep.c (cris_store_return_value): Likewise.
1248 (cris_extract_return_value): Likewise.
1249 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1250 * hppa-tdep.c (hppa64_return_value): Likewise.
1251 * lm32-tdep.c (lm32_store_return_value): Likewise.
1252 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1253 * spu-tdep.c (spu_value_from_register): Likewise.
1254 * vax-tdep.c (vax_return_value): Likewise.
1255
1256 2012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1257
1258 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1259 parameter LEN to ssize_t.
1260
1261 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1262
1263 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1264 variable LEN.
1265 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1266 directly.
1267 (alpha_store_return_value): Likewise.
1268 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1269 (amd64_push_arguments): Likewise.
1270 * ax-gdb.c (gen_trace_static_fields): Likewise.
1271 (gen_traced_pop): Likewise.
1272 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1273 * breakpoint.c (update_watchpoint): Likewise.
1274 * findcmd.c (parse_find_args): Use local variable for type
1275 instead of length.
1276 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1277 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1278 (h8300_store_return_value): Likewise.
1279 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1280 Use i386_darwin_arg_type_alignment directly.
1281 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1282 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1283 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1284 (m68hc11_extract_return_value): Likewise.
1285 * mep-tdep.c (mep_push_dummy_call): Likewise.
1286 * printcmd.c (float_type_from_length): Likewise.
1287 * s390-tdep.c (s390_value_from_register): Likewise.
1288 * stack.c (read_frame_arg): Likewise.
1289 * tracepoint.c (encode_actions_1): Likewise.
1290 * valops.c (value_fetch_lazy): Use local variable for type
1291 instead of length. Use TYPE_LENGTH directly.
1292 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1293
1294 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1295
1296 * symtab.c (skip_prologue_sal): Fix typo in comment.
1297
1298 2012-09-25 Joel Brobecker <brobecker@adacore.com>
1299
1300 * linespec.c (create_sals_line_offset): Fix typo in comment.
1301
1302 2012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1303
1304 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1305 use plongest to print the array size.
1306
1307 2012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1308
1309 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1310 * p-valprint.c (pascal_type_print_base): Likewise.
1311
1312 2012-09-22 Yao Qi <yao@codesourcery.com>
1313
1314 * remote.c (remote_get_trace_status): Remove setting default
1315 values of fields of 'ts'.
1316
1317 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1318
1319 Fix internal error on canonicalization of clang types.
1320 * cp-name-parser.y (operator): New comment at make_operator call for
1321 new, delete, new[] and delete[].
1322 (exp): Use "sizeof ". Add new comment at make_operator call.
1323
1324 2012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1325
1326 Fix disassemble without parameters in tailcall frame.
1327 * cli/cli-cmds.c (disassemble_current_function): Use
1328 get_frame_address_in_block.
1329
1330 2012-09-21 Tom Tromey <tromey@redhat.com>
1331
1332 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1333 TYPE_CODE_UNION>: Unify, removing a goto.
1334
1335 2012-09-21 Tom Tromey <tromey@redhat.com>
1336
1337 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1338
1339 2012-09-21 Andrew Burgess <aburgess@broadcom.com>
1340
1341 * findvar.c (read_frame_register_value): Mark the result value as
1342 optimized out if any of the input registers have been optimized out.
1343
1344 2012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1345
1346 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1347
1348 2012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1349
1350 * eval.c (evaluate_subexp_standard): Eliminate single-use
1351 variable LOWER.
1352
1353 2012-09-21 Yao Qi <yao@codesourcery.com>
1354
1355 * mi/mi-interp.c: Declare mi_record_changed.
1356 (mi_interpreter_init): Call observer_attach_record_changed.
1357 (mi_record_changed): New.
1358 * record.c (record_open): Call observer_notify_record_changed.
1359 (cmd_record_stop): Call observer_notify_record_changed.
1360 * NEWS: Mention it.
1361
1362 2012-09-20 Tom Tromey <tromey@redhat.com>
1363
1364 * NEWS: Update.
1365 * python/python.c (finalize_python): New function.
1366 (_initialize_python): Make a final cleanup.
1367
1368 2012-09-19 Doug Evans <dje@google.com>
1369
1370 * buildsym.h (param_symbols): Delete, unused.
1371 (context_stack): Delete member "params", unused.
1372 * buildsym.c (push_context): Update.
1373 * dwarf2read.c (read_func_scope): Update.
1374
1375 2012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1376
1377 * sh-tdep.c (sh_register_convert_to_virtual)
1378 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1379 all callers. Just do a memcpy if not the little-endian case.
1380
1381 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1382 set_gdbarch_double_format and set_gdbarch_long_double_format.
1383 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1384 set_gdbarch_double_format.
1385 * sh-tdep.c (sh_gdbarch_init): Likewise.
1386
1387 * NEWS: Document the removal of SH's 'regs' command.
1388 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1389 command.
1390
1391 2012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1392
1393 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1394 `jump'.
1395
1396 2012-09-18 Joel Brobecker <brobecker@adacore.com>
1397
1398 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1399 language when iterating over symbols.
1400
1401 2012-09-18 Yao Qi <yao@codesourcery.com>
1402
1403 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1404 (mi_interpreter_init): Call observer_attach_tsv_created and
1405 observer_attach_tsv_deleted.
1406 (mi_tsv_created, mi_tsv_deleted): New.
1407 * tracepoint.c (delete_trace_state_variable): Call
1408 observer_notify_tsv_deleted.
1409 (trace_variable_command): Call observer_notify_tsv_created.
1410 (delete_trace_variable_command): Call
1411 observer_notify_tsv_deleted.
1412 (create_tsv_from_upload): Call observer_notify_tsv_created.
1413 * NEWS: Mention it.
1414
1415 2012-09-18 Yao Qi <yao@codesourcery.com>
1416
1417 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1418 if traceframe changed.
1419 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1420 "trace-find".
1421 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1422 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1423 'traceframe_changed'.
1424 (mi_traceframe_changed): New.
1425 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1426 New field.
1427 * NEWS: Mention the new MI notification.
1428
1429 2012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1430
1431 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1432
1433 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1434
1435 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1436 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1437 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1438 Extend code also for PaX support. Convert all gdb_assert to warning
1439 calls.
1440
1441 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1442
1443 Implement auto-load user conveniences suggested by Doug Evans.
1444 * auto-load.c: Include top.h.
1445 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1446 (_initialize_auto_load): New variable scripts_directory_help. Mention
1447 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1448 scripts-directory. Document in online help one can use also files for
1449 set auto-load safe-path.
1450 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1451 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1452
1453 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1454
1455 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1456 of LEN.
1457
1458 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1459
1460 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1461 ELTLEN and use TYPE_LENGTH directly.
1462 (m2_val_print): Likewise.
1463 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1464 variable LEN and use TYPE_LENGTH directly.
1465 (m68k_svr4_store_return_value): Likewise.
1466 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1467 ARGLEN and use TYPE_LENGTH directly.
1468 (mips_o64_push_dummy_call): Likewise.
1469 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1470 variable LENGTH and use TYPE_LENGTH directly.
1471 (s390_function_arg_float): Likewise.
1472 (s390_function_arg_integer): Likewise.
1473 (s390_push_dummy_call): Likewise.
1474 (s390_return_value_convention): Likewise.
1475 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1476 TYPE_LENGTH directly.
1477
1478 2012-09-17 Yao Qi <yao@codesourcery.com>
1479
1480 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1481 Update comment to add_setshow_integer_cmd.
1482 * cli/cli-setshow.c (do_set_command): Handle case
1483 'var_zuinteger_unlimited'.
1484 (do_show_command): Likewise.
1485 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1486 for command 'remotetimeout'.
1487 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1488 to var_integer.
1489 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1490 for command 'set listsize'.
1491
1492 2012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1493
1494 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1495 variable LEN.
1496
1497 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1498
1499 PR 14119
1500 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1501 (frame_pop): Drop also TAILCALL_FRAME frames.
1502 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1503
1504 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1505 Pedro Alves <palves@redhat.com>
1506
1507 PR 14548
1508 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1509 function start if we are already at function start. Both for
1510 reverse-next and for reverse-step into function without line number
1511 info.
1512
1513 2012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1514
1515 Code cleanup - rename 'inline' depth to 'artificial' depth.
1516 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1517 frame_id_artificial_p, extend the comment.
1518 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1519 * frame.c (fprint_frame_id): Rename at a user, change debug output
1520 text to "artificial=".
1521 (skip_inlined_frames): Rename to ...
1522 (skip_artificial_frames): ... here. Extend the comment.
1523 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1524 (frame_id_inlined_p): Rename to ...
1525 (frame_id_artificial_p): ... here. Rename at a user.
1526 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1527 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1528 at a user.
1529 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1530 Extend the comment.
1531 (frame_id_inlined_p): Rename to ...
1532 (frame_id_artificial_p): ... here.
1533 * inline-frame.c (inline_frame_this_id): Rename at a user.
1534
1535 2012-09-14 Andrew Burgess <aburgess@broadcom.com>
1536
1537 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1538 vector variables using vector_size syntax rather than array
1539 syntax.
1540
1541 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1542
1543 * valarith.c (value_concat): Replace unsafe ALLOCA with
1544 XMALLOC/XFREE.
1545
1546 2012-09-14 Pedro Alves <palves@redhat.com>
1547
1548 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1549
1550 2012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1551
1552 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1553 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1554 data-directory as appropriate.
1555
1556 2012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1557
1558 * printcmd.c (ui_printf): Eliminate single-use variable
1559 PARAM_LEN.
1560
1561 2012-09-14 Yao Qi <yao@codesourcery.com>
1562 Pedro Alves <palves@redhat.com>
1563
1564 * valops.c (value_assign): Move observer_notify_target_changed
1565 below to replace reinit_frame_cache.
1566
1567 2012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1568
1569 Refactor Python "gdb" module into a proper Python package, by
1570 introducing a new "_gdb" module for code implemented in C, and
1571 using reload/__import__ instead of exec.
1572 * python/lib/gdb/__init__.py: Import * from _gdb.
1573 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1574 prompt_hook, sys.argv): Moved from finish_python_initialization.
1575 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1576 (packages, auto_load_packages): New list and function replacing
1577 module_dict and auto-loading code, using __file__ instead of
1578 gdb.PYTHONDIR and reload/__import__ instead of exec.
1579 (GdbSetPythonDirectory): Replacing function of the same name
1580 from finish_python_initialization, using reload/__import__ instead
1581 of exec, as well as call auto_load_packages.
1582 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1583 gdb_python_module and not gdb_module.
1584 * python/python-internal.h (gdb_python_module): Declare.
1585 * python/python.c (gdb_python_module): New global.
1586 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1587 (_initialize_python): Rename gdb module to _gdb.
1588 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1589 (finish_python_initialization): Move Python code to
1590 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1591 __main__.
1592
1593 2012-09-13 Pedro Alves <palves@redhat.com>
1594
1595 * Makefile.in (COMMON_OBS): Add registry.o.
1596 * registry.c: New file.
1597 * registry.h (struct registry_container): Declare.
1598 (registry_data_callback): New typedef.
1599 (struct registry_data, struct registry_data_registration, struct
1600 registry_data_registry): New type.
1601 (register_data_with_cleanup, registry_alloc_data)
1602 (registry_callback_adaptor, registry_clear_data)
1603 (registry_container_free_data, registry_set_data, registry_data):
1604 Declare.
1605 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1606 the new common structures and functions.
1607 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1608 callback typedefs.
1609
1610 2012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1611
1612 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1613 there is an error inserting hardware breakpoints and use the
1614 error message from the target.
1615
1616 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1617 Catch this exception and print the error message contained within. Do not
1618 print the default hardware error breakpoint message in this case.
1619
1620 2012-09-12 Doug Evans <dje@google.com>
1621
1622 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1623 cu == NULL.
1624
1625 2012-09-11 Doug Evans <dje@google.com>
1626
1627 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1628 .gdb_index symbol attributes if there are none.
1629
1630 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1631
1632 * symtab.h (struct minimal_symbol) [has_size]: New field.
1633 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1634 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1635 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1636 minimal symbols if the symbol's size is actually known.
1637 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1638 of msymbol's size field. Add comment.
1639 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1640 SET_MSYMBOL_SIZE to set the minimal symbol size.
1641
1642 2012-09-11 Joel Brobecker <brobecker@adacore.com>
1643
1644 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1645 minimal_symbol struct object, rather than setting some of its
1646 fields one by one.
1647
1648 2012-09-11 Andrew Burgess <aburgess@broadcom.com>
1649
1650 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1651 passed_a_ptr flag when displaying typedef types.
1652
1653 2012-09-10 Joel Brobecker <brobecker@adacore.com>
1654
1655 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1656 the optimized_out flag is preserved.
1657
1658 2012-09-10 Anthony Green <green@moxielogic.com>
1659
1660 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1661 prologue changes in GCC.
1662
1663 2012-09-10 Keith Seitz <keiths@redhat.com>
1664
1665 PR gdb/13483
1666 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1667 (BOOL_CONVERSION_BADNESS): ... this.
1668 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1669 (rank_one_type): Allow all boolean conversions
1670 permitted by the standard.
1671
1672 2012-09-06 Tom Tromey <tromey@redhat.com>
1673
1674 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1675 Don't decref py_objfile.
1676
1677 2012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1678
1679 Do not enable -lmcheck by default when Python is enabled with
1680 threading support.
1681 * configure.ac: (python_has_threads) New variable, by testing
1682 if WITH_THREAD is defined in Python.h.
1683 Move --enable-lmcheck after --with-python.
1684 Do not enable -lmcheck by default if python_has_threads=yes.
1685 Warn if --enable-lmcheck and python_has_threads=yes.
1686 * configure: Regenerate.
1687
1688 2012-08-31 Yao Qi <yao@codesourcery.com>
1689
1690 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1691 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1692 Update some commands.
1693 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1694 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1695 to 1.
1696
1697 2012-08-31 Yao Qi <yao@codesourcery.com>
1698
1699 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1700
1701 2012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1702
1703 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1704
1705 2012-08-29 Doug Evans <dje@google.com>
1706
1707 * main.c (print_gdb_help): Remove reference to
1708 --use-deprecated-index-sections.
1709
1710 2012-08-28 Yao Qi <yao@codesourcery.com>
1711
1712 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1713 (init_cmds): Call add_setshow_uinteger_cmd for command
1714 'max-user-call-depth'.
1715 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1716 declaration of 'max_user_call_depth'.
1717 * frame.c (backtrace_limit): Add 'unsigned'.
1718 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1719 'limit'.
1720 * remote.c (remoteaddresssize): Add 'unsigned'.
1721 (remote_address_masked): Change local var 'address_size' to
1722 'unsigned'.
1723 (_initialize_remote): Call add_setshow_uinteger_cmd for
1724 'remoteaddresssize'.
1725 * top.c (history_size): Add 'unsigned'.
1726 (show_commands): Change local variables to 'unsigned'.
1727 (set_history_size_command): Don't check history_size is negative.
1728 Adjust the condition to call unstifle_history and set history_size
1729 to UNIT_MAX.
1730
1731 2012-08-28 Pedro Alves <palves@redhat.com>
1732
1733 PR gdb/14428
1734
1735 * infcmd.c (default_print_one_register_info): New, factored out
1736 from default_print_registers_info.
1737 (default_print_registers_info): Use it. Mark value unavailable if
1738 necessary.
1739 (registers_info): Print user registers with
1740 default_print_one_register_info.
1741
1742 2010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1743
1744 PR tui/14486
1745 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1746 is not NULL before referencing it.
1747
1748 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1749
1750 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1751 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1752 original PC for it.
1753
1754 2012-08-27 Eli Zaretskii <eliz@gnu.org>
1755 Jan Kratochvil <jan.kratochvil@redhat.com>
1756
1757 * auto-load.c (auto_load_objfile_script): Rename to ...
1758 (auto_load_objfile_script_1): ... here, change variable realname to
1759 parameter realname, document it, add return value, add variable retval.
1760 (auto_load_objfile_script): New function.
1761
1762 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1763
1764 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1765 followed by a whitespace.
1766
1767 2012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1768
1769 PR gdb/14494.
1770 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1771 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1772 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1773 here.
1774
1775 2012-08-27 Wei-cheng Wang <cole945@gmail.com>
1776
1777 * memattr.c (create_mem_region): Fix memory region overlapping
1778 checking.
1779
1780 2012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1781
1782 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1783 with xmalloc/cleanup.
1784 * mt-tdep.c (mt_push_dummy_call): Likewise.
1785 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1786 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1787
1788 2012-08-24 Yao Qi <yao@codesourcery.com>
1789
1790 * jv-exp.y (push_expression_name): Add "." at the end of error
1791 message.
1792
1793 2012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
1794
1795 Document how to return from "python-interactive" to GDB.
1796 * python/python.c (_initialize_python): Update documentation.
1797
1798 2012-08-23 Pedro Alves <palves@redhat.com>
1799
1800 * infrun.c (_initialize_infrun) <handle command help text>:
1801 Mention that multiple signals are supported.
1802
1803 2012-08-23 Pedro Alves <palves@redhat.com>
1804
1805 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
1806 string.
1807
1808 2012-08-23 Yao Qi <yao@codesourcery.com>
1809
1810 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
1811 (tfind_1): Don't call registers_changed, set_traceframe_num,
1812 and clear_traceframe_info.
1813 Call set_current_traceframe.
1814 (set_current_traceframe): call set_traceframe_num.
1815
1816 2012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
1817
1818 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
1819 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
1820
1821 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1822
1823 Enable readline in Python in a GDB-specific way and block the
1824 standard Python readline module to prevent conflicts with GDB.
1825 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
1826 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
1827 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
1828 * python/py-gdb-readline.c: New file.
1829 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
1830 prototype.
1831 * python/python.c (_initialize_python): Call
1832 gdbpy_initialize_gdb_readline.
1833
1834 2012-08-22 Keith Seitz <keiths@redhat.com>
1835
1836 * defs.h: Include build-gnulib/config.h
1837
1838 2012-08-22 Joseph Myers <joseph@codesourcery.com>
1839
1840 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
1841 and blx pc.
1842
1843 2012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
1844
1845 Add a new "python-interactive" command that starts a standard
1846 Python interactive prompt with "pi" as alias, and add "py" as
1847 an alias to "python".
1848 * NEWS: Mention the new commands.
1849 * python/python.c (eval_python_command): New function.
1850 (python_interactive_command): For "python-interactive" with
1851 arguments, call eval_python_command. For "python-interactive"
1852 without arguments, call PyRun_InteractiveLoop.
1853 (_initialize_python): Add "python-interactive" command with
1854 "pi" as alias, and add "py" as an alias to "python".
1855
1856 2012-08-22 Tom Tromey <tromey@redhat.com>
1857
1858 * defs.h (quit_flag): Don't declare.
1859 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
1860 (QUIT): Use new functions.
1861 * event-top.c (command_handler): Use clear_quit_flag.
1862 (handle_sigint): Use set_quit_flag.
1863 (async_request_quit): Use check_quit_flag. Don't check
1864 immediate_quit.
1865 * exceptions.c (throw_exception): Use clear_quit_flag.
1866 * main.c (captured_main): Use clear_quit_flag.
1867 * python/python.c (clear_quit_flag, set_quit_flag)
1868 (check_quit_flag): New functions.
1869 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
1870 clear_quit_flag.
1871 * remote.c (remote_wait_as): Use check_quit_flag,
1872 clear_quit_flag.
1873 (remote_start_remote): Call QUIT.
1874 * symfile.c (load_progress): Use check_quit_flag.
1875 * top.c (command_loop): Use clear_quit_flag.
1876 (command_line_input): Call QUIT.
1877 * utils.c (quit_flag): Conditionally define.
1878 (clear_quit_flag, check_quit_flag, set_quit_flag): New
1879 functions.
1880 (prompt_for_continue): Call QUIT. Use quit, not
1881 async_request_quit.
1882 * remote-mips.c (mips_expect_timeout): Call QUIT.
1883 * monitor.c (monitor_expect): Call QUIT.
1884
1885 2012-08-22 Tom Tromey <tromey@redhat.com>
1886
1887 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
1888 (async_init_signals): Update.
1889 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
1890 (SIGWINCH_HANDLER_BODY): Remove.
1891
1892 2012-08-22 Tom Tromey <tromey@redhat.com>
1893
1894 * jit.c (jit_object_close_impl): Don't malloc the objfile
1895 name.
1896 * objfiles.c (allocate_objfile): Don't malloc the objfile
1897 name.
1898 (free_objfile): Don't free the objfile name.
1899 * objfiles.h (struct objfile) <name>: Update comment.
1900 * symfile.c (reread_symbols): Fix reference counting. Don't
1901 malloc objfile name.
1902
1903 2012-08-22 Tom Tromey <tromey@redhat.com>
1904
1905 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
1906 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
1907 (symfile_bfd_open): Likewise.
1908 (generic_load): Likewise.
1909 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
1910 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1911 gdb_bfd_open.
1912 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1913 Use gdb_bfd_open.
1914 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
1915 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
1916 (pmon_load_fast): Likewise.
1917 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
1918 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
1919 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
1920 (macho_check_dsym): Likewise.
1921 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
1922 (m32r_upload_command): Likewise.
1923 * gdb_bfd.h (gdb_bfd_cache): Declare.
1924 * gdb_bfd.c (struct gdb_bfd_data): New.
1925 (gdb_bfd_cache): New global.
1926 (struct gdb_bfd_cache_search): New.
1927 (hash_bfd): New function.
1928 (eq_bfd): Likewise.
1929 (gdb_bfd_open): Likewise.
1930 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
1931 (gdb_bfd_unref): Remove closed BFD from cache. Update for
1932 gdb_bfd_data.
1933 * exec.c (exec_file_attach): Use gdb_bfd_open.
1934 * dsrec.c (load_srec): Use gdb_bfd_open.
1935
1936 2012-08-22 Tom Tromey <tromey@redhat.com>
1937
1938 * dwarf2read.c (macro_start_file): Update.
1939 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
1940 (free_objfile_per_bfd_storage): Destroy macro_cache.
1941 (allocate_objfile, free_objfile): Update.
1942 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
1943 New field.
1944 (struct objfile) <macro_cache>: Remove.
1945 * symfile.c (reread_symbols): Update.
1946 * symmisc.c (print_symbol_bcache_statistics): Update.
1947 (print_objfile_statistics): Update.
1948
1949 2012-08-22 Tom Tromey <tromey@redhat.com>
1950
1951 * elfread.c (elf_symtab_read): Update.
1952 * objfiles.c (objfiles_bfd_data): New global.
1953 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
1954 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
1955 (allocate_objfile, free_objfile): Update.
1956 (_initialize_objfiles): Initialize objfiles_bfd_data.
1957 * objfiles.h (struct objfile_per_bfd_storage): New.
1958 (struct objfile) <per_bfd>: New field.
1959 <filename_cache>: Remove.
1960 (set_objfile_per_bfd): Declare.
1961 * symfile.c (reread_symbols): Update. Call
1962 set_objfile_per_bfd.
1963 (allocate_symtab): Update.
1964 * symmisc.c (print_symbol_bcache_statistics): Update.
1965 (print_objfile_statistics): Print the size of the BFD obstack.
1966
1967 2012-08-22 Tom Tromey <tromey@redhat.com>
1968
1969 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
1970 * gdb_bfd.c: Use DEFINE_REGISTRY.
1971 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
1972 (gdb_bfd_ref): Call bfd_alloc_data.
1973 (gdb_bfd_unref): Call bfd_free_data.
1974
1975 2012-08-22 Tom Tromey <tromey@redhat.com>
1976
1977 * registry.h (struct registry_fields): New.
1978 (REGISTRY_FIELDS): Redefine.
1979 (REGISTRY_ACCESS_FIELD): New macro.
1980 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
1981 functions.
1982
1983 2012-08-22 Tom Tromey <tromey@redhat.com>
1984
1985 * auto-load.c (_initialize_auto_load): Update.
1986 * solib-svr4.c (_initialize_svr4_solib): Update
1987 * solib-dsbt.c (_initialize_dsbt_solib): Update.
1988 * solib-darwin.c (_initialize_darwin_solib): Update.
1989 * registry.h: New file.
1990 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
1991 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
1992 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
1993 (register_program_space_data_with_cleanup)
1994 (register_program_space_data, program_space_alloc_data)
1995 (clear_program_space_data, set_program_space_data)
1996 (program_space_data): Don't declare.
1997 * progspace.c: Use DEFINE_REGISTRY.
1998 (struct program_space_data, struct
1999 program_space_data_registration, struct
2000 program_space_data_registry, program_space_data_registry)
2001 (register_program_space_data_with_cleanup)
2002 (register_program_space_data, program_space_alloc_data)
2003 (program_space_free_data, clear_program_space_data)
2004 (set_program_space_data, program_space_data): Remove.
2005 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2006 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2007 (register_objfile_data_with_cleanup, register_objfile_data)
2008 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2009 declare.
2010 * objfiles.c: Use DEFINE_REGISTRY.
2011 (struct objfile_data, struct objfile_data_registration, struct
2012 objfile_data_registry, objfile_data_registry)
2013 (register_objfile_data_with_cleanup, register_objfile_data)
2014 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2015 (set_objfile_data, objfile_data): Remove.
2016 (_initialize_objfiles): Update.
2017 * jit.c (_initialize_jit): Update.
2018 * inflow.c (_initialize_inflow): Update.
2019 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2020 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2021 (register_inferior_data_with_cleanup, register_inferior_data)
2022 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2023 declare.
2024 * inferior.c: Use DEFINE_REGISTRY.
2025 (struct inferior_data, struct inferior_data_registration, struct
2026 inferior_data_registry, inferior_data_registry)
2027 (register_inferior_data_with_cleanup, register_inferior_data)
2028 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2029 (set_inferior_data, inferior_data): Remove.
2030 * auxv.c (_initialize_auxv): Update.
2031 * ada-lang.c (_initialize_ada_language): Update.
2032 * breakpoint.c (_initialize_breakpoint): Update.
2033 * i386-nat.c (i386_use_watchpoints): Update.
2034
2035 2012-08-22 Tom Tromey <tromey@redhat.com>
2036
2037 * exec.c (exec_close, exec_file_attach): Update.
2038 (add_to_section_table): Initialize 'key' field.
2039 (add_target_sections, remove_target_sections): Add 'key' argument.
2040 * exec.h (add_target_sections, remove_target_sections): Add
2041 'key' argument.
2042 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2043 (reload_shared_libraries_1): Update.
2044 * target.h (struct target_section) <key>: New field.
2045
2046 2012-08-22 Tom Tromey <tromey@redhat.com>
2047
2048 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2049
2050 2012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2051
2052 * symfile.c (allocate_symtab): Use host_address_to_string
2053 function instead of cast of pointer to long which is not
2054 compatible with x86_64-w64-mingw32 build.
2055
2056 2012-08-19 Andrew Pinski <apinski@cavium.com>
2057
2058 * mips-tdep.c (is_octeon): New function.
2059 (is_octeon_bbit_op): New function.
2060 (mips32_next_pc): Handle Octeon's bbit instructions.
2061 (mips32_instruction_has_delay_slot): Likewise.
2062
2063 2012-08-19 Andrew Pinski <apinski@cavium.com>
2064
2065 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2066 before the function.
2067
2068 2012-08-19 Andrew Pinski <apinski@cavium.com>
2069
2070 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2071
2072 2012-08-19 Keith Seitz <keiths@redhat.com>
2073
2074 PR c++/14365
2075 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2076 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2077
2078 2012-08-18 Eli Zaretskii <eliz@gnu.org>
2079
2080 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2081 The typo broke "make TAGS".
2082
2083 2012-08-17 Joel Brobecker <brobecker@adacore.com>
2084
2085 GDB 7.5 released.
2086
2087 2012-08-17 Keith Seitz <keiths@redhat.com>
2088
2089 PR c++/13356
2090 * gdbtypes.c (strict_type_checking): New variable.
2091 (show_strict_type_checking): New function.
2092 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2093 if strict type checking is disabled.
2094 (_initialize_gdbtypes): Add "check type" subcommand.
2095 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2096
2097 2012-08-17 Keith Seitz <keiths@redhat.com>
2098
2099 * language.h (type_mode): Remove.
2100 (type_check): Remove.
2101 (struct language_defn): Remove la_type_check.
2102 (STRICT_TYPE): Remove unused macro.
2103 (type_error): Remove.
2104 * language.c (set_type_range_case): Renamed to ...
2105 (set_range_case): ... this. Update all callers.
2106 Remove type_mode/type_check.
2107 (type_mode): Remove.
2108 (type_check): Remove.
2109 (show_type_command): Remove.
2110 (set_type_command): Remove.
2111 (language_info): Remove type checking output.
2112 (type_error): Remove unused function.
2113 (range_error): Update comment.
2114 (unknown_language_defn): Remove la_type_check.
2115 (auto_language_defn): Likewise.
2116 (local_language_defn): Likewise.
2117 (_initialize_language): Remove "check type" subcommand.
2118 * ada-lang.c (ada_language_defn): Remove la_type_check.
2119 * c-lang.c (c_language_defn): Likewise.
2120 (cplus_language_defn): Likewise.
2121 (asm_language_defn): Likewise.
2122 (minimal_language_defn): Likewise.
2123 * d-lang.c (d_language_defn): Likewise.
2124 * f-lang.c (f_language_defn): Likewise.
2125 * go-lang.c (go_language_defn): Likewise.
2126 * jv-lang.c (java_language_defn): Likewise.
2127 * m2-lang.c (m2_language_defn): Likewise.
2128 * objc-lang.c (objc_language_defn): Likewise.
2129 * opencl-lang.c (opencl_language_defn): Likewise.
2130 * p-lang.c (pascal_language_defn): Likewise.
2131
2132 2012-08-16 Mike Frysinger <vapier@gentoo.org>
2133
2134 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2135
2136 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2137
2138 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2139 New function.
2140 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2141 using the regache. Use ia64_hpux_get_register_from_save_state_t
2142 to access the bsp and bspstore registers if not.
2143
2144 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2145
2146 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2147 * breakpoint.c (detach_breakpoints): Change pid parameter into
2148 a ptid. Adjust code accordingly.
2149 * infrun.c (handle_inferior_event): Delete variable child_pid.
2150 Update call to detach_breakpoints to pass the child ptid for
2151 fork events.
2152 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2153 assert that inferior_ptid's lwp is zero.
2154 (linux_handle_extended_wait): Update call to detach_breakpoints.
2155 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2156 detach_breakpoints.
2157
2158 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2159
2160 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2161 parent, only call detach_breakpoints if tts.tts_event ==
2162 TTEVT_VFORK.
2163
2164 2012-08-16 Joel Brobecker <brobecker@adacore.com>
2165
2166 * dwarf2-frame.c (dwarf2_frame_cache): Use
2167 get_frame_address_in_block instead of get_frame_pc as
2168 the bound for executing the frame's FDE.
2169
2170 2012-08-16 Yao Qi <yao@codesourcery.com>
2171
2172 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2173 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2174 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2175 (c_type_print_varspec_suffix): Likewise.
2176 * eval.c (evaluate_subexp_standard): Likewise.
2177 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2178 (f_type_print_varspec_suffix): Likewise.
2179 * gdbtypes.c (is_scalar_type): Likewise.
2180 (recursive_dump_type): Likewise.
2181 * infcall.c (value_arg_coerce): Likewise.
2182 * m2-valprint.c (m2_val_print): Likewise.
2183 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2184 (pascal_type_print_varspec_suffix): Likewise.
2185 (pascal_type_print_base): Likewise.
2186 * p-valprint.c (pascal_val_print): Likewise.
2187 (pascal_val_print): Likewise.
2188 * valops.c (value_slice): Likewise.
2189 * valprint.c (scalar_type_p): Likewise.
2190 * valarith.c (value_bitstring_subscript): Remove.
2191 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2192 Remove comment on TYPE_CODE_BITSTRING.
2193
2194 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2195 TYPE_CODE_BITSTRING.
2196
2197 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2198 slot 0.
2199
2200 2012-08-16 Yao Qi <yao@codesourcery.com>
2201
2202 * tracepoint.c (trace_find_none_command): Remove.
2203 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2204
2205 2012-08-16 Yao Qi <yao@codesourcery.com>
2206
2207 * remote.c (handle_notification): Remove parameter 'length'.
2208 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2209
2210 2012-08-15 Keith Seitz <keiths@redhat.com>
2211
2212 * gdbtypes.c (opaque_type_resolution): Make static.
2213 Add missing comment.
2214 (overload_debug): Add missing comment.
2215 (show_opaque_type_resolution): Likewise.
2216 (show_overload_debug): Likewise.
2217 (print_bit_vector): Remove unnecessary forward declaration.
2218 (print_arg_types): Likewise.
2219 (dump_fn_fieldlists): Likewise.
2220 (print_cplus_stuff): Likewise.
2221
2222 2012-08-15 Tom Tromey <tromey@redhat.com>
2223
2224 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2225 (gdb_bfd_ref): Initialize new field.
2226 (gdb_bfd_unref): Unref the archive BFD.
2227 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2228 parent archive.
2229
2230 2012-08-15 Tom Tromey <tromey@redhat.com>
2231
2232 PR python/14387:
2233 * python/py-bpevent.c (create_breakpoint_event_object): Update
2234 comment.
2235 * python/py-event.c (evpy_add_attribute): Update comment.
2236 * python/py-exitedevent.c (create_exited_event_object): Fix
2237 reference counting and error handling.
2238 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2239 Fix reference counting.
2240 * python/py-signalevent.c (create_signal_event_object): Fix
2241 reference counting and error handling.
2242 * python/py-stopevent.c (emit_stop_event): Fix reference
2243 counting.
2244 * python/py-threadevent.c (get_event_thread): Return a
2245 borrowed reference.
2246 * python/py-type.c (convert_field): Fix reference counting.
2247
2248 2012-08-15 Tom Tromey <tromey@redhat.com>
2249
2250 * dwarf2read.c (dwarf_decode_macro_bytes)
2251 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2252 as hash key.
2253
2254 2012-08-14 Mike Frysinger <vapier@gentoo.org>
2255
2256 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2257 stepi, nexti, finish, next, step, jump, and continue commands.
2258 * infrun.c (_initialize_infrun): Update help text for the handle
2259 command.
2260
2261 2012-08-14 Doug Evans <dje@google.com>
2262
2263 * gdbtypes.c (struct extra): Delete, unused.
2264
2265 * gdbtypes.c: Whitespace cleanup.
2266 (address_space_name_to_int): Remove "extern" from definition.
2267 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2268
2269 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2270 TYPE_POINTER_TYPE (type).
2271
2272 2012-08-14 Gary Benson <gbenson@redhat.com>
2273
2274 * solib-svr4.c (svr4_free_library_list): Use free_so.
2275
2276 2012-08-13 Mike Frysinger <vapier@gentoo.org>
2277
2278 * .gitignore: Add go-exp.c.
2279
2280 2012-08-13 Doug Evans <dje@google.com>
2281
2282 * value.c (show_convenience): Tweak comment.
2283 (_initialize_values): Mention convenience functions in the help text
2284 for "show convenience".
2285
2286 2012-08-13 Yao Qi <yao@codesourcery.com>
2287
2288 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2289 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2290 TERNOP_SLICE_COUNT.
2291 * eval.c (evaluate_subexp_standard): Likewise.
2292 * expprint.c (print_subexp_standard): Likewise.
2293 (dump_subexp_body_standard): Likewise.
2294 * parse.c (operator_length_standard): Likewise.
2295
2296 2012-08-13 Yao Qi <yao@codesourcery.com>
2297
2298 * std-operator.def: Remove OP_BITSTRING.
2299 * breakpoint.c (watchpoint_exp_is_const): Update.
2300 * eval.c (evaluate_subexp_standard): Remove handling to
2301 OP_BITSTRING.
2302 * expprint.c (print_subexp_standard): Likewise.
2303 (dump_subexp_body_standard): Likewise.
2304 * parse.c (operator_length_standard): Likewise.
2305 * valops.c (value_bitstring): Remove.
2306 * value.h: Remove the declaration of 'value_bitstring'.
2307
2308 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2309
2310 * linespec.c (find_methods): Remove unused variables `i1' and
2311 `name_len'.
2312 (decode_line_full): Likewise for `arg_start'.
2313
2314 2012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2315
2316 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2317 (zlib_decompress_section): Likewise for `section_data'.
2318 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2319
2320 2012-08-10 Doug Evans <dje@google.com>
2321
2322 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2323 * NEWS: Document them.
2324 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2325 function/strfns.py.
2326 * python/py-type.c (typy_array_1): New function.
2327 (typy_array): Call it.
2328 (typy_vector): New function.
2329 (type_object_methods): Add "vector".
2330 * python/lib/gdb/function/__init__.py: New file.
2331 * python/lib/gdb/function/strfns.py: New file.
2332
2333 2012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2334
2335 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2336 for TYPE_FIELD_BITPOS.
2337 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2338
2339 2012-08-10 Mike Frysinger <vapier@gentoo.org>
2340
2341 PR cli/10436:
2342 * common/vec.h (VEC_merge): Define.
2343 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2344 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2345 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2346 * completer.c: Include gdb_signals.h.
2347 (signal_completer): Define.
2348 * completer.h (signal_completer): Add prototype.
2349 * infcmd.c (_initialize_infcmd): Assign the command
2350 completer for "signal" to handle_completer.
2351 * infrun.c: Include completer.h.
2352 (handle_completer): Define.
2353 (_initialize_infrun): Declare a new local variable c. Store the
2354 result of add_com("handle") to it. Assign the command
2355 completer for "handle" to handle_completer.
2356
2357 2012-08-09 Yao Qi <yao@codesourcery.com>
2358
2359 * cli/cli-decode.c (set_cmd_prefix): New.
2360 (lookup_cmd_for_prefixlist): New.
2361 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2362 of each cmd_list_element in *prefixlist.
2363 (add_setshow_cmd_full): set_cmd_prefix.
2364 (add_alias_cmd): Likewise.
2365 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2366 Declare 'auto_boolean_enums'.
2367 * cli/cli-setshow.c: Include "observer.h".
2368 (notify_command_param_changed_p): New.
2369 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2370 Remove 'static'.
2371 (do_setshow_command): Split it to ...
2372 (do_set_command, do_show_command): ... them. New.
2373 (do_set_command): Call observer_notify_command_param_changed if
2374 notify_command_param_changed_p returns true.
2375 (cmd_show_list): Caller update.
2376 * auto-load.c (set_auto_load_cmd): Likewise.
2377 * remote.c (show_remote_cmd): Likewise.
2378 * cli/cli-setshow.h: Update declarations.
2379 * top.c (execute_command): Call do_set_command and do_show_command.
2380
2381 * NEWS: Mention new MI notification.
2382 * mi/mi-interp.c: Declare mi_command_param_changed.
2383 (mi_interpreter_init): Attach mi_command_param_changed to
2384 observer command_param_changed.
2385 (mi_command_param_changed): New.
2386 Remove mi_suppress_breakpoint_notifications.
2387 Define global variable mi_suppress_notification.
2388 (mi_breakpoint_created): Update.
2389 (mi_breakpoint_deleted): Likewise.
2390 (mi_breakpoint_modified): Likewise.
2391 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2392 'gdb-set' and set mi_suppress_notification.
2393 * mi/mi-main.h: (mi_suppress_notification): New struct.
2394
2395 2012-08-09 Andreas Tobler <andreast@fgznet.ch>
2396 Jan Kratochvil <jan.kratochvil@redhat.com>
2397
2398 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2399
2400 2012-08-09 Yao Qi <yao@codesourcery.com>
2401
2402 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2403 (skiplist): Move it to skip.c.
2404 (init_cmd_lists): Remove code setting enablebreaklist and
2405 skiplist to NULL.
2406 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2407 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2408 skiplist.
2409 * gdbcmd.h: Likewise.
2410 * skip.c (_initialize_step_skip): Move 'skiplist' from
2411 cli/cli-cmds.c.
2412
2413 2012-08-09 Yao Qi <yao@codesourcery.com>
2414
2415 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2416 * gnu-nat.c, symfile.c: Likewise.
2417
2418 2012-08-08 Aaron Gamble <agamble@google.com>
2419
2420 * utils.c (prompt_for_continue_wait_time): New static global.
2421 (make_command_stats_cleanup): Initialize it.
2422 (report_command_stats): Subtract time waiting for user.
2423 (prompt_for_continue): Track time waiting for user.
2424 (defaulted_query): Track time waiting for user.
2425
2426 2012-08-08 Doug Evans <dje@google.com>
2427
2428 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2429 UNOP_MEMVAL_TYPE.
2430 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2431 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2432 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2433 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2434 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2435 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2436 elt.
2437 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2438 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2439 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2440 (dump_prefix_expression): Handle OP_TYPE.
2441
2442 2012-08-08 Keith Seitz <keiths@redhat.com>
2443
2444 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2445 addr_start.
2446
2447 2012-08-08 Doug Evans <dje@google.com>
2448
2449 * linux-thread-db.c: #include "gdb_vecs.h".
2450 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2451 updated.
2452 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2453 (thread_db_load_search): Use a vector to iterate over path elements.
2454 Handle text appearing after "$pdir".
2455
2456 * gdb_string.h: Moved to ...
2457 * common/gdb_string.h: ... here.
2458 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2459 gdb_string.h and gdb_assert.h.
2460
2461 2012-08-08 Yao Qi <yao@codesourcery.com>
2462
2463 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2464 (tic6x_value_to_register): Likewise.
2465 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2466 and set_gdbarch_value_to_register.
2467
2468 2012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2469 Jean-Marc Saffroy <saffroy@gmail.com>
2470
2471 PR 11804
2472 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2473 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2474 * gcore.c (gcore_create_callback): New function comment. Add modified
2475 parameter. Only write modified regions. Set SEC_READONLY exactly
2476 according to MODIFIED.
2477 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2478 the passed modified value to FUNC.
2479 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2480 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2481 first. New variables modified and has_anonymous. Parse the lines of
2482 smaps file. Add the passed MODIFIED value to FUNC.
2483 * procfs.c (find_memory_regions_callback): Add the passed modified
2484 value.
2485
2486 2012-08-06 Tom Tromey <tromey@redhat.com>
2487
2488 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2489 (dwarf2_frame_cache): Use it.
2490 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2491 cache initialization constraint.
2492
2493 2012-08-06 Tom Tromey <tromey@redhat.com>
2494
2495 PR python/14386:
2496 * varobj.c (update_dynamic_varobj_children): Don't call
2497 PyIter_Check.
2498
2499 2012-08-06 Tom Tromey <tromey@redhat.com>
2500
2501 PR cli/14392:
2502 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2503
2504 2012-08-06 Nathaniel Flath <flat0103@gmail.com>
2505
2506 * NEWS: New entry for 'cd' default parameters.
2507 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2508
2509 2012-08-03 Tom Tromey <tromey@redhat.com>
2510
2511 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2512 return.
2513
2514 2012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2515
2516 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2517 to attempting lseek/write.
2518 (inf_child_fileio_pread): Likewise for pread.
2519
2520 2012-08-02 Yao Qi <yao@codesourcery.com>
2521
2522 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2523 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2524 add_setshow_zinteger_cmd.
2525 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2526 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2527 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2528 instead of add_setshow_zinteger_cmd.
2529 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2530 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2531 instead of add_setshow_zinteger_cmd.
2532 * frame.c (frame_debug): Add 'unsigned'.
2533 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2534 add_setshow_zinteger_cmd.
2535 * frame.h: Update the declaration of 'frame_debug'.
2536 * gdbtypes.c (overload_debug): Add 'unsigned'.
2537 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2538 add_setshow_zinteger_cmd.
2539 * inferior.h: Update declaration of 'debug_infrun'.
2540 * infrun.c (debug_infrun): Add 'unsigned'.
2541 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2542 add_setshow_zinteger_cmd.
2543 * jit.c (jit_debug): Add 'unsigned'.
2544 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2545 add_setshow_zinteger_cmd.
2546 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2547 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2548 instead of add_setshow_zinteger_cmd.
2549 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2550 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2551 add_setshow_zinteger_cmd.
2552 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2553 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2554 instead of add_setshow_zinteger_cmd.
2555 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2556 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2557 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2558 intead of add_setshow_zinteger_cmd.
2559 * mips-tdep.c (mips_debug): Add 'unsigned'.
2560 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2561 instead of add_setshow_zinteger_cmd.
2562 * monitor.c (monitor_debug): Add 'unsigned'.
2563 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2564 add_setshow_zinteger_cmd.
2565 * observer.c (observer_debug): Add 'unsigned'.
2566 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2567 add_setshow_zinteger_cmd.
2568 * parse.c (expressiondebug): Add 'unsigned'.
2569 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2570 add_setshow_zinteger_cmd.
2571 * record.c (record_debug): Add 'unsigned'.
2572 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2573 add_setshow_zinteger_cmd.
2574 * record.h: Update the declaration of 'record_debug'.
2575 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2576 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2577 add_setshow_zinteger_cmd.
2578 * serial.c (global_serial_debug_p): Add 'unsigned'.
2579 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2580 add_setshow_zinteger_cmd.
2581 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2582 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2583 add_setshow_zinteger_cmd.
2584 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2585 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2586 add_setshow_zinteger_cmd.
2587 * target.c (targetdebug): Add 'unsigned'.
2588 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2589 add_setshow_zinteger_cmd.
2590 * valops.c (overload_debug): Add 'unsigned'.
2591 * varobj.c (varobjdebug): Add 'unsigned'.
2592 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2593 add_setshow_zinteger_cmd.
2594 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2595 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2596 instead of add_setshow_zinteger_cmd.
2597
2598 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2599 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2600 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2601 instead of add_setshow_zinteger_cmd.
2602 * gdbarch.c, gdbarch.h: Re-generated.
2603
2604 2012-08-02 Yao Qi <yao@codesourcery.com>
2605
2606 * nto-tdep.c: Don't include cli/cli-decode.h and
2607 cli/cli-cmds.h.
2608 (_initialize_nto_tdep): Remove.
2609 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2610 Remove field.
2611 Remove macro nto_internal_debugging.
2612
2613 2012-08-01 Richard Henderson <rth@redhat.com>
2614
2615 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2616 (mep-*-*) [gdb_target_obs]: Likewise.
2617
2618 2012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2619
2620 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2621 linux_get_siginfo_type.
2622
2623 2012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2624
2625 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2626 AT_ENTRY_POINT.
2627 (call_function_by_hand) <ON_STACK>: Call write_memory with
2628 gdbarch_breakpoint_from_pc, if possible.
2629 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2630 here.
2631
2632 2012-07-31 Yao Qi <yao@codesourcery.com>
2633
2634 * tracepoint.c: Add 'static' for some variables.
2635
2636 2012-07-31 Yao Qi <yao@codesourcery.com>
2637
2638 * go32-nat.c: Declare _initialize_go32_nat.
2639 * ser-go32.c: Declare _initialize_ser_dos.
2640 * top.c (do_chdir_cleanup): Add 'static'.
2641
2642 2012-07-30 Keith Seitz <keiths@redhat.com>
2643
2644 * linespec.c (linespec_lex_number): A number followed
2645 by quotes is a valid number, too.
2646
2647 2012-07-30 Tom Tromey <tromey@redhat.com>
2648
2649 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2650
2651 2012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2652
2653 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2654 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2655
2656 2012-07-30 Andrew Burgess <aburgess@broadcom.com>
2657
2658 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2659 invalid or reevaluated to prevent prevent references to possibly
2660 delete'd type objects being left in the varobj.
2661
2662 2012-07-27 Tom Tromey <tromey@redhat.com>
2663 Jan Kratochvil <jan.kratochvil@redhat.com>
2664
2665 * copying.awk: Print buffer-read-only and vi ro markers.
2666 * copying.c: Rebuild.
2667 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2668 * gdbarch.c, gdbarch.h: Rebuild.
2669 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2670 buffer-read-only and vi ro markers.
2671 * features/arm-with-iwmmxt.c: Rebuild.
2672 * features/arm-with-m-fpa-layout.c: Rebuild.
2673 * features/arm-with-m-vfp-d16.c: Rebuild.
2674 * features/arm-with-m.c: Rebuild.
2675 * features/arm-with-neon.c: Rebuild.
2676 * features/arm-with-vfpv2.c: Rebuild.
2677 * features/arm-with-vfpv3.c: Rebuild.
2678 * features/i386/amd64-avx-linux.c: Rebuild.
2679 * features/i386/amd64-avx.c: Rebuild.
2680 * features/i386/amd64-linux.c: Rebuild.
2681 * features/i386/amd64.c: Rebuild.
2682 * features/i386/i386-avx-linux.c: Rebuild.
2683 * features/i386/i386-avx.c: Rebuild.
2684 * features/i386/i386-linux.c: Rebuild.
2685 * features/i386/i386-mmx-linux.c: Rebuild.
2686 * features/i386/i386-mmx.c: Rebuild.
2687 * features/i386/i386.c: Rebuild.
2688 * features/i386/x32-avx-linux.c: Rebuild.
2689 * features/i386/x32-avx.c: Rebuild.
2690 * features/i386/x32-linux.c: Rebuild.
2691 * features/i386/x32.c: Rebuild.
2692 * features/mips-dsp-linux.c: Rebuild.
2693 * features/mips-linux.c: Rebuild.
2694 * features/mips64-dsp-linux.c: Rebuild.
2695 * features/mips64-linux.c: Rebuild.
2696 * features/rs6000/powerpc-32.c: Rebuild.
2697 * features/rs6000/powerpc-32l.c: Rebuild.
2698 * features/rs6000/powerpc-403.c: Rebuild.
2699 * features/rs6000/powerpc-403gc.c: Rebuild.
2700 * features/rs6000/powerpc-405.c: Rebuild.
2701 * features/rs6000/powerpc-505.c: Rebuild.
2702 * features/rs6000/powerpc-601.c: Rebuild.
2703 * features/rs6000/powerpc-602.c: Rebuild.
2704 * features/rs6000/powerpc-603.c: Rebuild.
2705 * features/rs6000/powerpc-604.c: Rebuild.
2706 * features/rs6000/powerpc-64.c: Rebuild.
2707 * features/rs6000/powerpc-64l.c: Rebuild.
2708 * features/rs6000/powerpc-7400.c: Rebuild.
2709 * features/rs6000/powerpc-750.c: Rebuild.
2710 * features/rs6000/powerpc-860.c: Rebuild.
2711 * features/rs6000/powerpc-altivec32.c: Rebuild.
2712 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2713 * features/rs6000/powerpc-altivec64.c: Rebuild.
2714 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2715 * features/rs6000/powerpc-cell32l.c: Rebuild.
2716 * features/rs6000/powerpc-cell64l.c: Rebuild.
2717 * features/rs6000/powerpc-e500.c: Rebuild.
2718 * features/rs6000/powerpc-e500l.c: Rebuild.
2719 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2720 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2721 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2722 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2723 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2724 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2725 * features/rs6000/powerpc-vsx32.c: Rebuild.
2726 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2727 * features/rs6000/powerpc-vsx64.c: Rebuild.
2728 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2729 * features/rs6000/rs6000.c: Rebuild.
2730 * features/s390-linux32.c: Rebuild.
2731 * features/s390-linux32v1.c: Rebuild.
2732 * features/s390-linux32v2.c: Rebuild.
2733 * features/s390-linux64.c: Rebuild.
2734 * features/s390-linux64v1.c: Rebuild.
2735 * features/s390-linux64v2.c: Rebuild.
2736 * features/s390x-linux64.c: Rebuild.
2737 * features/s390x-linux64v1.c: Rebuild.
2738 * features/s390x-linux64v2.c: Rebuild.
2739 * features/tic6x-c62x-linux.c: Rebuild.
2740 * features/tic6x-c62x.c: Rebuild.
2741 * features/tic6x-c64x-linux.c: Rebuild.
2742 * features/tic6x-c64x.c: Rebuild.
2743 * features/tic6x-c64xp-linux.c: Rebuild.
2744 * features/tic6x-c64xp.c: Rebuild.
2745
2746 2012-07-27 Tom Tromey <tromey@redhat.com>
2747
2748 * c-exp.y (classify_name): Avoid assignment in condition.
2749
2750 2012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2751
2752 * amd64-windows-tdep.c: Include "frame.h".
2753 (amd64_windows_skip_trampoline_code): New function.
2754 (amd64_windows_init_abi): Add trampoline registration.
2755
2756 2012-07-27 Yao Qi <yao@codesourcery.com>
2757
2758 * tracepoint.c (cur_traceframe_number): Remove.
2759 (set_tfile_traceframe): Remove.
2760 (tfile_trace_find, tfile_fetch_registers): Update callers.
2761 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2762 (tfile_open, tfile_trace_find): Likewise.
2763
2764 2012-07-27 Yao Qi <yao@codesourcery.com>
2765
2766 * thread.c (switch_to_thread): Don't call registers_changed.
2767
2768 2012-07-26 Tom Tromey <tromey@redhat.com>
2769
2770 * Makefile.in (SFILES): Remove objc-exp.y.
2771 (YYFILES): Remove objc-exp.c.
2772 (YYOBJ): Remove objc-exp.o.
2773 (local-maintainer-clean): Don't mention objc-exp.c.
2774 * c-exp.y: Include objc-lang.h.
2775 (%union) <class>: New field.
2776 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2777 (exp): Clone subscript production for OBJC_LBRAC. Add various
2778 Objective C productions.
2779 (msglist, msgarglist, msgarg): New productions.
2780 (array_mod, func_mod, operator): Clone productions for
2781 OBJC_LBRAC.
2782 (parse_string_or_char): Handle '@' strings.
2783 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2784 (classify_name): Check la_name_of_this. Recognize ObjC class
2785 names.
2786 * objc-exp.y: Remove.
2787 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2788 * objc-lang.h (objc_parse, objc_error): Don't declare.
2789
2790 2012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2791
2792 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2793
2794 2012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2795
2796 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
2797 and decrement.
2798
2799 2012-07-26 Tom Tromey <tromey@redhat.com>
2800
2801 * copying.c: Rebuild.
2802 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
2803 'no_class'.
2804
2805 2012-07-26 Tom Tromey <tromey@redhat.com>
2806
2807 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
2808 immediate_quit.
2809 (print_objfile_statistics): Likewise.
2810 (maintenance_print_symbols): Likewise.
2811 (maintenance_print_msymbols): Likewise.
2812 (maintenance_print_objfiles): Likewise.
2813 * psymtab.c (print_partial_symbols): Call QUIT.
2814 (maintenance_print_psymbols): Likewise. Don't modify
2815 immediate_quit.
2816 * copying.c (show_copying_command): Don't modify immediate_quit.
2817 (show_warranty_command): Likewise.
2818 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
2819
2820 2012-07-26 Keith Seitz <keiths@redhat.com>
2821
2822 * linespec.c (linespec_lexer_lex_number): The input
2823 is also a valid number if the next character is a comma
2824 or colon.
2825
2826 2012-07-26 Joel Brobecker <brobecker@adacore.com>
2827
2828 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
2829 configure options.
2830
2831 2012-07-26 Tristan Gingold <gingold@adacore.com>
2832
2833 * machoread.c: Include gdb_bfd.h.
2834
2835 2012-07-26 Tristan Gingold <gingold@adacore.com>
2836
2837 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
2838 offset.
2839
2840 2012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
2841
2842 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
2843 SIZE to size_t.
2844 (dwarf2_evaluate_loc_desc): Likewise.
2845 (dwarf2_loc_desc_needs_frame): Likewise.
2846 (locexpr_describe_location_1): Likewise.
2847 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
2848 size_t.
2849 (struct dwarf2_loclist_baton): Likewise.
2850 * dwarf2read.c (struct dwarf_block): Likewise.
2851 (dump_die_shallow): Use pulongest to print dwarf_block.size.
2852 (decode_locdesc): Expand SIZE and I to size_t.
2853
2854 2012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
2855
2856 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
2857
2858 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2859
2860 * doublest.c (convert_doublest_to_floatformat): If the exponent
2861 is too small, treat the value as zero. If the exponent is too
2862 large, treat the value as infinity.
2863
2864 2012-07-25 Joel Brobecker <brobecker@adacore.com>
2865
2866 * configure.ac: Add --enable-lmcheck configure option.
2867 * configure: Regenerate.
2868
2869 2012-07-25 Tom Tromey <tromey@redhat.com>
2870
2871 * NEWS: Mention maint info bfds.
2872 * gdb_bfd.c (all_bfds): New global.
2873 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
2874 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
2875 New functions.
2876
2877 2012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
2878
2879 * configure.tgt: Add v850*-*-rtems*.
2880
2881 2012-07-25 Tom Tromey <tromey@redhat.com>
2882
2883 * macrotab.c (macro_bcache_str): Remove cast.
2884
2885 2012-07-25 Hui Zhu <hui_zhu@mentor.com>
2886
2887 * linespec.c (linespec_lexer_lex_number): Update comments,
2888 change the return and add check to make sure the input is
2889 the decimal numbers.
2890 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
2891 false, call linespec_lexer_lex_string.
2892
2893 2012-07-24 Tom Tromey <tromey@redhat.com>
2894
2895 * symfile.c (symbol_file_add): Don't open BFD twice.
2896
2897 2012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
2898
2899 * breakpoint.c (create_breakpoint): Store condition for pending
2900 breakpoints.
2901
2902 2012-07-24 Andreas Schwab <schwab@linux-m68k.org>
2903
2904 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
2905 (m68k_return_value): Handle complex types like structures.
2906 (m68k_svr4_return_value): Likewise.
2907
2908 2012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
2909
2910 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
2911 parameters to bfd_get_section_name.
2912
2913 2012-07-24 Yao Qi <yao@codesourcery.com>
2914
2915 * cli/cli-setshow.c: Handle case 'var_uinteger'
2916 and 'var_zuninteger' together. Handle case 'var_integer' and
2917 'var_zinteger' together.
2918
2919 2012-07-23 Keith Seitz <keiths@redhat.com>
2920
2921 * linespec.c (convert_linespec_to_sal): Don't add
2922 any symbols to the result vector if symbol_to_sal
2923 returns zero.
2924
2925 2012-07-23 Keith Seitz <keiths@redhat.com>
2926
2927 * linespec.c (decode_objc): Record the function name
2928 in the linespec.
2929
2930 2012-07-23 Tom Tromey <tromey@redhat.com>
2931
2932 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
2933 counting.
2934 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
2935 (map_vmap): Acquire a reference to the BFD.
2936
2937 2012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
2938
2939 * p-valprint.c (pascal_object_print_value): Replace potentially
2940 unsafe alloca with xmalloc/xfree.
2941 * valops.c (search_struct_method): Likewise.
2942
2943 2012-07-23 Tom Tromey <tromey@redhat.com>
2944
2945 * solib-svr4.c (enable_break): Update.
2946 * bfd-target.h (target_bfd_reopen): Update documentation.
2947
2948 2012-07-23 Tom Tromey <tromey@redhat.com>
2949
2950 * symfile.c (separate_debug_file_exists): Update.
2951 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
2952 (reread_symbols): Update.
2953 * elfread.c (build_id_verify): Update.
2954 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
2955 bfd_open_maybe_remote.
2956
2957 2012-07-23 Tom Tromey <tromey@redhat.com>
2958
2959 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
2960
2961 2012-07-23 Tom Tromey <tromey@redhat.com>
2962
2963 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
2964 and 'abfd'.
2965 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
2966 and 'abfd'.
2967 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
2968 * machoread.c (macho_add_oso_symfile): Make a cleanup for
2969 'abfd'.
2970 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
2971 * objfiles.c (allocate_objfile): Acquire a new reference.
2972 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
2973 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
2974 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
2975 a cleanup for 'nbfd'.
2976 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
2977 for 'nbfd'.
2978 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
2979 make a cleanup for 'abfd'.
2980 (symbol_file_add): Make a BFD cleanup.
2981
2982 2012-07-23 Tom Tromey <tromey@redhat.com>
2983
2984 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
2985 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
2986 * corelow.c (core_open): Use gdb_bfd_fopen.
2987 * dsrec.c (load_srec): Use gdb_bfd_openr.
2988 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
2989 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
2990 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2991 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2992 (gdb_bfd_fdopenr): New functions.
2993 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
2994 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
2995 (gdb_bfd_fdopenr): Declare.
2996 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
2997 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
2998 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
2999 gdb_bfd_openr_next_archived_file.
3000 (macho_check_dsym): Use gdb_bfd_openr.
3001 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3002 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3003 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3004 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3005 gdb_bfd_openr.
3006 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3007 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3008 gdb_bfd_openr_next_archived_file.
3009 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3010 Use gdb_bfd_openr.
3011 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3012 gdb_bfd_openr.
3013 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3014 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3015 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3016 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3017 (symfile_bfd_open): Use gdb_bfd_fopen.
3018 (generic_load): Use gdb_bfd_openr.
3019 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3020
3021 2012-07-23 Tom Tromey <tromey@redhat.com>
3022
3023 * bfd-target.c (target_bfd_reopen): Update.
3024 * cli/cli-dump.c (bfd_openr_with_cleanup)
3025 (bfd_openw_with_cleanup): Update.
3026 * corelow.c (core_open): Update.
3027 * dsrec.c (load_srec): Update.
3028 * exec.c (exec_file_attach): Update.
3029 * gcore.c (create_gcore_bfd): Update.
3030 * gdb_bfd.c (gdb_bfd_ref): Return void.
3031 (gdb_bfd_open): Update.
3032 * gdb_bfd.h (gdb_bfd_ref): Return void.
3033 Update comments.
3034 * jit.c (jit_bfd_try_read_symtab): Update.
3035 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3036 * machoread.c (macho_symfile_read_all_oso): Update.
3037 (macho_check_dsym): Update.
3038 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3039 * remote-m32r-sdi.c (m32r_load): Update.
3040 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3041 * rs6000-nat.c (add_vmap): Update.
3042 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3043 Update.
3044 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3045 * solib-spu.c (spu_bfd_open): Update.
3046 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3047 * spu-linux-nat.c (spu_bfd_open): Update.
3048 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3049 (generic_load): Update.
3050 * windows-nat.c (windows_make_so): Update.
3051
3052 2012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3053
3054 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3055
3056 2012-07-20 Jeff Kenton <jkenton@tilera.com>
3057
3058 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3059 SIGTRAMP_FRAME unwinding.
3060
3061 2012-07-20 Doug Evans <dje@google.com>
3062
3063 * NEWS: Document new options "set/show use-deprecated-index-sections",
3064 and delete reference to --use-deprecated-index-sections.
3065 * symfile.h (use_deprecated_index_sections): Delete.
3066 * dwarf2read.c (use_deprecated_index_sections): Make static.
3067 (read_index_from_section): Update wording of how to load
3068 deprecated index sections.
3069 (_initialize_dwarf2_read): New options
3070 "set/show use-deprecated-index-sections".
3071 * main.c (captured_main): Delete --use-deprecated-index-sections.
3072
3073 2012-07-20 Pedro Alves <palves@redhat.com>
3074
3075 PR threads/11692
3076 PR gdb/12203
3077
3078 * infrun.c (handle_inferior_event) <new thread>: Don't special
3079 case minus_one_ptid.
3080 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3081 * linux-thread-db.c (thread_get_info_callback): Don't return early
3082 if the thread is zombie.
3083 (thread_from_lwp): Change return type to void. Rewrite stale
3084 comment.
3085 (attach_thread): Don't return early if the thread is zombie,
3086 instead set its "dying" flag.
3087 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3088 (find_new_threads_callback): Don't return early if the thread is
3089 zombie.
3090
3091 2012-07-20 Pedro Alves <palves@redhat.com>
3092
3093 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3094 * target.c (target_wait): Likewise.
3095 (str_comma_list_concat_elem, do_option, target_options_to_string):
3096 New functions.
3097 * target.h (target_options_to_string): Declare.
3098
3099 2012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3100 Tom Tromey <tromey@redhat.com>
3101
3102 * dwarf2read.c (dwarf_decode_macros)
3103 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3104 DW_MACRO_GNU_transparent_include_alt>: New cases.
3105 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3106 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3107
3108 2012-07-20 Tom Tromey <tromey@redhat.com>
3109
3110 * dwarf2read.c (try_open_dwo_file): Don't call
3111 gdb_bfd_stash_filename.
3112
3113 2012-07-20 Pedro Alves <palves@redhat.com>
3114
3115 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3116 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3117 (i386_process_record): Tweak description comments.
3118
3119 2012-07-20 Pedro Alves <palves@redhat.com>
3120
3121 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3122 (i386_process_record): Use record_read_memory.
3123 * record.c (record_read_memory): New function.
3124 (record_arch_list_add_mem, record_exec_insn): Use
3125 record_read_memory.
3126 * record.h (record_read_memory): Declare.
3127
3128 2012-07-20 Yao Qi <yao@codesourcery.com>
3129
3130 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3131 NULL for xfree.
3132
3133 2012-07-19 Pedro Alves <palves@redhat.com>
3134
3135 * record.c (record_resume): Ask the target beneath to report all
3136 signals.
3137
3138 2012-07-19 Doug Evans <dje@google.com>
3139
3140 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3141 there's no section at address zero.
3142 (dwarf2_record_block_ranges): Ditto.
3143
3144 2012-07-19 Yao Qi <yao@codesourcery.com>
3145
3146 * command.h, remote.c: Fix a typo in comment.
3147
3148 2012-07-19 Tom Tromey <tromey@redhat.com>
3149
3150 PR exp/13206:
3151 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3152 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3153 OP_DECLTYPE>: New cases.
3154 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3155 (type_exp): Add new productions.
3156 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3157 and decltype.
3158 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3159 New case.
3160 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3161 OP_DECLTYPE>: New case.
3162 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3163 New case.
3164 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3165 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3166
3167 2012-07-19 Tom Tromey <tromey@redhat.com>
3168
3169 * c-exp.y (enum token_flags): New.
3170 (struct token) <cxx_only>: Remove.
3171 <flags>: New field.
3172 (tokentab3, tokentab2, ident_tokens): Update.
3173 (lex_one_token): Update. Handle FLAG_SHADOW.
3174
3175 2012-07-19 Tom Tromey <tromey@redhat.com>
3176
3177 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3178 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3179 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3180 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3181 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3182 type_exp production where appropriate.
3183 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3184 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3185 <UNOP_MEMVAL_TYPE>: New case.
3186 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3187 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3188 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3189 <UNOP_MEMVAL_TYPE>: New case.
3190 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3191 UNOP_REINTERPRET_CAST>: Update.
3192 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3193 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3194 UNOP_REINTERPRET_CAST>: Update.
3195 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3196 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3197 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3198 constants.
3199
3200 2012-07-19 Yao Qi <yao@codesourcery.com>
3201 Jan Kratochvil <jan.kratochvil@redhat.com>
3202
3203 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3204 and case 'var_optional_filename' together.
3205 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3206 instead of add_setshow_optional_filename_cmd for setshow command
3207 'args'. Set completer for 'set args'.
3208
3209 2012-07-18 Doug Evans <dje@google.com>
3210
3211 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3212 * common/gdb_vecs.c: New file, contents from utils.c.
3213 * common/host-defs.h: New file, contents from defs.h.
3214 * utils.h: New file, contents from defs.h.
3215 * defs.h: Move all declarations of objects defined in utils.c
3216 to utils.h (except QUIT() and related).
3217 #include "utils.h", "host-defs.h".
3218 * probe.h (probe_p): Move here from gdb_vecs.h.
3219 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3220 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3221 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3222 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3223 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3224 (COMMON_OBS): Add gdb_vecs.o.
3225 (gdb_vecs.o): New rule.
3226
3227 2012-07-18 Keith Seitz <keiths@redhat.com>
3228
3229 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3230 parameter. If non-zero, use SYMNAME as the canonical name
3231 for the SaL.
3232 Update all callers.
3233 (convert_linespec_to_sals): Use add_sal_to_sals for
3234 expressions, too.
3235 (decode_line_full): No need to "fill in missing canonical names"
3236 anymore. Simply make cleanups for the allocated names.
3237
3238 2012-07-18 Keith Seitz <keiths@redhat.com>
3239
3240 * linespec.c (struct linespec): Constify expression,
3241 source_filename, function_name, and label_name.
3242 (symbol_not_found_error): Make all parameters const.
3243 (linespec_parser_delete): No need to check for NULL
3244 when using xfree. Cast const char * to char * for xfree.
3245
3246 2012-07-18 Keith Seitz <keiths@redhat.com>
3247
3248 * breakpoint.c (invalid_thread_id_error): New function.
3249 (find_condition_and_thread): Use invalid_thread_id_error.
3250 (watch_command_1): Likewise.
3251
3252 2012-07-18 Tom Tromey <tromey@redhat.com>
3253
3254 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3255 * contrib/cc-with-tweaks.sh: New file.
3256
3257 2012-07-18 Tom Tromey <tromey@redhat.com>
3258
3259 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3260 (locate_dwz_sections): Recognize .gdb_index.
3261 (create_cus_from_index_list): New function.
3262 (create_cus_from_index): Use it. Handle .dwz data.
3263 (read_index_from_section): New function, extracted from
3264 dwarf2_read_index.
3265 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3266 if needed.
3267
3268 2012-07-18 Tom Tromey <tromey@redhat.com>
3269
3270 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3271 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3272 <is_dwz>: New field.
3273 (struct dwz_file): New.
3274 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3275 (locate_dwz_sections, dwarf2_get_dwz_file)
3276 (get_abbrev_section_for_cu): New functions.
3277 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3278 (read_and_check_type_unit_head): Add abbrev_section argument.
3279 (create_debug_types_hash_table): Update.
3280 (init_cutu_and_read_dies): Use proper abbrev section.
3281 (init_cutu_and_read_dies_no_follow): Likewise.
3282 (set_partial_user): Do nothing if PST==NULL.
3283 (read_comp_units_from_section): New function.
3284 (create_all_comp_units): Use it.
3285 (scan_partial_symbols, partial_die_parent_scope): Update.
3286 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3287 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3288 (find_partial_die): Add offset_in_dwz argument. Update.
3289 (guess_partial_die_structure_name, fixup_partial_die): Update.
3290 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3291 DW_FORM_GNU_strp_alt.
3292 (read_indirect_string_from_dwz): New function.
3293 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3294 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3295 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3296 (follow_die_offset): Add offset_in_dwz argument.
3297 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3298 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3299 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3300 Handle new macro forms.
3301 (dwarf_decode_macros): Update.
3302 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3303 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3304 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3305 (create_debug_types_hash_table): Use correct abbrev section.
3306 (get_debug_line_section): New function.
3307 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3308 (process_full_comp_unit): Pass 'required' argument to
3309 end_symtab_get_static_block.
3310 * buildsym.h (end_symtab_get_static_block): Update.
3311 * buildsym.c (end_symtab_get_static_block): Add 'required'
3312 argument.
3313 (end_symtab, end_expandable_symtab): Update.
3314
3315 2012-07-18 Tom Tromey <tromey@redhat.com>
3316
3317 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3318 (pagesize): Remove.
3319 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3320 (zlib_decompress_section): Remove.
3321 (dwarf2_read_section): Use gdb_bfd_map_section.
3322 (munmap_section_buffer): Remove.
3323 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3324 munmap_section_buffer.
3325 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3326 (struct gdb_bfd_section_data): New.
3327 (free_one_bfd_section): New function.
3328 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3329 (get_section_descriptor, zlib_decompress_section)
3330 (gdb_bfd_map_section): New functions.
3331 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3332
3333 2012-07-18 Tom Tromey <tromey@redhat.com>
3334
3335 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3336
3337 2012-07-18 Tom Tromey <tromey@redhat.com>
3338
3339 * gdb_bfd.c (struct gdb_bfd_data): New.
3340 (gdb_bfd_cache): New global.
3341 (struct gdb_bfd_cache_search): New.
3342 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3343 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3344 * gdb_bfd.h (gdb_bfd_open): Declare.
3345
3346 2012-07-18 Tom Tromey <tromey@redhat.com>
3347
3348 * utils.c (make_cleanup_bfd_unref): Rename from
3349 make_cleanup_bfd_close.
3350 * defs.h (make_cleanup_bfd_unref): Rename from
3351 make_cleanup_bfd_close.
3352 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3353 (bfd_openw_with_cleanup): Update.
3354 * corelow.c (core_open): Update.
3355 * dsrec.c (load_srec): Update.
3356 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3357 * remote-m32r-sdi.c (m32r_load): Update.
3358 * remote-mips.c (mips_load_srec): Update.
3359 (pmon_load_fast): Update.
3360 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3361 Update.
3362 (darwin_bfd_open): Update.
3363 * solib.c (solib_bfd_fopen): Update.
3364 * symfile-mem.c (symbol_file_add_from_memory): Update.
3365 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3366 (symfile_bfd_open): Update.
3367 (generic_load): Update.
3368
3369 2012-07-18 Tom Tromey <tromey@redhat.com>
3370
3371 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3372 (pmon_load_fast): Likewise.
3373 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3374 (m32r_upload_command): Likewise.
3375 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3376 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3377 Use make_cleanup_bfd_close.
3378
3379 2012-07-18 Tom Tromey <tromey@redhat.com>
3380
3381 * symfile.c (symfile_bfd_open): Don't copy name. Call
3382 gdb_bfd_stash_filename.
3383 (load_command): Open the new BFD before freeing the old.
3384 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3385 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3386 Call gdb_bfd_stash_filename.
3387 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3388 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3389 gdb_bfd_stash_filename.
3390 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3391 Free found_pathname.
3392 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3393 gdb_bfd_stash_filename.
3394 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3395 * machoread.c (macho_add_oso_symfile): Call
3396 gdb_bfd_stash_filename.
3397 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3398 gdb_bfd_stash_filename.
3399 (macho_check_dsym): Don't copy filename. Call
3400 gdb_bfd_stash_filename.
3401 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3402 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3403 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3404 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3405 * exec.c (exec_close): Don't free the BFD's filename.
3406 (exec_file_attach): Don't copy the filename. Call
3407 gdb_bfd_stash_filename.
3408 * corelow.c (core_close): Don't free the BFD's filename.
3409 (core_open): Call gdb_bfd_stash_filename.
3410 * corefile.c (reopen_exec_file): Remove #if 0 code.
3411 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3412 pathname.
3413 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3414
3415 2012-07-18 Tom Tromey <tromey@redhat.com>
3416
3417 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3418 gdb_bfd_unref.
3419 (free_dwo_file): Use gdb_bfd_unref.
3420 * cli/cli-dump.c: Include gdb_bfd.h.
3421 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3422 (bfd_openr_with_cleanup): Likewise.
3423 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3424 gdb_bfd_unref.
3425 * utils.c: Include gdb_bfd.h.
3426 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3427 * symfile.c: Include gdb_bfd.h.
3428 (separate_debug_file_exists): Use gdb_bfd_unref.
3429 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3430 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3431 (generic_load): Use gdb_bfd_ref.
3432 (reread_symbols): Use gdb_bfd_unref.
3433 * symfile-mem.c: Include gdb_bfd.h.
3434 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3435 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3436 * solib.c: Include gdb_bfd.h.
3437 (solib_bfd_fopen): Use gdb_bfd_ref.
3438 (solib_bfd_open): Use gdb_bfd_unref.
3439 (free_so_symbols): Use gdb_bfd_unref.
3440 (reload_shared_libraries_1): Use gdb_bfd_unref.
3441 * solib-spu.c: Include gdb_bfd.h.
3442 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3443 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3444 gdb_bfd_unref.
3445 * solib-frv.c: Include gdb_bfd.h.
3446 (enable_break2): Use gdb_bfd_unref.
3447 * solib-dsbt.c: Include gdb_bfd.h.
3448 (enable_break2): Use gdb_bfd_unref.
3449 * solib-darwin.c: Include gdb_bfd.h.
3450 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3451 gdb_bfd_unref.
3452 (darwin_bfd_open): Use gdb_bfd_unref.
3453 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3454 * remote-mips.c: Include gdb_bfd.h.
3455 (mips_load_srec): Use gdb_bfd_ref.
3456 (pmon_load_fast): Use gdb_bfd_ref.
3457 * remote-m32r-sdi.c: Include gdb_bfd.h.
3458 (m32r_load): Use gdb_bfd_ref.
3459 * record.c: Include gdb_bfd.h.
3460 (record_save_cleanups): Use gdb_bfd_unref.
3461 (cmd_record_save): Use gdb_bfd_unref.
3462 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3463 gdb_bfd_unref.
3464 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3465 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3466 * objfiles.c: Include gdb_bfd.h.
3467 (free_objfile): Use gdb_bfd_unref.
3468 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3469 gdb_bfd.c.
3470 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3471 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3472 (macho_check_dsym): Likewise.
3473 * m32r-rom.c: Include gdb_bfd.h.
3474 (m32r_load): Use gdb_bfd_ref.
3475 (m32r_upload_command): Use gdb_bfd_ref.
3476 * jit.c: Include gdb_bfd.h.
3477 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3478 * gdb_bfd.h: New file.
3479 * gdb_bfd.c: New file.
3480 * gcore.c: Include gdb_bfd.h.
3481 (create_gcore_bfd): Use gdb_bfd_ref.
3482 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3483 (gcore_command): Use gdb_bfd_unref.
3484 * exec.c: Include gdb_bfd.h.
3485 (exec_close): Use gdb_bfd_unref.
3486 (exec_close_1): Use gdb_bfd_unref.
3487 (exec_file_attach): Use gdb_bfd_ref.
3488 * elfread.c: Include gdb_bfd.h.
3489 (build_id_verify): Use gdb_bfd_unref.
3490 * dsrec.c: Include gdb_bfd.h.
3491 (load_srec): Use gdb_bfd_ref.
3492 * corelow.c: Include gdb_bfd.h.
3493 (core_close): Use gdb_bfd_unref.
3494 (core_open): Use gdb_bfd_ref.
3495 * bfd-target.c: Include gdb_bfd.h.
3496 (target_bfd_xclose): Use gdb_bfd_unref.
3497 (target_bfd_reopen): Use gdb_bfd_ref.
3498 * Makefile.in (SFILES): Add gdb_bfd.c.
3499 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3500 (COMMON_OBS): Add gdb_bfd.o.
3501
3502 2012-07-18 Keith Seitz <keiths@redhat.com>
3503
3504 * breakpoint.c (find_condition_and_thread): Initialize
3505 TASK and REST.
3506 (create_breakpiont): find_condition_and_thread will now
3507 initialize COND_STRING, THREAD, and REST (and TASK).
3508 (addr_string_to_sals): Likewise.
3509
3510 2012-07-18 Pedro Alves <palves@redhat.com>
3511
3512 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3513 Pull the single step breakpoints out of the target.
3514
3515 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3516
3517 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3518 * stap-probe.c (compile_probe_arg): Likewise.
3519
3520 2012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3521
3522 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3523 (elf_compile_to_ax): Likewise.
3524 * infrun.c (insert_exception_resume_from_probe): Likewise.
3525 (check_exception_resume): Remove `objfile' variable.
3526 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3527 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3528 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3529 (compare_entries): Rename to...
3530 (compare_probes): ...this. Adjust function to work with
3531 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3532 respectively.
3533 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3534 `VEC (probe_p) *'.
3535 (print_ui_out_info): Adjust argument to be `struct probe *'.
3536 (info_probes_for_ops): Adjust internal computations to use
3537 `VEC (probe_p) *'.
3538 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3539 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3540 gen_info_probes_table_values>: Remove `objfile' argument.
3541 (struct probe) <objfile>: New field.
3542 (find_probe_by_pc): Remove `objfile' argument.
3543 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3544 (stap_get_probe_argument_count): Likewise.
3545 (stap_get_arg): Likewise.
3546 (stap_evaluate_probe_argument): Likewise.
3547 (stap_compile_to_ax): Likewise.
3548 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3549 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3550 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3551 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3552 sym_compile_to_ax>: Likewise.
3553
3554 2012-07-18 Terry Guo <terry.guo@arm.com>
3555
3556 PR 14329
3557 * defs.h (GDB_MI_MSG_WIDTH): New.
3558 * ser_base (ser_base_read_error_fd): New function.
3559 (do_ser_base_readchar): Poll error file descriptor as well as
3560 standard output.
3561 (generic_readchar): Refactor error handling.
3562
3563 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3564
3565 * NEWS: Create a new section for the next release branch.
3566 Rename the section of the current branch, now that it has
3567 been cut.
3568
3569 2012-07-18 Joel Brobecker <brobecker@adacore.com>
3570
3571 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3572 * version.in: Bump version to 7.5.50.20120718-cvs.
3573
3574 2012-07-17 Keith Seitz <keiths@redhat.com>
3575
3576 * linespec.c (linespec_parse_line_offset): Make parameter
3577 const.
3578
3579 2012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3580
3581 PR 11914
3582 * f-valprint.c (info_common_command): New variable frame_id.
3583 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3584 * printcmd.c (print_variable_and_value): Extend function comment.
3585 Add comment for invalidated FRAME.
3586 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3587 FI form FRAME_ID after each print_frame_local_vars.
3588 (struct print_variable_and_value_data): Change frame to frame_id.
3589 (do_print_variable_and_value): New variable frame, initialize it from
3590 p->frame_id. Add comment for invalidated FRAME.
3591 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3592 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3593 for invalidated FRAME.
3594
3595 2012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3596 Pedro Alves <palves@redhat.com>
3597
3598 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3599 loop.
3600
3601 2012-07-16 Tom Tromey <tromey@redhat.com>
3602
3603 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3604
3605 2012-07-15 Doug Evans <dje@google.com>
3606
3607 * dwarf2read.c (stmt_list_hash): New struct.
3608 (type_unit_group): Embed "per_cu" member, remove pointer.
3609 New union member "t", move member "tus" into it, all uses updated.
3610 New member "hash", replaces member "line_offset, all uses updated.
3611 (quick_file_names): Replace member "offset" with "hash", all uses
3612 updated.
3613 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3614 (hash_file_name_entry, eq_file_name_entry): Call them.
3615 (hash_type_unit_group, eq_type_unit_group): Ditto.
3616 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3617 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3618 (dw2_get_file_names): Update.
3619 (create_type_unit_group): Replace "per_cu" arg with "cu".
3620 All callers updated. Fix "quick" (.gdb_index) handling.
3621 (get_type_unit_group): Replace "per_cu" arg with "cu".
3622 All callers updated.
3623 (build_type_unit_groups): Don't reset tu_stats.
3624
3625 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3626 "tab_cur_size". Change member "tab" to be a htab_t.
3627 (create_filename_seen_cache): Update.
3628 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3629 (filename_seen): Update.
3630
3631 2012-07-13 Doug Evans <dje@google.com>
3632
3633 * symtab.c (filename_seen): Update comment.
3634
3635 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3636 Doug Evans <dje@google.com>
3637
3638 * buildsym.c (end_symtab_1): Split it to ...
3639 (end_symtab_get_static_block): ... this ...
3640 (end_symtab_from_static_block): ... and this function.
3641 (end_symtab, end_expandable_symtab): Call them.
3642 * buildsym.h (end_symtab_get_static_block)
3643 (end_symtab_from_static_block): New declarations.
3644 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3645 Set its valid CU ranges.
3646
3647 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3648
3649 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3650 DW_OP_GNU_parameter_ref.
3651
3652 2012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3653
3654 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3655 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3656
3657 2012-07-13 Doug Evans <dje@google.com>
3658
3659 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3660 (filename_seen_cache): New struct.
3661 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3662 (create_filename_seen_cache): New function.
3663 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3664 (filename_seen): Delete arg "first". New arg "cache". All callers
3665 updated.
3666 (output_source_filename_data): New struct.
3667 (output_source_filename): Delete arg "first". New arg "data".
3668 All callers updated.
3669 (sources_info): Delete local "first". New locals "data", "cleanups".
3670 Rewrite to use filename_seen_cache.
3671 (add_partial_filename_data): Delete member "first". New member
3672 "filename_seen_cache". All uses updated.
3673 (make_source_files_completion_list): Rewrite to use
3674 filename_seen_cache.
3675
3676 2012-07-12 Doug Evans <dje@google.com>
3677
3678 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3679
3680 2012-07-10 Doug Evans <dje@google.com>
3681
3682 PR gdb/13498
3683 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3684 all_type_unit_groups, type_unit_groups, tu_stats.
3685 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3686 All uses updated. Add type_unit_group to union "s".
3687 (type_unit_group): New struct.
3688 (IS_TYPE_UNIT_GROUP): New macro.
3689 (abbrev_table): Delete unused member "section".
3690 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3691 (dw2_get_cu): Assert not used with type_unit_group.
3692 (dw2_get_primary_cu): New function.
3693 (dw2_build_type_unit_groups_reader): New function.
3694 (dw2_build_type_unit_groups): New function.
3695 (dw2_get_file_names): Assert not called on type units.
3696 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3697 Redo loop to iterate over type unit groups instead of type units.
3698 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3699 (read_abbrev_offset): New function.
3700 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3701 updated.
3702 (create_partial_symtab): New function.
3703 (process_psymtab_comp_unit_reader): Assert not used with type units.
3704 Call create_partial_symtab.
3705 (process_psymtab_type_unit): Delete.
3706 (hash_type_unit_group, eq_type_unit_group): New functions.
3707 (allocate_type_unit_groups_table): New function.
3708 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3709 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3710 (create_type_unit_group, get_type_unit_group): New functions.
3711 (tu_abbrev_offset): New struct.
3712 (sort_tu_by_abbrev_offset): New function.
3713 (add_type_unit_group_to_table): New function.
3714 (build_type_unit_groups): New function.
3715 (build_type_psymtabs_reader): New function.
3716 (build_type_psymtab_dependencies): New function.
3717 (build_type_psymtabs): Rewrite.
3718 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3719 is seen in a type unit.
3720 (process_queue): Move symtab expansion debugging printfs here.
3721 Call process_full_type_unit for type units.
3722 (compute_symtab_includes): Assert not called for type units.
3723 (process_cu_includes): Don't call compute_symtab_includes for
3724 type units.
3725 (process_full_type_unit): New function.
3726 (process_imported_unit_die): Flag an error if called for type units.
3727 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3728 updated. Assert not called for type units.
3729 (read_file_scope): Call dwarf2_start_symtab.
3730 (setup_type_unit_groups): New function.
3731 (read_type_unit_scope): Rewrite.
3732 (abbrev_table_read_table): Initialize abbrev_table->offset.
3733 (abbrev_table_free_cleanup): New function.
3734 (dwarf2_start_symtab): New function.
3735 (load_full_type_unit): Assert not called for type unit groups.
3736 * buildsym.c (finish_block_internal): New arg "expandable".
3737 All callers updated.
3738 (start_symtab): Move most contents to ...
3739 (restart_symtab): ... here. New function.
3740 (reset_symtab_globals): New function.
3741 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3742 Call reset_symtab_globals.
3743 (end_symtab, end_expandable_symtab): New functions.
3744 (set_missing_symtab, augment_type_symtab): New functions.
3745 * buildsym.h (end_expandable_symtab): Declare.
3746 (augment_type_symtab, restart_symtab): Declare.
3747 * psympriv.h (struct partial_symtab): New member "anonymous".
3748 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3749 anonymous psymtabs.
3750 (read_psymtabs_with_filename): Ditto.
3751 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3752 (expand_symtabs_matching_via_partial): Ditto.
3753 (dump_psymtab): Update.
3754 * dictionary.c (dict_add_pending): New function.
3755 * dictionary.h (dict_add_pending): Declare.
3756
3757 2012-07-09 Doug Evans <dje@google.com>
3758
3759 * buildsym.c (start_subfile): Remove unnecessary check for
3760 name == NULL.
3761
3762 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3763
3764 * dwarf2read.c (load_full_type_unit): Simplify.
3765
3766 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3767 to struct signatured_type **. All uses updated.
3768
3769 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3770 All callers updated.
3771
3772 2012-07-09 Tom Tromey <tromey@redhat.com>
3773
3774 * c-exp.y (check_parameter_typelist): New function.
3775 (parameter_typelist): Call it.
3776 * eval.c (make_params): Handle '(void)' case.
3777 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3778 '(void)' case.
3779
3780 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3781
3782 * common/linux-ptrace.c: Include gdb_assert.h.
3783 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3784 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3785 stdint.h.
3786 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3787 functions.
3788 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3789 * linux-nat.c (linux_child_post_attach)
3790 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3791
3792 2012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3793
3794 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
3795 nptl <2.7 bug workaround for core files.
3796
3797 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3798
3799 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
3800 clearing.
3801 (save_siginfo): Remove.
3802 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
3803 call.
3804 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
3805 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
3806 * linux-nat.h (struct lwp_info): Remove field siginfo.
3807
3808 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3809
3810 Code cleanup for the next patch.
3811 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
3812 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3813 call for it.
3814 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
3815 (ia64_linux_stopped_data_address):
3816 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
3817 the return value.
3818 * linux-nat.h (linux_nat_get_siginfo): Likewise.
3819 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
3820 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
3821 call for it.
3822
3823 2012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
3824
3825 PR 14321
3826 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
3827 Increase buffer sizes to 2x we need, not just 2x of the previous size.
3828
3829 2012-07-06 Tom Tromey <tromey@redhat.com>
3830
3831 * c-exp.y (DOTDOTDOT): New token.
3832 (func_mod, exp): Use parameter_typelist.
3833 (parameter_typelist): New production.
3834 (tokentab3): Add "..." token.
3835 * eval.c (make_params): Handle varargs.
3836 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3837 varargs.
3838
3839 2012-07-06 Tom Tromey <tromey@redhat.com>
3840
3841 PR exp/9608:
3842 * c-exp.y (%union) <tvec>: Change type.
3843 (func_mod): Now uses <tvec> type.
3844 (exp): Update for tvec change.
3845 (direct_abs_decl): Push the typelist.
3846 (func_mod): Return a typelist.
3847 (nonempty_typelist): Update for tvec change.
3848 * gdbtypes.c (lookup_function_type_with_arguments): New function.
3849 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
3850 * parse.c (pop_type_list): New function.
3851 (push_typelist): New function.
3852 (follow_types): Handle tp_function_with_arguments.
3853 * parser-defs.h (type_ptr): New typedef. Define a VEC.
3854 (enum type_pieces) <tp_function_with_arguments>: New constant.
3855 (union type_stack_elt) <typelist_val>: New field.
3856 (push_typelist): Declare.
3857
3858 2012-07-06 Tom Tromey <tromey@redhat.com>
3859
3860 * c-exp.y (%union) <type_stack>: New field.
3861 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
3862 (ptr_operator_ts): New production.
3863 (ptype): Update.
3864 * parse.c (type_stack_reserve): New function.
3865 (check_type_stack_depth): Use it.
3866 (pop_type_stack, append_type_stack, push_type_stack)
3867 (get_type_stack, type_stack_cleanup): New functions.
3868 (follow_types): Handle tp_type_stack.
3869 (_initialize_parse): Simplify initialization.
3870 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
3871 constant.
3872 (union type_stack_elt) <stack_val>: New field.
3873 (get_type_stack, append_type_stack, push_type_stack)
3874 (type_stack_cleanup): Declare.
3875
3876 2012-07-06 Tom Tromey <tromey@redhat.com>
3877
3878 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
3879 Remove.
3880 (struct type_stack): New.
3881 * parse.c (type_stack, type_stack_size, type_stack_depth):
3882 Remove.
3883 (type_stack): New global.
3884 (parse_exp_in_context, check_type_stack_depth)
3885 (insert_into_type_stack, insert_type, push_type, push_type_int)
3886 (insert_type_address_space, pop_type, pop_type_int)
3887 (_initialize_parse): Update.
3888
3889 2012-07-06 Tom Tromey <tromey@redhat.com>
3890
3891 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
3892 Remove %type.
3893
3894 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3895
3896 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
3897
3898 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3899 Jan Kratochvil <jan.kratochvil@redhat.com>
3900
3901 * cp-valprint.c (cp_print_value): Replace potentially unsafe
3902 alloca with xmalloc/xfree.
3903
3904 2012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
3905
3906 * MAINTAINERS (Write After Approval): Add myself to the list.
3907
3908 2012-07-05 Doug Evans <dje@google.com>
3909
3910 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
3911
3912 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3913
3914 * ax-gdb.c (cli/cli-utils.h): New include.
3915 (linespec.h): Ditto.
3916 (agent_eval_command_one): New function.
3917 (agent_command_1): Ditto.
3918 (agent_command): Call function agent_command_1.
3919 (agent_eval_command): Ditto.
3920 (_initialize_ax_gdb): Change help for "maint agent"
3921 and "maint agent-eval".
3922
3923 2012-07-05 Hui Zhu <hui_zhu@mentor.com>
3924
3925 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
3926 * cli/cli-utils.c (check_for_argument): New function.
3927 * cli/cli-utils.h (check_for_argument): Ditto.
3928
3929 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3930
3931 * NEWS: Mention x32 ABI support.
3932
3933 2012-07-04 H.J. Lu <hongjiu.lu@intel.com>
3934
3935 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
3936 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
3937
3938 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
3939 and pc_regnum_from_eax to -1. Update SP regnum from
3940 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
3941 needed.
3942
3943 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
3944 pc_regnum_from_eax.
3945
3946 2012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3947
3948 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
3949 * dwarf2expr.h: Include gdbtypes.h.
3950 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
3951 these forward declarations.
3952 (cu_offset, sect_offset): Move these ...
3953 * gdbtypes.h: Remove include dwarf2expr.h.
3954 (cu_offset, sect_offset): ... here.
3955
3956 2012-07-03 H.J. Lu <hongjiu.lu@intel.com>
3957
3958 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
3959 (amd64_linux_sigtramp_code): This.
3960 (amd64_x32_linux_sigtramp_code): New.
3961 (LINUX_SIGTRAMP_LEN): Updated.
3962 (amd64_linux_sigtramp_start): Check x32 sigtramp.
3963
3964 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3965
3966 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
3967
3968 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3969
3970 * config.in: Regenerate.
3971 * configure: Regenerate.
3972 * configure.ac: Remove check for gnu/libc-version.h.
3973 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
3974 gnu/libc-version.h.
3975 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
3976 variables libc_version, libc_major and libc_minor. Replace sscanf by
3977 inferior_has_bug. Extend the comment.
3978
3979 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3980
3981 * linux-thread-db.c (inferior_has_bug): New function.
3982 (thread_db_find_new_threads_silently): Return boolean as checked by
3983 inferior_has_bug, describe it in the comments.
3984 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
3985 earlier. Abort the initialization if it returned non-zero.
3986 (thread_db_new_objfile): Exclude debug files.
3987 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
3988 if UNTIL_NO_NEW,
3989
3990 2012-07-02 Doug Evans <dje@google.com>
3991
3992 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
3993 related to queue management.
3994
3995 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
3996 instead of "debug dwarf2-die" in debugging printfs.
3997 (create_debug_info_hash_table_reader): Ditto.
3998 (create_debug_info_hash_table): Ditto.
3999 (init_dwo_file): Ditto.
4000 (init_cutu_and_read_dies): Add debugging printf.
4001 (init_cutu_and_read_dies_no_follow): Ditto.
4002 (process_psymtab_comp_unit_reader): Ditto.
4003
4004 2012-07-02 Stan Shebs <stan@codesourcery.com>
4005
4006 Add target-side support for dynamic printf.
4007 * NEWS: Mention the additional style.
4008 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4009 (struct bp_location): New field cmd_bytecode.
4010 * breakpoint.c: Include format.h.
4011 (disconnected_dprintf): New global.
4012 (parse_cmd_to_aexpr): New function.
4013 (build_target_command_list): New function.
4014 (insert_bp_location): Call it.
4015 (remove_breakpoints_pid): Skip dprintf breakpoints.
4016 (print_one_breakpoint_location): Ditto.
4017 (dprintf_style_agent): New global.
4018 (dprintf_style_enums): Add dprintf_style_agent.
4019 (update_dprintf_command_list): Add agent case.
4020 (agent_printf_command): New function.
4021 (_initialize_breakpoint): Add new commands.
4022 * common/ax.def (printf): New bytecode.
4023 * ax.h (ax_string): Declare.
4024 * ax-gdb.h (gen_printf): Declare.
4025 * ax-gdb.c: Include cli-utils.h, format.h.
4026 (gen_printf): New function.
4027 (maint_agent_print_command): New function.
4028 (_initialize_ax_gdb): Add maint agent-printf command.
4029 * ax-general.c (ax_string): New function.
4030 (ax_print): Add printf disassembly.
4031 * Makefile.in (SFILES): Add format.c
4032 (COMMON_OBS): Add format.o.
4033 * common/format.h: New file.
4034 * common/format.c: New file.
4035 * printcmd.c: Include format.h.
4036 (ui_printf): Call parse_format_string.
4037 * remote.c (remote_state): New field breakpoint_commands.
4038 (PACKET_BreakpointCommands): New enum.
4039 (remote_breakpoint_commands_feature): New function.
4040 (remote_protocol_features): Add new BreakpointCommands entry.
4041 (remote_can_run_breakpoint_commands): New function.
4042 (remote_add_target_side_commands): New function.
4043 (remote_insert_breakpoint): Call it.
4044 (remote_insert_hw_breakpoint): Ditto.
4045 (_initialize_remote): Add new packet configuration for
4046 target-side breakpoint commands.
4047 * target.h (struct target_ops): New field
4048 to_can_run_breakpoint_commands.
4049 (target_can_run_breakpoint_commands): New macro.
4050 * target.c (update_current_target): Handle
4051 to_can_run_breakpoint_commands.
4052
4053 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4054
4055 Execute -ix and -iex only after system and user gdbinit files.
4056 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4057 processing down after gdbinit files.
4058
4059 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4060
4061 Add fnmatch-gnu module.
4062 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4063 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4064 * gnulib/aclocal.m4: Regenerate.
4065 * gnulib/config.in: Regenerate.
4066 * gnulib/configure: Regenerate.
4067 * gnulib/import/dummy.c: Remove.
4068 * gnulib/import/Makefile.am: Regenerate.
4069 * gnulib/import/Makefile.in: Likewise.
4070 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4071 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4072 * gnulib/import/alloca.c: New file.
4073 * gnulib/import/alloca.in.h: Likewise.
4074 * gnulib/import/config.charset: Likewise.
4075 * gnulib/import/fnmatch.c: Likewise.
4076 * gnulib/import/fnmatch.in.h: Likewise.
4077 * gnulib/import/fnmatch_loop.c: Likewise.
4078 * gnulib/import/localcharset.c: Likewise.
4079 * gnulib/import/localcharset.h: Likewise.
4080 * gnulib/import/m4/alloca.m4: Likewise.
4081 * gnulib/import/m4/codeset.m4: Likewise.
4082 * gnulib/import/m4/configmake.m4: Likewise.
4083 * gnulib/import/m4/fcntl-o.m4: Likewise.
4084 * gnulib/import/m4/fnmatch.m4: Likewise.
4085 * gnulib/import/m4/glibc21.m4: Likewise.
4086 * gnulib/import/m4/localcharset.m4: Likewise.
4087 * gnulib/import/m4/locale-fr.m4: Likewise.
4088 * gnulib/import/m4/locale-ja.m4: Likewise.
4089 * gnulib/import/m4/locale-zh.m4: Likewise.
4090 * gnulib/import/m4/mbrtowc.m4: Likewise.
4091 * gnulib/import/m4/mbsinit.m4: Likewise.
4092 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4093 * gnulib/import/m4/mbstate_t.m4: Likewise.
4094 * gnulib/import/m4/stdbool.m4: Likewise.
4095 * gnulib/import/m4/wchar_h.m4: Likewise.
4096 * gnulib/import/m4/wctype_h.m4: Likewise.
4097 * gnulib/import/m4/wint_t.m4: Likewise.
4098 * gnulib/import/mbrtowc.c: Likewise.
4099 * gnulib/import/mbsinit.c: Likewise.
4100 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4101 * gnulib/import/mbsrtowcs-state.c: Likewise.
4102 * gnulib/import/mbsrtowcs.c: Likewise.
4103 * gnulib/import/ref-add.sin: Likewise.
4104 * gnulib/import/ref-del.sin: Likewise.
4105 * gnulib/import/stdbool.in.h: Likewise.
4106 * gnulib/import/streq.h: Likewise.
4107 * gnulib/import/strnlen1.c: Likewise.
4108 * gnulib/import/strnlen1.h: Likewise.
4109 * gnulib/import/verify.h: Likewise.
4110 * gnulib/import/wchar.in.h: Likewise.
4111 * gnulib/import/wctype.in.h: Likewise.
4112
4113 2012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4114
4115 Support shell wildcards for 'set auto-load safe-path'.
4116 * auto-load.c: Include fnmatch.h.
4117 (filename_is_in_dir): Rename to ...
4118 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4119 it. Update function comment. Rename dir_len to pattern_len. New
4120 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4121 messages. Use gdb_filename_fnmatch.
4122 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4123 pattern.
4124 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4125 * defs.h (gdb_filename_fnmatch): New declaration.
4126 * utils.c: Include fnmatch.h.
4127 (gdb_filename_fnmatch): New function.
4128
4129 2012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4130
4131 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4132 `-probe' and `-probe-stap' options.
4133
4134 2012-07-01 Yao Qi <yao@codesourcery.com>
4135
4136 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4137 always_inserted_off, and always_inserted_enums.
4138 Change always_inserted_mode's type to 'enum auto_boolean'.
4139 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4140 callers.
4141 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4142 of add_setshow_enum_cmd.
4143 * infrun.c: Remove can_use_displaced_stepping_auto,
4144 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4145 can_use_displaced_stepping_enum.
4146 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4147 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4148 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4149 add_setshow_enum_cmd.
4150
4151 2012-06-30 Doug Evans <dje@google.com>
4152
4153 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4154 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4155 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4156
4157 2012-06-29 Doug Evans <dje@google.com>
4158
4159 * linespec.c: #include "stack.h".
4160 (decode_line_with_current_source): Moved here from symtab.c and
4161 renamed from decode_line_spec. All callers updated.
4162 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4163 renamed from decode_line_spec_1. All callers updated.
4164 * linespec.h (decode_line_with_current_source): Move declaration here
4165 from symtab.h and renamed from decode_line_spec.
4166 (decode_line_with_last_displayed): Move declaration here from symtab.h
4167 and renamed from decode_line_spec_1.
4168 * macrocmd.c: #include "linespec.h".
4169 * symtab.c: Remove #include "linespec.h".
4170
4171 2012-06-28 Doug Evans <dje@google.com>
4172
4173 * dwarf2read.c (get_cu_length): New function.
4174 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4175 (create_debug_types_hash_table): Ditto.
4176 (init_cutu_and_read_dies): Ditto.
4177 (init_cutu_and_read_dies_no_follow): Ditto.
4178
4179 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4180
4181 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4182 (struct abbrev_table): Define.
4183 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4184 abbrev_table.
4185 (init_cutu_and_read_dies): Update.
4186 (abbrev_table_alloc_abbrev): New function. Replaces
4187 dwarf_alloc_abbrev. All callers updated.
4188 (abbrev_table_add_abbrev): New function.
4189 (abbrev_table_lookup_abbrev): New function. Replaces
4190 dwarf2_lookup_abbrev. All callers updated.
4191 (abbrev_table_read_table): New function. Contents moved here from
4192 dwarf2_read_abbrevs.
4193 (dwarf2_read_abbrevs): Call it.
4194 (abbrev_table_free): New function.
4195 (dwarf2_free_abbrev_table): Call it.
4196
4197 2012-06-28 Stan Shebs <stan@codesourcery.com>
4198
4199 * osdata.c (info_osdata_command): Filter out "Title" columns
4200 from non-MI uses.
4201 * common/linux-osdata.c (struct osdata_type): Add title field.
4202 (osdata_table): Add titles to each entry.
4203 (linux_command_xfer_osdata): Add a column for title data.
4204
4205 2012-06-28 Stan Shebs <stan@codesourcery.com>
4206
4207 Make logging work for MI.
4208 * NEWS: Mention it.
4209 * interps.h (interp_set_logging_ftype): New typedef.
4210 (struct interp_procs): New field set_logging_proc.
4211 (current_interp_set_logging): Declare.
4212 * interps.c (current_interp_set_logging): New function.
4213 * cli/cli-logging.c: Include interps.h.
4214 (set_logging_redirect): Call current_interp_set_logging.
4215 (pop_output_files): Ditto.
4216 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4217 * mi/mi-console.h (mi_console_set_raw): Declare.
4218 * mi/mi-console.c (mi_console_set_raw): New function.
4219 * mi/mi-interp.c (saved_raw_stdout): New global.
4220 (mi_set_logging): New function.
4221 (_initialize_mi_interp): Add it to interp procs.
4222
4223 2012-06-28 Doug Evans <dje@google.com>
4224
4225 * symtab.c (lookup_symbol_aux_objfile): Use
4226 ALL_OBJFILE_PRIMARY_SYMTABS.
4227
4228 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4229
4230 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4231
4232 * common/buffer.c: Include inttypes.h and stdint.h.
4233 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4234
4235 2012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4236 Pedro Alves <palves@redhat.com>
4237
4238 * gdbthread.h (ALL_THREADS): New macro.
4239 (thread_list): Declare.
4240 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4241 going, but instead fall through to the stepping handling.
4242 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4243 the passed in signal. Adjust debug output.
4244 (resume_callback): Rename to ...
4245 (linux_nat_resume_callback): ... this. Pass the thread's last
4246 stop signal, if in "pass" state.
4247 (linux_nat_resume): Adjust to rename.
4248 (stop_wait_callback): New assertion. Don't respawn signals;
4249 instead let the LWP remain with SIGNALLED set.
4250 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4251 * remote.c (append_pending_thread_resumptions): New.
4252 (remote_vcont_resume): Call it.
4253 * target.h (target_resume): Extend comment.
4254
4255 2012-06-28 Iain Sandoe <iain@codesourcery.com>
4256
4257 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4258
4259 2012-06-27 Doug Evans <dje@google.com>
4260
4261 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4262 Delete have_addr_base, unused. All uses updated.
4263 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4264 (dwarf2_get_pc_bounds): Add ranges_base.
4265 (dwarf2_record_block_ranges): Ditto.
4266
4267 2012-06-27 Tom Tromey <tromey@redhat.com>
4268
4269 PR macros/7961:
4270 * varobj.c (varobj_create): Update.
4271 (varobj_set_value): Update.
4272 * tracepoint.c (validate_actionline): Update.
4273 (encode_actions_1): Update.
4274 * parse.c (parse_exp_1): Add 'pc' argument.
4275 (parse_exp_in_context): Add 'pc' argument. Change how
4276 expression_context_pc is set.
4277 (parse_expression): Update.
4278 (parse_field_expression): Update.
4279 * expression.h (parse_exp_1): Update.
4280 * eval.c (parse_to_comma_and_eval): Update.
4281 * breakpoint.c (set_breakpoint_condition): Update.
4282 (update_watchpoint): Update.
4283 (init_breakpoint_sal): Update
4284 (find_condition_and_thread): Update.
4285 (watch_command_1): Update.
4286 (update_breakpoint_locations): Update.
4287 * ada-lang.c (ada_read_renaming_var_value): Update.
4288 (create_excep_cond_exprs): Update.
4289
4290 2012-06-27 Doug Evans <dje@google.com>
4291
4292 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4293 type units.
4294
4295 2012-06-26 Doug Evans <dje@google.com>
4296
4297 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4298 prototype.
4299 (error_check_comp_unit_head): New arg abbrev_section. All callers
4300 updated.
4301 (read_and_check_comp_unit_head): Ditto.
4302 (read_and_check_type_unit_head): Ditto.
4303
4304 2012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4305
4306 New attribute 'last' for gdb.Symtab_and_line.
4307 * NEWS (Python Scripting): Add entry about the new attribute.
4308 * python/py-symtab.c (salpy_get_last): New function which
4309 implements the get method for the 'last' attribute of
4310 gdb.Symtab_and_line.
4311 (sal_object_getset): Add entry for the 'last' attribute.
4312
4313 2012-06-26 Doug Evans <dje@google.com>
4314
4315 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4316 (dwo_sections): Add macinfo, macro.
4317 (dwarf2_locate_dwo_sections): Watch for macro sections.
4318 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4319 All callers updated. Handle DWO files.
4320
4321 * NEWS: Mention new options "set debug dwarf2-read" and
4322 "set debug symtab-create".
4323 * dwarf2read.c (dwarf2_read_debug): New static global.
4324 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4325 (process_queue): Ditto.
4326 (process_full_comp_unit): Ditto.
4327 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4328 * elfread.c (elf_symfile_read): Add debugging printf.
4329 * minsyms.c (install_minimal_symbols): Ditto.
4330 * psymtab.c (allocate_psymtab): Ditto.
4331 * symfile.c (allocate_symtab): Ditto.
4332 * symtab.c (symtab_create_debug): New global.
4333 (_initialize_symtab): Add new option "set debug symtab-create".
4334 * symtab.h (symtab_create_debug): Declare.
4335
4336 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4337 (lookup_dwo_type_unit): Ditto.
4338
4339 2012-06-26 Roland McGrath <roland@hack.frob.com>
4340 H.J. Lu <hongjiu.lu@intel.com>
4341
4342 * amd64-linux-nat.c: Include <sys/user.h>.
4343 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4344 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4345 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4346
4347 * configure.ac: Check if the fs_base and gs_base members of
4348 `struct user_regs_struct' exist.
4349 * config.in: Regenerated.
4350 * configure: Likewise.
4351
4352 2012-06-25 Michael Eager <eager@eagercon.com>
4353
4354 PR python/14291
4355 * python/python.c (gdbpy_write): Check for interrupted output.
4356
4357 2012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4358
4359 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4360 register as a stack alignment in ARM mode.
4361
4362 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4363
4364 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4365 * gnulib/config.in: Regenerate.
4366 * gnulib/configure: Likewise.
4367 * gnulib/import/m4/extensions.m4: Update it.
4368 * gnulib/import/m4/gnulib-common.m4: Likewise.
4369 * gnulib/import/m4/memmem.m4: Likewise.
4370 * gnulib/import/m4/mmap-anon.m4: Likewise.
4371 * gnulib/import/m4/multiarch.m4: Likewise.
4372 * gnulib/import/stdint.in.h: Likewise.
4373
4374 2012-06-24 Yao Qi <yao@codesourcery.com>
4375
4376 * corefile.c (write_memory_with_notification): New.
4377 * gdbcore.h: Declare write_memory_with_notification.
4378 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4379 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4380 * valops.c (value_assign): Likewise.
4381 * python/py-inferior.c (infpy_write_memory): Call
4382 'write_memory_with_notification'.
4383
4384 2012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4385
4386 * cc-with-index.sh: Use also -ex "set auto-load no".
4387
4388 2012-06-23 Doug Evans <dje@google.com>
4389
4390 PR 14125
4391 * NEWS: Document additions to .gdb_index.
4392 * dwarf2read.c: #include "gdb/gdb-index.h".
4393 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4394 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4395 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4396 (dwarf2_read_index): Recognize version 7.
4397 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4398 block_kind, domain): All callers updated.
4399 (dw2_find_symbol_file): Handle new index CU values.
4400 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4401 (add_index_entry): New args is_static, kind. All callers updated.
4402 (offset_type_compare, uniquify_cu_indices): New functions
4403 (symbol_kind): New function.
4404 (write_psymtabs_to_index): Remove duplicate CU values.
4405 (write_psymtabs_to_index): Write .gdb_index version 7.
4406
4407 2012-06-22 Joel Brobecker <brobecker@adacore.com>
4408
4409 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4410 * configure: Regenerate.
4411
4412 2012-06-20 Yao Qi <yao@codesourcery.com>
4413
4414 * python/py-inferior.c: Update comments of infpy_read_memory
4415 and infpy_write_memory.
4416
4417 2012-06-19 Tom Tromey <tromey@redhat.com>
4418
4419 PR exp/9514:
4420 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4421 (push_type_address_space): Remove.
4422 * parse.c (insert_into_type_stack): New function.
4423 (insert_type): Likewise.
4424 (insert_type_address_space): Rename from push_type_address_space.
4425 Insert tp_space_identifier.
4426 * c-exp.y (ptr_operator): New production.
4427 (abs_decl): Use ptr_operator.
4428 (space_identifier): Call insert_type_address_space.
4429 (ptype): Don't use const_or_volatile_or_space_identifier.
4430 (const_or_volatile_noopt): Call insert_type.
4431 (conversion_type_id, conversion_declarator): New productions.
4432 (operator): Use conversion_type_id.
4433
4434 2012-06-18 Doug Evans <dje@google.com>
4435
4436 * symtab.h (minimal_symbol): New member created_by_gdb.
4437 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4438 created by gdb.
4439 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4440 (search_symbols): Call it instead of lookup_symbol.
4441 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4442
4443 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4444 Adjust address for DW_OP_GNU_addr_index.
4445 * dwarf2expr.h (dwarf_expr_context): Update comment.
4446 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4447 all callers updated. Handle TLS vars described with
4448 DW_OP_GNU_const_index.
4449 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4450 and DW_OP_GNU_const_index.
4451 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4452
4453 * block.c (find_block_in_blockvector): Make explicit the fact that we
4454 ignore GLOBAL_BLOCK.
4455
4456 2012-06-18 Tom Tromey <tromey@redhat.com>
4457
4458 * c-exp.y (operator): Remove trailing space after "delete" and
4459 "delete[]".
4460
4461 2012-06-18 Mark Kettenis <kettenis@gnu.org>
4462 Jan Kratochvil <jan.kratochvil@redhat.com>
4463
4464 Switch i386 and derived targets to ON_STACK.
4465 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4466 (amd64_dicos_init_abi): Remove its installment.
4467 * dicos-tdep.c (dicos_init_abi): Remove the
4468 set_gdbarch_call_dummy_location call. Update the comment here.
4469 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4470 (i386_dicos_init_abi): Remove its installment.
4471 * i386-tdep.c (i386_push_dummy_code): New function.
4472 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4473 i386_push_dummy_code.
4474
4475 2012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4476
4477 Remove stale dummy frames.
4478 * breakpoint.c: Include dummy-frame.h.
4479 (longjmp_breakpoint_ops): New variable.
4480 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4481 bp_longjmp_call_dummy.
4482 (bpstat_what, bptype_string, print_one_breakpoint_location)
4483 (init_bp_location): Support bp_longjmp_call_dummy.
4484 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4485 (set_longjmp_breakpoint_for_call_dummy)
4486 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4487 functions.
4488 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4489 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4490 FIXME comment and extend the other comment for bp_call_dummy.
4491 (set_longjmp_breakpoint_for_call_dummy)
4492 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4493 * dummy-frame.c: Include gdbthread.h.
4494 (pop_dummy_frame_bpt): New function.
4495 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4496 (dummy_frame_discard): New function.
4497 (cleanup_dummy_frames): Update the comment about longjmps.
4498 * dummy-frame.h (dummy_frame_discard): New declaration.
4499 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4500 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4501 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4502 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4503 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4504 keep_going if IS_LONGJMP and there is no other reason to stop.
4505
4506 2012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4507
4508 * remote-sim.c (sim_command_completer): Initialize
4509 variable 'result'.
4510
4511 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4512
4513 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4514 * dwarf2loc.c (call_site_parameter_matches): Support
4515 CALL_SITE_PARAMETER_PARAM_OFFSET.
4516 (needs_dwarf_reg_entry_value): Push stub value.
4517 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4518 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4519 * gdbtypes.h (enum call_site_parameter_kind): New item
4520 CALL_SITE_PARAMETER_PARAM_OFFSET.
4521 (struct call_site.parameter.u): New field param_offset.
4522
4523 2012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4524
4525 Code cleanup: Generalize call_site.parameter key.
4526 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4527 variable dwarf_reg. New variable kind_u. Update parameters to
4528 push_dwarf_reg_entry_value.
4529 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4530 * dwarf2expr.h (enum call_site_parameter_kind)
4531 (union call_site_parameter_u): Forward declarations.
4532 (struct dwarf_expr_context_funcs): Update parameters and their
4533 description for push_dwarf_reg_entry_value.
4534 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4535 * dwarf2loc.c (call_site_parameter_matches): New function.
4536 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4537 description. Use call_site_parameter_matches.
4538 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4539 Update parameters and their description.
4540 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4541 New variable kind_u. Adjust the caller for updated parameters.
4542 (needs_dwarf_reg_entry_value): Update parameters.
4543 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4544 instead of attr. Update for the changed fields of struct
4545 call_site_parameter.
4546 * gdbtypes.h: Include dwarf2expr.h.
4547 (enum call_site_parameter_kind): New.
4548 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4549 fb_offset into new union u.
4550
4551 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4552
4553 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4554 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4555 for x32.
4556
4557 2012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4558
4559 * amd64-linux-nat.c (compat_x32_clock_t): New.
4560 (compat_x32_siginfo_t): Likewise.
4561 (compat_x32_siginfo_from_siginfo): Likewise.
4562 (siginfo_from_compat_x32_siginfo): Likewise.
4563 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4564 and siginfo_from_compat_x32_siginfo for x32.
4565
4566 2012-06-15 Hui Zhu <hui_zhu@mentor.com>
4567
4568 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4569
4570 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4571
4572 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4573 instead of gdbarch_ptr_bit.
4574 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4575 (amd64_supply_native_gregset): Likewise.
4576 (amd64_collect_native_gregset): Likewise.
4577 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4578 (amd64_supply_xsave): Likewise.
4579 (amd64_collect_fxsave): Likewise.
4580 (amd64_collect_xsave): Likewise.
4581
4582 2012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4583
4584 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4585 (amd64_linux_read_description): Check DS segment register for
4586 x32 process.
4587
4588 2012-06-15 Tom Tromey <tromey@redhat.com>
4589
4590 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4591 init_cutu_and_read_dies.
4592
4593 2012-06-15 Iain Sandoe <iain@codesourcery.com>
4594
4595 * MAINTAINERS (Write After Approval): Add myself to the list.
4596
4597 2012-06-15 Tom Tromey <tromey@redhat.com>
4598
4599 * valops.c (value_find_oload_method_list): Now static.
4600 * value.h (value_find_oload_method_list): Don't declare.
4601
4602 2012-06-15 Tom Tromey <tromey@redhat.com>
4603
4604 * valops.c (find_overload_match): Use value_ind.
4605
4606 2012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4607
4608 * infrun.c (handle_inferior_event): Correct indentation.
4609
4610 2012-06-14 Doug Evans <dje@google.com>
4611
4612 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4613 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4614 All uses updated.
4615 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4616 updated. Handle DEBUG_LOC_START_LENGTH.
4617 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4618 (loclist_describe_location): Ditto.
4619
4620 2012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4621
4622 PR backtrace/13866
4623 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4624 after hiding inline functions.
4625
4626 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4627
4628 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4629 _initialize_inf_ttrace.
4630
4631 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4632
4633 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4634 _initialize_hppa_hpux_nat.
4635
4636 2012-06-13 Joel Brobecker <brobecker@adacore.com>
4637
4638 * remote-sim.c (sim_command_completer): Change type of return
4639 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4640
4641 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4642 Jan Kratochvil <jan.kratochvil@redhat.com>
4643
4644 PR tdep/14222
4645 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4646 stack on a 16-byte boundary.
4647
4648 2012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4649
4650 * jit.c (finalize_symtab): Set function's return type to 'void' by
4651 default.
4652
4653 2012-06-13 Mark Kettenis <kettenis@gnu.org>
4654 H.J. Lu <hongjiu.lu@intel.com>
4655
4656 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4657 Move bits common to both the classic LP64 and the new x32 ILP32
4658 ABI here.
4659 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4660 (amd64_x32_linux_init_abi): New function.
4661 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4662 subtype.
4663
4664 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4665 * i386-tdep.c (i386_pseudo_register_name): Make public.
4666 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4667 * amd64-tdep.c (amd64_dword_names): Add "eip".
4668 (amd64_x32_pseudo_register_type): New function
4669 (amd64_x32_init_abi): New function.
4670
4671 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4672
4673 PR build/14003
4674 * inferior.h (struct inferior_suspend_state): Comment out.
4675 (struct inferior): Comment out the field suspend.
4676 * infrun.c (struct infcall_suspend_state): Comment out the field
4677 inferior_suspend.
4678 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4679 out its assignment.
4680
4681 2012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4682
4683 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4684 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4685 function comment. Return ERROR for unresolved cases. Implement
4686 returning proper NAME.
4687 (yylex): Accept also NAME from classify_inner_name.
4688 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4689 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4690 LOC_TYPEDEF type.
4691 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4692
4693 2012-06-13 Tom Tromey <tromey@redhat.com>
4694
4695 * breakpoint.c (condition_completer): New function.
4696 (_initialize_breakpoint): Use it.
4697 * value.c (complete_internalvar): New function.
4698 * value.h (complete_internalvar): Declare.
4699
4700 2012-06-13 Tom Tromey <tromey@redhat.com>
4701
4702 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4703 * breakpoint.c (catch_syscall_completer): Return a VEC.
4704 * cli/cli-cmds.c (complete_command): Update.
4705 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4706 (complete_on_enum): Likewise.
4707 * command.h: Include gdb_vecs.h.
4708 (completer_ftype): Change return type.
4709 (complete_on_cmdlist, complete_on_enum): Likewise.
4710 * completer.c (noop_completer, filename_completer)
4711 (location_completer): Return a VEC.
4712 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4713 to a VEC.
4714 (expression_completer, complete_line_internal, complete_line)
4715 (command_completer): Return a VEC.
4716 (gdb_completion_word_break_characters, line_completion_function):
4717 Update.
4718 * completer.h: Include gdb_vecs.h.
4719 (complete_line, noop_completer, filename_completer)
4720 (expression_completer, location_completer, command_completer):
4721 Update.
4722 * f-lang.c (f_word_break_characters): Return a VEC.
4723 * interps.c (interpreter_completer): Return a VEC.
4724 * language.h (struct language_defn)
4725 <la_make_symbol_completion_list>: Return a VEC.
4726 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4727 * symtab.c (free_completion_list): Take a VEC.
4728 (return_val_size, return_val_index): Remove.
4729 (return_val): Now a VEC.
4730 (completion_list_add_name): Update.
4731 (default_make_symbol_completion_list_break_on)
4732 (default_make_symbol_completion_list, make_symbol_completion_list)
4733 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4734 Return a VEC.
4735 (add_filename_to_list): Update.
4736 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4737 <list>: Now a VEC.
4738 (maybe_add_partial_symtab_filename): Update.
4739 (make_source_files_completion_list): Return a VEC.
4740 * symtab.h (default_make_symbol_completion_list_break_on)
4741 (default_make_symbol_completion_list, make_symbol_completion_list)
4742 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4743 (make_source_files_completion_list): Update.
4744
4745 2012-06-13 Tom Tromey <tromey@redhat.com>
4746
4747 * breakpoint.c (add_catch_command): Use completer_ftype.
4748 * breakpoint.h: Include command.h.
4749 (add_catch_command): Use completer_ftype.
4750 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4751 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4752 Use completer_ftype.
4753 * command.h (completer_ftype): New typedef.
4754 (set_cmd_completer): Use it.
4755 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4756 completer_ftype.
4757
4758 2012-06-13 Pedro Alves <palves@redhat.com>
4759
4760 Partial revert of previous change.
4761
4762 * serial.c (scb_base): New global.
4763 (serial_for_fd): New.
4764 (serial_open, serial_fdopen_ops): Link new serial in open serials
4765 chain.
4766 (do_serial_close): Unlink serial from the open serials chain.
4767
4768 2012-06-12 Pedro Alves <palves@redhat.com>
4769
4770 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4771 threads here.
4772 (prepare_for_detach): No longer context switch here in non-stop
4773 mode.
4774 (fetch_inferior_event): Ditto.
4775 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4776 to the event thread before removing breakpoints. Switch to the
4777 event thread before inserting breakpoints and resuming.
4778 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4779 event thread before resuming.
4780 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4781 Switch to the event thread before removing breakpoints.
4782
4783 2012-06-12 Eli Zaretskii <eliz@gnu.org>
4784
4785 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4786 special characters correctly for the Windows shells. See
4787 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4788 report.
4789 [!__MINGW32__]: Remove extra double quote character from special
4790 characters.
4791
4792 2012-06-11 Stan Shebs <stan@codesourcery.com>
4793
4794 * ui-out.h: Remove #if 0 declarations.
4795 * ui-out.c: Remove #if 0 functions.
4796
4797 2012-06-11 Pedro Alves <palves@redhat.com>
4798
4799 * ser-base.c (run_async_handler_and_reschedule): New.
4800 (fd_event, push_event): Use it.
4801 * serial.c (serial_open, serial_fdopen_ops): Set the initial
4802 reference count to 1.
4803 (do_serial_close): Set the bufp field to NULL. Use serial_unref
4804 instead of xfree.
4805 (serial_is_open, serial_ref, serial_unref): New.
4806 * serial.h (serial_open): Adjust comment.
4807 (serial_is_open): Declare.
4808 (serial_close): Adjust comment.
4809 (serial_ref, serial_unref) Declare.
4810 (struct serial): New field 'refcnt'.
4811
4812 2012-06-11 Pedro Alves <palves@redhat.com>
4813
4814 Remove #if 0'd "connect" command, and unnecessary associated
4815 refcounting and serial reuse bits.
4816
4817 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
4818 * serial.c (last_serial_opened): Delete.
4819 (scb_base): Delete.
4820 (serial_open): Adjust.
4821 (serial_for_fd): Delete.
4822 (serial_fdopen_ops, do_serial_close): Adjust.
4823 (serial_fdopen_ops): Adjust.
4824
4825 2012-06-11 Pedro Alves <palves@redhat.com>
4826
4827 * serial.c (do_serial_close): Remove early return when SCB is
4828 null.
4829
4830 2012-06-11 Tom Tromey <tromey@redhat.com>
4831
4832 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
4833
4834 2012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4835
4836 Fix regression by the "ambiguous linespec" series.
4837 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
4838 get_last_displayed_symtab and get_last_displayed_line and depending
4839 on CURSAL.
4840
4841 2012-06-11 Tom Tromey <tromey@redhat.com>
4842
4843 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
4844 (dw2_find_symbol_file): Use it.
4845
4846 2012-06-11 Michael Eager <eager@eagercon.com>
4847
4848 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
4849 * mips-linux-tdep.h (mips_signals): New
4850
4851 2012-06-11 Tom Tromey <tromey@redhat.com>
4852
4853 * infrun.c (handle_inferior_event)
4854 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
4855 breakpoint.
4856 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
4857 exception logic in all cases. Update comments.
4858 (insert_longjmp_resume_breakpoint): Set the exception resume
4859 breakpoint.
4860
4861 2012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
4862
4863 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
4864
4865 2012-06-09 Siva Chandra Reddy <sivachandra@google.com>
4866
4867 * valarith.c (binop_types_user_defined_p): Fix a typo.
4868
4869 2012-06-08 Yao Qi <yao@codesourcery.com>
4870 Chung-Lin Tang <cltang@codesourcery.com>
4871
4872 * arch-utils.c (default_return_in_first_hidden_param_p): New.
4873 * arch-utils.h: Declare.
4874 * gdbarch.sh: Add return_in_first_hidden_param_p.
4875 * gdbarch.c, gdbarch.h: Regenerated.
4876 * infcall.c (call_function_by_hand): Call
4877 gdbarch_return_in_first_hidden_param_p instead of
4878 language_pass_by_reference.
4879
4880 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
4881 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
4882 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
4883 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
4884 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
4885 `cplus_return_struct_by_reference'.
4886 (tic6x_return_value): Handle language cplusplus.
4887 (tic6x_return_in_first_hidden_param_p): New.
4888 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
4889
4890 2012-06-07 Doug Evans <dje@google.com>
4891
4892 * dwarf2read.c (dwarf2_cu): Add comment.
4893
4894 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4895
4896 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
4897 variable.
4898 (mips_eabi_push_dummy_call): Likewise.
4899 (mips_n32n64_push_dummy_call): Likewise.
4900 (mips_o32_push_dummy_call): Likewise.
4901 (mips_o64_push_dummy_call): Likewise.
4902
4903 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4904
4905 * mips-tdep.c (mips_convert_register_p): Correct coding style.
4906
4907 2012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
4908
4909 * mips-tdep.c (mips_pseudo_register_type): Use
4910 mips_float_register_p.
4911
4912 2012-06-06 Pedro Alves <palves@redhat.com>
4913
4914 * infrun.c (handle_inferior_event): Remove calls to
4915 reinit_frame_cache that follow a context_switch call.
4916
4917 2012-06-06 Pedro Alves <palves@redhat.com>
4918
4919 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
4920 context_switch and remove stale comment.
4921
4922 2012-06-06 Pedro Alves <palves@redhat.com>
4923
4924 * infrun.c (struct execution_control_state): Remove
4925 `new_thread_event' field.
4926 (handle_inferior_event): Simplify new threads handling; don't
4927 resume the inferior if we find a new thread.
4928
4929 2012-06-06 Thomas Schwinge <thomas@codesourcery.com>
4930
4931 * NEWS: Document the deprecation of SH's 'regs' command.
4932 * inferior.h (all_registers_info): Add function declaration.
4933 * sh-tdep.c (sh_show_regs): Remove variable.
4934 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
4935 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
4936 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
4937 (sh_show_regs_command): Remove functions.
4938 (sh_gdbarch_init): Don't set sh_show_regs.
4939 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
4940 'info all-registers'.
4941 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
4942 (sh64_show_regs): Remove functions.
4943 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
4944
4945 2012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4946
4947 * configure.ac: Move development=true below AC_INIT.
4948 * configure: Regenerate.
4949
4950 2012-06-05 Stan Shebs <stan@codesourcery.com>
4951
4952 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
4953 gdb_stdout.
4954
4955 2012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
4956
4957 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
4958 argument as ssize_t.
4959 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
4960 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
4961 * target.c (target_read_stack, target_write_memory)
4962 (target_write_raw_memory): Likewise.
4963 * target.h (target_read_stack, target_write_memory)
4964 (target_write_raw_memory): Likewise.
4965
4966 2012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4967
4968 * symfile-mem.c: Change gdb_static_assert to ssize_t.
4969 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
4970 * target.c (target_read_memory): Change LEN to ssize_t.
4971 * target.h (target_read_memory): Change LEN to ssize_t.
4972
4973 2012-06-05 Pedro Alves <palves@redhat.com>
4974
4975 PR backtrace/13866
4976
4977 * breakpoint.c (until_break_command): Only fetch the selected
4978 frame after decode_line_1.
4979
4980 2012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
4981
4982 * solib-svr4.c (enable_break): Don't fallback to setting the solib
4983 event breakpoint at _start, __start or main if a program
4984 interpreter is not found.
4985
4986 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4987
4988 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
4989 Add declaration.
4990 * windows-tdep.c: #include "objfiles.h".
4991 (windows_iterate_over_objfiles_in_search_order): New function.
4992 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
4993 iterate_over_objfiles_in_search_order gdbarch method to
4994 windows_iterate_over_objfiles_in_search_order.
4995 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
4996
4997 2012-06-05 Joel Brobecker <brobecker@adacore.com>
4998
4999 * gdbarch.sh: Add generation of
5000 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5001 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5002 (iterate_over_objfiles_in_search_order): New gdbarch method.
5003 * gdbarch.h, gdbarch.c: Regenerate.
5004 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5005 Add declaration.
5006 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5007 New function.
5008 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5009 out of lookup_symbol_aux_symtabs.
5010 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5011 call to lookup_symbol_aux_objfile.
5012 (struct global_sym_lookup_data): New type.
5013 (lookup_symbol_global_iterator_cb): New function.
5014 (lookup_symbol_global): Search for symbol using
5015 gdbarch_iterate_over_objfiles_in_search_order and
5016 lookup_symbol_global_iterator_cb.
5017 * findvar.c (struct minsym_lookup_data): New type.
5018 (minsym_lookup_iterator_cb): New function.
5019 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5020 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5021 and minsym_lookup_iterator_cb.
5022
5023 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5024
5025 Revert the following patch:
5026 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5027 try locating the symbol in the symbol's own objfile first, before
5028 extending the search to all objfiles.
5029 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5030 out of lookup_symbol_aux_symtabs.
5031 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5032 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5033 Do not search EXCLUDE_OBJFILE.
5034 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5035 (lookup_symbol_global): Search for matches in the block's objfile
5036 first, before searching all other objfiles.
5037
5038 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5039
5040 * breakpoint.c (find_condition_and_thread): Stop parsing
5041 as soon as the first invalid keyword is found.
5042
5043 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5044
5045 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5046
5047 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5048
5049 * config/djgpp/djcheck.sh: Add copyright header.
5050
5051 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5052
5053 * copyright.py (update_files, main): Fix path to update-copyright
5054 script.
5055
5056 2012-06-05 Joel Brobecker <brobecker@adacore.com>
5057
5058 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5059 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5060 for which a reminder to update by hand is printed.
5061
5062 2012-06-04 Doug Evans <dje@google.com>
5063
5064 * buildsym.c (make_blockvector): Add comment.
5065
5066 2012-06-04 Pedro Alves <palves@redhat.com>
5067
5068 * arch-utils.c (default_gdb_signal_from_target): Delete.
5069 * arch-utils.h (default_gdb_signal_from_target): Delete.
5070 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5071 gdbarch_gdb_signal_from_target_p.
5072 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5073 predicate).
5074 * gdbarch.h: Regenerate.
5075 * gdbarch.c: Regenerate.
5076
5077 2012-06-04 Pedro Alves <palves@redhat.com>
5078
5079 * gdbarch.sh (gdb_signal_from_target): Mention that the
5080 implementation of the method must be host independent.
5081 * gdbarch.h: Regenerate.
5082
5083 2012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5084
5085 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5086 parameters.
5087 (target_read_memory_bfd): New function.
5088 (symbol_file_add_from_memory): Use it.
5089
5090 2012-06-03 Doug Evans <dje@google.com>
5091
5092 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5093 of primary symtab.
5094 (basic_lookup_transparent_type): Ditto.
5095
5096 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5097 (ALL_PRIMARY_SYMTABS): Use it.
5098 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5099 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5100 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5101 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5102 (basic_lookup_transparent_type): Ditto.
5103
5104 2012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5105
5106 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5107 it to optimize resolution of demangled name.
5108
5109 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5110
5111 * configure.ac (development): Define new variable.
5112 Call AC_CHECK_LIB for mcheck if $development.
5113 (ERROR_ON_WARNING): Enable it by default only if $development.
5114 * config.in: Regenerate.
5115 * configure: Regenerate.
5116
5117 2012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5118
5119 * target.c (target_read_memory): Make LEN argument as size_t.
5120 * target.h (target_read_memory): Likewise.
5121
5122 2012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5123
5124 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5125
5126 2012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5127
5128 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5129 BookE interface for PowerPC server processors if not available
5130 in the Linux Kernel.
5131
5132 2012-05-31 Keith Seitz <keiths@redhat.com>
5133
5134 * linespec.c (decode_objc): Add cleanup to free
5135 INFO.FILE_SYMTABS.
5136 (find_linespec_symbols): Add cleanup to free CLASSES.
5137 * symfile.c (find_separate_debug_file_by_debuglink): Add
5138 cleanup to free DEBUGLINK.
5139 * ui-out.c (clear_header_list): No need to check if
5140 HEADER_NEXT.COLHDR is NULL.
5141 Free HEADER_NEXT.COL_NAME.
5142
5143 2012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5144
5145 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5146 warning.
5147
5148 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5149
5150 * configure.host (gdb_host_cpu): Handle tilegx*.
5151 (gdb_host): Handle tilegx-*-linux*.
5152 * tilegx-linux-nat.c: New file.
5153 * config/tilegx/linux.mh: New file.
5154
5155 2012-05-30 Jeff Kenton <jkenton@tilera.com>
5156
5157 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5158 tilegx-linux-tdep.o.
5159 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5160 tilegx-linux-tdep.c.
5161 * configure.tgt: Handle tilegx-*-linux*.
5162 * tilegx-tdep.h: New file.
5163 * tilegx-tdep.c: New file.
5164 * tilegx-linux-tdep.c: New file.
5165 * regformats/reg-tilegx.dat: New file.
5166
5167 2012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5168
5169 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5170 accounting of hw watchpoints on ppc.
5171
5172 2012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5173
5174 * source.c (openp): Expand tilde in path entries.
5175
5176 2012-05-29 Doug Evans <dje@google.com>
5177
5178 * buildsym.c (block_compar): Fix comment.
5179 (end_symtab): Fix and clarify some comments.
5180
5181 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5182 cleanup_undefined_types.
5183 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5184 All callers updated.
5185
5186 2012-05-29 Tom Tromey <tromey@redhat.com>
5187
5188 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5189 fails.
5190 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5191 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5192 fails.
5193 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5194 fails.
5195
5196 2012-05-29 Tristan Gingold <gingold@adacore.com>
5197
5198 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5199 (struct darwin_info): ... New struct.
5200 (solib_darwin_pspace_data): New variable.
5201 (darwin_pspace_data_cleanup): New function.
5202 (get_darwin_info): Likewise.
5203 (darwin_dyld_version_ok, darwin_load_image_infos)
5204 (darwin_solib_get_all_image_info_addr_at_init)
5205 (darwin_solib_read_all_image_info_addr): Add info argument.
5206 Adjust code.
5207 (darwin_current_sos): Use per pspace structure.
5208 (darwin_solib_create_inferior_hook): Likewise.
5209 (darwin_clear_solib): Likewise.
5210 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5211
5212 2012-05-28 Pedro Alves <palves@redhat.com>
5213
5214 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5215 block that uses them. Clear ecss before handling each event.
5216
5217 2012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5218
5219 * solib-svr4.c (svr4_current_sos): New comment on
5220 svr4_current_sos_via_xfer_libraries fall back.
5221
5222 2012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5223
5224 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5225 it as a fallback for TYPE_IS_OPAQUE.
5226 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5227 symbols for lookup_symbol.
5228
5229 2012-05-24 John Steele Scott <toojays@toojays.net>
5230
5231 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5232 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5233 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5234 (check_producer): ... this new function, which also checks for ICC
5235 and caches the result.
5236 (producer_is_icc): New function.
5237 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5238 producer was ICC.
5239
5240 2012-05-24 Pedro Alves <palves@redhat.com>
5241
5242 PR gdb/7205
5243
5244 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5245 (default_gdb_signal_to_target): ... this. Add comment.
5246 (default_gdb_signal_from_host): Rename to ...
5247 (default_gdb_signal_from_target): ... this. Add comment.
5248 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5249 (default_gdb_signal_to_target): ... this.
5250 (default_gdb_signal_from_host): Rename to ...
5251 (default_gdb_signal_from_target): ... this.
5252 * corelow.c (core_open): Adjust to naming change. Replace comment.
5253 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5254 (gdb_signal_from_target): ... this. Adjust to
5255 default_gdb_signal_from_host naming change. Extend comment.
5256 (gdb_signal_to_host): Rename to ...
5257 (gdb_signal_to_target): ... this. Adjust to
5258 default_gdb_signal_to_host naming change.
5259 * gdbarch.h, gdbarch.c: Renegerate.
5260
5261 2012-05-24 Pedro Alves <palves@redhat.com>
5262
5263 PR gdb/7205
5264
5265 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
5266
5267 2012-05-24 Pedro Alves <palves@redhat.com>
5268
5269 PR gdb/7205
5270
5271 Replace target_signal with gdb_signal throughout.
5272
5273 2012-05-24 Pedro Alves <palves@redhat.com>
5274
5275 PR tui/14159
5276
5277 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5278 string, instead of reusing the va_list argument.
5279
5280 2012-05-24 Tom Tromey <tromey@redhat.com>
5281
5282 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5283 Remove.
5284
5285 2012-05-23 Doug Evans <dje@google.com>
5286
5287 * symtab.c (search_symbols): Formatting fixes.
5288 (print_symbol_info): Formatting fixes.
5289
5290 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5291 int64_t change to leb128 API.
5292 (read_encoded_value, decode_frame_entry_1): Ditto.
5293 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5294 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5295 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5296 (execute_stack_op): Ditto.
5297 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5298 (safe_read_uleb128, safe_read_sleb128): Ditto.
5299 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5300 (dwarf2_compile_expr_to_ax): Ditto.
5301 (locexpr_describe_location_piece): Ditto.
5302 (disassemble_dwarf_expression): Ditto.
5303 (locexpr_describe_location_1): Ditto.
5304
5305 2012-05-23 Stan Shebs <stan@codesourcery.com>
5306 Kwok Cheung Yeung <kcy@codesourcery.com>
5307
5308 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5309 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5310 (mi-cmd-info.o): New rule.
5311 * osdata.h (info_osdata_command): New declaration.
5312 * osdata.c (info_osdata_command): Change to non-static.
5313 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5314 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5315 * mi/mi-cmd-info.c: New file.
5316
5317 2012-05-23 Doug Evans <dje@google.com>
5318
5319 * symtab.c (search_symbols): Pass NULL for file_matcher to
5320 expand_symtabs_matching if there are no files to match.
5321
5322 * gdbtypes.c (lookup_typename): Simplify.
5323
5324 2012-05-23 Pedro Alves <palves@redhat.com>
5325
5326 * arch-utils.h (default_target_signal_to_host): Delete.
5327 * arch-utils.c (default_target_signal_to_host): Delete.
5328 * gdbarch.sh (target_signal_to_host): Remove.
5329 * gdbarch.h, gdbarch.c: Regenerate.
5330
5331 2012-05-22 Doug Evans <dje@google.com>
5332
5333 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5334 "const gdb_byte *".
5335 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5336 (execute_cfa_program): Update to match API of leb128 functions.
5337 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5338 "const gdb_byte *".
5339 (read_unsigned_leb128, read_signed_leb128): Delete.
5340 (read_initial_length): Change type of buf argument to
5341 "const gdb_byte *".
5342 (read_encoded_value): Update to match API of leb128 functions.
5343 (decode_frame_entry): Change result to "const gdb_byte *", and
5344 similarly for "start" parameter.
5345 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5346 (dwarf2_build_frame_info): Change local frame_ptr to
5347 "const gdb_byte *".
5348 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5349 read_uleb128, read_sleb128. All callers updated.
5350 (safe_skip_leb128): New function.
5351 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5352 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5353 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5354 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5355 read_uleb128, read_sleb128.
5356 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5357 (execute_stack_op): Update to match API of leb128 functions.
5358 * dwarf2expr.h: #include "leb128.h".
5359 (read_uleb128, read_sleb128): Delete.
5360 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5361 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5362 * dwarf2loc.c (debug_loc_kind): New enum.
5363 (decode_debug_loc_addresses): New function.
5364 (decode_debug_loc_dwo_addresses): New function.
5365 (dwarf2_find_location_expression): Rewrite.
5366 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5367 (locexpr_describe_location_piece): Ditto.
5368 (disassemble_dwarf_expression): Ditto.
5369 (locexpr_describe_location_1): Ditto.
5370 (loclist_describe_location): Rewrite.
5371 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5372 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5373 (dwarf2_section_buffer_overflow_complaint): Renamed from
5374 dwarf2_macros_too_long_complaint. All callers updated.
5375 (skip_leb128): Delete.
5376 (init_cu_die_reader): Initialize reader->buffer_end.
5377 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5378 (skip_form_bytes): New arg buffer_end. All callers updated.
5379 Replace call to skip_leb128 with gdb_skip_leb128.
5380 (skip_unknown_opcode): New arg mac_end. All callers updated.
5381 (fill_in_loclist_baton): Initialize baton->from_dwo.
5382
5383 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5384
5385 * mips-linux-nat.c (mips_linux_read_description): Use a more
5386 verbose error message.
5387
5388 2012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5389
5390 * NEWS: Add MIPS/Linux DSP support.
5391 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5392 (SIGCONTEXT_DSPCTL): New macro.
5393 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5394 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5395 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5396 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5397 (N64_SIGCONTEXT_HI3): Likewise.
5398 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5399 (N64_SIGCONTEXT_LO3): Likewise.
5400 (N64_SIGCONTEXT_DSPCTL): Likewise.
5401 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5402 (mips_linux_o32_sigframe_init): Handle DSP registers.
5403 (mips_linux_n32n64_sigframe_init): Likewise.
5404
5405 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5406
5407 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5408 call to abort.
5409
5410 2012-05-22 Pedro Alves <palves@redhat.com>
5411
5412 * target.h (store_waitstatus): Move declaration ...
5413 * inf-child.h (store_waitstatus): ... here.
5414 * target.c: Move inclusion of gdb_wait.h, and ...
5415 (store_waitstatus): ... this ...
5416 * inf-child.c: ... here.
5417 * linux-nat.c: Include inf-child.h.
5418 * rs6000-nat.c: Include inf-child.h.
5419 * spu-linux-nat.c: Include inf-child.h.
5420
5421 2012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5422
5423 * tracepoint.c (start_tracing): Add missing i18n markup.
5424 (stop_tracing, set_trace_user): Ditto.
5425 (set_trace_notes, set_trace_stop_notes): Ditto.
5426
5427 2012-05-21 Tom Tromey <tromey@redhat.com>
5428
5429 PR c++/7173:
5430 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5431 types.
5432 * value.h (value_cast_pointers): Update.
5433 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5434 (value_cast): Update.
5435 (update_search_result): New function.
5436 (do_search_struct_field): New, from search_struct_field. Check
5437 for ambiguous results.
5438 (search_struct_field): Rewrite.
5439 * infcall.c (value_arg_coerce): Update.
5440 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5441 value_cast_pointers.
5442 * ada-lang.c (ada_convert_actual): Update.
5443
5444 2012-05-21 Tom Tromey <tromey@redhat.com>
5445
5446 * macroexp.c (macro_stringify): Terminate the string.
5447
5448 2012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5449
5450 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5451 Describe it.
5452 * auto-load.c (auto_load_expand_dir_vars): New function.
5453 (auto_load_safe_path_vec_update): Use it, remove the
5454 substitute_path_component call thanks to it.
5455 (auto_load_objfile_script): Remove the debug_file_directory processing.
5456 Use auto_load_expand_dir_vars, remove the substitute_path_component
5457 call thanks to it.
5458 * configure: Regenerate.
5459 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5460 path. Escape $ also for $debugdir.
5461 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5462 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5463
5464 2012-05-20 Doug Evans <dje@google.com>
5465
5466 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5467 before use. Check for symtab->includes == NULL before scanning it.
5468
5469 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5470
5471 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5472
5473 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5474
5475 * NEWS: Add microMIPS support and "set mips compression",
5476 "show mips compression" commands.
5477 * mips-tdep.h (mips_isa): New enum.
5478 (gdbarch_tdep): Add mips_isa.
5479 (mips_pc_is_mips16): Update prototype.
5480 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5481 * mips-tdep.c (mips_compression_mips16): New variable.
5482 (mips_compression_micromips): Likewise.
5483 (mips_compression_strings): Likewise.
5484 (mips_compression_string): Likewise.
5485 (is_mips16_isa, is_micromips_isa): New functions.
5486 (is_mips16_addr): Rename to...
5487 (is_compact_addr): ... this.
5488 (unmake_mips16_addr): Likewise to...
5489 (unmake_compact_addr): ... this.
5490 (make_mips16_addr): Likewise to...
5491 (make_compact_addr): ... this.
5492 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5493 functions.
5494 (mips_elf_make_msymbol_special): Handle microMIPS code.
5495 (msymbol_is_special): Rename to...
5496 (msymbol_is_mips16): ... this.
5497 (mips_make_symbol_special, mips_pc_is_mips16): Update
5498 accordingly.
5499 (msymbol_is_mips, msymbol_is_micromips): New functions.
5500 (mips16_to_32_reg): Rename to...
5501 (mips_reg3_to_reg): ... this.
5502 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5503 (mips_pc_isa): Likewise.
5504 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5505 code.
5506 (mips_fetch_instruction): Pass return status instead of printing
5507 an error message if requested. Handle microMIPS code. Bail out
5508 on an invalid ISA.
5509 (micromips_op): New macro.
5510 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5511 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5512 (b6s4_op, b7s3_reg): Likewise.
5513 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5514 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5515 (mips_insn_size): New function.
5516 (mips32_next_pc): Update mips_fetch_instruction call.
5517 (micromips_relative_offset7): New function.
5518 (micromips_relative_offset10): Likewise.
5519 (micromips_relative_offset16): Likewise.
5520 (micromips_pc_insn_size): Likewise.
5521 (micromips_bc1_pc): Likewise.
5522 (micromips_next_pc): Likewise.
5523 (unpack_mips16): Update mips_fetch_instruction call.
5524 (extended_mips16_next_pc): Update according to change to
5525 mips16_to_32_reg.
5526 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5527 code.
5528 (mips16_scan_prologue): Update mips_fetch_instruction call.
5529 Update according to change to mips16_to_32_reg.
5530 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5531 (mips_insn16_frame_base_sniffer): Likewise.
5532 (micromips_decode_imm9): New function.
5533 (micromips_scan_prologue): Likewise.
5534 (mips_micro_frame_cache): Likewise.
5535 (mips_micro_frame_this_id): Likewise.
5536 (mips_micro_frame_prev_register): Likewise.
5537 (mips_micro_frame_sniffer): Likewise.
5538 (mips_micro_frame_unwind): New variable.
5539 (mips_micro_frame_base_address): New function.
5540 (mips_micro_frame_base): New variable.
5541 (mips_micro_frame_base_sniffer): New function.
5542 (mips32_scan_prologue): Update mips_fetch_instruction call.
5543 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5544 rather than for MIPS16.
5545 (mips_insn32_frame_base_sniffer): Likewise.
5546 (mips_addr_bits_remove): Handle microMIPS code.
5547 (deal_with_atomic_sequence): Rename to...
5548 (mips_deal_with_atomic_sequence): ... this. Update the type
5549 of the variable used to hold an instruction. Remove the ISA bit
5550 check. Update mips_fetch_instruction call.
5551 (micromips_deal_with_atomic_sequence): New function.
5552 (deal_with_atomic_sequence): Likewise.
5553 (mips_about_to_return): Handle microMIPS code. Update
5554 mips_fetch_instruction call.
5555 (heuristic_proc_start): Check for the standard MIPS ISA rather
5556 than for MIPS16. Update mips_pc_is_mips16 and
5557 mips_fetch_instruction calls. Handle microMIPS code.
5558 (mips_push_dummy_code): Handle microMIPS code.
5559 (mips_eabi_push_dummy_call): Likewise.
5560 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5561 (mips_o64_push_dummy_call): Handle microMIPS code.
5562 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5563 (is_delayed): Remove function.
5564 (mips_single_step_through_delay): Replace the call to is_delayed
5565 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5566 Handle microMIPS code.
5567 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5568 microMIPS code.
5569 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5570 call.
5571 (micromips_in_function_epilogue_p): New function.
5572 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5573 call.
5574 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5575 Handle microMIPS.
5576 (gdb_print_insn_mips): Likewise.
5577 (mips_breakpoint_from_pc): Likewise.
5578 (mips_remote_breakpoint_from_pc): New function.
5579 (mips32_instruction_has_delay_slot): Simplify making use of the
5580 updated mips_fetch_instruction interface.
5581 (micromips_instruction_has_delay_slot): New function.
5582 (mips16_instruction_has_delay_slot): Simplify making use of the
5583 updated mips_fetch_instruction interface.
5584 (mips_adjust_breakpoint_address): Check for the standard MIPS
5585 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
5586 calls. Handle microMIPS code.
5587 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5588 (mips_skip_trampoline_code): Handle microMIPS code.
5589 (global_mips_compression): New function.
5590 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5591 file flags. Register the microMIPS remote breakpoint handler
5592 and heuristic frame unwinder.
5593 (show_mips_compression): New function.
5594 (_initialize_mips_tdep): Add the "set mips compression" and
5595 "show mips compression" commands.
5596
5597 2012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5598
5599 * ada-lang.c:
5600 * ada-tasks.c:
5601 * ada-varobj.c:
5602 * amd64-darwin-tdep.c:
5603 * arm-symbian-tdep.c:
5604 * arm-tdep.c:
5605 * avr-tdep.c:
5606 * ax-gdb.c:
5607 * bfin-linux-tdep.c:
5608 * breakpoint.c:
5609 * c-valprint.c:
5610 * cli/cli-cmds.c:
5611 * coffread.c:
5612 * cp-support.c:
5613 * cris-tdep.c:
5614 * dwarf2-frame-tailcall.c:
5615 * dwarf2-frame.c:
5616 * dwarf2expr.c:
5617 * dwarf2loc.c:
5618 * dwarf2read.c:
5619 * elfread.c:
5620 * eval.c:
5621 * expprint.c:
5622 * f-valprint.c:
5623 * frv-tdep.c:
5624 * h8300-tdep.c:
5625 * hppa-hpux-tdep.c:
5626 * hppa-tdep.c:
5627 * hppanbsd-tdep.c:
5628 * i386-nto-tdep.c:
5629 * i386-tdep.c:
5630 * i387-tdep.c:
5631 * ia64-tdep.c:
5632 * jit.c:
5633 * linespec.c:
5634 * linux-tdep.c:
5635 * lm32-tdep.c:
5636 * m2-valprint.c:
5637 * m32c-tdep.c:
5638 * m32r-rom.c:
5639 * m32r-tdep.c:
5640 * m68k-tdep.c:
5641 * m68klinux-tdep.c:
5642 * mi/mi-main.c:
5643 * microblaze-tdep.c:
5644 * mips-linux-tdep.c:
5645 * mips-tdep.c:
5646 * mn10300-tdep.c:
5647 * p-valprint.c:
5648 * parse.c:
5649 * ppc-linux-tdep.c:
5650 * ppc-sysv-tdep.c:
5651 * printcmd.c:
5652 * python/py-finishbreakpoint.c:
5653 * python/py-inferior.c:
5654 * python/py-infthread.c:
5655 * python/py-type.c:
5656 * python/python.c:
5657 * remote-fileio.c:
5658 * remote-m32r-sdi.c:
5659 * remote-mips.c:
5660 * reverse.c:
5661 * rl78-tdep.c:
5662 * rs6000-aix-tdep.c:
5663 * rs6000-tdep.c:
5664 * s390-tdep.c:
5665 * score-tdep.c:
5666 * sh64-tdep.c:
5667 * skip.c:
5668 * solib-darwin.c:
5669 * solib-dsbt.c:
5670 * solib-frv.c:
5671 * sparc-tdep.c:
5672 * spu-multiarch.c:
5673 * spu-tdep.c:
5674 * stack.c:
5675 * symfile.c:
5676 * symtab.c:
5677 * tic6x-tdep.c:
5678 * tracepoint.c:
5679 * v850-tdep.c:
5680 * valarith.c:
5681 * valprint.c:
5682 * value.c:
5683 * xcoffread.c:
5684 * xtensa-tdep.c:
5685 * ada-lang.c:
5686 * ada-tasks.c:
5687 * ada-varobj.c:
5688 * amd64-darwin-tdep.c:
5689 * arm-symbian-tdep.c:
5690 * arm-tdep.c: Delete unused variables.
5691
5692 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5693
5694 Rename $ddir to $datadir.
5695 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5696 * auto-load.c (auto_load_safe_path_vec_update)
5697 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5698 * configure: Regenerate.
5699 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5700 Likewise. Remove the 'use $ddir' help string.
5701
5702 2012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5703
5704 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5705 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5706
5707 2012-05-18 Tom Tromey <tromey@redhat.com>
5708
5709 PR exp/13907:
5710 * valprint.h (struct value_print_options) <symbol_print>: New
5711 field.
5712 * valprint.c (user_print_options): Add default for symbol_print.
5713 (show_symbol_print): New function.
5714 (generic_val_print): Respect symbol_print.
5715 (_initialize_valprint): Add "print symbol" setting.
5716 * f-valprint.c (f_val_print): Respect symbol_print.
5717 * c-valprint.c (c_val_print): Respect symbol_print.
5718 * NEWS: Update.
5719 * printcmd.c (print_address_symbolic): Return int. Ignore some
5720 zero-size symbols.
5721 (print_address_demangle): Return int.
5722 * defs.h: (print_address_symbolic): Return int.
5723 * value.h (print_address_demangle): Return int.
5724
5725 2012-05-18 Tom Tromey <tromey@redhat.com>
5726
5727 * valprint.c (val_print_string): Don't print leading space.
5728 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5729 print space before string or vtbl.
5730 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5731 before string.
5732 * jv-valprint.c (java_value_print): Print space before string.
5733 * go-valprint.c (print_go_string): Print space before string.
5734 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5735 space before string.
5736 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5737 space before string or vtbl.
5738 * auxv.c (fprint_target_auxv): Print space after address.
5739
5740 2012-05-18 Tom Tromey <tromey@redhat.com>
5741
5742 * printcmd.c (print_address_demangle): Remove special case for 0.
5743
5744 2012-05-18 Tom Tromey <tromey@redhat.com>
5745
5746 * printcmd.c (print_address_demangle): Add 'opts' argument.
5747 * p-valprint.c (pascal_val_print): Update.
5748 * jv-valprint.c (java_val_print): Update.
5749 * value.h: Update.
5750 * valprint.c (generic_val_print): Update.
5751 (print_function_pointer_address): Add 'options' argument. Remove
5752 'addressprint' argument. Update.
5753 * m2-valprint.c (print_unpacked_pointer): Update.
5754 * gnu-v3-abi.c (print_one_vtable): Update.
5755 (gnuv3_print_method_ptr): Update.
5756 * f-valprint.c (f_val_print): Update.
5757 * cp-valprint.c (cp_print_value_fields): Update.
5758 * valprint.h (print_function_pointer_address): Update.
5759 * c-valprint.c (c_val_print): Update.
5760
5761 2012-05-18 Tom Tromey <tromey@redhat.com>
5762
5763 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5764 directly corresponding to the found psymtab.
5765 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5766 (dw2_find_pc_sect_symtab): Use it.
5767 * block.h (blockvector_contains_pc): Declare.
5768 * block.c (find_block_in_blockvector): New function.
5769 (blockvector_for_pc_sect): Use it.
5770 (blockvector_contains_pc): New function.
5771
5772 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5773
5774 * mips-tdep.h (mips_write_pc): New prototype.
5775 * mips-tdep.c (mips_write_pc): Make external, add description.
5776 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5777 add description.
5778
5779 2012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5780
5781 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5782 mips_regnum->pc.
5783 (mips_unwind_pc, mips_write_pc): Likewise.
5784 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5785 gdbarch_read_pc.
5786
5787 2012-05-17 Joel Brobecker <brobecker@adacore.com>
5788
5789 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5790 proc_warn, proc_error, proc_get_status, proc_flags,
5791 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5792 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5793 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
5794 proc_stop_process, proc_wait_for_stop, proc_run_process,
5795 proc_set_traced_signals, proc_set_traced_faults,
5796 proc_set_traced_sysentry, proc_set_traced_sysexit,
5797 proc_set_held_signals, proc_get_held_signals,
5798 proc_get_traced_signals, proc_get_traced_faults,
5799 proc_get_traced_sysentry, proc_get_traced_sysexit,
5800 proc_clear_current_fault, proc_set_current_signal,
5801 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
5802 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
5803 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
5804 proc_get_current_thread, proc_get_current_thread,
5805 proc_get_current_thread, proc_update_threads,
5806 proc_update_threads, proc_update_threads, proc_update_threads,
5807 proc_iterate_over_threads, procfs_find_new_threads,
5808 procfs_pid_to_str): Make static. Remove advance declaration.
5809 (proc_cursig): Make static. Conditionalized defintion on
5810 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
5811 (proc_syscall, proc_set_kill_on_last_close,
5812 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
5813 proc_get_pending_signals, proc_get_signal_actions,
5814 proc_trace_signal, proc_ignore_signal): Delete.
5815
5816 2012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
5817
5818 * coffread.c (cs_section_address): Passing proper argument for
5819 `bfd_get_section_vma'.
5820 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
5821 `bfd_get_section_flags'.
5822 * remote.c (remote_trace_set_readonly_regions): Likewise, for
5823 `bfd_get_section_vma'.
5824
5825 2012-05-16 Tom Tromey <tromey@redhat.com>
5826
5827 PR macros/13205:
5828 * macrotab.h: (macro_define_special): Declare.
5829 (enum macro_special_kind): New.
5830 (struct macro_definition) <argc, replacement>: Update comments.
5831 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
5832 (macro_define_object_internal): New function.
5833 (macro_define_object): Use it.
5834 (macro_define_special): New function.
5835 (fixup_definition): New function.
5836 (macro_lookup_definition, foreach_macro_in_scope)
5837 (foreach_macro): Use fixup_definition.
5838 * macroexp.h (macro_stringify): Declare.
5839 * macroexp.c (free_buffer_return_text): New function.
5840 (stringify): Constify "arg".
5841 (macro_stringify): New function.
5842 * dwarf2read.c (macro_start_file): Call macro_define_special.
5843
5844 2012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
5845 Maciej W. Rozycki <macro@mips.com>
5846
5847 * breakpoint.h (bp_location): Add related_address member.
5848 * inferior.h (get_return_value): Take a pointer to struct value
5849 instead of struct type for the function requested.
5850 * value.h (using_struct_return): Likewise.
5851 * gdbarch.sh (return_value): Take a pointer to struct value
5852 instead of struct type for the function requested.
5853 * breakpoint.c (set_breakpoint_location_function): Initialize
5854 related_address for bp_gnu_ifunc_resolver breakpoints.
5855 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
5856 requested function's address to gdbarch_return_value.
5857 * eval.c (evaluate_subexp_standard): Pass the requested
5858 function's address to using_struct_return.
5859 * infcall.c (call_function_by_hand): Pass the requested
5860 function's address to using_struct_return and
5861 gdbarch_return_value.
5862 * infcmd.c (get_return_value): Take a pointer to struct value
5863 instead of struct type for the function requested.
5864 (print_return_value): Update accordingly.
5865 (finish_command_continuation): Likewise.
5866 * stack.c (return_command): Pass the requested function's
5867 address to using_struct_return and gdbarch_return_value.
5868 * value.c (using_struct_return): Take a pointer to struct value
5869 instead of struct type for the function requested. Pass the
5870 requested function's address to gdbarch_return_value.
5871 * python/py-finishbreakpoint.c (finish_breakpoint_object):
5872 New function_value member, replacing function_type.
5873 (bpfinishpy_dealloc): Update accordingly.
5874 (bpfinishpy_pre_stop_hook): Likewise.
5875 (bpfinishpy_init): Likewise. Record the requested function's
5876 address.
5877 * mips-tdep.c (mips_fval_reg): New enum.
5878 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
5879 words put in GP registers.
5880 (mips_o64_push_dummy_call): Update a comment.
5881 (mips_o32_return_value): Take a pointer to struct value instead
5882 of struct type for the function requested and use it to check if
5883 using the MIPS16 calling convention. Return the designated
5884 general purpose registers for floating-point values returned in
5885 MIPS16 mode.
5886 (mips_o64_return_value): Likewise.
5887 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
5888 (ppc_sysv_abi_broken_return_value): Likewise.
5889 (ppc64_sysv_abi_return_value): Likewise.
5890 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
5891 value instead of struct type for the function requested.
5892 * amd64-tdep.c (amd64_return_value): Likewise.
5893 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
5894 * arm-tdep.c (arm_return_value): Likewise.
5895 * avr-tdep.c (avr_return_value): Likewise.
5896 * bfin-tdep.c (bfin_return_value): Likewise.
5897 * cris-tdep.c (cris_return_value): Likewise.
5898 * frv-tdep.c (frv_return_value): Likewise.
5899 * h8300-tdep.c (h8300_return_value): Likewise.
5900 (h8300h_return_value): Likewise.
5901 * hppa-tdep.c (hppa32_return_value): Likewise.
5902 (hppa64_return_value): Likewise.
5903 * i386-tdep.c (i386_return_value): Likewise.
5904 * ia64-tdep.c (ia64_return_value): Likewise.
5905 * iq2000-tdep.c (iq2000_return_value): Likewise.
5906 * lm32-tdep.c (lm32_return_value): Likewise.
5907 * m32c-tdep.c (m32c_return_value): Likewise.
5908 * m32r-tdep.c (m32r_return_value): Likewise.
5909 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
5910 * m68k-tdep.c (m68k_return_value): Likewise.
5911 (m68k_svr4_return_value): Likewise.
5912 * m88k-tdep.c (m88k_return_value): Likewise.
5913 * mep-tdep.c (mep_return_value): Likewise.
5914 * microblaze-tdep.c (microblaze_return_value): Likewise.
5915 * mn10300-tdep.c (mn10300_return_value): Likewise.
5916 * moxie-tdep.c (moxie_return_value): Likewise.
5917 * mt-tdep.c (mt_return_value): Likewise.
5918 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
5919 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
5920 (ppc_sysv_abi_broken_return_value): Likewise.
5921 (ppc64_sysv_abi_return_value): Likewise.
5922 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
5923 * rl78-tdep.c (rl78_return_value): Likewise.
5924 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
5925 * rx-tdep.c (rx_return_value): Likewise.
5926 * s390-tdep.c (s390_return_value): Likewise.
5927 * score-tdep.c (score_return_value): Likewise.
5928 * sh-tdep.c (sh_return_value_nofpu): Likewise.
5929 (sh_return_value_fpu): Likewise.
5930 * sh64-tdep.c (sh64_return_value): Likewise.
5931 * sparc-tdep.c (sparc32_return_value): Likewise.
5932 * sparc64-tdep.c (sparc64_return_value): Likewise.
5933 * spu-tdep.c (spu_return_value): Likewise.
5934 * tic6x-tdep.c (tic6x_return_value): Likewise.
5935 * v850-tdep.c (v850_return_value): Likewise.
5936 * vax-tdep.c (vax_return_value): Likewise.
5937 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
5938 * xtensa-tdep.c (xtensa_return_value): Likewise.
5939 * gdbarch.c: Regenerate.
5940 * gdbarch.h: Regenerate.
5941
5942 2012-05-15 Tom Tromey <tromey@redhat.com>
5943
5944 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
5945
5946 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5947
5948 * breakpoint.c (init_breakpoint_sal): Add quotes around part
5949 of command in two error message.
5950
5951 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5952
5953 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
5954
5955 2012-05-15 Joel Brobecker <brobecker@adacore.com>
5956
5957 * breakpoint.c (find_condition_and_thread): Minor reformatting.
5958
5959 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5960
5961 * NEWS (show auto-load scripts-directory): Add forgotten command.
5962
5963 2012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
5964
5965 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
5966 parameters.
5967
5968 2012-05-14 H.J. Lu <hongjiu.lu@intel.com>
5969
5970 * amd64-tdep.c: Include features/i386/x32.c and
5971 features/i386/x32-avx.c.
5972 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
5973 initialize_tdesc_x32_avx.
5974
5975 2012-05-14 Stan Shebs <stan@codesourcery.com>
5976
5977 Add dynamic printf.
5978 * breakpoint.h (enum bptype): New type bp_dprintf.
5979 (struct breakpoint): New field extra_string.
5980 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
5981 (create_breakpoint): Add extra_string arg.
5982 * breakpoint.c (dprintf_breakpoint_ops): New.
5983 (is_breakpoint): Add bp_dprintf.
5984 (bpstat_what): Add dprintf case.
5985 (bptype_string): Ditto.
5986 (print_one_breakpoint_location): Ditto.
5987 (init_bp_location): Ditto.
5988 (bkpt_print_mention): Ditto.
5989 (dprintf_style_enums): New array.
5990 (dprintf_style): New global.
5991 (dprintf_function): New global.
5992 (dprintf_channel): New global.
5993 (update_dprintf_command_list): New function.
5994 (update_dprintf_commands): New function.
5995 (init_breakpoint_sal): Add extra_string argument, handle it.
5996 (create_breakpoint_sal): Add extra_string argument.
5997 (create_breakpoints_sal): Add extra_string argument, update callers.
5998 (find_condition_and_thread): Add extra argument.
5999 (create_breakpoint): Add extra_string argument, record it.
6000 (dprintf_command): New function.
6001 (break_command_1): Add arg to create_breakpoint call.
6002 (handle_gnu_v3_exceptions): Ditto.
6003 (trace_command): Ditto.
6004 (ftrace_command): Ditto.
6005 (strace_command): Ditto.
6006 (bkpt_print_mention): Add dprintf case.
6007 (create_breakpoint_sal_default): Add extra_string argument.
6008 (_initialize_breakpoint): Add new commands.
6009 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6010 * python/py-breakpoint.c (bppy_init): Ditto.
6011 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6012
6013 2012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6014
6015 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6016
6017 2012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6018
6019 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6020 unsigned long long.
6021
6022 2012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6023
6024 Add a new function gdb.find_pc_line to the Python API.
6025 * NEWS (Python Scripting): Add entry about the new function.
6026 * python/python.c (gdbpy_find_pc_line): New function which
6027 implements gdb.find_pc_line.
6028 (GdbMethods): Add entry for the new function.
6029
6030 2012-05-12 Pedro Alves <palves@redhat.com>
6031
6032 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6033 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6034
6035 2012-05-12 Eli Zaretskii <eliz@gnu.org>
6036
6037 * inferior.c: Include completer.h
6038 (initialize_inferiors): Set completer of add-inferior to
6039 filename_completer.
6040
6041 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6042
6043 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6044 gdbarch_ptr_bit for x32 core dump.
6045
6046 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6047
6048 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6049 and features/i386/x32-avx-linux.c.
6050
6051 2012-05-11 Stan Shebs <stan@codesourcery.com>
6052 Kwok Cheung Yeung <kcy@codesourcery.com>
6053
6054 * NEWS: Describe new info os commands.
6055 * common/linux-osdata.c (PID_T, TIME_T): Define.
6056 (MAX_PID_T_STRLEN): New.
6057 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6058 MAX_PID_T_STRLEN.
6059 (command_from_pid): Add comment. Change to use PID_T.
6060 (commandline_from_pid): Change to use PID_T.
6061 (user_from_pid): Add comment.
6062 (get_process_owner): Add comment. Change to use PID_T and
6063 MAX_PID_T_STRLEN.
6064 (get_number_of_cpu_cores): Add comment.
6065 (get_cores_used_by_process): Add comment. Change to use PID_T and
6066 MAX_PID_T_STRLEN.
6067 (linux_xfer_osdata_processes): Change to use PID_T and
6068 MAX_PID_T_STRLEN.
6069 (compare_processes): New function.
6070 (linux_xfer_osdata_processgroups): New function.
6071 (linux_xfer_osdata_threads): Change to use PID_T.
6072 (linux_xfer_osdata_fds): New function.
6073 (format_socket_state, print_sockets): New functions.
6074 (union socket_addr): New union.
6075 (linux_xfer_osdata_isockets): New function.
6076 (time_from_time_t, group_from_gid): New functions.
6077 (linux_xfer_osdata_shm): New function.
6078 (linux_xfer_osdata_sem): New function.
6079 (linux_xfer_osdata_msg): New function.
6080 (linux_xfer_osdata_modules): New function.
6081 (osdata_table): Add new entries.
6082 * common/buffer.c (buffer_xml_printf): Add support for long and
6083 long long format specifiers.
6084
6085 2012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6086
6087 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6088 (tdesc_x32_avx_linux): Likewise.
6089
6090 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6091
6092 Implement multi-component --with-auto-load-dir.
6093 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6094 entries.
6095 (--with-auto-load-safe-path): Update the default value description.
6096 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6097 New.
6098 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6099 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6100 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6101 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6102 "set auto-load scripts-directory".
6103 * config.in: Regenerate.
6104 * configure: Regenerate.
6105 * configure.ac (--with-auto-load-dir): New configure option.
6106 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6107
6108 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6109
6110 Provide $ddir substitution for --with-auto-load-safe-path.
6111 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6112 entries.
6113 * auto-load.c: Include observer.h.
6114 (auto_load_safe_path_vec_update): Call substitute_path_component for
6115 each component. New variable ddir_subst.
6116 (auto_load_gdb_datadir_changed): New function.
6117 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6118 AUTO_LOAD_SAFE_PATH. New comment.
6119 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6120 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6121 * config.in: Regenerate.
6122 * configure: Regenerate.
6123 * configure.ac (--auto-load-safe-path): Rename
6124 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6125 GDB_DATADIR/auto-load.
6126 * defs.h (substitute_path_component): New declaration.
6127 * top.c: Include observer.h.
6128 (set_gdb_datadir): New function.
6129 (init_main): Install it for "set data-directory".
6130 * utils.c (substitute_path_component): New function.
6131
6132 2012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6133
6134 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6135 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6136 DEBUG_FILE_DIRECTORY. Handle multiple components of
6137 DEBUG_FILE_DIRECTORY.
6138
6139 2012-05-10 Tom Tromey <tromey@redhat.com>
6140
6141 * dwarf2read.c (recursively_write_psymbols): New function.
6142 (write_psymtabs_to_index): Use it.
6143
6144 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6145 field.
6146 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6147 (load_partial_comp_unit): Update.
6148 (queue_comp_unit): Add argument 'pretend_language'.
6149 (process_queue): Update.
6150 (psymtab_to_symtab_1): Skip dependencies that have a user.
6151 (load_partial_comp_unit_reader): Give meaning to the 'data'
6152 argument.
6153 (load_full_comp_unit): Add 'pretend_language' argument.
6154 (process_full_comp_unit): Add 'pretend_language' argument. Set
6155 language on CU.
6156 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6157 Update.
6158 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6159 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6160 Update.
6161 (prepare_one_comp_unit): Add 'pretend_language' argument.
6162
6163 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6164 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6165 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6166 (dw2_do_instantiate_symtab): Check whether symtab was read in
6167 before queueing.
6168 (dw2_instantiate_symtab): Add assertion. Call
6169 process_cu_includes.
6170 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6171 (partial_symtab_p): New typedef.
6172 (set_partial_user): New function.
6173 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6174 (scan_partial_symbols): Add imported CU to imported_symtabs.
6175 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6176 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6177 (get_symtab, recursively_compute_inclusions)
6178 (compute_symtab_includes, process_cu_includes)
6179 (process_imported_unit_die): New functions.
6180 (process_die) <DW_TAG_imported_unit>: New case.
6181 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6182
6183 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6184 comment.
6185 (struct partial_die_info) <locdesc>: Remove.
6186 <d>: New field.
6187 (process_psymtab_comp_unit): Add 'read_partial' argument.
6188 Update.
6189 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6190 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6191 (add_partial_symbol): Update.
6192 (process_die): Handle DW_TAG_partial_unit.
6193 (read_file_scope): Update comment.
6194 (load_partial_dies): Handle DW_TAG_imported_unit.
6195 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6196 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6197
6198 2012-05-10 Tom Tromey <tromey@redhat.com>
6199
6200 * cc-with-dwz.sh: New file.
6201
6202 2012-05-10 Tom Tromey <tromey@redhat.com>
6203
6204 * symtab.h (struct symtab) <includes, user>: New fields.
6205 * block.h (struct block_iterator) <d, idx, which>: New fields.
6206 * block.c (initialize_block_iterator, find_iterator_symtab)
6207 (block_iterator_step, block_iter_name_step)
6208 (block_iter_match_step): New functions.
6209 (block_iterator_first, block_iterator_next)
6210 (block_iter_name_first, block_iter_name_next)
6211 (block_iter_match_first, block_iter_match_next): Rewrite.
6212 (get_block_symtab): New function.
6213
6214 2012-05-10 Tom Tromey <tromey@redhat.com>
6215
6216 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6217 set_block_symtab.
6218 * jit.c (finalize_symtab): Use allocate_global_block,
6219 set_block_symtab.
6220 * buildsym.c (finish_block_internal): New function, from old
6221 finish_block.
6222 (finish_block): Rewrite.
6223 (end_symtab): Use finish_block_internal, set_block_symtab.
6224 * block.h (struct global_block): New.
6225 (allocate_global_block, set_block_symtab): Declare.
6226 * block.c (allocate_global_block, set_block_symtab): New
6227 functions.
6228
6229 2012-05-10 Tom Tromey <tromey@redhat.com>
6230
6231 * psymtab.c (partial_map_expand_apply): Add assertion.
6232 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6233 (psymtab_to_symtab): Find unshared psymtab.
6234 (dump_psymtab): Print including psymtabs.
6235 (recursively_search_psymtabs): New function.
6236 (expand_symtabs_matching_via_partial): Use it.
6237 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6238 fields.
6239 (enum psymtab_search_status): New.
6240
6241 2012-05-10 Tom Tromey <tromey@redhat.com>
6242
6243 * tracepoint.c (scope_info): Update.
6244 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6245 (find_pc_sect_symtab, search_symbols)
6246 (default_make_symbol_completion_list_break_on)
6247 (make_file_symbol_completion_list): Update.
6248 * symmisc.c (dump_symtab_1): Update.
6249 * stack.c (print_frame_args, iterate_over_block_locals)
6250 (print_frame_labels, iterate_over_block_arg_vars): Update.
6251 * python/py-block.c (block_object) <dict>: Remove.
6252 <block>: New field.
6253 <iter>: Change type.
6254 (blpy_iter): Update.
6255 (blpy_block_syms_iternext): Update.
6256 * psymtab.c (map_block): Use block iterators.
6257 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6258 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6259 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6260 * infrun.c (check_exception_resume): Update.
6261 * cp-support.c (make_symbol_overload_list_block): Update.
6262 * coffread.c (patch_opaque_types): Update.
6263 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6264 * block.h (struct block_iterator): New.
6265 (block_iterator_first, block_iterator_next, block_iter_name_first)
6266 (block_iter_name_next, block_iter_match_first)
6267 (block_iter_match_next): Declare.
6268 (ALL_BLOCK_SYMBOLS): Redefine.
6269 * block.c (block_iterator_first, block_iterator_next)
6270 (block_iter_name_first, block_iter_name_next)
6271 (block_iter_match_first, block_iter_match_next): New functions.
6272 * ada-lang.c (ada_add_block_symbols)
6273 (ada_make_symbol_completion_list): Use block iterator.
6274
6275 2012-05-10 Tom Tromey <tromey@redhat.com>
6276
6277 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6278 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6279 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6280 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6281 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6282 Update.
6283
6284 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6285
6286 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6287 print-file-var-lib2.c, print-file-var-main.c and
6288 print-file-var.exp (located in gdb/testsuite/gdb.base).
6289
6290 2012-05-10 Joel Brobecker <brobecker@adacore.com>
6291
6292 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6293 try locating the symbol in the symbol's own objfile first, before
6294 extending the search to all objfiles.
6295 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6296 out of lookup_symbol_aux_symtabs.
6297 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6298 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6299 Do not search EXCLUDE_OBJFILE.
6300 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6301 (lookup_symbol_global): Search for matches in the block's objfile
6302 first, before searching all other objfiles.
6303
6304 2012-05-10 Tristan Gingold <gingold@adacore.com>
6305
6306 * printcmd.c (set_command): Add pre/post inc/dec.
6307
6308 2012-05-09 Frank Ch. Eigler <fche@redhat.com>
6309
6310 * gdb.1: Document -ex option.
6311
6312 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6313
6314 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6315 * inferior.h (AT_SYMBOL): Delete.
6316
6317 2012-05-09 Joel Brobecker <brobecker@adacore.com>
6318
6319 * mips-tdep.c (mips_push_dummy_code): New function.
6320 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6321 ON_STACK and install mips_push_dummy_code as our gdbarch
6322 push_dummy_code routine.
6323
6324 2012-05-09 Pedro Alves <palves@redhat.com>
6325
6326 * target.c (set_maintenance_target_async_permitted): Rename to ...
6327 (set_target_async_command): ... this.
6328 (show_maintenance_target_async_permitted): Rename to ...
6329 (show_target_async_command): ... this.
6330 (initialize_targets): Adjust.
6331
6332 2012-05-08 Doug Evans <dje@google.com>
6333
6334 * go-exp.y (classify_name): Add missing assignment of fields of
6335 yylval.ssym.
6336
6337 2012-05-08 Eli Zaretskii <eliz@gnu.org>
6338
6339 Display the ">" prompt in interactive mode while reading canned
6340 commands, even when the current interpreter is MI.
6341
6342 * interps.c (interp_set_temp): New function.
6343
6344 * interps.h (interp_set_temp): Add prototype.
6345
6346 * cli/cli-script.c (restore_interp): New cleanup function.
6347 (read_command_lines): Temporarily override the current interpreter
6348 with CLI and arrange for restoring the original one.
6349
6350 2012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6351
6352 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6353
6354 2012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6355
6356 * probe.c (parse_probes): Move conditional to check for
6357 debuginfo files from here...
6358 * stap-probe.c (stap_get_probes): ... to here.
6359
6360 2012-05-07 Mark Kettenis <kettenis@gnu.org>
6361 H.J. Lu <hongjiu.lu@intel.com>
6362
6363 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6364 `movl %esp, %ebp' for the X32 ABI.
6365
6366 2012-05-07 Tom Tromey <tromey@redhat.com>
6367
6368 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6369 get_DW_TAG_name.
6370 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6371 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6372 (dwarf_stack_op_name): Remove.
6373 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6374 (decode_locdesc): Use get_DW_OP_name.
6375 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6376 (dwarf2_compile_expr_to_ax): Likewise.
6377 (disassemble_dwarf_expression): Likewise.
6378 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6379
6380 2012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6381
6382 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6383 (sh_linux_sigtramp_cache): New function.
6384 (sh_linux_sigreturn_init): New function.
6385 (sh_linux_rt_sigreturn_init): New function.
6386 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6387 patterns.
6388 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6389 syscall codes.
6390 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6391 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6392 (sh_linux_init_abi): Add init calls to register new tramp_frame
6393 definitions under 32-bit SH, update comments.
6394
6395 2012-05-07 Pedro Alves <palves@redhat.com>
6396
6397 PR gdb/10952
6398
6399 * amd64-linux-tdep.c: Include glibc-tdep.h.
6400 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6401 gdbarch_skip_solib_resolver callback.
6402
6403 2012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6404
6405 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6406 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6407 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6408 (add_auto_load_safe_path): Change the error message.
6409 (_initialize_auto_load): Change the "safe-path" help text.
6410 * configure: Regenerate
6411 * configure.ac (--without-auto-load-safe-path): Set
6412 WITH_AUTO_LOAD_SAFE_PATH to /.
6413
6414 2012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6415
6416 * stap-probe.h: Do not include unecessary `probe.h'.
6417
6418 2012-05-05 Alan Modra <amodra@gmail.com>
6419
6420 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6421 bfd_und_section_ptr.
6422 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6423 and bfd_com_section_ptr.
6424
6425 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6426
6427 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
6428
6429 2012-05-04 Joel Brobecker <brobecker@adacore.com>
6430
6431 * windows-nat.h (segment_register_p_ftype): New typedef.
6432 (windows_set_segment_register_p): Add declaration.
6433 * windows-nat.c (segment_register_p): New static global.
6434 (windows_set_segment_register_p): New function.
6435 (do_windows_fetch_inferior_registers): Add special handling
6436 for segment registers.
6437 * amd64-windows-nat.c: #include "amd64-tdep.h".
6438 (amd64_windows_segment_register_p): New function.
6439 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6440 * i386-windows-nat.c: #include "i386-tdep.h".
6441 (i386_windows_segment_register_p): New function.
6442 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6443
6444 2012-05-04 Tristan Gingold <gingold@adacore.com>
6445
6446 * printcmd.c (set_command): Emit a warning if the expression is not
6447 an assignment.
6448
6449 2012-05-03 Joel Brobecker <brobecker@adacore.com>
6450
6451 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6452 Make static.
6453
6454 2012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6455
6456 * stap-probe.c (stap_is_operator): Change declaration.
6457 (stap_get_opcode): Change return value.
6458 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6459 `stap_parse_argument_1'.
6460
6461 2012-05-03 Pedro Alves <pedro@codesourcery.com>
6462
6463 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6464 debug log.
6465
6466 2012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6467
6468 Add two new methods global_block and static_block to gdb.Symtab
6469 objects.
6470 * NEWS (Python scripting): Add entry about the new methods.
6471 * python/py-symtab.c (stpy_global_block): New function which
6472 implements the gdb.Symtab.global_block() method.
6473 (stpy_static_block): New function which implements the
6474 gdb.Symtab.static_block() method.
6475 (symtab_object_methods): Add entries for the two new methods.
6476
6477 2012-05-03 Doug Evans <dje@google.com>
6478
6479 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6480 files.
6481
6482 2012-05-03 Yao Qi <yao@codesourcery.com>
6483
6484 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6485 space.
6486 (i386_process_record): Ditto.
6487
6488 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6489
6490 * infcall.c (unwind_on_signal_p): Make static.
6491
6492 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6493
6494 * sol-thread.c (solaris_pid_to_str): Make static.
6495 (_initialize_sol_thread): Add prototype.
6496
6497 2012-05-02 Joel Brobecker <brobecker@adacore.com>
6498
6499 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6500
6501 2012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6502
6503 * MAINTAINERS: Remove myself.
6504
6505 2012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6506
6507 Fix --without-auto-load-safe-path for MS-Windows host platform.
6508 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6509
6510 2012-05-02 Eli Zaretskii <eliz@gnu.org>
6511
6512 * gdb_curses.h: Undefine KEY_EVENT before including curses
6513 headers. Move "#undef MOUSE_MOVED" before any curses header
6514 inclusion.
6515
6516 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6517
6518 * features/i386/i386-mmx-linux.c: Regenerate.
6519 * features/rs6000/powerpc-32.c: Likewise.
6520 * features/rs6000/powerpc-32l.c: Likewise.
6521 * features/rs6000/powerpc-403.c: Likewise.
6522 * features/rs6000/powerpc-403gc.c: Likewise.
6523 * features/rs6000/powerpc-405.c: Likewise.
6524 * features/rs6000/powerpc-505.c: Likewise.
6525 * features/rs6000/powerpc-601.c: Likewise.
6526 * features/rs6000/powerpc-602.c: Likewise.
6527 * features/rs6000/powerpc-603.c: Likewise.
6528 * features/rs6000/powerpc-604.c: Likewise.
6529 * features/rs6000/powerpc-64.c: Likewise.
6530 * features/rs6000/powerpc-64l.c: Likewise.
6531 * features/rs6000/powerpc-750.c: Likewise.
6532 * features/rs6000/powerpc-860.c: Likewise.
6533 * features/rs6000/powerpc-e500.c: Likewise.
6534 * features/rs6000/powerpc-e500l.c: Likewise.
6535 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6536 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6537 * features/rs6000/rs6000.c: Likewise.
6538
6539 2012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6540
6541 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6542 variable.
6543 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6544 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6545 (stap_parse_argument) <e>: Likewise.
6546 (handle_stap_probe) <byte_order>: Likewise.
6547
6548 2012-04-30 Doug Evans <dje@google.com>
6549
6550 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6551 init_and_read_dies_worker. All callers updated.
6552 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6553 replaced with init_cutu_and_read_dies.
6554 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6555 (find_partial_die): Remove FIXME. Don't free current CU.
6556
6557 2012-04-30 Sterling Augustine <saugustine@google.com>
6558
6559 * contrib: New directory.
6560 * contrib/test_pubnames_and_indexes.py: New file.
6561
6562 2012-04-30 Doug Evans <dje@google.com>
6563
6564 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6565 All callers updated.
6566 (init_cu_die_reader): Verify the section is non-empty.
6567 (dwarf_decode_line_header): Don't dereference section->asection
6568 until we know the section is present.
6569
6570 2012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6571
6572 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6573 probes.
6574
6575 2012-04-29 Yao Qi <yao@codesourcery.com>
6576
6577 * gdb-code-style.el: New hook gdb-markup-hook
6578 and gdb-comment-hook.
6579
6580 2012-04-28 Doug Evans <dje@google.com>
6581
6582 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6583 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6584 objfile->obfd.
6585 * symfile.h (dwarf2_debug_sections): New member addr.
6586 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6587 (ctx_no_get_addr_index): New function.
6588 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6589 (ctx_no_get_addr_index): Declare.
6590 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6591 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6592 (dwarf_expr_ctx_funcs): Update.
6593 (needs_get_addr_index): New function.
6594 (needs_frame_ctx_funcs): Update.
6595 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6596 * dwarf2read.c: #include "gdbcore.h".
6597 (dwarf2_per_objfile): New members addr, dwo_files.
6598 (dwarf2_elf_names): Add entry for addr.
6599 (struct dwo_section_names): New type.
6600 (dwo_section_names): New static global.
6601 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6602 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6603 old debug_types_section member updated to use this.
6604 Rename member debug_types_section to info_or_types_section,
6605 all uses updated.
6606 (signatured_type): Rename member type_offset to type_offset_in_tu,
6607 all uses updated. New member type_offset_in_section.
6608 (struct dwo_sections): New type.
6609 (struct dwo_unit): New type.
6610 (struct dwo_file): New type.
6611 (die_reader_specs): New member dwo_file.
6612 (dwarf2_locate_sections): Watch for .debug_addr.
6613 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6614 (dwarf2_read_section): Get bfd of section from bfd's asection,
6615 instead of objfile.
6616 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6617 (create_signatured_type_table_from_index): Initialize
6618 sig_type->info_or_types_section.
6619 (dw2_get_file_names): Statement lists for type units with DWO files
6620 live in the DWO file.
6621 (create_debug_types_hash_table): New function.
6622 (create_all_type_units): Rewrite.
6623 (init_cu_die_reader): New arg dwo_file, all callers updated.
6624 (init_and_read_dies_worker): Get section from
6625 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6626 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6627 continue reading the CU/TU from there.
6628 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6629 updated. Get section from this_cu->info_or_types_section.
6630 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6631 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6632 DW_FORM_GNU_str_index.
6633 (hash_dwo_file, eq_dwo_file): New functions.
6634 (allocate_dwo_file_hash_table): New function.
6635 (hash_dwo_unit, eq_dwo_unit): New functions.
6636 (allocate_dwo_unit_table): New function.
6637 (dwarf2_locate_dwo_sections): New function.
6638 (struct create_dwo_info_table_data): New type.
6639 (create_debug_info_hash_table_reader): New function.
6640 (create_debug_info_hash_table): New function.
6641 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6642 (lookup_dwo_file): New function.
6643 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6644 (free_dwo_file, free_dwo_file_cleanup): New functions.
6645 (free_dwo_file_from_slot, free_dwo_files): New functions.
6646 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6647 (dwarf2_record_block_ranges): Ditto.
6648 (read_partial_die): Ditto.
6649 (process_enumeration_scope): Update to use type_offset_in_section.
6650 (read_full_die_1): New function.
6651 (read_full_die): Rewrite.
6652 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6653 DW_FORM_GNU_str_index.
6654 (read_addr_index_1, read_addr_index): New functions.
6655 (read_addr_index_from_leb128): New function.
6656 (struct dwarf2_read_addr_index_data): New type.
6657 (dwarf2_read_addr_index_reader): New function.
6658 (dwarf2_read_addr_index): New function.
6659 (read_str_index): New function.
6660 (leb128_size): New function.
6661 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6662 If processing a type unit from a DWO file, get the line section
6663 from the DWO file.
6664 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6665 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6666 DW_FORM_GNU_str_index.
6667 (lookup_die_type): Check whether section offset of type's die is
6668 known before looking it up. Remove assert. Condition can
6669 legimately happen for inter-cu type references.
6670 (dwarf_attr_name): Handle Fission attributes.
6671 (dwarf_form_name): Handle Fission forms.
6672 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6673 DW_FORM_GNU_str_index.
6674 (follow_die_sig): Update to use type_offset_in_section.
6675 (decode_locdesc): New case DW_OP_GNU_addr_index.
6676 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6677 DW_FORM_GNU_str_index.
6678 (cu_debug_loc_section): New function.
6679 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6680 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6681 Free DWO files if present.
6682 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6683
6684 Refactor DIE reading.
6685 * dwarf2read.c (dwarf2_per_objfile): Replace members
6686 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6687 (die_reader_specs): New member "die_section". Temporarily make
6688 member "buffer" non-const, pending constifying all info_ptr uses.
6689 (die_reader_func_ftype): New typedef.
6690 (dw2_get_file_names_reader): New function.
6691 (dw2_get_file_names): Rewrite.
6692 (read_and_check_type_unit_head): Rename arg type_offset to
6693 type_offset_in_tu.
6694 (create_all_type_units): Improve debugging message.
6695 Improve dummy type unit check.
6696 (init_cu_die_reader): New arg "section". All callers updated.
6697 (init_and_read_dies_worker): New function.
6698 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6699 (init_cutu_and_read_dies_no_follow): New function.
6700 (init_cutu_and_read_dies_simple): New function.
6701 (process_psymtab_comp_unit_reader): New function.
6702 (process_psymtab_comp_unit): Delete args section,
6703 is_debug_types_section. Rewrite. All callers updated.
6704 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6705 All callers updated. Rewrite.
6706 (load_partial_comp_unit_reader): New function.
6707 (load_partial_comp_unit): Rewrite.
6708 (skip_children): New arg reader. Delete args buffer, cu.
6709 All callers updated.
6710 (skip_one_die): New arg reader. Delete args buffer, cu.
6711 All callers updated.
6712 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6713 All callers updated.
6714 (load_full_comp_unit_reader): New function.
6715 (load_full_comp_unit): Rewrite.
6716 (read_comp_unit): Delete.
6717 (read_die_and_children_1): Delete, contents moved ...
6718 (read_die_and_children): ... here.
6719 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6720 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6721 All callers updated.
6722 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6723 All callers updated.
6724 (find_partial_die): Rewrite load_all_dies support.
6725 (read_attribute_value): New arg reader. Delete args abfd, cu.
6726 All callers updated.
6727 (read_attribute): New arg reader. Delete args abfd, cu.
6728 All callers updated.
6729 (load_full_type_unit): Add assert.
6730 (read_signatured_type_reader): New function.
6731 (read_signatured_type): Rewrite.
6732 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6733 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6734 All callers updated. Set per_cu->cu = NULL after freeing it.
6735 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6736 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6737 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6738 (set_die_type): Update.
6739 (get_die_type_at_offset): Update.
6740 (read_file_scope): Call prepare_one_comp_unit.
6741 (read_type_unit_scope): Ditto.
6742 (prepare_one_comp_unit): Set producer if present.
6743
6744 2012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6745
6746 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6747 gettext function on `error'.
6748
6749 2012-04-27 Doug Evans <dje@google.com>
6750
6751 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6752 is empty.
6753
6754 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6755 Tom Tromey <tromey@redhat.com>
6756
6757 * breakpoint.c (struct breakpoint_objfile_data)
6758 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6759 <exception_probes>: New fields.
6760 (free_breakpoint_probes): New function.
6761 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6762 `_Unwind_DebugHook'.
6763 (create_exception_master_breakpoint): Likewise.
6764 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6765 * infrun.c: Including necessary header files for handling SystemTap
6766 probes.
6767 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6768 via SystemTap probes.
6769 (check_exception_resume): Remove `func' argument. Handle exception
6770 unwinding breakpoint set via a SystemTap probe.
6771 (insert_exception_resume_from_probe): New function.
6772
6773 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6774 Tom Tromey <tromey@redhat.com>
6775 Jan Kratochvil <jan.kratochvil@redhat.com>
6776
6777 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6778 (COMMON_OBS): Likewise.
6779 (HFILES_NO_SRCDIR): Add `probe'.
6780 * NEWS: Mention support for static and SystemTap probes.
6781 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6782 SystemTap probes' arguments parser.
6783 * arm-linux-tdep.c: Including headers needed to perform the parsing
6784 of SystemTap probes' arguments.
6785 (arm_stap_is_single_operand): New function.
6786 (arm_stap_parse_special_token): Likewise.
6787 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6788 probes' arguments parser.
6789 * ax-gdb.c (require_rvalue): Removing static declaration.
6790 (gen_expr): Likewise.
6791 * ax-gdb.h (gen_expr): Declaring function.
6792 (require_rvalue): Likewise.
6793 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
6794 (bkpt_probe_breakpoint_ops): New variable.
6795 (momentary_breakpoint_from_master): Set the `probe' value.
6796 (add_location_to_breakpoint): Likewise.
6797 (break_command_1): Using proper breakpoint_ops according to the
6798 argument passed by the user in the command line.
6799 (bkpt_probe_insert_location): New function.
6800 (bkpt_probe_remove_location): Likewise.
6801 (bkpt_probe_create_sals_from_address): Likewise.
6802 (bkpt_probe_decode_linespec): Likewise.
6803 (tracepoint_probe_create_sals_from_address): Likewise.
6804 (tracepoint_probe_decode_linespec): Likewise.
6805 (tracepoint_probe_breakpoint_ops): New variable.
6806 (trace_command): Using proper breakpoint_ops according to the
6807 argument passed by the user in the command line.
6808 (initialize_breakpoint_ops): Initializing breakpoint_ops for
6809 static probes on breakpoints and tracepoints.
6810 * breakpoint.h (struct bp_location) <probe>: New field.
6811 * cli-utils.c (skip_spaces_const): New function.
6812 (extract_arg): Likewise.
6813 * cli-utils.h (skip_spaces_const): Likewise.
6814 (extract_arg): Likewise.
6815 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
6816 * configure.ac: Append `stap-probe.o' to be generated when ELF
6817 support is present.
6818 * configure: Regenerate.
6819 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
6820 * elfread.c: Include `probe.h' and `arch-utils.h'.
6821 (probe_key): New variable.
6822 (elf_get_probes): New function.
6823 (elf_get_probe_argument_count): Likewise.
6824 (elf_evaluate_probe_argument): Likewise.
6825 (elf_compile_to_ax): Likewise.
6826 (elf_symfile_relocate_probe): Likewise.
6827 (stap_probe_key_free): Likewise.
6828 (elf_probe_fns): New variable.
6829 (elf_sym_fns): Add `sym_probe_fns' value.
6830 (elf_sym_fns_lazy_psyms): Likewise.
6831 (elf_sym_fns_gdb_index): Likewise.
6832 (_initialize_elfread): Initialize objfile cache for static
6833 probes.
6834 * gdb_vecs.h (struct probe): New forward declaration.
6835 (probe_p): New VEC declaration.
6836 * gdbarch.c: Regenerate.
6837 * gdbarch.h: Regenerate.
6838 * gdbarch.sh (stap_integer_prefix): New variable.
6839 (stap_integer_suffix): Likewise.
6840 (stap_register_prefix): Likewise.
6841 (stap_register_suffix): Likewise.
6842 (stap_register_indirection_prefix): Likewise.
6843 (stap_register_indirection_suffix): Likewise.
6844 (stap_gdb_register_prefix): Likewise.
6845 (stap_gdb_register_suffix): Likewise.
6846 (stap_is_single_operand): New function.
6847 (stap_parse_special_token): Likewise.
6848 (struct stap_parse_info): Forward declaration.
6849 * i386-tdep.c: Including headers needed to perform the parsing
6850 of SystemTap probes' arguments.
6851 (i386_stap_is_single_operand): New function.
6852 (i386_stap_parse_special_token): Likewise.
6853 (i386_elf_init_abi): Initializing proper fields used by SystemTap
6854 probes' arguments parser.
6855 * i386-tdep.h (i386_stap_is_single_operand): New function.
6856 (i386_stap_parse_special_token): Likewise.
6857 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
6858 * mipsread.c (ecoff_sym_fns): Likewise.
6859 * objfiles.c (objfile_relocate1): Support relocation for static
6860 probes.
6861 * parse.c (prefixify_expression): Remove static declaration.
6862 (initialize_expout): Likewise.
6863 (reallocate_expout): Likewise.
6864 * parser-defs.h (initialize_expout): Declare function.
6865 (reallocate_expout): Likewise.
6866 (prefixify_expression): Likewise.
6867 * ppc-linux-tdep.c: Including headers needed to perform the parsing
6868 of SystemTap probes' arguments.
6869 (ppc_stap_is_single_operand): New function.
6870 (ppc_stap_parse_special_token): Likewise.
6871 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
6872 probes' arguments parser.
6873 * probe.c: New file, for generic statically defined probe support.
6874 * probe.h: Likewise.
6875 * s390-tdep.c: Including headers needed to perform the parsing of
6876 SystemTap probes' arguments.
6877 (s390_stap_is_single_operand): New function.
6878 (s390_gdbarch_init): Initializing proper fields used by SystemTap
6879 probes' arguments parser.
6880 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
6881 * stap-probe.c: New file, for SystemTap probe support.
6882 * stap-probe.h: Likewise.
6883 * symfile.h: Include `gdb_vecs.h'.
6884 (struct sym_probe_fns): New struct.
6885 (struct sym_fns) <sym_probe_fns>: New field.
6886 * symtab.c (init_sal): Initialize `probe' field.
6887 * symtab.h (struct probe): Forward declaration.
6888 (struct symtab_and_line) <probe>: New field.
6889 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
6890 locations.
6891 (stop_tracing): Likewise.
6892 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
6893
6894 2012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6895 Tom Tromey <tromey@redhat.com>
6896
6897 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
6898 and to compile agent expressions.
6899 * infrun.c (siginfo_make_value): New argument `ignore'.
6900 (siginfo_funcs): New struct.
6901 (_initialize_infrun): New argument when calling
6902 `create_internalvar_type_lazy'.
6903 * thread.c (thread_id_make_value): New argument `ignore'.
6904 (thread_funcs): New struct.
6905 (_initialize_thread): New argument when calling
6906 `create_internalvar_type_lazy'.
6907 * tracepoint.c (sdata_make_value): New argument `ignore'.
6908 (sdata_funcs): New struct.
6909 (_initialize_tracepoint): New argument when calling
6910 `create_internalvar_type_lazy'.
6911 * value.c (make_value): New struct.
6912 (create_internalvar_type_lazy): New argument `data'.
6913 (compile_internalvar_to_ax): New function.
6914 (value_of_internalvar): Properly handling `make_value' case.
6915 (clear_internalvar): Likewise.
6916 (show_convenience): Adding `TRY_CATCH' block.
6917 * value.h (internalvar_make_value): Delete, replace by...
6918 (struct internalvar_funcs): ... this.
6919 (create_internalvar_type_lazy) <fun>: Delete argument.
6920 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
6921 (compile_internalvar_to_ax): New function.
6922 * windows-tdep.c (tlb_make_value): New argument `ignore'.
6923 (tlb_funcs): New struct.
6924 (_initialize_windows_tdep): New argument when calling
6925 `create_internalvar_type_lazy'.
6926
6927 2012-04-27 Mark Wielaard <mjw@redhat.com>
6928
6929 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
6930 see whether it is an address or a constant offset from DW_AT_low_pc.
6931 (dwarf2_record_block_ranges): Likewise.
6932 (read_partial_die): Likewise.
6933
6934 2012-04-26 Mark Wielaard <mjw@redhat.com>
6935
6936 * MAINTAINERS (Write After Approval): Add myself to the list.
6937
6938 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6939
6940 * proc-utils.h (proc_prettyprint_signalset): New prototype.
6941 (proc_prettyprint_signal): Likewise.
6942 (proc_prettyprint_faultset): Likewise.
6943 (proc_prettyprint_fault): Likewise.
6944 (proc_prettyprint_actionset): Likewise.
6945 (proc_prettyprint_flags): Move to new proc-flags.c section.
6946 (proc_prettyfprint_flags): New prototype.
6947 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
6948 (proc_syscall, proc_cursig): Likewise.
6949 (proc_set_kill_on_last_close): Likewise.
6950 (proc_unset_kill_on_last_close): Likewise.
6951 (proc_set_watchpoint): Make static.
6952 (proc_delete_dead_threads): Likewise.
6953 (procfs_set_watchpoint): Likewise.
6954 (_initialize_procfs): Add prototype.
6955 * proc-events.c: Include proc-utils.h.
6956 (init_syscall_table): Make static.
6957 * proc-api.c (_initialize_proc_api): Add prototype.
6958 * proc-flags.c: Include proc-utils.h.
6959
6960 2012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
6961
6962 * configure.ac: Add AC_ARG_PROGRAM.
6963 * configure: Regenerate.
6964
6965 2012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6966
6967 Fix DW_AT_lower_bound defaults for DWARF-4+.
6968 * dwarf2read.c (read_subrange_type): Remove initialization of low and
6969 high. New variable low_default_is_valid. Implement DWARF-4+
6970 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
6971 no default by the DWARF standard.
6972
6973 2012-04-26 Maciej W. Rozycki <macro@mips.com>
6974 Maciej W. Rozycki <macro@codesourcery.com>
6975
6976 * infrun.c (handle_inferior_event): Move the check for return
6977 trampolines ahead of the check for function trampolines.
6978 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
6979 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
6980 (mips_str_mips16_ret_stub): Likewise.
6981 (mips_str_call_fp_stub): Likewise.
6982 (mips_str_call_stub): Likewise.
6983 (mips_str_fn_stub): Likewise.
6984 (mips_str_pic): Likewise.
6985 (mips_in_frame_stub): New function.
6986 (mips_unwind_pc): Return the return address rather than the PC
6987 if the PC of an intermediate frame is inside a call thunk.
6988 (mips_is_stub_suffix): New function.
6989 (mips_is_stub_mode): Likewise.
6990 (mips_get_mips16_fn_stub_pc): Likewise.
6991 (mips_skip_mips16_trampoline_code): Update to handle all the
6992 currently generated stub types. Don't recurse into __fn_stub
6993 thunks. Remove heuristics to handle stubs beyond etext/_etext.
6994 Use cooked register accesses.
6995 (mips_in_return_stub): Reintroduce function.
6996 (mips_skip_trampoline_code): Traverse trampolines recursively.
6997 (mips_gdbarch_init): Handle MIPS16 return trampolines.
6998
6999 2012-04-26 Joel Brobecker <brobecker@adacore.com>
7000
7001 GDB 7.4.1 released.
7002
7003 2012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7004
7005 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7006 * features/arm-with-m-vfp-d16.xml: New file. Describes
7007 Cortex-M with VFPv4-sp-d16 FPU register layout.
7008 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7009 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7010 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7011 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7012 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7013
7014 2012-04-25 Doug Evans <dje@google.com>
7015
7016 * cli/cli-decode.c (print_doc_line): Use stream instead of
7017 current_uiout.
7018
7019 2012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7020
7021 * features/arm-with-iwmmxt.c: Regenerate.
7022 * features/arm-with-m-fpa-layout.c: Likewise.
7023 * features/arm-with-m.c: Likewise.
7024 * features/arm-with-neon.c: Likewise.
7025 * features/arm-with-vfpv2.c: Likewise.
7026 * features/arm-with-vfpv3.c: Likewise.
7027 * features/mips-dsp-linux.c: Likewise.
7028 * features/mips-linux.c: Likewise.
7029 * features/mips64-dsp-linux.c: Likewise.
7030 * features/mips64-linux.c: Likewise.
7031 * features/s390-linux32.c: Likewise.
7032 * features/s390-linux32v1.c: Likewise.
7033 * features/s390-linux32v2.c: Likewise.
7034 * features/s390-linux64.c: Likewise.
7035 * features/s390-linux64v1.c: Likewise.
7036 * features/s390-linux64v2.c: Likewise.
7037 * features/s390x-linux64.c: Likewise.
7038 * features/s390x-linux64v1.c: Likewise.
7039 * features/s390x-linux64v2.c: Likewise.
7040 * features/tic6x-c62x-linux.c: Likewise.
7041 * features/tic6x-c62x.c: Likewise.
7042 * features/tic6x-c64x-linux.c: Likewise.
7043 * features/tic6x-c64x.c: Likewise.
7044 * features/tic6x-c64xp-linux.c: Likewise.
7045 * features/tic6x-c64xp.c: Likewise.
7046 * target-descriptions.c: Only generate `field_type' and `type'
7047 variables when needed.
7048
7049 2012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7050
7051 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7052
7053 2012-04-25 Doug Evans <dje@google.com>
7054
7055 Initial pass at Go language support.
7056 * NEWS: Mention Go.
7057 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7058 go-valprint.c.
7059 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7060 (YYFILES): Add go-exp.c.
7061 (YYOBJ): Add go-exp.o.
7062 (local-maintainer-clean): Delete go-exp.c.
7063 * defs.h (enum language): Add language_go.
7064 * dwarf2read.c: #include "go-lang.h".
7065 (fixup_go_packaging): New function.
7066 (process_full_comp_unit): Call it when processing Go CUs.
7067 (dwarf2_physname): Add Go support.
7068 (read_file_scope): Handle missing language spec for GNU Go.
7069 (set_cu_language): Handle DW_LANG_Go.
7070 * go-exp.y: New file.
7071 * go-lang.h: New file.
7072 * go-lang.c: New file.
7073 * go-typeprint.c: New file.
7074 * go-valprint.c: New file.
7075 * symtab.c: #include "go-lang.h".
7076 (symbol_set_language): Handle language_go.
7077 (symbol_find_demangled_name, symbol_set_names): Ditto.
7078 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7079
7080 2012-04-24 Jim Meyering <meyering@redhat.com>
7081
7082 avoid a few strncpy-induced buffer overruns
7083 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7084 fname and psargs before trying to concatenate.
7085 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7086 "name" before applying strchr.
7087
7088 2012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7089
7090 * CONTRIBUTE: Use unified diff instead of context diff when
7091 generating patches.
7092
7093 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7094
7095 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7096 code. Handle JR.HB correctly.
7097
7098 2012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7099
7100 * mips-tdep.c
7101 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7102 with the other MIPS16 helpers.
7103
7104 2012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7105
7106 * observer.sh: Conditionally declare `args', thus cleaning up
7107 unused instances of this variable.
7108
7109 2012-04-24 Yao Qi <yao@codesourcery.com>
7110
7111 Revert this patch to allow breakpoint always-inserted
7112 in record target.
7113 2011-12-05 Pedro Alves <pedro@codesourcery.com>
7114 * breakpoint.c: Include record.h.
7115 (breakpoints_always_inserted_mode): Return false when the record
7116 target is in use.
7117
7118 * breakpoint.c (iterate_over_bp_locations): New.
7119 * breakpoint.h: Declare.
7120 New typedef walk_bp_location_callback.
7121 * record.c (record_open): Call record_init_record_breakpoints.
7122 (record_sync_record_breakpoints): New.
7123 (record_init_record_breakpoints): New.
7124 * NEWS: Mention supporting breakpoint always-inserted mode in
7125 record target.
7126
7127 2012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7128
7129 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7130 any thread.
7131
7132 2012-04-24 Yao Qi <yao@codesourcery.com>
7133
7134 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7135 (is_catchpoint): ... it.
7136 (print_one_breakpoint_location): Caller update.
7137 * breakpoint.h: Update declaration.
7138
7139 2012-04-23 David S. Miller <davem@davemloft.net>
7140
7141 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7142
7143 2012-04-23 Tom Tromey <tromey@redhat.com>
7144
7145 * buildsym.c (add_free_pendings): Remove.
7146 * buildsym.h (add_free_pendings): Remove.
7147
7148 2012-04-23 Doug Evans <dje@google.com>
7149
7150 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7151 attr.u.unsnd instead of attr.u.addr.
7152 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7153 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7154 DW_FORM_ref_udata.
7155 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7156 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7157 DW_FORM_ref_udata.
7158 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7159
7160 2012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7161
7162 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7163 (mips_o32_return_value): Likewise.
7164 (mips_o64_return_value): Likewise.
7165
7166 2012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7167
7168 * ada-lang.c (ada_evaluate_subexp): Add cases for
7169 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7170 their treatment in eval.c.
7171
7172 2012-04-21 David S. Miller <davem@davemloft.net>
7173
7174 * sparc-tdep.c (X_DISP10): Define.
7175 (sparc_analyze_control_transfer): Handle compare-and-branch.
7176
7177 2012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7178
7179 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7180 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7181
7182 2012-04-20 Nigel Stephens <nigel@mips.com>
7183 Maciej W. Rozycki <macro@codesourcery.com>
7184
7185 * mips-tdep.c (mips_float_register_p): New function.
7186 (mips_convert_register_float_case_p): Use mips_float_register_p.
7187 (mips_register_type): Likewise.
7188 (mips_print_register): Likewise.
7189 (print_gp_register_row): Likewise.
7190 (mips_print_registers_info): Likewise.
7191
7192 2012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7193
7194 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7195 of mips16 symbols.
7196
7197 2012-04-20 Andrew Pinski <apinski@cavium.com>
7198
7199 * MAINTAINERS (Write After Approval): Add myself to the list.
7200
7201 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7202
7203 * MAINTAINERS: Update my e-mail address.
7204
7205 2012-04-20 Pedro Alves <palves@redhat.com>
7206
7207 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7208 $srcdir.
7209 * configure: Regenerate.
7210
7211 2012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7212
7213 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7214 declaration.
7215 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7216
7217 2012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7218
7219 Fix compilation compatibility with python-2.4
7220 * python/py-type.c (convert_field): Cast ADDRSTRING for
7221 PyObject_SetAttrString as non-const. New comment.
7222
7223 2012-04-19 Tom Tromey <tromey@redhat.com>
7224
7225 * top.c (quit_target): Use all_cleanups.
7226 * main.c (captured_command_loop): Use all_cleanups.
7227 * exceptions.c (throw_exception): Use all_cleanups.
7228
7229 2012-04-19 Pedro Alves <palves@redhat.com>
7230
7231 * Makefile.in (GNULIB_BUILDDIR): New.
7232 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7233 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7234 (CLEANDIRS). Remove gnulib/import.
7235 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7236 (all-lib): Ditto.
7237 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7238 (gnulib/import/Makefile): Replace gnulib/import with
7239 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7240 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7241 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7242 acx_configure_dir.m4.
7243 * acinclude.m4: Include acx_configure_dir.m4.
7244 * acx_configure_dir.m4: New file.
7245 * aclocal.m4: Regenerate.
7246 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7247 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7248 (GNULIB): New variable.
7249 (GNULIB_STDINT_H): Adjust.
7250 (AC_OUTPUT): Don't output gnulib/Makefile.
7251 * gdb/defs.h: Include build-gnulib/config.h.
7252 * aclocal.m4: Regenerate.
7253 * config.in: Regenerate.
7254 * configure: Regenerate.
7255
7256 * gnulib/Makefile.in: New file.
7257 * gnulib/configure.ac: New file.
7258 * gnulib/aclocal.m4: New file.
7259 * gnulib/config.in: New file.
7260 * gnulib/configure: New file.
7261 * gnulib/: Re-run gnulib-tool to adjust.
7262
7263 2012-04-19 Doug Evans <dje@google.com>
7264
7265 * cleanups.h (struct cleanup): Move to cleanups.c.
7266 (make_cleanup_dtor_ftype): New typedef.
7267 (make_cleanup_dtor): Use it.
7268 (ALL_CLEANUPS): Replace with ...
7269 (all_cleanups): ... this. Declare. All uses updated.
7270 * cleanups.c: #include "gdb_assert.h".
7271 (sentinel_cleanup): New static global.
7272 (SENTINEL_CLEANUP): Define.
7273 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7274 (make_my_cleanup2): Assert result is non-NULL.
7275 (all_cleanups): New function.
7276 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7277 of NULL.
7278
7279 2012-04-19 Pedro Alves <palves@redhat.com>
7280
7281 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7282 Adjust paths to gnulib imported files.
7283
7284 2012-04-19 Pedro Alves <palves@redhat.com>
7285
7286 * gnulib/: Move whole directory ...
7287 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7288 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7289 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7290 (aclocal_m4_deps): Adjust.
7291 * aclocal.m4: Regenerate.
7292 * configure: Regenerate.
7293 * configure.ac: Adjust AC_OUTPUT output.
7294
7295 2012-04-19 Yao Qi <yao@codesourcery.com>
7296
7297 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7298 (vec.o): New rule.
7299 * vec.c: Move it ...
7300 * common/vec.c: ... here.
7301 * vec.h: Move it ...
7302 * common/vec.h: ... here.
7303
7304 2012-04-19 Yao Qi <yao@codesourcery.com>
7305
7306 * gdb-code-style.el: New.
7307
7308 2012-04-18 Pedro Alves <palves@redhat.com>
7309
7310 Update gnulib from latest git.
7311 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7312
7313 * gnulib/Makefile.am: Update.
7314 * gnulib/dummy.c: Update.
7315 * gnulib/extra/arg-nonnull.h: Update.
7316 * gnulib/extra/c++defs.h: Update.
7317 * gnulib/extra/update-copyright: Update.
7318 * gnulib/extra/warn-on-use.h: Update.
7319 * gnulib/inttypes.in.h: Update.
7320 * gnulib/m4/00gnulib.m4: Update.
7321 * gnulib/m4/extensions.m4: Update.
7322 * gnulib/m4/gnulib-cache.m4: Update.
7323 * gnulib/m4/gnulib-common.m4: Update.
7324 * gnulib/m4/gnulib-comp.m4: Update.
7325 * gnulib/m4/gnulib-tool.m4: Update.
7326 * gnulib/m4/include_next.m4: Update.
7327 * gnulib/m4/inttypes-pri.m4: Update.
7328 * gnulib/m4/inttypes.m4: Update.
7329 * gnulib/m4/longlong.m4: Update.
7330 * gnulib/m4/memchr.m4: Update.
7331 * gnulib/m4/memmem.m4: Update.
7332 * gnulib/m4/mmap-anon.m4: Update.
7333 * gnulib/m4/multiarch.m4: Update.
7334 * gnulib/m4/onceonly.m4: Update.
7335 * gnulib/m4/stddef_h.m4: Update.
7336 * gnulib/m4/stdint.m4: Update.
7337 * gnulib/m4/string_h.m4: Update.
7338 * gnulib/m4/warn-on-use.m4: Update.
7339 * gnulib/m4/wchar_h.m4: Update.
7340 * gnulib/m4/wchar_t.m4: Update.
7341 * gnulib/m4/wint_t.m4: Update.
7342 * gnulib/memchr.c: Update.
7343 * gnulib/memmem.c: Update.
7344 * gnulib/stddef.in.h: Update.
7345 * gnulib/stdint.in.h: Update.
7346 * gnulib/str-two-way.h: Update.
7347 * gnulib/string.in.h: Update.
7348 * gnulib/wchar.in.h: Update.
7349
7350 * gnulib/extra/arg-nonnull.h: Delete.
7351 * gnulib/extra/c++defs.h: Delete.
7352 * gnulib/extra/warn-on-use.h: Delete.
7353 * gnulib/m4/wchar_h.m4: Delete.
7354 * gnulib/m4/wint_t.m4: Delete.
7355 * gnulib/wchar.in.h: Delete.
7356
7357 * gnulib/extra/snippets/arg-nonnull.h: New.
7358 * gnulib/extra/snippets/c++defs.h: New.
7359 * gnulib/extra/snippets/warn-on-use.h: New.
7360
7361 * aclocal.m4: Regenerate.
7362 * config.in: Regenerate.
7363 * configure: Regenerate.
7364 * gnulib/Makefile.in: Regenerate.
7365
7366 2012-04-18 Pedro Alves <palves@redhat.com>
7367
7368 Reimport the update-copyright module from gnulib
7369 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7370
7371 * configure: Regenerate.
7372 * gnulib/Makefile.am: Update.
7373 * gnulib/Makefile.in: Regenerate.
7374 * gnulib/extra/update-copyright: Update.
7375 * gnulib/m4/gnulib-cache.m4: Update.
7376 * gnulib/m4/gnulib-comp.m4: Update.
7377
7378 2012-04-18 Tristan Gingold <gingold@adacore.com>
7379
7380 * configure.ac (aix): Put -lpthread into libs.
7381 * configure: Regenerate.
7382
7383 2012-04-18 Tom Tromey <tromey@redhat.com>
7384
7385 * linespec.c (convert_linespec_to_sals): Don't use
7386 SYMBOL_OBJ_SECTION.
7387 (compare_msymbols): Arguments are minsym_and_objfile, not
7388 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7389
7390 2012-04-18 Pedro Alves <palves@redhat.com>
7391
7392 Revert gnulib/ part of:
7393 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7394 Copyright year update in most files (performed by copyright.sh).
7395
7396 2012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7397
7398 Fix 64-bit constants on 32-bit hosts.
7399 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7400 from unsigned long to ULONGEST.
7401 (read_signed_leb128): Change declaration return type from long to
7402 LONGEST.
7403 (dwarf2_const_value_attr): Change declaration parameter value from long
7404 to LONGEST.
7405 (dwarf2_compute_name): Change variable value from long to LONGEST.
7406 (read_unsigned_leb128): Change return type, variable result and some
7407 casts from unsigned long to ULONGEST.
7408 (read_signed_leb128): Change return type, variable result and some
7409 casts from long to LONGEST.
7410 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7411 value from long to LONGEST.
7412 (dwarf2_const_value): Change variable value from long to LONGEST.
7413 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7414 plongest and hex_string.
7415 * symtab.h (struct general_symbol_info): Change ivalue from long to
7416 LONGEST, remove the comment.
7417 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7418 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7419
7420 2012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7421
7422 PR symtab/7259:
7423 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7424 * ada-lang.c (ada_discrete_type_high_bound)
7425 (ada_discrete_type_low_bound): Fix function comment. Use
7426 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7427 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7428 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7429 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7430 Use TYPE_FIELD_ENUMVAL.
7431 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7432 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7433 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7434 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7435 TYPE_CODE_ENUM.
7436 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7437 * dwarf2read.c (process_enumeration_scope): Likewise.
7438 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7439 field.bitpos.
7440 (class StructMainTypePrettyPrinter): Support also
7441 FIELD_LOC_KIND_ENUMVAL.
7442 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7443 TYPE_CODE_ENUM.
7444 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7445 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7446 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7447 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7448 field enumval.
7449 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7450 accommodate enumval.
7451 (struct call_site): Adjust loc_kind to accommodate enumval.
7452 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7453 (TYPE_FIELD_ENUMVAL): New macros.
7454 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7455 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7456 TYPE_CODE_ENUM.
7457 * p-typeprint.c (pascal_type_print_base): Likewise.
7458 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7459 enumval.
7460 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7461 * python/py-type.c (convert_field): New variable addrstring. Use
7462 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7463 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7464 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7465 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7466 TYPE_CODE_ENUM.
7467 * valprint.c (generic_val_print): Likewise.
7468
7469 2012-04-17 Doug Evans <dje@google.com>
7470
7471 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7472
7473 * dwarf2read.c: Whitespace fixes.
7474 (lookup_signatured_type): Tweak comment.
7475 (get_die_type_at_offset): Fix comment.
7476
7477 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7478
7479 * xcoffread.c (xcoff_secnum_to_sections): New function.
7480 (secnum_to_section, secnum_to_bfd_section): Reimplement
7481 using xcoff_secnum_to_sections. Rename "secnum" parameter
7482 into "n_scnum".
7483 (RECORD_MINIMAL_SYMBOL): Delete.
7484 (record_minimal_symbol): New function.
7485 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7486 by call to record_minimal_symbol and set misc_func_recorded
7487 to 1. Set last_csect_sec to the XCOFF section index instead
7488 of GDB's section_offset index. Update calls to
7489 prim_record_minimal_symbol_and_info to pass the BFD section
7490 as well.
7491
7492 2012-04-17 Joel Brobecker <brobecker@adacore.com>
7493
7494 * xcoffread.c (read_xcoff_symtab): Delete variables
7495 last_csect_val and last_csect_sec and associated code.
7496
7497 2012-04-17 Doug Evans <dje@google.com>
7498
7499 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7500 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7501 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7502 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7503
7504 * cleanups.h: New file.
7505 * cleanups.c: New file.
7506 * Makefile.in (SFILES): Add cleanups.c.
7507 (HFILES_NO_SRCDIR): Add cleanups.h.
7508 (COMMON_OBS): Add cleanups.o.
7509 * defs.h (struct cleanup): Moved to cleanups.h.
7510 (do_cleanups,do_final_cleanups): Ditto.
7511 (discard_cleanups,discard_final_cleanups): Ditto
7512 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7513 (save_cleanups,save_final_cleanups): Ditto.
7514 (restore_cleanups,restore_final_cleanups): Ditto.
7515 (null_cleanup): Ditto.
7516 (make_my_cleanup,make_my_cleanup2): Ditto.
7517 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7518 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7519 (do_cleanups,do_final_cleanups): Ditto.
7520 (discard_cleanups,discard_final_cleanups): Ditto
7521 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7522 (save_cleanups,save_final_cleanups): Ditto.
7523 (restore_cleanups,restore_final_cleanups): Ditto.
7524 (null_cleanup): Ditto.
7525 (make_my_cleanup,make_my_cleanup2): Ditto.
7526 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7527
7528 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7529 make_my_cleanup.
7530 (make_cleanup_dyn_string_delete): Ditto.
7531 (make_cleanup_ui_file_delete): Ditto.
7532 (make_cleanup_ui_out_redirect_pop): Ditto.
7533 (make_cleanup_free_section_addr_info): Ditto.
7534 (make_cleanup_restore_integer): Ditto.
7535 (make_cleanup_unpush_target): Ditto.
7536 (make_cleanup_value_free_to_mark): Ditto.
7537 (make_cleanup_value_free): Ditto.
7538 (make_cleanup_free_so): Ditto.
7539
7540 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7541
7542 New option "set debug auto-load".
7543 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7544 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7545 (auto_load_safe_path_vec_update)
7546 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7547 if DEBUG_AUTO_LOAD.
7548 (file_is_auto_load_safe): New parameters debug_fmt and ....
7549 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7550 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7551 caller by explanatory string.
7552 (_initialize_auto_load): Register "set debug auto-load".
7553 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7554 and ....
7555 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7556 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7557 by explanatory string.
7558 * main.c (captured_main): Likewise.
7559 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7560 (source_section_scripts): Likewise.
7561
7562 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7563
7564 New option "set auto-load safe-path".
7565 * NEWS: New commands "set auto-load safe-path"
7566 and "show auto-load safe-path".
7567 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7568 (auto_load_safe_path, auto_load_safe_path_vec)
7569 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7570 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7571 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7572 (source_gdb_script_for_objfile): New variable is_safe. Call
7573 file_is_auto_load_safe. Return if it is not.
7574 (struct loaded_script): New field loaded.
7575 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7576 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7577 output "Missing" to "No".
7578 (_initialize_auto_load): New variable cmd. Initialize
7579 auto_load_safe_path. Register "set auto-load safe-path",
7580 "show auto-load safe-path" and "add-auto-load-safe-path".
7581 * auto-load.h (maybe_add_script): Add parameter loaded.
7582 (file_is_auto_load_safe): New declaration.
7583 * config.in: Regenerate.
7584 * configure: Regenerate.
7585 * configure.ac: New parameters --with-auto-load-safe-path
7586 and --without-auto-load-safe-path.
7587 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7588 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7589 * main.c (captured_main): Check file_is_auto_load_safe for
7590 LOCAL_GDBINIT.
7591 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7592 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7593 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7594 not.
7595
7596 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7597
7598 auto-load: Implementation.
7599 * NEWS: New descriptions for "info auto-load",
7600 "info auto-load gdb-scripts", "info auto-load python-scripts",
7601 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7602 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7603 and "show auto-load-scripts". New description for "set auto-load",
7604 "show auto-load", "set auto-load gdb-scripts",
7605 "show auto-load gdb-scripts", "set auto-load python-scripts",
7606 "show auto-load python-scripts", "set auto-load local-gdbinit",
7607 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7608 "show auto-load libthread-db".
7609 * auto-load.c: Remove include python/python-internal.h. Add includes
7610 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7611 cli/cli-setshow.h.
7612 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7613 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7614 (gdbpy_global_auto_load): Rename to ...
7615 (global_auto_load): ... here.
7616 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7617 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7618 (script_language_gdb, source_gdb_script_for_objfile): New.
7619 (struct loaded_script): New field language.
7620 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7621 LANGUAGE.
7622 (maybe_add_script): Add parameter language. Drop redundant
7623 entry.full_path initialization. Initialize entry.language and
7624 (*slot)->language.
7625 (auto_load_objfile_script): Change parameter suffix to language.
7626 Remove the call of maybe_add_script.
7627 Call language->source_script_for_objfile.
7628 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7629 New.
7630 (collect_matching_scripts): Adjust it for
7631 struct collect_matching_scripts_data.
7632 (auto_load_info_scripts_pattern_nl): New variable.
7633 (info_auto_load_scripts): Rename to ...
7634 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7635 for struct collect_matching_scripts_data.
7636 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7637 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7638 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7639 (auto_load_info_cmdlist_get): New.
7640 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7641 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7642 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7643 "info auto-load local-gdbinit".
7644 * auto-load.h (struct script_language): New.
7645 (gdbpy_global_auto_load): Rename to ...
7646 (global_auto_load): ... here.
7647 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7648 (auto_load_local_gdbinit_loaded): New declarations.
7649 (maybe_add_script): New parameter language.
7650 (auto_load_objfile_script): Change parameter suffix to language.
7651 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7652 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7653 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7654 declarations.
7655 * linux-thread-db.c: Include auto-load.h and ctype.h.
7656 (auto_load_thread_db, show_auto_load_thread_db): New.
7657 (struct thread_db_info): New field filename.
7658 (delete_thread_db_info): Call xfree for FILENAME.
7659 (try_thread_db_load): Initialize FILENAME.
7660 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7661 if !AUTO_LOAD_THREAD_DB.
7662 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7663 (_initialize_thread_db): Install auto_load_thread_db
7664 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7665 as "info auto-load libthread-db".
7666 * main.c (captured_main): Rename gdbpy_global_auto_load to
7667 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7668 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7669 (print_gdb_help): Extend the help for 'local init file'.
7670 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7671 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7672 (auto_load_scripts): Rename to ...
7673 (auto_load_python_scripts): ... here, update the comment.
7674 (gdbpy_load_auto_script_for_objfile): New declaration.
7675 (show_auto_load_python_scripts, script_language_python)
7676 (gdbpy_load_auto_script_for_objfile): New.
7677 (source_section_scripts): Refactor the code.
7678 (load_auto_scripts_for_objfile): Rename to ...
7679 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7680 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7681 (info_auto_load_python_scripts): New.
7682 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7683 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7684 Register "set auto-load-scripts" as its deprecated alias. Register
7685 "info auto-load python-scripts". Register "info auto-load-scripts" as
7686 its deprecated alias.
7687 (load_auto_scripts_for_objfile): Rename to ...
7688 (gdbpy_load_auto_scripts_for_objfile): ... here.
7689 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7690 (gdbpy_load_auto_scripts_for_objfile): ... here.
7691
7692 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7693
7694 auto-load: Move files.
7695 * Makefile.in (SFILES): Add auto-load.c.
7696 (HFILES_NO_SRCDIR): Add auto-load.h.
7697 (COMMON_OBS): Add auto-load.o.
7698 (distclean): Change .gdbinit for gdb-gdb.gdb.
7699 * auto-load.c: New file, with parts from python/py-auto-load.c.
7700 * auto-load.h: New file, with parts from python/python.h.
7701 * configure: Regenerate.
7702 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7703 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7704 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7705 * main.c: Include auto-load.h.
7706 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7707 command.h, observer.h and progspace.h to auto-load.c. Add include
7708 auto-load.h.
7709 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7710 (struct loaded_script, auto_load_pspace_data)
7711 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7712 (hash_loaded_script_entry, eq_loaded_script_entry)
7713 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7714 (maybe_add_script): Move to auto-load.c.
7715 (source_section_scripts): Change maybe_add_script parameters passing,
7716 use script_not_found_warning_print.
7717 (clear_section_scripts, auto_load_objfile_script)
7718 (auto_load_new_objfile, loaded_script_ptr)
7719 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7720 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7721 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7722 auto_load_new_objfile and info_auto_load_scripts initizations to
7723 auto-load.c.
7724 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7725
7726 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7727
7728 Code cleanup.
7729 * charset.c (find_charset_names): Remove variables ix and elt.
7730 Use free_char_ptr_vec.
7731 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7732 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7733 debugdir_end. New variable debugdir_len.
7734 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7735 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7736 declarations.
7737 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7738 and elt. Use free_char_ptr_vec.
7739 * source.c (add_path): Remove variables argv, arg and argv_index.
7740 New variables dir_vec, back_to, ix and name.
7741 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7742 make_cleanup_freeargv. Remove variable separator. Simplify the code
7743 no longer expecting DIRNAME_SEPARATOR.
7744 (openp): Remove variable p, p1 and len. New variables dir_vec,
7745 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7746 no longer expecting DIRNAME_SEPARATOR.
7747 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7748 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7749 debugdir_end.
7750 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7751 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7752 (dirnames_to_char_ptr_vec): New functions.
7753
7754 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7755
7756 Code cleanup.
7757 * source.c (add_path): Remove always true conditional 'p == 0' and
7758 unindent its code block.
7759
7760 2012-04-17 Pedro Alves <palves@redhat.com>
7761
7762 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7763 (FIELD_BITPOS_LVAL): ... this.
7764 (FIELD_BITPOS): New.
7765 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7766 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7767 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7768 SET_FIELD_BITPOS.
7769 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7770 SET_FIELD_BITPOS.
7771 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7772 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7773 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7774 SET_FIELD_BITPOS.
7775
7776 2012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7777
7778 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7779 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7780 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7781 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7782 * jv-lang.c (java_link_class_type): Likewise, once.
7783 * stabsread.c (read_enum_type): Likewise.
7784
7785 2012-04-16 Yao Qi <yao@codesourcery.com>
7786
7787 * common/agent.c (agent_run_command): Add one more parameter `len'.
7788 Update callers.
7789 * common/agent.h: Update declaration.
7790 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7791 Update.
7792 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7793
7794 2012-04-14 Anton Gorenkov <xgsa@yandex.ru>
7795
7796 PR mi/13393
7797 * value.c (value_actual_type): New function.
7798 * value.h (value_actual_type): New declaration.
7799 * varobj.c (update_type_if_necessary): New function.
7800 (varobj_create): Call value_actual_type instead of
7801 value_type.
7802 (install_dynamic_child): distinct changed and type changed MI variable
7803 objects.
7804 (update_dynamic_varobj_children): Updated for install_dynamic_child
7805 change. All callers updated.
7806 (varobj_update): Support for MI variable object type change if
7807 the value changed and RTTI is used to determine the type.
7808 (create_child_with_value): Call value_actual_type instead of
7809 value_type.
7810 (adjust_value_for_child_access): Extended with a new parameter which
7811 specify whether the given value should be casted to enclosing type.
7812 All callers updated.
7813
7814 2012-04-14 Yao Qi <yao@codesourcery.com>
7815
7816 Import gnulib module inttypes from git
7817 (250b80067c1e1d8faa0c42fb572f721975b929c5)
7818 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
7819 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
7820 gnulib/m4/inttypes-pri.m4
7821 * aclocal.m4, config.in, configure: Regenerated.
7822 * gnulib/Makefile.am: Update.
7823 * gnulib/Makefile.in: Update.
7824 * gnulib/m4/gnulib-cache.m4: Update.
7825 * gnulib/m4/gnulib-comp.m4: Update.
7826 * gnulib/inttypes.in.h: New.
7827 * gnulib/m4/inttypes-pri.m4: New.
7828 * gnulib/m4/inttypes.m4: New.
7829
7830 2012-04-13 Luis Machado <lgustavo@codesourcery.com>
7831
7832 * infrun.c (resume): Update PC address to the real PC after
7833 preparing to do displaced stepping.
7834
7835 2012-04-12 Doug Evans <dje@google.com>
7836
7837 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
7838 All callers updated.
7839
7840 2012-04-12 Mark Kettenis <kettenis@gnu.org>
7841
7842 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
7843
7844 2012-04-12 Doug Evans <dje@google.com>
7845
7846 * dwarf2read.c (create_all_type_units): Renamed from
7847 create_debug_types_hash_table. All callers updated.
7848
7849 * dwarf2read.c (create_signatured_type_table_from_index): Rename
7850 local type_sig to sig_type, type_offset to type_offset_in_tu.
7851 (hash_signatured_type): Renamed from hash_type_signature,
7852 all callers updated.
7853 (eq_signatured_type): Renamed from eq_type_signature,
7854 all callers updated.
7855 (create_debug_types_hash_table): Rename local type_sig to sig_type.
7856 (process_enumeration_scope): Ditto.
7857 (lookup_signatured_type_at_offset): Ditto.
7858 (load_full_type_unit, read_signatured_type): Ditto.
7859
7860 2012-04-12 Yao Qi <yao@codesourcery.com>
7861
7862 * remote.c (async_remote_interrupt): Correct function name in
7863 debug message.
7864 (async_remote_interrupt_twice): Ditto.
7865
7866 2012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
7867
7868 * source.c (find_and_open_source): Consistently pass resulting
7869 full path through xfullpath.
7870
7871 2012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
7872
7873 Provide more specific displaced-stepping memory error message.
7874 * infrun.c (displaced_step_prepare): New variable status. Call
7875 target_read_memory instead of read_memory, provide more specific
7876 error message.
7877
7878 2012-04-11 Tristan Gingold <gingold@adacore.com>
7879
7880 PR gdb/13901
7881 * darwin-nat.c (darwin_execvp): Revert previous patch.
7882
7883 2012-04-11 Tristan Gingold <gingold@adacore.com>
7884
7885 PR gdb/13901
7886 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
7887 in case of change.
7888
7889 2012-04-11 Tristan Gingold <gingold@adacore.com>
7890
7891 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
7892 warning.
7893
7894 2012-04-11 Siva Chandra Reddy <sivachandra@google.com>
7895
7896 New command 'explore' which helps explore values and types in
7897 scope.
7898 * NEWS: Add an entry about the new 'explore' command.
7899 * data-directory/Makefile.in: Add gdb/command/explore.py
7900 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
7901 command using the GDB Python API.
7902
7903 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7904
7905 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
7906 extension in jump target calculation.
7907
7908 2012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
7909
7910 * mips-tdep.c (mips32_next_pc): Handle JALX.
7911
7912 2012-04-10 Yao Qi <yao@codesourcery.com>
7913
7914 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
7915
7916 2012-04-10 Yao Qi <yao@codesourcery.com>
7917
7918 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
7919 and gnulib/m4/gnulib-tool.m4.
7920
7921 2012-04-10 Doug Evans <dje@google.com>
7922
7923 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
7924 (load_partial_dies): Clarify comment.
7925 (find_partial_die): Support rereading type units.
7926 Clarify CU handling, if we know offset is in CU, don't search for the
7927 containing CU. Add comment regarding memory waste.
7928
7929 2012-04-10 H.J. Lu <hongjiu.lu@intel.com>
7930
7931 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
7932 i386/x32-avx and i386/x32-avx-linux.
7933 (i386/x32-expedite): New.
7934 (i386/x32-linux-expedite): Likewise.
7935 (i386/x32-avx-expedite): Likewise.
7936 (i386/x32-avx-linux-expedite): Likewise.
7937 ($(outdir)/i386/x32.dat): Likewise.
7938 ($(outdir)/i386/x32-linux.dat): Likewise.
7939 ($(outdir)/i386/x32-avx.dat): Likewise.
7940 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
7941
7942 * features/i386/x32-avx-linux.xml: New file.
7943 * features/i386/x32-avx.xml: Likewise.
7944 * features/i386/x32-core.xml: Likewise.
7945 * features/i386/x32-linux.xml: Likewise.
7946 * features/i386/x32.xml: Likewise.
7947
7948 * features/i386/x32-avx-linux.c: New. Generated.
7949 * features/i386/x32-avx.c: Likewise.
7950 * features/i386/x32-linux.c: Likewise.
7951 * features/i386/x32.c: Likewise.
7952 * regformats/i386/x32-avx-linux.dat: Likewise.
7953 * regformats/i386/x32-avx.dat: Likewise.
7954 * regformats/i386/x32-linux.dat: Likewise.
7955 * regformats/i386/x32.dat: Likewise.
7956
7957 2012-04-10 Tristan Gingold <gingold@adacore.com>
7958
7959 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
7960 code to kill the inferior.
7961
7962 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7963
7964 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7965 defines.
7966 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7967 defines.
7968 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
7969 (yyvsp): New defines.
7970 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7971 defines.
7972 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7973 defines.
7974 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7975 defines.
7976 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7977 defines.
7978 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
7979 defines.
7980
7981 2012-04-09 Mark Kettenis <kettenis@gnu.org>
7982
7983 * sparc64-tdep.c (sparc64_store_arguments)
7984 (sparc64_store_arguments): Fix coding style.
7985
7986 2012-04-07 Mark Kettenis <kettenis@gnu.org>
7987
7988 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
7989 complex floats, adjust some related comments and tighten a related
7990 assertion.
7991 (sparc64_extract_return_value): Handle complex floats.
7992
7993 2012-04-07 Doug Evans <dje@google.com>
7994
7995 * dwarf2read.c (load_partial_dies): Change condition to assert.
7996
7997 2012-04-06 Doug Evans <dje@google.com>
7998
7999 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8000 "mov %rsp,%rbp".
8001
8002 2012-04-05 Kevin Buettner <kevinb@redhat.com>
8003
8004 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8005 fencepost error.
8006 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8007 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8008 architecture.
8009
8010 2012-04-05 Keith Seitz <keiths@redhat.com>
8011
8012 * linespec.c (decode_compound): Remove.
8013 (enum offset_relative_sign): New enum.
8014 (struct line_offset): New struct.
8015 (struct linespec): New struct.
8016 (struct linespec_state): Move file_symtabs,
8017 user_filename, and user_function into struct linespec.
8018 Make result an anonymous struct holding vectors of
8019 symbolp and minsym_and_objfile_d.
8020 Add language member.
8021 (enum ls_token_type): New enum.
8022 (linespec_keywords): New array.
8023 (struct ls_token): New struct.
8024 (struct ls_parser): New struct.
8025 (linespec_lexer_lex_number): New function.
8026 (linespec_lexer_lex_keyword): New function.
8027 (is_ada_operator): New function.
8028 (skip_quote_char): New function.
8029 (copy_token_string): New function.
8030 (is_closing_quote_enclosed): New function.
8031 (find_parameter_list_end): New function.
8032 (linespec_lexer_lex_string): New function.
8033 (linespec_lexer_lex_one): New function.
8034 (linespec_lexer_consume_token): New function.
8035 (linespec_lexer_peek_token): New function.
8036 (cplusplus_error): Remove unused function.
8037 (find_methods): Update comment.
8038 (find_toplevel_char): Return const.
8039 (is_objc_method_format): Remove unused function.
8040 (find_toplevel_string): New function.
8041 (is_linespec_boundary): Remove.
8042 (symbol_not_found_error): New function.
8043 (find_method_overload_end): Remove function.
8044 (unexpected_linespec_error): New function.
8045 (keep_name_info): Remove.
8046 (linespec_parse_line_offset): New function.
8047 (linespec_parse_basic): New function.
8048 (canonicalize_linespec): New function.
8049 (decode_line_internal): Remove.
8050 (create_sals_line_offset): New function adapted from
8051 decode_all_digits.
8052 (convert_linespec_to_sals): New function.
8053 (parse_linespec): New function.
8054 (linespec_parser_new): New function.
8055 (linespec_state_destructor): Change parameter type to
8056 struct linespec_state *.
8057 Add language parameter.
8058 Remove freeing of moved members.
8059 (linespec_parser_delete): New function.
8060 (decode_line_full): Use parse_linespec and linespec_parser_new.
8061 (decode_line_1): Likewise.
8062 (decode_indirect): Rename to ...
8063 (linespec_expression_to_pc): ... this and rewrite
8064 to simply find CORE_ADDR, storing this result for later
8065 conversion to SALs.
8066 (locate_first_half): Remove.
8067 (deocde_objc): Add parameter LS.
8068 Initialize new struct collect_info members.
8069 Handle minimal symbols, too.
8070 (decode_compound): Delete.
8071 (lookup_prefix_sym): Rewrite.
8072 (compare_msymbols): New function.
8073 (find_method): Rewrite.
8074 Do not call cplusplus_error.
8075 (symtabs_from_filename): Rewrite.
8076 (collect_function_symbols): Delete.
8077 (find_function_symbols): Rewrite without ARGPTR-style
8078 processing.
8079 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8080 (decode_dollar): Adapted and renamed to ...
8081 (linespec_parse_variable): ... this.
8082 (find_linespec_symbols): New function.
8083 (decode_label): Adapted and renamed to ...
8084 (find_label_symbols): ... this.
8085 (decode_digits_list_mode): Add and use LS argument.
8086 (decode_digits_ordinary): Likewise.
8087 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8088 If in list mode, allow any symbol class. Otherwise, only
8089 permit LOC_BLOCK symbols.
8090 (minsym_found): Update comments.
8091 (search_minsyms_for_name): Do not convert the matching symbol
8092 into a SAL. Simply push the symbol and objfile into the
8093 result vector.
8094 (decode_variable): Delete. Contents adapted into
8095 find_linespec_symbols.
8096
8097 * cp-support.c (SKIP_SPACE): Remove.
8098 (operator_tokens): Remove unused global.
8099 (cp_validate_operator): Remove.
8100 * cp-support.h (cp_validate_operator): Remove declaration.
8101
8102 2012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8103
8104 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8105 for TYPE_VPTR_FIELDNO.
8106 * valprint.c (valprint_check_validity): Make it global, move the
8107 function comment ...
8108 * value.h (valprint_check_validity): ... to this new declaration.
8109
8110 2012-04-02 Tristan Gingold <gingold@adacore.com>
8111
8112 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8113 the STATE32 api for i386 state.
8114 (i386_darwin_store_inferior_registers): Likewise.
8115
8116 2012-04-02 Tristan Gingold <gingold@adacore.com>
8117
8118 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8119 SS offset.
8120 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8121 format_string.
8122
8123 2012-04-02 Tristan Gingold <gingold@adacore.com>
8124
8125 PR gdb/13901
8126 * darwin-nat.c (darwin_execvp): Set binary preference.
8127
8128 2012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8129
8130 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8131
8132 2012-03-30 Tom Tromey <tromey@redhat.com>
8133
8134 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8135 of TRY_CATCH. Fix error handling.
8136 * python/py-value.c (convert_value_from_python): Move 'old'
8137 declaration to innermost scope.
8138
8139 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8140 Andrey Smirnov <andrew.smirnov@gmail.com>
8141
8142 -Wshadow warning fix.
8143 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8144 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8145 Adjust code accordingly.
8146
8147 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8148
8149 * ada-lang.c (symbol_completion_add): Rename parameter
8150 "encoded" into "encoded_p". Ajust code and documentation
8151 accordingly.
8152
8153 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8154 Andrey Smirnov <andrew.smirnov@gmail.com>
8155
8156 -Wshadow warning fix.
8157 * ada-lang.c (symbol_completion_add): Rename parameter
8158 "wild_match" into wild_match_p. Update code and documentation
8159 accordingly.
8160
8161 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8162
8163 * ada-lang.c (symbol_completion_match): Rename parameter
8164 "encoded" into "encoded_p". Ajust code and documentation
8165 accordingly.
8166
8167 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8168 Andrey Smirnov <andrew.smirnov@gmail.com>
8169
8170 -Wshadow warning fix.
8171 * ada-lang.c (symbol_completion_match): Rename parameter
8172 "wild_match" into "wild_match_p". Adjust code and function
8173 documentation accordingly.
8174
8175 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8176 Andrey Smirnov <andrew.smirnov@gmail.com>
8177
8178 -Wshadow warning fix.
8179 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8180 "symbol_info" into "info". Adjust code accordingly.
8181 (ada_lookup_symbol): Likewise.
8182
8183 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8184
8185 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8186 of this function's documentation.
8187
8188 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8189 Andrey Smirnov <andrew.smirnov@gmail.com>
8190
8191 -Wshadow warning fix.
8192 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8193 variable into "wild_match_p". Adjust code accordingly.
8194
8195 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8196 Andrey Smirnov <andrew.smirnov@gmail.com>
8197
8198 -Wshadow warning fix.
8199 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8200 parameter into "wild_match_p". Adjust code accordingly.
8201 Document this parameter in the function description.
8202
8203 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8204 Andrey Smirnov <andrew.smirnov@gmail.com>
8205
8206 -Wshadow warning fix.
8207 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8208 "wild_match" parameter to "wild_match_p" (-Wshadow).
8209
8210 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8211
8212 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8213 in function documentation.
8214
8215 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8216 Andrey Smirnov <andrew.smirnov@gmail.com>
8217
8218 -Wshadow warning fix.
8219 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8220 variable into wild_match_p. Adjust code accordingly.
8221
8222 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8223 Andrey Smirnov <andrew.smirnov@gmail.com>
8224
8225 * ada-valprint.c (ada_val_print_1): Move the code handling
8226 TYPE_CODE_ENUM inside its own lexical block. Declare
8227 variables len and val there, instead of in the function's
8228 top level block. Avoid declaring deref_val again in a way
8229 that shadows another variable of the same name declared
8230 in one of the up-level blocks. Just re-use the up-level
8231 variable instead.
8232
8233 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8234
8235 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8236 Replace block_found argument by symbol_info. Adjust
8237 implementation accordingly. Add function documentation.
8238 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8239 Fix documentation.
8240 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8241 * ada-exp.y (write_object_renaming): Adjust to new
8242 ada_lookup_encoded_symbol API.
8243
8244 2012-03-29 Joel Brobecker <brobecker@adacore.com>
8245
8246 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8247 documentation.
8248
8249 2012-03-28 Rathish C <rathish.c@kpitcummins.com>
8250
8251 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8252 (v850_register_name): Add the mpu and fpu register names.
8253 (v850e_register_name): Add the mpu and fpu register names.
8254 (v850e2_register_name): New function.
8255 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
8256 bfd_mach_v850e2v3.
8257
8258 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8259
8260 * NEWS: Add entry for Ada varobj support.
8261
8262 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8263
8264 * varobj.c (default_value_is_changeable_p): New function,
8265 extracted from varobj_value_is_changeable_p. Add declaration.
8266 (ada_value_is_changeable_p): New function, extracted from
8267 varobj_value_is_changeable_p. Add declaration.
8268 (struct language_specific): New field "value_is_changeable_p".
8269 (languages): Add entries for new field.
8270 (varobj_create): Set language before calling install_new_value.
8271 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8272 "value_is_changeable_p" language callback.
8273
8274 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8275
8276 * ada-varobj.h, ada-varobj.c: New files.
8277 * Makefile.in (SFILES): Add ada-varobj.c.
8278 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8279 (COMMON_OBS): Add ada-varobj.o.
8280
8281 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8282
8283 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8284 (struct language_specific): New field "value_has_mutated".
8285 (languages): Set field "value_has_mutated" in each entry of array.
8286 (varobj_value_has_mutated): New function.
8287 (varobj_udpdate): Add handling of type mutation.
8288 (value_of_root): Add handling of type mutation.
8289 (ada_value_has_mutated): New function.
8290
8291 2012-03-28 Pedro Alves <palves@redhat.com>
8292
8293 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8294 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8295
8296 2012-03-28 Tom Tromey <tromey@redhat.com>
8297
8298 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8299 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8300 before returning.
8301
8302 2012-03-28 Tom Tromey <tromey@redhat.com>
8303
8304 * .dir-locals.el: New file.
8305
8306 2012-03-28 Pedro Alves <palves@redhat.com>
8307
8308 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8309
8310 2012-03-28 Joel Brobecker <brobecker@adacore.com>
8311
8312 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8313 handling for r0.
8314
8315 2012-03-27 Pedro Alves <palves@redhat.com>
8316
8317 Eliminate struct ui_stream.
8318
8319 * ui-out.h (struct ui_stream): Delete.
8320 (ui_out_field_stream): Adjust prototype.
8321 (ui_out_stream_new, ui_out_stream_delete)
8322 (make_cleanup_ui_out_stream_delete): Delete declarations.
8323 * ui-out.c (ui_out_field_stream): Change prototype to take a
8324 ui_file instead of a ui_stream. Adjust.
8325 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8326 (make_cleanup_ui_out_stream_delete): Delete.
8327 * breakpoint.c (print_breakpoint_location)
8328 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8329 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8330 * disasm.c (dump_insns): Ditto.
8331 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8332 prototype.
8333 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8334 ui_stream/ui_out_stream_new.
8335 * infcmd.c (print_return_value): Ditto.
8336 * osdata.c (info_osdata_command): Don't allocate a local
8337 ui_stream.
8338 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8339 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8340 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8341 allocate a local ui_stream.
8342 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8343 instead of ui_stream/ui_out_stream_new.
8344 (list_args_or_locals): Don't allocate a local ui_stream.
8345 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8346 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8347 ui_stream/ui_out_stream_new.
8348 * cli/cli-setshow.c (do_setshow_command): Ditto.
8349
8350 2012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
8351
8352 * arm-linux-tdep.c (arm_linux_init_abi): Call
8353 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8354 * arm-tdep.c (arm_process_record): New function.
8355 (deallocate_reg_mem): New function.
8356 (decode_insn): New function.
8357 (thumb_record_branch): New function.
8358 (thumb_record_ldm_stm_swi(): New function.
8359 (thumb_record_misc): New function.
8360 (thumb_record_ld_st_stack): New function.
8361 (thumb_record_ld_st_imm_offset): New function.
8362 (thumb_record_ld_st_reg_offset(): New function.
8363 (thumb_record_add_sub_cmp_mov): New function.
8364 (thumb_record_shift_add_sub): New function.
8365 (arm_record_coproc_data_proc): New function.
8366 (arm_record_coproc): New function.
8367 (arm_record_b_bl): New function.
8368 (arm_record_ld_st_multiple): New function.
8369 (arm_record_ld_st_reg_offset): New function.
8370 (arm_record_ld_st_imm_offset): New function.
8371 (arm_record_data_proc_imm): New function.
8372 (arm_record_data_proc_misc_ld_str): New function.
8373 (arm_record_extension_space): New function.
8374 (arm_record_strx): New function.
8375 (sbo_sbz): New function.
8376 (struct insn_decode_record): New structure for arm insn record.
8377 (REG_ALLOC): New macro for reg allocations.
8378 (MEM_ALLOC): New macro for memory allocations.
8379 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
8380
8381 2012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8382
8383 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8384 (store_register): Likewise.
8385
8386 2012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
8387
8388 * MAINTAINERS (Write After Approval): Add myself to the list.
8389
8390 2012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8391
8392 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8393 Describe also the option "auto".
8394
8395 2012-03-22 Richard Henderson <rth@redhat.com>
8396
8397 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8398 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8399
8400 2012-03-22 Richard Henderson <rth@redhat.com>
8401
8402 * jit.c (jit_read_code_entry): Compute alignment and offset of
8403 int64_t member before computing entry_size.
8404
8405 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8406
8407 Python scripting: Add new method Value.referenced_value to
8408 gdb.Value which can dereference pointer as well as reference
8409 values.
8410 * NEWS: Add entry under 'Python scripting' about the new method
8411 Value.referenced_value on gdb.Value objects.
8412 * python/py-value.c (valpy_referenced_value): New function
8413 defining a new method on gdb.Value objects which can dereference
8414 pointer and reference values.
8415
8416 2012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8417
8418 * MAINTAINERS (Write After Approval): Add myself to the list.
8419
8420 2012-03-21 Kevin Buettner <kevinb@redhat.com>
8421
8422 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8423 in addition to "main".
8424
8425 2012-03-21 Joel Brobecker <brobecker@adacore.com>
8426
8427 * expression.h (op_name): Add declaration.
8428 * expprint.c (op_name): Remove declaration. Make non-static.
8429 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8430
8431 2012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8432
8433 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8434 of struct siginfo.
8435 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8436 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8437 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8438 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8439 (linux_nat_get_siginfo): Likewise.
8440 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8441 (linux_nat_get_siginfo): Likewise.
8442 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8443 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8444 * procfs.c (gdb_siginfo_t): Likewise.
8445
8446 2012-03-21 Mike Frysinger <vapier@gentoo.org>
8447
8448 * .gitignore: Ignore more files.
8449
8450 2012-03-20 Pedro Alves <palves@redhat.com>
8451
8452 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8453 returns.
8454
8455 2012-03-20 Yao Qi <yao@codesourcery.com>
8456
8457 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8458 comment.
8459
8460 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8461
8462 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8463 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8464 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8465 sect_offset.
8466 * dwarf2expr.h (cu_offset, sect_offset): New types.
8467 (struct dwarf_expr_context_funcs) <dwarf_call>
8468 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8469 sect_offset.
8470 (struct dwarf_expr_context) <len>: Improve the comment.
8471 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8472 cu_offset and sect_offset.
8473 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8474 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8475 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8476 * dwarf2loc.h: Include dwarf2expr.h.
8477 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8478 and sect_offset.
8479 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8480 Improve the comment.
8481 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8482 (struct signatured_type, struct line_header, struct partial_die_info)
8483 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8484 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8485 (get_die_type_at_offset, create_cus_from_index)
8486 (create_signatured_type_table_from_index, dw2_get_file_names)
8487 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8488 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8489 (create_debug_types_hash_table, process_psymtab_comp_unit)
8490 (load_partial_comp_unit, create_all_comp_units)
8491 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8492 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8493 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8494 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8495 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8496 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8497 (find_partial_die, read_attribute_value, lookup_die_type)
8498 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8499 (is_ref_attr): New function comment.
8500 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8501 Use cu_offset and sect_offset.
8502 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8503 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8504 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8505 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8506 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8507 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8508 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8509 sect_offset.
8510
8511 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8512
8513 Code cleanup.
8514 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8515 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8516 with xfree.
8517 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8518
8519 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8520
8521 * NEWS: Describe new options --init-command=FILE, -ix and
8522 --init-eval-command=COMMAND, -iex.
8523 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8524 CMDARG_INIT_COMMAND.
8525 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8526 "init-command", "init-eval-command", "ix" and "iex" to the variable
8527 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8528 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8529 (print_gdb_help): Describe --init-command=FILE, -ix and
8530 --init-eval-command=COMMAND, -iex.
8531
8532 2012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8533
8534 Code cleanup.
8535 * main.c (struct cmdarg): Move it here from main. Add more comments.
8536 (cmdarg_s, VEC (cmdarg_s)): New.
8537 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8538 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8539 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8540 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8541 of CMDARG.
8542
8543 2012-03-19 Tom Tromey <tromey@redhat.com>
8544
8545 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8546
8547 2012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8548
8549 PR symtab/13777
8550 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8551 GCC >=4.5.
8552
8553 2012-03-16 Chris January <chris.january@allinea.com>
8554
8555 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8556 of clear.
8557
8558 2012-03-16 Chris January <chris.january@allinea.com>
8559
8560 * source.c (add_path): Use memmove instead of strcpy because the
8561 strings overlap.
8562
8563 2012-03-16 Joel Brobecker <brobecker@adacore.com>
8564
8565 * value.h (set_value_parent): Add declaration.
8566 * value.c (set_value_parent): New function.
8567 (value_address): If VALUE->PARENT is not NULL, then use it as
8568 the base address instead of VALUE->LOCATION.address.
8569 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8570 the same as OBJ's address. Adjust V's offset accordingly.
8571 Set V's parent.
8572
8573 2012-03-16 Gary Benson <gbenson@redhat.com>
8574
8575 PR breakpoints/10738
8576 * dwarf2read.c (use_deprecated_index_sections): New global.
8577 (struct partial_die_info): New member may_be_inlined.
8578 (read_partial_die): Set may_be_inlined where appropriate.
8579 (add_partial_subprogram): Add partial symbols for partial
8580 DIEs that may be inlined.
8581 (new_symbol_full): Add inlined subroutines to the current
8582 scope.
8583 (write_psymtabs_to_index): Bump version number.
8584 (dwarf2_read_index): Read only version 6 indices unless
8585 use_deprecated_index_sections is set.
8586 * linespec.c (symbol_and_data_callback): New structure.
8587 (iterate_inline_only): New function.
8588 (iterate_over_all_matching_symtabs): New argument
8589 "include_inline". If nonzero, also call the callback for
8590 symbols representing inlined subroutines.
8591 (lookup_prefix_sym): Pass extra argument to the above.
8592 (find_function_symbols): Likewise.
8593 (add_matching_symbols_to_info): Likewise.
8594 * NEWS: Mention that GDB can now set breakpoints on inlined
8595 functions.
8596
8597 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8598
8599 * p-typeprint.c (pascal_type_print_method_args):
8600 Fix display of parameter of methods.
8601
8602 2012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8603
8604 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8605 Add missing prototype.
8606
8607 2012-03-16 Yao Qi <yao@codesourcery.com>
8608 Jan Kratochvil <jan.kratochvil@redhat.com>
8609
8610 Fix false compilation warning.
8611 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8612
8613 2012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8614 Pedro Alves <pedro@codesourcery.com>
8615
8616 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8617 (arm_register_g_packet_guesses): New function.
8618 (arm_gdbarch_init): Don't force a target description with
8619 registers when the executable is detected as M-profile. Instead
8620 set gdbarch->tdep->is_m. Register `g' packet guesses.
8621 (_initialize_arm_tdep): Initialize the new target description.
8622 * features/arm-with-m-fpa-layout.xml: New description.
8623 * features/arm-with-m-fpa-layout.c: New, generated.
8624
8625 2012-03-15 Joel Brobecker <brobecker@adacore.com>
8626
8627 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8628 Update function description.
8629 (insert_bp_location): Do not wipe bl->target_info out.
8630 * mem-break.c: #include "gdb_string.h".
8631 (default_memory_insert_breakpoint): Do not call target_read_memory
8632 with a pointer to the breakpoint's shadow_contents buffer. Use
8633 a local buffer instead.
8634 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8635
8636 2012-03-15 Tom Tromey <tromey@redhat.com>
8637
8638 * NEWS: Mention "info vtbl", not "info vtable".
8639 * cp-support.c (info_vtbl_command): Fix comment.
8640 (_initialize_cp_support): Fix text.
8641
8642 2012-03-15 Tom Tromey <tromey@redhat.com>
8643
8644 * cp-valprint.c (cp_print_value_fields): Use
8645 print_function_pointer_address for vtable slot.
8646
8647 2012-03-15 Tom Tromey <tromey@redhat.com>
8648
8649 * gnu-v3-abi.c (struct value_and_voffset): New.
8650 (hash_value_and_voffset, eq_value_and_voffset)
8651 (compare_value_and_voffset, compute_vtable_size)
8652 (print_one_vtable, gnuv3_print_vtable): New functions.
8653 (init_gnuv3_ops): Initialize 'print_vtable' field.
8654 * cp-support.c (info_vtbl_command): New function.
8655 (_initialize_cp_support): Add "info vtbl".
8656 * cp-abi.h (cplus_print_vtable): Declare.
8657 (struct cp_abi_ops) <print_vtable>: New field.
8658 * cp-abi.c (cplus_print_vtable): New function.
8659 * NEWS: Update.
8660
8661 2012-03-15 Tom Tromey <tromey@redhat.com>
8662
8663 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8664 iterate_over_symbols.
8665
8666 2012-03-14 Doug Evans <dje@google.com>
8667
8668 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8669 DW_OP_GNU_parameter_ref.
8670
8671 2012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8672
8673 Fix double prompt of 'interpreter-exec mi'.
8674 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8675 (mi_interpreter_resume): use it.
8676 (mi_execute_command_input_handler): New function.
8677 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8678 mi_execute_command_input_handler.
8679
8680 2012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
8681
8682 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8683 prototype.
8684 (darwin_debug_port_info): Make static.
8685 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8686 * machoread.c (_initialize_machoread): Add prototype.
8687 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8688 (i386_darwin_set_control, i386_darwin_get_control)
8689 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8690 i386_darwin_get_status, i386_darwin_get_control):
8691 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8692
8693 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8694
8695 * ax-gdb.c (gen_usual_unary): Remove special handling of
8696 enum and bool types.
8697
8698 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8699
8700 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8701
8702 2012-03-13 Joel Brobecker <brobecker@adacore.com>
8703
8704 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8705
8706 2012-03-13 Chris January <chris.january@allinea.com>
8707
8708 * aix-thread.c (fill_sprs): Store the floating point registers
8709 at the correct offsets into vals.
8710
8711 2012-03-13 Doug Evans <dje@google.com>
8712
8713 * NEWS: Mention symbol-reloading has been deleted.
8714 * symfile.c (symbol_reloading): Delete.
8715 (show_symbol_reloading): Delete.
8716 (_initialize_symfile): Delete set/show symbol-reloading.
8717
8718 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8719 read_in_chain until we have successfully read it in.
8720 (load_full_comp_unit): Ditto.
8721 (read_signatured_type): Add comment.
8722
8723 2012-03-13 Chris January <chris.january@allinea.com>
8724
8725 * stabsread.c (fix_common_block): Change type of valu argument
8726 to CORE_ADDR.
8727
8728 2012-03-13 Chris January <chris.january@allinea.com>
8729
8730 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8731 instruction.
8732
8733 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8734
8735 * common/linux-procfs.c (linux_proc_get_int): New, from
8736 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8737 field.
8738 (linux_proc_get_tgid): Only call linux_proc_get_int.
8739 (linux_proc_get_tracerpid): New.
8740 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8741 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8742 linux_proc_pid_has_state.
8743 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8744 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8745 (linux_ptrace_attach_warnings): New.
8746 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8747 New declaration.
8748 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8749 (linux_nat_attach): New variables ex, buffer, message and message_s.
8750 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8751
8752 2012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8753
8754 * Makefile.in (linux-ptrace.o): New.
8755 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8756 from linux-nat.c.
8757 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8758 * common/linux-ptrace.c: New file.
8759 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8760 * config/arm/linux.mh: Likewise.
8761 * config/i386/linux.mh: Likewise.
8762 * config/i386/linux64.mh: Likewise.
8763 * config/ia64/linux.mh: Likewise.
8764 * config/m32r/linux.mh: Likewise.
8765 * config/m68k/linux.mh: Likewise.
8766 * config/mips/linux.mh: Likewise.
8767 * config/pa/linux.mh: Likewise.
8768 * config/powerpc/linux.mh: Likewise.
8769 * config/powerpc/ppc64-linux.mh: Likewise.
8770 * config/powerpc/spu-linux.mh: Likewise.
8771 * config/s390/s390.mh: Likewise.
8772 * config/sparc/linux.mh: Likewise.
8773 * config/sparc/linux64.mh: Likewise.
8774 * config/xtensa/linux.mh: Likewise.
8775 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8776 common/linux-procfs.c.
8777 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8778
8779 2012-03-13 Hui Zhu <teawater@gmail.com>
8780 Pedro Alves <palves@redhat.com>
8781
8782 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8783 CREATE_BREAKPOINT_FLAGS_INSERTED.
8784 (create_breakpoint_sal, create_breakpoints_sal)
8785 (base_breakpoint_create_breakpoints_sal)
8786 (tracepoint_create_breakpoints_sal)
8787 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8788 down.
8789 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8790 (ftrace_command, strace_command): Adjust.
8791 (create_tracepoint_from_upload): Pass
8792 CREATE_BREAKPOINT_FLAGS_INSERTED.
8793 * breakpoint.h (enum breakpoint_create_flags): New.
8794 (create_breakpoint): New flags parameter.
8795 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
8796 * python/py-breakpoint.c (bppy_init): Adjust.
8797 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
8798 * spu-tdep.c (spu_catch_start): Adjust.
8799
8800 2012-03-13 Pedro Alves <palves@redhat.com>
8801 Hui Zhu <teawater@gmail.com>
8802 Yao Qi <yao@codesourcery.com>
8803
8804 * remote.c (struct remote_state): New field `starting_up'.
8805 (remote_start_remote): Set and clear it.
8806 (remote_can_download_tracepoint): If starting up, return false.
8807
8808 2012-03-13 Yao Qi <yao@codesourcery.com>
8809
8810 * inferior.h (struct inferior): Remove fields any_syscall_count,
8811 syscalls_counts and total_syscalls_count. Move them to new
8812 struct catch_syscall_inferior_data in breakpoint.c.
8813 * breakpoint.c: Call DEF_VEC_I(int).
8814 (struct catch_syscall_inferior_data): New.
8815 (get_catch_syscall_inferior_data): New.
8816 (catch_syscall_inferior_data_cleanup): New.
8817 (insert_catch_syscall): Update to access data in
8818 struct catch_syscall_inferior_data.
8819 (insert_catch_syscall): Likewise.
8820 (remove_catch_syscall): Likewise.
8821 (remove_catch_syscall): Likewise.
8822 (is_syscall_catchpoint_enabled): Likewise.
8823 (add_catch_command): Likewise.
8824 (_initialize_breakpoint): Register cleanup.
8825 * breakpoint.h: Removed DEF_VEC_I(int).
8826 * dwarf2loc.c: Call DEF_VEC_I(int).
8827 * mi/mi-main.c: Likewise.
8828
8829 2012-03-12 Mark Kettenis <kettenis@gnu.org>
8830
8831 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
8832
8833 2012-03-12 Chris January <chris.january@allinea.com>
8834
8835 * aix-thread.c (_initialize_aix_thread): Add prototype.
8836 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
8837 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
8838
8839 2012-03-12 Joel Brobecker <brobecker@adacore.com>
8840
8841 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
8842 include of "amd64-nat.h".
8843
8844 2012-03-12 Tom Tromey <tromey@redhat.com>
8845
8846 * buildsym.c (record_pending_block): Now static.
8847 * buildsym.h: (record_pending_block): Remove.
8848
8849 2012-03-12 Andreas Tobler <andreast@fgznet.ch>
8850
8851 * amd64bsd-nat.c: Include amd64bsd-nat.h.
8852
8853 2012-03-09 Tom Tromey <tromey@redhat.com>
8854
8855 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
8856 producer_is_gxx_lt_4_6>: New fields.
8857 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
8858
8859 2012-03-09 Tom Tromey <tromey@redhat.com>
8860
8861 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
8862
8863 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8864
8865 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
8866 prototype.
8867
8868 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8869
8870 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
8871
8872 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8873
8874 Fix -Wmissing-prototypes build.
8875 * arm-linux-nat.c (get_thread_id): Make it static.
8876 * xtensa-linux-nat.c (get_thread_id): Likewise.
8877
8878 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8879
8880 * server.c (process_point_options): If a conditional expression
8881 is found, only print a message if remote_debug is nonzero.
8882
8883 2012-03-08 Luis Machado <lgustavo@codesourcery.com>
8884
8885 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
8886 of internal error for unknown/unsupported types.
8887
8888 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8889
8890 Fix CU relative vs. absolute DIE offsets.
8891 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
8892 offset to offset_in_cu.
8893 * dwarf2read.c (process_enumeration_scope): Add CU offset to
8894 TYPE_OFFSET.
8895 (dwarf2_fetch_die_location_block): Rename parameter offset to
8896 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
8897
8898 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8899
8900 * libunwind-frame.c: Rename to ...
8901 * ia64-libunwind-tdep.c: ... here.
8902 * libunwind-frame.h: Rename to ...
8903 * ia64-libunwind-tdep.h: ... here.
8904 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
8905 ia64-libunwind-tdep.h.
8906 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
8907 * README (--with-libunwind): Rename to ...
8908 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
8909 * config.in: Regenerate.
8910 * configure: Regenerate.
8911 * configure.ac: New option --with-libunwind-ia64, make the
8912 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
8913 Remove AC_DEFINE for HAVE_LIBUNWIND.
8914 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
8915 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
8916 Rename libunwind-frame in the general comment.
8917 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
8918 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
8919 Move forward declarations inside #ifndef. Rename libunwind-frame in
8920 the general comment.
8921 * ia64-tdep.c: Rename libunwind-frame.h #include to
8922 ia64-libunwind-tdep.h.
8923 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
8924 (ia64_libunwind_descr): Rename libunwind-frame to
8925 ia64-libunwind-tdep in these function comments.
8926 * ia64-tdep.h: Rename libunwind-frame.h #include to
8927 ia64-libunwind-tdep.h.
8928 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
8929 ia64-libunwind-tdep in that data comment.
8930
8931 2012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
8932
8933 * libunwind-frame.h (struct frame_unwind): New declaration.
8934
8935 2012-03-08 Joel Brobecker <brobecker@adacore.com>
8936
8937 * breakpoint.c (_initialize_breakpoint): Fix error in help of
8938 "set breakpoint condition-evaluation" command.
8939
8940 2012-03-08 Tristan Gingold <gingold@adacore.com>
8941
8942 * sparc-stub.c: Move to stubs/
8943 * sh-stub.c: Likewise.
8944 * m68k-stub.c: Likewise.
8945 * m32r-stub.c: Likewise.
8946 * i386-stub.c: Likewise.
8947
8948 2012-03-08 Andreas Schwab <schwab@linux-m68k.org>
8949
8950 * m68klinux-tdep.c (m68k_linux_init_abi): Register
8951 linux_get_siginfo_type.
8952
8953 * m68klinux-nat.c: Include "gdb_proc_service.h".
8954 (PTRACE_GET_THREAD_AREA): Define.
8955 (ps_get_thread_area): New function.
8956
8957 2012-03-08 Yao Qi <yao@codesourcery.com>
8958
8959 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
8960 `xsnprintf'.
8961 (remote_query_attached): Likewise.
8962 (remote_static_tracepoint_marker_at): Likewise.
8963 (remote_set_permissions): Likewise.
8964 (remote_detach_1, extended_remote_attach_1): Likewise.
8965 (send_g_packet, remote_vkill): Likewise.
8966 (extended_remote_disable_randomization): Likewise.
8967 (remote_add_target_side_condition): Likewise.
8968 (remote_insert_breakpoint): Likewise.
8969 (remote_remove_breakpoint): Likewise.
8970 (remote_insert_watchpoint): Likewise.
8971 (remote_remove_watchpoint): Likewise.
8972 (remote_insert_hw_breakpoint): Likewise.
8973 (remote_insert_hw_breakpoint): Likewise.
8974 (remote_remove_hw_breakpoint): Likewise.
8975 (remote_download_command_source): Likewise.
8976 (remote_download_tracepoint): Likewise.
8977 (remote_download_trace_state_variable): Likewise.
8978 (remote_disable_tracepoint): Likewise.
8979 (remote_trace_set_readonly_regions): Likewise.
8980 (remote_get_tracepoint_status): Likewise.
8981 (remote_trace_find): Likewise.
8982 (remote_get_trace_state_variable_value): Likewise.
8983 (remote_set_disconnected_tracing): Likewise.
8984 (remote_set_circular_trace_buffer): Likewise.
8985 (remote_get_min_fast_tracepoint_insn_len): Likewise.
8986 (remote_use_agent): Likewise.
8987 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
8988 Update callers.
8989
8990 2012-03-07 Pedro Alves <palves@redhat.com>
8991
8992 * NEWS: Mention QProgramSignals.
8993 * inferior.h (update_signals_program_target): Declare.
8994 * infrun.c: (update_signals_program_target): New.
8995 (handle_command): Update the target of the new program signals
8996 array changes.
8997 * remote.c (PACKET_QProgramSignals): New enum.
8998 (last_program_signals_packet): New global.
8999 (remote_program_signals): New.
9000 (remote_start_remote): Update the target with the program signals
9001 list.
9002 (remote_protocol_features): Add entry for QPassSignals.
9003 (remote_open_1): Free anc clear last_program_signals_packet.
9004 (init_remote_ops): Install remote_program_signals.
9005 * target.c (update_current_target): Adjust.
9006 (target_program_signals): New.
9007 * target.h (struct target_ops) <to_program_signals>: New field.
9008 (target_program_signals): Declare.
9009
9010 2012-03-07 Pedro Alves <palves@redhat.com>
9011
9012 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9013 extensions.
9014
9015 2012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9016
9017 * m68klinux-nat.c (getregs_supplies): Make static.
9018 (getfpregs_supplies): Likewise.
9019 (have_ptrace_getregs): Likewise.
9020
9021 2012-03-06 Joel Brobecker <brobecker@adacore.com>
9022
9023 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9024 in call to get_die_type_at_offset.
9025
9026 2012-03-06 Stan Shebs <stan@codesourcery.com>
9027
9028 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9029 * mi/mi-cmd-disas.c: Ditto.
9030 * mi/mi-cmd-env.c: Ditto.
9031 * mi/mi-cmd-file.c: Ditto.
9032 * mi/mi-cmd-stack.c: Ditto.
9033 * mi/mi-cmd-target.c: Ditto.
9034 * mi/mi-cmd-var.c: Ditto.
9035 * mi/mi-cmds.c: Ditto.
9036 * mi/mi-cmds.h: Ditto.
9037 * mi/mi-console.c: Ditto.
9038 * mi/mi-getopt.c: Ditto.
9039 * mi/mi-getopt.h: Ditto.
9040 * mi/mi-interp.c: Ditto.
9041 * mi/mi-main.c: Ditto.
9042 * mi/mi-out.c: Ditto.
9043 * mi/mi-parse.c: Ditto.
9044 * mi/mi-parse.h: Ditto.
9045 * mi/mi-symbol-cmds.c: Ditto.
9046
9047 * mi/mi-getopt.h: Move mi_opt struct up.
9048 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9049 return.
9050 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9051
9052 2012-03-06 Tom Tromey <tromey@redhat.com>
9053
9054 * proc-service.c (ps_pglobal_lookup): Set the current program
9055 space.
9056
9057 2012-03-06 Pedro Alves <palves@redhat.com>
9058
9059 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9060
9061 2012-03-05 Joel Brobecker <brobecker@adacore.com>
9062
9063 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9064
9065 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9066
9067 Code cleanup.
9068 * common/linux-osdata.c (linux_common_core_of_thread): New function
9069 comment.
9070 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9071 call by linux_common_core_of_thread.
9072 (linux_nat_core_of_thread_1): Remove.
9073 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9074 * linux-thread-db.c: Include linux-osdata.h.
9075 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9076 linux_common_core_of_thread.
9077
9078 2012-03-05 Tom Tromey <tromey@redhat.com>
9079
9080 * value.c (value_primitive_field): Don't fetch contents for
9081 non-virtual bases.
9082
9083 2012-03-05 Tom Tromey <tromey@redhat.com>
9084
9085 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9086
9087 2012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
9088
9089 * s390-nat.c: Include "gregset.h".
9090
9091 2012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9092
9093 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9094 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9095 (libunwind_load): New variable so_error, use it for dlerror. Try to
9096 load also LIBUNWIND_SO_7.
9097
9098 2012-03-05 Pedro Alves <palves@redhat.com>
9099
9100 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9101 is not NULL, and remove resulting dead code.
9102
9103 2012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9104
9105 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9106 prologue to sh_analyze_prologue.
9107 (sh_analyze_prologue): Make better use of such an upper limit, and
9108 generally be more cautious about accessing memory.
9109
9110 2012-03-05 Tom Tromey <tromey@redhat.com>
9111
9112 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9113 _initialize_ia64_hpux_tdep.
9114
9115 2012-03-05 Pedro Alves <palves@redhat.com>
9116
9117 PR gdb/13766
9118
9119 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9120 the register state is clear, supply explicit zero, instead of
9121 marking the register unavailable.
9122
9123 2012-03-05 Tristan Gingold <gingold@adacore.com>
9124
9125 * NEWS: Mention OpenVMS ia64 new target.
9126
9127 2012-03-05 Tristan Gingold <gingold@adacore.com>
9128
9129 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9130 (ia64_unw_accessors, ia64_unw_rse_accessors)
9131 (ia64_libunwind_descr): Declare.
9132 * ia64-vms-tdep.c: New file.
9133 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9134 (ia64_libunwind_descr): Make them public.
9135 * configure.tgt: Add ia64-*-*vms*.
9136 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9137 (ALLDEPFILES): Add ia64-vms-tdep.c
9138
9139 2012-03-05 Tristan Gingold <gingold@adacore.com>
9140
9141 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9142 * remote.c (PACKET_qXfer_uib): New enum value.
9143 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9144 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9145 (_initialize_remote): Call add_packet_config_cmd for
9146 xfer:uib packet.
9147
9148 2012-03-05 Tristan Gingold <gingold@adacore.com>
9149
9150 * osabi.c (gdb_osabi_names): Add OpenVMS.
9151 (generic_elf_osabi_sniffer): Likewise.
9152 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
9153
9154 2012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9155
9156 Removed unused code.
9157 * libunwind-frame.c (libunwind_frame_unwind)
9158 (libunwind_frame_base_address): Remove.
9159 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9160
9161 2012-03-04 Yao Qi <yao@codesourcery.com>
9162
9163 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9164 remove trailing new line.
9165 (agent_run_command, agent_run_command): Add _ markup.
9166 (agent_capability_check): Likewise.
9167
9168 2012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9169
9170 * breakpoint.c (set_condition_evaluation_mode): Set
9171 CONDITION_EVALUATION_MODE unconditionally.
9172
9173 2012-03-03 Yao Qi <yao@codesourcery.com>
9174
9175 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9176 * common/agent.h: Update declaration.
9177 * inf-child.c (inf_child_use_agent): New.
9178 (inf_child_can_use_agent): New.
9179 (inf_child_target): Initialize fields `to_use_agent'
9180 and `to_can_use_agent'.
9181 * agent.c (agent_new_objfile): New.
9182 (_initialize_agent): Add agent_new_objfile to new_objfile
9183 observer.
9184
9185 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9186 New.
9187 (linux_target_install_ops): Initialize field
9188 `to_static_tracepoint_markers_by_strid'.
9189 * remote.c (free_current_marker): Move it to ...
9190 * tracepoint.c (free_current_marker): ... here. New.
9191 (cleanup_target_stop): New.
9192 * tracepoint.h: Declare free_current_marker.
9193 * NEWS: Add one entry about `info static-tracepoint-marker'.
9194
9195 2012-03-03 Yao Qi <yao@codesourcery.com>
9196
9197 * common/agent.c (agent_loaded_p): New.
9198 (agent_look_up_symbols): New global.
9199 * common/agent.h: Declare agent_loaded_p.
9200
9201 2012-03-03 Yao Qi <yao@codesourcery.com>
9202
9203 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9204 (agent_capability_check, agent_capability_invalidate): New.
9205 (symbol_list): New array element.
9206 * common/agent.h (enum agent_capa): New.
9207 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9208
9209 2012-03-03 Yao Qi <yao@codesourcery.com>
9210
9211 * target.h (struct target_ops) <to_use_agent>: New field.
9212 (struct target_ops) <to_can_use_agent>: New field.
9213 (target_use_agent, target_can_use_agent): New macro.
9214 * target.c (update_current_target): Update.
9215 * remote.c: New enum `PACKET_QAgent'.
9216 (remote_protocol_features): Add a new element.
9217 (remote_use_agent, remote_can_use_agent): New.
9218 (init_remote_ops): Initialize field `can_use_agent' with
9219 remote_can_use_agent. Intiailize field `use_agent' with
9220 remote_use_agent.
9221 * common/agent.c (use_agent): New global.
9222 * common/agent.h: Declare it.
9223 * tracepoint.c (info_static_tracepoint_markers_command): Add
9224 comment.
9225 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9226 (COMMON_OBS): Add common/agent.o and agent.o
9227 (common-agent.o): New rule.
9228 * agent.c: New.
9229
9230 2012-03-03 Yao Qi <yao@codesourcery.com>
9231
9232 * common/agent.c: New.
9233 * common/agent.h: New.
9234 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9235 AC_CHECK_HEADERS.
9236 * configure, configh.in: Regenerated.
9237
9238 2012-03-02 Kevin Buettner <kevinb@redhat.com>
9239
9240 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9241 unless it exists for this architecture.
9242
9243 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9244
9245 * language.h (struct language_defn): New "method" la_read_var_value.
9246 * findvar.c: #include "language.h".
9247 (default_read_var_value): Renames read_var_value. Rewrite
9248 function description.
9249 (read_var_value): New function.
9250 * value.h (default_read_var_value): Add prototype.
9251 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9252 New functions.
9253 (ada_language_defn): Add entry for la_read_var_value.
9254 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9255 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9256 language_defn structures to add entry for new la_read_var_value
9257 field.
9258
9259 2012-03-02 Tom Tromey <tromey@redhat.com>
9260 Pedro Alves <palves@redhat.com>
9261
9262 PR breakpoints/13776:
9263 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9264 breakpoints.
9265 (delete_longjmp_breakpoint_at_next_stop): New.
9266 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9267 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9268 before deleting the inferior. Add comments.
9269 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9270 breakpoints immediately, but only on next stop. Move that code
9271 next to where we mark other breakpoints for deletion.
9272
9273 2012-03-02 Joel Brobecker <brobecker@adacore.com>
9274
9275 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9276 marker.
9277 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9278 violation.
9279
9280 2012-03-02 Pedro Alves <palves@redhat.com>
9281
9282 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9283
9284 2012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9285
9286 Fix -Wmissing-prototypes build.
9287 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9288 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9289 (gdbsim_has_memory): Likewise.
9290
9291 2012-03-02 Yao Qi <yao@codesourcery.com>
9292
9293 Fix -Wmissing-prototypes build.
9294 * charset.c (phony_iconv_open): Make static.
9295 (phony_iconv_close, phony_iconv): Likewise.
9296 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9297 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9298 prototype.
9299 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9300 * ser-mingw.c (create_select_thread): Make static.
9301 * windows-termcap.c (tgetent): New prototype.
9302 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9303
9304 2012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9305
9306 Fix -Wmissing-prototypes build.
9307 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9308 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9309 (_initialize_loadable): New prototypes.
9310
9311 2012-03-02 Doug Evans <dje@google.com>
9312
9313 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9314 abbrev table, read_comp_unit will do it.
9315
9316 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9317
9318 Fix -Wmissing-prototypes build.
9319 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9320 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9321 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9322 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9323 (_initialize_arm_symbian_tdep): New prototype.
9324 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9325 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9326 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9327 static.
9328 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9329 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9330 prototype.
9331 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9332 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9333 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9334 static.
9335 * moxie-tdep.c (moxie_process_record): Likewise.
9336 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9337 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9338 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9339 (_initialize_rl78_tdep): New prototype.
9340 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9341 (_initialize_rx_tdep): New prototype.
9342 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9343 (_initialize_darwin_solib): New prototype.
9344 * solib-spu.c: Include solib-spu.h.
9345 (_initialize_spu_solib): New prototype.
9346 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9347 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9348 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9349 (tic6x_software_single_step): Make it static.
9350 (_initialize_tic6x_tdep): New prototype.
9351
9352 2012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9353
9354 Fix -Wmissing-prototypes build.
9355 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9356 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9357
9358 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9359
9360 Fix -Wmissing-prototypes build.
9361 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9362 (frv_have_stopped_data_address): Remove.
9363
9364 2012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9365
9366 Fix -Wmissing-prototypes build.
9367 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9368 * sh-tdep.c: Include sh64-tdep.h.
9369 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9370 * sh64-tdep.c: Include sh64-tdep.h.
9371 * sh64-tdep.h: New file.
9372
9373 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9374
9375 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9376
9377 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9378
9379 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9380 sp_regnum once the gdbarch_init_osabi hook has been called.
9381
9382 2012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9383
9384 * mips-tdep.c (mips32_bc1_pc): New function.
9385 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9386 BPOSGE32 and BPOSGE64 instructions.
9387 (deal_with_atomic_sequence): Likewise.
9388 (mips32_instruction_has_delay_slot): Likewise.
9389
9390 2012-03-01 Maciej W. Rozycki <macro@mips.com>
9391 Chris Dearman <chris@mips.com>
9392 Maciej W. Rozycki <macro@codesourcery.com>
9393 Joseph Myers <joseph@codesourcery.com>
9394
9395 * features/mips-dsp.xml: New file.
9396 * features/mips64-dsp.xml: New file.
9397 * features/mips-dsp-linux.xml: New file.
9398 * features/mips64-dsp-linux.xml: New file.
9399 * features/Makefile (WHICH): Add mips-dsp-linux and
9400 mips64-dsp-linux.
9401 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9402 * features/mips-dsp-linux.c: New file.
9403 * features/mips64-dsp-linux.c: New file.
9404 * regformats/mips-dsp-linux.dat: New file.
9405 * regformats/mips64-dsp-linux.dat: New file.
9406 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9407 registers.
9408 (mips64_linux_register_addr): Likewise.
9409 (mips64_linux_regsets_fetch_registers): Likewise.
9410 (mips64_linux_regsets_store_registers): Likewise.
9411 (mips64_linux_fetch_registers): Update call to
9412 mips64_linux_regsets_fetch_registers.
9413 (mips64_linux_store_registers): Update call to
9414 mips64_linux_regsets_store_registers.
9415 (mips_linux_read_description): Probe for DSP registers.
9416 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9417 and initialize_tdesc_mips64_dsp_linux.
9418 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9419 Remove padding of no longer used embedded register slots.
9420 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9421 (MIPS_RESTART_REGNUM): Redefine enum value.
9422 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9423 strings.
9424 (mips_tx39_reg_names): Likewise.
9425 (mips_linux_reg_names): New array of register names for Linux
9426 targets.
9427 (mips_register_name): Check for a null pointer in
9428 mips_processor_reg_names and return an empty string.
9429 (mips_register_type): Exclude embedded registers for the IRIX
9430 and Linux ABIs.
9431 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9432 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9433 DSP registers.
9434 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9435 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9436 (mips_gdbarch_init): Likewise. Initialize internal register
9437 indices for the Linux ABI. Use dynamic numbers to refer to
9438 registers, as applicable, while parsing the target description.
9439 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9440
9441 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9442
9443 * frame.h (read_frame_register_unsigned): Fix typo in function
9444 description.
9445
9446 2012-03-01 Pedro Alves <palves@redhat.com>
9447
9448 * jit-reader.in [!__cplusplus]
9449 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9450
9451 2012-03-01 Pedro Alves <palves@redhat.com>
9452
9453 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9454 * configure: Regenerate.
9455
9456 2012-03-01 Pedro Alves <palves@redhat.com>
9457
9458 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9459 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9460 (ftrace_command, strace_command): Make static.
9461 * d-lang.c (_initialize_d_language): Declare.
9462 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9463 * dwarf2loc.c (_initialize_dwarf2loc):
9464 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9465 * exec.c (exec_get_section_table): Make static.
9466 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9467 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9468 * inferior.c (remove_inferior_command, add_inferior_command)
9469 (clone_inferior_command): Make static.
9470 * linux-nat.c (linux_nat_thread_address_space)
9471 (linux_nat_core_of_thread): Make static.
9472 * linux-tdep.c (_initialize_linux_tdep): Declare.
9473 * objc-lang.c (_initialize_objc_lang): Declare.
9474 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9475 Make static.
9476 (_initialize_opencl_language): Declare.
9477 * record.c (_initialize_record): Declare.
9478 * remote.c (demand_private_info, remote_get_tib_address)
9479 (remote_supports_cond_tracepoints)
9480 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9481 Make static.
9482 * skip.c (_initialize_step_skip): Declare.
9483 * symtab.c (skip_prologue_using_lineinfo): Make static.
9484 * tracepoint.c (delete_trace_state_variable)
9485 (trace_variable_command, delete_trace_variable_command)
9486 (get_uploaded_tsv, find_matching_tracepoint_location)
9487 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9488 Make static.
9489 * value.c (pack_unsigned_long): Make static.
9490 * varobj.c (varobj_ensure_python_env): Make static.
9491 * windows-tdep.c (_initialize_windows_tdep): Declare.
9492 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9493
9494 2012-03-01 Pedro Alves <palves@redhat.com>
9495
9496 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9497 gdbarch parameter.
9498 (linux_init_abi): Install it as has_shared_address_space gdbarch
9499 callback.
9500
9501 2012-03-01 Pedro Alves <palves@redhat.com>
9502
9503 * observer.c (observer_test_first_notification_function)
9504 (observer_test_second_notification_function)
9505 (observer_test_third_notification_function): Add declarations.
9506
9507 2012-03-01 Pedro Alves <palves@redhat.com>
9508
9509 * common/signals.c (default_target_signal_to_host)
9510 (default_target_signal_from_host): Move ...
9511 * arch-utils.c: ... here.
9512 * arch-utils.h (default_target_signal_to_host)
9513 (default_target_signal_from_host): Declare.
9514
9515 * common/signals.c (target_signal_from_command): Move ...
9516 * infrun.c: ... here.
9517 * inferior.h (target_signal_from_command): Declare.
9518 * target.h (target_signal_from_command)
9519 (default_target_signal_from_host, default_target_signal_to_host):
9520 Delete declarations.
9521
9522 * common/signals.c (_initialize_signals): Delete.
9523
9524 2012-03-01 Pedro Alves <palves@redhat.com>
9525
9526 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9527 both __cplusplus and !__cplusplus.
9528
9529 2012-03-01 Pedro Alves <palves@redhat.com>
9530
9531 * psymtab.c (find_and_open_source): Delete declaration.
9532 * source.c (find_and_open_source): Move comment ...
9533 * source.h (find_and_open_source): ... to this new declaration.
9534
9535 2012-03-01 Pedro Alves <palves@redhat.com>
9536
9537 * inline-frame.c: Include inline-frame.h.
9538
9539 2012-03-01 Pedro Alves <palves@redhat.com>
9540
9541 * tui/tui-data.c (set_gen_win_origin): Delete.
9542 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9543 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9544
9545 2012-03-01 Pedro Alves <palves@redhat.com>
9546
9547 * remote.c (encode_actions): Delete declaration.
9548 * tracepoint.c (encode_actions): Make extern.
9549 * tracepoint.h (encode_actions): Declare.
9550
9551 2012-03-01 Pedro Alves <palves@redhat.com>
9552
9553 * python/py-breakpoint.c: Include python.h.
9554 * python/py-continueevent.c (create_continue_event_object): Make
9555 static.
9556 * python/py-lazy-string.c (stpy_get_type): Make static.
9557 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9558 Make static.
9559 * python/py-utils.c (unicode_to_target_python_string): Make
9560 static.
9561 * python/py-value.c: Include python.h.
9562
9563 2012-03-01 Pedro Alves <palves@redhat.com>
9564
9565 * inferior.c (delete_threads_of_inferior): Delete.
9566
9567 2012-03-01 Pedro Alves <palves@redhat.com>
9568
9569 Import fallback definitions from glibc.
9570
9571 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9572 ps_prochandle): Forward declare.
9573 (ps_err_e): Use glibc's comments.
9574 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9575 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9576 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9577 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9578 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9579 (struct ps_prochandle): Adjust comment.
9580
9581 2012-03-01 Pedro Alves <palves@redhat.com>
9582
9583 * ada-lang.c (ada_modulus_from_name): Delete.
9584 * ada-lex.l (lexer_init): Make static.
9585
9586 2012-03-01 Pedro Alves <palves@redhat.com>
9587
9588 PR gdb/13767
9589
9590 * frame.c (read_frame_register_unsigned): New.
9591 * frame.h (read_frame_register_unsigned): Declare.
9592 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9593 Handle it.
9594 (print_i387_control_word): New parameter `control_p'. Handle it.
9595 (i387_print_float_info): Handle unavailable float registers.
9596
9597 2012-03-01 Keith Seitz <keiths@redhat.com>
9598
9599 * linespec.c (decode_line_2): Sort the list of methods
9600 alphabetically before presenting the user with a selection
9601 menu.
9602
9603 2012-03-01 Doug Evans <dje@google.com>
9604
9605 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9606 has_namespace_info.
9607 (dwarf2_read_abbrevs): Remove corresponding initialization.
9608
9609 2012-03-01 Scott J. Goldman <scottjg@vmware.com>
9610
9611 * NEWS: Mention new python command class gdb.COMMAND_USER.
9612 * cli/cli-cmds.c (show_user): Print error when used on a python
9613 command.
9614 (init_cli_cmds): Update documentation strings for "show user" and
9615 "set/show max-user-call-depth" to clarify that it does not apply to
9616 python commands.
9617 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9618 error check.
9619 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9620 gdb python api.
9621 * top.c (execute_command): Only execute a user-defined command as a
9622 legacy macro if c->user_commands is set.
9623
9624 2012-03-01 Tom Tromey <tromey@redhat.com>
9625
9626 * valprint.h (struct generic_val_print_decorations): New.
9627 (generic_val_print): Declare.
9628 * valprint.c (generic_val_print): New function.
9629 * p-valprint.c (p_decorations): New global.
9630 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9631 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9632 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9633 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9634 * m2-valprint.c (m2_decorations): New global.
9635 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9636 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9637 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9638 TYPE_CODE_ERROR>: Call generic_val_print.
9639 * f-valprint.c (f_decorations): New global.
9640 (f_val_print): Use print_function_pointer_address.
9641 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9642 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9643 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9644 generic_val_print.
9645 * c-valprint.c (c_decorations): New global.
9646 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9647 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9648 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9649 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9650 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9651 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9652 case.
9653
9654 2012-03-01 Tom Tromey <tromey@redhat.com>
9655
9656 * valprint.c (val_print): Update.
9657 * p-valprint (pascal_val_print): Return void.
9658 * p-lang.h (pascal_val_print): Return void.
9659 * m2-valprint.c (m2_val_print): Return void.
9660 * m2-lang.h (m2_val_print): Return void.
9661 * language.h (struct language_defn) <la_val_print>: Return void.
9662 * language.c (unk_lang_val_print): Return void.
9663 * jv-valprint.c (java_val_print): Return void.
9664 * jv-lang.h (java_val_print): Return void.
9665 * f-valprint.c (f_val_print): Return void.
9666 * f-lang.h (f_val_print): Return void.
9667 * d-valprint.c (d_val_print): Return void.
9668 (dynamic_array_type): Update.
9669 * d-lang.h (d_val_print): Return void.
9670 * c-valprint.c (c_val_print): Return void.
9671 * c-lang.h (c_val_print): Return void.
9672 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9673 void.
9674 * ada-lang.h (ada_val_print): Return void.
9675
9676 2012-03-01 Tom Tromey <tromey@redhat.com>
9677
9678 * value.h (val_print): Return void.
9679 * valprint.c (val_print): Return void.
9680
9681 2012-03-01 Tom Tromey <tromey@redhat.com>
9682
9683 * value.h (common_val_print): Return void.
9684 * valprint.c (common_val_print): Return void.
9685
9686 2012-03-01 Tom Tromey <tromey@redhat.com>
9687
9688 * value.h (value_print): Return void.
9689 * valprint.c (value_print): Return void.
9690 * p-valprint.c (pascal_value_print): Return void.
9691 * p-lang.h (pascal_value_print): Return void.
9692 * language.h (struct language_defn) <la_value_print>: Return
9693 void.
9694 * language.c (unk_lang_value_print): Return void.
9695 * jv-valprint.c (java_value_print): Return void.
9696 * jv-lang.h (java_value_print): Return void.
9697 * f-valprint.c (c_value_print): Don't declare.
9698 Include c-lang.h.
9699 * c-valprint.c (c_value_print): Return void.
9700 * c-lang.h (c_value_print): Return void.
9701 * ada-valprint.c (ada_value_print): Return void.
9702 * ada-lang.h (ada_value_print): Return void.
9703
9704 2012-03-01 Tom Tromey <tromey@redhat.com>
9705
9706 * value.c (value_primitive_field): Handle virtual base classes.
9707
9708 2012-03-01 Tom Tromey <tromey@redhat.com>
9709
9710 * gdbtypes.h (struct vbase): Remove.
9711
9712 2012-03-01 Tom Tromey <tromey@redhat.com>
9713
9714 * c-valprint.c (print_function_pointer_address): Move...
9715 * valprint.c: ... here. Make non-static.
9716 * m2-valprint.c (print_function_pointer_address): Remove.
9717 * valprint.h (print_function_pointer_address): Declare.
9718
9719 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9720
9721 * NEWS: Document the fact that one can provide a condition when
9722 creating an Ada exception catchpoint.
9723
9724 2012-03-01 Tom Tromey <tromey@redhat.com>
9725
9726 * valprint.c (val_print_type_code_flags): Fix placement of
9727 trailing brace.
9728
9729 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9730
9731 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9732 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9733 environment variable before calling update-copyright.
9734
9735 2012-03-01 Joel Brobecker <brobecker@adacore.com>
9736
9737 * gnulib/extra/update-copyright: Update to the latest from
9738 gnulib's git repository.
9739 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9740 variable to 2 instead of 1.
9741
9742 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9743
9744 * varobj.c (c_value_of_variable): Remove dead code.
9745
9746 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9747
9748 * ada-lex.p (processId): Do not modify already encoded IDs.
9749 Update function documentation.
9750
9751 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9752
9753 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9754 "name" with "struct symbol *name_sym".
9755 * ada-exp.y (write_var_or_type): Update call to
9756 ada_find_renaming_symbol.
9757 "name" with "struct symbol *name_sym". Adjust Implementation
9758 accordingly. Adjust the function documentation.
9759
9760 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9761
9762 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9763 * ada-lang.c (ada_find_any_type): Add advance declaration.
9764 Make static. Replace ada_find_any_symbol by
9765 ada_find_any_type_symbol.
9766 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9767 Improve function description. Make static.
9768 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9769 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9770
9771 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9772
9773 * ada-lang.c (struct tag_args): Delete.
9774 (ada_get_tsd_type): Function body moved up in source file.
9775 (ada_tag_name_1, ada_tag_name_2): Delete.
9776 (ada_get_tsd_from_tag): New function.
9777 (ada_tag_name_from_tsd): New function.
9778 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9779 to determine the tag name.
9780
9781 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9782
9783 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9784 declaration.
9785 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9786 function.
9787
9788 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9789
9790 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9791
9792 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9793
9794 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
9795 full searches.
9796
9797 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9798
9799 * ada-lang.c (constrained_packed_array_type): If there is a
9800 parallel XA type, use it to determine the array index type.
9801
9802 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9803
9804 * ada-valprint.c (ada_val_print_1): If our value is a reference
9805 to an array descriptor, dereference it before converting it
9806 to a simple array.
9807
9808 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9809
9810 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
9811 creating fixed value.
9812 (ada_value_ind, ada_coerce_ref, assign_component)
9813 (ada_evaluate_subexp): Remove call to unwrap_value before
9814 call to ada_to_fixed_value.
9815
9816 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9817
9818 * ada-lang.c (to_fixed_array_type): Set result's type name.
9819
9820 2012-02-29 Joel Brobecker <brobecker@adacore.com>
9821
9822 * ada-lang.c (catch_ada_exception_command_split): Add new
9823 argument cond_string. Add support for condition at end of
9824 "catch exception" commands.
9825 (ada_decode_exception_location): Add new argument cond_string.
9826 Update call to catch_ada_exception_command_split.
9827 (create_ada_exception_catchpoint): Add new argument cond_string.
9828 Set the breakpoint condition if needed.
9829 (catch_ada_exception_command): Update call to
9830 ada_decode_exception_location.
9831 (ada_decode_assert_location): Add function documentation.
9832 Add support for condition at end of "catch assert" command.
9833 (catch_assert_command): Update calls to ada_decode_assert_location
9834 and create_ada_exception_catchpoint.
9835
9836 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9837
9838 Fix disp-step-syscall.exp: fork: single step over fork.
9839 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
9840 (i386_linux_get_syscall_number_from_regcache): ... here, new function
9841 comment, change parameters gdbarch and ptid to regcache. Remove
9842 parameter regcache, initialize gdbarch from regcache here.
9843 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
9844 New functions.
9845 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
9846 instead.
9847 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
9848 'syscall'. Make the 'int' check more strict.
9849
9850 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9851
9852 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
9853 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
9854 (i386_linux_intx80_sysenter_syscall_record): ... here.
9855 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
9856 Use the renamed function name.
9857
9858 2012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
9859
9860 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
9861 * breakpoint.c (until_break_command): Likewise.
9862 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
9863 * infcall.c (call_function_by_hand): Likewise.
9864 * infcmd.c (finish_forward): Likewise.
9865 * infrun.c (insert_exception_resume_breakpoint): Likewise.
9866
9867 2012-02-28 Tristan Gingold <gingold@adacore.com>
9868
9869 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
9870 avoid variable assignments inside condition.
9871
9872 2012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
9873
9874 Fix static analysis issue found by cppcheck.
9875 * microblaze-tdep.c (microblaze_extract_return_value): Fix
9876 uninitialized BUF for size 2.
9877
9878 2012-02-27 Chris Dearman <chris@mips.com>
9879 Nathan Froyd <froydnj@codesourcery.com>
9880 Maciej W. Rozycki <macro@codesourcery.com>
9881
9882 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
9883 (mips16_instruction_has_delay_slot): Likewise.
9884 (mips_segment_boundary): Likewise.
9885 (mips_adjust_breakpoint_address): Likewise.
9886 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
9887
9888 2012-02-27 Maciej W. Rozycki <macro@mips.com>
9889 Maciej W. Rozycki <macro@codesourcery.com>
9890
9891 * infrun.c (handle_inferior_event): Don't proceed through
9892 shared library trampolines if stepping at the machine
9893 instruction level.
9894
9895 2012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
9896
9897 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
9898 too.
9899
9900 2012-02-27 Thomas Schwinge <thomas@codesourcery.com>
9901
9902 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
9903 (sh_stub_unwind_sniffer): New functions.
9904 (sh_stub_unwind): New variable.
9905 (sh_gdbarch_init): Wire everything.
9906
9907 2012-02-27 Pedro Alves <palves@redhat.com>
9908
9909 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
9910 (linux_nat_post_attach_wait): Adjust to use
9911 linux_proc_pid_is_stopped.
9912 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
9913 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
9914 based on pid_is_stopped from both linux-nat.c and
9915 gdbserver/linux-low.c, and renamed.
9916
9917 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9918
9919 * remote.c (remote_watchpoint_addr_within_range): New function.
9920 (init_remote_ops): Use it.
9921
9922 2012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
9923
9924 * target.h (target_watchpoint_addr_within_range): Document macro.
9925
9926 2012-02-24 Pedro Alves <palves@redhat.com>
9927
9928 * stack.c (set_last_displayed_sal): Issue internal_error instead
9929 of warning, and issue it after clearing the last displayed sal.
9930
9931 2012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
9932 Pedro Alves <palves@redhat.com>
9933
9934 * breakpoint.c (until_break_command): Install breakpoints after
9935 all frame manipulations.
9936
9937 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
9938
9939 * remote.c (remote_supports_cond_breakpoints): New forward
9940 declaration.
9941 (remote_add_target_side_condition): New function.
9942 (remote_insert_breakpoint): Add target-side breakpoint
9943 conditional if supported.
9944 (remote_insert_hw_breakpoint): Likewise.
9945 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
9946 hook.
9947
9948 * target.c (update_current_target): Inherit
9949 to_supports_evaluation_of_breakpoint_conditions.
9950 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
9951
9952 * target.h (struct target_ops)
9953 <to_supports_evaluation_of_breakpoint_conditions>: New field.
9954 (target_supports_evaluation_of_breakpoint_conditions): New #define.
9955
9956 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
9957 (condition_evaluation_both, condition_evaluation_auto,
9958 condition_evaluation_host, condition_evaluation_target,
9959 condition_evaluation_enums, condition_evaluation_mode_1,
9960 condition_evaluation_mode): New static globals.
9961 (translate_condition_evaluation_mode): New function.
9962 (breakpoint_condition_evaluation_mode): New function.
9963 (gdb_evaluates_breakpoint_condition_p): New function.
9964 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
9965 (mark_breakpoint_modified): New function.
9966 (mark_breakpoint_location_modified): New function.
9967 (set_condition_evaluation_mode): New function.
9968 (show_condition_evaluation_mode): New function.
9969 (bp_location_compare_addrs): New function.
9970 (get_first_location_gte_addr): New helper function.
9971 (set_breakpoint_condition): Free condition bytecode if locations
9972 has become unconditional. Call mark_breakpoint_modified (...).
9973 (condition_command): Call update_global_location_list (1) for
9974 breakpoints.
9975 (breakpoint_xfer_memory): Use is_breakpoint (...).
9976 (is_breakpoint): New function.
9977 (parse_cond_to_aexpr): New function.
9978 (build_target_condition_list): New function.
9979 (insert_bp_location): Handle target-side conditional
9980 breakpoints and call build_target_condition_list (...).
9981 (update_inserted_breakpoint_locations): New function.
9982 (insert_breakpoint_locations): Handle target-side conditional
9983 breakpoints.
9984 (bpstat_check_breakpoint_conditions): Add comment.
9985 (bp_condition_evaluator): New function.
9986 (bp_location_condition_evaluator): New function.
9987 (print_breakpoint_location): Print information on where the condition
9988 will be evaluated.
9989 (print_one_breakpoint_location): Likewise.
9990 (init_bp_location): Call mark_breakpoint_location_modified (...) for
9991 breakpoint location.
9992 (force_breakpoint_reinsertion): New functions.
9993 (update_global_location_list): Handle target-side breakpoint
9994 conditions.
9995 Reinsert locations that are already inserted if conditions have
9996 changed.
9997 (bp_location_dtor): Free agent expression bytecode.
9998 (disable_breakpoint): Call mark_breakpoint_modified (...).
9999 Call update_global_location_list (...) with parameter 1 for breakpoints.
10000 (disable_command): Call mark_breakpoint_location_modified (...).
10001 Call update_global_location_list (...) with parameter 1 for breakpoints.
10002 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10003 (enable_command): mark_breakpoint_location_modified (...).
10004 (_initialize_breakpoint): Update documentation and add
10005 condition-evaluation breakpoint subcommand.
10006
10007 * breakpoint.h: Include ax.h.
10008 (condition_list): New data structure.
10009 (condition_status): New enum.
10010 (bp_target_info) <cond_list>: New field.
10011 (bp_location) <condition_changed, cond_bytecode>: New fields.
10012 (is_breakpoint): New prototype.
10013
10014 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10015
10016 * remote.c (remote_state) <cond_breakpoints>: New field.
10017 (PACKET_ConditionalBreakpoints): New enum.
10018 (remote_cond_breakpoint_feature): New function.
10019 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10020 (remote_supports_cond_breakpoints): New function.
10021 (_initialize_remote): Add new packet configuration for
10022 target-side conditional breakpoints.
10023
10024 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10025
10026 * NEWS: Mention target-side conditional breakpoint support,
10027 new condition-evaluation breakpoint subcommand and remote
10028 packet extensions.
10029
10030 2012-02-24 Luis Machado <lgustavo@codesourcery.com>
10031
10032 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10033 number.
10034
10035 2012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10036
10037 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10038 (after_prologue): Remove.
10039
10040 2012-02-23 Tom Tromey <tromey@redhat.com>
10041
10042 * jv-valprint.c (java_val_print): Remove dead code.
10043
10044 2012-02-23 Tristan Gingold <gingold@adacore.com>
10045
10046 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10047 known_tasks_element and known_tasks_length fields.
10048 (read_known_tasks_array): Change argument type. Use pointer type
10049 and number of elements from DATA. Adjust.
10050 (read_known_tasks_list): Likewise.
10051 (get_known_tasks_addr): Remove.
10052 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10053 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10054 type and array length. Merge former get_known_tasks_addr code.
10055
10056 2012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10057
10058 PR backtrace/13716
10059 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10060 it after set_momentary_breakpoint.
10061
10062 2012-02-22 Sterling Augustine <saugustine@google.com>
10063
10064 PR 13689:
10065 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10066
10067 2012-02-22 Gary Benson <gbenson@redhat.com>
10068
10069 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10070 (find_slot_in_mapped_hash): Likewise.
10071
10072 2012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10073
10074 PR build/13638
10075 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10076 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10077 * configure: Regenerate.
10078
10079 2012-02-21 Tristan Gingold <gingold@adacore.com>
10080 Pedro Alves <palves@redhat.com>
10081
10082 * ia64-tdep.c: Do not include libunwind-ia64.h.
10083 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10084 Include libunwind-ia64.h instead of libunwind.h.
10085 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10086 for libunwind.h existence.
10087 * configure, config.in: Regenerate.
10088
10089 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10090
10091 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10092 instead of value_rtti_target_type.
10093 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10094 instead of value_rtti_target_type.
10095 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10096 value_rtti_target_type.
10097 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10098 (value_rtti_target_type): Rename to ...
10099 (value_rtti_indirect_type): ... here and make it indirect. Update
10100 function comment.
10101 * value.c (readjust_indirect_value_type): New function.
10102 (coerce_ref): Support for enclosing type setting for references
10103 with readjust_indirect_value_type.
10104 * value.h (readjust_value_type): New declaration.
10105 (value_rtti_target_type): Rename to ...
10106 (value_rtti_indirect_type): ... here.
10107
10108 2012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10109
10110 * MAINTAINERS (Write After Approval): Add myself to the list.
10111
10112 2012-02-20 Doug Evans <dje@google.com>
10113
10114 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10115 Rename objfile_p_char parameter to objfilep.
10116 (build_objfile_section_table): Result is now void. All callers
10117 updated.
10118 * objfiles.h (struct objfile): Tweak comments, whitespace.
10119 (build_objfile_section_table): Update.
10120
10121 * elfread.c (elf_symfile_segments): Fix warning text.
10122
10123 2012-02-20 Tom Tromey <tromey@redhat.com>
10124
10125 PR gdb/13498:
10126 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10127 particular set of file names once.
10128 (dw2_map_symbol_filenames): Likewise.
10129
10130 2012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10131
10132 Code cleanup.
10133 * main.c (write_files): Remove the declaration.
10134 (external_editor_command): Move the declaration ...
10135 [GDBTK] (external_editor_command): ... here. Fix the comment.
10136
10137 2012-02-20 Tom Tromey <tromey@redhat.com>
10138
10139 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10140 extraneous block.
10141
10142 2012-02-20 Tristan Gingold <gingold@adacore.com>
10143
10144 * darwin-nat.h (enum darwin_msg_state): Add comments.
10145
10146 2012-02-20 Tristan Gingold <gingold@adacore.com>
10147
10148 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10149 value.
10150
10151 2012-20-18 Joel Brobecker <brobecker@adacore.com>
10152
10153 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10154 between function description and implementation.
10155
10156 2012-02-17 Tom Tromey <tromey@redhat.com>
10157
10158 PR python/12070:
10159 * python/py-event.c (event_object_getset): New global.
10160 (event_object_type): Reference it.
10161 * python/py-type.c (field_object_getset): New global.
10162 (field_object_type): Reference it.
10163 * python/python-internal.h (gdb_py_generic_dict): Declare.
10164 * python/py-utils.c (gdb_py_generic_dict): New function.
10165
10166 2012-02-17 Tristan Gingold <gingold@adacore.com>
10167
10168 * solib-darwin.c (darwin_current_sos): Check magic and filetype
10169
10170 2012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10171
10172 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10173 TYPE_CALLING_CONVENTION annotation.
10174
10175 2012-02-16 Kevin Buettner <kevinb@redhat.com>
10176
10177 * MAINTAINERS: Add rx to target ISA section.
10178 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10179 (ALLDEPFILES): Add rx-tdep.c.
10180
10181 2012-02-16 Tom Tromey <tromey@redhat.com>
10182
10183 * symfile.c (symbol_file_add_main_1): Use inferior's
10184 symfile_flags.
10185 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10186 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10187 inferior.
10188 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10189 inferior.
10190 (follow_exec): Use inferior's symfile_flags.
10191 * inferior.h (struct inferior) <symfile_flags>: New field.
10192
10193 2012-02-16 Mike Frysinger <vapier@gentoo.org>
10194
10195 PR gdb/9734:
10196 * remote-sim.c (gdbsim_create_inferior): Call error() when
10197 sim_create_inferior() fails.
10198
10199 2012-02-16 Josh Matthews <josh@joshmatthews.net>
10200
10201 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10202
10203 2012-02-16 Tom Tromey <tromey@redhat.com>
10204
10205 PR c++/13653:
10206 * thread.c (struct current_thread_cleanup) <was_removable>: New
10207 field.
10208 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10209 (make_cleanup_restore_current_thread): Initialize new field.
10210
10211 2012-02-15 Kevin Buettner <kevinb@redhat.com>
10212
10213 * MAINTAINERS: Add rl78 to target ISA section.
10214 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10215 (ALLDEPFILES): Add rl78-tdep.c.
10216 * NEWS: Mention rl78 as a new target.
10217
10218 2012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10219
10220 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10221 data.
10222 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10223
10224 2012-02-15 Tom Tromey <tromey@redhat.com>
10225
10226 PR gdb/12659:
10227 * infcmd.c (registers_info): Print just the current register's
10228 name.
10229
10230 2012-02-15 Tom Tromey <tromey@redhat.com>
10231
10232 * python/py-symbol.c (sympy_value): Use _().
10233
10234 2012-02-15 Pedro Alves <palves@redhat.com>
10235
10236 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10237 output to be like native targets'.
10238 (remote_pid_to_str): Special case the null ptid.
10239
10240 2012-02-14 Stan Shebs <stan@codesourcery.com>
10241
10242 * NEWS: Mention enable count command.
10243 * breakpoint.h (struct breakpoint): New field enable_count.
10244 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10245 (enable_breakpoint): Add arg to call.
10246 (struct disp_data): New struct.
10247 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10248 (do_map_enable_once_breakpoint): Create a struct and pass it.
10249 (do_map_enable_delete_breakpoint): Ditto.
10250 (do_map_enable_count_breakpoint): New function.
10251 (enable_count_command): New function.
10252 (bpstat_stop_status): Decrement enable_count.
10253 (print_one_breakpoint_location): Report enable count.
10254 (_initialize_breakpoint): Add enable count command.
10255
10256 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10257
10258 * rl78-tdep.c (reggroups.h): Include.
10259 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10260 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10261 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10262 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10263 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10264 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10265 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10266 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10267 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10268 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10269 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10270 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10271 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10272 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10273 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10274 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10275 beginning of register list.
10276 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10277 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10278 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10279 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10280 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10281 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10282 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10283 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10284 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10285 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10286 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10287 the pseudo registers. Rearrange other pseudo registers too so
10288 that the bank registers appear at the end.
10289 (rl78_register_type): Account for the fact that the byte sized
10290 bank registers are now pseudo-registers.
10291 (rl78_register_name): Rearrange the register name array. Make
10292 initial set of raw banked registers inaccessible.
10293 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10294 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10295 case for copying bytes back and forth between raw and pseudo
10296 versions of the banked registers. Update other cases to reflect
10297 the changed names.
10298 (rl78_return_value): Update to account for changed names of
10299 raw registers.
10300 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10301 rl78_register_sim_regno().
10302
10303 2012-02-14 Kevin Buettner <kevinb@redhat.com>
10304
10305 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10306 the name parameter being passed to find_pc_partial_function().
10307
10308 2012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10309
10310 * MAINTAINERS: Step down from being ia64 target maintainer.
10311
10312 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10313
10314 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10315 compilation warning.
10316
10317 2012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10318
10319 Fix crash on loaded shlibs without loaded exec_bfd.
10320 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10321 (set_section_command): Replace exec_bfd by p->bfd.
10322
10323 2012-02-10 Tom Tromey <tromey@redhat.com>
10324
10325 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10326 when we have a C++ qualified name.
10327
10328 2012-02-10 Pedro Alves <palves@redhat.com>
10329
10330 * inferior.c (inferior_pid_to_str): New.
10331 (print_inferior, inferior_command): Use it.
10332
10333 2012-02-10 Pedro Alves <palves@redhat.com>
10334
10335 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10336 the test CFLAGS.
10337 * configure: Regenerate.
10338
10339 2012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10340
10341 * linespec.c (decode_line_internal): Fix comment correctness.
10342
10343 2012-02-09 Valery Khromov <valery.khromov@gmail.com>
10344
10345 PR gdb/12953
10346 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10347 * amd64bsd-nat.c: Add support for debug registers (adapted from
10348 i386bsd-nat.c).
10349 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10350 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10351 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10352 (amd64bsd_dr_get_control): New functions.
10353 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10354 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10355 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10356 watchpoints initialization.
10357 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10358
10359 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10360
10361 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10362 flds_bnds.fields.
10363 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10364
10365 2012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10366
10367 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10368
10369 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10370
10371 * language.h (symbol_name_cmp_ftype): Renames
10372 symbol_name_match_p_ftype.
10373 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10374 la_get_symbol_name_match_p.
10375 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10376 ada_get_symbol_name_match_p. Update comment.
10377 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10378 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10379 Renames symbol_name_match_p. Update field type.
10380 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10381 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10382 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10383 "la_get_symbol_name_cmp" in comments.
10384 * language.c: Likewise.
10385
10386 2012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10387
10388 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10389 %eflags offset.
10390 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10391 (amd64_sol2_gregset32_reg_offs): Likewise.
10392
10393 2012-02-08 Joel Brobecker <brobecker@adacore.com>
10394
10395 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10396 of the returned BFD is allocated by GDB.
10397
10398 2012-02-07 Tom Tromey <tromey@redhat.com>
10399
10400 PR python/12027:
10401 * python/python-internal.h (frame_object_type): Declare.
10402 * python/py-symbol.c (sympy_needs_frame): New function.
10403 (sympy_value): New function.
10404 (symbol_object_getset): Add "needs_frame".
10405 (symbol_object_methods): Add "value".
10406 * python/py-frame.c (frame_object_type): No longer static.
10407
10408 2012-02-07 Tom Tromey <tromey@redhat.com>
10409
10410 PR python/13599:
10411 * python/py-symbol.c (sympy_line): New function.
10412 (symbol_object_getset): Add "line".
10413
10414 2012-02-07 Tom Tromey <tromey@redhat.com>
10415
10416 * charset.c (find_charset_names): Check 'in' against NULL.
10417
10418 2012-02-06 Doug Evans <dje@google.com>
10419
10420 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10421 and fields.name members from char * to const char *. All uses updated.
10422 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10423 from char * to const char *. All uses updated.
10424 (type_name_no_tag): Update.
10425 (lookup_unsigned_typename, lookup_signed_typename): Update.
10426 * gdbtypes.c (type_name_no_tag): Change result type
10427 from char * to const char *. All callers updated.
10428 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10429 name parameter from char * to const char *.
10430 * symtab.h (struct cplus_specific): Change type of demangled_name
10431 member from char * to const char *. All uses updated.
10432 (struct general_symbol_info): Change type of name and
10433 mangled_lang.demangled_name members from char * to const char *.
10434 All uses updated.
10435 (symbol_get_demangled_name, symbol_natural_name): Update.
10436 (symbol_demangled_name, symbol_search_name): Update.
10437 * symtab.c (symbol_get_demangled_name): Change result type
10438 from char * to const char *. All callers updated.
10439 (symbol_natural_name, symbol_demangled_name): Ditto.
10440 (symbol_search_name): Ditto.
10441 (completion_list_add_name): Change type of symname,sym_text,
10442 text,word parameters from char * to const char *.
10443 (completion_list_objc_symbol): Change type of sym_text,
10444 text,word parameters from char * to const char *.
10445 * ada-lang.c (find_struct_field): Change type of name parameter
10446 from char * to const char *.
10447 (encoded_ordered_before): Similarly for N0,N1 parameters.
10448 (old_renaming_is_invisible): Similarly for function_name parameter.
10449 (ada_type_name): Change result type from char * to const char *.
10450 All callers updated.
10451 * ada-lang.h (ada_type_name): Update.
10452 * buildsym.c (hashname): Change type of name parameter
10453 from char * to const char *.
10454 * buildsym.h (hashname): Update.
10455 * dbxread.c (end_psymtab): Change type of include_list parameter
10456 from char ** to const char **.
10457 * dwarf2read.c (determine_prefix): Change result type
10458 from char * to const char *. All callers updated.
10459 * f-lang.c (find_common_for_function): Change type of name, funcname
10460 parameters from char * to const char *.
10461 * f-lang.c (find_common_for_function): Update.
10462 * f-valprint.c (list_all_visible_commons): Change type of funcname
10463 parameters from char * to const char *.
10464 * gdbarch.sh (static_transform_name): Change type of name parameter
10465 and result from char * to const char *.
10466 * gdbarch.c: Regenerate.
10467 * gdbarch.h: Regenerate.
10468 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10469 of name parameter from char * to const char *.
10470 * jv-lang.c (java_primitive_type_from_name): Ditto.
10471 (java_demangled_signature_length): Similarly for signature parameter.
10472 (java_demangled_signature_copy): Ditto.
10473 (java_demangle_type_signature): Ditto.
10474 * jv-lang.h (java_primitive_type_from_name): Update.
10475 (java_demangle_type_signature): Update.
10476 * objc-lang.c (specialcmp): Change type of a,b parameters
10477 from char * to const char *.
10478 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10479 from char * to const char *. All callers updated.
10480 * p-lang.h (is_pascal_string_type): Update.
10481 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10482 of name parameter from char * to const char *.
10483 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10484 * utils.c (fprintf_symbol_filtered): Ditto.
10485 * defs.h (fprintf_symbol_filtered): Update.
10486 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10487 * stabsread.h (end_psymtab): Update.
10488 * stack.c (find_frame_funname): Change type of funname parameter
10489 from char ** to const char **.
10490 * stack.h (find_frame_funname): Update.
10491 * typeprint.c (type_print): Change type of varstring parameter
10492 from char * to const char *.
10493 * value.h (type_print): Update.
10494 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10495 from char * to const char *. All callers updated.
10496 (xcoff_end_psymtab): Change type of include_list parameter
10497 from char ** to const char **. All callers updated.
10498 (swap_sym): Similarly for name parameter. All callers updated.
10499 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10500 Use xstrdup.
10501 (process_coff_symbol): Use xstrdup.
10502 * stabsread.c (stabs_method_name_from_physname): Renamed from
10503 update_method_name_from_physname. Change result type from void
10504 to char *. All callers updated.
10505 (read_member_functions): In has_destructor case, store name in objfile
10506 obstack instead of malloc space. In !has_stub case, fix mem leak.
10507
10508 2012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10509
10510 * configure: Rebuild.
10511 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10512 LDFLAGS.
10513
10514 2012-02-03 Kevin Buettner <kevinb@redhat.com>
10515
10516 * configure.tgt (rl78-*-elf): New target.
10517 * rl78-tdep.c: New file.
10518
10519 2012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10520
10521 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10522 and continue the loop. Add QUIT statement.
10523
10524 2012-02-03 Tom Tromey <tromey@redhat.com>
10525
10526 PR gdb/13596:
10527 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10528 bfd_lookup_symbol_from_symtab.
10529 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10530 gdb_bfd_lookup_symbol_from_symtab.
10531
10532 2012-02-03 Joel Brobecker <brobecker@adacore.com>
10533
10534 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10535 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10536 symbol. Add assertion that sym2 is never NULL.
10537
10538 2012-02-02 Doug Evans <dje@google.com>
10539
10540 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10541 "name" parameter to const char ** from char **. All callers updated.
10542 (find_pc_partial_function): Ditto.
10543 (cache_pc_function_name): Change type to const char * from char *.
10544 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10545 (find_pc_partial_function): Update.
10546 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10547 type of "name" parameter to const char * from char *.
10548 All uses updated.
10549 * arch-utils.c (generic_in_solib_return_trampoline): Change
10550 type of "name" parameter to const char * from char *.
10551 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10552 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10553 type of "name" parameter to const char * from char *.
10554 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10555 * gdbarch.c: Regenerate.
10556 * gdbarch.h: Regenerate.
10557 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10558 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10559 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10560 type of "name" parameter to const char * from char *.
10561 * skip.c (skip_function_pc): Ditto.
10562 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10563 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10564 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10565 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10566 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10567 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10568 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10569 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10570 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10571
10572 2012-02-02 Pedro Alves <palves@redhat.com>
10573
10574 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10575 the current inferior has no execution. Make sure the current
10576 remote process matches gdb's current inferior.
10577
10578 2012-02-02 Tom Tromey <tromey@redhat.com>
10579
10580 PR gdb/13405:
10581 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10582 read-only memory.
10583
10584 2012-02-02 Tom Tromey <tromey@redhat.com>
10585
10586 PR gdb/9307:
10587 * symtab.c (lookup_language_this): Set block_found.
10588
10589 2012-02-01 Tom Tromey <tromey@redhat.com>
10590
10591 PR gdb/13431:
10592 * jit.c (struct jit_inferior_data): Rewrite.
10593 (struct jit_objfile_data): New.
10594 (get_jit_objfile_data): New function.
10595 (add_objfile_entry): Update.
10596 (jit_read_descriptor): Return int. Replace descriptor_addr
10597 argument with inf_data. Update. Don't call error.
10598 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10599 descriptor here.
10600 (jit_inferior_init): Don't look up descriptor. Don't call error.
10601 (jit_reset_inferior_data_and_breakpoints)
10602 (jit_inferior_created_observer): Remove.
10603 (jit_inferior_exit_hook): Update.
10604 (jit_executable_changed_observer): Remove.
10605 (jit_event_handler): Update.
10606 (free_objfile_data): Reset inferior data if needed.
10607 (_initialize_jit): Update.
10608
10609 2012-02-01 Tom Tromey <tromey@redhat.com>
10610
10611 * jit.c (bfd_open_from_target_memory): Move higher in file.
10612
10613 2012-02-01 Tristan Gingold <gingold@adacore.com>
10614
10615 * libunwind-frame.c (libunwind_load): Display message if dlopen
10616 failed.
10617
10618 2012-02-01 Gary Benson <gbenson@redhat.com>
10619
10620 * symtab.h (symbol_found_callback_ftype): New typedef.
10621 (iterate_over_symbols): Use the above.
10622 * symtab.c (iterate_over_symbols): Likewise.
10623 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10624 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10625 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10626 (iterate_name_matcher): Document return values.
10627 (collect_one_symbol): Likewise.
10628 (collect_function_symbols): Likewise.
10629 (collect_symbols): Likewise.
10630
10631 2012-02-01 Tom Tromey <tromey@redhat.com>
10632
10633 * ada-lang.c (resolve_subexp): Update.
10634 (ada_lookup_symbol_list): Add 'full_search' argument.
10635 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10636 ada_lookup_symbol_list.
10637 (ada_lookup_encoded_symbol): Update.
10638 (get_var_value): Update.
10639 * ada-exp.y (block_lookup): Update.
10640 (write_var_or_type): Update.
10641 (write_name_assoc): Update.
10642 * ada-lang.h (ada_lookup_symbol_list): Update.
10643
10644 2012-01-31 Tom Tromey <tromey@redhat.com>
10645
10646 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10647 comment.
10648
10649 2012-01-31 Doug Evans <dje@google.com>
10650
10651 * symtab.h: Remove outdated comment.
10652 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
10653
10654 2012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10655
10656 Fix build error in Darwin port.
10657 * i386-darwin-nat.c: Include i386-nat.h.
10658
10659 2012-01-30 Tom Tromey <tromey@redhat.com>
10660
10661 PR breakpoints/13568:
10662 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10663 argument. Check for recursive includes.
10664 (dwarf_decode_macros): Create an include hash.
10665
10666 2012-01-30 Michael Eager <eager@eagercon.com>
10667
10668 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10669 * ppc-linux-tdep.c: Include glibc-tdep.h.
10670 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
10671 (powerpc_linux_in_plt_stub): New function.
10672 (powerpc_linux_in_dynsym_resolve_code): New function.
10673 (ppc_skip_trampoline_code): New function.
10674 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10675 Use glibc_skip_solib_resolver.
10676
10677 2012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10678
10679 Code cleanup: Make 1440 bytes of data segment read-only.
10680 * arch-utils.c (endian_enum): Make it const char *const [].
10681 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10682 Likewise.
10683 * breakpoint.c (always_inserted_enums): Likewise.
10684 * cli/cli-cmds.c (script_ext_enums): Likewise.
10685 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10686 enumlist parameter const char *const *.
10687 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10688 const char *const *.
10689 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10690 parameter const char *const *.
10691 * cris-tdep.c (cris_modes): Make it const char *const [].
10692 * filesystem.c (target_file_system_kinds): Likewise.
10693 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10694 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10695 (can_use_displaced_stepping_enum, scheduler_enums)
10696 (exec_direction_names): Likewise.
10697 * language.c (_initialize_language): Make the type_or_range_names and
10698 case_sensitive_names variables const char *const [].
10699 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10700 * python/python.c (python_excp_enums): Likewise.
10701 * remote.c (interrupt_sequence_modes): Likewise.
10702 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10703 * serial.c (logbase_enums): Likewise.
10704 * sh-tdep.c (sh_cc_enum): Likewise.
10705 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10706 Likewise.
10707 * symtab.c (multiple_symbols_modes): Likewise.
10708 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10709 Likewise.
10710 * utils.c (internal_problem_modes): Likewise.
10711
10712 2012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10713
10714 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10715 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10716 result.
10717
10718 2012-01-27 Doug Evans <dje@google.com>
10719
10720 * configure.ac (with_python): Fix absolute path handling for win32.
10721 * configure: Regenerate.
10722
10723 2012-01-26 Doug Evans <dje@google.com>
10724
10725 * symtab.c: Whitespace cleanup, no code changes.
10726
10727 * symtab.c (lookup_symbol_in_language): Improve comment.
10728 (lookup_symbol_aux): Fix comment.
10729
10730 * psymtab.c (add_psymbol_to_list): Result is now "void".
10731 * psympriv.h (add_psymbol_to_list): Update.
10732
10733 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10734
10735 2012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10736
10737 Do not open script filenames twice.
10738 * cli/cli-cmds.c (source_script_from_stream): Pass to
10739 source_python_script also STREAM.
10740 * python/py-auto-load.c (source_section_scripts): Pass to
10741 source_python_script_for_objfile also STREAM.
10742 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10743 also INPUT.
10744 * python/python-internal.h (source_python_script_for_objfile): New
10745 parameter file, rename parameter file to filename.
10746 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10747 instead if !_WIN32. Update the function comment.
10748 (source_python_script, source_python_script_for_objfile)
10749 (source_python_script): New parameter file, rename parameter file to
10750 filename. Pass FILENAME to python_run_simple_file.
10751 * python/python.h (source_python_script): New parameter file, rename
10752 parameter file to filename.
10753
10754 2012-01-26 Pedro Alves <palves@redhat.com>
10755
10756 * corelow.c (core_has_fake_pid): Delete.
10757 (core_close): Delete references to `core_has_fake_pid'.
10758 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10759 (core_open): Delete references to `core_has_fake_pid'.
10760 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10761 the removed global.
10762
10763 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10764
10765 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10766 Remove language parameter from name_matcher. Adjust the comment.
10767 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10768 Remove language parameter.
10769 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10770 * linespec.c (iterate_name_matcher): Likewise.
10771 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10772 name_matcher. Adjust call accordingly.
10773 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10774 (maintenance_check_symtabs): Adjust type of parameter "fun".
10775 * psymtab.h (maintenance_check_symtabs): Likewise.
10776
10777 2012-01-26 Joel Brobecker <brobecker@adacore.com>
10778
10779 * language.h (symbol_name_match_p_ftype): New typedef.
10780 (struct language_defn): Replace field la_symbol_name_compare
10781 by la_get_symbol_name_match_p.
10782 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10783 (ada_language_defn): Use it.
10784 * linespec.c (struct symbol_matcher_data): New type.
10785 (iterate_name_matcher): Rewrite.
10786 (iterate_over_all_matching_symtabs): Pass a pointer to
10787 a symbol_matcher_data struct to expand_symtabs_matching
10788 instead of just the lookup name.
10789 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10790 opencl-lang.c, p-lang.c, language.c: Delete field
10791 la_symbol_name_compare, and replace by NULL for new field
10792 la_get_symbol_name_match_p.
10793 * symfile.h (struct quick_symbol_functions): Update comment.
10794
10795 2012-01-25 Tom Tromey <tromey@redhat.com>
10796
10797 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
10798 dereferencing.
10799
10800 2012-01-24 Tom Tromey <tromey@redhat.com>
10801
10802 PR symtab/12406:
10803 * solib.c (update_solib_list): Update the program space's
10804 added_solibs and deleted_solibs fields.
10805 * progspace.h (struct program_space) <added_solibs,
10806 deleted_solibs>: New fields.
10807 (clear_program_space_solib_cache): Declare.
10808 * progspace.c (release_program_space): Call
10809 clear_program_space_solib_cache.
10810 (clear_program_space_solib_cache): New function.
10811 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
10812 bpstat_stop_status. Use handle_solib_event.
10813 * breakpoint.c: Include gdb_regex.h.
10814 (print_solib_event): New function.
10815 (bpstat_print): Use print_solib_event.
10816 (bpstat_stop_status): Add special case for bp_shlib_event.
10817 (handle_solib_event): New function.
10818 (bpstat_what): Use handle_solib_event.
10819 (struct solib_catchpoint): New.
10820 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
10821 (breakpoint_hit_catch_solib, check_status_catch_solib)
10822 (print_it_catch_solib, print_one_catch_solib)
10823 (print_mention_catch_solib, print_recreate_catch_solib): New
10824 functions.
10825 (catch_solib_breakpoint_ops): New global.
10826 (catch_load_or_unload, catch_load_command_1)
10827 (catch_unload_command_1): New functions.
10828 (internal_bkpt_check_status): Add special case for
10829 bp_shlib_event.
10830 (internal_bkpt_print_it): Use print_solib_event.
10831 (initialize_breakpoint_ops): Initialize
10832 catch_solib_breakpoint_ops.
10833 (_initialize_breakpoint): Register "catch load" and "catch
10834 unload".
10835 * breakpoint.h (handle_solib_event): Declare.
10836 * NEWS: Add entry for "catch load" and "catch unload".
10837
10838 2012-01-24 Tom Tromey <tromey@redhat.com>
10839
10840 * ada-lang.c: Include gdb_vecs.h.
10841 * charset.c: Include gdb_vecs.h.
10842 * tracepoint.h: Include gdb_vecs.h.
10843 * gdb_vecs.h: New file.
10844
10845 2012-01-24 Pedro Alves <pedro@codesourcery.com>
10846
10847 * breakpoint.c (breakpoint_hit_catch_fork)
10848 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
10849 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
10850 * infrun.c (inferior_has_forked, inferior_has_vforked)
10851 (inferior_has_execd, inferior_has_called_syscall): Delete.
10852 (handle_syscall_event): Get syscall_number from the execution
10853 control state's wait status.
10854 (wait_for_inferior): Don't clear syscall_number.
10855
10856 2012-01-24 Pedro Alves <palves@redhat.com>
10857
10858 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
10859 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
10860 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
10861 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
10862 `ws' parameter.
10863 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
10864 false for events other than TARGET_SIGNAL_TRAP.
10865 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
10866 Add `ws' parameter.
10867 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
10868 events other than TARGET_SIGNAL_TRAP.
10869 (tracepoint_breakpoint_hit): Add `ws' parameter.
10870 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
10871 parameter.
10872 (bpstat_stop_status): Same.
10873 (pc_at_non_inline_function): Same.
10874 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
10875 to pass the current event's waitstatus to bpstat_stop_status
10876 and pc_at_non_inline_function.
10877
10878 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10879
10880 Code cleanup.
10881 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
10882 Update the function comment for it.
10883 (source_script_with_search): Call make_cleanup_fclose for STREAM.
10884 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
10885 for STREAM.
10886
10887 2012-01-24 Pedro Alves <palves@redhat.com>
10888
10889 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
10890 outside `bs->stop' block.
10891 (bpstat_what): Rework bp_shlib_event handling.
10892 (internal_bkpt_check_status): If the breakpoint is a
10893 bp_shlib_event, then set bs->stop and bs->print if
10894 stop_on_solib_events is set.
10895
10896 2012-01-24 Gary Benson <gbenson@redhat.com>
10897
10898 Delete #if 0'd out code.
10899 * stack.c (print_frame_label_vars): Remove.
10900 (catch_info): Likewise.
10901 (_initialize_stack): Remove "info catch" command.
10902 * NEWS: Mention the above.
10903
10904 2012-01-24 Pedro Alves <palves@redhat.com>
10905
10906 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
10907 it.
10908 (remote_notice_new_inferior): If the remote end doesn't support
10909 the multiprocess extensions, then the PID is fake.
10910 (add_current_inferior_and_thread): New.
10911 (remote_start_remote): Use it.
10912 (extended_remote_attach_1): Adjust.
10913 (extended_remote_create_inferior_1): Use
10914 add_current_inferior_and_thread.
10915
10916 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10917
10918 Fix watchpoints to be specific for each inferior.
10919 * breakpoint.c (watchpoint_in_thread_scope): Verify also
10920 current_program_space.
10921 * i386-nat.c (i386_inferior_data_cleanup): New.
10922 (i386_inferior_data_get): Replace variable inf_data_local by an
10923 inferior_data call.
10924 (i386_use_watchpoints): Initialize i386_inferior_data.
10925 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
10926 specific iterate_over_lwps.
10927
10928 2012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10929
10930 Fix watchpoints across inferior fork.
10931 * amd64-linux-nat.c (update_debug_registers_callback): Update the
10932 comment for linux_nat_iterate_watchpoint_lwps.
10933 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
10934 linux_nat_iterate_watchpoint_lwps.
10935 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
10936 * i386-linux-nat.c (update_debug_registers_callback): Update the
10937 comment for linux_nat_iterate_watchpoint_lwps.
10938 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
10939 linux_nat_iterate_watchpoint_lwps.
10940 (i386_linux_prepare_to_resume): New comment on Linux kernel.
10941 * i386-nat.c: Include inferior.h.
10942 (dr_mirror): Remove.
10943 (i386_inferior_data, struct i386_inferior_data)
10944 (i386_inferior_data_get): New.
10945 (i386_debug_reg_state): Use i386_inferior_data_get.
10946 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
10947 (i386_insert_watchpoint, i386_remove_watchpoint)
10948 (i386_stopped_data_address, i386_insert_hw_breakpoint)
10949 (i386_remove_hw_breakpoint): New variable state, use
10950 i386_debug_reg_state instead of DR_MIRROR.
10951 * linux-nat.c (delete_lwp): New declaration.
10952 (num_lwps): Move here from downwards.
10953 (delete_lwp_cleanup): New.
10954 (linux_child_follow_fork): Create new child_lp, call
10955 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
10956 PTRACE_DETACH.
10957 (num_lwps): Move upwards.
10958 (linux_nat_iterate_watchpoint_lwps): New.
10959 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
10960 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
10961
10962 2012-01-24 Joel Brobecker <brobecker@adacore.com>
10963
10964 GDB 7.4 released.
10965
10966 2012-01-23 Pedro Alves <palves@redhat.com>
10967
10968 * top.c (caution): Rename to ...
10969 (confirm): ... this.
10970 (show_caution): Rename to ...
10971 (show_confirm): ... this.
10972 (quit_cover): Adjust.
10973 (init_main): Adjust.
10974 * top.h (caution): Rename to ...
10975 (confirm): ... this.
10976 * utils.c (internal_vproblem, defaulted_query): Adjust.
10977
10978 2012-01-23 Pedro Alves <palves@redhat.com>
10979
10980 * top.c (caution): Update comment.
10981 (execute_command): Don't consider the current value of `caution'.
10982
10983 2012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10984
10985 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
10986
10987 2012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
10988
10989 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
10990 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
10991 * target.c (target_fileio_pwrite): Remove buffer address from
10992 debug output.
10993 (target_fileio_pread): Likewise.
10994
10995 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
10996
10997 * NEWS: Document remote "info proc" and "generate-core-file".
10998
10999 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11000
11001 * gdbarch.sh (find_memory_regions): New callback.
11002 * gdbarch.c, gdbarch.h: Regenerate.
11003
11004 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11005 callback before falling back to target method.
11006
11007 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11008 (linux_target_install_ops): No longer install it.
11009
11010 * linux-tdep.c (linux_find_memory_regions): New function.
11011 (linux_init_abi): Install it.
11012
11013 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11014
11015 * gdbarch.sh (make_corefile_notes): New architecture callback.
11016 * gdbarch.c: Regenerate.
11017 * gdbarch.h: Likewise.
11018
11019 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11020 before target_make_corefile_notes. If NULL is returned, the
11021 target does not support core file generation.
11022
11023 * linux-nat.c: Include "linux-tdep.h".
11024 (find_signalled_thread, find_stop_signal): Remove.
11025 (linux_nat_do_thread_registers): Likewise.
11026 (struct linux_nat_corefile_thread_data): Likewise.
11027 (linux_nat_corefile_thread_callback): Likewise.
11028 (iterate_over_spus): Likewise.
11029 (struct linux_spu_corefile_data): Likewise.
11030 (linux_spu_corefile_callback): Likewise.
11031 (linux_spu_make_corefile_notes): Likewise.
11032 (linux_nat_collect_thread_registers): New function.
11033 (linux_nat_make_corefile_notes): Replace contents by call to
11034 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11035 as native-only callback.
11036
11037 * linux-tdep.h: Include "bfd.h".
11038 (struct regcache): Add forward declaration.
11039 (linux_collect_thread_registers_ftype): New typedef.
11040 (linux_make_corefile_notes): Add prototype.
11041 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11042 "regset.h", and "elf-bfd.h".
11043 (find_signalled_thread, find_stop_signal): New functions.
11044 (linux_spu_make_corefile_notes): Likewise.
11045 (linux_collect_thread_registers): Likewise.
11046 (struct linux_corefile_thread_data): New data structure.
11047 (linux_corefile_thread_callback): New funcion.
11048 (linux_make_corefile_notes): Likewise.
11049 (linux_make_corefile_notes_1): Likewise.
11050 (linux_init_abi): Install it.
11051
11052 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11053
11054 * gdbarch.sh (info_proc): New callback.
11055 * gdbarch.c, gdbarch.h: Regenerate.
11056
11057 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11058 before falling back to the target info_proc callback.
11059
11060 * linux-nat.c: Do not include "cli/cli-utils.h".
11061 (linux_nat_info_proc): Remove.
11062 (linux_target_install_ops): No longer install it.
11063
11064 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11065 (read_mapping): New function.
11066 (linux_info_proc): Likewise.
11067 (linux_init_abi): Install it.
11068
11069 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11070
11071 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11072 * infcmd.c: (info_proc_cmd_1): New function.
11073 (info_proc_cmd): New function, moved here from equivalent routine
11074 orignally in linux-nat.c.
11075 (info_proc_cmd_mappings): Likewise.
11076 (info_proc_cmd_stat): Likewise.
11077 (info_proc_cmd_status): Likewise.
11078 (info_proc_cmd_cwd): Likewise.
11079 (info_proc_cmd_cmdline): Likewise.
11080 (info_proc_cmd_exe): Likewise.
11081 (info_proc_cmd_all): Likewise.
11082 (_initialize_infcmd): Install "info proc" command and subcommands.
11083
11084 * target.h (struct target_ops): Add to_info_proc.
11085 (target_info_proc): Add prototype.
11086 * target.c (target_info_proc): New function.
11087
11088 * procfs.c (procfs_info_proc): Add prototype.
11089 (info_proc_cmd): Rename into ...
11090 (procfs_info_proc): ... this. Update argument types as appropriate
11091 for a to_info_proc implementation. Handle "what" argument.
11092 (procfs_target): Install procfs_info_proc.
11093 (_initialize_procfs): No longer install "info proc" command.
11094
11095 * linux-nat.c: (enum info_proc_what): Remove.
11096 (linux_nat_info_proc_cmd_1): Rename into ...
11097 (linux_nat_info_proc): ... this. Update argument types as appropriate
11098 for a to_info_proc implementation.
11099 (linux_nat_info_proc_cmd): Remove.
11100 (linux_nat_info_proc_cmd_mappings): Likewise.
11101 (linux_nat_info_proc_cmd_stat): Likewise.
11102 (linux_nat_info_proc_cmd_status): Likewise.
11103 (linux_nat_info_proc_cmd_cwd): Likewise.
11104 (linux_nat_info_proc_cmd_cmdline): Likewise.
11105 (linux_nat_info_proc_cmd_exe): Likewise.
11106 (linux_nat_info_proc_cmd_all): Likewise.
11107 (linux_target_install_ops): Install linux_nat_info_proc.
11108 (_initialize_linux_nat): No longer install "info proc" command
11109 and subcommands.
11110
11111 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11112
11113 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11114 * config.in, configure: Regenerate.
11115
11116 * target.h (struct target_ops): Add to_fileio_readlink.
11117 (target_fileio_readlink): Add prototype.
11118 * target.c (target_fileio_readlink): New function.
11119
11120 * inf-child.c: Conditionally include <sys/param.h>.
11121 (inf_child_fileio_readlink): New function.
11122 (inf_child_target): Install it.
11123
11124 * remote.c (PACKET_vFile_readlink): New enum value.
11125 (remote_hostio_readlink): New function.
11126 (init_remote_ops): Install it.
11127 (_initialize_remote): Handle vFile:readlink packet type.
11128
11129 2012-01-20 Pedro Alves <palves@redhat.com>
11130 Ulrich Weigand <ulrich.weigand@linaro.org>
11131
11132 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11133 * config.in, configure: Regenerate.
11134
11135 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11136 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11137 (target_fileio_open): Add prototype.
11138 (target_fileio_pwrite): Likewise.
11139 (target_fileio_pread): Likewise.
11140 (target_fileio_close): Likewise.
11141 (target_fileio_unlink): Likewise.
11142 (target_fileio_read_alloc): Likewise.
11143 (target_fileio_read_stralloc): Likewise.
11144
11145 * target.c: Include "gdb/fileio.h".
11146 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11147 (default_fileio_target): New function.
11148 (target_fileio_open): Likewise.
11149 (target_fileio_pwrite): Likewise.
11150 (target_fileio_pread): Likewise.
11151 (target_fileio_close): Likewise.
11152 (target_fileio_unlink): Likewise.
11153 (target_fileio_close_cleanup): Likewise.
11154 (target_fileio_read_alloc_1): Likewise.
11155 (target_fileio_read_alloc): Likewise.
11156 (target_fileio_read_stralloc): Likewise.
11157
11158 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11159 <fcntl.h>, and <unistd.h>.
11160 (inf_child_fileio_open_flags_to_host): New function.
11161 (inf_child_errno_to_fileio_error): Likewise.
11162 (inf_child_fileio_open): Likewise.
11163 (inf_child_fileio_pwrite): Likewise.
11164 (inf_child_fileio_pread): Likewise.
11165 (inf_child_fileio_close): Likewise.
11166 (inf_child_fileio_unlink): Likewise.
11167 (inf_child_target): Install to_fileio routines.
11168
11169 * remote.c (init_remote_ops): Install to_fileio routines.
11170
11171 2012-01-20 Pedro Alves <palves@redhat.com>
11172 Ulrich Weigand <ulrich.weigand@linaro.org>
11173
11174 * remote.c (remote_multi_process_p): Only check for multi-process
11175 protocol feature, do not check for extended protocol.
11176 (remote_supports_multi_process): Check for extended protocol here.
11177 (set_general_process): Likewise.
11178 (extended_remote_kill): Likewise.
11179 (remote_pid_to_str): Likewise.
11180 (remote_query_supported): Always query multiprocess mode.
11181
11182 2012-01-20 Pedro Alves <palves@redhat.com>
11183 Ulrich Weigand <ulrich.weigand@linaro.org>
11184
11185 * inferior.h (struct inferior): Add fake_pid_p.
11186 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11187 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11188 magic_null_ptid since the remote side doesn't provide a real PID.
11189
11190 2012-01-19 Tom Tromey <tromey@redhat.com>
11191
11192 * NEWS: Combine the two Python sections.
11193
11194 2012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11195
11196 * target.h (target_close): Update comment on the target's unpush state.
11197
11198 2012-01-19 Pedro Alves <palves@redhat.com>
11199
11200 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11201 linux_nat_async directly instead of going through the target
11202 vector.
11203 * target.c (unpush_target): Close target after unpushing it, not
11204 before.
11205
11206 2012-01-19 Gary Benson <gbenson@redhat.com>
11207
11208 * mdebugread.c (sort_blocks): Replace integer constants with ones
11209 derived from FIRST_LOCAL_BLOCK.
11210
11211 2012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11212 Jan Kratochvil <jan.kratochvil@redhat.com>
11213
11214 PR gdb/9538
11215 * symfile.c (find_separate_debug_file): New function.
11216 (terminate_after_last_dir_separator): Likewise.
11217 (find_separate_debug_file_by_debuglink): Also try realpath.
11218 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11219 * configure: Regenerate.
11220 * config.in: Regenerate.
11221
11222 2012-01-18 Doug Evans <dje@google.com>
11223
11224 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11225 (main.o): Remove rule.
11226 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11227 (--with-sysroot): Rewrite.
11228 * configure: Regenerate.
11229 * config.in: Regenerate.
11230
11231 2012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11232
11233 * parse.c (initialize_expout): New function.
11234 (reallocate_expout): Likewise.
11235 (parse_exp_in_context): Use `initialize_expout' and
11236 `reallocate_expout' when appropriate.
11237
11238 2012-01-18 Pedro Alves <palves@redhat.com>
11239
11240 * record.c (struct record_breakpoint, record_breakpoint_p)
11241 (record_breakpoints): New.
11242 (record_insert_breakpoint, record_remove_breakpoint): Manage
11243 record breakpoints list. Only remove breakpoints from the
11244 inferior if they had been inserted there in the first place.
11245
11246 2012-01-17 Doug Evans <dje@google.com>
11247
11248 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11249 if we know we don't have a file name to look for.
11250
11251 2012-01-17 Pedro Alves <palves@redhat.com>
11252
11253 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11254 the frame's stop reason is UNWIND_UNAVAILABLE.
11255
11256 2012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11257
11258 Fix compilation error.
11259 * m2-exp.y (yyerror): Use ANSI C prototype.
11260
11261 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11262
11263 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11264 (growbuf_by_size): Likewise.
11265 (yyerror): Likewise.
11266 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11267 (modblock): Remove variable (was #if 0'ed).
11268 (parse_number): Convert prototype from K&R to ANSI C.
11269 (yyerror): Likewise.
11270 * objc-exp.y (parse_number): Likewise.
11271 (yyerror): Likewise.
11272 (yylex): Remove #if 0'ed code.
11273 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11274 (yyerror): Likewise.
11275
11276 2012-01-16 Tom Tromey <tromey@redhat.com>
11277
11278 * NEWS: Add item.
11279 * symtab.h (compare_filenames_for_search): Declare.
11280 * symtab.c (compare_filenames_for_search): New function.
11281 (iterate_over_some_symtabs): Use it.
11282 * symfile.h (struct quick_symbol_functions)
11283 <map_symtabs_matching_filename>: Change spec.
11284 * psymtab.c (partial_map_symtabs_matching_filename): Use
11285 compare_filenames_for_search. Update for new spec.
11286 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11287 compare_filenames_for_search. Update for new spec.
11288 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11289
11290 2012-01-16 Tom Tromey <tromey@redhat.com>
11291
11292 PR python/13281:
11293 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11294 (struct main_type) <flag_flag_enum>: New field.
11295 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11296 * NEWS: Add entries.
11297 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11298 enums.
11299 * python/lib/gdb/printing.py (_EnumInstance): New class.
11300 (FlagEnumerationPrinter): Likewise.
11301
11302 2012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11303
11304 * breakpoint.c (create_sals_from_address_default): New function.
11305 (create_breakpoints_sal_default): Likewise.
11306 (decode_linespec_default): Likewise.
11307 (is_marker_spec): Removed.
11308 (strace_marker_p): New function.
11309 (init_breakpoint_sal): Using `strace_marker_p' instead of
11310 `is_marker_spec'.
11311 (create_breakpoint): Call method `create_sals_from_address' from
11312 breakpoint_ops, replacing code that created SALs conditionally
11313 on the type of the breakpoint. Call method `create_breakpoints_sal',
11314 replacing code that created breakpoints conditionally on the type
11315 wanted.
11316 (base_breakpoint_create_sals_from_address): New function.
11317 (base_breakpoint_create_breakpoints_sal): Likewise.
11318 (base_breakpoint_decode_linespec): Likewise.
11319 (base_breakpoint_ops): Add methods
11320 `base_breakpoint_create_sals_from_address',
11321 `base_breakpoint_create_breakpoints_sal' and
11322 `base_breakpoint_decode_linespec'.
11323 (bkpt_create_sals_from_address): New function.
11324 (bkpt_create_breakpoints_sal): Likewise.
11325 (bkpt_decode_linespec): Likewise.
11326 (tracepoint_create_sals_from_address): Likewise.
11327 (tracepoint_create_breakpoints_sal): Likewise.
11328 (tracepoint_decode_linespec): Likewise.
11329 (strace_marker_create_sals_from_address): Likewise.
11330 (strace_marker_create_breakpoints_sal): Likewise.
11331 (strace_marker_decode_linespec): Likewise.
11332 (strace_marker_breakpoint_ops): New variable.
11333 (addr_string_to_sals): Remove `marker_spec'. Call method
11334 `decode_linespec' from breakpoint_ops, replacing code that decoded
11335 an address string into a SAL. Use `strace_marker_p' instead of
11336 `marker_spec'.
11337 (strace_command): Decide whether we are dealing with a static
11338 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11339 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11340 * breakpoint.h (linespec_result, linespec_sals): New forward
11341 declarations.
11342 (breakpoint_ops) <create_sals_from_address>,
11343 <create_breakpoints_sal>, <decode_linespec>: New methods.
11344
11345 2012-01-14 Doug Evans <dje@google.com>
11346
11347 * NEWS: Update text for "maint set python print-stack".
11348 It is deprecated in gdb 7.4 and deleted in 7.5.
11349
11350 2012-01-13 Eli Zaretskii <eliz@gnu.org>
11351
11352 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11353 including curses.h.
11354
11355 2012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11356
11357 * configure: Regenerate.
11358 * config.in: Regenerate.
11359
11360 2012-01-12 Keith Seitz <keiths@redhat.com>
11361
11362 PR mi/10586
11363 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11364 (ANONYMOUS_UNION_NAME): Define.
11365 (is_path_expr_parent): New function.
11366 (get_path_expr_parent): New function.
11367 (is_anonymous_child): New function.
11368 (create_child_with_value): If the child is anonymous and without
11369 a name, assign an object name to it.
11370 (c_describe_child): Use get_path_expr_parent to determine
11371 the parent expression.
11372 If there field represents an anonymous struct or union and
11373 has no name, set an appropriate display name and expression.
11374 (cplus_describe_child): Likewise.
11375
11376 2012-01-12 Pedro Alves <palves@redhat.com>
11377
11378 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11379 available when %ebp is found to be zero (outermost).
11380
11381 2012-01-11 Andreas Tobler <andreast@fgznet.ch>
11382
11383 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11384 an internal gdb_static_assert.
11385 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11386
11387 2012-01-11 Tom Tromey <tromey@redhat.com>
11388
11389 PR gdb/9598:
11390 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11391 catch" and "catch throw".
11392
11393 2012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11394
11395 * blockframe.c (block_innermost_frame): Start search from selected
11396 frame, if present, or otherwise the current frame.
11397
11398 * c-exp.y (variable): Update innermost_block for
11399 'block COLONCOLON NAME' clause.
11400 * m2-exp.y (variable): Ditto.
11401 * objc-exp.y (variable): Ditto.
11402
11403 2012-01-10 Tom Tromey <tromey@redhat.com>
11404
11405 PR python/13199:
11406 * python/python.c (finish_python_initialization): Set sys.argv.
11407
11408 2012-01-10 Doug Evans <dje@google.com>
11409
11410 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11411 "want_line_info". All callers updated.
11412 (dwarf_decode_lines_1): New function.
11413 (handle_DW_AT_stmt_list): Add function comment.
11414 New arg "want_line_info". All callers updated.
11415 (read_file_scope,read_type_unit_scope): Move comment from
11416 handle_DW_AT_stmt_list to here.
11417
11418 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11419
11420 Fix regression after libiberty/ update for GCC PR 6057 and others.
11421 * c-exp.y (operator) <OPERATOR DELETE>
11422 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11423 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11424 (make_builtin_type, make_name): New variable i, add gdb_assert.
11425 (operator) <OPERATOR NEW>: Update ARGS to 3.
11426 (operator) <OPERATOR DELETE>: Add trailing space.
11427 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11428 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11429 * cp-support.c (cp_canonicalize_string): Check NULL from
11430 cp_comp_to_string, call warning and return.
11431
11432 2012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11433
11434 Fix duplicate .o files after omitting libbfd.a.
11435 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11436 (SFILES): Add corelow.c.
11437 (COMMON_OBS): Add corelow.o.
11438 (ALLDEPFILES): Remove corelow.c.
11439 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11440 * config/alpha/alpha-osf3.mh: Likewise.
11441 * config/alpha/fbsd.mh: Likewise.
11442 * config/arm/nbsdaout.mh: Likewise.
11443 * config/arm/nbsdelf.mh: Likewise.
11444 * config/i386/i386gnu.mh: Likewise.
11445 * config/ia64/hpux.mh: Likewise.
11446 * config/ia64/linux.mh: Likewise.
11447 * config/m32r/linux.mh: Likewise.
11448 * config/m68k/linux.mh: Likewise.
11449 * config/mips/irix5.mh: Likewise.
11450 * config/mips/irix6.mh: Likewise.
11451 * config/pa/hpux.mh: Likewise.
11452 * config/pa/linux.mh: Likewise.
11453 * config/powerpc/aix.mh: Likewise.
11454 * config/sparc/linux.mh: Likewise.
11455 * config/sparc/linux64.mh: Likewise.
11456 * config/sparc/sol2.mh: Likewise.
11457 * config/vax/vax.mh: Likewise.
11458 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11459 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11460 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11461 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11462 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11463 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11464 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11465 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11466 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11467 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11468 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11469 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11470 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11471 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11472 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11473 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11474 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11475 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11476 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11477 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11478 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11479 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11480 corelow.o from gdb_target_obs.
11481 * corefile.c (core_target): Update the comment on NULL value.
11482 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11483 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11484 MATCHES. Drop YUMMY set on NULL.
11485 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11486 reclaim CORE_DATA if it is already NULL.
11487
11488 2012-01-09 Doug Evans <dje@google.com>
11489
11490 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11491 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11492
11493 2012-01-09 Keith Seitz <keiths@redhat.com>
11494
11495 * breakpoint.c (wrapper.h): Don't include.
11496
11497 2012-01-09 Keith Seitz <keiths@redhat.com>
11498
11499 * Makefile.in (SFILES): Remove wrapper.c.
11500 (HFILES_NO_SRCDIR): Remove wrapper.h.
11501 (COMMON_OBS): Remove wrapper.o.
11502 * cli/cli-interp.c: Don't inlude wrapper.h.
11503 * corelow.c: Likewise.
11504 (core_open): Replace gdb_target_find_new_threads with
11505 TRY_CATCH around target_find_new_threads.
11506 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11507 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11508 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11509 evaluate_expression.
11510 (varobj_set_value): Likewise for evaluate_expression and
11511 value_assign.
11512 (install_new_variable): Likewise for value_fetch_lazy.
11513 (adjust_value_for_child_access): Likewise for value_ind.
11514 (c_describe_child): Likewise for value_subscript and
11515 value_ind.
11516 (c_value_of_root): Likewise for evaluate_expression.
11517 * wrapper.c: Remove.
11518 * wrapper.h: Remove.
11519
11520 2012-01-09 Doug Evans <dje@google.com>
11521
11522 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11523 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11524 "abfd" args with "section". All callers updated.
11525 Error checking code moved ...
11526 (error_check_comp_unit_head): ... here. New function.
11527 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11528 Delete arg "abfd". New arg "type_offset". All callers updated.
11529 (create_debug_types_hash_table): Simplify by using
11530 read_and_check_type_unit_head.
11531
11532 * parser-defs.h (namecopy): Delete.
11533 * parse.c (namecopy, namecopy_size): Move into copy_name.
11534
11535 2012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11536
11537 Partially fix duplicate .o files after omitting libbfd.a.
11538 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11539 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11540 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11541 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11542 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11543 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11544 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11545
11546 2012-01-09 Pedro Alves <palves@redhat.com>
11547
11548 * MAINTAINERS: Update my email address.
11549
11550 2012-01-08 Doug Evans <dje@google.com>
11551
11552 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11553 n_type_units. Rename type_comp_units to all_type_units.
11554 All uses updated.
11555 (add_signatured_type_cu_to_table): Renamed from
11556 add_signatured_type_cu_to_list. All callers updated.
11557
11558 * gdbtypes.h (struct cplus_struct_type): Delete member
11559 nfn_fields_total. All uses removed.
11560
11561 2012-01-06 Doug Evans <dje@google.com>
11562
11563 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11564 to top of file.
11565 (dwarf2_find_comp_unit): Delete.
11566 (process_psymtab_comp_unit): Make result "void".
11567 Delete args buffer, info_ptr, buffer_size, and replace with
11568 "section". All callers updated.
11569 (dwarf2_build_psymtabs_hard): Simplify.
11570
11571 2012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11572 Thiago Jung Bauermann <bauerman@br.ibm.com>
11573
11574 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11575 before `struct gdb_exception'.
11576 * breakpoint.c (update_global_location_list_nothrow)
11577 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11578 * cp-abi.c (value_rtti_type): Likewise.
11579 * cp-support.c (cp_validate_operator): Likewise.
11580 * infrun.c (insert_exception_resume_breakpoint)
11581 (check_exception_resume, keep_going): Likewise.
11582 * mi-interp.c (mi_breakpoint_created)
11583 (mi_breakpoint_modified): Likewise.
11584 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11585 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11586 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11587
11588 2012-01-05 Doug Evans <dje@google.com>
11589
11590 * dwarf2read.c (statement_prologue): Delete, unused.
11591
11592 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11593 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11594
11595 * dwarf2read.c (comp_unit_header): Delete, unused.
11596
11597 2012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11598
11599 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11600 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11601
11602 2012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11603
11604 * infrun.c (normal_stop): Don't skip calling the normal_stop
11605 observers if the thread was doing a multi-step, but stopped for
11606 some reason other than stepping.
11607
11608 2012-01-05 Pedro Alves <alves.ped@gmail.com>
11609
11610 * cli/cli-decode.h: Add comments.
11611 (CMD_LIST_AMBIGUOUS): Moved to command.h
11612 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11613 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11614 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11615 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11616 (add_com, add_com_alias, add_info, add_info_alias)
11617 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11618 declarations.
11619 * command.h: Add and adjust comments.
11620 (CMD_LIST_AMBIGUOUS): Moved here.
11621 (help_cmd, help_cmd_list): Delete declarations.
11622
11623 2012-01-04 Doug Evans <dje@google.com>
11624
11625 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11626 All callers updated.
11627 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11628 Replace all arguments with "per_cu". All callers updated.
11629
11630 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11631
11632 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11633 New arg "per_cu". All callers updated.
11634
11635 Delete #if 0'd out code.
11636 * language.c (binop_result_type): Delete.
11637 (simple_type, ordered_type, same_type, integral_type): Delete.
11638 (numeric_type, character_type, string_type, boolean_type): Delete.
11639 (float_type, structured_type): Delete.
11640 * language.h: Update.
11641
11642 2012-01-04 Tom Tromey <tromey@redhat.com>
11643
11644 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11645
11646 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11647
11648 * corefile.c (close_exec_file): Delete.
11649 (reopen_exec_file): Remove commented out code that seems related
11650 to close_exec_file, which is being deleted here.
11651 * inferior.h (close_exec_file): Delete.
11652 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11653
11654 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11655
11656 * ada-lang.c: #include "cli/cli-utils.h".
11657 (get_selections): Use skip_spaces.
11658 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11659 (catch_ada_exception_command_split): Use skip_spaces.
11660 (ada_decode_assert_location): Likewise.
11661
11662 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11663
11664 * linespec.c (decode_line_internal): Check for C++ or Java
11665 compound constructs only if the current language is C, C++
11666 or Java.
11667
11668 2012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11669
11670 Revert:
11671 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11672 Joel Brobecker <brobecker@adacore.com>
11673 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11674 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11675 3 times.
11676 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11677 fall through into AT_ENTRY_POINT.
11678 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11679 DUMMY_ADDR with it.
11680 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11681 PPC_INSN_SIZE skip to 3 times.
11682
11683 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11684
11685 * linespec.c (add_minsym): Preserve function descriptors.
11686
11687 2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11688
11689 * breakpoint.c (all_locations_are_pending): Consider locations
11690 in program spaces executing during startup pending as well.
11691
11692 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11693
11694 Copyright year update in most files of the GDB Project.
11695
11696 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11697
11698 * copyright.sh: Delete.
11699 * copyright.py: Rewrite.
11700
11701 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11702
11703 * gnulib/extra/update-copyright: New file, imported from gnulib.
11704
11705 2012-01-04 Joel Brobecker <brobecker@adacore.com>
11706
11707 * README (Copyright and License Notices): New section.
11708
11709 2012-01-03 Tom Tromey <tromey@redhat.com>
11710
11711 PR python/12533:
11712 * python/py-value.c (valpy_dereference, valpy_get_address
11713 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11714 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11715 (valpy_absolute, valpy_richcompare): Free intermediate values.
11716
11717 2011-01-03 Joel Brobecker <brobecker@adacore.com>
11718
11719 * ada-lang.c: Reformat the copyright notice.
11720
11721 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11722
11723 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11724 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11725 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11726 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11727 Revert this part of:
11728 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11729 Build gdb directly from *.o files not using libgdb.a.
11730 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11731
11732 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11733
11734 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11735 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11736 Reformat the copyright header.
11737
11738 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11739
11740 Revert this part of:
11741 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11742 Remove the gdbtui binary.
11743 * gdb.c (main): Remove args.interpreter_p initialization.
11744 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11745 * main.h (struct captured_main_args): Remove interpreter_p.
11746
11747 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11748
11749 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11750
11751 2012-01-02 Joel Brobecker <brobecker@adacore.com>
11752
11753 * top.c (print_gdb_version): Update copyright year.
11754
11755 2012-01-02 Yao Qi <yao@codesourcery.com>
11756
11757 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11758
11759 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11760 Joel Brobecker <brobecker@adacore.com>
11761
11762 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11763 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11764 3 times.
11765 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11766 fall through into AT_ENTRY_POINT.
11767 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11768 DUMMY_ADDR with it.
11769 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11770 PPC_INSN_SIZE skip to 3 times.
11771
11772 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11773
11774 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11775 the return value.
11776 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11777
11778 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11779
11780 Build gdb directly from *.o files not using libgdb.a.
11781 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11782 (COMMON_OBS): Remove solib-target.o.
11783 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11784 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11785 (LIBGDB_OBS, libgdb.a): Move it above.
11786 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11787 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11788 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11789 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11790 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11791 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11792 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11793 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
11794 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
11795 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
11796 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
11797 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
11798 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
11799 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
11800 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11801 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
11802 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
11803 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11804 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
11805 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
11806 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
11807 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
11808 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
11809 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
11810 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
11811 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
11812 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
11813
11814 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11815
11816 Remove the gdbtui binary.
11817 * .gitignore (/gdbtui): Remove.
11818 * Makefile.in (TUI): Remove.
11819 (SUBDIR_TUI_OBS): Remove tui-main.o.
11820 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
11821 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
11822 (tui-main.o): Remove.
11823 (all_object_files): Remove tui-main.o.
11824 * NEWS: New note for the gdbtui removal.
11825 * configure: Rebuilt.
11826 * configure.ac: No longer add all-tui, clean-tui, install-tui and
11827 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
11828 CONFIG_UNINSTALL respectively.
11829 * gdb.c (main): Remove args.interpreter_p initialization.
11830 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11831 * main.h (struct captured_main_args): Remove interpreter_p.
11832 * tui/tui-main.c: Remove.
11833
11834 2012-01-01 Doug Evans <dje@google.com>
11835
11836 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
11837 (dwarf2_physname, read_import_statement): Ditto.
11838 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
11839 (process_structure_scope read_subroutine_type): Ditto.
11840 (read_typedef, load_partial_dies, read_partial_die): Ditto.
11841 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
11842 (dwarf2_fetch_die_location_block): Ditto.
11843 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
11844
11845 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
11846 All callers updated.
11847 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
11848 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
11849 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
11850
11851 * dwarf2read.c (load_cu): Move assert to more useful location.
11852
11853 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
11854 All callers updated.
11855
11856 * dwarf2read.c (dwarf2_per_objfile): Add comment.
11857 (dwarf2_elf_names): Minor reformat.
11858 (dwarf2_per_cu_data): Tweak comment.
11859 (dwarf2_read_section): Fix comment.
11860 (create_all_comp_units): Fix comment.
11861 (load_full_comp_unit): Fix comment.
11862 (process_full_comp_unit): Fix comment.
11863 (read_signatured_type): Fix comment.
11864
11865 For older changes see ChangeLog-2011.
11866 \f
11867 Local Variables:
11868 mode: change-log
11869 left-margin: 8
11870 fill-column: 74
11871 version-control: never
11872 coding: utf-8
11873 End: