gdb/
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
f5682501
YQ
12012-11-29 Yao Qi <yao@codesourcery.com>
2 Tom Tromey <tromey@redhat.com>
3
4 * eval.c (evaluate_subexp_standard): Get the correct pointer
5 type for TYPE_CODE_MEMBERPTR.
6
f359d716
EBM
72012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
8
9 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
10 since now it is being done by binutils' powerpc_init_dialect().
11
0cd61f44
TT
122012-11-28 Tom Tromey <tromey@redhat.com>
13
14 PR gdb/14290:
15 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
16 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
17 Use it.
18 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
19 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
20 (gdb_bfd_openr_next_archived_file): Use it.
21
945bf713
MM
222012-11-28 Markus Metzger <markus.t.metzger@intel.com>
23
24 * configure.ac: Check for linux/perf_event.h.
25 * config.in: Regenerated.
26 * configure: Regenerated.
27
7e20dfcd
YQ
282012-11-28 Yao Qi <yao@codesourcery.com>
29
30 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
31 abbreviate 'delete tracepoints' to 'delete tr'.
32 * corefile.c (_initialize_core): Call add_alias_cmd to
33 abbreviate 'set gnutarget' to 'set g'.
34 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
35 'show convenience' to 'show conv'.
36
b8293cc8
JB
372012-11-27 Joel Brobecker <brobecker@adacore.com>
38
39 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
40 call to sparc_supply_fpregset.
41 (fill_fpregset): Fix first parameter in call to
42 sparc_collect_fpregset.
43
8c2b9656
YQ
442012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
45 Kazu Hirata <kazu@codesourcery.com>
46 Yao Qi <yao@codesourcery.com>
47
48 * objfiles.c (init_entry_point_info): Call
49 gdbarch_convert_from_func_ptr_addr and
50 gdbarch_addr_bits_remove here ...
51 (entry_point_address_query): ... instead of here.
52 * solib-svr4.c (exec_entry_point): Call
53 gdbarch_addr_bits_remove.
54 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
55 the entry address.
56
5edf51fe
YQ
572012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
58 Yao Qi <yao@codesourcery.com>
59
60 * eval.c (evaluate_subexp_standard): Add handling of
61 TYPE_CODE_MEMBERPTR when calling functions. Correct the
62 result of ptype for calling a TYPE_CODE_METHODPTR.
63
ca242aad
YQ
642012-11-27 Yao Qi <yao@codesourcery.com>
65
66 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
67 warning.
68 Add i18n markup.
69
608e2dbb
TT
702012-11-26 Alexander Larsson <alexl@redhat.com>
71 Jan Kratochvil <jan.kratochvil@redhat.com>
72 Tom Tromey <tromey@redhat.com>
73
74 * NEWS: Mention mini debuginfo feature.
75 * minidebug.c: New file.
76 * configure.ac: Check for lzma.
77 * configure, config.in: Rebuild.
78 * Makefile.in (LIBLZMA): New variable.
79 (CLIBS): Include LIBLZMA.
80 (SFILES): Mention minidebug.c.
81 (COMMON_OBS): Mention minidebug.o.
82 * symfile.c (read_symbols): New function.
83 (syms_from_objfile, reread_symbols): Call it.
84 * symfile.h (find_separate_debug_file_in_section): Declare.
85
17d6efc4
JB
862012-11-26 Keith Seitz <keiths@redhat.com>
87
88 * exec.c (exec_file_attach): Move cleanup after verifying that
89 memory has in fact been allocated.
90
210bbc17
TT
912012-11-26 Tom Tromey <tromey@redhat.com>
92
93 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
94 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
95 SYMBOL_SYMTAB.
96 * skip.c (skip_info): Use SYMBOL_SYMTAB.
97
0270a750
PA
982012-11-26 Maxime Villard <rustyBSD@gmx.fr>
99 Pedro Alves <palves@redhat.com>
100
101 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
102 size parameter passed to readlink by one byte.
103 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
104 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
105 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
106 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
107 size by one byte.
108
9c16be9a
YQ
1092012-11-26 Yao Qi <yao@codesourcery.com>
110
111 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
112 extraneous parentheses.
113
e6f3fa52
YQ
1142012-11-26 Yao Qi <yao@codesourcery.com>
115
116 * remote.c (remote_start_remote): Typo fix.
117
db75c717
DM
1182012-11-23 David S. Miller <davem@davemloft.net>
119
120 * sparc-tdep.h (struct sparc_fpregset): New data structure.
121 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
122 sparc32_sol2_fpregset): Declare new globals.
123 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
124 'fpregset' argument.
125 * sparc64-tdep.h (sparc64_supply_fpregset,
126 sparc64_collect_fpregset): Likewise.
127 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
128 globals.
129 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
130 (sparc_fpregset): Declare new global.
131 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
132 'fpregset' argument.
133 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
134 into handler.
135 (fill_fpregset): Likewise.
136 (_initialize_sparc_linux_nat): Set sparc_fpregset to
137 sparc32_bsd_fpregset.
138 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
139 sparc32_bsd_fpregset down into handler.
140 (sparc32_linux_collect_core_fpregset): Likewise.
141 * sparc-nat.c (sparc_fpregset): Define.
142 (sparc_supply_fpregset): Add 'fpregset' argument.
143 (sparc_collect_fpregset): Likewise.
144 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
145 into fpregset handler.
146 (sparc_store_inferior_registers): Likewise.
147 (_initialize_sparc_nat): Set sparc_fpregset to
148 sparc32_sunos4_fpregset if NULL.
149 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
150 down into handler.
151 (fill_fpregset): Likewise.
152 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
153 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
154 use it to compute offsets.
155 (sparc32_collect_fpregset): Likewise.
156 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
157 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
158 down into handler.
159 (fill_fpregset): Likewise.
160 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
161 Likewise.
162 (sparc64_linux_collect_core_fpregset): Likewise.
163 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
164 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
165 use it to compute offsets.
166 (sparc64_collect_fpregset): Likewise.
167 (sparc64_bsd_fpregset): Define.
168 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
169 sparc64_bsd_fpregset down into handler.
170 (sparc64fbsd_collect_fpregset): Likewise.
171 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
172 and pass sparc{32,64}_bsd_fpregset down into handler.
173 (sparc64nbsd_collect_fpregset): Likewise.
174 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
175 sparc64_bsd_fpregset down into handler.
176 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
177 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
178 to sparc32_bsd_fpregset.
179 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
180 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
181 (sparc32nbsd_supply_fpregset): Likewise.
182
cfcad218
TT
1832012-11-21 Tom Tromey <tromey@redhat.com>
184
185 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
186 field.
187 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
188 Remove.
189 * c-typeprint.c (c_type_print_base): Update.
190
85ddcc70
YQ
1912012-11-21 Yao Qi <yao@codesourcery.com>
192
193 PR tdep/7438
194 * gdbarch.sh (smash_text_address): Remove.
195 * gdbarch.c, gdbarch.h: Regenerate.
196 * arm-tdep.c (arm_smash_text_address): Remove.
197 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
198 * hppa-tdep.c (hppa_smash_text_address): Remove.
199 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
200 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
201 Caller update.
202 * coffread.c (coff_symtab_read): Caller update.
203 * dbxread.c (process_one_symbol): Likewise.
204 * elfread.c (record_minimal_symbol): Likewise.
205 * somread.c (som_symtab_read): Likewise.
206
11522069
PM
2072012-11-20 Pierre Muller <muller@sourceware.org>
208
209 ARI fixes: sprintf rule.
210 Replace sprintf function calls for char arrays by
211 calls to xsnprintf calls.
212 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
213 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
214 (arm_neon_quad_read, arm_pseudo_read): Ditto.
215 (arm_neon_quad_write, arm_pseudo_write): Ditto.
216 * breakpoint.c (condition_completer): Ditto.
217 (create_tracepoint_from_upload): Ditto.
218 * dwarf2read.c (file_full_name): Ditto.
219 * gcore.c (gcore_command): Ditto.
220 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
221 * go32-nat.c (go32_sysinfo): Ditto.
222 * interps.c (interp_set): Ditto.
223 * m32c-tdep.c (make_types): Ditto.
224 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
225 * remote-m32r-sdi.c (m32r_open): Ditto.
226 * sol-thread.c (td_err_string): Ditto.
227 (td_state_string, solaris_pid_to_str): Ditto.
228 * symtab.c (gdb_mangle_name): Ditto.
229 * cli/cli-script.c (execute_control_command): Ditto.
230 (define_command, document_command): Ditto.
231 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
232 * tui/tui-stack.c (tui_make_status_line): Ditto.
233 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
234
ace21957
MF
2352012-11-20 Mike Frysinger <vapier@gentoo.org>
236
237 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
238 it when looking at ptr->func.
239 * command.h (complete_on_cmdlist): Add a fourth arg.
240 * completer.c (complete_line_internal): Add local ignore_help_classes,
241 and set it to 1 when reason is not handle_help. Pass this down to
242 lookup_cmd_1 and complete_on_cmdlist.
243
ec6632d7
TT
2442012-11-20 Tom Tromey <tromey@redhat.com>
245
246 * completer.c (count_struct_fields): Remove.
247 (expression_completer): Don't call count_struct_fields.
248
ef37bb07
PA
2492012-11-20 Pedro Alves <palves@redhat.com>
250
251 * annotate.c (breakpoints_changed): Rename to ...
252 (annotate_breakpoints_changed): ... this.
253 (annotate_stopped, breakpoint_changed): Adjust caller.
254 * annotate.h (breakpoints_changed): Rename to ...
255 (annotate_breakpoints_changed): ... this.
256 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
257 (do_map_commands_command, init_raw_breakpoint, clear_command)
258 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
259
b245bdfc
DM
2602012-11-20 David S. Miller <davem@davemloft.net>
261
262 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
263 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
264 sysconf.
265 (get_cores_used_by_process): Update comment.
266
bd0cfc4d
YQ
2672012-11-20 Yao Qi <yao@codesourcery.com>
268
269 * objfiles.c (init_entry_point_info): Remove trailing spaces.
270
de9f1b68
YQ
2712012-11-20 Yao Qi <yao@codesourcery.com>
272
273 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
274 to deprecated_context_hook.
275
8870954f
YQ
2762012-11-19 Yao Qi <yao@codesourcery.com>
277
278 * infrun.c (infwait_state): Add static.
279
8dea366b
KS
2802012-11-16 Keith Seitz <keiths@redhat.com>
281
282 PR c++/13615
283 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
284 parameter and pass it to lookup_symbol_file.
285 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
286 to search base classes.
287 (cp_lookup_symbol_namespace): Likewise.
288 (lookup_namespace_scope): Likewise.
289 (lookup_symbol_file): Add SEARCH parameter.
290 If SEARCH is non-zero and no symbol is found, lookup the class
291 and call cp_lookup_nested_symbol.
292 (find_symbol_in_baseclass): New function.
293 (cp_lookup_nested_symbol): Do not let
294 cp_lookup_symbol_in_namespace search through base classes.
295 Do that later when there is no global symbol match.
296
e64e0392
DE
2972012-11-16 Doug Evans <dje@google.com>
298
299 * main.c (gdb_datadir_provided): New static global.
300 (get_init_files): If --data-directory is provided,
301 and SYSTEM_GDBINIT lives in data-directory, look for it there.
302 * NEWS: Mention it.
303
8bdce1ff
PM
3042012-11-15 Pierre Muller <muller@sourceware.org>
305
306 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
307 * gdb_stat.h: Delete. Moved to common directory.
308 * common/gdb_stat.h: New file.
309 * gdb_wait.h: Delete. Moved to common directory.
310 * common/gdb_wait.h: New file.
311 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
312 location.
313 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
314 location.
315 (stat.h rule): Adapt to new gdb_stat.h location.
316 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
317 <sys/stat.h> header.
318 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
319 <sys/wait.h> header.
320
3a731e0f
PM
3212012-11-15 Pierre Muller <muller@sourceware.org>
322
323 * configure.ac (AC_HEADER_STAT): Remove.
324 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
325 and corresponding code.
326 * configure: Regenerate.
327 * config.in: Regenerate.
328
2792b94d
PM
3292012-11-15 Pierre Muller <muller@sourceware.org>
330
331 ARI xasprintf rule fixes.
332 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
333 instead of xasprintf.
334 (open_and_init_dwp_file): Ditto.
335
5e34c6c3
LM
3362012-11-14 Luis Machado <lgustavo@codesourcery.com>
337
338 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
339 target types.
340
e68227b9
TT
3412012-11-14 Tom Tromey <tromey@redhat.com>
342
343 * configure, config.in: Rebuild.
344 * configure.ac: Don't check for ctype.h, time.h.
345 * expprint.c: Don't use HAVE_CTYPE_H.
346
aff68abb
TT
3472012-11-13 Tom Tromey <tromey@redhat.com>
348
349 * gdbarch.h, gdbarch.c: Rebuild.
350 * gdbarch.sh (set_target_gdbarch): Rename from
351 deprecated_target_gdbarch_select_hack.
352 * arch-utils.c (gdbarch_update_p): Update.
353 (set_gdbarch_from_file): Update.
354
84277139 3552012-11-14 Pierre Muller <muller@sourceware.org>
f7c93334
PM
356
357 * MAINTAINERS (Responsible Maintainers/misc): Add myself
358 as responsible of contrib/ari directory.
359
2ae28aa9
YQ
3602012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
361 Yao Qi <yao@codesourcery.com>
362
363 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
364 bit of EXC_RETURN.
365 (arm_m_exception_cache, arm_m_exception_this_id)
366 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
367 (arm_m_exception_unwind): New.
368 (arm_gdbarch_init): Register arm_m_exception_unwind.
369
62747a60
TT
3702012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
371
372 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
373 parameter COUNT, for pattern filling of memory regions.
374 * NEWS: Mention it.
375
4cd29721
MM
3762012-11-13 Markus Metzger <markus.t.metzger@intel.com>
377
378 * disasm.h (DISASSEMBLY_FILENAME): New macro.
379 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
380 to print_source_lines ().
381 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
382 flag.
383 * source.c (print_source_lines_base): Prefix source line with
384 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
385
dfaae886
MM
3862012-11-13 Markus Metzger <markus.t.metzger@intel.com>
387
388 * symtab.h (print_source_lines_flags): New enum.
389 * source.c (print_source_lines_base): Change noerror to flags.
390 (print_source_lines): Change noerror to flags.
391
08850b56
PM
3922012-11-13 Pierre Muller <muller@sourceware.org>
393
394 ARI fixes: Avoid sprintf function use rule.
395 * charset.c (convert_between_encodings): Use xsnprintf.
396 * cli-out.c (cli_field_int): Likewise.
397 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
398 * expprint.c (op_name_standard): Likewise.
399 * frv-tdep.c (set_variant_num_gprs): Likewise.
400 (set_variant_num_fprs): Likewise.
401 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
402 * nto-tdep.c (nto_find_and_open_solib): Likewise.
403 (nto_init_solib_absolute_prefix): Likewise.
404 * source.c (init_source_path): Likewise.
405 (print_source_lines_base): Likewise.
406 * valprint.c (print_wchar): Likewise.
407 * mi/mi-out.c (mi_field_int): Likewise.
408 windows-nat.c (windows_pid_to_exec_file): Likewise.
409 (windows_create_inferior): Likewise.
410 (_initialize_check_for_gdb_ini): Likewise.
411
ca9d61b9
JB
4122012-11-12 Joel Brobecker <brobecker@adacore.com>
413
414 * frame.h (deprecated_frame_register_read): Renames
415 frame_register_read.
416 * frame.c (deprecated_frame_register_read): Renames
417 frame_register_read. Update all callers.
418 * i386-tdep.c: Update all callers of frame_register_read.
419 * infcmd.c: Likewise.
420 * jit.c: Likewise.
421 * mips-tdep.c: Likewise.
422 * mt-tdep.c: Likewise.
423 * sh64-tdep.c: Likewise.
424
b2c7d45a
JB
4252012-11-12 Joel Brobecker <brobecker@adacore.com>
426
427 * frame.h (frame_register_read): Remove FIXME comment.
428 * frame.c (frame_register_read): Add suggestion explaining
429 which function to use in place of this one.
430
31594462
TT
4312012-11-12 Tom Tromey <tromey@redhat.com>
432
433 * python/python.c (start_type_printers): Initialize 'result_obj'.
434
18a9fc12
TT
4352012-11-12 Tom Tromey <tromey@redhat.com>
436
437 * NEWS: Update.
438 * data-directory/Makefile.in (PYTHON_FILES): Add
439 type_printers.py.
440 * python/lib/gdb/command/type_printers.py: New file.
441 * python/lib/gdb/command/types.py (TypePrinter): New class.
442 (_get_some_type_recognizers, get_type_recognizers,
443 apply_type_recognizers, register_type_printer): New
444 functions.
445 * python/py-objfile.c (objfile_object) <type_printers>: New
446 field.
447 (objfpy_dealloc): Decref new field.
448 (objfpy_new): Set new field.
449 (objfpy_get_type_printers, objfpy_set_type_printers): New
450 functions.
451 (objfile_to_objfile_object): Set new field.
452 (objfile_getset): Add "type_printers".
453 * python/py-progspace.c (pspace_object) <type_printers>: New
454 field.
455 (pspy_dealloc): Decref new field.
456 (pspy_new): Set new field.
457 (pspy_get_type_printers, pspy_set_type_printers): New functions.
458 (pspace_to_pspace_object): Set new field.
459 (pspace_getset): Add "type_printers".
460 * python/python.c (start_type_printers, apply_type_printers,
461 free_type_printers): New functions.
462 (_initialize_python): Set gdb.type_printers.
463 * python/python.h (start_type_printers, apply_type_printers,
464 free_type_printers): Declare.
465 * typeprint.c (type_print_raw_options, default_ptype_flags):
466 Update for new fields.
467 (do_free_global_table, create_global_typedef_table,
468 find_global_typedef): New functions.
469 (find_typedef_in_hash): Use find_global_typedef.
470 (whatis_exp): Use create_global_typedef_table. Change cleanup
471 handling.
472 * typeprint.h (struct type_print_options) <global_typedefs,
473 global_printers>: New fields.
474
bd69fc68
TT
4752012-11-12 Tom Tromey <tromey@redhat.com>
476
477 * c-typeprint.c (find_typedef_for_canonicalize,
478 print_name_maybe_canonical): New functions.
479 (c_print_type): Look up type name.
480 (cp_type_print_derivation_info): Add flags argument. Use
481 print_name_maybe_canonical.
482 (cp_type_print_method_args): Add wrapping.
483 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
484 (c_type_print_template_args): New function.
485 (c_type_print_base): Change wrapping. Use
486 print_name_maybe_canonical.
487 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
488 type name lookups.
489 * gdbtypes.c (types_equal): No longer static.
490 * gdbtypes.h (types_equal): Declare.
491 * typeprint.c (type_print_raw_options, default_ptype_flags):
492 Update.
493 (struct typedef_hash_table): New.
494 (hash_typedef_field, eq_typedef_field,
495 recursively_update_typedef_hash, add_template_parameters,
496 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
497 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
498 copy_typedef_hash, find_typedef_in_hash): New functions.
499 * typeprint.h (struct type_print_options) <local_typedefs>:
500 New field.
501 (recursively_update_typedef_hash, add_template_parameters,
502 create_typedef_hash, free_typedef_hash,
503 make_cleanup_free_typedef_hash, copy_typedef_hash,
504 find_typedef_in_hash): Declare.
505
2621e0fd
TT
5062012-11-12 Tom Tromey <tromey@redhat.com>
507
508 * cp-support.c (inspect_type,
509 replace_typedefs_qualified_name, replace_typedefs): Add
510 finder, data arguments. Call as needed.
511 (cp_canonicalize_string_full): New function.
512 (cp_canonicalize_string_no_typedefs): Rewrite.
513 * cp-support.h (canonicalization_ftype): New typedef.
514 (cp_canonicalize_string_full): Declare.
515
53342f27
TT
5162012-11-12 Tom Tromey <tromey@redhat.com>
517
518 * NEWS: Update.
519 * c-typeprint.c (c_type_print_base): Handle print_method and
520 print_typedefs flags.
521 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
522 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
523 options.
524 * typeprint.c (type_print_raw_options, default_ptype_flags):
525 Update for new field.s
526 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
527 (setprinttypelist, showprinttypelist, print_methods,
528 print_typedefs): New globals.
529 (set_print_type, show_print_type, set_print_type_methods,
530 show_print_type_methods, set_print_type_typedefs,
531 show_print_type_typedefs): New functions.
532 (_initialize_typeprint): Update documentation. Add "print
533 type methods" and "print type typedefs" parameters.
534 * typeprint.h (struct type_print_options) <print_methods,
535 print_typedefs>: New fields.
536
6c8702eb
TT
5372012-11-12 Tom Tromey <tromey@redhat.com>
538
539 * c-typeprint.c (cp_type_print_method_args): Add flags
540 argument. Call c_print_type, not type_print.
541 (c_type_print_base): Call c_print_type, not type_print.
542 Update.
543
79d43c61
TT
5442012-11-12 Tom Tromey <tromey@redhat.com>
545
546 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
547 to type-printing functions.
548 * ada-lang.h (ada_print_type): Add argument.
549 * ada-typeprint.c (print_array_type, print_variant_clauses,
550 print_variant_part, print_selected_record_field_types,
551 print_record_field_types, print_unchecked_union_type,
552 print_func_type, ada_print_type): Add flags argument.
553 (ada_print_typedef): Update.
554 * c-exp.y (OPERATOR conversion_type_id): Update.
555 * c-lang.h (c_print_type, c_type_print_base): Update.
556 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
557 c_type_print_modifier, c_type_print_args,
558 c_type_print_varspec_suffix, c_type_print_base): Add flags
559 argument.
560 * cp-valprint.c (cp_print_class_member): Update.
561 * dwarf2read.c (dwarf2_compute_name): Update.
562 * f-lang.h (f_print_type): Add argument.
563 * f-typeprint.c (f_print_type): Add flags argument.
564 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
565 * go-lang.h (go_print_type): Add argument.
566 * go-typeprint.c (go_print_type): Add flags argument.
567 * jv-lang.h (java_print_type): Add argument.
568 * jv-typeprint.c (java_type_print_base, java_print_type): Add
569 flags argument.
570 * language.c (unk_lang_print_type): Add flags argument.
571 * language.h (struct language_defn) <la_print_type>: Add flags
572 argument.
573 (LA_PRINT_TYPE): Likewise.
574 * m2-lang.h (m2_print_type): Add argument.
575 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
576 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
577 m2_unbounded_array, m2_record_fields): Add flags argument.
578 * p-lang.h (pascal_print_type, pascal_type_print_base,
579 pascal_type_print_varspec_prefix): Add argument.
580 * p-typeprint.c (pascal_print_type,
581 pascal_type_print_varspec_prefix, pascal_print_func_args,
582 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
583 flags argument.
584 * symmisc.c (print_symbol): Update.
585 * typeprint.c (type_print_raw_options, default_ptype_flags):
586 New globals.
587 (type_print): Update.
588 * typeprint.h (struct type_print_options): New.
589 (type_print_raw_options): Declare.
590 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
591
cf4ded82
KS
5922012-11-10 Keith Seitz <keiths@redhat.com>
593
594 * breakpoint.c (clear_command): Add cleanup for
595 sals.sals if an argument is given.
596
597 * linespec.c (parse_linespec): Do cleanups after
598 parsing a convenience variable.
599
0d63ecda
KS
6002012-11-10 Keith Seitz <keiths@redhat.com>
601
602 PR gdb/14288
603 * c-valprint.c (c_val_print): For character arrays
604 with "print null" option on, print ellipses if
605 the output is truncated and the next character is not \000.
606 * valprint.c (MAX_WCHARS): Define.
607 (WCHAR_BUFLEN): Likewise.
608 (WCHAR_BUFLEN_MAX): Likewise.
609 (struct converted_character): New structure.
610 (count_next_character): New function.
611 (print_converted_chars_to_obstack): New function.
612 (generic_printstr): Rewrite using count_next_character
613 and print_converted_chars_to_obstack.
614
9b8d6827
SC
6152012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
616
617 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
618 while executing the gdb command.
619 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
620 are called from prompt_for_continue.
621 * tui/tui-io.c (tui_redisplay_readline): Likewise.
622
e840f632
SC
6232012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
624
625 PR tui/9584
626
627 * tui/tui.c (tui_rl_command_key): Do not call execute_command
628 but insert the command to execute in readline's buffer.
629
f5656ead
TT
6302012-11-09 Tom Tromey <tromey@redhat.com>
631
632 * gdbarch.sh (target_gdbarch): Remove macro.
633 (get_target_gdbarch): Rename to target_gdbarch.
634 * gdbarch.c, gdbarch.h: Rebuild.
635 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
636 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
637 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
638 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
639 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
640 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
641 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
642 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
643 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
644 procfs.c, progspace.c, ravenscar-thread.c, record.c,
645 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
646 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
647 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
648 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
649 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
650 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
651 target-descriptions.c, target.c, target.h, tracepoint.c,
652 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
653 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
654 python/py-inferior.c, python/python.c: Update.
655
ed8a1c2d
AB
6562012-11-09 Andrew Burgess <aburgess@broadcom.com>
657
658 * source.c (print_source_lines_base): Add fullname field giving
659 full path to file in mi output.
660 * NEWS: Mention the new fullname field.
661
504b36fd
YQ
6622012-11-09 Yao Qi <yao@codesourcery.com>
663
664 * NEWS: Mention the fix to the ambiguity of 'fo' command.
665
9107fc8d
PA
6662012-11-09 Pedro Alves <palves@redhat.com>
667
668 PR gdb/14306
669
670 * infrun.c: Include target-descriptions.h.
671 (follow_exec): Fetch new target description.
672
30f8135b
YQ
6732012-11-09 Yao Qi <yao@codesourcery.com>
674
675 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
676 0x8d (lea).
677
558a9d82
YQ
6782012-11-09 Yao Qi <yao@codesourcery.com>
679
680 * breakpoint.c: Declare set_tracepoint_count.
681 (install_breakpoint): Call set_tracepoint_count if B is a
682 tracepoint.
683 (trace_command): Don't call set_tracepoint_count. Re-indent.
684 (strace_command, ftrace_command):
685 (create_tracepoint_from_upload): Likewise.
686
6ecd4729
PA
6872012-11-09 Pedro Alves <palves@redhat.com>
688
689 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
690 (get_target_gdbarch) <gdbarch.h>: New function.
691 (startup_gdbarch) <gdbarch.h>: Declare.
692 <gdbarch.c> (target_gdbarch): Delete.
693 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
694 current inferior's gdbarch.
695 <gdbarch.c> (get_target_gdbarch): New function.
696 * inferior.c: Include target-descriptions.h.
697 (free_inferior): Free target description info.
698 (add_inferior_with_spaces): Set the inferior's initial
699 architecture.
700 (clone_inferior_command): Copy the original inferior's target
701 description if it was user specified.
702 (initialize_inferiors): Add comment.
703 * inferior.h (struct target_desc_info): Forward declare.
704 (struct inferior) <gdbarch>: New field.
705 * linux-nat.c: Include target-descriptions.h.
706 (linux_child_follow_fork): Copy the parent's architecture and
707 target description to the child.
708 * target-descriptions.c: Include inferior.h.
709 (struct target_desc_info): New structure, holding the equivalents
710 of ...
711 (target_desc_fetched, current_target_desc)
712 (target_description_filename): ... these removed globals.
713 (get_tdesc_info, target_desc_info_from_user_p)
714 (copy_inferior_target_desc_info, target_desc_info_free): New.
715 (target_desc_fetched, current_target_desc)
716 (target_description_filename): Reimplemented as convenience
717 macros.
718 (tdesc_filename_cmd_string): New global.
719 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
720 tdescs filename ..." commands to the per-inferior equivalent.
721 (show_tdesc_filename_cmd): Get the value to show from the
722 per-inferior description filename.
723 (_initilize_target_descriptions): Change the "set/show tdesc
724 filename" commands' variable.
725 * target-descriptions.h (struct target_desc, struct target_desc_info)
726 (struct inferior): Forward declare.
727 (target_find_description, target_clear_description)
728 (target_current_description): Adjust comments.
729 (copy_inferior_target_desc_info, target_desc_info_free)
730 (target_desc_info_from_user_p). Declare.
731
4ca4d161
SC
7322012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
733
734 * tui/tui-hooks.c (tui_about_to_proceed): New function.
735 (tui_target_wait_hook): Remove.
736 (tui_install_hooks): Install the about_to_proceed observer.
737 (tui_remove_hooks): And remove it here.
738
9015683b
TT
7392012-11-08 Tom Tromey <tromey@redhat.com>
740
741 * linux-tdep.c (linux_make_siginfo_note): New function.
742 (linux_make_corefile_notes): Use it.
743 * corelow.c (get_core_siginfo): New function.
744 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
745
ea9f10bb
TT
7462012-11-08 Tom Tromey <tromey@redhat.com>
747
748 PR gdb/14704:
749 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
750 (zlib_decompress_section): Remove.
751 (gdb_bfd_map_section): Only check for compressed section
752 in mmap case. Use bfd_get_full_section_contents.
753 * osabi.c (check_note): Add 'sectsize' argument. Read
754 section data.
755 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
756 section data. Update for check_note change.
757 * xcoffread.c (xcoff_initial_scan): Use
758 bfd_get_full_section_contents.
759 * py-auto-load.c (auto_load_section_scripts): Use
760 bfd_get_full_section_contents.
761 * contrib/cc-with-tweaks.sh: Add -Z option.
762
d071a26b
TT
7632012-11-08 Tom Tromey <tromey@redhat.com>
764
765 * python/py-bpevent.c: Include defs.h.
766 * python/py-continueevent.c: Include defs.h.
767 * python/py-event.c: Include defs.h.
768 * python/py-event.h: Don't include defs.h.
769 * python/py-events.h: Don't include defs.h.
770 * python/py-evts.c: Include defs.h.
771 * python/py-exitedevent.c: Include defs.h.
772 * python/py-newobjfileevent.c: Include defs.h.
773 * python/py-signalevent.c: Include defs.h.
774 * python/py-stopevent.c: Include defs.h.
775 * python/py-threadevent.c: Include defs.h.
776
4574b35a
PM
7772012-11-08 Pierre Muller <muller@sourceware.org>
778
779 * update-web-ari.sh (print_heading): Add number of files
780 checked.
781 (nb_files): New variable counting the number of sources
782 files found by gdb_find.sh script.
783 (debug_awk): New variable to allow extra debug output.
784 (indexes): Add more information if DEBUG_AWK is set.
785
2834ab42
EBM
7862012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
787
788 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
789 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
790 following the change in PLT call stubs on linker.
791
84f13595
PM
7922012-11-08 Pierre Muller <muller@sourceware.org>
793
794 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
795 as default language.
796 (AWK): Use = instead of == for sh test to avoid warning.
797 (Linux rule): Correct [:digit] into [[:digit:]].
798 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
799 (vasprintf rule): Adapt to common subdirectory moves.
800 (xasprintf rule): Idem.
801 (xvasprintf rule): Idem.
802 (var_boolean rule): Accept occurence in == or != test.
803
804 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
805
d69e6a33
SC
8062012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
807
808 * tui/tui-hooks.c (tui_inferior_exit): New function.
809 (tui_detach_hook): Remove.
810 (tui_install_hooks): Install the inferior exit observer.
811 (tui_remove_hooks): Remove it.
812
1e96de83
YQ
8132012-11-08 Yao Qi <yao@codesourcery.com>
814
815 PR gdb/14777.
816 * source.c (_initialize_source): Call add_com_alias to abbreviate
817 'forward-search' as 'fo'.
818
0baeab03
PA
8192012-11-07 Pedro Alves <palves@redhat.com>
820
821 * arm-tdep.c: Make defs.h be the first include.
822 * coff-pe-read.c: Ditto.
823 * gnu-nat.c: Ditto.
824 * go32-nat.c: Ditto.
825 * i386-nat.c: Ditto.
826 * ppcnbsd-nat.c: Ditto.
827 * ada-varobj.h: Don't include defs.h.
828 * i386-darwin-tdep.h: Ditto.
829 * i386-nat.h: Ditto.
830
892a8570
PA
8312012-11-07 Pedro Alves <palves@redhat.com>
832
833 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
834 Committee.
835
719502e9
PM
8362012-11-07 Pierre Muller <muller@sourceware.org>
837
838 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
839 File already uses "gdb_dirent.h" header.
840
ed86b350
YQ
8412012-11-07 Yao Qi <yao@codesourcery.com>
842
843 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
844 tracepoint_count'.
845
9a4f1e4f
TT
8462012-11-06 Tom Tromey <tromey@redhat.com>
847
848 * target.h (inferior_has_forked, inferior_has_vforked)
849 (inferior_has_execd, inferior_has_called_syscall): Remove
850 declarations.
851
0316657e
PM
8522012-11-06 Pierre Muller <muller@sourceware.org>
853
854 * remote.c (remote_insert_hw_breakpoint): ARI fix,
855 add missing internalization markup.
856
f6592439
PA
8572012-11-06 Pedro Alves <palves@redhat.com>
858
859 PR gdb/14810
860
861 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
862
01f2564a
PM
8632012-11-06 Pierre Muller <muller@sourceware.org>
864
865 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
866 is not executable.
867
f37c4431
JB
8682012-11-05 Joel Brobecker <brobecker@adacore.com>
869
870 * gnulib/update-gnulib.sh: New script.
871
550889c3
JB
8722012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
873
874 * MAINTAINERS: Update my email address.
875
954b50b3
TT
8762012-11-05 Tom Tromey <tromey@redhat.com>
877
878 * frame.c (put_frame_register): Don't use temporary buffer.
879
68c9da30
PA
8802012-11-05 Pedro Alves <palves@redhat.com>
881
882 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
883 child. Clear 'pending_detach'.
884 * infrun.c (handle_vfork_child_exec_or_exit): Clear
885 'pending_detach' in the vfork parent.
886
80626a55
DE
8872012-11-05 Doug Evans <dje@google.com>
888
889 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
890 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
891 * dwarf2read.c: #include "elf-bfd.h".
892 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
893 (dwop_section_names): Renamed from dwo_section names. All uses
894 updated. Add entries for .debug_cu_index, .debug_tu_index.
895 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
896 All uses updated.
897 (struct dwp_sections): New type.
898 (struct virtual_dwo_sections): New type.
899 (struct dwp_hash_table): New type.
900 (struct dwp_file): New type.
901 (init_cutu_and_read_dies): Ensure DWO info/types section has been
902 read in. Handle DWOs coming from DWP files.
903 (lookup_dwo_file_slot): New function.
904 (dwarf2_locate_dwo_sections): Move definition closer to use.
905 (create_dwo_debug_info_hash_table_reader): Renamed from
906 create_debug_info_hash_table_reader. All callers updated.
907 (create_dwo_debug_info_hash_table): Renamed from
908 create_debug_info_hash_table. All callers updated.
909 (create_dwp_hash_table): New function.
910 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
911 (lookup_dwo_in_dwp): New function.
912 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
913 is_dwp. All callers updated.
914 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
915 (open_and_init_dwo_file): Renamed from init_dwo_file.
916 All callers updated.
917 (lookup_dwo_file): Delete.
918 (dwarf2_locate_dwp_sections): New function.
919 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
920 (allocate_dwp_loaded_cutus_table): New function.
921 (open_and_init_dwp_file): New function.
922 (lookup_dwo_cutu): New function.
923 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
924
6f6484cd
YQ
9252012-11-03 Yao Qi <yao@codesourcery.com>
926
927 Fix PR gdb/14617.
928 * breakpoint.c (trace_pass_set_count): Call
929 observer_notify_breakpoint_modified instead of
930 observer_notify_tracepoint_modified.
931 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
932
b45627a0
TT
9332012-11-02 Tom Tromey <tromey@redhat.com>
934
935 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
936 argument to complete_on_enum.
937
d4fb63e1
TT
9382012-11-02 Tom Tromey <tromey@redhat.com>
939
940 * configure: Rebuild.
941 * configure.ac (build_warnings): Add -Wempty-body.
942 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
943 * remote.c (handle_notification): Use braces for empty 'else' body.
944 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
945 'else' body.
946 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
947 'else' body.
948 * solib-som.c (som_relocate_section_addresses): Use braces
949 for empty 'else' body.
950 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
951 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
952
f50f4e56
PA
9532012-11-02 Pedro Alves <palves@redhat.com>
954
955 PR gdb/14766
956
957 * infrun.c (handle_inferior_event)
958 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
959 null_ptid before handling a vfork child exec or exit. Switch to
960 the event ptid afterwards.
961
f0559fff
YQ
9622012-11-02 Yao Qi <yao@codesourcery.com>
963
964 * std-operator.def: Remove OP_LABELED.
965 * eval.c: Remove the declaration of 'get_label'.
966 (get_label): Remove.
967 (evaluate_struct_tuple): Remove code handling OP_LABELED.
968 Update comment.
969 Remove local variable 'variantno' and related code.
970 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
971 with 'fieldno'.
972 * expprint.c (print_subexp_standard): Likewise.
973 (dump_subexp_body_standard): Likewise.
974 * parse.c (operator_length_standard): Likewise.
975
e5496e3e
PM
9762012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
977
978 Incorporate ARI web page generator into GDB sources.
979 * contrib/ari/create-web-ari-in-src.sh: New file.
980 * contrib/ari/gdb_ari.sh: New file.
981 * contrib/ari/gdb_find.sh: New file.
982 * contrib/ari/update-web-ari.sh: New file.
983
c66fb220
TT
9842012-10-31 Tom Tromey <tromey@redhat.com>
985
986 * gdbarch.c: Rebuild.
987 * gdbarch.sh: Remove references to gdbarch_swap.
988 * corelow.c (core_open): Remove obsolete comment.
989
2f27adfe
AB
9902012-10-31 Andrew Burgess <aburgess@broadcom.com>
991
992 PR cli/14772
993 * c-typeprint.c (c_print_type): Don't print a space for vector
994 types, this is handled within the suffix.
995 (c_type_print_varspec_suffix): Add a space to vector suffix.
996
144db827
PA
9972012-10-26 Pedro Alves <palves@redhat.com>
998
999 * amd64-tdep.c (amd64_relocate_instruction): Use
1000 store_unsigned_integer instead of memcpy.
1001 * i386-tdep.c (i386_relocate_instruction): Ditto.
1002
940c3c06
PA
10032012-10-26 Pedro Alves <palves@redhat.com>
1004
1005 * infrun.c (handle_inferior_event): Merge handling of
1006 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1007 switch case.
1008
47b19065
PA
10092012-10-26 Pedro Alves <palves@redhat.com>
1010
1011 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1012 Remove comment.
1013
87d2d2a4
PA
10142012-10-26 Pedro Alves <palves@redhat.com>
1015
1016 * target.c (target_waitstatus_to_string): Handle
1017 TARGET_WAITKIND_VFORK_DONE.
1018
fed708ed
PA
10192012-10-26 Pedro Alves <palves@redhat.com>
1020
1021 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1022 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1023
2590b645
JB
10242012-10-24 Tristan Gingold <gingold@adacore.com>
1025
1026 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1027 Add comments.
1028
bed0c243
JB
10292012-10-24 Joel Brobecker <brobecker@adacore.com>
1030
1031 * ravenscar-thread.c (ravenscar_wait): Only update the list
1032 of threads and inferior_ptid if the inferior is still alive.
1033
f69c91ad
JB
10342012-10-24 Joel Brobecker <brobecker@adacore.com>
1035
1036 * ada-lang.c (is_known_support_routine): Use lbasename when
1037 matching the symtab's filename against
1038 known_runtime_file_name_patterns.
1039
d99dcf51
JB
10402012-10-24 Joel Brobecker <brobecker@adacore.com>
1041
1042 * ada-lang.c (ada_same_array_size_p): New function.
1043 (ada_promote_array_of_integrals): New function.
1044 (coerce_for_assign): Add handling of arrays where the elements
1045 are integrals of a smaller size than the size of the target
1046 array element type.
1047
32560274
JB
10482012-10-24 Joel Brobecker <brobecker@adacore.com>
1049
1050 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1051 against maximum exponent value.
1052
5a04cc98
JB
10532012-10-24 Joel Brobecker <brobecker@adacore.com>
1054
1055 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1056 "unwind-seh.c".
1057
5ded5331
JB
10582012-10-24 Joel Brobecker <brobecker@adacore.com>
1059
1060 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1061 strip typedef layer when computing the fixed type's field type,
1062 only when computing its size.
1063
2445fd7b
MK
10642012-10-24 Mark Kettenis <kettenis@gnu.org>
1065
1066 PR gdb/12783
1067 * i386-tdep.c (i386_return_value): Handle complex double and long
1068 double.
1069
8f205f9c
JB
10702012-10-24 Joel Brobecker <brobecker@adacore.com>
1071
1072 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1073 New local variable args_len.
1074 Quote the name of the executable when computing the command line.
1075
7f7930dd
MK
10762012-10-23 Mark Kettenis <kettenis@gnu.org>
1077
1078 PR gdb/12796
1079 PR gdb/12798
1080 PR gdb/12800
1081 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1082 AMD64_FTAG_REGNUM.
1083 * amd64-tdep.c (amd64_classify): Classify complex types.
1084 (amd64_return_value): Handle the COMPLEX_X87 class.
1085
38a69d0a
JB
10862012-10-23 Joel Brobecker <brobecker@adacore.com>
1087
1088 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1089 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1090
83ab93c6
JB
10912012-10-23 Joel Brobecker <brobecker@adacore.com>
1092
1093 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1094 function.
1095 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1096 to amd64_windows_auto_wide_charset.
1097
f6fbab7d
YQ
10982012-10-23 Yao Qi <yao@codesourcery.com>
1099
1100 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1101 * event-top.h: Remove its declaration.
1102 (async_request_quit): Call mark_async_signal_handler instead of
1103 mark_async_signal_handler_wrapper.
1104 (async_do_nothing, async_disconnect): Likewise.
1105 (async_stop_sig): Likewise.
1106 * remote.c (handle_remote_sigint): Likewise.
1107 (handle_remote_sigint_twice): Likewise.
1108
05fa9251
YQ
11092012-10-23 Yao Qi <yao@codesourcery.com>
1110
1111 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1112 with 'static struct async_signal_handler *'.
1113 (sighup_token, sigquit_token, sigstp_token): Likewise.
1114
08af7a40
AA
11152012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1116
1117 * gdbarch.sh (function_list): Use 'pstring' when printing
1118 a variable which could return NULL.
1119 * gdbarch.c: Regenerate.
1120
beb4b03c
JB
11212012-10-10 Joel Brobecker <brobecker@adacore.com>
1122 Tom Tromey <tromey@redhat.com>
1123
1124 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1125 inneffective if condition by gdb assertion. Add function
1126 description comment.
1127
a5b12627
JB
11282012-10-19 Joel Brobecker <brobecker@adacore.com>
1129
1130 * parser-defs.h (struct exp_descriptor): Document constraint
1131 on return value for "op_name" callbacks.
1132
0b0865da
TT
11332012-10-18 Tom Tromey <tromey@redhat.com>
1134
1135 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1136 * symtab.c (iterate_over_some_symtabs): Constify.
1137 * source.h (symtab_to_fullname): Return 'const char *'.
1138 * source.c (symtab_to_fullname): Return 'const char *'.
1139 * python/py-symtab.c (stpy_fullname): Constify.
1140 * cli/cli-cmds.c (edit_command): Constify.
1141 * breakpoint.c (print_breakpoint_location)
1142 (update_static_tracepoint): Constify.
1143
94b0e70d
TT
11442012-10-18 Tom Tromey <tromey@redhat.com>
1145
1146 * breakpoint.c (compare_breakpoints): Fix comparison.
1147
fff10684
TT
11482012-10-18 Tom Tromey <tromey@redhat.com>
1149
1150 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1151 gdb_wchar_t to convert_between_encodings.
1152
8de0566d
YQ
11532012-10-17 Yao Qi <yao@codesourcery.com>
1154
1155 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1156 more parameter 'inferior'.
1157 * corefile.c (write_memory_with_notification): Caller update.
1158
1159 * mi/mi-cmd-var.c: Include "mi-main.h".
1160 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1161 to 1 and restore it later.
1162 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1163 and "data-write-memory-bytes.
1164 * mi/mi-interp.c: Include objfiles.h.
1165 (mi_interpreter_init): Call observer_attach_memory_changed.
1166 (mi_memory_changed): New.
1167 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1168 New field.
1169
1170 * NEWS: Mention new MI notification "memory-changed".
1171
6235cdd1
JK
11722012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1173
1174 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1175
07540c15
DE
11762012-10-15 Doug Evans <dje@google.com>
1177
1178 New option -nh: inhibit loading of ~/.gdbinit.
1179 * NEWS: Mention -nh.
1180 * main.c (captured_main): Recognize and process -nh.
1181 (print_gdb_help): Mention -nh.
1182 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1183
eab09350
L
11842012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1185
1186 PR backtrace/14646
1187 PR gdb/14647
1188 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1189 pc_regnum_from_eax.
1190 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1191 nor pc_regnum_from_eax.
1192 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1193 nor pc_regnum_from_eax.
1194
9e3a7d65
JK
11952012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1196
1197 Fix entry values resolving in inlined frames.
1198 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1199 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1200 entries of FRAME.
1201
c83393b9
JB
12022012-10-15 Joel Brobecker <brobecker@adacore.com>
1203
1204 * configure.ac: Build with -DMS_WIN64 if building with Python
1205 enabled using GCC on amd64-windows.
1206 * configure: Regenerate.
1207
801e4185
TT
12082012-10-15 Tom Tromey <tromey@redhat.com>
1209
1210 PR python/14635:
1211 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1212 to Py_None.
1213
74f910c8
TT
12142012-10-15 Tom Tromey <tromey@redhat.com>
1215
1216 PR python/14634:
1217 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1218
2a7c8fd5
AB
12192012-10-11 Andrew Burgess <aburgess@broadcom.com>
1220
1221 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1222 reset thread numbering back to 1.
1223
7c09e5a0
DE
12242012-10-11 Doug Evans <dje@google.com>
1225
1226 PR breakpoints/14643.
1227 * linespec.c (struct ls_parser): New member keyword_ok.
1228 (linespec_lexer_lex_string): Add comment.
1229 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1230 for one.
1231 (parse_linespec): Set keyword_ok.
1232
a1855c1d
DE
12332012-10-10 Doug Evans <dje@google.com>
1234
844226d6
DE
1235 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1236 "0x" prefix on address in log message.
1237
a1855c1d
DE
1238 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1239 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1240 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1241 (lookup_dwo_file): Add const to dwo_name parameter.
1242 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1243
2e24f4aa
JK
12442012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1245
1246 Fix crash during stepping on ppc32.
1247 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1248 SYM.
1249
aa14df25
DE
12502012-10-03 Doug Evans <dje@google.com>
1251
1252 PR symtab/14601
1253 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1254
3d468296
AB
12552012-10-02 Andrew Burgess <aburgess@broadcom.com>
1256
1257 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1258 output and use uint32_t not long to ensure 4 byte size.
1259
8f0ee2eb
JB
12602012-10-02 Joel Brobecker <brobecker@adacore.com>
1261
1262 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1263 unref'ed it.
1264
b3dc46ff
AB
12652012-10-01 Andrew Burgess <aburgess@broadcom.com>
1266
1267 * target.c (simple_search_memory): Include access length in
1268 warning message.
1269
f712f01f
EBM
12702012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1271 Edjunior Machado <emachado@linux.vnet.ibm.com>
1272
1273 PR gdb/13989
1274 * solib.c (solib_find): Prevent GDB from loading native libraries when
1275 debugging a cross-target corefile.
1276
39181896
PA
12772012-09-28 selven <pcthegreat@gmail.com>
1278
1279 Make definition match declaration.
1280
1281 * regcache.c (regcache_register_status): Change return type to
1282 enum register_status.
1283
4c2786ba
YQ
12842012-09-28 Yao Qi <yao@codesourcery.com>
1285
1286 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1287 write_memory_with_notification instead of write_memory.
1288 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1289 instead of target_write_memory.
1290
1ae0c35e
YQ
12912012-09-28 Yao Qi <yao@codesourcery.com>
1292
1293 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1294 when the length of content is not an even number.
1295
7977e5d2
TT
12962012-09-27 Tom Tromey <tromey@redhat.com>
1297
1298 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1299 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1300
807160da
JB
13012012-09-27 Joel Brobecker <brobecker@adacore.com>
1302
1303 * sol-thread.c (sol_thread_fetch_registers)
1304 (sol_thread_store_registers): Delete commented out code.
1305
43c75337
JB
13062012-09-27 Joel Brobecker <brobecker@adacore.com>
1307
1308 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1309 Move these functions to sparc-sol-thread.c.
1310 * sparc-sol-thread.c: New file.
1311 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1312 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1313 configurations.
1314 * configure: Regenerate.
1315
d292a972
JB
13162012-09-27 Joel Brobecker <brobecker@adacore.com>
1317
1318 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1319 Remove commented-out code.
1320
8c3da003
JB
13212012-09-27 Joel Brobecker <brobecker@adacore.com>
1322
1323 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1324 Enable this code for sparc hosts only.
1325
f00482b6
JB
13262012-09-27 Joel Brobecker <brobecker@adacore.com>
1327
1328 * procfs.h (procfs_find_LDT_entry): Add declaration.
1329 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1330 function procfs_find_LDT_entry.
1331
337c776f
JB
13322012-09-27 Joel Brobecker <brobecker@adacore.com>
1333
1334 * procfs.c (proc_get_LDT_entry): Make static.
1335
1a04d88f
JB
13362012-09-27 Joel Brobecker <brobecker@adacore.com>
1337
1338 * procfs.c (proc_find_memory_regions): Fix declaration.
1339
bad43aa5
SP
13402012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1341
1342 * amd64-tdep.c (amd64_return_value): Revert previous change
1343 that used TYPE_LENGTH directly.
1344 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1345 (bfin_store_return_value): Likewise.
1346 * cris-tdep.c (cris_store_return_value): Likewise.
1347 (cris_extract_return_value): Likewise.
1348 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1349 * hppa-tdep.c (hppa64_return_value): Likewise.
1350 * lm32-tdep.c (lm32_store_return_value): Likewise.
1351 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1352 * spu-tdep.c (spu_value_from_register): Likewise.
1353 * vax-tdep.c (vax_return_value): Likewise.
1354
63375b74
SP
13552012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1356
1357 * gdbtypes.c (lookup_array_range_type): Expand parameters
1358 LOW_BOUND and HIGH_BOUND to LONGEST.
1359 (lookup_string_range_type): Likewise.
1360 * gdbtypes.h (lookup_array_range_type): Likewise.
1361 (lookup_string_range_type): Likewise.
1362 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1363 Expand HIGHBOUND to ssize_t.
1364 (value_string): Likewise.
1365 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1366 (value_string): Likewise.
1367
19ca11c5
YQ
13682012-09-27 Yao Qi <yao@codesourcery.com>
1369
1370 PR breakpoints/13898
1371 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1372 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1373 per breakpoint type.
1374
92107356
PM
13752012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1376
1377 * procfs.c: Add gdb_bfd header.
1378 * rs6000-nat.c: Likewise.
1379 * solib-pa64.c: Likewise.
1380 * spu-linux-nat.c: Likewise.
1381 * windows-nat.c: Likewise.
1382
9742094a
TT
13832012-09-26 Tom Tromey <tromey@redhat.com>
1384
1385 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1386
0971de02
TT
13872012-09-26 Tom Tromey <tromey@redhat.com>
1388
1389 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1390 (read_common_block): Handle child DIEs with
1391 DW_AT_data_member_location.
1392 (new_symbol_full): Add special case for common blocks.
1393
4357ac6c
TT
13942012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1395 Tom Tromey <tromey@redhat.com>
1396
1397 * dwarf2read.c (read_common_block): Rewrite.
1398 (new_symbol_full): Handle DW_TAG_common_block.
1399 * f-lang.c (head_common_list, find_common_for_function):
1400 Remove.
1401 * f-lang.h (struct common_entry, struct saved_f77_common,
1402 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1403 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1404 BLANK_COMMON_NAME_LOCAL): Remove.
1405 (struct common_block): New.
1406 * f-valprint.c (list_all_visible_commons): Remove.
1407 (info_common_command_for_block): New function.
1408 (info_common_command): Use it.
1409 * stack.c (iterate_over_block_locals): Special case for
1410 COMMON_BLOCK_DOMAIN.
1411 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1412 constant.
1413 (struct general_symbol_info) <value.common_block>: New field.
1414 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1415
965f07a8
TT
14162012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1417 Tom Tromey <tromey@redhat.com>
1418
1419 * f-lang.c (allocate_saved_bf_node,
1420 allocate_saved_function_node, allocate_saved_f77_common_node,
1421 allocate_common_entry_node, tail_common_list, current_common,
1422 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1423 tmp_bf_ptr, add_common_block, add_common_entry,
1424 find_first_common_named, patch_common_entries,
1425 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1426 global_remote_debug, get_bf_for_fcn, saved_function_list,
1427 saved_function_list_end, clear_function_list, struct saved_fcn,
1428 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1429 SAVED_BF, SAVED_BF_PTR): Remove.
1430 * f-lang.h (tail_common_list, current_common,
1431 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1432 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1433 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1434 real_main_c_value): Remove.
1435 * f-valprint.c (there_is_a_visible_common_named): Remove.
1436
6f380991
AB
14372012-09-26 Andrew Burgess <aburgess@broadcom.com>
1438
1439 * breakpoint.c (update_global_location_list): Ignore previous
1440 duplicate status of a breakpoint when starting a new scan for
1441 duplicate breakpoints.
1442
9ead7ae4 14432012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 1444 PR breakpoints/14419
2536b51c
YQ
1445 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1446 support LLVM compiler.
9ead7ae4 1447
8f8a23a2
SP
14482012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1449
1450 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1451 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1452 (bfin_store_return_value): Likewise.
1453 * cris-tdep.c (cris_store_return_value): Likewise.
1454 (cris_extract_return_value): Likewise.
1455 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1456 * hppa-tdep.c (hppa64_return_value): Likewise.
1457 * lm32-tdep.c (lm32_store_return_value): Likewise.
1458 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1459 * spu-tdep.c (spu_value_from_register): Likewise.
1460 * vax-tdep.c (vax_return_value): Likewise.
1461
d7019589
SP
14622012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1463
1464 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1465 parameter LEN to ssize_t.
1466
744a8059
SP
14672012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1468
1469 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1470 variable LEN.
1471 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1472 directly.
1473 (alpha_store_return_value): Likewise.
1474 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1475 (amd64_push_arguments): Likewise.
1476 * ax-gdb.c (gen_trace_static_fields): Likewise.
1477 (gen_traced_pop): Likewise.
1478 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1479 * breakpoint.c (update_watchpoint): Likewise.
1480 * findcmd.c (parse_find_args): Use local variable for type
1481 instead of length.
1482 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1483 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1484 (h8300_store_return_value): Likewise.
1485 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1486 Use i386_darwin_arg_type_alignment directly.
1487 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1488 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1489 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1490 (m68hc11_extract_return_value): Likewise.
1491 * mep-tdep.c (mep_push_dummy_call): Likewise.
1492 * printcmd.c (float_type_from_length): Likewise.
1493 * s390-tdep.c (s390_value_from_register): Likewise.
1494 * stack.c (read_frame_arg): Likewise.
1495 * tracepoint.c (encode_actions_1): Likewise.
1496 * valops.c (value_fetch_lazy): Use local variable for type
1497 instead of length. Use TYPE_LENGTH directly.
1498 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1499
a4b411d6
JB
15002012-09-25 Joel Brobecker <brobecker@adacore.com>
1501
1502 * symtab.c (skip_prologue_sal): Fix typo in comment.
1503
11dba07a
JB
15042012-09-25 Joel Brobecker <brobecker@adacore.com>
1505
1506 * linespec.c (create_sals_line_offset): Fix typo in comment.
1507
318102b9
SP
15082012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1509
1510 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1511 use plongest to print the array size.
1512
b4aa388a
SP
15132012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1514
1515 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1516 * p-valprint.c (pascal_type_print_base): Likewise.
1517
84cebc4a
YQ
15182012-09-22 Yao Qi <yao@codesourcery.com>
1519
1520 * remote.c (remote_get_trace_status): Remove setting default
1521 values of fields of 'ts'.
1522
04e7407c
JK
15232012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1524
1525 Fix internal error on canonicalization of clang types.
1526 * cp-name-parser.y (operator): New comment at make_operator call for
1527 new, delete, new[] and delete[].
1528 (exp): Use "sizeof ". Add new comment at make_operator call.
1529
9bf4bce9
JK
15302012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1531
1532 Fix disassemble without parameters in tailcall frame.
1533 * cli/cli-cmds.c (disassemble_current_function): Use
1534 get_frame_address_in_block.
1535
1c5b7826
TT
15362012-09-21 Tom Tromey <tromey@redhat.com>
1537
1538 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1539 TYPE_CODE_UNION>: Unify, removing a goto.
1540
62a49610
TT
15412012-09-21 Tom Tromey <tromey@redhat.com>
1542
1543 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1544
2603f7ee
AB
15452012-09-21 Andrew Burgess <aburgess@broadcom.com>
1546
1547 * findvar.c (read_frame_register_value): Mark the result value as
1548 optimized out if any of the input registers have been optimized out.
1549
810849a3
AS
15502012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1551
1552 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1553
0953dec1
SP
15542012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1555
1556 * eval.c (evaluate_subexp_standard): Eliminate single-use
1557 variable LOWER.
1558
82a90ccf
YQ
15592012-09-21 Yao Qi <yao@codesourcery.com>
1560
1561 * mi/mi-interp.c: Declare mi_record_changed.
1562 (mi_interpreter_init): Call observer_attach_record_changed.
1563 (mi_record_changed): New.
1564 * record.c (record_open): Call observer_notify_record_changed.
1565 (cmd_record_stop): Call observer_notify_record_changed.
1566 * NEWS: Mention it.
1567
d7de8e3c
TT
15682012-09-20 Tom Tromey <tromey@redhat.com>
1569
1570 * NEWS: Update.
1571 * python/python.c (finalize_python): New function.
1572 (_initialize_python): Make a final cleanup.
1573
43c7c83d
DE
15742012-09-19 Doug Evans <dje@google.com>
1575
1576 * buildsym.h (param_symbols): Delete, unused.
1577 (context_stack): Delete member "params", unused.
1578 * buildsym.c (push_context): Update.
1579 * dwarf2read.c (read_func_scope): Update.
1580
aa9259cc
TS
15812012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1582
a6521d9a
TS
1583 * sh-tdep.c (sh_register_convert_to_virtual)
1584 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1585 all callers. Just do a memcpy if not the little-endian case.
1586
f92589cb
TS
1587 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1588 set_gdbarch_double_format and set_gdbarch_long_double_format.
1589 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1590 set_gdbarch_double_format.
1591 * sh-tdep.c (sh_gdbarch_init): Likewise.
1592
aa9259cc
TS
1593 * NEWS: Document the removal of SH's 'regs' command.
1594 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1595 command.
1596
c1d780c2
SDJ
15972012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1598
1599 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1600 `jump'.
1601
4ae24af0
JB
16022012-09-18 Joel Brobecker <brobecker@adacore.com>
1603
1604 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1605 language when iterating over symbols.
1606
bb25a15c
YQ
16072012-09-18 Yao Qi <yao@codesourcery.com>
1608
1609 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1610 (mi_interpreter_init): Call observer_attach_tsv_created and
1611 observer_attach_tsv_deleted.
1612 (mi_tsv_created, mi_tsv_deleted): New.
1613 * tracepoint.c (delete_trace_state_variable): Call
1614 observer_notify_tsv_deleted.
1615 (trace_variable_command): Call observer_notify_tsv_created.
1616 (delete_trace_variable_command): Call
1617 observer_notify_tsv_deleted.
1618 (create_tsv_from_upload): Call observer_notify_tsv_created.
1619 * NEWS: Mention it.
1620
201b4506
YQ
16212012-09-18 Yao Qi <yao@codesourcery.com>
1622
1623 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1624 if traceframe changed.
1625 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1626 "trace-find".
1627 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1628 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1629 'traceframe_changed'.
1630 (mi_traceframe_changed): New.
1631 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1632 New field.
1633 * NEWS: Mention the new MI notification.
1634
eaeb12db
MW
16352012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1636
1637 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1638
6e3c039e
JK
16392012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1640
1641 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1642 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1643 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1644 Extend code also for PaX support. Convert all gdb_assert to warning
1645 calls.
1646
9a950c7c
JK
16472012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1648
1649 Implement auto-load user conveniences suggested by Doug Evans.
1650 * auto-load.c: Include top.h.
1651 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1652 (_initialize_auto_load): New variable scripts_directory_help. Mention
1653 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1654 scripts-directory. Document in online help one can use also files for
1655 set auto-load safe-path.
1656 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1657 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1658
deec9a9d
SP
16592012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1660
1661 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1662 of LEN.
1663
354ecfd5
SP
16642012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1665
1666 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1667 ELTLEN and use TYPE_LENGTH directly.
1668 (m2_val_print): Likewise.
1669 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1670 variable LEN and use TYPE_LENGTH directly.
1671 (m68k_svr4_store_return_value): Likewise.
1672 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1673 ARGLEN and use TYPE_LENGTH directly.
1674 (mips_o64_push_dummy_call): Likewise.
1675 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1676 variable LENGTH and use TYPE_LENGTH directly.
1677 (s390_function_arg_float): Likewise.
1678 (s390_function_arg_integer): Likewise.
1679 (s390_push_dummy_call): Likewise.
1680 (s390_return_value_convention): Likewise.
1681 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1682 TYPE_LENGTH directly.
1683
6fc1c773
YQ
16842012-09-17 Yao Qi <yao@codesourcery.com>
1685
1686 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1687 Update comment to add_setshow_integer_cmd.
1688 * cli/cli-setshow.c (do_set_command): Handle case
1689 'var_zuinteger_unlimited'.
1690 (do_show_command): Likewise.
1691 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1692 for command 'remotetimeout'.
1693 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1694 to var_integer.
1695 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1696 for command 'set listsize'.
1697
6acef6cd
SP
16982012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1699
1700 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1701 variable LEN.
1702
1ab3b62c
JK
17032012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1704
1705 PR 14119
1706 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1707 (frame_pop): Drop also TAILCALL_FRAME frames.
1708 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1709
acf9414f
JK
17102012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1711 Pedro Alves <palves@redhat.com>
1712
1713 PR 14548
1714 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1715 function start if we are already at function start. Both for
1716 reverse-next and for reverse-step into function without line number
1717 info.
1718
193facb3
JK
17192012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1720
1721 Code cleanup - rename 'inline' depth to 'artificial' depth.
1722 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1723 frame_id_artificial_p, extend the comment.
1724 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1725 * frame.c (fprint_frame_id): Rename at a user, change debug output
1726 text to "artificial=".
1727 (skip_inlined_frames): Rename to ...
1728 (skip_artificial_frames): ... here. Extend the comment.
1729 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1730 (frame_id_inlined_p): Rename to ...
1731 (frame_id_artificial_p): ... here. Rename at a user.
1732 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1733 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1734 at a user.
1735 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1736 Extend the comment.
1737 (frame_id_inlined_p): Rename to ...
1738 (frame_id_artificial_p): ... here.
1739 * inline-frame.c (inline_frame_this_id): Rename at a user.
1740
42056501
AB
17412012-09-14 Andrew Burgess <aburgess@broadcom.com>
1742
1743 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1744 vector variables using vector_size syntax rather than array
1745 syntax.
1746
84c47588
SP
17472012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1748
1749 * valarith.c (value_concat): Replace unsafe ALLOCA with
1750 XMALLOC/XFREE.
1751
f4045bcb
PA
17522012-09-14 Pedro Alves <palves@redhat.com>
1753
1754 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1755
63b46266
YPK
17562012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1757
1758 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1759 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1760 data-directory as appropriate.
1761
ddd7a8e7
SP
17622012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1763
1764 * printcmd.c (ui_printf): Eliminate single-use variable
1765 PARAM_LEN.
1766
d649a38e
YQ
17672012-09-14 Yao Qi <yao@codesourcery.com>
1768 Pedro Alves <palves@redhat.com>
1769
1770 * valops.c (value_assign): Move observer_notify_target_changed
1771 below to replace reinit_frame_cache.
1772
b9516fa1
YPK
17732012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1774
1775 Refactor Python "gdb" module into a proper Python package, by
1776 introducing a new "_gdb" module for code implemented in C, and
1777 using reload/__import__ instead of exec.
1778 * python/lib/gdb/__init__.py: Import * from _gdb.
1779 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1780 prompt_hook, sys.argv): Moved from finish_python_initialization.
1781 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1782 (packages, auto_load_packages): New list and function replacing
1783 module_dict and auto-loading code, using __file__ instead of
1784 gdb.PYTHONDIR and reload/__import__ instead of exec.
1785 (GdbSetPythonDirectory): Replacing function of the same name
1786 from finish_python_initialization, using reload/__import__ instead
1787 of exec, as well as call auto_load_packages.
1788 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1789 gdb_python_module and not gdb_module.
1790 * python/python-internal.h (gdb_python_module): Declare.
1791 * python/python.c (gdb_python_module): New global.
1792 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1793 (_initialize_python): Rename gdb module to _gdb.
1794 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1795 (finish_python_initialization): Move Python code to
1796 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1797 __main__.
1798
aa0fbdd8
PA
17992012-09-13 Pedro Alves <palves@redhat.com>
1800
1801 * Makefile.in (COMMON_OBS): Add registry.o.
1802 * registry.c: New file.
1803 * registry.h (struct registry_container): Declare.
1804 (registry_data_callback): New typedef.
1805 (struct registry_data, struct registry_data_registration, struct
1806 registry_data_registry): New type.
1807 (register_data_with_cleanup, registry_alloc_data)
1808 (registry_callback_adaptor, registry_clear_data)
1809 (registry_container_free_data, registry_set_data, registry_data):
1810 Declare.
1811 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1812 the new common structures and functions.
1813 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1814 callback typedefs.
1815
42b5c53d
MW
18162012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1817
1818 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1819 there is an error inserting hardware breakpoints and use the
1820 error message from the target.
1821
1822 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1823 Catch this exception and print the error message contained within. Do not
1824 print the default hardware error breakpoint message in this case.
1825
a1b64ce1
DE
18262012-09-12 Doug Evans <dje@google.com>
1827
1828 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1829 cu == NULL.
1830
83a788b8
DE
18312012-09-11 Doug Evans <dje@google.com>
1832
1833 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1834 .gdb_index symbol attributes if there are none.
1835
d9eaeb59
JB
18362012-09-11 Joel Brobecker <brobecker@adacore.com>
1837
1838 * symtab.h (struct minimal_symbol) [has_size]: New field.
1839 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1840 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1841 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1842 minimal symbols if the symbol's size is actually known.
1843 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1844 of msymbol's size field. Add comment.
1845 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1846 SET_MSYMBOL_SIZE to set the minimal symbol size.
1847
a83e9154
JB
18482012-09-11 Joel Brobecker <brobecker@adacore.com>
1849
1850 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1851 minimal_symbol struct object, rather than setting some of its
1852 fields one by one.
1853
350b1b26
AB
18542012-09-11 Andrew Burgess <aburgess@broadcom.com>
1855
1856 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1857 passed_a_ptr flag when displaying typedef types.
1858
2fa15f23
JB
18592012-09-10 Joel Brobecker <brobecker@adacore.com>
1860
1861 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1862 the optimized_out flag is preserved.
1863
5152ff90
AG
18642012-09-10 Anthony Green <green@moxielogic.com>
1865
1866 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1867 prologue changes in GCC.
1868
5b4f6e25
KS
18692012-09-10 Keith Seitz <keiths@redhat.com>
1870
1871 PR gdb/13483
1872 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1873 (BOOL_CONVERSION_BADNESS): ... this.
1874 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1875 (rank_one_type): Allow all boolean conversions
1876 permitted by the standard.
1877
f1070426
TT
18782012-09-06 Tom Tromey <tromey@redhat.com>
1879
1880 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1881 Don't decref py_objfile.
1882
a8db4212
YPK
18832012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1884
1885 Do not enable -lmcheck by default when Python is enabled with
1886 threading support.
1887 * configure.ac: (python_has_threads) New variable, by testing
1888 if WITH_THREAD is defined in Python.h.
1889 Move --enable-lmcheck after --with-python.
1890 Do not enable -lmcheck by default if python_has_threads=yes.
1891 Warn if --enable-lmcheck and python_has_threads=yes.
1892 * configure: Regenerate.
1893
648beb2b
YQ
18942012-08-31 Yao Qi <yao@codesourcery.com>
1895
1896 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
1897 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
1898 Update some commands.
1899 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
1900 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
1901 to 1.
1902
ef07a9f7
YQ
19032012-08-31 Yao Qi <yao@codesourcery.com>
1904
1905 * mi/mi-cmds.c (mi_cmds): Add 'static'.
1906
fda395cf
YPK
19072012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
1908
1909 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
1910
8efd8e78
DE
19112012-08-29 Doug Evans <dje@google.com>
1912
1913 * main.c (print_gdb_help): Remove reference to
1914 --use-deprecated-index-sections.
1915
883b9c6c
YQ
19162012-08-28 Yao Qi <yao@codesourcery.com>
1917
1918 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
1919 (init_cmds): Call add_setshow_uinteger_cmd for command
1920 'max-user-call-depth'.
1921 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
1922 declaration of 'max_user_call_depth'.
1923 * frame.c (backtrace_limit): Add 'unsigned'.
1924 (_initialize_frame): Call add_setshow_uinteger_cmd for command
1925 'limit'.
1926 * remote.c (remoteaddresssize): Add 'unsigned'.
1927 (remote_address_masked): Change local var 'address_size' to
1928 'unsigned'.
1929 (_initialize_remote): Call add_setshow_uinteger_cmd for
1930 'remoteaddresssize'.
1931 * top.c (history_size): Add 'unsigned'.
1932 (show_commands): Change local variables to 'unsigned'.
1933 (set_history_size_command): Don't check history_size is negative.
1934 Adjust the condition to call unstifle_history and set history_size
1935 to UNIT_MAX.
1936
1292279a
PA
19372012-08-28 Pedro Alves <palves@redhat.com>
1938
1939 PR gdb/14428
1940
1941 * infcmd.c (default_print_one_register_info): New, factored out
1942 from default_print_registers_info.
1943 (default_print_registers_info): Use it. Mark value unavailable if
1944 necessary.
1945 (registers_info): Print user registers with
1946 default_print_one_register_info.
1947
f629cd75
L
19482010-08-27 H.J. Lu <hongjiu.lu@intel.com>
1949
1950 PR tui/14486
1951 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
1952 is not NULL before referencing it.
1953
1c8cdcb1
JK
19542012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1955
1956 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
1957 variable pc. Call find_pc_line instead of find_pc_overlay, restore
1958 original PC for it.
1959
e9687799
JK
19602012-08-27 Eli Zaretskii <eliz@gnu.org>
1961 Jan Kratochvil <jan.kratochvil@redhat.com>
1962
1963 * auto-load.c (auto_load_objfile_script): Rename to ...
1964 (auto_load_objfile_script_1): ... here, change variable realname to
1965 parameter realname, document it, add return value, add variable retval.
1966 (auto_load_objfile_script): New function.
1967
7afa1642
JK
19682012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1969
1970 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
1971 followed by a whitespace.
1972
dc7650b8
JK
19732012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
1974
28e66c70 1975 PR gdb/14494.
dc7650b8
JK
1976 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
1977 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
1978 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
1979 here.
1980
1591a1e8
PA
19812012-08-27 Wei-cheng Wang <cole945@gmail.com>
1982
1983 * memattr.c (create_mem_region): Fix memory region overlapping
1984 checking.
1985
ecfb0d68
SP
19862012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1987
1988 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
1989 with xmalloc/cleanup.
1990 * mt-tdep.c (mt_push_dummy_call): Likewise.
1991 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
1992 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
1993
8c56c1b9
YQ
19942012-08-24 Yao Qi <yao@codesourcery.com>
1995
1996 * jv-exp.y (push_expression_name): Add "." at the end of error
1997 message.
1998
e3480f4a
YPK
19992012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2000
2001 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
2002 * python/python.c (_initialize_python): Update documentation.
2003
dfbd5e7b
PA
20042012-08-23 Pedro Alves <palves@redhat.com>
2005
2006 * infrun.c (_initialize_infrun) <handle command help text>:
2007 Mention that multiple signals are supported.
2008
2edda2ff
PA
20092012-08-23 Pedro Alves <palves@redhat.com>
2010
2011 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2012 string.
2013
8d735b87
YQ
20142012-08-23 Yao Qi <yao@codesourcery.com>
2015
2016 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2017 (tfind_1): Don't call registers_changed, set_traceframe_num,
2018 and clear_traceframe_info.
2019 Call set_current_traceframe.
2020 (set_current_traceframe): call set_traceframe_num.
2021
c5d9b215
SDJ
20222012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2023
2024 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2025 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2026
037bbc8e
YPK
20272012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2028
2029 Enable readline in Python in a GDB-specific way and block the
2030 standard Python readline module to prevent conflicts with GDB.
2031 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2032 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2033 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2034 * python/py-gdb-readline.c: New file.
2035 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2036 prototype.
2037 * python/python.c (_initialize_python): Call
2038 gdbpy_initialize_gdb_readline.
2039
406b1477
KS
20402012-08-22 Keith Seitz <keiths@redhat.com>
2041
2042 * defs.h: Include build-gnulib/config.h
2043
6ca1b147
JM
20442012-08-22 Joseph Myers <joseph@codesourcery.com>
2045
2046 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2047 and blx pc.
2048
8315665e
YPK
20492012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2050
2051 Add a new "python-interactive" command that starts a standard
2052 Python interactive prompt with "pi" as alias, and add "py" as
2053 an alias to "python".
2054 * NEWS: Mention the new commands.
8315665e
YPK
2055 * python/python.c (eval_python_command): New function.
2056 (python_interactive_command): For "python-interactive" with
2057 arguments, call eval_python_command. For "python-interactive"
2058 without arguments, call PyRun_InteractiveLoop.
2059 (_initialize_python): Add "python-interactive" command with
2060 "pi" as alias, and add "py" as an alias to "python".
2061
522002f9
TT
20622012-08-22 Tom Tromey <tromey@redhat.com>
2063
2064 * defs.h (quit_flag): Don't declare.
2065 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2066 (QUIT): Use new functions.
2067 * event-top.c (command_handler): Use clear_quit_flag.
2068 (handle_sigint): Use set_quit_flag.
2069 (async_request_quit): Use check_quit_flag. Don't check
2070 immediate_quit.
2071 * exceptions.c (throw_exception): Use clear_quit_flag.
2072 * main.c (captured_main): Use clear_quit_flag.
2073 * python/python.c (clear_quit_flag, set_quit_flag)
2074 (check_quit_flag): New functions.
2075 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2076 clear_quit_flag.
2077 * remote.c (remote_wait_as): Use check_quit_flag,
2078 clear_quit_flag.
2079 (remote_start_remote): Call QUIT.
2080 * symfile.c (load_progress): Use check_quit_flag.
2081 * top.c (command_loop): Use clear_quit_flag.
2082 (command_line_input): Call QUIT.
2083 * utils.c (quit_flag): Conditionally define.
2084 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2085 functions.
2086 (prompt_for_continue): Call QUIT. Use quit, not
2087 async_request_quit.
2088 * remote-mips.c (mips_expect_timeout): Call QUIT.
2089 * monitor.c (monitor_expect): Call QUIT.
2090
b583003e
TT
20912012-08-22 Tom Tromey <tromey@redhat.com>
2092
2093 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2094 (async_init_signals): Update.
2095 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2096 (SIGWINCH_HANDLER_BODY): Remove.
2097
e1507e95
TT
20982012-08-22 Tom Tromey <tromey@redhat.com>
2099
2100 * jit.c (jit_object_close_impl): Don't malloc the objfile
2101 name.
2102 * objfiles.c (allocate_objfile): Don't malloc the objfile
2103 name.
2104 (free_objfile): Don't free the objfile name.
2105 * objfiles.h (struct objfile) <name>: Update comment.
2106 * symfile.c (reread_symbols): Fix reference counting. Don't
2107 malloc objfile name.
2108
1c00ec6b
TT
21092012-08-22 Tom Tromey <tromey@redhat.com>
2110
2111 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2112 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2113 (symfile_bfd_open): Likewise.
2114 (generic_load): Likewise.
2115 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2116 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2117 gdb_bfd_open.
2118 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2119 Use gdb_bfd_open.
2120 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2121 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2122 (pmon_load_fast): Likewise.
2123 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2124 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2125 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2126 (macho_check_dsym): Likewise.
2127 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2128 (m32r_upload_command): Likewise.
2129 * gdb_bfd.h (gdb_bfd_cache): Declare.
2130 * gdb_bfd.c (struct gdb_bfd_data): New.
2131 (gdb_bfd_cache): New global.
2132 (struct gdb_bfd_cache_search): New.
2133 (hash_bfd): New function.
2134 (eq_bfd): Likewise.
2135 (gdb_bfd_open): Likewise.
2136 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2137 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2138 gdb_bfd_data.
2139 * exec.c (exec_file_attach): Use gdb_bfd_open.
2140 * dsrec.c (load_srec): Use gdb_bfd_open.
2141
6532ff36
TT
21422012-08-22 Tom Tromey <tromey@redhat.com>
2143
2144 * dwarf2read.c (macro_start_file): Update.
2145 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2146 (free_objfile_per_bfd_storage): Destroy macro_cache.
2147 (allocate_objfile, free_objfile): Update.
2148 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2149 New field.
2150 (struct objfile) <macro_cache>: Remove.
2151 * symfile.c (reread_symbols): Update.
2152 * symmisc.c (print_symbol_bcache_statistics): Update.
2153 (print_objfile_statistics): Update.
2154
706e3705
TT
21552012-08-22 Tom Tromey <tromey@redhat.com>
2156
2157 * elfread.c (elf_symtab_read): Update.
2158 * objfiles.c (objfiles_bfd_data): New global.
2159 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2160 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2161 (allocate_objfile, free_objfile): Update.
2162 (_initialize_objfiles): Initialize objfiles_bfd_data.
2163 * objfiles.h (struct objfile_per_bfd_storage): New.
2164 (struct objfile) <per_bfd>: New field.
2165 <filename_cache>: Remove.
2166 (set_objfile_per_bfd): Declare.
2167 * symfile.c (reread_symbols): Update. Call
2168 set_objfile_per_bfd.
2169 (allocate_symtab): Update.
2170 * symmisc.c (print_symbol_bcache_statistics): Update.
2171 (print_objfile_statistics): Print the size of the BFD obstack.
2172
e992eda4
TT
21732012-08-22 Tom Tromey <tromey@redhat.com>
2174
2175 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2176 * gdb_bfd.c: Use DEFINE_REGISTRY.
2177 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2178 (gdb_bfd_ref): Call bfd_alloc_data.
2179 (gdb_bfd_unref): Call bfd_free_data.
2180
6b81941e
TT
21812012-08-22 Tom Tromey <tromey@redhat.com>
2182
2183 * registry.h (struct registry_fields): New.
2184 (REGISTRY_FIELDS): Redefine.
2185 (REGISTRY_ACCESS_FIELD): New macro.
2186 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2187 functions.
2188
8e260fc0
TT
21892012-08-22 Tom Tromey <tromey@redhat.com>
2190
2191 * auto-load.c (_initialize_auto_load): Update.
2192 * solib-svr4.c (_initialize_svr4_solib): Update
2193 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2194 * solib-darwin.c (_initialize_darwin_solib): Update.
2195 * registry.h: New file.
2196 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2197 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2198 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2199 (register_program_space_data_with_cleanup)
2200 (register_program_space_data, program_space_alloc_data)
2201 (clear_program_space_data, set_program_space_data)
2202 (program_space_data): Don't declare.
2203 * progspace.c: Use DEFINE_REGISTRY.
2204 (struct program_space_data, struct
2205 program_space_data_registration, struct
2206 program_space_data_registry, program_space_data_registry)
2207 (register_program_space_data_with_cleanup)
2208 (register_program_space_data, program_space_alloc_data)
2209 (program_space_free_data, clear_program_space_data)
2210 (set_program_space_data, program_space_data): Remove.
2211 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2212 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2213 (register_objfile_data_with_cleanup, register_objfile_data)
2214 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2215 declare.
2216 * objfiles.c: Use DEFINE_REGISTRY.
2217 (struct objfile_data, struct objfile_data_registration, struct
2218 objfile_data_registry, objfile_data_registry)
2219 (register_objfile_data_with_cleanup, register_objfile_data)
2220 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2221 (set_objfile_data, objfile_data): Remove.
2222 (_initialize_objfiles): Update.
2223 * jit.c (_initialize_jit): Update.
2224 * inflow.c (_initialize_inflow): Update.
2225 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2226 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2227 (register_inferior_data_with_cleanup, register_inferior_data)
2228 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2229 declare.
2230 * inferior.c: Use DEFINE_REGISTRY.
2231 (struct inferior_data, struct inferior_data_registration, struct
2232 inferior_data_registry, inferior_data_registry)
2233 (register_inferior_data_with_cleanup, register_inferior_data)
2234 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2235 (set_inferior_data, inferior_data): Remove.
2236 * auxv.c (_initialize_auxv): Update.
2237 * ada-lang.c (_initialize_ada_language): Update.
2238 * breakpoint.c (_initialize_breakpoint): Update.
2239 * i386-nat.c (i386_use_watchpoints): Update.
2240
ed9eebaf
TT
22412012-08-22 Tom Tromey <tromey@redhat.com>
2242
2243 * exec.c (exec_close, exec_file_attach): Update.
2244 (add_to_section_table): Initialize 'key' field.
2245 (add_target_sections, remove_target_sections): Add 'key' argument.
2246 * exec.h (add_target_sections, remove_target_sections): Add
2247 'key' argument.
2248 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2249 (reload_shared_libraries_1): Update.
2250 * target.h (struct target_section) <key>: New field.
2251
2f2e97fa
TT
22522012-08-22 Tom Tromey <tromey@redhat.com>
2253
2254 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2255
b3dbbd6f
PM
22562012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2257
2258 * symfile.c (allocate_symtab): Use host_address_to_string
2259 function instead of cast of pointer to long which is not
2260 compatible with x86_64-w64-mingw32 build.
2261
f94363d7
AP
22622012-08-19 Andrew Pinski <apinski@cavium.com>
2263
2264 * mips-tdep.c (is_octeon): New function.
2265 (is_octeon_bbit_op): New function.
2266 (mips32_next_pc): Handle Octeon's bbit instructions.
2267 (mips32_instruction_has_delay_slot): Likewise.
2268
78a59c2f
AP
22692012-08-19 Andrew Pinski <apinski@cavium.com>
2270
2271 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2272 before the function.
2273
4f5bcb50
AP
22742012-08-19 Andrew Pinski <apinski@cavium.com>
2275
2276 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2277
e5afdbd7
KS
22782012-08-19 Keith Seitz <keiths@redhat.com>
2279
2280 PR c++/14365
2281 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2282 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2283
13c9750e
EZ
22842012-08-18 Eli Zaretskii <eliz@gnu.org>
2285
2286 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2287 The typo broke "make TAGS".
2288
db761810 22892012-08-17 Joel Brobecker <brobecker@adacore.com>
2290
2291 GDB 7.5 released.
2292
a451cb65
KS
22932012-08-17 Keith Seitz <keiths@redhat.com>
2294
2295 PR c++/13356
2296 * gdbtypes.c (strict_type_checking): New variable.
2297 (show_strict_type_checking): New function.
2298 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2299 if strict type checking is disabled.
2300 (_initialize_gdbtypes): Add "check type" subcommand.
2301 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2302
23032012-08-17 Keith Seitz <keiths@redhat.com>
2304
2305 * language.h (type_mode): Remove.
2306 (type_check): Remove.
2307 (struct language_defn): Remove la_type_check.
2308 (STRICT_TYPE): Remove unused macro.
2309 (type_error): Remove.
2310 * language.c (set_type_range_case): Renamed to ...
2311 (set_range_case): ... this. Update all callers.
2312 Remove type_mode/type_check.
2313 (type_mode): Remove.
2314 (type_check): Remove.
2315 (show_type_command): Remove.
2316 (set_type_command): Remove.
2317 (language_info): Remove type checking output.
2318 (type_error): Remove unused function.
2319 (range_error): Update comment.
2320 (unknown_language_defn): Remove la_type_check.
2321 (auto_language_defn): Likewise.
2322 (local_language_defn): Likewise.
2323 (_initialize_language): Remove "check type" subcommand.
2324 * ada-lang.c (ada_language_defn): Remove la_type_check.
2325 * c-lang.c (c_language_defn): Likewise.
2326 (cplus_language_defn): Likewise.
2327 (asm_language_defn): Likewise.
2328 (minimal_language_defn): Likewise.
2329 * d-lang.c (d_language_defn): Likewise.
2330 * f-lang.c (f_language_defn): Likewise.
2331 * go-lang.c (go_language_defn): Likewise.
2332 * jv-lang.c (java_language_defn): Likewise.
2333 * m2-lang.c (m2_language_defn): Likewise.
2334 * objc-lang.c (objc_language_defn): Likewise.
2335 * opencl-lang.c (opencl_language_defn): Likewise.
2336 * p-lang.c (pascal_language_defn): Likewise.
2337
dbf6a605
MF
23382012-08-16 Mike Frysinger <vapier@gentoo.org>
2339
2340 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2341
973e3cf7
JB
23422012-08-16 Joel Brobecker <brobecker@adacore.com>
2343
2344 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2345 New function.
2346 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2347 using the regache. Use ia64_hpux_get_register_from_save_state_t
2348 to access the bsp and bspstore registers if not.
2349
d80ee84f
JB
23502012-08-16 Joel Brobecker <brobecker@adacore.com>
2351
2352 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2353 * breakpoint.c (detach_breakpoints): Change pid parameter into
2354 a ptid. Adjust code accordingly.
2355 * infrun.c (handle_inferior_event): Delete variable child_pid.
2356 Update call to detach_breakpoints to pass the child ptid for
2357 fork events.
2358 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2359 assert that inferior_ptid's lwp is zero.
2360 (linux_handle_extended_wait): Update call to detach_breakpoints.
2361 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2362 detach_breakpoints.
2363
2dcc6086
JB
23642012-08-16 Joel Brobecker <brobecker@adacore.com>
2365
2366 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2367 parent, only call detach_breakpoints if tts.tts_event ==
2368 TTEVT_VFORK.
2369
0c92d8c1
JB
23702012-08-16 Joel Brobecker <brobecker@adacore.com>
2371
2372 * dwarf2-frame.c (dwarf2_frame_cache): Use
2373 get_frame_address_in_block instead of get_frame_pc as
2374 the bound for executing the frame's FDE.
2375
6b1755ce
YQ
23762012-08-16 Yao Qi <yao@codesourcery.com>
2377
2378 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2379 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2380 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2381 (c_type_print_varspec_suffix): Likewise.
2382 * eval.c (evaluate_subexp_standard): Likewise.
2383 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2384 (f_type_print_varspec_suffix): Likewise.
2385 * gdbtypes.c (is_scalar_type): Likewise.
2386 (recursive_dump_type): Likewise.
2387 * infcall.c (value_arg_coerce): Likewise.
2388 * m2-valprint.c (m2_val_print): Likewise.
2389 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2390 (pascal_type_print_varspec_suffix): Likewise.
2391 (pascal_type_print_base): Likewise.
2392 * p-valprint.c (pascal_val_print): Likewise.
2393 (pascal_val_print): Likewise.
2394 * valops.c (value_slice): Likewise.
2395 * valprint.c (scalar_type_p): Likewise.
2396 * valarith.c (value_bitstring_subscript): Remove.
2397 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2398 Remove comment on TYPE_CODE_BITSTRING.
2399
2400 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2401 TYPE_CODE_BITSTRING.
2402
2403 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2404 slot 0.
2405
8acc4065
YQ
24062012-08-16 Yao Qi <yao@codesourcery.com>
2407
2408 * tracepoint.c (trace_find_none_command): Remove.
2409 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2410
8128fd8e
YQ
24112012-08-16 Yao Qi <yao@codesourcery.com>
2412
2413 * remote.c (handle_notification): Remove parameter 'length'.
2414 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2415
2873700e
KS
24162012-08-15 Keith Seitz <keiths@redhat.com>
2417
2418 * gdbtypes.c (opaque_type_resolution): Make static.
2419 Add missing comment.
2420 (overload_debug): Add missing comment.
2421 (show_opaque_type_resolution): Likewise.
2422 (show_overload_debug): Likewise.
2423 (print_bit_vector): Remove unnecessary forward declaration.
2424 (print_arg_types): Likewise.
2425 (dump_fn_fieldlists): Likewise.
2426 (print_cplus_stuff): Likewise.
2427
b82d08cd
TT
24282012-08-15 Tom Tromey <tromey@redhat.com>
2429
2430 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2431 (gdb_bfd_ref): Initialize new field.
2432 (gdb_bfd_unref): Unref the archive BFD.
2433 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2434 parent archive.
2435
db6573d6
TT
24362012-08-15 Tom Tromey <tromey@redhat.com>
2437
2438 PR python/14387:
2439 * python/py-bpevent.c (create_breakpoint_event_object): Update
2440 comment.
2441 * python/py-event.c (evpy_add_attribute): Update comment.
2442 * python/py-exitedevent.c (create_exited_event_object): Fix
2443 reference counting and error handling.
2444 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2445 Fix reference counting.
2446 * python/py-signalevent.c (create_signal_event_object): Fix
2447 reference counting and error handling.
2448 * python/py-stopevent.c (emit_stop_event): Fix reference
2449 counting.
2450 * python/py-threadevent.c (get_event_thread): Return a
2451 borrowed reference.
2452 * python/py-type.c (convert_field): Fix reference counting.
2453
a036ba48
TT
24542012-08-15 Tom Tromey <tromey@redhat.com>
2455
2456 * dwarf2read.c (dwarf_decode_macro_bytes)
2457 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2458 as hash key.
2459
486c7739
MF
24602012-08-14 Mike Frysinger <vapier@gentoo.org>
2461
2462 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2463 stepi, nexti, finish, next, step, jump, and continue commands.
2464 * infrun.c (_initialize_infrun): Update help text for the handle
2465 command.
2466
4cf93a03
DE
24672012-08-14 Doug Evans <dje@google.com>
2468
70b099cf
DE
2469 * gdbtypes.c (struct extra): Delete, unused.
2470
5212577a
DE
2471 * gdbtypes.c: Whitespace cleanup.
2472 (address_space_name_to_int): Remove "extern" from definition.
2473 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2474
4cf93a03
DE
2475 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2476 TYPE_POINTER_TYPE (type).
2477
3756ef7e
GB
24782012-08-14 Gary Benson <gbenson@redhat.com>
2479
2480 * solib-svr4.c (svr4_free_library_list): Use free_so.
2481
40d72643
MF
24822012-08-13 Mike Frysinger <vapier@gentoo.org>
2483
2484 * .gitignore: Add go-exp.c.
2485
f47f77df
DE
24862012-08-13 Doug Evans <dje@google.com>
2487
2488 * value.c (show_convenience): Tweak comment.
2489 (_initialize_values): Mention convenience functions in the help text
2490 for "show convenience".
2491
7507c54a
YQ
24922012-08-13 Yao Qi <yao@codesourcery.com>
2493
2494 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2495 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2496 TERNOP_SLICE_COUNT.
2497 * eval.c (evaluate_subexp_standard): Likewise.
2498 * expprint.c (print_subexp_standard): Likewise.
2499 (dump_subexp_body_standard): Likewise.
2500 * parse.c (operator_length_standard): Likewise.
2501
5cad9736
YQ
25022012-08-13 Yao Qi <yao@codesourcery.com>
2503
2504 * std-operator.def: Remove OP_BITSTRING.
2505 * breakpoint.c (watchpoint_exp_is_const): Update.
2506 * eval.c (evaluate_subexp_standard): Remove handling to
2507 OP_BITSTRING.
2508 * expprint.c (print_subexp_standard): Likewise.
2509 (dump_subexp_body_standard): Likewise.
2510 * parse.c (operator_length_standard): Likewise.
2511 * valops.c (value_bitstring): Remove.
2512 * value.h: Remove the declaration of 'value_bitstring'.
2513
bad7670a
SDJ
25142012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2515
2516 * linespec.c (find_methods): Remove unused variables `i1' and
2517 `name_len'.
2518 (decode_line_full): Likewise for `arg_start'.
2519
d9dce7fa
SDJ
25202012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2521
2522 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2523 (zlib_decompress_section): Likewise for `section_data'.
2524 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2525
a72c3253
DE
25262012-08-10 Doug Evans <dje@google.com>
2527
2528 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2529 * NEWS: Document them.
2530 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2531 function/strfns.py.
2532 * python/py-type.c (typy_array_1): New function.
2533 (typy_array): Call it.
2534 (typy_vector): New function.
2535 (type_object_methods): Add "vector".
2536 * python/lib/gdb/function/__init__.py: New file.
2537 * python/lib/gdb/function/strfns.py: New file.
2538
200bc880
SP
25392012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2540
2541 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2542 for TYPE_FIELD_BITPOS.
2543 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2544
de0bea00
MF
25452012-08-10 Mike Frysinger <vapier@gentoo.org>
2546
2547 PR cli/10436:
2548 * common/vec.h (VEC_merge): Define.
2549 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2550 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2551 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2552 * completer.c: Include gdb_signals.h.
2553 (signal_completer): Define.
2554 * completer.h (signal_completer): Add prototype.
2555 * infcmd.c (_initialize_infcmd): Assign the command
2556 completer for "signal" to handle_completer.
2557 * infrun.c: Include completer.h.
2558 (handle_completer): Define.
2559 (_initialize_infrun): Declare a new local variable c. Store the
2560 result of add_com("handle") to it. Assign the command
2561 completer for "handle" to handle_completer.
2562
5b9afe8a
YQ
25632012-08-09 Yao Qi <yao@codesourcery.com>
2564
2565 * cli/cli-decode.c (set_cmd_prefix): New.
2566 (lookup_cmd_for_prefixlist): New.
2567 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2568 of each cmd_list_element in *prefixlist.
2569 (add_setshow_cmd_full): set_cmd_prefix.
2570 (add_alias_cmd): Likewise.
2571 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2572 Declare 'auto_boolean_enums'.
2573 * cli/cli-setshow.c: Include "observer.h".
2574 (notify_command_param_changed_p): New.
2575 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2576 Remove 'static'.
2577 (do_setshow_command): Split it to ...
2578 (do_set_command, do_show_command): ... them. New.
2579 (do_set_command): Call observer_notify_command_param_changed if
2580 notify_command_param_changed_p returns true.
2581 (cmd_show_list): Caller update.
2582 * auto-load.c (set_auto_load_cmd): Likewise.
2583 * remote.c (show_remote_cmd): Likewise.
2584 * cli/cli-setshow.h: Update declarations.
2585 * top.c (execute_command): Call do_set_command and do_show_command.
2586
2587 * NEWS: Mention new MI notification.
2588 * mi/mi-interp.c: Declare mi_command_param_changed.
2589 (mi_interpreter_init): Attach mi_command_param_changed to
2590 observer command_param_changed.
2591 (mi_command_param_changed): New.
2592 Remove mi_suppress_breakpoint_notifications.
2593 Define global variable mi_suppress_notification.
2594 (mi_breakpoint_created): Update.
2595 (mi_breakpoint_deleted): Likewise.
2596 (mi_breakpoint_modified): Likewise.
2597 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2598 'gdb-set' and set mi_suppress_notification.
2599 * mi/mi-main.h: (mi_suppress_notification): New struct.
2600
1969df89
JK
26012012-08-09 Andreas Tobler <andreast@fgznet.ch>
2602 Jan Kratochvil <jan.kratochvil@redhat.com>
2603
2604 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2605
8bfd80db
YQ
26062012-08-09 Yao Qi <yao@codesourcery.com>
2607
2608 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2609 (skiplist): Move it to skip.c.
2610 (init_cmd_lists): Remove code setting enablebreaklist and
2611 skiplist to NULL.
2612 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2613 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2614 skiplist.
2615 * gdbcmd.h: Likewise.
2616 * skip.c (_initialize_step_skip): Move 'skiplist' from
2617 cli/cli-cmds.c.
2618
28578e6b
YQ
26192012-08-09 Yao Qi <yao@codesourcery.com>
2620
2621 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2622 * gnu-nat.c, symfile.c: Likewise.
2623
260c0b2a
DE
26242012-08-08 Aaron Gamble <agamble@google.com>
2625
2626 * utils.c (prompt_for_continue_wait_time): New static global.
2627 (make_command_stats_cleanup): Initialize it.
2628 (report_command_stats): Subtract time waiting for user.
2629 (prompt_for_continue): Track time waiting for user.
2630 (defaulted_query): Track time waiting for user.
2631
4f485ebc
DE
26322012-08-08 Doug Evans <dje@google.com>
2633
2634 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2635 UNOP_MEMVAL_TYPE.
2636 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2637 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2638 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2639 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2640 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2641 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2642 elt.
2643 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2644 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2645 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2646 (dump_prefix_expression): Handle OP_TYPE.
2647
2acf2b39
KS
26482012-08-08 Keith Seitz <keiths@redhat.com>
2649
2650 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2651 addr_start.
2652
e6712ff1
DE
26532012-08-08 Doug Evans <dje@google.com>
2654
2655 * linux-thread-db.c: #include "gdb_vecs.h".
2656 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2657 updated.
2658 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2659 (thread_db_load_search): Use a vector to iterate over path elements.
2660 Handle text appearing after "$pdir".
2661
2662 * gdb_string.h: Moved to ...
2663 * common/gdb_string.h: ... here.
2664 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2665 gdb_string.h and gdb_assert.h.
2666
ab854e54
YQ
26672012-08-08 Yao Qi <yao@codesourcery.com>
2668
2669 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2670 (tic6x_value_to_register): Likewise.
2671 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2672 and set_gdbarch_value_to_register.
2673
4f69f4c2
JK
26742012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2675 Jean-Marc Saffroy <saffroy@gmail.com>
2676
2677 PR 11804
2678 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2679 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2680 * gcore.c (gcore_create_callback): New function comment. Add modified
2681 parameter. Only write modified regions. Set SEC_READONLY exactly
2682 according to MODIFIED.
2683 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2684 the passed modified value to FUNC.
2685 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2686 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2687 first. New variables modified and has_anonymous. Parse the lines of
2688 smaps file. Add the passed MODIFIED value to FUNC.
2689 * procfs.c (find_memory_regions_callback): Add the passed modified
2690 value.
2691
78ac5f83
TT
26922012-08-06 Tom Tromey <tromey@redhat.com>
2693
2694 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2695 (dwarf2_frame_cache): Use it.
2696 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2697 cache initialization constraint.
2698
2c12abee
TT
26992012-08-06 Tom Tromey <tromey@redhat.com>
2700
2701 PR python/14386:
2702 * varobj.c (update_dynamic_varobj_children): Don't call
2703 PyIter_Check.
2704
4979d7f0
TT
27052012-08-06 Tom Tromey <tromey@redhat.com>
2706
2707 PR cli/14392:
2708 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2709
f3c8a52a
JK
27102012-08-06 Nathaniel Flath <flat0103@gmail.com>
2711
2712 * NEWS: New entry for 'cd' default parameters.
2713 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2714
5a1cf4d6
TT
27152012-08-03 Tom Tromey <tromey@redhat.com>
2716
2717 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2718 return.
2719
7c3270ae
UW
27202012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2721
2722 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2723 to attempting lseek/write.
2724 (inf_child_fileio_pread): Likewise for pread.
2725
ccce17b0
YQ
27262012-08-02 Yao Qi <yao@codesourcery.com>
2727
2728 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2729 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2730 add_setshow_zinteger_cmd.
2731 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2732 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2733 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2734 instead of add_setshow_zinteger_cmd.
2735 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2736 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2737 instead of add_setshow_zinteger_cmd.
2738 * frame.c (frame_debug): Add 'unsigned'.
2739 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2740 add_setshow_zinteger_cmd.
2741 * frame.h: Update the declaration of 'frame_debug'.
2742 * gdbtypes.c (overload_debug): Add 'unsigned'.
2743 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2744 add_setshow_zinteger_cmd.
2745 * inferior.h: Update declaration of 'debug_infrun'.
2746 * infrun.c (debug_infrun): Add 'unsigned'.
2747 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2748 add_setshow_zinteger_cmd.
2749 * jit.c (jit_debug): Add 'unsigned'.
2750 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2751 add_setshow_zinteger_cmd.
2752 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2753 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2754 instead of add_setshow_zinteger_cmd.
2755 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2756 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2757 add_setshow_zinteger_cmd.
2758 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2759 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2760 instead of add_setshow_zinteger_cmd.
2761 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2762 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2763 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2764 intead of add_setshow_zinteger_cmd.
2765 * mips-tdep.c (mips_debug): Add 'unsigned'.
2766 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2767 instead of add_setshow_zinteger_cmd.
2768 * monitor.c (monitor_debug): Add 'unsigned'.
2769 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2770 add_setshow_zinteger_cmd.
2771 * observer.c (observer_debug): Add 'unsigned'.
2772 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2773 add_setshow_zinteger_cmd.
2774 * parse.c (expressiondebug): Add 'unsigned'.
2775 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2776 add_setshow_zinteger_cmd.
2777 * record.c (record_debug): Add 'unsigned'.
2778 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2779 add_setshow_zinteger_cmd.
2780 * record.h: Update the declaration of 'record_debug'.
2781 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2782 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2783 add_setshow_zinteger_cmd.
2784 * serial.c (global_serial_debug_p): Add 'unsigned'.
2785 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2786 add_setshow_zinteger_cmd.
2787 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2788 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2789 add_setshow_zinteger_cmd.
2790 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2791 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2792 add_setshow_zinteger_cmd.
2793 * target.c (targetdebug): Add 'unsigned'.
2794 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2795 add_setshow_zinteger_cmd.
2796 * valops.c (overload_debug): Add 'unsigned'.
2797 * varobj.c (varobjdebug): Add 'unsigned'.
2798 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2799 add_setshow_zinteger_cmd.
2800 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2801 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2802 instead of add_setshow_zinteger_cmd.
2803
2804 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2805 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2806 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2807 instead of add_setshow_zinteger_cmd.
2808 * gdbarch.c, gdbarch.h: Re-generated.
2809
95b07c96
YQ
28102012-08-02 Yao Qi <yao@codesourcery.com>
2811
2812 * nto-tdep.c: Don't include cli/cli-decode.h and
2813 cli/cli-cmds.h.
2814 (_initialize_nto_tdep): Remove.
2815 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2816 Remove field.
2817 Remove macro nto_internal_debugging.
2818
57295b0b
RH
28192012-08-01 Richard Henderson <rth@redhat.com>
2820
2821 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2822 (mep-*-*) [gdb_target_obs]: Likewise.
2823
f782ad9b
AS
28242012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2825
2826 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2827 linux_get_siginfo_type.
2828
a14dd77e
JK
28292012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2830
2831 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2832 AT_ENTRY_POINT.
2833 (call_function_by_hand) <ON_STACK>: Call write_memory with
2834 gdbarch_breakpoint_from_pc, if possible.
2835 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2836 here.
2837
1467929f
YQ
28382012-07-31 Yao Qi <yao@codesourcery.com>
2839
2840 * tracepoint.c: Add 'static' for some variables.
2841
70976b65
YQ
28422012-07-31 Yao Qi <yao@codesourcery.com>
2843
2844 * go32-nat.c: Declare _initialize_go32_nat.
2845 * ser-go32.c: Declare _initialize_ser_dos.
2846 * top.c (do_chdir_cleanup): Add 'static'.
2847
eff9c3e6
KS
28482012-07-30 Keith Seitz <keiths@redhat.com>
2849
2850 * linespec.c (linespec_lex_number): A number followed
2851 by quotes is a valid number, too.
2852
728400d7
TT
28532012-07-30 Tom Tromey <tromey@redhat.com>
2854
2855 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2856
fcf303ab
UW
28572012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2858
2859 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2860 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2861
4e969b4f
AB
28622012-07-30 Andrew Burgess <aburgess@broadcom.com>
2863
2864 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2865 invalid or reevaluated to prevent prevent references to possibly
2866 delete'd type objects being left in the varobj.
2867
c4bfde41
JK
28682012-07-27 Tom Tromey <tromey@redhat.com>
2869 Jan Kratochvil <jan.kratochvil@redhat.com>
2870
2871 * copying.awk: Print buffer-read-only and vi ro markers.
2872 * copying.c: Rebuild.
2873 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2874 * gdbarch.c, gdbarch.h: Rebuild.
2875 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2876 buffer-read-only and vi ro markers.
2877 * features/arm-with-iwmmxt.c: Rebuild.
2878 * features/arm-with-m-fpa-layout.c: Rebuild.
2879 * features/arm-with-m-vfp-d16.c: Rebuild.
2880 * features/arm-with-m.c: Rebuild.
2881 * features/arm-with-neon.c: Rebuild.
2882 * features/arm-with-vfpv2.c: Rebuild.
2883 * features/arm-with-vfpv3.c: Rebuild.
2884 * features/i386/amd64-avx-linux.c: Rebuild.
2885 * features/i386/amd64-avx.c: Rebuild.
2886 * features/i386/amd64-linux.c: Rebuild.
2887 * features/i386/amd64.c: Rebuild.
2888 * features/i386/i386-avx-linux.c: Rebuild.
2889 * features/i386/i386-avx.c: Rebuild.
2890 * features/i386/i386-linux.c: Rebuild.
2891 * features/i386/i386-mmx-linux.c: Rebuild.
2892 * features/i386/i386-mmx.c: Rebuild.
2893 * features/i386/i386.c: Rebuild.
2894 * features/i386/x32-avx-linux.c: Rebuild.
2895 * features/i386/x32-avx.c: Rebuild.
2896 * features/i386/x32-linux.c: Rebuild.
2897 * features/i386/x32.c: Rebuild.
2898 * features/mips-dsp-linux.c: Rebuild.
2899 * features/mips-linux.c: Rebuild.
2900 * features/mips64-dsp-linux.c: Rebuild.
2901 * features/mips64-linux.c: Rebuild.
2902 * features/rs6000/powerpc-32.c: Rebuild.
2903 * features/rs6000/powerpc-32l.c: Rebuild.
2904 * features/rs6000/powerpc-403.c: Rebuild.
2905 * features/rs6000/powerpc-403gc.c: Rebuild.
2906 * features/rs6000/powerpc-405.c: Rebuild.
2907 * features/rs6000/powerpc-505.c: Rebuild.
2908 * features/rs6000/powerpc-601.c: Rebuild.
2909 * features/rs6000/powerpc-602.c: Rebuild.
2910 * features/rs6000/powerpc-603.c: Rebuild.
2911 * features/rs6000/powerpc-604.c: Rebuild.
2912 * features/rs6000/powerpc-64.c: Rebuild.
2913 * features/rs6000/powerpc-64l.c: Rebuild.
2914 * features/rs6000/powerpc-7400.c: Rebuild.
2915 * features/rs6000/powerpc-750.c: Rebuild.
2916 * features/rs6000/powerpc-860.c: Rebuild.
2917 * features/rs6000/powerpc-altivec32.c: Rebuild.
2918 * features/rs6000/powerpc-altivec32l.c: Rebuild.
2919 * features/rs6000/powerpc-altivec64.c: Rebuild.
2920 * features/rs6000/powerpc-altivec64l.c: Rebuild.
2921 * features/rs6000/powerpc-cell32l.c: Rebuild.
2922 * features/rs6000/powerpc-cell64l.c: Rebuild.
2923 * features/rs6000/powerpc-e500.c: Rebuild.
2924 * features/rs6000/powerpc-e500l.c: Rebuild.
2925 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
2926 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
2927 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
2928 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
2929 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
2930 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
2931 * features/rs6000/powerpc-vsx32.c: Rebuild.
2932 * features/rs6000/powerpc-vsx32l.c: Rebuild.
2933 * features/rs6000/powerpc-vsx64.c: Rebuild.
2934 * features/rs6000/powerpc-vsx64l.c: Rebuild.
2935 * features/rs6000/rs6000.c: Rebuild.
2936 * features/s390-linux32.c: Rebuild.
2937 * features/s390-linux32v1.c: Rebuild.
2938 * features/s390-linux32v2.c: Rebuild.
2939 * features/s390-linux64.c: Rebuild.
2940 * features/s390-linux64v1.c: Rebuild.
2941 * features/s390-linux64v2.c: Rebuild.
2942 * features/s390x-linux64.c: Rebuild.
2943 * features/s390x-linux64v1.c: Rebuild.
2944 * features/s390x-linux64v2.c: Rebuild.
2945 * features/tic6x-c62x-linux.c: Rebuild.
2946 * features/tic6x-c62x.c: Rebuild.
2947 * features/tic6x-c64x-linux.c: Rebuild.
2948 * features/tic6x-c64x.c: Rebuild.
2949 * features/tic6x-c64xp-linux.c: Rebuild.
2950 * features/tic6x-c64xp.c: Rebuild.
2951
826f0041
TT
29522012-07-27 Tom Tromey <tromey@redhat.com>
2953
2954 * c-exp.y (classify_name): Avoid assignment in condition.
2955
84552b16
PA
29562012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
2957
2958 * amd64-windows-tdep.c: Include "frame.h".
2959 (amd64_windows_skip_trampoline_code): New function.
2960 (amd64_windows_init_abi): Add trampoline registration.
2961
a8a64aa8
YQ
29622012-07-27 Yao Qi <yao@codesourcery.com>
2963
2964 * tracepoint.c (cur_traceframe_number): Remove.
2965 (set_tfile_traceframe): Remove.
2966 (tfile_trace_find, tfile_fetch_registers): Update callers.
2967 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
2968 (tfile_open, tfile_trace_find): Likewise.
2969
d99067cb
YQ
29702012-07-27 Yao Qi <yao@codesourcery.com>
2971
2972 * thread.c (switch_to_thread): Don't call registers_changed.
2973
f2e8016f
TT
29742012-07-26 Tom Tromey <tromey@redhat.com>
2975
f782ad9b
AS
2976 * Makefile.in (SFILES): Remove objc-exp.y.
2977 (YYFILES): Remove objc-exp.c.
2978 (YYOBJ): Remove objc-exp.o.
2979 (local-maintainer-clean): Don't mention objc-exp.c.
2980 * c-exp.y: Include objc-lang.h.
2981 (%union) <class>: New field.
2982 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
2983 (exp): Clone subscript production for OBJC_LBRAC. Add various
2984 Objective C productions.
2985 (msglist, msgarglist, msgarg): New productions.
2986 (array_mod, func_mod, operator): Clone productions for
2987 OBJC_LBRAC.
2988 (parse_string_or_char): Handle '@' strings.
2989 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
2990 (classify_name): Check la_name_of_this. Recognize ObjC class
2991 names.
2992 * objc-exp.y: Remove.
2993 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
2994 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 2995
f66713d2
JK
29962012-07-26 Markus Metzger <markus.t.metzger@intel.com>
2997
2998 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
2999
7cfe01b4
JK
30002012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3001
3002 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3003 and decrement.
3004
5ba19b4c
TT
30052012-07-26 Tom Tromey <tromey@redhat.com>
3006
3007 * copying.c: Rebuild.
3008 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3009 'no_class'.
3010
27618ce4
TT
30112012-07-26 Tom Tromey <tromey@redhat.com>
3012
3013 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3014 immediate_quit.
3015 (print_objfile_statistics): Likewise.
3016 (maintenance_print_symbols): Likewise.
3017 (maintenance_print_msymbols): Likewise.
3018 (maintenance_print_objfiles): Likewise.
3019 * psymtab.c (print_partial_symbols): Call QUIT.
3020 (maintenance_print_psymbols): Likewise. Don't modify
3021 immediate_quit.
3022 * copying.c (show_copying_command): Don't modify immediate_quit.
3023 (show_warranty_command): Likewise.
3024 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3025
dd3818c8
KS
30262012-07-26 Keith Seitz <keiths@redhat.com>
3027
3028 * linespec.c (linespec_lexer_lex_number): The input
3029 is also a valid number if the next character is a comma
3030 or colon.
3031
23a80689
JB
30322012-07-26 Joel Brobecker <brobecker@adacore.com>
3033
3034 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3035 configure options.
3036
29f77997
TG
30372012-07-26 Tristan Gingold <gingold@adacore.com>
3038
3039 * machoread.c: Include gdb_bfd.h.
3040
a55c1f32
TG
30412012-07-26 Tristan Gingold <gingold@adacore.com>
3042
3043 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3044 offset.
3045
56eb65bd
SP
30462012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3047
3048 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3049 SIZE to size_t.
3050 (dwarf2_evaluate_loc_desc): Likewise.
3051 (dwarf2_loc_desc_needs_frame): Likewise.
3052 (locexpr_describe_location_1): Likewise.
3053 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3054 size_t.
3055 (struct dwarf2_loclist_baton): Likewise.
3056 * dwarf2read.c (struct dwarf_block): Likewise.
3057 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3058 (decode_locdesc): Expand SIZE and I to size_t.
3059
aec8845c
JK
30602012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3061
3062 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3063
33d7655b
JB
30642012-07-25 Joel Brobecker <brobecker@adacore.com>
3065
3066 * doublest.c (convert_doublest_to_floatformat): If the exponent
3067 is too small, treat the value as zero. If the exponent is too
3068 large, treat the value as infinity.
3069
a22d44ff
JB
30702012-07-25 Joel Brobecker <brobecker@adacore.com>
3071
3072 * configure.ac: Add --enable-lmcheck configure option.
3073 * configure: Regenerate.
3074
d6b28940
TT
30752012-07-25 Tom Tromey <tromey@redhat.com>
3076
f782ad9b
AS
3077 * NEWS: Mention maint info bfds.
3078 * gdb_bfd.c (all_bfds): New global.
3079 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3080 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3081 New functions.
d6b28940 3082
6e73ba20
RC
30832012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3084
3085 * configure.tgt: Add v850*-*-rtems*.
3086
d560eebd
TT
30872012-07-25 Tom Tromey <tromey@redhat.com>
3088
3089 * macrotab.c (macro_bcache_str): Remove cast.
3090
d7cbec71
HZ
30912012-07-25 Hui Zhu <hui_zhu@mentor.com>
3092
3093 * linespec.c (linespec_lexer_lex_number): Update comments,
3094 change the return and add check to make sure the input is
3095 the decimal numbers.
3096 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3097 false, call linespec_lexer_lex_string.
3098
882f447f
TT
30992012-07-24 Tom Tromey <tromey@redhat.com>
3100
3101 * symfile.c (symbol_file_add): Don't open BFD twice.
3102
53ab4066 31032012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
3104
3105 * breakpoint.c (create_breakpoint): Store condition for pending
3106 breakpoints.
3107
108fb0f7
AS
31082012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3109
3110 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3111 (m68k_return_value): Handle complex types like structures.
3112 (m68k_svr4_return_value): Likewise.
3113
1634dcbe
JK
31142012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3115
3116 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3117 parameters to bfd_get_section_name.
3118
e2d12c21
YQ
31192012-07-24 Yao Qi <yao@codesourcery.com>
3120
3121 * cli/cli-setshow.c: Handle case 'var_uinteger'
3122 and 'var_zuninteger' together. Handle case 'var_integer' and
3123 'var_zinteger' together.
3124
64b92e45
KS
31252012-07-23 Keith Seitz <keiths@redhat.com>
3126
3127 * linespec.c (convert_linespec_to_sal): Don't add
3128 any symbols to the result vector if symbol_to_sal
3129 returns zero.
3130
0f5f4ffe
KS
31312012-07-23 Keith Seitz <keiths@redhat.com>
3132
3133 * linespec.c (decode_objc): Record the function name
3134 in the linespec.
3135
da1cc82f
TT
31362012-07-23 Tom Tromey <tromey@redhat.com>
3137
3138 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3139 counting.
3140 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3141 (map_vmap): Acquire a reference to the BFD.
3142
6c18f3e0
SP
31432012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3144
3145 * p-valprint.c (pascal_object_print_value): Replace potentially
3146 unsafe alloca with xmalloc/xfree.
3147 * valops.c (search_struct_method): Likewise.
3148
695c3173
TT
31492012-07-23 Tom Tromey <tromey@redhat.com>
3150
3151 * solib-svr4.c (enable_break): Update.
3152 * bfd-target.h (target_bfd_reopen): Update documentation.
3153
08d2cd74
TT
31542012-07-23 Tom Tromey <tromey@redhat.com>
3155
3156 * symfile.c (separate_debug_file_exists): Update.
3157 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3158 (reread_symbols): Update.
3159 * elfread.c (build_id_verify): Update.
3160 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3161 bfd_open_maybe_remote.
3162
596f7d67
TT
31632012-07-23 Tom Tromey <tromey@redhat.com>
3164
3165 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3166
8ac244b4
TT
31672012-07-23 Tom Tromey <tromey@redhat.com>
3168
3169 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3170 and 'abfd'.
3171 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3172 and 'abfd'.
3173 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3174 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3175 'abfd'.
3176 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3177 * objfiles.c (allocate_objfile): Acquire a new reference.
3178 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3179 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3180 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3181 a cleanup for 'nbfd'.
3182 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3183 for 'nbfd'.
3184 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3185 make a cleanup for 'abfd'.
3186 (symbol_file_add): Make a BFD cleanup.
3187
64c31149
TT
31882012-07-23 Tom Tromey <tromey@redhat.com>
3189
3190 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3191 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3192 * corelow.c (core_open): Use gdb_bfd_fopen.
3193 * dsrec.c (load_srec): Use gdb_bfd_openr.
3194 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3195 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3196 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3197 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3198 (gdb_bfd_fdopenr): New functions.
3199 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3200 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3201 (gdb_bfd_fdopenr): Declare.
3202 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3203 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3204 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3205 gdb_bfd_openr_next_archived_file.
3206 (macho_check_dsym): Use gdb_bfd_openr.
3207 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3208 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3209 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3210 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3211 gdb_bfd_openr.
3212 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3213 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3214 gdb_bfd_openr_next_archived_file.
3215 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3216 Use gdb_bfd_openr.
3217 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3218 gdb_bfd_openr.
3219 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3220 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3221 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3222 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3223 (symfile_bfd_open): Use gdb_bfd_fopen.
3224 (generic_load): Use gdb_bfd_openr.
3225 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3226
520b0001
TT
32272012-07-23 Tom Tromey <tromey@redhat.com>
3228
3229 * bfd-target.c (target_bfd_reopen): Update.
3230 * cli/cli-dump.c (bfd_openr_with_cleanup)
3231 (bfd_openw_with_cleanup): Update.
3232 * corelow.c (core_open): Update.
3233 * dsrec.c (load_srec): Update.
3234 * exec.c (exec_file_attach): Update.
3235 * gcore.c (create_gcore_bfd): Update.
3236 * gdb_bfd.c (gdb_bfd_ref): Return void.
3237 (gdb_bfd_open): Update.
3238 * gdb_bfd.h (gdb_bfd_ref): Return void.
3239 Update comments.
3240 * jit.c (jit_bfd_try_read_symtab): Update.
3241 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3242 * machoread.c (macho_symfile_read_all_oso): Update.
3243 (macho_check_dsym): Update.
3244 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3245 * remote-m32r-sdi.c (m32r_load): Update.
3246 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3247 * rs6000-nat.c (add_vmap): Update.
3248 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3249 Update.
3250 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3251 * solib-spu.c (spu_bfd_open): Update.
3252 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3253 * spu-linux-nat.c (spu_bfd_open): Update.
3254 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3255 (generic_load): Update.
3256 * windows-nat.c (windows_make_so): Update.
3257
2322ff16
SP
32582012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3259
3260 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3261
3def0b36
PA
32622012-07-20 Jeff Kenton <jkenton@tilera.com>
3263
3264 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3265 SIGTRAMP_FRAME unwinding.
3266
e615022a
DE
32672012-07-20 Doug Evans <dje@google.com>
3268
3269 * NEWS: Document new options "set/show use-deprecated-index-sections",
3270 and delete reference to --use-deprecated-index-sections.
3271 * symfile.h (use_deprecated_index_sections): Delete.
3272 * dwarf2read.c (use_deprecated_index_sections): Make static.
3273 (read_index_from_section): Update wording of how to load
3274 deprecated index sections.
3275 (_initialize_dwarf2_read): New options
3276 "set/show use-deprecated-index-sections".
3277 * main.c (captured_main): Delete --use-deprecated-index-sections.
3278
64776a0b
PA
32792012-07-20 Pedro Alves <palves@redhat.com>
3280
3281 PR threads/11692
3282 PR gdb/12203
3283
3284 * infrun.c (handle_inferior_event) <new thread>: Don't special
3285 case minus_one_ptid.
3286 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3287 * linux-thread-db.c (thread_get_info_callback): Don't return early
3288 if the thread is zombie.
3289 (thread_from_lwp): Change return type to void. Rewrite stale
3290 comment.
3291 (attach_thread): Don't return early if the thread is zombie,
3292 instead set its "dying" flag.
3293 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3294 (find_new_threads_callback): Don't return early if the thread is
3295 zombie.
3296
09826ec5
PA
32972012-07-20 Pedro Alves <palves@redhat.com>
3298
3299 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3300 * target.c (target_wait): Likewise.
3301 (str_comma_list_concat_elem, do_option, target_options_to_string):
3302 New functions.
3303 * target.h (target_options_to_string): Declare.
3304
f7a35f02
TT
33052012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3306 Tom Tromey <tromey@redhat.com>
3307
3308 * dwarf2read.c (dwarf_decode_macros)
3309 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3310 DW_MACRO_GNU_transparent_include_alt>: New cases.
3311 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3312 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3313
b81e1ee0
TT
33142012-07-20 Tom Tromey <tromey@redhat.com>
3315
3316 * dwarf2read.c (try_open_dwo_file): Don't call
3317 gdb_bfd_stash_filename.
3318
99c1624c
PA
33192012-07-20 Pedro Alves <palves@redhat.com>
3320
3321 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3322 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3323 (i386_process_record): Tweak description comments.
3324
4ffa4fc7
PA
33252012-07-20 Pedro Alves <palves@redhat.com>
3326
3327 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3328 (i386_process_record): Use record_read_memory.
3329 * record.c (record_read_memory): New function.
3330 (record_arch_list_add_mem, record_exec_insn): Use
3331 record_read_memory.
3332 * record.h (record_read_memory): Declare.
3333
c24343e2
YQ
33342012-07-20 Yao Qi <yao@codesourcery.com>
3335
3336 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3337 NULL for xfree.
3338
90f47860
PA
33392012-07-19 Pedro Alves <palves@redhat.com>
3340
3341 * record.c (record_resume): Ask the target beneath to report all
3342 signals.
3343
01093045
DE
33442012-07-19 Doug Evans <dje@google.com>
3345
3346 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3347 there's no section at address zero.
3348 (dwarf2_record_block_ranges): Ditto.
3349
a7c3d162
YQ
33502012-07-19 Yao Qi <yao@codesourcery.com>
3351
3352 * command.h, remote.c: Fix a typo in comment.
3353
608b4967
TT
33542012-07-19 Tom Tromey <tromey@redhat.com>
3355
3356 PR exp/13206:
3357 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3358 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3359 OP_DECLTYPE>: New cases.
3360 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3361 (type_exp): Add new productions.
3362 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3363 and decltype.
3364 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3365 New case.
3366 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3367 OP_DECLTYPE>: New case.
3368 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3369 New case.
3370 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3371 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3372
274b54d7
TT
33732012-07-19 Tom Tromey <tromey@redhat.com>
3374
3375 * c-exp.y (enum token_flags): New.
3376 (struct token) <cxx_only>: Remove.
3377 <flags>: New field.
3378 (tokentab3, tokentab2, ident_tokens): Update.
3379 (lex_one_token): Update. Handle FLAG_SHADOW.
3380
9eaf6705
TT
33812012-07-19 Tom Tromey <tromey@redhat.com>
3382
3383 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3384 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3385 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3386 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3387 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3388 type_exp production where appropriate.
3389 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3390 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3391 <UNOP_MEMVAL_TYPE>: New case.
3392 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3393 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3394 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3395 <UNOP_MEMVAL_TYPE>: New case.
3396 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3397 UNOP_REINTERPRET_CAST>: Update.
3398 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3399 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3400 UNOP_REINTERPRET_CAST>: Update.
3401 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3402 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3403 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3404 constants.
3405
6ace3df1
YQ
34062012-07-19 Yao Qi <yao@codesourcery.com>
3407 Jan Kratochvil <jan.kratochvil@redhat.com>
3408
3409 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3410 and case 'var_optional_filename' together.
3411 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3412 instead of add_setshow_optional_filename_cmd for setshow command
3413 'args'. Set completer for 'set args'.
3414
48faced0
DE
34152012-07-18 Doug Evans <dje@google.com>
3416
3417 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3418 * common/gdb_vecs.c: New file, contents from utils.c.
3419 * common/host-defs.h: New file, contents from defs.h.
3420 * utils.h: New file, contents from defs.h.
3421 * defs.h: Move all declarations of objects defined in utils.c
3422 to utils.h (except QUIT() and related).
3423 #include "utils.h", "host-defs.h".
3424 * probe.h (probe_p): Move here from gdb_vecs.h.
3425 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3426 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3427 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3428 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3429 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3430 (COMMON_OBS): Add gdb_vecs.o.
3431 (gdb_vecs.o): New rule.
3432
66f1999b
KS
34332012-07-18 Keith Seitz <keiths@redhat.com>
3434
3435 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3436 parameter. If non-zero, use SYMNAME as the canonical name
3437 for the SaL.
3438 Update all callers.
3439 (convert_linespec_to_sals): Use add_sal_to_sals for
3440 expressions, too.
3441 (decode_line_full): No need to "fill in missing canonical names"
3442 anymore. Simply make cleanups for the allocated names.
3443
5d94e27b
KS
34442012-07-18 Keith Seitz <keiths@redhat.com>
3445
3446 * linespec.c (struct linespec): Constify expression,
3447 source_filename, function_name, and label_name.
3448 (symbol_not_found_error): Make all parameters const.
3449 (linespec_parser_delete): No need to check for NULL
3450 when using xfree. Cast const char * to char * for xfree.
3451
af4908ba
KS
34522012-07-18 Keith Seitz <keiths@redhat.com>
3453
3454 * breakpoint.c (invalid_thread_id_error): New function.
3455 (find_condition_and_thread): Use invalid_thread_id_error.
3456 (watch_command_1): Likewise.
3457
853254db
TT
34582012-07-18 Tom Tromey <tromey@redhat.com>
3459
3460 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3461 * contrib/cc-with-tweaks.sh: New file.
3462
2ec9a5e0
TT
34632012-07-18 Tom Tromey <tromey@redhat.com>
3464
3465 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3466 (locate_dwz_sections): Recognize .gdb_index.
3467 (create_cus_from_index_list): New function.
3468 (create_cus_from_index): Use it. Handle .dwz data.
3469 (read_index_from_section): New function, extracted from
3470 dwarf2_read_index.
3471 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3472 if needed.
3473
36586728
TT
34742012-07-18 Tom Tromey <tromey@redhat.com>
3475
3476 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3477 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3478 <is_dwz>: New field.
3479 (struct dwz_file): New.
3480 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3481 (locate_dwz_sections, dwarf2_get_dwz_file)
3482 (get_abbrev_section_for_cu): New functions.
3483 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3484 (read_and_check_type_unit_head): Add abbrev_section argument.
3485 (create_debug_types_hash_table): Update.
3486 (init_cutu_and_read_dies): Use proper abbrev section.
3487 (init_cutu_and_read_dies_no_follow): Likewise.
3488 (set_partial_user): Do nothing if PST==NULL.
3489 (read_comp_units_from_section): New function.
3490 (create_all_comp_units): Use it.
3491 (scan_partial_symbols, partial_die_parent_scope): Update.
3492 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3493 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3494 (find_partial_die): Add offset_in_dwz argument. Update.
3495 (guess_partial_die_structure_name, fixup_partial_die): Update.
3496 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3497 DW_FORM_GNU_strp_alt.
3498 (read_indirect_string_from_dwz): New function.
3499 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3500 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3501 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3502 (follow_die_offset): Add offset_in_dwz argument.
3503 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3504 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3505 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3506 Handle new macro forms.
3507 (dwarf_decode_macros): Update.
3508 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3509 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3510 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3511 (create_debug_types_hash_table): Use correct abbrev section.
3512 (get_debug_line_section): New function.
3513 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3514 (process_full_comp_unit): Pass 'required' argument to
3515 end_symtab_get_static_block.
3516 * buildsym.h (end_symtab_get_static_block): Update.
3517 * buildsym.c (end_symtab_get_static_block): Add 'required'
3518 argument.
3519 (end_symtab, end_expandable_symtab): Update.
3520
4bf44c1c
TT
35212012-07-18 Tom Tromey <tromey@redhat.com>
3522
3523 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3524 (pagesize): Remove.
3525 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3526 (zlib_decompress_section): Remove.
3527 (dwarf2_read_section): Use gdb_bfd_map_section.
3528 (munmap_section_buffer): Remove.
3529 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3530 munmap_section_buffer.
3531 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3532 (struct gdb_bfd_section_data): New.
3533 (free_one_bfd_section): New function.
3534 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3535 (get_section_descriptor, zlib_decompress_section)
3536 (gdb_bfd_map_section): New functions.
3537 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3538
bb397797
TT
35392012-07-18 Tom Tromey <tromey@redhat.com>
3540
3541 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3542
6ec53d05
TT
35432012-07-18 Tom Tromey <tromey@redhat.com>
3544
3545 * gdb_bfd.c (struct gdb_bfd_data): New.
3546 (gdb_bfd_cache): New global.
3547 (struct gdb_bfd_cache_search): New.
3548 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3549 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3550 * gdb_bfd.h (gdb_bfd_open): Declare.
3551
f9a062ff
TT
35522012-07-18 Tom Tromey <tromey@redhat.com>
3553
3554 * utils.c (make_cleanup_bfd_unref): Rename from
3555 make_cleanup_bfd_close.
3556 * defs.h (make_cleanup_bfd_unref): Rename from
3557 make_cleanup_bfd_close.
3558 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3559 (bfd_openw_with_cleanup): Update.
3560 * corelow.c (core_open): Update.
3561 * dsrec.c (load_srec): Update.
3562 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3563 * remote-m32r-sdi.c (m32r_load): Update.
3564 * remote-mips.c (mips_load_srec): Update.
3565 (pmon_load_fast): Update.
3566 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3567 Update.
3568 (darwin_bfd_open): Update.
3569 * solib.c (solib_bfd_fopen): Update.
3570 * symfile-mem.c (symbol_file_add_from_memory): Update.
3571 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3572 (symfile_bfd_open): Update.
3573 (generic_load): Update.
3574
d6ad71ba
TT
35752012-07-18 Tom Tromey <tromey@redhat.com>
3576
3577 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3578 (pmon_load_fast): Likewise.
3579 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3580 (m32r_upload_command): Likewise.
3581 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3582 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3583 Use make_cleanup_bfd_close.
3584
a4453b7e
TT
35852012-07-18 Tom Tromey <tromey@redhat.com>
3586
3587 * symfile.c (symfile_bfd_open): Don't copy name. Call
3588 gdb_bfd_stash_filename.
3589 (load_command): Open the new BFD before freeing the old.
3590 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3591 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3592 Call gdb_bfd_stash_filename.
3593 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3594 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3595 gdb_bfd_stash_filename.
3596 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3597 Free found_pathname.
3598 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3599 gdb_bfd_stash_filename.
3600 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3601 * machoread.c (macho_add_oso_symfile): Call
3602 gdb_bfd_stash_filename.
3603 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3604 gdb_bfd_stash_filename.
3605 (macho_check_dsym): Don't copy filename. Call
3606 gdb_bfd_stash_filename.
3607 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3608 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3609 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3610 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3611 * exec.c (exec_close): Don't free the BFD's filename.
3612 (exec_file_attach): Don't copy the filename. Call
3613 gdb_bfd_stash_filename.
3614 * corelow.c (core_close): Don't free the BFD's filename.
3615 (core_open): Call gdb_bfd_stash_filename.
3616 * corefile.c (reopen_exec_file): Remove #if 0 code.
3617 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3618 pathname.
3619 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3620
cbb099e8
TT
36212012-07-18 Tom Tromey <tromey@redhat.com>
3622
3623 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3624 gdb_bfd_unref.
3625 (free_dwo_file): Use gdb_bfd_unref.
3626 * cli/cli-dump.c: Include gdb_bfd.h.
3627 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3628 (bfd_openr_with_cleanup): Likewise.
3629 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3630 gdb_bfd_unref.
3631 * utils.c: Include gdb_bfd.h.
3632 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3633 * symfile.c: Include gdb_bfd.h.
3634 (separate_debug_file_exists): Use gdb_bfd_unref.
3635 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3636 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3637 (generic_load): Use gdb_bfd_ref.
3638 (reread_symbols): Use gdb_bfd_unref.
3639 * symfile-mem.c: Include gdb_bfd.h.
3640 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3641 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3642 * solib.c: Include gdb_bfd.h.
3643 (solib_bfd_fopen): Use gdb_bfd_ref.
3644 (solib_bfd_open): Use gdb_bfd_unref.
3645 (free_so_symbols): Use gdb_bfd_unref.
3646 (reload_shared_libraries_1): Use gdb_bfd_unref.
3647 * solib-spu.c: Include gdb_bfd.h.
3648 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3649 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3650 gdb_bfd_unref.
3651 * solib-frv.c: Include gdb_bfd.h.
3652 (enable_break2): Use gdb_bfd_unref.
3653 * solib-dsbt.c: Include gdb_bfd.h.
3654 (enable_break2): Use gdb_bfd_unref.
3655 * solib-darwin.c: Include gdb_bfd.h.
3656 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3657 gdb_bfd_unref.
3658 (darwin_bfd_open): Use gdb_bfd_unref.
3659 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3660 * remote-mips.c: Include gdb_bfd.h.
3661 (mips_load_srec): Use gdb_bfd_ref.
3662 (pmon_load_fast): Use gdb_bfd_ref.
3663 * remote-m32r-sdi.c: Include gdb_bfd.h.
3664 (m32r_load): Use gdb_bfd_ref.
3665 * record.c: Include gdb_bfd.h.
3666 (record_save_cleanups): Use gdb_bfd_unref.
3667 (cmd_record_save): Use gdb_bfd_unref.
3668 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3669 gdb_bfd_unref.
3670 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3671 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3672 * objfiles.c: Include gdb_bfd.h.
3673 (free_objfile): Use gdb_bfd_unref.
3674 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3675 gdb_bfd.c.
3676 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3677 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3678 (macho_check_dsym): Likewise.
3679 * m32r-rom.c: Include gdb_bfd.h.
3680 (m32r_load): Use gdb_bfd_ref.
3681 (m32r_upload_command): Use gdb_bfd_ref.
3682 * jit.c: Include gdb_bfd.h.
3683 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3684 * gdb_bfd.h: New file.
3685 * gdb_bfd.c: New file.
3686 * gcore.c: Include gdb_bfd.h.
3687 (create_gcore_bfd): Use gdb_bfd_ref.
3688 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3689 (gcore_command): Use gdb_bfd_unref.
3690 * exec.c: Include gdb_bfd.h.
3691 (exec_close): Use gdb_bfd_unref.
3692 (exec_close_1): Use gdb_bfd_unref.
3693 (exec_file_attach): Use gdb_bfd_ref.
3694 * elfread.c: Include gdb_bfd.h.
3695 (build_id_verify): Use gdb_bfd_unref.
3696 * dsrec.c: Include gdb_bfd.h.
3697 (load_srec): Use gdb_bfd_ref.
3698 * corelow.c: Include gdb_bfd.h.
3699 (core_close): Use gdb_bfd_unref.
3700 (core_open): Use gdb_bfd_ref.
3701 * bfd-target.c: Include gdb_bfd.h.
3702 (target_bfd_xclose): Use gdb_bfd_unref.
3703 (target_bfd_reopen): Use gdb_bfd_ref.
3704 * Makefile.in (SFILES): Add gdb_bfd.c.
3705 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3706 (COMMON_OBS): Add gdb_bfd.o.
3707
ed1d1739
KS
37082012-07-18 Keith Seitz <keiths@redhat.com>
3709
3710 * breakpoint.c (find_condition_and_thread): Initialize
3711 TASK and REST.
3712 (create_breakpiont): find_condition_and_thread will now
3713 initialize COND_STRING, THREAD, and REST (and TASK).
3714 (addr_string_to_sals): Likewise.
3715
eab402df
PA
37162012-07-18 Pedro Alves <palves@redhat.com>
3717
3718 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3719 Pull the single step breakpoints out of the target.
3720
2b963b68
SDJ
37212012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3722
3723 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3724 * stap-probe.c (compile_probe_arg): Likewise.
3725
6bac7473
SDJ
37262012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3727
3728 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3729 (elf_compile_to_ax): Likewise.
3730 * infrun.c (insert_exception_resume_from_probe): Likewise.
3731 (check_exception_resume): Remove `objfile' variable.
3732 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3733 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3734 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3735 (compare_entries): Rename to...
3736 (compare_probes): ...this. Adjust function to work with
3737 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3738 respectively.
3739 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3740 `VEC (probe_p) *'.
3741 (print_ui_out_info): Adjust argument to be `struct probe *'.
3742 (info_probes_for_ops): Adjust internal computations to use
3743 `VEC (probe_p) *'.
3744 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3745 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3746 gen_info_probes_table_values>: Remove `objfile' argument.
3747 (struct probe) <objfile>: New field.
3748 (find_probe_by_pc): Remove `objfile' argument.
3749 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3750 (stap_get_probe_argument_count): Likewise.
3751 (stap_get_arg): Likewise.
3752 (stap_evaluate_probe_argument): Likewise.
3753 (stap_compile_to_ax): Likewise.
3754 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3755 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3756 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3757 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3758 sym_compile_to_ax>: Likewise.
3759
3347eb1a 37602012-07-18 Terry Guo <terry.guo@arm.com>
3761
3762 PR 14329
3763 * defs.h (GDB_MI_MSG_WIDTH): New.
3764 * ser_base (ser_base_read_error_fd): New function.
3765 (do_ser_base_readchar): Poll error file descriptor as well as
3766 standard output.
f782ad9b 3767 (generic_readchar): Refactor error handling.
3347eb1a 3768
80c8d323
JB
37692012-07-18 Joel Brobecker <brobecker@adacore.com>
3770
3771 * NEWS: Create a new section for the next release branch.
3772 Rename the section of the current branch, now that it has
3773 been cut.
3774
b45a0664 37752012-07-18 Joel Brobecker <brobecker@adacore.com>
3776
3777 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3778 * version.in: Bump version to 7.5.50.20120718-cvs.
3779
09cf2b22
KS
37802012-07-17 Keith Seitz <keiths@redhat.com>
3781
3782 * linespec.c (linespec_parse_line_offset): Make parameter
3783 const.
3784
8f043999
JK
37852012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3786
3787 PR 11914
3788 * f-valprint.c (info_common_command): New variable frame_id.
3789 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3790 * printcmd.c (print_variable_and_value): Extend function comment.
3791 Add comment for invalidated FRAME.
3792 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3793 FI form FRAME_ID after each print_frame_local_vars.
3794 (struct print_variable_and_value_data): Change frame to frame_id.
3795 (do_print_variable_and_value): New variable frame, initialize it from
3796 p->frame_id. Add comment for invalidated FRAME.
3797 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3798 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3799 for invalidated FRAME.
3800
ae5e0686
MK
38012012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3802 Pedro Alves <palves@redhat.com>
3803
3804 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3805 loop.
3806
5049c5be
TT
38072012-07-16 Tom Tromey <tromey@redhat.com>
3808
3809 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3810
2908cac6
DE
38112012-07-15 Doug Evans <dje@google.com>
3812
094b34ac
DE
3813 * dwarf2read.c (stmt_list_hash): New struct.
3814 (type_unit_group): Embed "per_cu" member, remove pointer.
3815 New union member "t", move member "tus" into it, all uses updated.
3816 New member "hash", replaces member "line_offset, all uses updated.
3817 (quick_file_names): Replace member "offset" with "hash", all uses
3818 updated.
3819 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3820 (hash_file_name_entry, eq_file_name_entry): Call them.
3821 (hash_type_unit_group, eq_type_unit_group): Ditto.
3822 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3823 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3824 (dw2_get_file_names): Update.
3825 (create_type_unit_group): Replace "per_cu" arg with "cu".
3826 All callers updated. Fix "quick" (.gdb_index) handling.
3827 (get_type_unit_group): Replace "per_cu" arg with "cu".
3828 All callers updated.
3829 (build_type_unit_groups): Don't reset tu_stats.
3830
2908cac6
DE
3831 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3832 "tab_cur_size". Change member "tab" to be a htab_t.
3833 (create_filename_seen_cache): Update.
3834 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3835 (filename_seen): Update.
3836
a2b6eff5
DE
38372012-07-13 Doug Evans <dje@google.com>
3838
3839 * symtab.c (filename_seen): Update comment.
3840
4359dff1
JK
38412012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3842 Doug Evans <dje@google.com>
3843
3844 * buildsym.c (end_symtab_1): Split it to ...
3845 (end_symtab_get_static_block): ... this ...
3846 (end_symtab_from_static_block): ... and this function.
3847 (end_symtab, end_expandable_symtab): Call them.
3848 * buildsym.h (end_symtab_get_static_block)
3849 (end_symtab_from_static_block): New declarations.
3850 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3851 Set its valid CU ranges.
3852
a24f71ab
JK
38532012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3854
3855 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3856 DW_OP_GNU_parameter_ref.
3857
d76b7dbc
JK
38582012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3859
3860 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3861 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3862
9fdc877b
DE
38632012-07-13 Doug Evans <dje@google.com>
3864
3865 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3866 (filename_seen_cache): New struct.
3867 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3868 (create_filename_seen_cache): New function.
3869 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3870 (filename_seen): Delete arg "first". New arg "cache". All callers
3871 updated.
3872 (output_source_filename_data): New struct.
3873 (output_source_filename): Delete arg "first". New arg "data".
3874 All callers updated.
3875 (sources_info): Delete local "first". New locals "data", "cleanups".
3876 Rewrite to use filename_seen_cache.
3877 (add_partial_filename_data): Delete member "first". New member
3878 "filename_seen_cache". All uses updated.
3879 (make_source_files_completion_list): Rewrite to use
3880 filename_seen_cache.
3881
f80c6f3f
DE
38822012-07-12 Doug Evans <dje@google.com>
3883
3884 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
3885
0bfa869d
DE
38862012-07-10 Doug Evans <dje@google.com>
3887
f4dc4d17
DE
3888 PR gdb/13498
3889 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
3890 all_type_unit_groups, type_unit_groups, tu_stats.
3891 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
3892 All uses updated. Add type_unit_group to union "s".
3893 (type_unit_group): New struct.
3894 (IS_TYPE_UNIT_GROUP): New macro.
3895 (abbrev_table): Delete unused member "section".
3896 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
3897 (dw2_get_cu): Assert not used with type_unit_group.
3898 (dw2_get_primary_cu): New function.
3899 (dw2_build_type_unit_groups_reader): New function.
3900 (dw2_build_type_unit_groups): New function.
3901 (dw2_get_file_names): Assert not called on type units.
3902 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
3903 Redo loop to iterate over type unit groups instead of type units.
3904 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
3905 (read_abbrev_offset): New function.
3906 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
3907 updated.
3908 (create_partial_symtab): New function.
3909 (process_psymtab_comp_unit_reader): Assert not used with type units.
3910 Call create_partial_symtab.
3911 (process_psymtab_type_unit): Delete.
3912 (hash_type_unit_group, eq_type_unit_group): New functions.
3913 (allocate_type_unit_groups_table): New function.
3914 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
3915 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
3916 (create_type_unit_group, get_type_unit_group): New functions.
3917 (tu_abbrev_offset): New struct.
3918 (sort_tu_by_abbrev_offset): New function.
3919 (add_type_unit_group_to_table): New function.
3920 (build_type_unit_groups): New function.
3921 (build_type_psymtabs_reader): New function.
3922 (build_type_psymtab_dependencies): New function.
3923 (build_type_psymtabs): Rewrite.
3924 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
3925 is seen in a type unit.
3926 (process_queue): Move symtab expansion debugging printfs here.
3927 Call process_full_type_unit for type units.
3928 (compute_symtab_includes): Assert not called for type units.
3929 (process_cu_includes): Don't call compute_symtab_includes for
3930 type units.
3931 (process_full_type_unit): New function.
3932 (process_imported_unit_die): Flag an error if called for type units.
3933 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
3934 updated. Assert not called for type units.
3935 (read_file_scope): Call dwarf2_start_symtab.
3936 (setup_type_unit_groups): New function.
3937 (read_type_unit_scope): Rewrite.
3938 (abbrev_table_read_table): Initialize abbrev_table->offset.
3939 (abbrev_table_free_cleanup): New function.
3940 (dwarf2_start_symtab): New function.
3941 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
3942 * buildsym.c (finish_block_internal): New arg "expandable".
3943 All callers updated.
3944 (start_symtab): Move most contents to ...
3945 (restart_symtab): ... here. New function.
3946 (reset_symtab_globals): New function.
3947 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
3948 Call reset_symtab_globals.
3949 (end_symtab, end_expandable_symtab): New functions.
3950 (set_missing_symtab, augment_type_symtab): New functions.
3951 * buildsym.h (end_expandable_symtab): Declare.
3952 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
3953 * psympriv.h (struct partial_symtab): New member "anonymous".
3954 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
3955 anonymous psymtabs.
3956 (read_psymtabs_with_filename): Ditto.
3957 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
3958 (expand_symtabs_matching_via_partial): Ditto.
3959 (dump_psymtab): Update.
0bfa869d
DE
3960 * dictionary.c (dict_add_pending): New function.
3961 * dictionary.h (dict_add_pending): Declare.
3962
45e58e77
DE
39632012-07-09 Doug Evans <dje@google.com>
3964
b74db436
DE
3965 * buildsym.c (start_subfile): Remove unnecessary check for
3966 name == NULL.
3967
fd55216c
DE
3968 * psymtab.c (allocate_psymtab): Use host_address_to_string.
3969
6721b2ec
DE
3970 * dwarf2read.c (load_full_type_unit): Simplify.
3971
b4dd5633
DE
3972 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
3973 to struct signatured_type **. All uses updated.
3974
45e58e77
DE
3975 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
3976 All callers updated.
3977
e314d629
TT
39782012-07-09 Tom Tromey <tromey@redhat.com>
3979
3980 * c-exp.y (check_parameter_typelist): New function.
3981 (parameter_typelist): Call it.
3982 * eval.c (make_params): Handle '(void)' case.
3983 * gdbtypes.c (lookup_function_type_with_arguments): Handle
3984 '(void)' case.
3985
aa7c7447
JK
39862012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3987
3988 * common/linux-ptrace.c: Include gdb_assert.h.
3989 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
3990 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
3991 stdint.h.
3992 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
3993 functions.
3994 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
3995 * linux-nat.c (linux_child_post_attach)
3996 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
3997
889003ed
JK
39982012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
3999
4000 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4001 nptl <2.7 bug workaround for core files.
4002
da559b09
JK
40032012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4004
4005 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4006 clearing.
4007 (save_siginfo): Remove.
4008 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4009 call.
4010 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4011 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4012 * linux-nat.h (struct lwp_info): Remove field siginfo.
4013
f865ee35
JK
40142012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4015
4016 Code cleanup for the next patch.
4017 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4018 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4019 call for it.
4020 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4021 (ia64_linux_stopped_data_address):
4022 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4023 the return value.
4024 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4025 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4026 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4027 call for it.
4028
76b83c51
JK
40292012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4030
4031 PR 14321
4032 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4033 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4034
a6fb9c08
TT
40352012-07-06 Tom Tromey <tromey@redhat.com>
4036
4037 * c-exp.y (DOTDOTDOT): New token.
4038 (func_mod, exp): Use parameter_typelist.
4039 (parameter_typelist): New production.
4040 (tokentab3): Add "..." token.
4041 * eval.c (make_params): Handle varargs.
4042 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4043 varargs.
4044
71918a86
TT
40452012-07-06 Tom Tromey <tromey@redhat.com>
4046
4047 PR exp/9608:
4048 * c-exp.y (%union) <tvec>: Change type.
4049 (func_mod): Now uses <tvec> type.
4050 (exp): Update for tvec change.
4051 (direct_abs_decl): Push the typelist.
4052 (func_mod): Return a typelist.
4053 (nonempty_typelist): Update for tvec change.
4054 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4055 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4056 * parse.c (pop_type_list): New function.
4057 (push_typelist): New function.
4058 (follow_types): Handle tp_function_with_arguments.
4059 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4060 (enum type_pieces) <tp_function_with_arguments>: New constant.
4061 (union type_stack_elt) <typelist_val>: New field.
4062 (push_typelist): Declare.
4063
fcde5961
TT
40642012-07-06 Tom Tromey <tromey@redhat.com>
4065
4066 * c-exp.y (%union) <type_stack>: New field.
4067 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4068 (ptr_operator_ts): New production.
4069 (ptype): Update.
4070 * parse.c (type_stack_reserve): New function.
4071 (check_type_stack_depth): Use it.
4072 (pop_type_stack, append_type_stack, push_type_stack)
4073 (get_type_stack, type_stack_cleanup): New functions.
4074 (follow_types): Handle tp_type_stack.
4075 (_initialize_parse): Simplify initialization.
4076 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4077 constant.
4078 (union type_stack_elt) <stack_val>: New field.
4079 (get_type_stack, append_type_stack, push_type_stack)
4080 (type_stack_cleanup): Declare.
4081
1a7d0ce4
TT
40822012-07-06 Tom Tromey <tromey@redhat.com>
4083
4084 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4085 Remove.
4086 (struct type_stack): New.
4087 * parse.c (type_stack, type_stack_size, type_stack_depth):
4088 Remove.
4089 (type_stack): New global.
4090 (parse_exp_in_context, check_type_stack_depth)
4091 (insert_into_type_stack, insert_type, push_type, push_type_int)
4092 (insert_type_address_space, pop_type, pop_type_int)
4093 (_initialize_parse): Update.
4094
16d01384
TT
40952012-07-06 Tom Tromey <tromey@redhat.com>
4096
4097 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4098 Remove %type.
4099
9bfc60bf
SP
41002012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4101
4102 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4103
d5161074
SP
41042012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4105 Jan Kratochvil <jan.kratochvil@redhat.com>
4106
4107 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4108 alloca with xmalloc/xfree.
4109
a74bc576
SP
41102012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4111
4112 * MAINTAINERS (Write After Approval): Add myself to the list.
4113
667e0a4b
DE
41142012-07-05 Doug Evans <dje@google.com>
4115
4116 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4117
34b536a8
HZ
41182012-07-05 Hui Zhu <hui_zhu@mentor.com>
4119
4120 * ax-gdb.c (cli/cli-utils.h): New include.
4121 (linespec.h): Ditto.
4122 (agent_eval_command_one): New function.
4123 (agent_command_1): Ditto.
4124 (agent_command): Call function agent_command_1.
4125 (agent_eval_command): Ditto.
4126 (_initialize_ax_gdb): Change help for "maint agent"
4127 and "maint agent-eval".
4128
e6f0bce7
HZ
41292012-07-05 Hui Zhu <hui_zhu@mentor.com>
4130
4131 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4132 * cli/cli-utils.c (check_for_argument): New function.
4133 * cli/cli-utils.h (check_for_argument): Ditto.
4134
1b3371b1
L
41352012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4136
4137 * NEWS: Mention x32 ABI support.
4138
23e2d720
L
41392012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4140
4141 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4142 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4143
4144 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4145 and pc_regnum_from_eax to -1. Update SP regnum from
4146 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4147 needed.
4148
4149 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4150 pc_regnum_from_eax.
4151
836bf454
JK
41522012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4153
4154 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4155 * dwarf2expr.h: Include gdbtypes.h.
4156 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4157 these forward declarations.
4158 (cu_offset, sect_offset): Move these ...
4159 * gdbtypes.h: Remove include dwarf2expr.h.
4160 (cu_offset, sect_offset): ... here.
4161
1e55e04f
L
41622012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4163
4164 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4165 (amd64_linux_sigtramp_code): This.
4166 (amd64_x32_linux_sigtramp_code): New.
4167 (LINUX_SIGTRAMP_LEN): Updated.
4168 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4169
7d0e21ad
JK
41702012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4171
4172 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4173
8775fd2d
JK
41742012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4175
4176 * config.in: Regenerate.
4177 * configure: Regenerate.
4178 * configure.ac: Remove check for gnu/libc-version.h.
4179 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4180 gnu/libc-version.h.
4181 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4182 variables libc_version, libc_major and libc_minor. Replace sscanf by
4183 inferior_has_bug. Extend the comment.
4184
fcb44371
JK
41852012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4186
4187 * linux-thread-db.c (inferior_has_bug): New function.
4188 (thread_db_find_new_threads_silently): Return boolean as checked by
4189 inferior_has_bug, describe it in the comments.
4190 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4191 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 4192 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
4193 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4194 if UNTIL_NO_NEW,
4195
09406207
DE
41962012-07-02 Doug Evans <dje@google.com>
4197
0907af0c
DE
4198 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4199 related to queue management.
4200
09406207
DE
4201 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4202 instead of "debug dwarf2-die" in debugging printfs.
4203 (create_debug_info_hash_table_reader): Ditto.
4204 (create_debug_info_hash_table): Ditto.
4205 (init_dwo_file): Ditto.
4206 (init_cutu_and_read_dies): Add debugging printf.
4207 (init_cutu_and_read_dies_no_follow): Ditto.
4208 (process_psymtab_comp_unit_reader): Ditto.
4209
d3ce09f5
SS
42102012-07-02 Stan Shebs <stan@codesourcery.com>
4211
4212 Add target-side support for dynamic printf.
4213 * NEWS: Mention the additional style.
4214 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4215 (struct bp_location): New field cmd_bytecode.
4216 * breakpoint.c: Include format.h.
4217 (disconnected_dprintf): New global.
4218 (parse_cmd_to_aexpr): New function.
4219 (build_target_command_list): New function.
4220 (insert_bp_location): Call it.
4221 (remove_breakpoints_pid): Skip dprintf breakpoints.
4222 (print_one_breakpoint_location): Ditto.
4223 (dprintf_style_agent): New global.
4224 (dprintf_style_enums): Add dprintf_style_agent.
4225 (update_dprintf_command_list): Add agent case.
4226 (agent_printf_command): New function.
4227 (_initialize_breakpoint): Add new commands.
4228 * common/ax.def (printf): New bytecode.
4229 * ax.h (ax_string): Declare.
4230 * ax-gdb.h (gen_printf): Declare.
4231 * ax-gdb.c: Include cli-utils.h, format.h.
4232 (gen_printf): New function.
4233 (maint_agent_print_command): New function.
4234 (_initialize_ax_gdb): Add maint agent-printf command.
4235 * ax-general.c (ax_string): New function.
4236 (ax_print): Add printf disassembly.
4237 * Makefile.in (SFILES): Add format.c
4238 (COMMON_OBS): Add format.o.
4239 * common/format.h: New file.
4240 * common/format.c: New file.
4241 * printcmd.c: Include format.h.
4242 (ui_printf): Call parse_format_string.
4243 * remote.c (remote_state): New field breakpoint_commands.
4244 (PACKET_BreakpointCommands): New enum.
4245 (remote_breakpoint_commands_feature): New function.
4246 (remote_protocol_features): Add new BreakpointCommands entry.
4247 (remote_can_run_breakpoint_commands): New function.
4248 (remote_add_target_side_commands): New function.
4249 (remote_insert_breakpoint): Call it.
4250 (remote_insert_hw_breakpoint): Ditto.
4251 (_initialize_remote): Add new packet configuration for
4252 target-side breakpoint commands.
4253 * target.h (struct target_ops): New field
4254 to_can_run_breakpoint_commands.
4255 (target_can_run_breakpoint_commands): New macro.
4256 * target.c (update_current_target): Handle
4257 to_can_run_breakpoint_commands.
4258
2d7b58e8
JK
42592012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4260
4261 Execute -ix and -iex only after system and user gdbinit files.
4262 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4263 processing down after gdbinit files.
4264
8690e634
JK
42652012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4266
4267 Add fnmatch-gnu module.
4268 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4269 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4270 * gnulib/aclocal.m4: Regenerate.
4271 * gnulib/config.in: Regenerate.
4272 * gnulib/configure: Regenerate.
4273 * gnulib/import/dummy.c: Remove.
4274 * gnulib/import/Makefile.am: Regenerate.
4275 * gnulib/import/Makefile.in: Likewise.
4276 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4277 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4278 * gnulib/import/alloca.c: New file.
4279 * gnulib/import/alloca.in.h: Likewise.
4280 * gnulib/import/config.charset: Likewise.
4281 * gnulib/import/fnmatch.c: Likewise.
4282 * gnulib/import/fnmatch.in.h: Likewise.
4283 * gnulib/import/fnmatch_loop.c: Likewise.
4284 * gnulib/import/localcharset.c: Likewise.
4285 * gnulib/import/localcharset.h: Likewise.
4286 * gnulib/import/m4/alloca.m4: Likewise.
4287 * gnulib/import/m4/codeset.m4: Likewise.
4288 * gnulib/import/m4/configmake.m4: Likewise.
4289 * gnulib/import/m4/fcntl-o.m4: Likewise.
4290 * gnulib/import/m4/fnmatch.m4: Likewise.
4291 * gnulib/import/m4/glibc21.m4: Likewise.
4292 * gnulib/import/m4/localcharset.m4: Likewise.
4293 * gnulib/import/m4/locale-fr.m4: Likewise.
4294 * gnulib/import/m4/locale-ja.m4: Likewise.
4295 * gnulib/import/m4/locale-zh.m4: Likewise.
4296 * gnulib/import/m4/mbrtowc.m4: Likewise.
4297 * gnulib/import/m4/mbsinit.m4: Likewise.
4298 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4299 * gnulib/import/m4/mbstate_t.m4: Likewise.
4300 * gnulib/import/m4/stdbool.m4: Likewise.
4301 * gnulib/import/m4/wchar_h.m4: Likewise.
4302 * gnulib/import/m4/wctype_h.m4: Likewise.
4303 * gnulib/import/m4/wint_t.m4: Likewise.
4304 * gnulib/import/mbrtowc.c: Likewise.
4305 * gnulib/import/mbsinit.c: Likewise.
4306 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4307 * gnulib/import/mbsrtowcs-state.c: Likewise.
4308 * gnulib/import/mbsrtowcs.c: Likewise.
4309 * gnulib/import/ref-add.sin: Likewise.
4310 * gnulib/import/ref-del.sin: Likewise.
4311 * gnulib/import/stdbool.in.h: Likewise.
4312 * gnulib/import/streq.h: Likewise.
4313 * gnulib/import/strnlen1.c: Likewise.
4314 * gnulib/import/strnlen1.h: Likewise.
4315 * gnulib/import/verify.h: Likewise.
4316 * gnulib/import/wchar.in.h: Likewise.
4317 * gnulib/import/wctype.in.h: Likewise.
4318
202cbf1c
JK
43192012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4320
4321 Support shell wildcards for 'set auto-load safe-path'.
4322 * auto-load.c: Include fnmatch.h.
4323 (filename_is_in_dir): Rename to ...
4324 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4325 it. Update function comment. Rename dir_len to pattern_len. New
4326 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4327 messages. Use gdb_filename_fnmatch.
4328 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4329 pattern.
4330 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4331 * defs.h (gdb_filename_fnmatch): New declaration.
4332 * utils.c: Include fnmatch.h.
4333 (gdb_filename_fnmatch): New function.
4334
fb7b5af4
SDJ
43352012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4336
4337 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4338 `-probe' and `-probe-stap' options.
4339
72d0e2c5
YQ
43402012-07-01 Yao Qi <yao@codesourcery.com>
4341
4342 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4343 always_inserted_off, and always_inserted_enums.
4344 Change always_inserted_mode's type to 'enum auto_boolean'.
4345 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4346 callers.
4347 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4348 of add_setshow_enum_cmd.
4349 * infrun.c: Remove can_use_displaced_stepping_auto,
4350 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4351 can_use_displaced_stepping_enum.
4352 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4353 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4354 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4355 add_setshow_enum_cmd.
4356
42e7ad6c
DE
43572012-06-30 Doug Evans <dje@google.com>
4358
4359 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4360 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4361 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4362
39cf75f7
DE
43632012-06-29 Doug Evans <dje@google.com>
4364
4365 * linespec.c: #include "stack.h".
4366 (decode_line_with_current_source): Moved here from symtab.c and
4367 renamed from decode_line_spec. All callers updated.
4368 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4369 renamed from decode_line_spec_1. All callers updated.
4370 * linespec.h (decode_line_with_current_source): Move declaration here
4371 from symtab.h and renamed from decode_line_spec.
4372 (decode_line_with_last_displayed): Move declaration here from symtab.h
4373 and renamed from decode_line_spec_1.
4374 * macrocmd.c: #include "linespec.h".
4375 * symtab.c: Remove #include "linespec.h".
4376
433df2d4
DE
43772012-06-28 Doug Evans <dje@google.com>
4378
1ce1cefd
DE
4379 * dwarf2read.c (get_cu_length): New function.
4380 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4381 (create_debug_types_hash_table): Ditto.
4382 (init_cutu_and_read_dies): Ditto.
4383 (init_cutu_and_read_dies_no_follow): Ditto.
4384
3b80fe9b
DE
4385 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4386
433df2d4
DE
4387 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4388 (struct abbrev_table): Define.
4389 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4390 abbrev_table.
4391 (init_cutu_and_read_dies): Update.
4392 (abbrev_table_alloc_abbrev): New function. Replaces
4393 dwarf_alloc_abbrev. All callers updated.
4394 (abbrev_table_add_abbrev): New function.
4395 (abbrev_table_lookup_abbrev): New function. Replaces
4396 dwarf2_lookup_abbrev. All callers updated.
4397 (abbrev_table_read_table): New function. Contents moved here from
4398 dwarf2_read_abbrevs.
4399 (dwarf2_read_abbrevs): Call it.
4400 (abbrev_table_free): New function.
4401 (dwarf2_free_abbrev_table): Call it.
4402
71caed83
SS
44032012-06-28 Stan Shebs <stan@codesourcery.com>
4404
4405 * osdata.c (info_osdata_command): Filter out "Title" columns
4406 from non-MI uses.
4407 * common/linux-osdata.c (struct osdata_type): Add title field.
4408 (osdata_table): Add titles to each entry.
4409 (linux_command_xfer_osdata): Add a column for title data.
4410
37ce89eb
SS
44112012-06-28 Stan Shebs <stan@codesourcery.com>
4412
4413 Make logging work for MI.
4414 * NEWS: Mention it.
4415 * interps.h (interp_set_logging_ftype): New typedef.
4416 (struct interp_procs): New field set_logging_proc.
4417 (current_interp_set_logging): Declare.
4418 * interps.c (current_interp_set_logging): New function.
4419 * cli/cli-logging.c: Include interps.h.
4420 (set_logging_redirect): Call current_interp_set_logging.
4421 (pop_output_files): Ditto.
4422 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4423 * mi/mi-console.h (mi_console_set_raw): Declare.
4424 * mi/mi-console.c (mi_console_set_raw): New function.
4425 * mi/mi-interp.c (saved_raw_stdout): New global.
4426 (mi_set_logging): New function.
4427 (_initialize_mi_interp): Add it to interp procs.
4428
659c9f3a
DE
44292012-06-28 Doug Evans <dje@google.com>
4430
a743abeb
DE
4431 * symtab.c (lookup_symbol_aux_objfile): Use
4432 ALL_OBJFILE_PRIMARY_SYMTABS.
4433
659c9f3a
DE
4434 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4435
da2d6d3d
JK
44362012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4437
4438 * common/buffer.c: Include inttypes.h and stdint.h.
4439 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4440
e5ef252a
PA
44412012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4442 Pedro Alves <palves@redhat.com>
4443
4444 * gdbthread.h (ALL_THREADS): New macro.
4445 (thread_list): Declare.
4446 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4447 going, but instead fall through to the stepping handling.
4448 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4449 the passed in signal. Adjust debug output.
4450 (resume_callback): Rename to ...
4451 (linux_nat_resume_callback): ... this. Pass the thread's last
4452 stop signal, if in "pass" state.
4453 (linux_nat_resume): Adjust to rename.
4454 (stop_wait_callback): New assertion. Don't respawn signals;
4455 instead let the LWP remain with SIGNALLED set.
4456 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4457 * remote.c (append_pending_thread_resumptions): New.
4458 (remote_vcont_resume): Call it.
4459 * target.h (target_resume): Extend comment.
4460
1d7975eb
IS
44612012-06-28 Iain Sandoe <iain@codesourcery.com>
4462
4463 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4464
2e3cf129
DE
44652012-06-27 Doug Evans <dje@google.com>
4466
4467 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4468 Delete have_addr_base, unused. All uses updated.
4469 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4470 (dwarf2_get_pc_bounds): Add ranges_base.
4471 (dwarf2_record_block_ranges): Ditto.
4472
1bb9788d
TT
44732012-06-27 Tom Tromey <tromey@redhat.com>
4474
4475 PR macros/7961:
4476 * varobj.c (varobj_create): Update.
4477 (varobj_set_value): Update.
4478 * tracepoint.c (validate_actionline): Update.
4479 (encode_actions_1): Update.
4480 * parse.c (parse_exp_1): Add 'pc' argument.
4481 (parse_exp_in_context): Add 'pc' argument. Change how
4482 expression_context_pc is set.
4483 (parse_expression): Update.
4484 (parse_field_expression): Update.
4485 * expression.h (parse_exp_1): Update.
4486 * eval.c (parse_to_comma_and_eval): Update.
4487 * breakpoint.c (set_breakpoint_condition): Update.
4488 (update_watchpoint): Update.
4489 (init_breakpoint_sal): Update
4490 (find_condition_and_thread): Update.
4491 (watch_command_1): Update.
4492 (update_breakpoint_locations): Update.
4493 * ada-lang.c (ada_read_renaming_var_value): Update.
4494 (create_excep_cond_exprs): Update.
4495
0bc3a05c
DE
44962012-06-27 Doug Evans <dje@google.com>
4497
4498 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4499 type units.
4500
4bdcc0c1
DE
45012012-06-26 Doug Evans <dje@google.com>
4502
4503 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4504 prototype.
4505 (error_check_comp_unit_head): New arg abbrev_section. All callers
4506 updated.
4507 (read_and_check_comp_unit_head): Ditto.
4508 (read_and_check_type_unit_head): Ditto.
4509
ee0bf529
SCR
45102012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4511
4512 New attribute 'last' for gdb.Symtab_and_line.
4513 * NEWS (Python Scripting): Add entry about the new attribute.
4514 * python/py-symtab.c (salpy_get_last): New function which
4515 implements the get method for the 'last' attribute of
4516 gdb.Symtab_and_line.
4517 (sal_object_getset): Add entry for the 'last' attribute.
4518
1c658ad5
DE
45192012-06-26 Doug Evans <dje@google.com>
4520
09262596
DE
4521 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4522 (dwo_sections): Add macinfo, macro.
4523 (dwarf2_locate_dwo_sections): Watch for macro sections.
4524 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4525 All callers updated. Handle DWO files.
4526
45cfd468
DE
4527 * NEWS: Mention new options "set debug dwarf2-read" and
4528 "set debug symtab-create".
4529 * dwarf2read.c (dwarf2_read_debug): New static global.
4530 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4531 (process_queue): Ditto.
4532 (process_full_comp_unit): Ditto.
4533 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4534 * elfread.c (elf_symfile_read): Add debugging printf.
4535 * minsyms.c (install_minimal_symbols): Ditto.
4536 * psymtab.c (allocate_psymtab): Ditto.
4537 * symfile.c (allocate_symtab): Ditto.
4538 * symtab.c (symtab_create_debug): New global.
4539 (_initialize_symtab): Add new option "set debug symtab-create".
4540 * symtab.h (symtab_create_debug): Declare.
4541
1c658ad5
DE
4542 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4543 (lookup_dwo_type_unit): Ditto.
4544
6fea9e18
L
45452012-06-26 Roland McGrath <roland@hack.frob.com>
4546 H.J. Lu <hongjiu.lu@intel.com>
4547
4548 * amd64-linux-nat.c: Include <sys/user.h>.
4549 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4550 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4551 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4552
4553 * configure.ac: Check if the fs_base and gs_base members of
4554 `struct user_regs_struct' exist.
4555 * config.in: Regenerated.
4556 * configure: Likewise.
4557
adb4fe3b
ME
45582012-06-25 Michael Eager <eager@eagercon.com>
4559
4560 PR python/14291
f782ad9b 4561 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 4562
fc51cce1
MGD
45632012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4564
4565 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4566 register as a stack alignment in ARM mode.
4567
40a73391
JK
45682012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4569
4570 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4571 * gnulib/config.in: Regenerate.
4572 * gnulib/configure: Likewise.
4573 * gnulib/import/m4/extensions.m4: Update it.
4574 * gnulib/import/m4/gnulib-common.m4: Likewise.
4575 * gnulib/import/m4/memmem.m4: Likewise.
4576 * gnulib/import/m4/mmap-anon.m4: Likewise.
4577 * gnulib/import/m4/multiarch.m4: Likewise.
4578 * gnulib/import/stdint.in.h: Likewise.
4579
972daa01
YQ
45802012-06-24 Yao Qi <yao@codesourcery.com>
4581
4582 * corefile.c (write_memory_with_notification): New.
4583 * gdbcore.h: Declare write_memory_with_notification.
4584 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4585 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4586 * valops.c (value_assign): Likewise.
4587 * python/py-inferior.c (infpy_write_memory): Call
4588 'write_memory_with_notification'.
4589
8d6e0714
JK
45902012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4591
4592 * cc-with-index.sh: Use also -ex "set auto-load no".
4593
156942c7
DE
45942012-06-23 Doug Evans <dje@google.com>
4595
4596 PR 14125
4597 * NEWS: Document additions to .gdb_index.
4598 * dwarf2read.c: #include "gdb/gdb-index.h".
4599 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4600 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4601 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4602 (dwarf2_read_index): Recognize version 7.
4603 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4604 block_kind, domain): All callers updated.
4605 (dw2_find_symbol_file): Handle new index CU values.
4606 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4607 (add_index_entry): New args is_static, kind. All callers updated.
4608 (offset_type_compare, uniquify_cu_indices): New functions
4609 (symbol_kind): New function.
4610 (write_psymtabs_to_index): Remove duplicate CU values.
4611 (write_psymtabs_to_index): Write .gdb_index version 7.
4612
352b3eda
JB
46132012-06-22 Joel Brobecker <brobecker@adacore.com>
4614
4615 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4616 * configure: Regenerate.
4617
2678e2af
YQ
46182012-06-20 Yao Qi <yao@codesourcery.com>
4619
4620 * python/py-inferior.c: Update comments of infpy_read_memory
4621 and infpy_write_memory.
4622
95c391b6
TT
46232012-06-19 Tom Tromey <tromey@redhat.com>
4624
4625 PR exp/9514:
4626 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4627 (push_type_address_space): Remove.
4628 * parse.c (insert_into_type_stack): New function.
4629 (insert_type): Likewise.
4630 (insert_type_address_space): Rename from push_type_address_space.
4631 Insert tp_space_identifier.
4632 * c-exp.y (ptr_operator): New production.
4633 (abs_decl): Use ptr_operator.
4634 (space_identifier): Call insert_type_address_space.
4635 (ptype): Don't use const_or_volatile_or_space_identifier.
4636 (const_or_volatile_noopt): Call insert_type.
4637 (conversion_type_id, conversion_declarator): New productions.
4638 (operator): Use conversion_type_id.
4639
6ac9ef80
DE
46402012-06-18 Doug Evans <dje@google.com>
4641
422d65e7
DE
4642 * symtab.h (minimal_symbol): New member created_by_gdb.
4643 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4644 created by gdb.
4645 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4646 (search_symbols): Call it instead of lookup_symbol.
4647 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4648
49f6c839
DE
4649 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4650 Adjust address for DW_OP_GNU_addr_index.
4651 * dwarf2expr.h (dwarf_expr_context): Update comment.
4652 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4653 all callers updated. Handle TLS vars described with
4654 DW_OP_GNU_const_index.
4655 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4656 and DW_OP_GNU_const_index.
4657 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4658
6ac9ef80
DE
4659 * block.c (find_block_in_blockvector): Make explicit the fact that we
4660 ignore GLOBAL_BLOCK.
4661
4cd18215
TT
46622012-06-18 Tom Tromey <tromey@redhat.com>
4663
4664 * c-exp.y (operator): Remove trailing space after "delete" and
4665 "delete[]".
4666
a9b8d892
JK
46672012-06-18 Mark Kettenis <kettenis@gnu.org>
4668 Jan Kratochvil <jan.kratochvil@redhat.com>
4669
4670 Switch i386 and derived targets to ON_STACK.
4671 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4672 (amd64_dicos_init_abi): Remove its installment.
4673 * dicos-tdep.c (dicos_init_abi): Remove the
4674 set_gdbarch_call_dummy_location call. Update the comment here.
4675 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4676 (i386_dicos_init_abi): Remove its installment.
4677 * i386-tdep.c (i386_push_dummy_code): New function.
4678 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4679 i386_push_dummy_code.
4680
e2e4d78b
JK
46812012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4682
4683 Remove stale dummy frames.
4684 * breakpoint.c: Include dummy-frame.h.
4685 (longjmp_breakpoint_ops): New variable.
4686 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4687 bp_longjmp_call_dummy.
4688 (bpstat_what, bptype_string, print_one_breakpoint_location)
4689 (init_bp_location): Support bp_longjmp_call_dummy.
4690 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4691 (set_longjmp_breakpoint_for_call_dummy)
4692 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4693 functions.
4694 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4695 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4696 FIXME comment and extend the other comment for bp_call_dummy.
4697 (set_longjmp_breakpoint_for_call_dummy)
4698 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4699 * dummy-frame.c: Include gdbthread.h.
4700 (pop_dummy_frame_bpt): New function.
4701 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4702 (dummy_frame_discard): New function.
4703 (cleanup_dummy_frames): Update the comment about longjmps.
4704 * dummy-frame.h (dummy_frame_discard): New declaration.
4705 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4706 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4707 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4708 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4709 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4710 keep_going if IS_LONGJMP and there is no other reason to stop.
4711
09d5912c
TT
47122012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4713
4714 * remote-sim.c (sim_command_completer): Initialize
4715 variable 'result'.
4716
1788b2d3
JK
47172012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4718
4719 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4720 * dwarf2loc.c (call_site_parameter_matches): Support
4721 CALL_SITE_PARAMETER_PARAM_OFFSET.
4722 (needs_dwarf_reg_entry_value): Push stub value.
4723 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4724 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4725 * gdbtypes.h (enum call_site_parameter_kind): New item
4726 CALL_SITE_PARAMETER_PARAM_OFFSET.
4727 (struct call_site.parameter.u): New field param_offset.
4728
24c5c679
JK
47292012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4730
4731 Code cleanup: Generalize call_site.parameter key.
4732 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4733 variable dwarf_reg. New variable kind_u. Update parameters to
4734 push_dwarf_reg_entry_value.
4735 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4736 * dwarf2expr.h (enum call_site_parameter_kind)
4737 (union call_site_parameter_u): Forward declarations.
4738 (struct dwarf_expr_context_funcs): Update parameters and their
4739 description for push_dwarf_reg_entry_value.
4740 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4741 * dwarf2loc.c (call_site_parameter_matches): New function.
4742 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4743 description. Use call_site_parameter_matches.
4744 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4745 Update parameters and their description.
4746 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4747 New variable kind_u. Adjust the caller for updated parameters.
4748 (needs_dwarf_reg_entry_value): Update parameters.
4749 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4750 instead of attr. Update for the changed fields of struct
4751 call_site_parameter.
4752 * gdbtypes.h: Include dwarf2expr.h.
4753 (enum call_site_parameter_kind): New.
4754 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4755 fb_offset into new union u.
4756
ac142d96
L
47572012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4758
4759 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4760 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4761 for x32.
4762
ba224c70
L
47632012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4764
4765 * amd64-linux-nat.c (compat_x32_clock_t): New.
4766 (compat_x32_siginfo_t): Likewise.
4767 (compat_x32_siginfo_from_siginfo): Likewise.
4768 (siginfo_from_compat_x32_siginfo): Likewise.
4769 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4770 and siginfo_from_compat_x32_siginfo for x32.
4771
7ecbc825
HZ
47722012-06-15 Hui Zhu <hui_zhu@mentor.com>
4773
4774 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4775
233dfcf0
L
47762012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4777
4778 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4779 instead of gdbarch_ptr_bit.
4780 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4781 (amd64_supply_native_gregset): Likewise.
4782 (amd64_collect_native_gregset): Likewise.
4783 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4784 (amd64_supply_xsave): Likewise.
4785 (amd64_collect_fxsave): Likewise.
4786 (amd64_collect_xsave): Likewise.
4787
6da38f42
L
47882012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4789
4790 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4791 (amd64_linux_read_description): Check DS segment register for
4792 x32 process.
4793
663b969e
TT
47942012-06-15 Tom Tromey <tromey@redhat.com>
4795
4796 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4797 init_cutu_and_read_dies.
4798
d6f05027
IS
47992012-06-15 Iain Sandoe <iain@codesourcery.com>
4800
4801 * MAINTAINERS (Write After Approval): Add myself to the list.
4802
6598ed07
TT
48032012-06-15 Tom Tromey <tromey@redhat.com>
4804
4805 * valops.c (value_find_oload_method_list): Now static.
4806 * value.h (value_find_oload_method_list): Don't declare.
4807
2b214ea6
TT
48082012-06-15 Tom Tromey <tromey@redhat.com>
4809
4810 * valops.c (find_overload_match): Use value_ind.
4811
a210c238
MR
48122012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4813
4814 * infrun.c (handle_inferior_event): Correct indentation.
4815
3771a44c
DE
48162012-06-14 Doug Evans <dje@google.com>
4817
4818 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4819 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4820 All uses updated.
4821 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4822 updated. Handle DEBUG_LOC_START_LENGTH.
4823 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4824 (loclist_describe_location): Ditto.
4825
1c5a993e
MR
48262012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4827
4828 PR backtrace/13866
4829 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4830 after hiding inline functions.
4831
0b155465
JB
48322012-06-13 Joel Brobecker <brobecker@adacore.com>
4833
4834 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4835 _initialize_inf_ttrace.
4836
45717bac
JB
48372012-06-13 Joel Brobecker <brobecker@adacore.com>
4838
4839 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4840 _initialize_hppa_hpux_nat.
4841
34370865
JB
48422012-06-13 Joel Brobecker <brobecker@adacore.com>
4843
4844 * remote-sim.c (sim_command_completer): Change type of return
4845 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4846
284c5a60
MK
48472012-06-13 Mark Kettenis <kettenis@gnu.org>
4848 Jan Kratochvil <jan.kratochvil@redhat.com>
4849
4850 PR tdep/14222
4851 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4852 stack on a 16-byte boundary.
4853
2535757a
TT
48542012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4855
4856 * jit.c (finalize_symtab): Set function's return type to 'void' by
4857 default.
4858
fff4548b
MK
48592012-06-13 Mark Kettenis <kettenis@gnu.org>
4860 H.J. Lu <hongjiu.lu@intel.com>
4861
5a83521a
MK
4862 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4863 Move bits common to both the classic LP64 and the new x32 ILP32
4864 ABI here.
4865 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4866 (amd64_x32_linux_init_abi): New function.
4867 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4868 subtype.
4869
fff4548b
MK
4870 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4871 * i386-tdep.c (i386_pseudo_register_name): Make public.
4872 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4873 * amd64-tdep.c (amd64_dword_names): Add "eip".
4874 (amd64_x32_pseudo_register_type): New function
4875 (amd64_x32_init_abi): New function.
4876
dd80ea3c
JK
48772012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4878
4879 PR build/14003
4880 * inferior.h (struct inferior_suspend_state): Comment out.
4881 (struct inferior): Comment out the field suspend.
4882 * infrun.c (struct infcall_suspend_state): Comment out the field
4883 inferior_suspend.
4884 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
4885 out its assignment.
4886
50af5481
JK
48872012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4888
4889 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
4890 * c-exp.y (classify_inner_name): Remove caller assumptions in the
4891 function comment. Return ERROR for unresolved cases. Implement
4892 returning proper NAME.
4893 (yylex): Accept also NAME from classify_inner_name.
4894 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
4895 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
4896 LOC_TYPEDEF type.
4897 * cp-support.h (cp_lookup_nested_type): Update its declaration.
4898
d55637df
TT
48992012-06-13 Tom Tromey <tromey@redhat.com>
4900
4901 * breakpoint.c (condition_completer): New function.
4902 (_initialize_breakpoint): Use it.
4903 * value.c (complete_internalvar): New function.
4904 * value.h (complete_internalvar): Declare.
4905
49c4e619
TT
49062012-06-13 Tom Tromey <tromey@redhat.com>
4907
4908 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
4909 * breakpoint.c (catch_syscall_completer): Return a VEC.
4910 * cli/cli-cmds.c (complete_command): Update.
4911 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
4912 (complete_on_enum): Likewise.
4913 * command.h: Include gdb_vecs.h.
4914 (completer_ftype): Change return type.
4915 (complete_on_cmdlist, complete_on_enum): Likewise.
4916 * completer.c (noop_completer, filename_completer)
4917 (location_completer): Return a VEC.
4918 (add_struct_fields): Remove 'nextp' argument. Change 'output'
4919 to a VEC.
4920 (expression_completer, complete_line_internal, complete_line)
4921 (command_completer): Return a VEC.
4922 (gdb_completion_word_break_characters, line_completion_function):
4923 Update.
4924 * completer.h: Include gdb_vecs.h.
4925 (complete_line, noop_completer, filename_completer)
4926 (expression_completer, location_completer, command_completer):
4927 Update.
4928 * f-lang.c (f_word_break_characters): Return a VEC.
4929 * interps.c (interpreter_completer): Return a VEC.
4930 * language.h (struct language_defn)
4931 <la_make_symbol_completion_list>: Return a VEC.
4932 * python/py-cmd.c (cmdpy_completer): Return a VEC.
4933 * symtab.c (free_completion_list): Take a VEC.
4934 (return_val_size, return_val_index): Remove.
4935 (return_val): Now a VEC.
4936 (completion_list_add_name): Update.
4937 (default_make_symbol_completion_list_break_on)
4938 (default_make_symbol_completion_list, make_symbol_completion_list)
4939 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
4940 Return a VEC.
4941 (add_filename_to_list): Update.
4942 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
4943 <list>: Now a VEC.
4944 (maybe_add_partial_symtab_filename): Update.
4945 (make_source_files_completion_list): Return a VEC.
4946 * symtab.h (default_make_symbol_completion_list_break_on)
4947 (default_make_symbol_completion_list, make_symbol_completion_list)
4948 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
4949 (make_source_files_completion_list): Update.
4950
625e8578
TT
49512012-06-13 Tom Tromey <tromey@redhat.com>
4952
4953 * breakpoint.c (add_catch_command): Use completer_ftype.
4954 * breakpoint.h: Include command.h.
4955 (add_catch_command): Use completer_ftype.
4956 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
4957 * cli/cli-decode.h (struct cmd_list_element) <completer>:
4958 Use completer_ftype.
4959 * command.h (completer_ftype): New typedef.
4960 (set_cmd_completer): Use it.
4961 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
4962 completer_ftype.
4963
5eb3b062
PA
49642012-06-13 Pedro Alves <palves@redhat.com>
4965
4966 Partial revert of previous change.
4967
4968 * serial.c (scb_base): New global.
4969 (serial_for_fd): New.
4970 (serial_open, serial_fdopen_ops): Link new serial in open serials
4971 chain.
4972 (do_serial_close): Unlink serial from the open serials chain.
4973
8b3ee56d
PA
49742012-06-12 Pedro Alves <palves@redhat.com>
4975
4976 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
4977 threads here.
4978 (prepare_for_detach): No longer context switch here in non-stop
4979 mode.
4980 (fetch_inferior_event): Ditto.
4981 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
4982 to the event thread before removing breakpoints. Switch to the
4983 event thread before inserting breakpoints and resuming.
4984 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
4985 event thread before resuming.
4986 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
4987 Switch to the event thread before removing breakpoints.
4988
5d60742e
EZ
49892012-06-12 Eli Zaretskii <eliz@gnu.org>
4990
4991 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
4992 special characters correctly for the Windows shells. See
4993 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
4994 report.
4995 [!__MINGW32__]: Remove extra double quote character from special
4996 characters.
4997
a6feecf7
SS
49982012-06-11 Stan Shebs <stan@codesourcery.com>
4999
5000 * ui-out.h: Remove #if 0 declarations.
5001 * ui-out.c: Remove #if 0 functions.
5002
ddefb60f
PA
50032012-06-11 Pedro Alves <palves@redhat.com>
5004
5005 * ser-base.c (run_async_handler_and_reschedule): New.
5006 (fd_event, push_event): Use it.
5007 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5008 reference count to 1.
5009 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5010 instead of xfree.
5011 (serial_is_open, serial_ref, serial_unref): New.
5012 * serial.h (serial_open): Adjust comment.
5013 (serial_is_open): Declare.
5014 (serial_close): Adjust comment.
5015 (serial_ref, serial_unref) Declare.
5016 (struct serial): New field 'refcnt'.
5017
d5ad6aa5
PA
50182012-06-11 Pedro Alves <palves@redhat.com>
5019
5020 Remove #if 0'd "connect" command, and unnecessary associated
5021 refcounting and serial reuse bits.
5022
5023 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5024 * serial.c (last_serial_opened): Delete.
5025 (scb_base): Delete.
5026 (serial_open): Adjust.
5027 (serial_for_fd): Delete.
5028 (serial_fdopen_ops, do_serial_close): Adjust.
5029 (serial_fdopen_ops): Adjust.
5030
318aa544
PA
50312012-06-11 Pedro Alves <palves@redhat.com>
5032
5033 * serial.c (do_serial_close): Remove early return when SCB is
5034 null.
5035
07261596
TT
50362012-06-11 Tom Tromey <tromey@redhat.com>
5037
5038 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5039
cc80f267
JK
50402012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5041
5042 Fix regression by the "ambiguous linespec" series.
5043 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5044 get_last_displayed_symtab and get_last_displayed_line and depending
5045 on CURSAL.
5046
356d9f9d
TT
50472012-06-11 Tom Tromey <tromey@redhat.com>
5048
5049 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5050 (dw2_find_symbol_file): Use it.
5051
232b8704
ME
50522012-06-11 Michael Eager <eager@eagercon.com>
5053
5054 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5055 * mips-linux-tdep.h (mips_signals): New
5056
e81a37f7
TT
50572012-06-11 Tom Tromey <tromey@redhat.com>
5058
5059 * infrun.c (handle_inferior_event)
5060 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5061 breakpoint.
5062 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5063 exception logic in all cases. Update comments.
5064 (insert_longjmp_resume_breakpoint): Set the exception resume
5065 breakpoint.
5066
2e81047f
MR
50672012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5068
5069 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5070
4e32eda7
SCR
50712012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5072
5073 * valarith.c (binop_types_user_defined_p): Fix a typo.
5074
18648a37 50752012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 5076 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
5077
5078 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5079 * arch-utils.h: Declare.
5080 * gdbarch.sh: Add return_in_first_hidden_param_p.
5081 * gdbarch.c, gdbarch.h: Regenerated.
5082 * infcall.c (call_function_by_hand): Call
5083 gdbarch_return_in_first_hidden_param_p instead of
5084 language_pass_by_reference.
5085
5086 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5087 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5088 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5089 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5090 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5091 `cplus_return_struct_by_reference'.
5092 (tic6x_return_value): Handle language cplusplus.
5093 (tic6x_return_in_first_hidden_param_p): New.
5094 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5095
034e5797
DE
50962012-06-07 Doug Evans <dje@google.com>
5097
5098 * dwarf2read.c (dwarf2_cu): Add comment.
5099
6a00aa1e
MR
51002012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5101
5102 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5103 variable.
5104 (mips_eabi_push_dummy_call): Likewise.
5105 (mips_n32n64_push_dummy_call): Likewise.
5106 (mips_o32_push_dummy_call): Likewise.
5107 (mips_o64_push_dummy_call): Likewise.
5108
eaa05d59
MR
51092012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5110
5111 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5112
de13fcf2
MR
51132012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5114
5115 * mips-tdep.c (mips_pseudo_register_type): Use
5116 mips_float_register_p.
5117
c3a01a22
PA
51182012-06-06 Pedro Alves <palves@redhat.com>
5119
5120 * infrun.c (handle_inferior_event): Remove calls to
5121 reinit_frame_cache that follow a context_switch call.
5122
d25f45d9
PA
51232012-06-06 Pedro Alves <palves@redhat.com>
5124
5125 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5126 context_switch and remove stale comment.
5127
359f5fe6
PA
51282012-06-06 Pedro Alves <palves@redhat.com>
5129
5130 * infrun.c (struct execution_control_state): Remove
5131 `new_thread_event' field.
5132 (handle_inferior_event): Simplify new threads handling; don't
5133 resume the inferior if we find a new thread.
5134
2d4c29c5
TS
51352012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5136
5137 * NEWS: Document the deprecation of SH's 'regs' command.
5138 * inferior.h (all_registers_info): Add function declaration.
5139 * sh-tdep.c (sh_show_regs): Remove variable.
5140 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5141 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5142 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5143 (sh_show_regs_command): Remove functions.
5144 (sh_gdbarch_init): Don't set sh_show_regs.
5145 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5146 'info all-registers'.
5147 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5148 (sh64_show_regs): Remove functions.
5149 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5150
f5f1cdb6
JK
51512012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5152
5153 * configure.ac: Move development=true below AC_INIT.
5154 * configure: Regenerate.
5155
bf6309af
SS
51562012-06-05 Stan Shebs <stan@codesourcery.com>
5157
5158 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5159 gdb_stdout.
5160
45aa4659
JK
51612012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5162
5163 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5164 argument as ssize_t.
5165 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5166 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5167 * target.c (target_read_stack, target_write_memory)
5168 (target_write_raw_memory): Likewise.
5169 * target.h (target_read_stack, target_write_memory)
5170 (target_write_raw_memory): Likewise.
5171
1b162304
JK
51722012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5173
5174 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5175 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5176 * target.c (target_read_memory): Change LEN to ssize_t.
5177 * target.h (target_read_memory): Change LEN to ssize_t.
5178
8556afb4
PA
51792012-06-05 Pedro Alves <palves@redhat.com>
5180
5181 PR backtrace/13866
5182
5183 * breakpoint.c (until_break_command): Only fetch the selected
5184 frame after decode_line_1.
5185
fb139f32
PA
51862012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5187
5188 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5189 event breakpoint at _start, __start or main if a program
5190 interpreter is not found.
5191
a8e1bb34
JB
51922012-06-05 Joel Brobecker <brobecker@adacore.com>
5193
5194 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5195 Add declaration.
5196 * windows-tdep.c: #include "objfiles.h".
5197 (windows_iterate_over_objfiles_in_search_order): New function.
5198 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5199 iterate_over_objfiles_in_search_order gdbarch method to
5200 windows_iterate_over_objfiles_in_search_order.
5201 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5202
19630284
JB
52032012-06-05 Joel Brobecker <brobecker@adacore.com>
5204
5205 * gdbarch.sh: Add generation of
5206 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5207 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5208 (iterate_over_objfiles_in_search_order): New gdbarch method.
5209 * gdbarch.h, gdbarch.c: Regenerate.
5210 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5211 Add declaration.
5212 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5213 New function.
5214 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5215 out of lookup_symbol_aux_symtabs.
5216 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5217 call to lookup_symbol_aux_objfile.
5218 (struct global_sym_lookup_data): New type.
5219 (lookup_symbol_global_iterator_cb): New function.
5220 (lookup_symbol_global): Search for symbol using
5221 gdbarch_iterate_over_objfiles_in_search_order and
5222 lookup_symbol_global_iterator_cb.
5223 * findvar.c (struct minsym_lookup_data): New type.
5224 (minsym_lookup_iterator_cb): New function.
5225 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5226 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5227 and minsym_lookup_iterator_cb.
5228
67ff19f7
JB
52292012-06-05 Joel Brobecker <brobecker@adacore.com>
5230
5231 Revert the following patch:
5232 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5233 try locating the symbol in the symbol's own objfile first, before
5234 extending the search to all objfiles.
5235 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5236 out of lookup_symbol_aux_symtabs.
5237 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5238 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5239 Do not search EXCLUDE_OBJFILE.
5240 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5241 (lookup_symbol_global): Search for matches in the block's objfile
5242 first, before searching all other objfiles.
5243
ccab2054
JB
52442012-06-05 Joel Brobecker <brobecker@adacore.com>
5245
5246 * breakpoint.c (find_condition_and_thread): Stop parsing
5247 as soon as the first invalid keyword is found.
5248
e23d4a9c
JB
52492012-06-05 Joel Brobecker <brobecker@adacore.com>
5250
5251 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5252
70160166
JB
52532012-06-05 Joel Brobecker <brobecker@adacore.com>
5254
5255 * config/djgpp/djcheck.sh: Add copyright header.
5256
399501a5
JB
52572012-06-05 Joel Brobecker <brobecker@adacore.com>
5258
5259 * copyright.py (update_files, main): Fix path to update-copyright
5260 script.
5261
3770a159
JB
52622012-06-05 Joel Brobecker <brobecker@adacore.com>
5263
5264 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5265 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5266 for which a reminder to update by hand is printed.
5267
4aad0dfc
DE
52682012-06-04 Doug Evans <dje@google.com>
5269
5270 * buildsym.c (make_blockvector): Add comment.
5271
1f8cf220
PA
52722012-06-04 Pedro Alves <palves@redhat.com>
5273
5274 * arch-utils.c (default_gdb_signal_from_target): Delete.
5275 * arch-utils.h (default_gdb_signal_from_target): Delete.
5276 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5277 gdbarch_gdb_signal_from_target_p.
5278 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5279 predicate).
5280 * gdbarch.h: Regenerate.
5281 * gdbarch.c: Regenerate.
5282
86b49880
PA
52832012-06-04 Pedro Alves <palves@redhat.com>
5284
5285 * gdbarch.sh (gdb_signal_from_target): Mention that the
5286 implementation of the method must be host independent.
5287 * gdbarch.h: Regenerate.
5288
fe78531d
JK
52892012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5290
5291 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5292 parameters.
5293 (target_read_memory_bfd): New function.
5294 (symbol_file_add_from_memory): Use it.
5295
d790cf0a
DE
52962012-06-03 Doug Evans <dje@google.com>
5297
78e5175a
DE
5298 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5299 of primary symtab.
5300 (basic_lookup_transparent_type): Ditto.
5301
d790cf0a
DE
5302 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5303 (ALL_PRIMARY_SYMTABS): Use it.
5304 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5305 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5306 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5307 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5308 (basic_lookup_transparent_type): Ditto.
5309
c6e5ee5e
SDJ
53102012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5311
5312 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5313 it to optimize resolution of demangled name.
5314
a68ffae9
JK
53152012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5316
5317 * configure.ac (development): Define new variable.
5318 Call AC_CHECK_LIB for mcheck if $development.
5319 (ERROR_ON_WARNING): Enable it by default only if $development.
5320 * config.in: Regenerate.
5321 * configure: Regenerate.
5322
5299c1c4
JK
53232012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5324
5325 * target.c (target_read_memory): Make LEN argument as size_t.
5326 * target.h (target_read_memory): Likewise.
5327
53282012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
5329
5330 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5331
0c56f59b
EBM
53322012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5333
5334 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5335 BookE interface for PowerPC server processors if not available
5336 in the Linux Kernel.
5337
71bdabee
KS
53382012-05-31 Keith Seitz <keiths@redhat.com>
5339
5340 * linespec.c (decode_objc): Add cleanup to free
5341 INFO.FILE_SYMTABS.
5342 (find_linespec_symbols): Add cleanup to free CLASSES.
5343 * symfile.c (find_separate_debug_file_by_debuglink): Add
5344 cleanup to free DEBUGLINK.
5345 * ui-out.c (clear_header_list): No need to check if
5346 HEADER_NEXT.COLHDR is NULL.
5347 Free HEADER_NEXT.COL_NAME.
5348
acbd605d
MGD
53492012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5350
5351 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5352 warning.
5353
65662cde
PA
53542012-05-30 Jeff Kenton <jkenton@tilera.com>
5355
5356 * configure.host (gdb_host_cpu): Handle tilegx*.
5357 (gdb_host): Handle tilegx-*-linux*.
5358 * tilegx-linux-nat.c: New file.
5359 * config/tilegx/linux.mh: New file.
5360
ade64f0e
PA
53612012-05-30 Jeff Kenton <jkenton@tilera.com>
5362
5363 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5364 tilegx-linux-tdep.o.
5365 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5366 tilegx-linux-tdep.c.
5367 * configure.tgt: Handle tilegx-*-linux*.
5368 * tilegx-tdep.h: New file.
5369 * tilegx-tdep.c: New file.
5370 * tilegx-linux-tdep.c: New file.
5371 * regformats/reg-tilegx.dat: New file.
5372
bb08bdbd
EBM
53732012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5374
5375 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5376 accounting of hw watchpoints on ppc.
5377
ebd86fb5
TJB
53782012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5379
5380 * source.c (openp): Expand tilde in path entries.
5381
0a0edcd5
DE
53822012-05-29 Doug Evans <dje@google.com>
5383
98cc87bd
DE
5384 * buildsym.c (block_compar): Fix comment.
5385 (end_symtab): Fix and clarify some comments.
5386
0a0edcd5
DE
5387 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5388 cleanup_undefined_types.
5389 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5390 All callers updated.
5391
6f0c7050
TT
53922012-05-29 Tom Tromey <tromey@redhat.com>
5393
5394 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5395 fails.
5396 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5397 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5398 fails.
5399 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5400 fails.
5401
ec95993c
TG
54022012-05-29 Tristan Gingold <gingold@adacore.com>
5403
5404 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5405 (struct darwin_info): ... New struct.
5406 (solib_darwin_pspace_data): New variable.
5407 (darwin_pspace_data_cleanup): New function.
5408 (get_darwin_info): Likewise.
5409 (darwin_dyld_version_ok, darwin_load_image_infos)
5410 (darwin_solib_get_all_image_info_addr_at_init)
5411 (darwin_solib_read_all_image_info_addr): Add info argument.
5412 Adjust code.
5413 (darwin_current_sos): Use per pspace structure.
5414 (darwin_solib_create_inferior_hook): Likewise.
5415 (darwin_clear_solib): Likewise.
5416 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5417
ae25568b
PA
54182012-05-28 Pedro Alves <palves@redhat.com>
5419
5420 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5421 block that uses them. Clear ecss before handling each event.
5422
0c5bf5a9
JK
54232012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5424
5425 * solib-svr4.c (svr4_current_sos): New comment on
5426 svr4_current_sos_via_xfer_libraries fall back.
5427
bfb05775
JK
54282012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5429
5430 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5431 it as a fallback for TYPE_IS_OPAQUE.
5432 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5433 symbols for lookup_symbol.
5434
685b1105
JK
54352012-05-24 John Steele Scott <toojays@toojays.net>
5436
5437 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5438 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5439 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5440 (check_producer): ... this new function, which also checks for ICC
5441 and caches the result.
5442 (producer_is_icc): New function.
5443 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5444 producer was ICC.
5445
22203bbf
PA
54462012-05-24 Pedro Alves <palves@redhat.com>
5447
5448 PR gdb/7205
5449
5450 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5451 (default_gdb_signal_to_target): ... this. Add comment.
5452 (default_gdb_signal_from_host): Rename to ...
5453 (default_gdb_signal_from_target): ... this. Add comment.
5454 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5455 (default_gdb_signal_to_target): ... this.
5456 (default_gdb_signal_from_host): Rename to ...
5457 (default_gdb_signal_from_target): ... this.
5458 * corelow.c (core_open): Adjust to naming change. Replace comment.
5459 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5460 (gdb_signal_from_target): ... this. Adjust to
5461 default_gdb_signal_from_host naming change. Extend comment.
5462 (gdb_signal_to_host): Rename to ...
5463 (gdb_signal_to_target): ... this. Adjust to
5464 default_gdb_signal_to_host naming change.
5465 * gdbarch.h, gdbarch.c: Renegerate.
5466
a493e3e2
PA
54672012-05-24 Pedro Alves <palves@redhat.com>
5468
5469 PR gdb/7205
5470
f782ad9b 5471 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 5472
2ea28649
PA
54732012-05-24 Pedro Alves <palves@redhat.com>
5474
5475 PR gdb/7205
5476
5477 Replace target_signal with gdb_signal throughout.
5478
b09846a9
PA
54792012-05-24 Pedro Alves <palves@redhat.com>
5480
5481 PR tui/14159
5482
5483 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5484 string, instead of reusing the va_list argument.
5485
e77c107e
TT
54862012-05-24 Tom Tromey <tromey@redhat.com>
5487
5488 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5489 Remove.
5490
9fccedf7
DE
54912012-05-23 Doug Evans <dje@google.com>
5492
d50bd42b
DE
5493 * symtab.c (search_symbols): Formatting fixes.
5494 (print_symbol_info): Formatting fixes.
5495
9fccedf7
DE
5496 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5497 int64_t change to leb128 API.
5498 (read_encoded_value, decode_frame_entry_1): Ditto.
5499 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5500 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5501 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5502 (execute_stack_op): Ditto.
5503 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5504 (safe_read_uleb128, safe_read_sleb128): Ditto.
5505 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5506 (dwarf2_compile_expr_to_ax): Ditto.
5507 (locexpr_describe_location_piece): Ditto.
5508 (disassemble_dwarf_expression): Ditto.
5509 (locexpr_describe_location_1): Ditto.
5510
f3e0e960
SS
55112012-05-23 Stan Shebs <stan@codesourcery.com>
5512 Kwok Cheung Yeung <kcy@codesourcery.com>
5513
5514 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5515 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5516 (mi-cmd-info.o): New rule.
5517 * osdata.h (info_osdata_command): New declaration.
5518 * osdata.c (info_osdata_command): Change to non-static.
5519 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5520 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5521 * mi/mi-cmd-info.c: New file.
5522
c51fe631
DE
55232012-05-23 Doug Evans <dje@google.com>
5524
71cddcc1
DE
5525 * symtab.c (search_symbols): Pass NULL for file_matcher to
5526 expand_symtabs_matching if there are no files to match.
5527
c51fe631
DE
5528 * gdbtypes.c (lookup_typename): Simplify.
5529
a79378d4
PA
55302012-05-23 Pedro Alves <palves@redhat.com>
5531
5532 * arch-utils.h (default_target_signal_to_host): Delete.
5533 * arch-utils.c (default_target_signal_to_host): Delete.
5534 * gdbarch.sh (target_signal_to_host): Remove.
5535 * gdbarch.h, gdbarch.c: Regenerate.
5536
f664829e
DE
55372012-05-22 Doug Evans <dje@google.com>
5538
5539 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5540 "const gdb_byte *".
5541 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5542 (execute_cfa_program): Update to match API of leb128 functions.
5543 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5544 "const gdb_byte *".
5545 (read_unsigned_leb128, read_signed_leb128): Delete.
5546 (read_initial_length): Change type of buf argument to
5547 "const gdb_byte *".
5548 (read_encoded_value): Update to match API of leb128 functions.
5549 (decode_frame_entry): Change result to "const gdb_byte *", and
5550 similarly for "start" parameter.
5551 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5552 (dwarf2_build_frame_info): Change local frame_ptr to
5553 "const gdb_byte *".
5554 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5555 read_uleb128, read_sleb128. All callers updated.
5556 (safe_skip_leb128): New function.
5557 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5558 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5559 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5560 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5561 read_uleb128, read_sleb128.
5562 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5563 (execute_stack_op): Update to match API of leb128 functions.
5564 * dwarf2expr.h: #include "leb128.h".
5565 (read_uleb128, read_sleb128): Delete.
5566 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5567 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5568 * dwarf2loc.c (debug_loc_kind): New enum.
5569 (decode_debug_loc_addresses): New function.
5570 (decode_debug_loc_dwo_addresses): New function.
5571 (dwarf2_find_location_expression): Rewrite.
5572 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5573 (locexpr_describe_location_piece): Ditto.
5574 (disassemble_dwarf_expression): Ditto.
5575 (locexpr_describe_location_1): Ditto.
5576 (loclist_describe_location): Rewrite.
5577 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5578 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5579 (dwarf2_section_buffer_overflow_complaint): Renamed from
5580 dwarf2_macros_too_long_complaint. All callers updated.
5581 (skip_leb128): Delete.
5582 (init_cu_die_reader): Initialize reader->buffer_end.
5583 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5584 (skip_form_bytes): New arg buffer_end. All callers updated.
5585 Replace call to skip_leb128 with gdb_skip_leb128.
5586 (skip_unknown_opcode): New arg mac_end. All callers updated.
5587 (fill_in_loclist_baton): Initialize baton->from_dwo.
5588
837a1b32
MR
55892012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5590
5591 * mips-linux-nat.c (mips_linux_read_description): Use a more
5592 verbose error message.
5593
d0e64392
MR
55942012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5595
5596 * NEWS: Add MIPS/Linux DSP support.
5597 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5598 (SIGCONTEXT_DSPCTL): New macro.
5599 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5600 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5601 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5602 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5603 (N64_SIGCONTEXT_HI3): Likewise.
5604 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5605 (N64_SIGCONTEXT_LO3): Likewise.
5606 (N64_SIGCONTEXT_DSPCTL): Likewise.
5607 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5608 (mips_linux_o32_sigframe_init): Handle DSP registers.
5609 (mips_linux_n32n64_sigframe_init): Likewise.
5610
8bea7ed1
PM
56112012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5612
5613 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5614 call to abort.
5615
dab06dbe
PA
56162012-05-22 Pedro Alves <palves@redhat.com>
5617
5618 * target.h (store_waitstatus): Move declaration ...
5619 * inf-child.h (store_waitstatus): ... here.
5620 * target.c: Move inclusion of gdb_wait.h, and ...
5621 (store_waitstatus): ... this ...
5622 * inf-child.c: ... here.
5623 * linux-nat.c: Include inf-child.h.
5624 * rs6000-nat.c: Include inf-child.h.
5625 * spu-linux-nat.c: Include inf-child.h.
5626
43011e52
PM
56272012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5628
5629 * tracepoint.c (start_tracing): Add missing i18n markup.
5630 (stop_tracing, set_trace_user): Ditto.
5631 (set_trace_notes, set_trace_stop_notes): Ditto.
5632
b1af9e97
TT
56332012-05-21 Tom Tromey <tromey@redhat.com>
5634
5635 PR c++/7173:
5636 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5637 types.
5638 * value.h (value_cast_pointers): Update.
5639 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5640 (value_cast): Update.
5641 (update_search_result): New function.
5642 (do_search_struct_field): New, from search_struct_field. Check
5643 for ambiguous results.
5644 (search_struct_field): Rewrite.
5645 * infcall.c (value_arg_coerce): Update.
5646 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5647 value_cast_pointers.
5648 * ada-lang.c (ada_convert_actual): Update.
5649
e9e5e6b3
TT
56502012-05-21 Tom Tromey <tromey@redhat.com>
5651
5652 * macroexp.c (macro_stringify): Terminate the string.
5653
1564a261
JK
56542012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5655
5656 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5657 Describe it.
5658 * auto-load.c (auto_load_expand_dir_vars): New function.
5659 (auto_load_safe_path_vec_update): Use it, remove the
5660 substitute_path_component call thanks to it.
5661 (auto_load_objfile_script): Remove the debug_file_directory processing.
5662 Use auto_load_expand_dir_vars, remove the substitute_path_component
5663 call thanks to it.
5664 * configure: Regenerate.
5665 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5666 path. Escape $ also for $debugdir.
5667 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5668 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5669
a3ec0bb1
DE
56702012-05-20 Doug Evans <dje@google.com>
5671
5672 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5673 before use. Check for symtab->includes == NULL before scanning it.
5674
d467df4e
MR
56752012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5676
5677 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5678
4cc0665f
MR
56792012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5680
5681 * NEWS: Add microMIPS support and "set mips compression",
5682 "show mips compression" commands.
5683 * mips-tdep.h (mips_isa): New enum.
5684 (gdbarch_tdep): Add mips_isa.
5685 (mips_pc_is_mips16): Update prototype.
5686 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5687 * mips-tdep.c (mips_compression_mips16): New variable.
5688 (mips_compression_micromips): Likewise.
5689 (mips_compression_strings): Likewise.
5690 (mips_compression_string): Likewise.
5691 (is_mips16_isa, is_micromips_isa): New functions.
5692 (is_mips16_addr): Rename to...
5693 (is_compact_addr): ... this.
5694 (unmake_mips16_addr): Likewise to...
5695 (unmake_compact_addr): ... this.
5696 (make_mips16_addr): Likewise to...
5697 (make_compact_addr): ... this.
5698 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5699 functions.
5700 (mips_elf_make_msymbol_special): Handle microMIPS code.
5701 (msymbol_is_special): Rename to...
5702 (msymbol_is_mips16): ... this.
5703 (mips_make_symbol_special, mips_pc_is_mips16): Update
5704 accordingly.
5705 (msymbol_is_mips, msymbol_is_micromips): New functions.
5706 (mips16_to_32_reg): Rename to...
5707 (mips_reg3_to_reg): ... this.
5708 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5709 (mips_pc_isa): Likewise.
5710 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5711 code.
5712 (mips_fetch_instruction): Pass return status instead of printing
5713 an error message if requested. Handle microMIPS code. Bail out
5714 on an invalid ISA.
5715 (micromips_op): New macro.
5716 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5717 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5718 (b6s4_op, b7s3_reg): Likewise.
5719 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5720 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5721 (mips_insn_size): New function.
5722 (mips32_next_pc): Update mips_fetch_instruction call.
5723 (micromips_relative_offset7): New function.
5724 (micromips_relative_offset10): Likewise.
5725 (micromips_relative_offset16): Likewise.
5726 (micromips_pc_insn_size): Likewise.
5727 (micromips_bc1_pc): Likewise.
5728 (micromips_next_pc): Likewise.
5729 (unpack_mips16): Update mips_fetch_instruction call.
5730 (extended_mips16_next_pc): Update according to change to
5731 mips16_to_32_reg.
5732 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5733 code.
5734 (mips16_scan_prologue): Update mips_fetch_instruction call.
5735 Update according to change to mips16_to_32_reg.
5736 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5737 (mips_insn16_frame_base_sniffer): Likewise.
5738 (micromips_decode_imm9): New function.
5739 (micromips_scan_prologue): Likewise.
5740 (mips_micro_frame_cache): Likewise.
5741 (mips_micro_frame_this_id): Likewise.
5742 (mips_micro_frame_prev_register): Likewise.
5743 (mips_micro_frame_sniffer): Likewise.
5744 (mips_micro_frame_unwind): New variable.
5745 (mips_micro_frame_base_address): New function.
5746 (mips_micro_frame_base): New variable.
5747 (mips_micro_frame_base_sniffer): New function.
5748 (mips32_scan_prologue): Update mips_fetch_instruction call.
5749 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5750 rather than for MIPS16.
5751 (mips_insn32_frame_base_sniffer): Likewise.
5752 (mips_addr_bits_remove): Handle microMIPS code.
5753 (deal_with_atomic_sequence): Rename to...
5754 (mips_deal_with_atomic_sequence): ... this. Update the type
5755 of the variable used to hold an instruction. Remove the ISA bit
5756 check. Update mips_fetch_instruction call.
5757 (micromips_deal_with_atomic_sequence): New function.
5758 (deal_with_atomic_sequence): Likewise.
5759 (mips_about_to_return): Handle microMIPS code. Update
5760 mips_fetch_instruction call.
5761 (heuristic_proc_start): Check for the standard MIPS ISA rather
5762 than for MIPS16. Update mips_pc_is_mips16 and
5763 mips_fetch_instruction calls. Handle microMIPS code.
5764 (mips_push_dummy_code): Handle microMIPS code.
5765 (mips_eabi_push_dummy_call): Likewise.
5766 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5767 (mips_o64_push_dummy_call): Handle microMIPS code.
5768 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5769 (is_delayed): Remove function.
5770 (mips_single_step_through_delay): Replace the call to is_delayed
5771 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5772 Handle microMIPS code.
5773 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5774 microMIPS code.
5775 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5776 call.
5777 (micromips_in_function_epilogue_p): New function.
5778 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5779 call.
5780 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5781 Handle microMIPS.
5782 (gdb_print_insn_mips): Likewise.
5783 (mips_breakpoint_from_pc): Likewise.
5784 (mips_remote_breakpoint_from_pc): New function.
5785 (mips32_instruction_has_delay_slot): Simplify making use of the
5786 updated mips_fetch_instruction interface.
5787 (micromips_instruction_has_delay_slot): New function.
5788 (mips16_instruction_has_delay_slot): Simplify making use of the
5789 updated mips_fetch_instruction interface.
5790 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 5791 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
5792 calls. Handle microMIPS code.
5793 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5794 (mips_skip_trampoline_code): Handle microMIPS code.
5795 (global_mips_compression): New function.
5796 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5797 file flags. Register the microMIPS remote breakpoint handler
5798 and heuristic frame unwinder.
5799 (show_mips_compression): New function.
5800 (_initialize_mips_tdep): Add the "set mips compression" and
5801 "show mips compression" commands.
5802
22e048c9
SDJ
58032012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5804
5805 * ada-lang.c:
5806 * ada-tasks.c:
5807 * ada-varobj.c:
5808 * amd64-darwin-tdep.c:
5809 * arm-symbian-tdep.c:
5810 * arm-tdep.c:
5811 * avr-tdep.c:
5812 * ax-gdb.c:
5813 * bfin-linux-tdep.c:
5814 * breakpoint.c:
5815 * c-valprint.c:
5816 * cli/cli-cmds.c:
5817 * coffread.c:
5818 * cp-support.c:
5819 * cris-tdep.c:
5820 * dwarf2-frame-tailcall.c:
5821 * dwarf2-frame.c:
5822 * dwarf2expr.c:
5823 * dwarf2loc.c:
5824 * dwarf2read.c:
5825 * elfread.c:
5826 * eval.c:
5827 * expprint.c:
5828 * f-valprint.c:
5829 * frv-tdep.c:
5830 * h8300-tdep.c:
5831 * hppa-hpux-tdep.c:
5832 * hppa-tdep.c:
5833 * hppanbsd-tdep.c:
5834 * i386-nto-tdep.c:
5835 * i386-tdep.c:
5836 * i387-tdep.c:
5837 * ia64-tdep.c:
5838 * jit.c:
5839 * linespec.c:
5840 * linux-tdep.c:
5841 * lm32-tdep.c:
5842 * m2-valprint.c:
5843 * m32c-tdep.c:
5844 * m32r-rom.c:
5845 * m32r-tdep.c:
5846 * m68k-tdep.c:
5847 * m68klinux-tdep.c:
5848 * mi/mi-main.c:
5849 * microblaze-tdep.c:
5850 * mips-linux-tdep.c:
5851 * mips-tdep.c:
5852 * mn10300-tdep.c:
5853 * p-valprint.c:
5854 * parse.c:
5855 * ppc-linux-tdep.c:
5856 * ppc-sysv-tdep.c:
5857 * printcmd.c:
5858 * python/py-finishbreakpoint.c:
5859 * python/py-inferior.c:
5860 * python/py-infthread.c:
5861 * python/py-type.c:
5862 * python/python.c:
5863 * remote-fileio.c:
5864 * remote-m32r-sdi.c:
5865 * remote-mips.c:
5866 * reverse.c:
5867 * rl78-tdep.c:
5868 * rs6000-aix-tdep.c:
5869 * rs6000-tdep.c:
5870 * s390-tdep.c:
5871 * score-tdep.c:
5872 * sh64-tdep.c:
5873 * skip.c:
5874 * solib-darwin.c:
5875 * solib-dsbt.c:
5876 * solib-frv.c:
5877 * sparc-tdep.c:
5878 * spu-multiarch.c:
5879 * spu-tdep.c:
5880 * stack.c:
5881 * symfile.c:
5882 * symtab.c:
5883 * tic6x-tdep.c:
5884 * tracepoint.c:
5885 * v850-tdep.c:
5886 * valarith.c:
5887 * valprint.c:
5888 * value.c:
5889 * xcoffread.c:
5890 * xtensa-tdep.c:
5891 * ada-lang.c:
5892 * ada-tasks.c:
5893 * ada-varobj.c:
5894 * amd64-darwin-tdep.c:
5895 * arm-symbian-tdep.c:
5896 * arm-tdep.c: Delete unused variables.
5897
aff139ff
JK
58982012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5899
5900 Rename $ddir to $datadir.
5901 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
5902 * auto-load.c (auto_load_safe_path_vec_update)
5903 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
5904 * configure: Regenerate.
5905 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
5906 Likewise. Remove the 'use $ddir' help string.
5907
f7bfa992
JK
59082012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5909
5910 * auto-load.c (show_auto_load_safe_path): Accept any combination of
5911 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
5912
9cb709b6
TT
59132012-05-18 Tom Tromey <tromey@redhat.com>
5914
5915 PR exp/13907:
5916 * valprint.h (struct value_print_options) <symbol_print>: New
5917 field.
5918 * valprint.c (user_print_options): Add default for symbol_print.
5919 (show_symbol_print): New function.
5920 (generic_val_print): Respect symbol_print.
5921 (_initialize_valprint): Add "print symbol" setting.
5922 * f-valprint.c (f_val_print): Respect symbol_print.
5923 * c-valprint.c (c_val_print): Respect symbol_print.
5924 * NEWS: Update.
5925 * printcmd.c (print_address_symbolic): Return int. Ignore some
5926 zero-size symbols.
5927 (print_address_demangle): Return int.
5928 * defs.h: (print_address_symbolic): Return int.
5929 * value.h (print_address_demangle): Return int.
5930
b012acdd
TT
59312012-05-18 Tom Tromey <tromey@redhat.com>
5932
5933 * valprint.c (val_print_string): Don't print leading space.
5934 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
5935 print space before string or vtbl.
5936 * m2-valprint.c (print_unpacked_pointer): Optionally print space
5937 before string.
5938 * jv-valprint.c (java_value_print): Print space before string.
5939 * go-valprint.c (print_go_string): Print space before string.
5940 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
5941 space before string.
5942 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
5943 space before string or vtbl.
5944 * auxv.c (fprint_target_auxv): Print space after address.
5945
1d51a733
TT
59462012-05-18 Tom Tromey <tromey@redhat.com>
5947
5948 * printcmd.c (print_address_demangle): Remove special case for 0.
5949
edf0c1b7
TT
59502012-05-18 Tom Tromey <tromey@redhat.com>
5951
5952 * printcmd.c (print_address_demangle): Add 'opts' argument.
5953 * p-valprint.c (pascal_val_print): Update.
5954 * jv-valprint.c (java_val_print): Update.
5955 * value.h: Update.
5956 * valprint.c (generic_val_print): Update.
5957 (print_function_pointer_address): Add 'options' argument. Remove
5958 'addressprint' argument. Update.
5959 * m2-valprint.c (print_unpacked_pointer): Update.
5960 * gnu-v3-abi.c (print_one_vtable): Update.
5961 (gnuv3_print_method_ptr): Update.
5962 * f-valprint.c (f_val_print): Update.
5963 * cp-valprint.c (cp_print_value_fields): Update.
5964 * valprint.h (print_function_pointer_address): Update.
5965 * c-valprint.c (c_val_print): Update.
5966
9703b513
TT
59672012-05-18 Tom Tromey <tromey@redhat.com>
5968
5969 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
5970 directly corresponding to the found psymtab.
5971 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
5972 (dw2_find_pc_sect_symtab): Use it.
5973 * block.h (blockvector_contains_pc): Declare.
5974 * block.c (find_block_in_blockvector): New function.
5975 (blockvector_for_pc_sect): Use it.
5976 (blockvector_contains_pc): New function.
5977
5a439849
MR
59782012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5979
5980 * mips-tdep.h (mips_write_pc): New prototype.
5981 * mips-tdep.c (mips_write_pc): Make external, add description.
5982 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
5983 add description.
5984
8376de04
MR
59852012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5986
5987 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
5988 mips_regnum->pc.
5989 (mips_unwind_pc, mips_write_pc): Likewise.
5990 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
5991 gdbarch_read_pc.
5992
d3581e61
JB
59932012-05-17 Joel Brobecker <brobecker@adacore.com>
5994
5995 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
5996 proc_warn, proc_error, proc_get_status, proc_flags,
5997 proc_why, proc_what, proc_nsysarg, proc_sysargs,
5998 proc_set_run_on_last_close, proc_unset_run_on_last_close,
5999 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6000 proc_stop_process, proc_wait_for_stop, proc_run_process,
6001 proc_set_traced_signals, proc_set_traced_faults,
6002 proc_set_traced_sysentry, proc_set_traced_sysexit,
6003 proc_set_held_signals, proc_get_held_signals,
6004 proc_get_traced_signals, proc_get_traced_faults,
6005 proc_get_traced_sysentry, proc_get_traced_sysexit,
6006 proc_clear_current_fault, proc_set_current_signal,
6007 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6008 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6009 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6010 proc_get_current_thread, proc_get_current_thread,
6011 proc_get_current_thread, proc_update_threads,
6012 proc_update_threads, proc_update_threads, proc_update_threads,
6013 proc_iterate_over_threads, procfs_find_new_threads,
6014 procfs_pid_to_str): Make static. Remove advance declaration.
6015 (proc_cursig): Make static. Conditionalized defintion on
6016 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6017 (proc_syscall, proc_set_kill_on_last_close,
6018 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6019 proc_get_pending_signals, proc_get_signal_actions,
6020 proc_trace_signal, proc_ignore_signal): Delete.
6021
81b9b86e
SDJ
60222012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6023
6024 * coffread.c (cs_section_address): Passing proper argument for
6025 `bfd_get_section_vma'.
6026 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6027 `bfd_get_section_flags'.
6028 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6029 `bfd_get_section_vma'.
6030
abc9d0dc
TT
60312012-05-16 Tom Tromey <tromey@redhat.com>
6032
6033 PR macros/13205:
6034 * macrotab.h: (macro_define_special): Declare.
6035 (enum macro_special_kind): New.
6036 (struct macro_definition) <argc, replacement>: Update comments.
6037 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6038 (macro_define_object_internal): New function.
6039 (macro_define_object): Use it.
6040 (macro_define_special): New function.
6041 (fixup_definition): New function.
6042 (macro_lookup_definition, foreach_macro_in_scope)
6043 (foreach_macro): Use fixup_definition.
6044 * macroexp.h (macro_stringify): Declare.
6045 * macroexp.c (free_buffer_return_text): New function.
6046 (stringify): Constify "arg".
6047 (macro_stringify): New function.
6048 * dwarf2read.c (macro_start_file): Call macro_define_special.
6049
6a3a010b 60502012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 6051 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
6052
6053 * breakpoint.h (bp_location): Add related_address member.
6054 * inferior.h (get_return_value): Take a pointer to struct value
6055 instead of struct type for the function requested.
6056 * value.h (using_struct_return): Likewise.
6057 * gdbarch.sh (return_value): Take a pointer to struct value
6058 instead of struct type for the function requested.
6059 * breakpoint.c (set_breakpoint_location_function): Initialize
6060 related_address for bp_gnu_ifunc_resolver breakpoints.
6061 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6062 requested function's address to gdbarch_return_value.
6063 * eval.c (evaluate_subexp_standard): Pass the requested
6064 function's address to using_struct_return.
6065 * infcall.c (call_function_by_hand): Pass the requested
6066 function's address to using_struct_return and
6067 gdbarch_return_value.
6068 * infcmd.c (get_return_value): Take a pointer to struct value
6069 instead of struct type for the function requested.
6070 (print_return_value): Update accordingly.
6071 (finish_command_continuation): Likewise.
6072 * stack.c (return_command): Pass the requested function's
6073 address to using_struct_return and gdbarch_return_value.
6074 * value.c (using_struct_return): Take a pointer to struct value
6075 instead of struct type for the function requested. Pass the
6076 requested function's address to gdbarch_return_value.
6077 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6078 New function_value member, replacing function_type.
6079 (bpfinishpy_dealloc): Update accordingly.
6080 (bpfinishpy_pre_stop_hook): Likewise.
6081 (bpfinishpy_init): Likewise. Record the requested function's
6082 address.
6083 * mips-tdep.c (mips_fval_reg): New enum.
6084 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6085 words put in GP registers.
6086 (mips_o64_push_dummy_call): Update a comment.
6087 (mips_o32_return_value): Take a pointer to struct value instead
6088 of struct type for the function requested and use it to check if
6089 using the MIPS16 calling convention. Return the designated
6090 general purpose registers for floating-point values returned in
6091 MIPS16 mode.
6092 (mips_o64_return_value): Likewise.
6093 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6094 (ppc_sysv_abi_broken_return_value): Likewise.
6095 (ppc64_sysv_abi_return_value): Likewise.
6096 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6097 value instead of struct type for the function requested.
6098 * amd64-tdep.c (amd64_return_value): Likewise.
6099 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6100 * arm-tdep.c (arm_return_value): Likewise.
6101 * avr-tdep.c (avr_return_value): Likewise.
6102 * bfin-tdep.c (bfin_return_value): Likewise.
6103 * cris-tdep.c (cris_return_value): Likewise.
6104 * frv-tdep.c (frv_return_value): Likewise.
6105 * h8300-tdep.c (h8300_return_value): Likewise.
6106 (h8300h_return_value): Likewise.
6107 * hppa-tdep.c (hppa32_return_value): Likewise.
6108 (hppa64_return_value): Likewise.
6109 * i386-tdep.c (i386_return_value): Likewise.
6110 * ia64-tdep.c (ia64_return_value): Likewise.
6111 * iq2000-tdep.c (iq2000_return_value): Likewise.
6112 * lm32-tdep.c (lm32_return_value): Likewise.
6113 * m32c-tdep.c (m32c_return_value): Likewise.
6114 * m32r-tdep.c (m32r_return_value): Likewise.
6115 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6116 * m68k-tdep.c (m68k_return_value): Likewise.
6117 (m68k_svr4_return_value): Likewise.
6118 * m88k-tdep.c (m88k_return_value): Likewise.
6119 * mep-tdep.c (mep_return_value): Likewise.
6120 * microblaze-tdep.c (microblaze_return_value): Likewise.
6121 * mn10300-tdep.c (mn10300_return_value): Likewise.
6122 * moxie-tdep.c (moxie_return_value): Likewise.
6123 * mt-tdep.c (mt_return_value): Likewise.
6124 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6125 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6126 (ppc_sysv_abi_broken_return_value): Likewise.
6127 (ppc64_sysv_abi_return_value): Likewise.
6128 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6129 * rl78-tdep.c (rl78_return_value): Likewise.
6130 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6131 * rx-tdep.c (rx_return_value): Likewise.
6132 * s390-tdep.c (s390_return_value): Likewise.
6133 * score-tdep.c (score_return_value): Likewise.
6134 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6135 (sh_return_value_fpu): Likewise.
6136 * sh64-tdep.c (sh64_return_value): Likewise.
6137 * sparc-tdep.c (sparc32_return_value): Likewise.
6138 * sparc64-tdep.c (sparc64_return_value): Likewise.
6139 * spu-tdep.c (spu_return_value): Likewise.
6140 * tic6x-tdep.c (tic6x_return_value): Likewise.
6141 * v850-tdep.c (v850_return_value): Likewise.
6142 * vax-tdep.c (vax_return_value): Likewise.
6143 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6144 * xtensa-tdep.c (xtensa_return_value): Likewise.
6145 * gdbarch.c: Regenerate.
6146 * gdbarch.h: Regenerate.
6147
29ca12b3
TT
61482012-05-15 Tom Tromey <tromey@redhat.com>
6149
6150 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6151
588ae58c
JB
61522012-05-15 Joel Brobecker <brobecker@adacore.com>
6153
6154 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6155 of command in two error message.
6156
855a6e68
JB
61572012-05-15 Joel Brobecker <brobecker@adacore.com>
6158
6159 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6160
d634f2de
JB
61612012-05-15 Joel Brobecker <brobecker@adacore.com>
6162
6163 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6164
9cc815f5
JK
61652012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6166
6167 * NEWS (show auto-load scripts-directory): Add forgotten command.
6168
6a609e58
JK
61692012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6170
6171 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6172 parameters.
6173
ac1438b5
L
61742012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6175
6176 * amd64-tdep.c: Include features/i386/x32.c and
6177 features/i386/x32-avx.c.
6178 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6179 initialize_tdesc_x32_avx.
6180
e7e0cddf
SS
61812012-05-14 Stan Shebs <stan@codesourcery.com>
6182
6183 Add dynamic printf.
6184 * breakpoint.h (enum bptype): New type bp_dprintf.
6185 (struct breakpoint): New field extra_string.
6186 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6187 (create_breakpoint): Add extra_string arg.
6188 * breakpoint.c (dprintf_breakpoint_ops): New.
6189 (is_breakpoint): Add bp_dprintf.
6190 (bpstat_what): Add dprintf case.
6191 (bptype_string): Ditto.
6192 (print_one_breakpoint_location): Ditto.
6193 (init_bp_location): Ditto.
6194 (bkpt_print_mention): Ditto.
6195 (dprintf_style_enums): New array.
6196 (dprintf_style): New global.
6197 (dprintf_function): New global.
6198 (dprintf_channel): New global.
6199 (update_dprintf_command_list): New function.
6200 (update_dprintf_commands): New function.
6201 (init_breakpoint_sal): Add extra_string argument, handle it.
6202 (create_breakpoint_sal): Add extra_string argument.
6203 (create_breakpoints_sal): Add extra_string argument, update callers.
6204 (find_condition_and_thread): Add extra argument.
6205 (create_breakpoint): Add extra_string argument, record it.
6206 (dprintf_command): New function.
6207 (break_command_1): Add arg to create_breakpoint call.
6208 (handle_gnu_v3_exceptions): Ditto.
6209 (trace_command): Ditto.
6210 (ftrace_command): Ditto.
6211 (strace_command): Ditto.
6212 (bkpt_print_mention): Add dprintf case.
6213 (create_breakpoint_sal_default): Add extra_string argument.
6214 (_initialize_breakpoint): Add new commands.
6215 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6216 * python/py-breakpoint.c (bppy_init): Ditto.
6217 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6218
8ae38c14
MR
62192012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6220
6221 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6222
9f676e66
SCR
62232012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6224
6225 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6226 unsigned long long.
6227
7efc75aa
SCR
62282012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6229
6230 Add a new function gdb.find_pc_line to the Python API.
6231 * NEWS (Python Scripting): Add entry about the new function.
6232 * python/python.c (gdbpy_find_pc_line): New function which
6233 implements gdb.find_pc_line.
6234 (GdbMethods): Add entry for the new function.
6235
70af3797
PA
62362012-05-12 Pedro Alves <palves@redhat.com>
6237
6238 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6239 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6240
06da564e
EZ
62412012-05-12 Eli Zaretskii <eliz@gnu.org>
6242
6243 * inferior.c: Include completer.h
6244 (initialize_inferiors): Set completer of add-inferior to
6245 filename_completer.
6246
0288cee2
L
62472012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6248
6249 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6250 gdbarch_ptr_bit for x32 core dump.
6251
f6537a2c
L
62522012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6253
6254 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6255 and features/i386/x32-avx-linux.c.
6256
85d4a676
SS
62572012-05-11 Stan Shebs <stan@codesourcery.com>
6258 Kwok Cheung Yeung <kcy@codesourcery.com>
6259
6260 * NEWS: Describe new info os commands.
6261 * common/linux-osdata.c (PID_T, TIME_T): Define.
6262 (MAX_PID_T_STRLEN): New.
6263 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6264 MAX_PID_T_STRLEN.
6265 (command_from_pid): Add comment. Change to use PID_T.
6266 (commandline_from_pid): Change to use PID_T.
6267 (user_from_pid): Add comment.
6268 (get_process_owner): Add comment. Change to use PID_T and
6269 MAX_PID_T_STRLEN.
6270 (get_number_of_cpu_cores): Add comment.
6271 (get_cores_used_by_process): Add comment. Change to use PID_T and
6272 MAX_PID_T_STRLEN.
6273 (linux_xfer_osdata_processes): Change to use PID_T and
6274 MAX_PID_T_STRLEN.
6275 (compare_processes): New function.
6276 (linux_xfer_osdata_processgroups): New function.
6277 (linux_xfer_osdata_threads): Change to use PID_T.
6278 (linux_xfer_osdata_fds): New function.
6279 (format_socket_state, print_sockets): New functions.
6280 (union socket_addr): New union.
6281 (linux_xfer_osdata_isockets): New function.
6282 (time_from_time_t, group_from_gid): New functions.
6283 (linux_xfer_osdata_shm): New function.
6284 (linux_xfer_osdata_sem): New function.
6285 (linux_xfer_osdata_msg): New function.
6286 (linux_xfer_osdata_modules): New function.
6287 (osdata_table): Add new entries.
6288 * common/buffer.c (buffer_xml_printf): Add support for long and
6289 long long format specifiers.
6290
f24afd6d
L
62912012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6292
6293 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6294 (tdesc_x32_avx_linux): Likewise.
6295
7349ff92
JK
62962012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6297
6298 Implement multi-component --with-auto-load-dir.
6299 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6300 entries.
6301 (--with-auto-load-safe-path): Update the default value description.
6302 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6303 New.
6304 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6305 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6306 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6307 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6308 "set auto-load scripts-directory".
6309 * config.in: Regenerate.
6310 * configure: Regenerate.
6311 * configure.ac (--with-auto-load-dir): New configure option.
6312 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6313
6dea1fbd
JK
63142012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6315
6316 Provide $ddir substitution for --with-auto-load-safe-path.
6317 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6318 entries.
6319 * auto-load.c: Include observer.h.
6320 (auto_load_safe_path_vec_update): Call substitute_path_component for
6321 each component. New variable ddir_subst.
6322 (auto_load_gdb_datadir_changed): New function.
6323 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6324 AUTO_LOAD_SAFE_PATH. New comment.
6325 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6326 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6327 * config.in: Regenerate.
6328 * configure: Regenerate.
6329 * configure.ac (--auto-load-safe-path): Rename
6330 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6331 GDB_DATADIR/auto-load.
6332 * defs.h (substitute_path_component): New declaration.
6333 * top.c: Include observer.h.
6334 (set_gdb_datadir): New function.
6335 (init_main): Install it for "set data-directory".
6336 * utils.c (substitute_path_component): New function.
6337
b09aca3a
JK
63382012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6339
6340 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6341 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6342 DEBUG_FILE_DIRECTORY. Handle multiple components of
6343 DEBUG_FILE_DIRECTORY.
6344
95554aad
TT
63452012-05-10 Tom Tromey <tromey@redhat.com>
6346
6347 * dwarf2read.c (recursively_write_psymbols): New function.
6348 (write_psymtabs_to_index): Use it.
6349
6350 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6351 field.
6352 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6353 (load_partial_comp_unit): Update.
6354 (queue_comp_unit): Add argument 'pretend_language'.
6355 (process_queue): Update.
6356 (psymtab_to_symtab_1): Skip dependencies that have a user.
6357 (load_partial_comp_unit_reader): Give meaning to the 'data'
6358 argument.
6359 (load_full_comp_unit): Add 'pretend_language' argument.
6360 (process_full_comp_unit): Add 'pretend_language' argument. Set
6361 language on CU.
6362 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6363 Update.
6364 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6365 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6366 Update.
6367 (prepare_one_comp_unit): Add 'pretend_language' argument.
6368
6369 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6370 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6371 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6372 (dw2_do_instantiate_symtab): Check whether symtab was read in
6373 before queueing.
6374 (dw2_instantiate_symtab): Add assertion. Call
6375 process_cu_includes.
6376 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6377 (partial_symtab_p): New typedef.
6378 (set_partial_user): New function.
6379 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6380 (scan_partial_symbols): Add imported CU to imported_symtabs.
6381 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6382 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6383 (get_symtab, recursively_compute_inclusions)
6384 (compute_symtab_includes, process_cu_includes)
6385 (process_imported_unit_die): New functions.
6386 (process_die) <DW_TAG_imported_unit>: New case.
6387 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6388
6389 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6390 comment.
6391 (struct partial_die_info) <locdesc>: Remove.
6392 <d>: New field.
6393 (process_psymtab_comp_unit): Add 'read_partial' argument.
6394 Update.
6395 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6396 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6397 (add_partial_symbol): Update.
6398 (process_die): Handle DW_TAG_partial_unit.
6399 (read_file_scope): Update comment.
6400 (load_partial_dies): Handle DW_TAG_imported_unit.
6401 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6402 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6403
e871fbb9
TT
64042012-05-10 Tom Tromey <tromey@redhat.com>
6405
6406 * cc-with-dwz.sh: New file.
6407
b5b04b5b
TT
64082012-05-10 Tom Tromey <tromey@redhat.com>
6409
6410 * symtab.h (struct symtab) <includes, user>: New fields.
6411 * block.h (struct block_iterator) <d, idx, which>: New fields.
6412 * block.c (initialize_block_iterator, find_iterator_symtab)
6413 (block_iterator_step, block_iter_name_step)
6414 (block_iter_match_step): New functions.
6415 (block_iterator_first, block_iterator_next)
6416 (block_iter_name_first, block_iter_name_next)
6417 (block_iter_match_first, block_iter_match_next): Rewrite.
6418 (get_block_symtab): New function.
6419
84a146c9
TT
64202012-05-10 Tom Tromey <tromey@redhat.com>
6421
6422 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6423 set_block_symtab.
6424 * jit.c (finalize_symtab): Use allocate_global_block,
6425 set_block_symtab.
6426 * buildsym.c (finish_block_internal): New function, from old
6427 finish_block.
6428 (finish_block): Rewrite.
6429 (end_symtab): Use finish_block_internal, set_block_symtab.
6430 * block.h (struct global_block): New.
6431 (allocate_global_block, set_block_symtab): Declare.
6432 * block.c (allocate_global_block, set_block_symtab): New
6433 functions.
6434
9439a077
TT
64352012-05-10 Tom Tromey <tromey@redhat.com>
6436
6437 * psymtab.c (partial_map_expand_apply): Add assertion.
6438 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6439 (psymtab_to_symtab): Find unshared psymtab.
6440 (dump_psymtab): Print including psymtabs.
6441 (recursively_search_psymtabs): New function.
6442 (expand_symtabs_matching_via_partial): Use it.
6443 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6444 fields.
6445 (enum psymtab_search_status): New.
6446
8157b174
TT
64472012-05-10 Tom Tromey <tromey@redhat.com>
6448
6449 * tracepoint.c (scope_info): Update.
6450 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6451 (find_pc_sect_symtab, search_symbols)
6452 (default_make_symbol_completion_list_break_on)
6453 (make_file_symbol_completion_list): Update.
6454 * symmisc.c (dump_symtab_1): Update.
6455 * stack.c (print_frame_args, iterate_over_block_locals)
6456 (print_frame_labels, iterate_over_block_arg_vars): Update.
6457 * python/py-block.c (block_object) <dict>: Remove.
6458 <block>: New field.
6459 <iter>: Change type.
6460 (blpy_iter): Update.
6461 (blpy_block_syms_iternext): Update.
6462 * psymtab.c (map_block): Use block iterators.
6463 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6464 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6465 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6466 * infrun.c (check_exception_resume): Update.
6467 * cp-support.c (make_symbol_overload_list_block): Update.
6468 * coffread.c (patch_opaque_types): Update.
6469 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6470 * block.h (struct block_iterator): New.
6471 (block_iterator_first, block_iterator_next, block_iter_name_first)
6472 (block_iter_name_next, block_iter_match_first)
6473 (block_iter_match_next): Declare.
6474 (ALL_BLOCK_SYMBOLS): Redefine.
6475 * block.c (block_iterator_first, block_iterator_next)
6476 (block_iter_name_first, block_iter_name_next)
6477 (block_iter_match_first, block_iter_match_next): New functions.
6478 * ada-lang.c (ada_add_block_symbols)
6479 (ada_make_symbol_completion_list): Use block iterator.
6480
a2ca7a52
TT
64812012-05-10 Tom Tromey <tromey@redhat.com>
6482
6483 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6484 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6485 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6486 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6487 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6488 Update.
6489
64ea88dc
JB
64902012-05-10 Joel Brobecker <brobecker@adacore.com>
6491
6492 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6493 print-file-var-lib2.c, print-file-var-main.c and
6494 print-file-var.exp (located in gdb/testsuite/gdb.base).
6495
99a547d6
JB
64962012-05-10 Joel Brobecker <brobecker@adacore.com>
6497
6498 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6499 try locating the symbol in the symbol's own objfile first, before
6500 extending the search to all objfiles.
6501 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6502 out of lookup_symbol_aux_symtabs.
6503 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6504 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6505 Do not search EXCLUDE_OBJFILE.
6506 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6507 (lookup_symbol_global): Search for matches in the block's objfile
6508 first, before searching all other objfiles.
6509
0ece64fd
TG
65102012-05-10 Tristan Gingold <gingold@adacore.com>
6511
6512 * printcmd.c (set_command): Add pre/post inc/dec.
6513
3d16a105
FCE
65142012-05-09 Frank Ch. Eigler <fche@redhat.com>
6515
6516 * gdb.1: Document -ex option.
6517
2efbc0f7
JB
65182012-05-09 Joel Brobecker <brobecker@adacore.com>
6519
6520 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6521 * inferior.h (AT_SYMBOL): Delete.
6522
2c76a0c7
JB
65232012-05-09 Joel Brobecker <brobecker@adacore.com>
6524
6525 * mips-tdep.c (mips_push_dummy_code): New function.
6526 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6527 ON_STACK and install mips_push_dummy_code as our gdbarch
6528 push_dummy_code routine.
6529
9401a810
PA
65302012-05-09 Pedro Alves <palves@redhat.com>
6531
6532 * target.c (set_maintenance_target_async_permitted): Rename to ...
6533 (set_target_async_command): ... this.
6534 (show_maintenance_target_async_permitted): Rename to ...
6535 (show_target_async_command): ... this.
6536 (initialize_targets): Adjust.
6537
3929b321
DE
65382012-05-08 Doug Evans <dje@google.com>
6539
6540 * go-exp.y (classify_name): Add missing assignment of fields of
6541 yylval.ssym.
6542
c41535fd
EZ
65432012-05-08 Eli Zaretskii <eliz@gnu.org>
6544
6545 Display the ">" prompt in interactive mode while reading canned
6546 commands, even when the current interpreter is MI.
6547
6548 * interps.c (interp_set_temp): New function.
6549
6550 * interps.h (interp_set_temp): Add prototype.
6551
6552 * cli/cli-script.c (restore_interp): New cleanup function.
6553 (read_command_lines): Temporarily override the current interpreter
6554 with CLI and arrange for restoring the original one.
6555
c0749c4d
JS
65562012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6557
6558 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6559
d7333987
SDJ
65602012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6561
6562 * probe.c (parse_probes): Move conditional to check for
6563 debuginfo files from here...
6564 * stap-probe.c (stap_get_probes): ... to here.
6565
649e6d92
MK
65662012-05-07 Mark Kettenis <kettenis@gnu.org>
6567 H.J. Lu <hongjiu.lu@intel.com>
6568
6569 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6570 `movl %esp, %ebp' for the X32 ABI.
6571
f39c6ffd
TT
65722012-05-07 Tom Tromey <tromey@redhat.com>
6573
6574 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6575 get_DW_TAG_name.
6576 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6577 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6578 (dwarf_stack_op_name): Remove.
6579 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6580 (decode_locdesc): Use get_DW_OP_name.
6581 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6582 (dwarf2_compile_expr_to_ax): Likewise.
6583 (disassemble_dwarf_expression): Likewise.
6584 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6585
1e1f6591
CLT
65862012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6587
6588 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6589 (sh_linux_sigtramp_cache): New function.
6590 (sh_linux_sigreturn_init): New function.
6591 (sh_linux_rt_sigreturn_init): New function.
6592 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6593 patterns.
6594 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6595 syscall codes.
6596 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6597 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6598 (sh_linux_init_abi): Add init calls to register new tramp_frame
6599 definitions under 32-bit SH, update comments.
6600
545c08b4
PA
66012012-05-07 Pedro Alves <palves@redhat.com>
6602
daac165e
PA
6603 PR gdb/10952
6604
545c08b4
PA
6605 * amd64-linux-tdep.c: Include glibc-tdep.h.
6606 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6607 gdbarch_skip_solib_resolver callback.
6608
af2c1515
JK
66092012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6610
6611 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6612 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6613 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6614 (add_auto_load_safe_path): Change the error message.
6615 (_initialize_auto_load): Change the "safe-path" help text.
6616 * configure: Regenerate
6617 * configure.ac (--without-auto-load-safe-path): Set
6618 WITH_AUTO_LOAD_SAFE_PATH to /.
6619
1067f998
SDJ
66202012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6621
6622 * stap-probe.h: Do not include unecessary `probe.h'.
6623
45dfa85a
AM
66242012-05-05 Alan Modra <amodra@gmail.com>
6625
6626 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6627 bfd_und_section_ptr.
6628 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6629 and bfd_com_section_ptr.
6630
cf093994
JB
66312012-05-04 Joel Brobecker <brobecker@adacore.com>
6632
762ebb75 6633 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 6634
d40dc7a8
JB
66352012-05-04 Joel Brobecker <brobecker@adacore.com>
6636
6637 * windows-nat.h (segment_register_p_ftype): New typedef.
6638 (windows_set_segment_register_p): Add declaration.
6639 * windows-nat.c (segment_register_p): New static global.
6640 (windows_set_segment_register_p): New function.
6641 (do_windows_fetch_inferior_registers): Add special handling
6642 for segment registers.
6643 * amd64-windows-nat.c: #include "amd64-tdep.h".
6644 (amd64_windows_segment_register_p): New function.
6645 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6646 * i386-windows-nat.c: #include "i386-tdep.h".
6647 (i386_windows_segment_register_p): New function.
6648 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6649
52b3699b
TG
66502012-05-04 Tristan Gingold <gingold@adacore.com>
6651
6652 * printcmd.c (set_command): Emit a warning if the expression is not
6653 an assignment.
6654
94c74239
JB
66552012-05-03 Joel Brobecker <brobecker@adacore.com>
6656
6657 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6658 Make static.
6659
fcf57f19
SDJ
66602012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6661
6662 * stap-probe.c (stap_is_operator): Change declaration.
6663 (stap_get_opcode): Change return value.
6664 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6665 `stap_parse_argument_1'.
6666
27d2932e
PA
66672012-05-03 Pedro Alves <pedro@codesourcery.com>
6668
6669 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6670 debug log.
6671
a20ee7a4
SCR
66722012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6673
6674 Add two new methods global_block and static_block to gdb.Symtab
6675 objects.
6676 * NEWS (Python scripting): Add entry about the new methods.
6677 * python/py-symtab.c (stpy_global_block): New function which
6678 implements the gdb.Symtab.global_block() method.
6679 (stpy_static_block): New function which implements the
6680 gdb.Symtab.static_block() method.
6681 (symtab_object_methods): Add entries for the two new methods.
6682
943cb756
DE
66832012-05-03 Doug Evans <dje@google.com>
6684
6685 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6686 files.
6687
f4644a3f
YQ
66882012-05-03 Yao Qi <yao@codesourcery.com>
6689
6690 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6691 space.
6692 (i386_process_record): Ditto.
6693
ef61f180
JB
66942012-05-02 Joel Brobecker <brobecker@adacore.com>
6695
6696 * infcall.c (unwind_on_signal_p): Make static.
6697
02f1df11
JB
66982012-05-02 Joel Brobecker <brobecker@adacore.com>
6699
6700 * sol-thread.c (solaris_pid_to_str): Make static.
6701 (_initialize_sol_thread): Add prototype.
6702
39023530
JB
67032012-05-02 Joel Brobecker <brobecker@adacore.com>
6704
6705 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6706
c6b0c501
CF
67072012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6708
6709 * MAINTAINERS: Remove myself.
6710
1ef71717
JK
67112012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6712
6713 Fix --without-auto-load-safe-path for MS-Windows host platform.
6714 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6715
b31b86a7
EZ
67162012-05-02 Eli Zaretskii <eliz@gnu.org>
6717
6718 * gdb_curses.h: Undefine KEY_EVENT before including curses
6719 headers. Move "#undef MOUSE_MOVED" before any curses header
6720 inclusion.
6721
777532fc
SDJ
67222012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6723
6724 * features/i386/i386-mmx-linux.c: Regenerate.
6725 * features/rs6000/powerpc-32.c: Likewise.
6726 * features/rs6000/powerpc-32l.c: Likewise.
6727 * features/rs6000/powerpc-403.c: Likewise.
6728 * features/rs6000/powerpc-403gc.c: Likewise.
6729 * features/rs6000/powerpc-405.c: Likewise.
6730 * features/rs6000/powerpc-505.c: Likewise.
6731 * features/rs6000/powerpc-601.c: Likewise.
6732 * features/rs6000/powerpc-602.c: Likewise.
6733 * features/rs6000/powerpc-603.c: Likewise.
6734 * features/rs6000/powerpc-604.c: Likewise.
6735 * features/rs6000/powerpc-64.c: Likewise.
6736 * features/rs6000/powerpc-64l.c: Likewise.
6737 * features/rs6000/powerpc-750.c: Likewise.
6738 * features/rs6000/powerpc-860.c: Likewise.
6739 * features/rs6000/powerpc-e500.c: Likewise.
6740 * features/rs6000/powerpc-e500l.c: Likewise.
6741 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6742 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6743 * features/rs6000/rs6000.c: Likewise.
6744
d71871bc
SDJ
67452012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6746
6747 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6748 variable.
6749 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6750 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6751 (stap_parse_argument) <e>: Likewise.
6752 (handle_stap_probe) <byte_order>: Likewise.
6753
fd820528
DE
67542012-04-30 Doug Evans <dje@google.com>
6755
6756 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6757 init_and_read_dies_worker. All callers updated.
6758 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6759 replaced with init_cutu_and_read_dies.
6760 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6761 (find_partial_die): Remove FIXME. Don't free current CU.
6762
ec3f619d 67632012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
6764
6765 * contrib: New directory.
6766 * contrib/test_pubnames_and_indexes.py: New file.
6767
fceca515
DE
67682012-04-30 Doug Evans <dje@google.com>
6769
6770 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6771 All callers updated.
6772 (init_cu_die_reader): Verify the section is non-empty.
6773 (dwarf_decode_line_header): Don't dereference section->asection
6774 until we know the section is present.
6775
311fe7e1
SDJ
67762012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6777
6778 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6779 probes.
6780
5977971a
YQ
67812012-04-29 Yao Qi <yao@codesourcery.com>
6782
6783 * gdb-code-style.el: New hook gdb-markup-hook
6784 and gdb-comment-hook.
6785
dee91e82
DE
67862012-04-28 Doug Evans <dje@google.com>
6787
3019eac3
DE
6788 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6789 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6790 objfile->obfd.
6791 * symfile.h (dwarf2_debug_sections): New member addr.
6792 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6793 (ctx_no_get_addr_index): New function.
6794 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6795 (ctx_no_get_addr_index): Declare.
6796 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6797 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6798 (dwarf_expr_ctx_funcs): Update.
6799 (needs_get_addr_index): New function.
6800 (needs_frame_ctx_funcs): Update.
6801 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6802 * dwarf2read.c: #include "gdbcore.h".
6803 (dwarf2_per_objfile): New members addr, dwo_files.
6804 (dwarf2_elf_names): Add entry for addr.
6805 (struct dwo_section_names): New type.
6806 (dwo_section_names): New static global.
6807 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6808 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6809 old debug_types_section member updated to use this.
6810 Rename member debug_types_section to info_or_types_section,
6811 all uses updated.
6812 (signatured_type): Rename member type_offset to type_offset_in_tu,
6813 all uses updated. New member type_offset_in_section.
6814 (struct dwo_sections): New type.
6815 (struct dwo_unit): New type.
6816 (struct dwo_file): New type.
6817 (die_reader_specs): New member dwo_file.
6818 (dwarf2_locate_sections): Watch for .debug_addr.
6819 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6820 (dwarf2_read_section): Get bfd of section from bfd's asection,
6821 instead of objfile.
6822 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6823 (create_signatured_type_table_from_index): Initialize
6824 sig_type->info_or_types_section.
6825 (dw2_get_file_names): Statement lists for type units with DWO files
6826 live in the DWO file.
6827 (create_debug_types_hash_table): New function.
6828 (create_all_type_units): Rewrite.
6829 (init_cu_die_reader): New arg dwo_file, all callers updated.
6830 (init_and_read_dies_worker): Get section from
6831 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6832 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6833 continue reading the CU/TU from there.
6834 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6835 updated. Get section from this_cu->info_or_types_section.
6836 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6837 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6838 DW_FORM_GNU_str_index.
6839 (hash_dwo_file, eq_dwo_file): New functions.
6840 (allocate_dwo_file_hash_table): New function.
6841 (hash_dwo_unit, eq_dwo_unit): New functions.
6842 (allocate_dwo_unit_table): New function.
6843 (dwarf2_locate_dwo_sections): New function.
6844 (struct create_dwo_info_table_data): New type.
6845 (create_debug_info_hash_table_reader): New function.
6846 (create_debug_info_hash_table): New function.
6847 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6848 (lookup_dwo_file): New function.
6849 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6850 (free_dwo_file, free_dwo_file_cleanup): New functions.
6851 (free_dwo_file_from_slot, free_dwo_files): New functions.
6852 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6853 (dwarf2_record_block_ranges): Ditto.
6854 (read_partial_die): Ditto.
6855 (process_enumeration_scope): Update to use type_offset_in_section.
6856 (read_full_die_1): New function.
6857 (read_full_die): Rewrite.
6858 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6859 DW_FORM_GNU_str_index.
6860 (read_addr_index_1, read_addr_index): New functions.
6861 (read_addr_index_from_leb128): New function.
6862 (struct dwarf2_read_addr_index_data): New type.
6863 (dwarf2_read_addr_index_reader): New function.
6864 (dwarf2_read_addr_index): New function.
6865 (read_str_index): New function.
6866 (leb128_size): New function.
6867 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6868 If processing a type unit from a DWO file, get the line section
6869 from the DWO file.
6870 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6871 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6872 DW_FORM_GNU_str_index.
6873 (lookup_die_type): Check whether section offset of type's die is
6874 known before looking it up. Remove assert. Condition can
6875 legimately happen for inter-cu type references.
6876 (dwarf_attr_name): Handle Fission attributes.
6877 (dwarf_form_name): Handle Fission forms.
6878 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6879 DW_FORM_GNU_str_index.
6880 (follow_die_sig): Update to use type_offset_in_section.
6881 (decode_locdesc): New case DW_OP_GNU_addr_index.
6882 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6883 DW_FORM_GNU_str_index.
6884 (cu_debug_loc_section): New function.
6885 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
6886 (dwarf2_per_objfile_free): Unmap .debug_addr section.
6887 Free DWO files if present.
6888 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
6889
dee91e82
DE
6890 Refactor DIE reading.
6891 * dwarf2read.c (dwarf2_per_objfile): Replace members
6892 debug_info_type_hash and debug_types_type_hash with die_type_hash.
6893 (die_reader_specs): New member "die_section". Temporarily make
6894 member "buffer" non-const, pending constifying all info_ptr uses.
6895 (die_reader_func_ftype): New typedef.
6896 (dw2_get_file_names_reader): New function.
6897 (dw2_get_file_names): Rewrite.
6898 (read_and_check_type_unit_head): Rename arg type_offset to
6899 type_offset_in_tu.
6900 (create_all_type_units): Improve debugging message.
6901 Improve dummy type unit check.
6902 (init_cu_die_reader): New arg "section". All callers updated.
6903 (init_and_read_dies_worker): New function.
6904 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
6905 (init_cutu_and_read_dies_no_follow): New function.
6906 (init_cutu_and_read_dies_simple): New function.
6907 (process_psymtab_comp_unit_reader): New function.
6908 (process_psymtab_comp_unit): Delete args section,
6909 is_debug_types_section. Rewrite. All callers updated.
6910 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
6911 All callers updated. Rewrite.
6912 (load_partial_comp_unit_reader): New function.
6913 (load_partial_comp_unit): Rewrite.
6914 (skip_children): New arg reader. Delete args buffer, cu.
6915 All callers updated.
6916 (skip_one_die): New arg reader. Delete args buffer, cu.
6917 All callers updated.
6918 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
6919 All callers updated.
6920 (load_full_comp_unit_reader): New function.
6921 (load_full_comp_unit): Rewrite.
6922 (read_comp_unit): Delete.
6923 (read_die_and_children_1): Delete, contents moved ...
6924 (read_die_and_children): ... here.
6925 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
6926 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
6927 All callers updated.
6928 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
6929 All callers updated.
6930 (find_partial_die): Rewrite load_all_dies support.
6931 (read_attribute_value): New arg reader. Delete args abfd, cu.
6932 All callers updated.
6933 (read_attribute): New arg reader. Delete args abfd, cu.
6934 All callers updated.
6935 (load_full_type_unit): Add assert.
6936 (read_signatured_type_reader): New function.
6937 (read_signatured_type): Rewrite.
6938 (free_stack_comp_unit): Remove call to age_cached_comp_units.
6939 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
6940 All callers updated. Set per_cu->cu = NULL after freeing it.
6941 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
6942 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
6943 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
6944 (set_die_type): Update.
6945 (get_die_type_at_offset): Update.
6946 (read_file_scope): Call prepare_one_comp_unit.
6947 (read_type_unit_scope): Ditto.
6948 (prepare_one_comp_unit): Set producer if present.
6949
72d59e0d
SDJ
69502012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
6951
6952 * probe.c (compile_rx_or_error): Silence ARI warning about missing
6953 gettext function on `error'.
6954
0fefef59
DE
69552012-04-27 Doug Evans <dje@google.com>
6956
6957 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
6958 is empty.
6959
28106bc2
SDJ
69602012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6961 Tom Tromey <tromey@redhat.com>
6962
6963 * breakpoint.c (struct breakpoint_objfile_data)
6964 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
6965 <exception_probes>: New fields.
6966 (free_breakpoint_probes): New function.
6967 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
6968 `_Unwind_DebugHook'.
6969 (create_exception_master_breakpoint): Likewise.
6970 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
6971 * infrun.c: Including necessary header files for handling SystemTap
6972 probes.
6973 (handle_inferior_event): Handling longjmp breakpoint and exceptions
6974 via SystemTap probes.
6975 (check_exception_resume): Remove `func' argument. Handle exception
6976 unwinding breakpoint set via a SystemTap probe.
6977 (insert_exception_resume_from_probe): New function.
6978
55aa24fb
SDJ
69792012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
6980 Tom Tromey <tromey@redhat.com>
6981 Jan Kratochvil <jan.kratochvil@redhat.com>
6982
6983 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
6984 (COMMON_OBS): Likewise.
6985 (HFILES_NO_SRCDIR): Add `probe'.
6986 * NEWS: Mention support for static and SystemTap probes.
6987 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
6988 SystemTap probes' arguments parser.
6989 * arm-linux-tdep.c: Including headers needed to perform the parsing
6990 of SystemTap probes' arguments.
6991 (arm_stap_is_single_operand): New function.
6992 (arm_stap_parse_special_token): Likewise.
6993 (arm_linux_init_abi): Initializing proper fields used by SystemTap
6994 probes' arguments parser.
6995 * ax-gdb.c (require_rvalue): Removing static declaration.
6996 (gen_expr): Likewise.
6997 * ax-gdb.h (gen_expr): Declaring function.
6998 (require_rvalue): Likewise.
6999 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7000 (bkpt_probe_breakpoint_ops): New variable.
7001 (momentary_breakpoint_from_master): Set the `probe' value.
7002 (add_location_to_breakpoint): Likewise.
7003 (break_command_1): Using proper breakpoint_ops according to the
7004 argument passed by the user in the command line.
7005 (bkpt_probe_insert_location): New function.
7006 (bkpt_probe_remove_location): Likewise.
7007 (bkpt_probe_create_sals_from_address): Likewise.
7008 (bkpt_probe_decode_linespec): Likewise.
7009 (tracepoint_probe_create_sals_from_address): Likewise.
7010 (tracepoint_probe_decode_linespec): Likewise.
7011 (tracepoint_probe_breakpoint_ops): New variable.
7012 (trace_command): Using proper breakpoint_ops according to the
7013 argument passed by the user in the command line.
7014 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7015 static probes on breakpoints and tracepoints.
7016 * breakpoint.h (struct bp_location) <probe>: New field.
7017 * cli-utils.c (skip_spaces_const): New function.
7018 (extract_arg): Likewise.
7019 * cli-utils.h (skip_spaces_const): Likewise.
7020 (extract_arg): Likewise.
7021 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7022 * configure.ac: Append `stap-probe.o' to be generated when ELF
7023 support is present.
7024 * configure: Regenerate.
7025 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7026 * elfread.c: Include `probe.h' and `arch-utils.h'.
7027 (probe_key): New variable.
7028 (elf_get_probes): New function.
7029 (elf_get_probe_argument_count): Likewise.
7030 (elf_evaluate_probe_argument): Likewise.
7031 (elf_compile_to_ax): Likewise.
7032 (elf_symfile_relocate_probe): Likewise.
7033 (stap_probe_key_free): Likewise.
7034 (elf_probe_fns): New variable.
7035 (elf_sym_fns): Add `sym_probe_fns' value.
7036 (elf_sym_fns_lazy_psyms): Likewise.
7037 (elf_sym_fns_gdb_index): Likewise.
7038 (_initialize_elfread): Initialize objfile cache for static
7039 probes.
7040 * gdb_vecs.h (struct probe): New forward declaration.
7041 (probe_p): New VEC declaration.
7042 * gdbarch.c: Regenerate.
7043 * gdbarch.h: Regenerate.
7044 * gdbarch.sh (stap_integer_prefix): New variable.
7045 (stap_integer_suffix): Likewise.
7046 (stap_register_prefix): Likewise.
7047 (stap_register_suffix): Likewise.
7048 (stap_register_indirection_prefix): Likewise.
7049 (stap_register_indirection_suffix): Likewise.
7050 (stap_gdb_register_prefix): Likewise.
7051 (stap_gdb_register_suffix): Likewise.
7052 (stap_is_single_operand): New function.
7053 (stap_parse_special_token): Likewise.
7054 (struct stap_parse_info): Forward declaration.
7055 * i386-tdep.c: Including headers needed to perform the parsing
7056 of SystemTap probes' arguments.
7057 (i386_stap_is_single_operand): New function.
7058 (i386_stap_parse_special_token): Likewise.
7059 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7060 probes' arguments parser.
7061 * i386-tdep.h (i386_stap_is_single_operand): New function.
7062 (i386_stap_parse_special_token): Likewise.
7063 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7064 * mipsread.c (ecoff_sym_fns): Likewise.
7065 * objfiles.c (objfile_relocate1): Support relocation for static
7066 probes.
7067 * parse.c (prefixify_expression): Remove static declaration.
7068 (initialize_expout): Likewise.
7069 (reallocate_expout): Likewise.
7070 * parser-defs.h (initialize_expout): Declare function.
7071 (reallocate_expout): Likewise.
7072 (prefixify_expression): Likewise.
7073 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7074 of SystemTap probes' arguments.
7075 (ppc_stap_is_single_operand): New function.
7076 (ppc_stap_parse_special_token): Likewise.
7077 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7078 probes' arguments parser.
7079 * probe.c: New file, for generic statically defined probe support.
7080 * probe.h: Likewise.
7081 * s390-tdep.c: Including headers needed to perform the parsing of
7082 SystemTap probes' arguments.
7083 (s390_stap_is_single_operand): New function.
7084 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7085 probes' arguments parser.
7086 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7087 * stap-probe.c: New file, for SystemTap probe support.
7088 * stap-probe.h: Likewise.
7089 * symfile.h: Include `gdb_vecs.h'.
7090 (struct sym_probe_fns): New struct.
7091 (struct sym_fns) <sym_probe_fns>: New field.
7092 * symtab.c (init_sal): Initialize `probe' field.
7093 * symtab.h (struct probe): Forward declaration.
7094 (struct symtab_and_line) <probe>: New field.
7095 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7096 locations.
7097 (stop_tracing): Likewise.
7098 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7099
22d2b532
SDJ
71002012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7101 Tom Tromey <tromey@redhat.com>
7102
7103 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7104 and to compile agent expressions.
7105 * infrun.c (siginfo_make_value): New argument `ignore'.
7106 (siginfo_funcs): New struct.
7107 (_initialize_infrun): New argument when calling
7108 `create_internalvar_type_lazy'.
7109 * thread.c (thread_id_make_value): New argument `ignore'.
7110 (thread_funcs): New struct.
7111 (_initialize_thread): New argument when calling
7112 `create_internalvar_type_lazy'.
7113 * tracepoint.c (sdata_make_value): New argument `ignore'.
7114 (sdata_funcs): New struct.
7115 (_initialize_tracepoint): New argument when calling
7116 `create_internalvar_type_lazy'.
7117 * value.c (make_value): New struct.
7118 (create_internalvar_type_lazy): New argument `data'.
7119 (compile_internalvar_to_ax): New function.
7120 (value_of_internalvar): Properly handling `make_value' case.
7121 (clear_internalvar): Likewise.
7122 (show_convenience): Adding `TRY_CATCH' block.
7123 * value.h (internalvar_make_value): Delete, replace by...
7124 (struct internalvar_funcs): ... this.
7125 (create_internalvar_type_lazy) <fun>: Delete argument.
7126 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7127 (compile_internalvar_to_ax): New function.
7128 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7129 (tlb_funcs): New struct.
7130 (_initialize_windows_tdep): New argument when calling
7131 `create_internalvar_type_lazy'.
7132
91da1414
MW
71332012-04-27 Mark Wielaard <mjw@redhat.com>
7134
7135 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7136 see whether it is an address or a constant offset from DW_AT_low_pc.
7137 (dwarf2_record_block_ranges): Likewise.
7138 (read_partial_die): Likewise.
7139
4ab9d8ec
MW
71402012-04-26 Mark Wielaard <mjw@redhat.com>
7141
7142 * MAINTAINERS (Write After Approval): Add myself to the list.
7143
a0911fd0
MR
71442012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7145
7146 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7147 (proc_prettyprint_signal): Likewise.
7148 (proc_prettyprint_faultset): Likewise.
7149 (proc_prettyprint_fault): Likewise.
7150 (proc_prettyprint_actionset): Likewise.
7151 (proc_prettyprint_flags): Move to new proc-flags.c section.
7152 (proc_prettyfprint_flags): New prototype.
7153 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7154 (proc_syscall, proc_cursig): Likewise.
7155 (proc_set_kill_on_last_close): Likewise.
7156 (proc_unset_kill_on_last_close): Likewise.
7157 (proc_set_watchpoint): Make static.
7158 (proc_delete_dead_threads): Likewise.
7159 (procfs_set_watchpoint): Likewise.
7160 (_initialize_procfs): Add prototype.
7161 * proc-events.c: Include proc-utils.h.
7162 (init_syscall_table): Make static.
7163 * proc-api.c (_initialize_proc_api): Add prototype.
7164 * proc-flags.c: Include proc-utils.h.
7165
9009e1ae
MR
71662012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7167
7168 * configure.ac: Add AC_ARG_PROGRAM.
7169 * configure: Regenerate.
7170
4fae6e18
JK
71712012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7172
7173 Fix DW_AT_lower_bound defaults for DWARF-4+.
7174 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7175 high. New variable low_default_is_valid. Implement DWARF-4+
7176 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7177 no default by the DWARF standard.
7178
14132e89 71792012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 7180 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
7181
7182 * infrun.c (handle_inferior_event): Move the check for return
7183 trampolines ahead of the check for function trampolines.
7184 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7185 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7186 (mips_str_mips16_ret_stub): Likewise.
7187 (mips_str_call_fp_stub): Likewise.
7188 (mips_str_call_stub): Likewise.
7189 (mips_str_fn_stub): Likewise.
7190 (mips_str_pic): Likewise.
7191 (mips_in_frame_stub): New function.
7192 (mips_unwind_pc): Return the return address rather than the PC
7193 if the PC of an intermediate frame is inside a call thunk.
7194 (mips_is_stub_suffix): New function.
7195 (mips_is_stub_mode): Likewise.
7196 (mips_get_mips16_fn_stub_pc): Likewise.
7197 (mips_skip_mips16_trampoline_code): Update to handle all the
7198 currently generated stub types. Don't recurse into __fn_stub
7199 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7200 Use cooked register accesses.
7201 (mips_in_return_stub): Reintroduce function.
7202 (mips_skip_trampoline_code): Traverse trampolines recursively.
7203 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7204
518f0db5 72052012-04-26 Joel Brobecker <brobecker@adacore.com>
7206
7207 GDB 7.4.1 released.
7208
3184d3f9
JL
72092012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7210
7211 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7212 * features/arm-with-m-vfp-d16.xml: New file. Describes
7213 Cortex-M with VFPv4-sp-d16 FPU register layout.
7214 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7215 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7216 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7217 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7218 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7219
b6201d44
DE
72202012-04-25 Doug Evans <dje@google.com>
7221
7222 * cli/cli-decode.c (print_doc_line): Use stream instead of
7223 current_uiout.
7224
4e2f8df6
SDJ
72252012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7226
7227 * features/arm-with-iwmmxt.c: Regenerate.
7228 * features/arm-with-m-fpa-layout.c: Likewise.
7229 * features/arm-with-m.c: Likewise.
7230 * features/arm-with-neon.c: Likewise.
7231 * features/arm-with-vfpv2.c: Likewise.
7232 * features/arm-with-vfpv3.c: Likewise.
7233 * features/mips-dsp-linux.c: Likewise.
7234 * features/mips-linux.c: Likewise.
7235 * features/mips64-dsp-linux.c: Likewise.
7236 * features/mips64-linux.c: Likewise.
7237 * features/s390-linux32.c: Likewise.
7238 * features/s390-linux32v1.c: Likewise.
7239 * features/s390-linux32v2.c: Likewise.
7240 * features/s390-linux64.c: Likewise.
7241 * features/s390-linux64v1.c: Likewise.
7242 * features/s390-linux64v2.c: Likewise.
7243 * features/s390x-linux64.c: Likewise.
7244 * features/s390x-linux64v1.c: Likewise.
7245 * features/s390x-linux64v2.c: Likewise.
7246 * features/tic6x-c62x-linux.c: Likewise.
7247 * features/tic6x-c62x.c: Likewise.
7248 * features/tic6x-c64x-linux.c: Likewise.
7249 * features/tic6x-c64x.c: Likewise.
7250 * features/tic6x-c64xp-linux.c: Likewise.
7251 * features/tic6x-c64xp.c: Likewise.
7252 * target-descriptions.c: Only generate `field_type' and `type'
7253 variables when needed.
7254
2def3e66
JB
72552012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7256
7257 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7258
a766d390
DE
72592012-04-25 Doug Evans <dje@google.com>
7260
7261 Initial pass at Go language support.
7262 * NEWS: Mention Go.
7263 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7264 go-valprint.c.
7265 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7266 (YYFILES): Add go-exp.c.
7267 (YYOBJ): Add go-exp.o.
7268 (local-maintainer-clean): Delete go-exp.c.
7269 * defs.h (enum language): Add language_go.
7270 * dwarf2read.c: #include "go-lang.h".
7271 (fixup_go_packaging): New function.
7272 (process_full_comp_unit): Call it when processing Go CUs.
7273 (dwarf2_physname): Add Go support.
7274 (read_file_scope): Handle missing language spec for GNU Go.
7275 (set_cu_language): Handle DW_LANG_Go.
7276 * go-exp.y: New file.
7277 * go-lang.h: New file.
7278 * go-lang.c: New file.
7279 * go-typeprint.c: New file.
7280 * go-valprint.c: New file.
7281 * symtab.c: #include "go-lang.h".
7282 (symbol_set_language): Handle language_go.
7283 (symbol_find_demangled_name, symbol_set_names): Ditto.
7284 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7285
4e2af517
JM
72862012-04-24 Jim Meyering <meyering@redhat.com>
7287
7288 avoid a few strncpy-induced buffer overruns
7289 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7290 fname and psargs before trying to concatenate.
7291 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7292 "name" before applying strchr.
7293
b77b7f52
SCR
72942012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7295
7296 * CONTRIBUTE: Use unified diff instead of context diff when
7297 generating patches.
7298
6321c22a
MR
72992012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7300
7301 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7302 code. Handle JR.HB correctly.
7303
742c84f6
MR
73042012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7305
7306 * mips-tdep.c
7307 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7308 with the other MIPS16 helpers.
7309
7fc7e0c3
SDJ
73102012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7311
7312 * observer.sh: Conditionally declare `args', thus cleaning up
7313 unused instances of this variable.
7314
20388dd6
YQ
73152012-04-24 Yao Qi <yao@codesourcery.com>
7316
7317 Revert this patch to allow breakpoint always-inserted
7318 in record target.
7319 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
7320 * breakpoint.c: Include record.h.
7321 (breakpoints_always_inserted_mode): Return false when the record
7322 target is in use.
20388dd6
YQ
7323
7324 * breakpoint.c (iterate_over_bp_locations): New.
7325 * breakpoint.h: Declare.
7326 New typedef walk_bp_location_callback.
7327 * record.c (record_open): Call record_init_record_breakpoints.
7328 (record_sync_record_breakpoints): New.
7329 (record_init_record_breakpoints): New.
7330 * NEWS: Mention supporting breakpoint always-inserted mode in
7331 record target.
7332
4734f50e
MK
73332012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7334
7335 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7336 any thread.
7337
c326b90e
YQ
73382012-04-24 Yao Qi <yao@codesourcery.com>
7339
7340 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7341 (is_catchpoint): ... it.
7342 (print_one_breakpoint_location): Caller update.
7343 * breakpoint.h: Update declaration.
7344
d8fb5a1e
DM
73452012-04-23 David S. Miller <davem@davemloft.net>
7346
7347 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7348
34431a2a
TT
73492012-04-23 Tom Tromey <tromey@redhat.com>
7350
7351 * buildsym.c (add_free_pendings): Remove.
7352 * buildsym.h (add_free_pendings): Remove.
7353
4568ecf9
DE
73542012-04-23 Doug Evans <dje@google.com>
7355
7356 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7357 attr.u.unsnd instead of attr.u.addr.
7358 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7359 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7360 DW_FORM_ref_udata.
7361 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7362 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7363 DW_FORM_ref_udata.
7364 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7365
dca9aa3a
MR
73662012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7367
7368 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7369 (mips_o32_return_value): Likewise.
7370 (mips_o64_return_value): Likewise.
7371
c8ea1972
PH
73722012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7373
7374 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
7375 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7376 their treatment in eval.c.
c8ea1972 7377
8d1b3521
DM
73782012-04-21 David S. Miller <davem@davemloft.net>
7379
7380 * sparc-tdep.c (X_DISP10): Define.
7381 (sparc_analyze_control_transfer): Handle compare-and-branch.
7382
03145bf4
JL
73832012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7384
7385 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7386 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7387
004159a2 73882012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 7389 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
7390
7391 * mips-tdep.c (mips_float_register_p): New function.
7392 (mips_convert_register_float_case_p): Use mips_float_register_p.
7393 (mips_register_type): Likewise.
7394 (mips_print_register): Likewise.
7395 (print_gp_register_row): Likewise.
7396 (mips_print_registers_info): Likewise.
7397
7f0e6aae
MR
73982012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7399
7400 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7401 of mips16 symbols.
7402
bc17beea
AP
74032012-04-20 Andrew Pinski <apinski@cavium.com>
7404
7405 * MAINTAINERS (Write After Approval): Add myself to the list.
7406
1730a5a5
SDJ
74072012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7408
7409 * MAINTAINERS: Update my e-mail address.
7410
38ea300a
PA
74112012-04-20 Pedro Alves <palves@redhat.com>
7412
7413 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7414 $srcdir.
7415 * configure: Regenerate.
7416
111dfaae
SDJ
74172012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7418
7419 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7420 declaration.
7421 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7422
4fb2c64a
JK
74232012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7424
7425 Fix compilation compatibility with python-2.4
7426 * python/py-type.c (convert_field): Cast ADDRSTRING for
7427 PyObject_SetAttrString as non-const. New comment.
7428
6328eb38
TT
74292012-04-19 Tom Tromey <tromey@redhat.com>
7430
7431 * top.c (quit_target): Use all_cleanups.
7432 * main.c (captured_command_loop): Use all_cleanups.
7433 * exceptions.c (throw_exception): Use all_cleanups.
7434
c971b7fa
PA
74352012-04-19 Pedro Alves <palves@redhat.com>
7436
7437 * Makefile.in (GNULIB_BUILDDIR): New.
7438 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7439 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7440 (CLEANDIRS). Remove gnulib/import.
7441 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7442 (all-lib): Ditto.
7443 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7444 (gnulib/import/Makefile): Replace gnulib/import with
7445 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7446 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7447 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7448 acx_configure_dir.m4.
7449 * acinclude.m4: Include acx_configure_dir.m4.
7450 * acx_configure_dir.m4: New file.
7451 * aclocal.m4: Regenerate.
a09130f9
PA
7452 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7453 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7454 (GNULIB): New variable.
7455 (GNULIB_STDINT_H): Adjust.
7456 (AC_OUTPUT): Don't output gnulib/Makefile.
7457 * gdb/defs.h: Include build-gnulib/config.h.
7458 * aclocal.m4: Regenerate.
7459 * config.in: Regenerate.
7460 * configure: Regenerate.
7461
7462 * gnulib/Makefile.in: New file.
7463 * gnulib/configure.ac: New file.
7464 * gnulib/aclocal.m4: New file.
7465 * gnulib/config.in: New file.
7466 * gnulib/configure: New file.
c971b7fa
PA
7467 * gnulib/: Re-run gnulib-tool to adjust.
7468
b10faa68
DE
74692012-04-19 Doug Evans <dje@google.com>
7470
7471 * cleanups.h (struct cleanup): Move to cleanups.c.
7472 (make_cleanup_dtor_ftype): New typedef.
7473 (make_cleanup_dtor): Use it.
7474 (ALL_CLEANUPS): Replace with ...
7475 (all_cleanups): ... this. Declare. All uses updated.
7476 * cleanups.c: #include "gdb_assert.h".
7477 (sentinel_cleanup): New static global.
7478 (SENTINEL_CLEANUP): Define.
7479 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7480 (make_my_cleanup2): Assert result is non-NULL.
7481 (all_cleanups): New function.
7482 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7483 of NULL.
7484
d8c267cc
PA
74852012-04-19 Pedro Alves <palves@redhat.com>
7486
7487 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7488 Adjust paths to gnulib imported files.
7489
809277f8
PA
74902012-04-19 Pedro Alves <palves@redhat.com>
7491
7492 * gnulib/: Move whole directory ...
7493 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7494 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7495 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7496 (aclocal_m4_deps): Adjust.
7497 * aclocal.m4: Regenerate.
7498 * configure: Regenerate.
7499 * configure.ac: Adjust AC_OUTPUT output.
7500
aad9eab9
YQ
75012012-04-19 Yao Qi <yao@codesourcery.com>
7502
7503 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7504 (vec.o): New rule.
7505 * vec.c: Move it ...
7506 * common/vec.c: ... here.
7507 * vec.h: Move it ...
7508 * common/vec.h: ... here.
7509
48fe4669
YQ
75102012-04-19 Yao Qi <yao@codesourcery.com>
7511
7512 * gdb-code-style.el: New.
7513
770d76d7
PA
75142012-04-18 Pedro Alves <palves@redhat.com>
7515
7516 Update gnulib from latest git.
7517 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7518
7519 * gnulib/Makefile.am: Update.
7520 * gnulib/dummy.c: Update.
7521 * gnulib/extra/arg-nonnull.h: Update.
7522 * gnulib/extra/c++defs.h: Update.
7523 * gnulib/extra/update-copyright: Update.
7524 * gnulib/extra/warn-on-use.h: Update.
7525 * gnulib/inttypes.in.h: Update.
7526 * gnulib/m4/00gnulib.m4: Update.
7527 * gnulib/m4/extensions.m4: Update.
7528 * gnulib/m4/gnulib-cache.m4: Update.
7529 * gnulib/m4/gnulib-common.m4: Update.
7530 * gnulib/m4/gnulib-comp.m4: Update.
7531 * gnulib/m4/gnulib-tool.m4: Update.
7532 * gnulib/m4/include_next.m4: Update.
7533 * gnulib/m4/inttypes-pri.m4: Update.
7534 * gnulib/m4/inttypes.m4: Update.
7535 * gnulib/m4/longlong.m4: Update.
7536 * gnulib/m4/memchr.m4: Update.
7537 * gnulib/m4/memmem.m4: Update.
7538 * gnulib/m4/mmap-anon.m4: Update.
7539 * gnulib/m4/multiarch.m4: Update.
7540 * gnulib/m4/onceonly.m4: Update.
7541 * gnulib/m4/stddef_h.m4: Update.
7542 * gnulib/m4/stdint.m4: Update.
7543 * gnulib/m4/string_h.m4: Update.
7544 * gnulib/m4/warn-on-use.m4: Update.
7545 * gnulib/m4/wchar_h.m4: Update.
7546 * gnulib/m4/wchar_t.m4: Update.
7547 * gnulib/m4/wint_t.m4: Update.
7548 * gnulib/memchr.c: Update.
7549 * gnulib/memmem.c: Update.
7550 * gnulib/stddef.in.h: Update.
7551 * gnulib/stdint.in.h: Update.
7552 * gnulib/str-two-way.h: Update.
7553 * gnulib/string.in.h: Update.
7554 * gnulib/wchar.in.h: Update.
7555
7556 * gnulib/extra/arg-nonnull.h: Delete.
7557 * gnulib/extra/c++defs.h: Delete.
7558 * gnulib/extra/warn-on-use.h: Delete.
7559 * gnulib/m4/wchar_h.m4: Delete.
7560 * gnulib/m4/wint_t.m4: Delete.
7561 * gnulib/wchar.in.h: Delete.
7562
7563 * gnulib/extra/snippets/arg-nonnull.h: New.
7564 * gnulib/extra/snippets/c++defs.h: New.
7565 * gnulib/extra/snippets/warn-on-use.h: New.
7566
7567 * aclocal.m4: Regenerate.
7568 * config.in: Regenerate.
7569 * configure: Regenerate.
7570 * gnulib/Makefile.in: Regenerate.
7571
174e088e
PA
75722012-04-18 Pedro Alves <palves@redhat.com>
7573
7574 Reimport the update-copyright module from gnulib
7575 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7576
7577 * configure: Regenerate.
7578 * gnulib/Makefile.am: Update.
7579 * gnulib/Makefile.in: Regenerate.
7580 * gnulib/extra/update-copyright: Update.
7581 * gnulib/m4/gnulib-cache.m4: Update.
7582 * gnulib/m4/gnulib-comp.m4: Update.
7583
7f533142
JB
75842012-04-18 Tristan Gingold <gingold@adacore.com>
7585
7586 * configure.ac (aix): Put -lpthread into libs.
7587 * configure: Regenerate.
7588
001822aa
TT
75892012-04-18 Tom Tromey <tromey@redhat.com>
7590
7591 * linespec.c (convert_linespec_to_sals): Don't use
7592 SYMBOL_OBJ_SECTION.
7593 (compare_msymbols): Arguments are minsym_and_objfile, not
7594 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7595
db026a31
PA
75962012-04-18 Pedro Alves <palves@redhat.com>
7597
7598 Revert gnulib/ part of:
7599 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7600 Copyright year update in most files (performed by copyright.sh).
7601
12df843f
JK
76022012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7603
7604 Fix 64-bit constants on 32-bit hosts.
7605 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7606 from unsigned long to ULONGEST.
7607 (read_signed_leb128): Change declaration return type from long to
7608 LONGEST.
7609 (dwarf2_const_value_attr): Change declaration parameter value from long
7610 to LONGEST.
7611 (dwarf2_compute_name): Change variable value from long to LONGEST.
7612 (read_unsigned_leb128): Change return type, variable result and some
7613 casts from unsigned long to ULONGEST.
7614 (read_signed_leb128): Change return type, variable result and some
7615 casts from long to LONGEST.
7616 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7617 value from long to LONGEST.
7618 (dwarf2_const_value): Change variable value from long to LONGEST.
7619 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7620 plongest and hex_string.
7621 * symtab.h (struct general_symbol_info): Change ivalue from long to
7622 LONGEST, remove the comment.
7623 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7624 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7625
14e75d8e
JK
76262012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7627
7628 PR symtab/7259:
7629 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7630 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
7631 (ada_discrete_type_low_bound): Fix function comment. Use
7632 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
7633 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7634 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7635 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7636 Use TYPE_FIELD_ENUMVAL.
7637 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7638 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7639 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7640 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7641 TYPE_CODE_ENUM.
7642 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7643 * dwarf2read.c (process_enumeration_scope): Likewise.
7644 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7645 field.bitpos.
7646 (class StructMainTypePrettyPrinter): Support also
7647 FIELD_LOC_KIND_ENUMVAL.
7648 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7649 TYPE_CODE_ENUM.
7650 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7651 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7652 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7653 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7654 field enumval.
7655 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7656 accommodate enumval.
7657 (struct call_site): Adjust loc_kind to accommodate enumval.
7658 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7659 (TYPE_FIELD_ENUMVAL): New macros.
7660 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7661 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7662 TYPE_CODE_ENUM.
7663 * p-typeprint.c (pascal_type_print_base): Likewise.
7664 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7665 enumval.
7666 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7667 * python/py-type.c (convert_field): New variable addrstring. Use
7668 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7669 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7670 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7671 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7672 TYPE_CODE_ENUM.
7673 * valprint.c (generic_val_print): Likewise.
7674
380bca97
DE
76752012-04-17 Doug Evans <dje@google.com>
7676
dcc07052
DE
7677 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7678
380bca97
DE
7679 * dwarf2read.c: Whitespace fixes.
7680 (lookup_signatured_type): Tweak comment.
7681 (get_die_type_at_offset): Fix comment.
7682
ec92004f
JB
76832012-04-17 Joel Brobecker <brobecker@adacore.com>
7684
7685 * xcoffread.c (xcoff_secnum_to_sections): New function.
7686 (secnum_to_section, secnum_to_bfd_section): Reimplement
7687 using xcoff_secnum_to_sections. Rename "secnum" parameter
7688 into "n_scnum".
7689 (RECORD_MINIMAL_SYMBOL): Delete.
7690 (record_minimal_symbol): New function.
7691 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7692 by call to record_minimal_symbol and set misc_func_recorded
7693 to 1. Set last_csect_sec to the XCOFF section index instead
7694 of GDB's section_offset index. Update calls to
7695 prim_record_minimal_symbol_and_info to pass the BFD section
7696 as well.
7697
40301fb7
JB
76982012-04-17 Joel Brobecker <brobecker@adacore.com>
7699
7700 * xcoffread.c (read_xcoff_symtab): Delete variables
7701 last_csect_val and last_csect_sec and associated code.
7702
e0088cfd
DE
77032012-04-17 Doug Evans <dje@google.com>
7704
58d5e2c3
DE
7705 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7706 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7707 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7708 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7709
c27f5738
DE
7710 * cleanups.h: New file.
7711 * cleanups.c: New file.
7712 * Makefile.in (SFILES): Add cleanups.c.
7713 (HFILES_NO_SRCDIR): Add cleanups.h.
7714 (COMMON_OBS): Add cleanups.o.
7715 * defs.h (struct cleanup): Moved to cleanups.h.
7716 (do_cleanups,do_final_cleanups): Ditto.
7717 (discard_cleanups,discard_final_cleanups): Ditto
7718 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7719 (save_cleanups,save_final_cleanups): Ditto.
7720 (restore_cleanups,restore_final_cleanups): Ditto.
7721 (null_cleanup): Ditto.
7722 (make_my_cleanup,make_my_cleanup2): Ditto.
7723 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7724 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7725 (do_cleanups,do_final_cleanups): Ditto.
7726 (discard_cleanups,discard_final_cleanups): Ditto
7727 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7728 (save_cleanups,save_final_cleanups): Ditto.
7729 (restore_cleanups,restore_final_cleanups): Ditto.
7730 (null_cleanup): Ditto.
7731 (make_my_cleanup,make_my_cleanup2): Ditto.
7732 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7733
e0088cfd
DE
7734 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7735 make_my_cleanup.
7736 (make_cleanup_dyn_string_delete): Ditto.
7737 (make_cleanup_ui_file_delete): Ditto.
7738 (make_cleanup_ui_out_redirect_pop): Ditto.
7739 (make_cleanup_free_section_addr_info): Ditto.
7740 (make_cleanup_restore_integer): Ditto.
7741 (make_cleanup_unpush_target): Ditto.
7742 (make_cleanup_value_free_to_mark): Ditto.
7743 (make_cleanup_value_free): Ditto.
7744 (make_cleanup_free_so): Ditto.
7745
4dc84fd1
JK
77462012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7747
7748 New option "set debug auto-load".
7749 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7750 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7751 (auto_load_safe_path_vec_update)
7752 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7753 if DEBUG_AUTO_LOAD.
7754 (file_is_auto_load_safe): New parameters debug_fmt and ....
7755 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7756 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7757 caller by explanatory string.
7758 (_initialize_auto_load): Register "set debug auto-load".
7759 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7760 and ....
7761 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7762 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7763 by explanatory string.
7764 * main.c (captured_main): Likewise.
7765 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7766 (source_section_scripts): Likewise.
7767
bccbefd2
JK
77682012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7769
7770 New option "set auto-load safe-path".
7771 * NEWS: New commands "set auto-load safe-path"
7772 and "show auto-load safe-path".
7773 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7774 (auto_load_safe_path, auto_load_safe_path_vec)
7775 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7776 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7777 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7778 (source_gdb_script_for_objfile): New variable is_safe. Call
7779 file_is_auto_load_safe. Return if it is not.
7780 (struct loaded_script): New field loaded.
7781 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7782 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7783 output "Missing" to "No".
7784 (_initialize_auto_load): New variable cmd. Initialize
7785 auto_load_safe_path. Register "set auto-load safe-path",
7786 "show auto-load safe-path" and "add-auto-load-safe-path".
7787 * auto-load.h (maybe_add_script): Add parameter loaded.
7788 (file_is_auto_load_safe): New declaration.
7789 * config.in: Regenerate.
7790 * configure: Regenerate.
7791 * configure.ac: New parameters --with-auto-load-safe-path
7792 and --without-auto-load-safe-path.
7793 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7794 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7795 * main.c (captured_main): Check file_is_auto_load_safe for
7796 LOCAL_GDBINIT.
7797 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7798 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7799 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7800 not.
7801
bf88dd68
JK
78022012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7803
7804 auto-load: Implementation.
7805 * NEWS: New descriptions for "info auto-load",
7806 "info auto-load gdb-scripts", "info auto-load python-scripts",
7807 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7808 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7809 and "show auto-load-scripts". New description for "set auto-load",
7810 "show auto-load", "set auto-load gdb-scripts",
7811 "show auto-load gdb-scripts", "set auto-load python-scripts",
7812 "show auto-load python-scripts", "set auto-load local-gdbinit",
7813 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7814 "show auto-load libthread-db".
7815 * auto-load.c: Remove include python/python-internal.h. Add includes
7816 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7817 cli/cli-setshow.h.
7818 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7819 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7820 (gdbpy_global_auto_load): Rename to ...
7821 (global_auto_load): ... here.
7822 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7823 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7824 (script_language_gdb, source_gdb_script_for_objfile): New.
7825 (struct loaded_script): New field language.
7826 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7827 LANGUAGE.
7828 (maybe_add_script): Add parameter language. Drop redundant
7829 entry.full_path initialization. Initialize entry.language and
7830 (*slot)->language.
7831 (auto_load_objfile_script): Change parameter suffix to language.
7832 Remove the call of maybe_add_script.
7833 Call language->source_script_for_objfile.
7834 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7835 New.
7836 (collect_matching_scripts): Adjust it for
7837 struct collect_matching_scripts_data.
7838 (auto_load_info_scripts_pattern_nl): New variable.
7839 (info_auto_load_scripts): Rename to ...
7840 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7841 for struct collect_matching_scripts_data.
7842 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7843 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7844 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7845 (auto_load_info_cmdlist_get): New.
7846 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7847 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7848 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7849 "info auto-load local-gdbinit".
7850 * auto-load.h (struct script_language): New.
7851 (gdbpy_global_auto_load): Rename to ...
7852 (global_auto_load): ... here.
7853 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7854 (auto_load_local_gdbinit_loaded): New declarations.
7855 (maybe_add_script): New parameter language.
7856 (auto_load_objfile_script): Change parameter suffix to language.
7857 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7858 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7859 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7860 declarations.
7861 * linux-thread-db.c: Include auto-load.h and ctype.h.
7862 (auto_load_thread_db, show_auto_load_thread_db): New.
7863 (struct thread_db_info): New field filename.
7864 (delete_thread_db_info): Call xfree for FILENAME.
7865 (try_thread_db_load): Initialize FILENAME.
7866 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7867 if !AUTO_LOAD_THREAD_DB.
7868 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7869 (_initialize_thread_db): Install auto_load_thread_db
7870 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7871 as "info auto-load libthread-db".
7872 * main.c (captured_main): Rename gdbpy_global_auto_load to
7873 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7874 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7875 (print_gdb_help): Extend the help for 'local init file'.
7876 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7877 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7878 (auto_load_scripts): Rename to ...
7879 (auto_load_python_scripts): ... here, update the comment.
7880 (gdbpy_load_auto_script_for_objfile): New declaration.
7881 (show_auto_load_python_scripts, script_language_python)
7882 (gdbpy_load_auto_script_for_objfile): New.
7883 (source_section_scripts): Refactor the code.
7884 (load_auto_scripts_for_objfile): Rename to ...
7885 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
7886 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
7887 (info_auto_load_python_scripts): New.
7888 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
7889 Rename "set auto-load-scripts" to "set auto-load python-scripts".
7890 Register "set auto-load-scripts" as its deprecated alias. Register
7891 "info auto-load python-scripts". Register "info auto-load-scripts" as
7892 its deprecated alias.
7893 (load_auto_scripts_for_objfile): Rename to ...
7894 (gdbpy_load_auto_scripts_for_objfile): ... here.
7895 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
7896 (gdbpy_load_auto_scripts_for_objfile): ... here.
7897
e2207b9a
JK
78982012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7899
7900 auto-load: Move files.
7901 * Makefile.in (SFILES): Add auto-load.c.
7902 (HFILES_NO_SRCDIR): Add auto-load.h.
7903 (COMMON_OBS): Add auto-load.o.
7904 (distclean): Change .gdbinit for gdb-gdb.gdb.
7905 * auto-load.c: New file, with parts from python/py-auto-load.c.
7906 * auto-load.h: New file, with parts from python/python.h.
7907 * configure: Regenerate.
7908 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
7909 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
7910 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
7911 * main.c: Include auto-load.h.
7912 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
7913 command.h, observer.h and progspace.h to auto-load.c. Add include
7914 auto-load.h.
7915 (gdbpy_global_auto_load, struct auto_load_pspace_info)
7916 (struct loaded_script, auto_load_pspace_data)
7917 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
7918 (hash_loaded_script_entry, eq_loaded_script_entry)
7919 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
7920 (maybe_add_script): Move to auto-load.c.
7921 (source_section_scripts): Change maybe_add_script parameters passing,
7922 use script_not_found_warning_print.
7923 (clear_section_scripts, auto_load_objfile_script)
7924 (auto_load_new_objfile, loaded_script_ptr)
7925 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
7926 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
7927 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
7928 auto_load_new_objfile and info_auto_load_scripts initizations to
7929 auto-load.c.
7930 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
7931
e4ab2fad
JK
79322012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7933
7934 Code cleanup.
7935 * charset.c (find_charset_names): Remove variables ix and elt.
7936 Use free_char_ptr_vec.
7937 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
7938 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7939 debugdir_end. New variable debugdir_len.
7940 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
7941 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
7942 declarations.
7943 * progspace.c (clear_program_space_solib_cache): Remove variables ix
7944 and elt. Use free_char_ptr_vec.
7945 * source.c (add_path): Remove variables argv, arg and argv_index.
7946 New variables dir_vec, back_to, ix and name.
7947 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
7948 make_cleanup_freeargv. Remove variable separator. Simplify the code
7949 no longer expecting DIRNAME_SEPARATOR.
7950 (openp): Remove variable p, p1 and len. New variables dir_vec,
7951 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
7952 no longer expecting DIRNAME_SEPARATOR.
7953 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
7954 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
7955 debugdir_end.
7956 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
7957 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
7958 (dirnames_to_char_ptr_vec): New functions.
7959
5ee4ed9f
JK
79602012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7961
7962 Code cleanup.
7963 * source.c (add_path): Remove always true conditional 'p == 0' and
7964 unindent its code block.
7965
f41f5e61
PA
79662012-04-17 Pedro Alves <palves@redhat.com>
7967
7968 * gdbtypes.h (FIELD_BITPOS): Rename to ...
7969 (FIELD_BITPOS_LVAL): ... this.
7970 (FIELD_BITPOS): New.
7971 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
7972 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
7973 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
7974 SET_FIELD_BITPOS.
7975 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
7976 SET_FIELD_BITPOS.
7977 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
7978 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
7979 * target-descriptions.c (tdesc_gdb_type): Adjust to use
7980 SET_FIELD_BITPOS.
7981
945b3a32
JK
79822012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7983
7984 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
7985 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
7986 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
7987 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
7988 * jv-lang.c (java_link_class_type): Likewise, once.
7989 * stabsread.c (read_enum_type): Likewise.
7990
42476b70
YQ
79912012-04-16 Yao Qi <yao@codesourcery.com>
7992
7993 * common/agent.c (agent_run_command): Add one more parameter `len'.
7994 Update callers.
7995 * common/agent.h: Update declaration.
7996 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7997 Update.
7998 (linux_child_static_tracepoint_markers_by_strid): Ditto.
7999
8264ba82
AG
80002012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8001
8002 PR mi/13393
8003 * value.c (value_actual_type): New function.
8004 * value.h (value_actual_type): New declaration.
8005 * varobj.c (update_type_if_necessary): New function.
8006 (varobj_create): Call value_actual_type instead of
8007 value_type.
8008 (install_dynamic_child): distinct changed and type changed MI variable
8009 objects.
8010 (update_dynamic_varobj_children): Updated for install_dynamic_child
8011 change. All callers updated.
a09130f9 8012 (varobj_update): Support for MI variable object type change if
8264ba82
AG
8013 the value changed and RTTI is used to determine the type.
8014 (create_child_with_value): Call value_actual_type instead of
8015 value_type.
a09130f9 8016 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
8017 specify whether the given value should be casted to enclosing type.
8018 All callers updated.
8019
55a8c076
YQ
80202012-04-14 Yao Qi <yao@codesourcery.com>
8021
8022 Import gnulib module inttypes from git
8023 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8024 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
8025 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8026 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
8027 * aclocal.m4, config.in, configure: Regenerated.
8028 * gnulib/Makefile.am: Update.
8029 * gnulib/Makefile.in: Update.
8030 * gnulib/m4/gnulib-cache.m4: Update.
8031 * gnulib/m4/gnulib-comp.m4: Update.
8032 * gnulib/inttypes.in.h: New.
8033 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 8034 * gnulib/m4/inttypes.m4: New.
55a8c076 8035
ca7781d2
LM
80362012-04-13 Luis Machado <lgustavo@codesourcery.com>
8037
8038 * infrun.c (resume): Update PC address to the real PC after
8039 preparing to do displaced stepping.
8040
e319fa28
DE
80412012-04-12 Doug Evans <dje@google.com>
8042
8043 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8044 All callers updated.
8045
15add3f5
MK
80462012-04-12 Mark Kettenis <kettenis@gnu.org>
8047
8048 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8049
52dc124a
DE
80502012-04-12 Doug Evans <dje@google.com>
8051
0e50663e
DE
8052 * dwarf2read.c (create_all_type_units): Renamed from
8053 create_debug_types_hash_table. All callers updated.
8054
52dc124a
DE
8055 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8056 local type_sig to sig_type, type_offset to type_offset_in_tu.
8057 (hash_signatured_type): Renamed from hash_type_signature,
8058 all callers updated.
8059 (eq_signatured_type): Renamed from eq_type_signature,
8060 all callers updated.
8061 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8062 (process_enumeration_scope): Ditto.
8063 (lookup_signatured_type_at_offset): Ditto.
8064 (load_full_type_unit, read_signatured_type): Ditto.
8065
248fd3bf
YQ
80662012-04-12 Yao Qi <yao@codesourcery.com>
8067
8068 * remote.c (async_remote_interrupt): Correct function name in
8069 debug message.
8070 (async_remote_interrupt_twice): Ditto.
8071
bc3aa6c3
DE
80722012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8073
8074 * source.c (find_and_open_source): Consistently pass resulting
8075 full path through xfullpath.
8076
9e529e1d
JK
80772012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8078
8079 Provide more specific displaced-stepping memory error message.
8080 * infrun.c (displaced_step_prepare): New variable status. Call
8081 target_read_memory instead of read_memory, provide more specific
8082 error message.
8083
82e0cec1
TG
80842012-04-11 Tristan Gingold <gingold@adacore.com>
8085
8086 PR gdb/13901
8087 * darwin-nat.c (darwin_execvp): Revert previous patch.
8088
d987a266
TG
80892012-04-11 Tristan Gingold <gingold@adacore.com>
8090
8091 PR gdb/13901
8092 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8093 in case of change.
8094
016b7430
TG
80952012-04-11 Tristan Gingold <gingold@adacore.com>
8096
8097 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8098 warning.
8099
06fc020f
SCR
81002012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8101
8102 New command 'explore' which helps explore values and types in
8103 scope.
8104 * NEWS: Add an entry about the new 'explore' command.
8105 * data-directory/Makefile.in: Add gdb/command/explore.py
8106 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 8107 command using the GDB Python API.
06fc020f 8108
de0919f8 81092012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
8110
8111 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8112 extension in jump target calculation.
8113
de0919f8 81142012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
8115
8116 * mips-tdep.c (mips32_next_pc): Handle JALX.
8117
2f26ef89
YQ
81182012-04-10 Yao Qi <yao@codesourcery.com>
8119
8120 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8121
2e505b66
YQ
81222012-04-10 Yao Qi <yao@codesourcery.com>
8123
8124 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8125 and gnulib/m4/gnulib-tool.m4.
8126
0d99eb77
DE
81272012-04-10 Doug Evans <dje@google.com>
8128
8129 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8130 (load_partial_dies): Clarify comment.
8131 (find_partial_die): Support rereading type units.
8132 Clarify CU handling, if we know offset is in CU, don't search for the
8133 containing CU. Add comment regarding memory waste.
8134
9a82b8ff
L
81352012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8136
8137 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8138 i386/x32-avx and i386/x32-avx-linux.
8139 (i386/x32-expedite): New.
8140 (i386/x32-linux-expedite): Likewise.
8141 (i386/x32-avx-expedite): Likewise.
8142 (i386/x32-avx-linux-expedite): Likewise.
8143 ($(outdir)/i386/x32.dat): Likewise.
8144 ($(outdir)/i386/x32-linux.dat): Likewise.
8145 ($(outdir)/i386/x32-avx.dat): Likewise.
8146 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8147
8148 * features/i386/x32-avx-linux.xml: New file.
8149 * features/i386/x32-avx.xml: Likewise.
8150 * features/i386/x32-core.xml: Likewise.
8151 * features/i386/x32-linux.xml: Likewise.
8152 * features/i386/x32.xml: Likewise.
8153
8154 * features/i386/x32-avx-linux.c: New. Generated.
8155 * features/i386/x32-avx.c: Likewise.
8156 * features/i386/x32-linux.c: Likewise.
8157 * features/i386/x32.c: Likewise.
8158 * regformats/i386/x32-avx-linux.dat: Likewise.
8159 * regformats/i386/x32-avx.dat: Likewise.
8160 * regformats/i386/x32-linux.dat: Likewise.
8161 * regformats/i386/x32.dat: Likewise.
8162
ee41036f
TG
81632012-04-10 Tristan Gingold <gingold@adacore.com>
8164
8165 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8166 code to kill the inferior.
8167
a7aa5b8a
MK
81682012-04-09 Mark Kettenis <kettenis@gnu.org>
8169
8170 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8171 defines.
8172 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8173 defines.
a09130f9 8174 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
8175 (yyvsp): New defines.
8176 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8177 defines.
8178 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8179 defines.
8180 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8181 defines.
8182 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8183 defines.
8184 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8185 defines.
8186
fb57d452
MK
81872012-04-09 Mark Kettenis <kettenis@gnu.org>
8188
a09130f9 8189 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
8190 (sparc64_store_arguments): Fix coding style.
8191
cdc7b32f
MK
81922012-04-07 Mark Kettenis <kettenis@gnu.org>
8193
8194 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8195 complex floats, adjust some related comments and tighten a related
8196 assertion.
8197 (sparc64_extract_return_value): Handle complex floats.
8198
7adf1e79
DE
81992012-04-07 Doug Evans <dje@google.com>
8200
8201 * dwarf2read.c (load_partial_dies): Change condition to assert.
8202
50f1ae7b
DE
82032012-04-06 Doug Evans <dje@google.com>
8204
8205 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8206 "mov %rsp,%rbp".
8207
55fa75c3
KB
82082012-04-05 Kevin Buettner <kevinb@redhat.com>
8209
8210 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8211 fencepost error.
8212 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8213 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8214 architecture.
8215
40e084e1
KS
82162012-04-05 Keith Seitz <keiths@redhat.com>
8217
8218 * linespec.c (decode_compound): Remove.
8219 (enum offset_relative_sign): New enum.
8220 (struct line_offset): New struct.
8221 (struct linespec): New struct.
8222 (struct linespec_state): Move file_symtabs,
8223 user_filename, and user_function into struct linespec.
8224 Make result an anonymous struct holding vectors of
8225 symbolp and minsym_and_objfile_d.
8226 Add language member.
8227 (enum ls_token_type): New enum.
8228 (linespec_keywords): New array.
8229 (struct ls_token): New struct.
8230 (struct ls_parser): New struct.
8231 (linespec_lexer_lex_number): New function.
8232 (linespec_lexer_lex_keyword): New function.
8233 (is_ada_operator): New function.
8234 (skip_quote_char): New function.
8235 (copy_token_string): New function.
8236 (is_closing_quote_enclosed): New function.
8237 (find_parameter_list_end): New function.
8238 (linespec_lexer_lex_string): New function.
8239 (linespec_lexer_lex_one): New function.
8240 (linespec_lexer_consume_token): New function.
8241 (linespec_lexer_peek_token): New function.
8242 (cplusplus_error): Remove unused function.
8243 (find_methods): Update comment.
8244 (find_toplevel_char): Return const.
8245 (is_objc_method_format): Remove unused function.
8246 (find_toplevel_string): New function.
8247 (is_linespec_boundary): Remove.
8248 (symbol_not_found_error): New function.
8249 (find_method_overload_end): Remove function.
8250 (unexpected_linespec_error): New function.
8251 (keep_name_info): Remove.
8252 (linespec_parse_line_offset): New function.
8253 (linespec_parse_basic): New function.
8254 (canonicalize_linespec): New function.
8255 (decode_line_internal): Remove.
8256 (create_sals_line_offset): New function adapted from
8257 decode_all_digits.
8258 (convert_linespec_to_sals): New function.
8259 (parse_linespec): New function.
8260 (linespec_parser_new): New function.
8261 (linespec_state_destructor): Change parameter type to
8262 struct linespec_state *.
8263 Add language parameter.
8264 Remove freeing of moved members.
8265 (linespec_parser_delete): New function.
8266 (decode_line_full): Use parse_linespec and linespec_parser_new.
8267 (decode_line_1): Likewise.
8268 (decode_indirect): Rename to ...
8269 (linespec_expression_to_pc): ... this and rewrite
8270 to simply find CORE_ADDR, storing this result for later
8271 conversion to SALs.
8272 (locate_first_half): Remove.
8273 (deocde_objc): Add parameter LS.
8274 Initialize new struct collect_info members.
8275 Handle minimal symbols, too.
8276 (decode_compound): Delete.
8277 (lookup_prefix_sym): Rewrite.
8278 (compare_msymbols): New function.
8279 (find_method): Rewrite.
8280 Do not call cplusplus_error.
8281 (symtabs_from_filename): Rewrite.
8282 (collect_function_symbols): Delete.
8283 (find_function_symbols): Rewrite without ARGPTR-style
8284 processing.
8285 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8286 (decode_dollar): Adapted and renamed to ...
8287 (linespec_parse_variable): ... this.
8288 (find_linespec_symbols): New function.
8289 (decode_label): Adapted and renamed to ...
8290 (find_label_symbols): ... this.
8291 (decode_digits_list_mode): Add and use LS argument.
8292 (decode_digits_ordinary): Likewise.
8293 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8294 If in list mode, allow any symbol class. Otherwise, only
8295 permit LOC_BLOCK symbols.
8296 (minsym_found): Update comments.
8297 (search_minsyms_for_name): Do not convert the matching symbol
8298 into a SAL. Simply push the symbol and objfile into the
8299 result vector.
8300 (decode_variable): Delete. Contents adapted into
8301 find_linespec_symbols.
8302
8303 * cp-support.c (SKIP_SPACE): Remove.
8304 (operator_tokens): Remove unused global.
8305 (cp_validate_operator): Remove.
8306 * cp-support.h (cp_validate_operator): Remove declaration.
8307
a72c8f6a
JK
83082012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8309
8310 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8311 for TYPE_VPTR_FIELDNO.
8312 * valprint.c (valprint_check_validity): Make it global, move the
8313 function comment ...
8314 * value.h (valprint_check_validity): ... to this new declaration.
8315
cf9bb588
TG
83162012-04-02 Tristan Gingold <gingold@adacore.com>
8317
8318 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8319 the STATE32 api for i386 state.
8320 (i386_darwin_store_inferior_registers): Likewise.
8321
17092398
TG
83222012-04-02 Tristan Gingold <gingold@adacore.com>
8323
8324 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8325 SS offset.
8326 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8327 format_string.
8328
ece0061f
TG
83292012-04-02 Tristan Gingold <gingold@adacore.com>
8330
8331 PR gdb/13901
d987a266 8332 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 8333
cf65ecd3
JK
83342012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8335
8336 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8337
9bc3523d
TT
83382012-03-30 Tom Tromey <tromey@redhat.com>
8339
8340 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8341 of TRY_CATCH. Fix error handling.
8342 * python/py-value.c (convert_value_from_python): Move 'old'
8343 declaration to innermost scope.
8344
b1ed564a
JB
83452012-03-29 Joel Brobecker <brobecker@adacore.com>
8346 Andrey Smirnov <andrew.smirnov@gmail.com>
8347
8348 -Wshadow warning fix.
8349 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8350 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8351 Adjust code accordingly.
8352
cb8e9b97
JB
83532012-03-29 Joel Brobecker <brobecker@adacore.com>
8354
8355 * ada-lang.c (symbol_completion_add): Rename parameter
8356 "encoded" into "encoded_p". Ajust code and documentation
8357 accordingly.
8358
c0af1706
JB
83592012-03-29 Joel Brobecker <brobecker@adacore.com>
8360 Andrey Smirnov <andrew.smirnov@gmail.com>
8361
8362 -Wshadow warning fix.
8363 * ada-lang.c (symbol_completion_add): Rename parameter
8364 "wild_match" into wild_match_p. Update code and documentation
8365 accordingly.
8366
6ea35997
JB
83672012-03-29 Joel Brobecker <brobecker@adacore.com>
8368
8369 * ada-lang.c (symbol_completion_match): Rename parameter
8370 "encoded" into "encoded_p". Ajust code and documentation
8371 accordingly.
8372
e701b3c0
JB
83732012-03-29 Joel Brobecker <brobecker@adacore.com>
8374 Andrey Smirnov <andrew.smirnov@gmail.com>
8375
8376 -Wshadow warning fix.
8377 * ada-lang.c (symbol_completion_match): Rename parameter
8378 "wild_match" into "wild_match_p". Adjust code and function
8379 documentation accordingly.
8380
5e2336be
JB
83812012-03-29 Joel Brobecker <brobecker@adacore.com>
8382 Andrey Smirnov <andrew.smirnov@gmail.com>
8383
8384 -Wshadow warning fix.
8385 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8386 "symbol_info" into "info". Adjust code accordingly.
8387 (ada_lookup_symbol): Likewise.
8388
9f88c959
JB
83892012-03-29 Joel Brobecker <brobecker@adacore.com>
8390
8391 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8392 of this function's documentation.
8393
82ccd55e
JB
83942012-03-29 Joel Brobecker <brobecker@adacore.com>
8395 Andrey Smirnov <andrew.smirnov@gmail.com>
8396
8397 -Wshadow warning fix.
8398 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8399 variable into "wild_match_p". Adjust code accordingly.
8400
d0a8ab18
JB
84012012-03-29 Joel Brobecker <brobecker@adacore.com>
8402 Andrey Smirnov <andrew.smirnov@gmail.com>
8403
8404 -Wshadow warning fix.
8405 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8406 parameter into "wild_match_p". Adjust code accordingly.
8407 Document this parameter in the function description.
8408
48b78332
JB
84092012-03-29 Joel Brobecker <brobecker@adacore.com>
8410 Andrey Smirnov <andrew.smirnov@gmail.com>
8411
8412 -Wshadow warning fix.
8413 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8414 "wild_match" parameter to "wild_match_p" (-Wshadow).
8415
2e6e0353
JB
84162012-03-29 Joel Brobecker <brobecker@adacore.com>
8417
8418 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8419 in function documentation.
8420
dc4024cd
JB
84212012-03-29 Joel Brobecker <brobecker@adacore.com>
8422 Andrey Smirnov <andrew.smirnov@gmail.com>
8423
8424 -Wshadow warning fix.
8425 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8426 variable into wild_match_p. Adjust code accordingly.
8427
6c88661c
JB
84282012-03-29 Joel Brobecker <brobecker@adacore.com>
8429 Andrey Smirnov <andrew.smirnov@gmail.com>
8430
8431 * ada-valprint.c (ada_val_print_1): Move the code handling
8432 TYPE_CODE_ENUM inside its own lexical block. Declare
8433 variables len and val there, instead of in the function's
8434 top level block. Avoid declaring deref_val again in a way
8435 that shadows another variable of the same name declared
8436 in one of the up-level blocks. Just re-use the up-level
8437 variable instead.
8438
4e5c77fe
JB
84392012-03-29 Joel Brobecker <brobecker@adacore.com>
8440
8441 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8442 Replace block_found argument by symbol_info. Adjust
8443 implementation accordingly. Add function documentation.
8444 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8445 Fix documentation.
8446 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8447 * ada-exp.y (write_object_renaming): Adjust to new
8448 ada_lookup_encoded_symbol API.
8449
1c0ac8c7
JB
84502012-03-29 Joel Brobecker <brobecker@adacore.com>
8451
8452 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8453 documentation.
8454
2aaed979
KB
84552012-03-28 Rathish C <rathish.c@kpitcummins.com>
8456
8457 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8458 (v850_register_name): Add the mpu and fpu register names.
8459 (v850e_register_name): Add the mpu and fpu register names.
8460 (v850e2_register_name): New function.
a09130f9 8461 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
8462 bfd_mach_v850e2v3.
8463
927fbba6
JB
84642012-03-28 Joel Brobecker <brobecker@adacore.com>
8465
8466 * NEWS: Add entry for Ada varobj support.
8467
d32cafc7
JB
84682012-03-28 Joel Brobecker <brobecker@adacore.com>
8469
8470 * varobj.c (default_value_is_changeable_p): New function,
8471 extracted from varobj_value_is_changeable_p. Add declaration.
8472 (ada_value_is_changeable_p): New function, extracted from
8473 varobj_value_is_changeable_p. Add declaration.
8474 (struct language_specific): New field "value_is_changeable_p".
8475 (languages): Add entries for new field.
8476 (varobj_create): Set language before calling install_new_value.
8477 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8478 "value_is_changeable_p" language callback.
8479
181875a4
JB
84802012-03-28 Joel Brobecker <brobecker@adacore.com>
8481
8482 * ada-varobj.h, ada-varobj.c: New files.
8483 * Makefile.in (SFILES): Add ada-varobj.c.
8484 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8485 (COMMON_OBS): Add ada-varobj.o.
8486
7a290c40
JB
84872012-03-28 Joel Brobecker <brobecker@adacore.com>
8488
8489 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8490 (struct language_specific): New field "value_has_mutated".
8491 (languages): Set field "value_has_mutated" in each entry of array.
8492 (varobj_value_has_mutated): New function.
8493 (varobj_udpdate): Add handling of type mutation.
8494 (value_of_root): Add handling of type mutation.
8495 (ada_value_has_mutated): New function.
8496
ca9b8b9c
PA
84972012-03-28 Pedro Alves <palves@redhat.com>
8498
8499 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8500 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8501
cc0265cd
TT
85022012-03-28 Tom Tromey <tromey@redhat.com>
8503
8504 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8505 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8506 before returning.
8507
3ad2ec6f
TT
85082012-03-28 Tom Tromey <tromey@redhat.com>
8509
8510 * .dir-locals.el: New file.
8511
4a6510ba
PA
85122012-03-28 Pedro Alves <palves@redhat.com>
8513
8514 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8515
5a75128f
JB
85162012-03-28 Joel Brobecker <brobecker@adacore.com>
8517
8518 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8519 handling for r0.
8520
f99d8bf4
PA
85212012-03-27 Pedro Alves <palves@redhat.com>
8522
8523 Eliminate struct ui_stream.
8524
8525 * ui-out.h (struct ui_stream): Delete.
8526 (ui_out_field_stream): Adjust prototype.
8527 (ui_out_stream_new, ui_out_stream_delete)
8528 (make_cleanup_ui_out_stream_delete): Delete declarations.
8529 * ui-out.c (ui_out_field_stream): Change prototype to take a
8530 ui_file instead of a ui_stream. Adjust.
8531 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8532 (make_cleanup_ui_out_stream_delete): Delete.
8533 * breakpoint.c (print_breakpoint_location)
8534 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8535 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8536 * disasm.c (dump_insns): Ditto.
8537 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8538 prototype.
8539 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8540 ui_stream/ui_out_stream_new.
8541 * infcmd.c (print_return_value): Ditto.
8542 * osdata.c (info_osdata_command): Don't allocate a local
8543 ui_stream.
8544 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8545 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8546 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8547 allocate a local ui_stream.
8548 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8549 instead of ui_stream/ui_out_stream_new.
8550 (list_args_or_locals): Don't allocate a local ui_stream.
8551 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8552 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8553 ui_stream/ui_out_stream_new.
8554 * cli/cli-setshow.c (do_setshow_command): Ditto.
8555
6350a066 85562012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 8557
6350a066
PA
8558 * arm-linux-tdep.c (arm_linux_init_abi): Call
8559 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8560 * arm-tdep.c (arm_process_record): New function.
8561 (deallocate_reg_mem): New function.
8562 (decode_insn): New function.
8563 (thumb_record_branch): New function.
8564 (thumb_record_ldm_stm_swi(): New function.
8565 (thumb_record_misc): New function.
8566 (thumb_record_ld_st_stack): New function.
8567 (thumb_record_ld_st_imm_offset): New function.
8568 (thumb_record_ld_st_reg_offset(): New function.
8569 (thumb_record_add_sub_cmp_mov): New function.
8570 (thumb_record_shift_add_sub): New function.
8571 (arm_record_coproc_data_proc): New function.
8572 (arm_record_coproc): New function.
8573 (arm_record_b_bl): New function.
8574 (arm_record_ld_st_multiple): New function.
8575 (arm_record_ld_st_reg_offset): New function.
8576 (arm_record_ld_st_imm_offset): New function.
8577 (arm_record_data_proc_imm): New function.
8578 (arm_record_data_proc_misc_ld_str): New function.
8579 (arm_record_extension_space): New function.
8580 (arm_record_strx): New function.
8581 (sbo_sbz): New function.
8582 (struct insn_decode_record): New structure for arm insn record.
8583 (REG_ALLOC): New macro for reg allocations.
8584 (MEM_ALLOC): New macro for memory allocations.
8585 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 8586
89e028e2
AS
85872012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8588
8589 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8590 (store_register): Likewise.
8591
6350a066 85922012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 8593
6350a066 8594 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 8595
5b43fab2
JK
85962012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8597
8598 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8599 Describe also the option "auto".
8600
b5453b95
RH
86012012-03-22 Richard Henderson <rth@redhat.com>
8602
8603 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8604 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8605
227ee7fc
RH
86062012-03-22 Richard Henderson <rth@redhat.com>
8607
8608 * jit.c (jit_read_code_entry): Compute alignment and offset of
8609 int64_t member before computing entry_size.
8610
7b282c5a
SCR
86112012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8612
8613 Python scripting: Add new method Value.referenced_value to
8614 gdb.Value which can dereference pointer as well as reference
8615 values.
8616 * NEWS: Add entry under 'Python scripting' about the new method
8617 Value.referenced_value on gdb.Value objects.
8618 * python/py-value.c (valpy_referenced_value): New function
8619 defining a new method on gdb.Value objects which can dereference
8620 pointer and reference values.
8621
0c83539f
SCR
86222012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8623
8624 * MAINTAINERS (Write After Approval): Add myself to the list.
8625
7ccffd7c
KB
86262012-03-21 Kevin Buettner <kevinb@redhat.com>
8627
8628 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8629 in addition to "main".
8630
bd0b9f9e
JB
86312012-03-21 Joel Brobecker <brobecker@adacore.com>
8632
8633 * expression.h (op_name): Add declaration.
8634 * expprint.c (op_name): Remove declaration. Make non-static.
8635 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8636
a5362b9a
TS
86372012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8638
8639 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8640 of struct siginfo.
8641 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8642 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8643 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8644 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8645 (linux_nat_get_siginfo): Likewise.
8646 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8647 (linux_nat_get_siginfo): Likewise.
8648 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8649 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8650 * procfs.c (gdb_siginfo_t): Likewise.
8651
adcadaab
MF
86522012-03-21 Mike Frysinger <vapier@gentoo.org>
8653
8654 * .gitignore: Ignore more files.
8655
e278ad5b
PA
86562012-03-20 Pedro Alves <palves@redhat.com>
8657
8658 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8659 returns.
8660
741e63d7
YQ
86612012-03-20 Yao Qi <yao@codesourcery.com>
8662
8663 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8664 comment.
8665
b64f50a1
JK
86662012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8667
8668 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8669 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8670 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8671 sect_offset.
8672 * dwarf2expr.h (cu_offset, sect_offset): New types.
8673 (struct dwarf_expr_context_funcs) <dwarf_call>
8674 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8675 sect_offset.
8676 (struct dwarf_expr_context) <len>: Improve the comment.
8677 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8678 cu_offset and sect_offset.
8679 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8680 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8681 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8682 * dwarf2loc.h: Include dwarf2expr.h.
8683 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8684 and sect_offset.
8685 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8686 Improve the comment.
8687 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8688 (struct signatured_type, struct line_header, struct partial_die_info)
8689 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8690 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8691 (get_die_type_at_offset, create_cus_from_index)
8692 (create_signatured_type_table_from_index, dw2_get_file_names)
8693 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8694 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8695 (create_debug_types_hash_table, process_psymtab_comp_unit)
8696 (load_partial_comp_unit, create_all_comp_units)
8697 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8698 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8699 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8700 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8701 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8702 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8703 (find_partial_die, read_attribute_value, lookup_die_type)
8704 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8705 (is_ref_attr): New function comment.
8706 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8707 Use cu_offset and sect_offset.
8708 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8709 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8710 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8711 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8712 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8713 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8714 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8715 sect_offset.
8716
e97a38f7
JK
87172012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8718
8719 Code cleanup.
8720 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8721 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8722 with xfree.
8723 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8724
8320cc4f
JK
87252012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8726
8727 * NEWS: Describe new options --init-command=FILE, -ix and
8728 --init-eval-command=COMMAND, -iex.
8729 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8730 CMDARG_INIT_COMMAND.
8731 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8732 "init-command", "init-eval-command", "ix" and "iex" to the variable
8733 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8734 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8735 (print_gdb_help): Describe --init-command=FILE, -ix and
8736 --init-eval-command=COMMAND, -iex.
8737
26743505
JK
87382012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8739
8740 Code cleanup.
8741 * main.c (struct cmdarg): Move it here from main. Add more comments.
8742 (cmdarg_s, VEC (cmdarg_s)): New.
8743 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8744 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8745 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8746 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8747 of CMDARG.
8748
5ff5c7b4
TT
87492012-03-19 Tom Tromey <tromey@redhat.com>
8750
8751 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8752
ab260dad
JK
87532012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8754
8755 PR symtab/13777
8756 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8757 GCC >=4.5.
8758
c366c1f0
TT
87592012-03-16 Chris January <chris.january@allinea.com>
8760
8761 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8762 of clear.
8763
e16edb45
TT
87642012-03-16 Chris January <chris.january@allinea.com>
8765
8766 * source.c (add_path): Use memmove instead of strcpy because the
8767 strings overlap.
8768
53ba8333
JB
87692012-03-16 Joel Brobecker <brobecker@adacore.com>
8770
8771 * value.h (set_value_parent): Add declaration.
8772 * value.c (set_value_parent): New function.
8773 (value_address): If VALUE->PARENT is not NULL, then use it as
8774 the base address instead of VALUE->LOCATION.address.
8775 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8776 the same as OBJ's address. Adjust V's offset accordingly.
8777 Set V's parent.
8778
481860b3
GB
87792012-03-16 Gary Benson <gbenson@redhat.com>
8780
8781 PR breakpoints/10738
8782 * dwarf2read.c (use_deprecated_index_sections): New global.
8783 (struct partial_die_info): New member may_be_inlined.
8784 (read_partial_die): Set may_be_inlined where appropriate.
8785 (add_partial_subprogram): Add partial symbols for partial
8786 DIEs that may be inlined.
8787 (new_symbol_full): Add inlined subroutines to the current
8788 scope.
8789 (write_psymtabs_to_index): Bump version number.
8790 (dwarf2_read_index): Read only version 6 indices unless
8791 use_deprecated_index_sections is set.
8792 * linespec.c (symbol_and_data_callback): New structure.
8793 (iterate_inline_only): New function.
8794 (iterate_over_all_matching_symtabs): New argument
8795 "include_inline". If nonzero, also call the callback for
8796 symbols representing inlined subroutines.
8797 (lookup_prefix_sym): Pass extra argument to the above.
8798 (find_function_symbols): Likewise.
8799 (add_matching_symbols_to_info): Likewise.
8800 * NEWS: Mention that GDB can now set breakpoints on inlined
8801 functions.
8802
d0e7e15a
PM
88032012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8804
8805 * p-typeprint.c (pascal_type_print_method_args):
8806 Fix display of parameter of methods.
8807
3d354654
PM
88082012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8809
8810 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8811 Add missing prototype.
8812
cafe75b0
JK
88132012-03-16 Yao Qi <yao@codesourcery.com>
8814 Jan Kratochvil <jan.kratochvil@redhat.com>
8815
8816 Fix false compilation warning.
8817 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8818
25f8c692
JL
88192012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8820 Pedro Alves <pedro@codesourcery.com>
8821
8822 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8823 (arm_register_g_packet_guesses): New function.
8824 (arm_gdbarch_init): Don't force a target description with
8825 registers when the executable is detected as M-profile. Instead
8826 set gdbarch->tdep->is_m. Register `g' packet guesses.
8827 (_initialize_arm_tdep): Initialize the new target description.
8828 * features/arm-with-m-fpa-layout.xml: New description.
8829 * features/arm-with-m-fpa-layout.c: New, generated.
8830
35c63cd8
JB
88312012-03-15 Joel Brobecker <brobecker@adacore.com>
8832
8833 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8834 Update function description.
8835 (insert_bp_location): Do not wipe bl->target_info out.
8836 * mem-break.c: #include "gdb_string.h".
8837 (default_memory_insert_breakpoint): Do not call target_read_memory
8838 with a pointer to the breakpoint's shadow_contents buffer. Use
8839 a local buffer instead.
8840 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8841
57651221
TT
88422012-03-15 Tom Tromey <tromey@redhat.com>
8843
8844 * NEWS: Mention "info vtbl", not "info vtable".
8845 * cp-support.c (info_vtbl_command): Fix comment.
8846 (_initialize_cp_support): Fix text.
8847
410528f0
TT
88482012-03-15 Tom Tromey <tromey@redhat.com>
8849
8850 * cp-valprint.c (cp_print_value_fields): Use
8851 print_function_pointer_address for vtable slot.
8852
c4aeac85
TT
88532012-03-15 Tom Tromey <tromey@redhat.com>
8854
8855 * gnu-v3-abi.c (struct value_and_voffset): New.
8856 (hash_value_and_voffset, eq_value_and_voffset)
8857 (compare_value_and_voffset, compute_vtable_size)
8858 (print_one_vtable, gnuv3_print_vtable): New functions.
8859 (init_gnuv3_ops): Initialize 'print_vtable' field.
8860 * cp-support.c (info_vtbl_command): New function.
8861 (_initialize_cp_support): Add "info vtbl".
8862 * cp-abi.h (cplus_print_vtable): Declare.
8863 (struct cp_abi_ops) <print_vtable>: New field.
8864 * cp-abi.c (cplus_print_vtable): New function.
8865 * NEWS: Update.
8866
95cbceff
TT
88672012-03-15 Tom Tromey <tromey@redhat.com>
8868
8869 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8870 iterate_over_symbols.
8871
589b4a32
DE
88722012-03-14 Doug Evans <dje@google.com>
8873
8874 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8875 DW_OP_GNU_parameter_ref.
8876
e837f12a
JK
88772012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8878
8879 Fix double prompt of 'interpreter-exec mi'.
8880 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8881 (mi_interpreter_resume): use it.
8882 (mi_execute_command_input_handler): New function.
8883 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8884 mi_execute_command_input_handler.
8885
ff1e4526 88862012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
8887
8888 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
8889 prototype.
8890 (darwin_debug_port_info): Make static.
8891 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
8892 * machoread.c (_initialize_machoread): Add prototype.
8893 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
8894 (i386_darwin_set_control, i386_darwin_get_control)
8895 i386_darwin_dr_set_addr, i386_darwin_get_addr)
8896 i386_darwin_get_status, i386_darwin_get_control):
8897 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
8898
d8a5d6ee
JB
88992012-03-13 Joel Brobecker <brobecker@adacore.com>
8900
8901 * ax-gdb.c (gen_usual_unary): Remove special handling of
8902 enum and bool types.
8903
af381b8c
JB
89042012-03-13 Joel Brobecker <brobecker@adacore.com>
8905
8906 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
8907
786c562f
JB
89082012-03-13 Joel Brobecker <brobecker@adacore.com>
8909
8910 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
8911
e3ebf1bb
JB
89122012-03-13 Chris January <chris.january@allinea.com>
8913
8914 * aix-thread.c (fill_sprs): Store the floating point registers
8915 at the correct offsets into vals.
8916
c5b7e1cb
DE
89172012-03-13 Doug Evans <dje@google.com>
8918
16899756
DE
8919 * NEWS: Mention symbol-reloading has been deleted.
8920 * symfile.c (symbol_reloading): Delete.
8921 (show_symbol_reloading): Delete.
8922 (_initialize_symfile): Delete set/show symbol-reloading.
8923
c5b7e1cb
DE
8924 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
8925 read_in_chain until we have successfully read it in.
8926 (load_full_comp_unit): Ditto.
8927 (read_signatured_type): Add comment.
8928
46cb6474
JB
89292012-03-13 Chris January <chris.january@allinea.com>
8930
8931 * stabsread.c (fix_common_block): Change type of valu argument
8932 to CORE_ADDR.
8933
76219d77
JB
89342012-03-13 Chris January <chris.january@allinea.com>
8935
8936 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
8937 instruction.
8938
87b0bb13
JK
89392012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8940
8941 * common/linux-procfs.c (linux_proc_get_int): New, from
8942 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
8943 field.
8944 (linux_proc_get_tgid): Only call linux_proc_get_int.
8945 (linux_proc_get_tracerpid): New.
8946 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
8947 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
8948 linux_proc_pid_has_state.
8949 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
8950 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
8951 (linux_ptrace_attach_warnings): New.
8952 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
8953 New declaration.
8954 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
8955 (linux_nat_attach): New variables ex, buffer, message and message_s.
8956 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
8957
5f572dec
JK
89582012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
8959
8960 * Makefile.in (linux-ptrace.o): New.
8961 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
8962 from linux-nat.c.
8963 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
8964 * common/linux-ptrace.c: New file.
8965 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
8966 * config/arm/linux.mh: Likewise.
8967 * config/i386/linux.mh: Likewise.
8968 * config/i386/linux64.mh: Likewise.
8969 * config/ia64/linux.mh: Likewise.
8970 * config/m32r/linux.mh: Likewise.
8971 * config/m68k/linux.mh: Likewise.
8972 * config/mips/linux.mh: Likewise.
8973 * config/pa/linux.mh: Likewise.
8974 * config/powerpc/linux.mh: Likewise.
8975 * config/powerpc/ppc64-linux.mh: Likewise.
8976 * config/powerpc/spu-linux.mh: Likewise.
8977 * config/s390/s390.mh: Likewise.
8978 * config/sparc/linux.mh: Likewise.
8979 * config/sparc/linux64.mh: Likewise.
8980 * config/xtensa/linux.mh: Likewise.
8981 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
8982 common/linux-procfs.c.
8983 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
8984
44f238bb
PA
89852012-03-13 Hui Zhu <teawater@gmail.com>
8986 Pedro Alves <palves@redhat.com>
8987
8988 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
8989 CREATE_BREAKPOINT_FLAGS_INSERTED.
8990 (create_breakpoint_sal, create_breakpoints_sal)
8991 (base_breakpoint_create_breakpoints_sal)
8992 (tracepoint_create_breakpoints_sal)
8993 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
8994 down.
8995 (break_command_1, handle_gnu_v3_exceptions, trace_command)
8996 (ftrace_command, strace_command): Adjust.
8997 (create_tracepoint_from_upload): Pass
8998 CREATE_BREAKPOINT_FLAGS_INSERTED.
8999 * breakpoint.h (enum breakpoint_create_flags): New.
9000 (create_breakpoint): New flags parameter.
9001 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9002 * python/py-breakpoint.c (bppy_init): Adjust.
9003 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9004 * spu-tdep.c (spu_catch_start): Adjust.
9005
1e51243a
PA
90062012-03-13 Pedro Alves <palves@redhat.com>
9007 Hui Zhu <teawater@gmail.com>
9008 Yao Qi <yao@codesourcery.com>
9009
9010 * remote.c (struct remote_state): New field `starting_up'.
9011 (remote_start_remote): Set and clear it.
9012 (remote_can_download_tracepoint): If starting up, return false.
9013
fa3064dd
YQ
90142012-03-13 Yao Qi <yao@codesourcery.com>
9015
9016 * inferior.h (struct inferior): Remove fields any_syscall_count,
9017 syscalls_counts and total_syscalls_count. Move them to new
9018 struct catch_syscall_inferior_data in breakpoint.c.
9019 * breakpoint.c: Call DEF_VEC_I(int).
9020 (struct catch_syscall_inferior_data): New.
9021 (get_catch_syscall_inferior_data): New.
9022 (catch_syscall_inferior_data_cleanup): New.
9023 (insert_catch_syscall): Update to access data in
9024 struct catch_syscall_inferior_data.
9025 (insert_catch_syscall): Likewise.
9026 (remove_catch_syscall): Likewise.
9027 (remove_catch_syscall): Likewise.
9028 (is_syscall_catchpoint_enabled): Likewise.
9029 (add_catch_command): Likewise.
9030 (_initialize_breakpoint): Register cleanup.
9031 * breakpoint.h: Removed DEF_VEC_I(int).
9032 * dwarf2loc.c: Call DEF_VEC_I(int).
9033 * mi/mi-main.c: Likewise.
9034
460fac3c
MK
90352012-03-12 Mark Kettenis <kettenis@gnu.org>
9036
9037 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9038
e1aca11e
JB
90392012-03-12 Chris January <chris.january@allinea.com>
9040
9041 * aix-thread.c (_initialize_aix_thread): Add prototype.
9042 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9043 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9044
649c7061
JB
90452012-03-12 Joel Brobecker <brobecker@adacore.com>
9046
9047 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9048 include of "amd64-nat.h".
9049
0b49e518
TT
90502012-03-12 Tom Tromey <tromey@redhat.com>
9051
9052 * buildsym.c (record_pending_block): Now static.
9053 * buildsym.h: (record_pending_block): Remove.
9054
fd24fa94
AT
90552012-03-12 Andreas Tobler <andreast@fgznet.ch>
9056
9057 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9058
ba919b58
TT
90592012-03-09 Tom Tromey <tromey@redhat.com>
9060
9061 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9062 producer_is_gxx_lt_4_6>: New fields.
9063 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9064
a48e046c
TT
90652012-03-09 Tom Tromey <tromey@redhat.com>
9066
9067 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9068
6f5e9362
JB
90692012-03-08 Joel Brobecker <brobecker@adacore.com>
9070
9071 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9072 prototype.
9073
8d037db9
JB
90742012-03-08 Joel Brobecker <brobecker@adacore.com>
9075
9076 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9077
4e841acf
JK
90782012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9079
9080 Fix -Wmissing-prototypes build.
9081 * arm-linux-nat.c (get_thread_id): Make it static.
9082 * xtensa-linux-nat.c (get_thread_id): Likewise.
9083
c6030312
JB
90842012-03-08 Joel Brobecker <brobecker@adacore.com>
9085
9086 * server.c (process_point_options): If a conditional expression
9087 is found, only print a message if remote_debug is nonzero.
9088
52323be9
LM
90892012-03-08 Luis Machado <lgustavo@codesourcery.com>
9090
9091 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9092 of internal error for unknown/unsupported types.
9093
7fe25d9b
JK
90942012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9095
9096 Fix CU relative vs. absolute DIE offsets.
9097 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9098 offset to offset_in_cu.
9099 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9100 TYPE_OFFSET.
9101 (dwarf2_fetch_die_location_block): Rename parameter offset to
9102 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9103
05e7c244
JK
91042012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9105
9106 * libunwind-frame.c: Rename to ...
9107 * ia64-libunwind-tdep.c: ... here.
9108 * libunwind-frame.h: Rename to ...
9109 * ia64-libunwind-tdep.h: ... here.
9110 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9111 ia64-libunwind-tdep.h.
9112 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9113 * README (--with-libunwind): Rename to ...
9114 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9115 * config.in: Regenerate.
9116 * configure: Regenerate.
9117 * configure.ac: New option --with-libunwind-ia64, make the
9118 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9119 Remove AC_DEFINE for HAVE_LIBUNWIND.
9120 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9121 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9122 Rename libunwind-frame in the general comment.
9123 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9124 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9125 Move forward declarations inside #ifndef. Rename libunwind-frame in
9126 the general comment.
9127 * ia64-tdep.c: Rename libunwind-frame.h #include to
9128 ia64-libunwind-tdep.h.
9129 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9130 (ia64_libunwind_descr): Rename libunwind-frame to
9131 ia64-libunwind-tdep in these function comments.
9132 * ia64-tdep.h: Rename libunwind-frame.h #include to
9133 ia64-libunwind-tdep.h.
9134 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9135 ia64-libunwind-tdep in that data comment.
9136
3755cbfd
JK
91372012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9138
9139 * libunwind-frame.h (struct frame_unwind): New declaration.
9140
d1cda5d9
JB
91412012-03-08 Joel Brobecker <brobecker@adacore.com>
9142
9143 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9144 "set breakpoint condition-evaluation" command.
9145
a0ba0aa2
TG
91462012-03-08 Tristan Gingold <gingold@adacore.com>
9147
9148 * sparc-stub.c: Move to stubs/
9149 * sh-stub.c: Likewise.
9150 * m68k-stub.c: Likewise.
9151 * m32r-stub.c: Likewise.
9152 * i386-stub.c: Likewise.
9153
7b8b6d6d
AS
91542012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9155
007cafee
AS
9156 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9157 linux_get_siginfo_type.
9158
7b8b6d6d
AS
9159 * m68klinux-nat.c: Include "gdb_proc_service.h".
9160 (PTRACE_GET_THREAD_AREA): Define.
9161 (ps_get_thread_area): New function.
9162
bba74b36
YQ
91632012-03-08 Yao Qi <yao@codesourcery.com>
9164
9165 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9166 `xsnprintf'.
9167 (remote_query_attached): Likewise.
9168 (remote_static_tracepoint_marker_at): Likewise.
9169 (remote_set_permissions): Likewise.
9170 (remote_detach_1, extended_remote_attach_1): Likewise.
9171 (send_g_packet, remote_vkill): Likewise.
9172 (extended_remote_disable_randomization): Likewise.
9173 (remote_add_target_side_condition): Likewise.
9174 (remote_insert_breakpoint): Likewise.
9175 (remote_remove_breakpoint): Likewise.
9176 (remote_insert_watchpoint): Likewise.
9177 (remote_remove_watchpoint): Likewise.
9178 (remote_insert_hw_breakpoint): Likewise.
9179 (remote_insert_hw_breakpoint): Likewise.
9180 (remote_remove_hw_breakpoint): Likewise.
9181 (remote_download_command_source): Likewise.
9182 (remote_download_tracepoint): Likewise.
9183 (remote_download_trace_state_variable): Likewise.
9184 (remote_disable_tracepoint): Likewise.
9185 (remote_trace_set_readonly_regions): Likewise.
9186 (remote_get_tracepoint_status): Likewise.
9187 (remote_trace_find): Likewise.
9188 (remote_get_trace_state_variable_value): Likewise.
9189 (remote_set_disconnected_tracing): Likewise.
9190 (remote_set_circular_trace_buffer): Likewise.
9191 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9192 (remote_use_agent): Likewise.
9193 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9194 Update callers.
9195
9b224c5e
PA
91962012-03-07 Pedro Alves <palves@redhat.com>
9197
9198 * NEWS: Mention QProgramSignals.
9199 * inferior.h (update_signals_program_target): Declare.
9200 * infrun.c: (update_signals_program_target): New.
9201 (handle_command): Update the target of the new program signals
9202 array changes.
9203 * remote.c (PACKET_QProgramSignals): New enum.
9204 (last_program_signals_packet): New global.
9205 (remote_program_signals): New.
9206 (remote_start_remote): Update the target with the program signals
9207 list.
9208 (remote_protocol_features): Add entry for QPassSignals.
9209 (remote_open_1): Free anc clear last_program_signals_packet.
9210 (init_remote_ops): Install remote_program_signals.
9211 * target.c (update_current_target): Adjust.
9212 (target_program_signals): New.
9213 * target.h (struct target_ops) <to_program_signals>: New field.
9214 (target_program_signals): Declare.
9215
74c48cbb
PA
92162012-03-07 Pedro Alves <palves@redhat.com>
9217
9218 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9219 extensions.
9220
0c13fc49
AS
92212012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9222
9223 * m68klinux-nat.c (getregs_supplies): Make static.
9224 (getfpregs_supplies): Likewise.
9225 (have_ptrace_getregs): Likewise.
9226
1281d2a3
JB
92272012-03-06 Joel Brobecker <brobecker@adacore.com>
9228
9229 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9230 in call to get_die_type_at_offset.
9231
2b03b41d
SS
92322012-03-06 Stan Shebs <stan@codesourcery.com>
9233
9234 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9235 * mi/mi-cmd-disas.c: Ditto.
9236 * mi/mi-cmd-env.c: Ditto.
9237 * mi/mi-cmd-file.c: Ditto.
9238 * mi/mi-cmd-stack.c: Ditto.
9239 * mi/mi-cmd-target.c: Ditto.
9240 * mi/mi-cmd-var.c: Ditto.
9241 * mi/mi-cmds.c: Ditto.
9242 * mi/mi-cmds.h: Ditto.
9243 * mi/mi-console.c: Ditto.
9244 * mi/mi-getopt.c: Ditto.
9245 * mi/mi-getopt.h: Ditto.
9246 * mi/mi-interp.c: Ditto.
9247 * mi/mi-main.c: Ditto.
9248 * mi/mi-out.c: Ditto.
9249 * mi/mi-parse.c: Ditto.
9250 * mi/mi-parse.h: Ditto.
9251 * mi/mi-symbol-cmds.c: Ditto.
9252
9253 * mi/mi-getopt.h: Move mi_opt struct up.
9254 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9255 return.
9256 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9257
c988ad87
TT
92582012-03-06 Tom Tromey <tromey@redhat.com>
9259
9260 * proc-service.c (ps_pglobal_lookup): Set the current program
9261 space.
9262
1b7c1b10
PA
92632012-03-06 Pedro Alves <palves@redhat.com>
9264
9265 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9266
3c182069
JB
92672012-03-05 Joel Brobecker <brobecker@adacore.com>
9268
9269 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9270
2e794194
JK
92712012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9272
9273 Code cleanup.
9274 * common/linux-osdata.c (linux_common_core_of_thread): New function
9275 comment.
9276 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9277 call by linux_common_core_of_thread.
9278 (linux_nat_core_of_thread_1): Remove.
9279 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9280 * linux-thread-db.c: Include linux-osdata.h.
9281 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9282 linux_common_core_of_thread.
9283
9f9f1f31
TT
92842012-03-05 Tom Tromey <tromey@redhat.com>
9285
9286 * value.c (value_primitive_field): Don't fetch contents for
9287 non-virtual bases.
9288
b7b189f3
TT
92892012-03-05 Tom Tromey <tromey@redhat.com>
9290
9291 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9292
05b8a789 92932012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 9294
5538f557
JB
9295 * s390-nat.c: Include "gregset.h".
9296
75528772
JK
92972012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9298
9299 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9300 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9301 (libunwind_load): New variable so_error, use it for dlerror. Try to
9302 load also LIBUNWIND_SO_7.
9303
275418ae
PA
93042012-03-05 Pedro Alves <palves@redhat.com>
9305
9306 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9307 is not NULL, and remove resulting dead code.
9308
5cbb9812
TS
93092012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9310
9311 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9312 prologue to sh_analyze_prologue.
9313 (sh_analyze_prologue): Make better use of such an upper limit, and
9314 generally be more cautious about accessing memory.
9315
541515ad
TT
93162012-03-05 Tom Tromey <tromey@redhat.com>
9317
9318 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9319 _initialize_ia64_hpux_tdep.
9320
b4d36fb8
PA
93212012-03-05 Pedro Alves <palves@redhat.com>
9322
24490249
PA
9323 PR gdb/13766
9324
b4d36fb8
PA
9325 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9326 the register state is clear, supply explicit zero, instead of
9327 marking the register unavailable.
9328
60c9a3c0
TG
93292012-03-05 Tristan Gingold <gingold@adacore.com>
9330
9331 * NEWS: Mention OpenVMS ia64 new target.
9332
696759ad
TG
93332012-03-05 Tristan Gingold <gingold@adacore.com>
9334
9335 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9336 (ia64_unw_accessors, ia64_unw_rse_accessors)
9337 (ia64_libunwind_descr): Declare.
9338 * ia64-vms-tdep.c: New file.
9339 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9340 (ia64_libunwind_descr): Make them public.
9341 * configure.tgt: Add ia64-*-*vms*.
9342 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9343 (ALLDEPFILES): Add ia64-vms-tdep.c
9344
34864976
TG
93452012-03-05 Tristan Gingold <gingold@adacore.com>
9346
169081d0
TG
9347 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9348 * remote.c (PACKET_qXfer_uib): New enum value.
9349 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9350 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9351 (_initialize_remote): Call add_packet_config_cmd for
9352 xfer:uib packet.
9353
93542012-03-05 Tristan Gingold <gingold@adacore.com>
9355
9356 * osabi.c (gdb_osabi_names): Add OpenVMS.
9357 (generic_elf_osabi_sniffer): Likewise.
9358 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 9359
6597b100
JK
93602012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9361
9362 Removed unused code.
9363 * libunwind-frame.c (libunwind_frame_unwind)
9364 (libunwind_frame_base_address): Remove.
9365 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9366
87399aa1
YQ
93672012-03-04 Yao Qi <yao@codesourcery.com>
9368
9369 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9370 remove trailing new line.
9371 (agent_run_command, agent_run_command): Add _ markup.
9372 (agent_capability_check): Likewise.
9373
abf1152a
JK
93742012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9375
9376 * breakpoint.c (set_condition_evaluation_mode): Set
9377 CONDITION_EVALUATION_MODE unconditionally.
9378
5808517f
YQ
93792012-03-03 Yao Qi <yao@codesourcery.com>
9380
9381 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9382 * common/agent.h: Update declaration.
9383 * inf-child.c (inf_child_use_agent): New.
9384 (inf_child_can_use_agent): New.
9385 (inf_child_target): Initialize fields `to_use_agent'
9386 and `to_can_use_agent'.
9387 * agent.c (agent_new_objfile): New.
89b7509a 9388 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
9389 observer.
9390
9391 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9392 New.
89b7509a 9393 (linux_target_install_ops): Initialize field
5808517f
YQ
9394 `to_static_tracepoint_markers_by_strid'.
9395 * remote.c (free_current_marker): Move it to ...
9396 * tracepoint.c (free_current_marker): ... here. New.
9397 (cleanup_target_stop): New.
9398 * tracepoint.h: Declare free_current_marker.
9399 * NEWS: Add one entry about `info static-tracepoint-marker'.
9400
58b4daa5
YQ
94012012-03-03 Yao Qi <yao@codesourcery.com>
9402
9403 * common/agent.c (agent_loaded_p): New.
89b7509a 9404 (agent_look_up_symbols): New global.
58b4daa5
YQ
9405 * common/agent.h: Declare agent_loaded_p.
9406
8ffcbaaf
YQ
94072012-03-03 Yao Qi <yao@codesourcery.com>
9408
9409 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9410 (agent_capability_check, agent_capability_invalidate): New.
9411 (symbol_list): New array element.
9412 * common/agent.h (enum agent_capa): New.
9413 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9414
d1feda86
YQ
94152012-03-03 Yao Qi <yao@codesourcery.com>
9416
9417 * target.h (struct target_ops) <to_use_agent>: New field.
9418 (struct target_ops) <to_can_use_agent>: New field.
9419 (target_use_agent, target_can_use_agent): New macro.
9420 * target.c (update_current_target): Update.
9421 * remote.c: New enum `PACKET_QAgent'.
9422 (remote_protocol_features): Add a new element.
9423 (remote_use_agent, remote_can_use_agent): New.
9424 (init_remote_ops): Initialize field `can_use_agent' with
9425 remote_can_use_agent. Intiailize field `use_agent' with
9426 remote_use_agent.
9427 * common/agent.c (use_agent): New global.
9428 * common/agent.h: Declare it.
9429 * tracepoint.c (info_static_tracepoint_markers_command): Add
9430 comment.
9431 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9432 (COMMON_OBS): Add common/agent.o and agent.o
9433 (common-agent.o): New rule.
9434 * agent.c: New.
9435
2fa291ac
YQ
94362012-03-03 Yao Qi <yao@codesourcery.com>
9437
9438 * common/agent.c: New.
9439 * common/agent.h: New.
9440 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9441 AC_CHECK_HEADERS.
9442 * configure, configh.in: Regenerated.
9443
9fc05685
KB
94442012-03-02 Kevin Buettner <kevinb@redhat.com>
9445
9446 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9447 unless it exists for this architecture.
9448
a5ee536b
JB
94492012-03-02 Joel Brobecker <brobecker@adacore.com>
9450
9451 * language.h (struct language_defn): New "method" la_read_var_value.
9452 * findvar.c: #include "language.h".
9453 (default_read_var_value): Renames read_var_value. Rewrite
9454 function description.
9455 (read_var_value): New function.
9456 * value.h (default_read_var_value): Add prototype.
9457 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9458 New functions.
9459 (ada_language_defn): Add entry for la_read_var_value.
9460 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9461 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9462 language_defn structures to add entry for new la_read_var_value
9463 field.
9464
f59f708a
PA
94652012-03-02 Tom Tromey <tromey@redhat.com>
9466 Pedro Alves <palves@redhat.com>
9467
9468 PR breakpoints/13776:
9469 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9470 breakpoints.
9471 (delete_longjmp_breakpoint_at_next_stop): New.
9472 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9473 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9474 before deleting the inferior. Add comments.
9475 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9476 breakpoints immediately, but only on next stop. Move that code
9477 next to where we mark other breakpoints for deletion.
9478
44099a67
JB
94792012-03-02 Joel Brobecker <brobecker@adacore.com>
9480
9481 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9482 marker.
9483 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9484 violation.
9485
2a2ef594
PA
94862012-03-02 Pedro Alves <palves@redhat.com>
9487
9488 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9489
b261e0c5
UW
94902012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9491
9492 Fix -Wmissing-prototypes build.
9493 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9494 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9495 (gdbsim_has_memory): Likewise.
9496
a95babbf
YQ
94972012-03-02 Yao Qi <yao@codesourcery.com>
9498
9499 Fix -Wmissing-prototypes build.
9500 * charset.c (phony_iconv_open): Make static.
9501 (phony_iconv_close, phony_iconv): Likewise.
9502 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9503 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9504 prototype.
9505 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9506 * ser-mingw.c (create_select_thread): Make static.
9507 * windows-termcap.c (tgetent): New prototype.
9508 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9509
d603d4b3
JK
95102012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9511
9512 Fix -Wmissing-prototypes build.
9513 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9514 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9515 (_initialize_loadable): New prototypes.
9516
7fb3ad1f
DE
95172012-03-02 Doug Evans <dje@google.com>
9518
9519 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9520 abbrev table, read_comp_unit will do it.
9521
693be288
JK
95222012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9523
9524 Fix -Wmissing-prototypes build.
9525 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9526 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9527 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9528 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9529 (_initialize_arm_symbian_tdep): New prototype.
9530 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9531 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9532 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9533 static.
9534 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9535 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9536 prototype.
9537 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9538 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9539 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9540 static.
9541 * moxie-tdep.c (moxie_process_record): Likewise.
9542 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9543 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9544 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9545 (_initialize_rl78_tdep): New prototype.
9546 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9547 (_initialize_rx_tdep): New prototype.
9548 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9549 (_initialize_darwin_solib): New prototype.
9550 * solib-spu.c: Include solib-spu.h.
9551 (_initialize_spu_solib): New prototype.
9552 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9553 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9554 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9555 (tic6x_software_single_step): Make it static.
9556 (_initialize_tic6x_tdep): New prototype.
9557
638234e5
JK
95582012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9559
9560 Fix -Wmissing-prototypes build.
9561 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9562 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9563
f4a6f16d
JK
95642012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9565
9566 Fix -Wmissing-prototypes build.
9567 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9568 (frv_have_stopped_data_address): Remove.
9569
04dcf5fa
JK
95702012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9571
9572 Fix -Wmissing-prototypes build.
9573 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9574 * sh-tdep.c: Include sh64-tdep.h.
9575 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9576 * sh64-tdep.c: Include sh64-tdep.h.
9577 * sh64-tdep.h: New file.
9578
19080931
MR
95792012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9580
9581 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9582
9aac7884
MR
95832012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9584
9585 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9586 sp_regnum once the gdbarch_init_osabi hook has been called.
9587
a385295e
MR
95882012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9589
9590 * mips-tdep.c (mips32_bc1_pc): New function.
9591 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9592 BPOSGE32 and BPOSGE64 instructions.
9593 (deal_with_atomic_sequence): Likewise.
9594 (mips32_instruction_has_delay_slot): Likewise.
9595
1faeff08 95962012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
9597 Chris Dearman <chris@mips.com>
9598 Maciej W. Rozycki <macro@codesourcery.com>
9599 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
9600
9601 * features/mips-dsp.xml: New file.
9602 * features/mips64-dsp.xml: New file.
9603 * features/mips-dsp-linux.xml: New file.
9604 * features/mips64-dsp-linux.xml: New file.
9605 * features/Makefile (WHICH): Add mips-dsp-linux and
9606 mips64-dsp-linux.
9607 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9608 * features/mips-dsp-linux.c: New file.
9609 * features/mips64-dsp-linux.c: New file.
9610 * regformats/mips-dsp-linux.dat: New file.
9611 * regformats/mips64-dsp-linux.dat: New file.
9612 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9613 registers.
9614 (mips64_linux_register_addr): Likewise.
9615 (mips64_linux_regsets_fetch_registers): Likewise.
9616 (mips64_linux_regsets_store_registers): Likewise.
9617 (mips64_linux_fetch_registers): Update call to
9618 mips64_linux_regsets_fetch_registers.
9619 (mips64_linux_store_registers): Update call to
9620 mips64_linux_regsets_store_registers.
9621 (mips_linux_read_description): Probe for DSP registers.
9622 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9623 and initialize_tdesc_mips64_dsp_linux.
9624 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9625 Remove padding of no longer used embedded register slots.
9626 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9627 (MIPS_RESTART_REGNUM): Redefine enum value.
9628 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9629 strings.
9630 (mips_tx39_reg_names): Likewise.
9631 (mips_linux_reg_names): New array of register names for Linux
9632 targets.
9633 (mips_register_name): Check for a null pointer in
9634 mips_processor_reg_names and return an empty string.
9635 (mips_register_type): Exclude embedded registers for the IRIX
9636 and Linux ABIs.
9637 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9638 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9639 DSP registers.
9640 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9641 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9642 (mips_gdbarch_init): Likewise. Initialize internal register
9643 indices for the Linux ABI. Use dynamic numbers to refer to
9644 registers, as applicable, while parsing the target description.
9645 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9646
263689d8
JB
96472012-03-01 Joel Brobecker <brobecker@adacore.com>
9648
9649 * frame.h (read_frame_register_unsigned): Fix typo in function
9650 description.
9651
f3b4f45c
PA
96522012-03-01 Pedro Alves <palves@redhat.com>
9653
9654 * jit-reader.in [!__cplusplus]
9655 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9656
b03a2011
PA
96572012-03-01 Pedro Alves <palves@redhat.com>
9658
9659 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9660 * configure: Regenerate.
9661
70221824
PA
96622012-03-01 Pedro Alves <palves@redhat.com>
9663
9664 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9665 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9666 (ftrace_command, strace_command): Make static.
9667 * d-lang.c (_initialize_d_language): Declare.
9668 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9669 * dwarf2loc.c (_initialize_dwarf2loc):
9670 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9671 * exec.c (exec_get_section_table): Make static.
9672 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9673 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9674 * inferior.c (remove_inferior_command, add_inferior_command)
9675 (clone_inferior_command): Make static.
9676 * linux-nat.c (linux_nat_thread_address_space)
9677 (linux_nat_core_of_thread): Make static.
9678 * linux-tdep.c (_initialize_linux_tdep): Declare.
9679 * objc-lang.c (_initialize_objc_lang): Declare.
9680 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9681 Make static.
9682 (_initialize_opencl_language): Declare.
9683 * record.c (_initialize_record): Declare.
9684 * remote.c (demand_private_info, remote_get_tib_address)
9685 (remote_supports_cond_tracepoints)
9686 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9687 Make static.
9688 * skip.c (_initialize_step_skip): Declare.
9689 * symtab.c (skip_prologue_using_lineinfo): Make static.
9690 * tracepoint.c (delete_trace_state_variable)
9691 (trace_variable_command, delete_trace_variable_command)
9692 (get_uploaded_tsv, find_matching_tracepoint_location)
9693 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9694 Make static.
9695 * value.c (pack_unsigned_long): Make static.
9696 * varobj.c (varobj_ensure_python_env): Make static.
9697 * windows-tdep.c (_initialize_windows_tdep): Declare.
9698 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9699
33fbcbee
PA
97002012-03-01 Pedro Alves <palves@redhat.com>
9701
9702 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9703 gdbarch parameter.
9704 (linux_init_abi): Install it as has_shared_address_space gdbarch
9705 callback.
9706
44d0cd3b
PA
97072012-03-01 Pedro Alves <palves@redhat.com>
9708
9709 * observer.c (observer_test_first_notification_function)
9710 (observer_test_second_notification_function)
9711 (observer_test_third_notification_function): Add declarations.
9712
ed01b82c
PA
97132012-03-01 Pedro Alves <palves@redhat.com>
9714
9715 * common/signals.c (default_target_signal_to_host)
9716 (default_target_signal_from_host): Move ...
9717 * arch-utils.c: ... here.
9718 * arch-utils.h (default_target_signal_to_host)
9719 (default_target_signal_from_host): Declare.
9720
9721 * common/signals.c (target_signal_from_command): Move ...
9722 * infrun.c: ... here.
9723 * inferior.h (target_signal_from_command): Declare.
9724 * target.h (target_signal_from_command)
9725 (default_target_signal_from_host, default_target_signal_to_host):
9726 Delete declarations.
9727
9728 * common/signals.c (_initialize_signals): Delete.
9729
c9b87335
PA
97302012-03-01 Pedro Alves <palves@redhat.com>
9731
9732 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9733 both __cplusplus and !__cplusplus.
9734
9340a6c0
PA
97352012-03-01 Pedro Alves <palves@redhat.com>
9736
9737 * psymtab.c (find_and_open_source): Delete declaration.
9738 * source.c (find_and_open_source): Move comment ...
9739 * source.h (find_and_open_source): ... to this new declaration.
9740
e451c4a1
PA
97412012-03-01 Pedro Alves <palves@redhat.com>
9742
9743 * inline-frame.c: Include inline-frame.h.
9744
983fb104
PA
97452012-03-01 Pedro Alves <palves@redhat.com>
9746
9747 * tui/tui-data.c (set_gen_win_origin): Delete.
9748 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9749 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9750
5fbce5df
PA
97512012-03-01 Pedro Alves <palves@redhat.com>
9752
9753 * remote.c (encode_actions): Delete declaration.
9754 * tracepoint.c (encode_actions): Make extern.
9755 * tracepoint.h (encode_actions): Declare.
9756
49a8461d
PA
97572012-03-01 Pedro Alves <palves@redhat.com>
9758
9759 * python/py-breakpoint.c: Include python.h.
9760 * python/py-continueevent.c (create_continue_event_object): Make
9761 static.
9762 * python/py-lazy-string.c (stpy_get_type): Make static.
9763 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9764 Make static.
9765 * python/py-utils.c (unicode_to_target_python_string): Make
9766 static.
9767 * python/py-value.c: Include python.h.
9768
9079102f
PA
97692012-03-01 Pedro Alves <palves@redhat.com>
9770
9771 * inferior.c (delete_threads_of_inferior): Delete.
9772
a298c5e8
PA
97732012-03-01 Pedro Alves <palves@redhat.com>
9774
9775 Import fallback definitions from glibc.
9776
9777 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9778 ps_prochandle): Forward declare.
9779 (ps_err_e): Use glibc's comments.
9780 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9781 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9782 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9783 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9784 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9785 (struct ps_prochandle): Adjust comment.
9786
e3084549
PA
97872012-03-01 Pedro Alves <palves@redhat.com>
9788
9789 * ada-lang.c (ada_modulus_from_name): Delete.
9790 * ada-lex.l (lexer_init): Make static.
9791
ad5f7d6e
PA
97922012-03-01 Pedro Alves <palves@redhat.com>
9793
9794 PR gdb/13767
9795
9796 * frame.c (read_frame_register_unsigned): New.
9797 * frame.h (read_frame_register_unsigned): Declare.
9798 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9799 Handle it.
9800 (print_i387_control_word): New parameter `control_p'. Handle it.
9801 (i387_print_float_info): Handle unavailable float registers.
9802
e0a4d108
KS
98032012-03-01 Keith Seitz <keiths@redhat.com>
9804
9805 * linespec.c (decode_line_2): Sort the list of methods
9806 alphabetically before presenting the user with a selection
9807 menu.
9808
122d1940
DE
98092012-03-01 Doug Evans <dje@google.com>
9810
9811 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9812 has_namespace_info.
9813 (dwarf2_read_abbrevs): Remove corresponding initialization.
9814
7d74f244
DE
98152012-03-01 Scott J. Goldman <scottjg@vmware.com>
9816
9817 * NEWS: Mention new python command class gdb.COMMAND_USER.
9818 * cli/cli-cmds.c (show_user): Print error when used on a python
9819 command.
9820 (init_cli_cmds): Update documentation strings for "show user" and
9821 "set/show max-user-call-depth" to clarify that it does not apply to
9822 python commands.
9823 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9824 error check.
9825 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9826 gdb python api.
9827 * top.c (execute_command): Only execute a user-defined command as a
9828 legacy macro if c->user_commands is set.
9829
e88acd96
TT
98302012-03-01 Tom Tromey <tromey@redhat.com>
9831
9832 * valprint.h (struct generic_val_print_decorations): New.
9833 (generic_val_print): Declare.
9834 * valprint.c (generic_val_print): New function.
9835 * p-valprint.c (p_decorations): New global.
9836 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9837 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9838 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9839 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9840 * m2-valprint.c (m2_decorations): New global.
9841 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9842 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9843 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9844 TYPE_CODE_ERROR>: Call generic_val_print.
9845 * f-valprint.c (f_decorations): New global.
9846 (f_val_print): Use print_function_pointer_address.
9847 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9848 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9849 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9850 generic_val_print.
9851 * c-valprint.c (c_decorations): New global.
9852 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9853 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9854 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9855 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9856 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9857 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9858 case.
9859
d3eab38a
TT
98602012-03-01 Tom Tromey <tromey@redhat.com>
9861
9862 * valprint.c (val_print): Update.
9863 * p-valprint (pascal_val_print): Return void.
9864 * p-lang.h (pascal_val_print): Return void.
9865 * m2-valprint.c (m2_val_print): Return void.
9866 * m2-lang.h (m2_val_print): Return void.
9867 * language.h (struct language_defn) <la_val_print>: Return void.
9868 * language.c (unk_lang_val_print): Return void.
9869 * jv-valprint.c (java_val_print): Return void.
9870 * jv-lang.h (java_val_print): Return void.
9871 * f-valprint.c (f_val_print): Return void.
9872 * f-lang.h (f_val_print): Return void.
9873 * d-valprint.c (d_val_print): Return void.
9874 (dynamic_array_type): Update.
9875 * d-lang.h (d_val_print): Return void.
9876 * c-valprint.c (c_val_print): Return void.
9877 * c-lang.h (c_val_print): Return void.
9878 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9879 void.
9880 * ada-lang.h (ada_val_print): Return void.
9881
35c0084b
TT
98822012-03-01 Tom Tromey <tromey@redhat.com>
9883
9884 * value.h (val_print): Return void.
9885 * valprint.c (val_print): Return void.
9886
a1f5dd1b
TT
98872012-03-01 Tom Tromey <tromey@redhat.com>
9888
9889 * value.h (common_val_print): Return void.
9890 * valprint.c (common_val_print): Return void.
9891
8e069a98
TT
98922012-03-01 Tom Tromey <tromey@redhat.com>
9893
9894 * value.h (value_print): Return void.
9895 * valprint.c (value_print): Return void.
9896 * p-valprint.c (pascal_value_print): Return void.
9897 * p-lang.h (pascal_value_print): Return void.
9898 * language.h (struct language_defn) <la_value_print>: Return
9899 void.
9900 * language.c (unk_lang_value_print): Return void.
9901 * jv-valprint.c (java_value_print): Return void.
9902 * jv-lang.h (java_value_print): Return void.
9903 * f-valprint.c (c_value_print): Don't declare.
9904 Include c-lang.h.
9905 * c-valprint.c (c_value_print): Return void.
9906 * c-lang.h (c_value_print): Return void.
9907 * ada-valprint.c (ada_value_print): Return void.
9908 * ada-lang.h (ada_value_print): Return void.
9909
be335936
TT
99102012-03-01 Tom Tromey <tromey@redhat.com>
9911
9912 * value.c (value_primitive_field): Handle virtual base classes.
9913
b0db66a7
TT
99142012-03-01 Tom Tromey <tromey@redhat.com>
9915
9916 * gdbtypes.h (struct vbase): Remove.
9917
132c57b4
TT
99182012-03-01 Tom Tromey <tromey@redhat.com>
9919
9920 * c-valprint.c (print_function_pointer_address): Move...
9921 * valprint.c: ... here. Make non-static.
9922 * m2-valprint.c (print_function_pointer_address): Remove.
9923 * valprint.h (print_function_pointer_address): Declare.
9924
e41eec66
JB
99252012-03-01 Joel Brobecker <brobecker@adacore.com>
9926
9927 * NEWS: Document the fact that one can provide a condition when
9928 creating an Ada exception catchpoint.
9929
19c37f24
TT
99302012-03-01 Tom Tromey <tromey@redhat.com>
9931
9932 * valprint.c (val_print_type_code_flags): Fix placement of
9933 trailing brace.
9934
f0fed3a3
JB
99352012-03-01 Joel Brobecker <brobecker@adacore.com>
9936
9937 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
9938 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
9939 environment variable before calling update-copyright.
9940
8ba85d85
JB
99412012-03-01 Joel Brobecker <brobecker@adacore.com>
9942
9943 * gnulib/extra/update-copyright: Update to the latest from
9944 gnulib's git repository.
9945 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
9946 variable to 2 instead of 1.
9947
8219b1e8
JB
99482012-02-29 Joel Brobecker <brobecker@adacore.com>
9949
9950 * varobj.c (c_value_of_variable): Remove dead code.
9951
718cb7da
JB
99522012-02-29 Joel Brobecker <brobecker@adacore.com>
9953
9954 * ada-lex.p (processId): Do not modify already encoded IDs.
9955 Update function documentation.
9956
739593e0
JB
99572012-02-29 Joel Brobecker <brobecker@adacore.com>
9958
9959 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
9960 "name" with "struct symbol *name_sym".
9961 * ada-exp.y (write_var_or_type): Update call to
9962 ada_find_renaming_symbol.
9963 "name" with "struct symbol *name_sym". Adjust Implementation
9964 accordingly. Adjust the function documentation.
9965
852dff6c
JB
99662012-02-29 Joel Brobecker <brobecker@adacore.com>
9967
9968 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
9969 * ada-lang.c (ada_find_any_type): Add advance declaration.
9970 Make static. Replace ada_find_any_symbol by
9971 ada_find_any_type_symbol.
9972 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
9973 Improve function description. Make static.
9974 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
9975 Replace ada_find_any_symbol by ada_find_any_type_symbol.
9976
1b611343
JB
99772012-02-29 Joel Brobecker <brobecker@adacore.com>
9978
9979 * ada-lang.c (struct tag_args): Delete.
9980 (ada_get_tsd_type): Function body moved up in source file.
9981 (ada_tag_name_1, ada_tag_name_2): Delete.
9982 (ada_get_tsd_from_tag): New function.
9983 (ada_tag_name_from_tsd): New function.
9984 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
9985 to determine the tag name.
9986
41246937
JB
99872012-02-29 Joel Brobecker <brobecker@adacore.com>
9988
9989 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
9990 declaration.
9991 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
9992 function.
9993
ffde82bf
JB
99942012-02-29 Joel Brobecker <brobecker@adacore.com>
9995
9996 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
9997
2ad01556
JB
99982012-02-29 Joel Brobecker <brobecker@adacore.com>
9999
10000 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10001 full searches.
10002
99b1c762
JB
100032012-02-29 Joel Brobecker <brobecker@adacore.com>
10004
10005 * ada-lang.c (constrained_packed_array_type): If there is a
10006 parallel XA type, use it to determine the array index type.
10007
2d4a02ee
JB
100082012-02-29 Joel Brobecker <brobecker@adacore.com>
10009
10010 * ada-valprint.c (ada_val_print_1): If our value is a reference
10011 to an array descriptor, dereference it before converting it
10012 to a simple array.
10013
c48db5ca
JB
100142012-02-29 Joel Brobecker <brobecker@adacore.com>
10015
10016 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10017 creating fixed value.
10018 (ada_value_ind, ada_coerce_ref, assign_component)
10019 (ada_evaluate_subexp): Remove call to unwrap_value before
10020 call to ada_to_fixed_value.
10021
2e6fda7d
JB
100222012-02-29 Joel Brobecker <brobecker@adacore.com>
10023
10024 * ada-lang.c (to_fixed_array_type): Set result's type name.
10025
5845583d
JB
100262012-02-29 Joel Brobecker <brobecker@adacore.com>
10027
10028 * ada-lang.c (catch_ada_exception_command_split): Add new
10029 argument cond_string. Add support for condition at end of
10030 "catch exception" commands.
10031 (ada_decode_exception_location): Add new argument cond_string.
10032 Update call to catch_ada_exception_command_split.
10033 (create_ada_exception_catchpoint): Add new argument cond_string.
10034 Set the breakpoint condition if needed.
10035 (catch_ada_exception_command): Update call to
10036 ada_decode_exception_location.
10037 (ada_decode_assert_location): Add function documentation.
10038 Add support for condition at end of "catch assert" command.
10039 (catch_assert_command): Update calls to ada_decode_assert_location
10040 and create_ada_exception_catchpoint.
10041
9a7f938f
JK
100422012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10043
10044 Fix disp-step-syscall.exp: fork: single step over fork.
10045 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10046 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10047 comment, change parameters gdbarch and ptid to regcache. Remove
10048 parameter regcache, initialize gdbarch from regcache here.
10049 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10050 New functions.
10051 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10052 instead.
10053 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10054 'syscall'. Make the 'int' check more strict.
10055
ffdf6de5
JK
100562012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10057
10058 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10059 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10060 (i386_linux_intx80_sysenter_syscall_record): ... here.
10061 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10062 Use the renamed function name.
10063
c70a6932
JK
100642012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10065
10066 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10067 * breakpoint.c (until_break_command): Likewise.
10068 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10069 * infcall.c (call_function_by_hand): Likewise.
10070 * infcmd.c (finish_forward): Likewise.
10071 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10072
05b8a789 100732012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 10074
d4cd3da9
JB
10075 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10076 avoid variable assignments inside condition.
10077
6425366c
JK
100782012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10079
10080 Fix static analysis issue found by cppcheck.
10081 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10082 uninitialized BUF for size 2.
10083
c8cef75f 100842012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
10085 Nathan Froyd <froydnj@codesourcery.com>
10086 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
10087
10088 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10089 (mips16_instruction_has_delay_slot): Likewise.
10090 (mips_segment_boundary): Likewise.
10091 (mips_adjust_breakpoint_address): Likewise.
10092 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10093
473347ad 100942012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 10095 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
10096
10097 * infrun.c (handle_inferior_event): Don't proceed through
10098 shared library trampolines if stepping at the machine
10099 instruction level.
10100
cf233303
MR
101012012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10102
10103 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10104 too.
10105
cb2cf4ce
TS
101062012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10107
10108 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10109 (sh_stub_unwind_sniffer): New functions.
10110 (sh_stub_unwind): New variable.
10111 (sh_gdbarch_init): Wire everything.
10112
644cebc9
PA
101132012-02-27 Pedro Alves <palves@redhat.com>
10114
10115 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10116 (linux_nat_post_attach_wait): Adjust to use
10117 linux_proc_pid_is_stopped.
10118 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10119 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10120 based on pid_is_stopped from both linux-nat.c and
10121 gdbserver/linux-low.c, and renamed.
10122
283002cf
MR
101232012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10124
10125 * remote.c (remote_watchpoint_addr_within_range): New function.
10126 (init_remote_ops): Use it.
10127
9b3e86b1
MR
101282012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10129
10130 * target.h (target_watchpoint_addr_within_range): Document macro.
10131
e36930bb
PA
101322012-02-24 Pedro Alves <palves@redhat.com>
10133
10134 * stack.c (set_last_displayed_sal): Issue internal_error instead
10135 of warning, and issue it after clearing the last displayed sal.
10136
883bc8d1
PA
101372012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10138 Pedro Alves <palves@redhat.com>
10139
10140 * breakpoint.c (until_break_command): Install breakpoints after
10141 all frame manipulations.
10142
b775012e
LM
101432012-02-24 Luis Machado <lgustavo@codesourcery.com>
10144
10145 * remote.c (remote_supports_cond_breakpoints): New forward
10146 declaration.
10147 (remote_add_target_side_condition): New function.
10148 (remote_insert_breakpoint): Add target-side breakpoint
10149 conditional if supported.
10150 (remote_insert_hw_breakpoint): Likewise.
10151 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10152 hook.
10153
10154 * target.c (update_current_target): Inherit
10155 to_supports_evaluation_of_breakpoint_conditions.
10156 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10157
10158 * target.h (struct target_ops)
10159 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10160 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10161
10162 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10163 (condition_evaluation_both, condition_evaluation_auto,
10164 condition_evaluation_host, condition_evaluation_target,
10165 condition_evaluation_enums, condition_evaluation_mode_1,
10166 condition_evaluation_mode): New static globals.
10167 (translate_condition_evaluation_mode): New function.
10168 (breakpoint_condition_evaluation_mode): New function.
10169 (gdb_evaluates_breakpoint_condition_p): New function.
10170 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10171 (mark_breakpoint_modified): New function.
10172 (mark_breakpoint_location_modified): New function.
10173 (set_condition_evaluation_mode): New function.
10174 (show_condition_evaluation_mode): New function.
10175 (bp_location_compare_addrs): New function.
10176 (get_first_location_gte_addr): New helper function.
10177 (set_breakpoint_condition): Free condition bytecode if locations
10178 has become unconditional. Call mark_breakpoint_modified (...).
10179 (condition_command): Call update_global_location_list (1) for
10180 breakpoints.
10181 (breakpoint_xfer_memory): Use is_breakpoint (...).
10182 (is_breakpoint): New function.
10183 (parse_cond_to_aexpr): New function.
10184 (build_target_condition_list): New function.
10185 (insert_bp_location): Handle target-side conditional
10186 breakpoints and call build_target_condition_list (...).
10187 (update_inserted_breakpoint_locations): New function.
10188 (insert_breakpoint_locations): Handle target-side conditional
10189 breakpoints.
10190 (bpstat_check_breakpoint_conditions): Add comment.
10191 (bp_condition_evaluator): New function.
10192 (bp_location_condition_evaluator): New function.
10193 (print_breakpoint_location): Print information on where the condition
10194 will be evaluated.
10195 (print_one_breakpoint_location): Likewise.
10196 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10197 breakpoint location.
10198 (force_breakpoint_reinsertion): New functions.
10199 (update_global_location_list): Handle target-side breakpoint
10200 conditions.
10201 Reinsert locations that are already inserted if conditions have
10202 changed.
10203 (bp_location_dtor): Free agent expression bytecode.
10204 (disable_breakpoint): Call mark_breakpoint_modified (...).
10205 Call update_global_location_list (...) with parameter 1 for breakpoints.
10206 (disable_command): Call mark_breakpoint_location_modified (...).
10207 Call update_global_location_list (...) with parameter 1 for breakpoints.
10208 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10209 (enable_command): mark_breakpoint_location_modified (...).
10210 (_initialize_breakpoint): Update documentation and add
10211 condition-evaluation breakpoint subcommand.
10212
10213 * breakpoint.h: Include ax.h.
10214 (condition_list): New data structure.
10215 (condition_status): New enum.
10216 (bp_target_info) <cond_list>: New field.
10217 (bp_location) <condition_changed, cond_bytecode>: New fields.
10218 (is_breakpoint): New prototype.
10219
3788aec7
LM
102202012-02-24 Luis Machado <lgustavo@codesourcery.com>
10221
10222 * remote.c (remote_state) <cond_breakpoints>: New field.
10223 (PACKET_ConditionalBreakpoints): New enum.
10224 (remote_cond_breakpoint_feature): New function.
10225 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10226 (remote_supports_cond_breakpoints): New function.
10227 (_initialize_remote): Add new packet configuration for
10228 target-side conditional breakpoints.
10229
72895ff6
LM
102302012-02-24 Luis Machado <lgustavo@codesourcery.com>
10231
10232 * NEWS: Mention target-side conditional breakpoint support,
10233 new condition-evaluation breakpoint subcommand and remote
10234 packet extensions.
10235
dea2aa5f
LM
102362012-02-24 Luis Machado <lgustavo@codesourcery.com>
10237
10238 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10239 number.
10240
8a8bc27f
TS
102412012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10242
10243 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10244 (after_prologue): Remove.
10245
6b446fdf
TT
102462012-02-23 Tom Tromey <tromey@redhat.com>
10247
10248 * jv-valprint.c (java_val_print): Remove dead code.
10249
ef59abfb
TG
102502012-02-23 Tristan Gingold <gingold@adacore.com>
10251
a09130f9
PA
10252 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10253 known_tasks_element and known_tasks_length fields.
10254 (read_known_tasks_array): Change argument type. Use pointer type
10255 and number of elements from DATA. Adjust.
10256 (read_known_tasks_list): Likewise.
10257 (get_known_tasks_addr): Remove.
10258 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10259 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10260 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 10261
def166f6
JK
102622012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10263
10264 PR backtrace/13716
10265 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10266 it after set_momentary_breakpoint.
10267
aeaa2474
SA
102682012-02-22 Sterling Augustine <saugustine@google.com>
10269
10270 PR 13689:
10271 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10272
feea76c2
GB
102732012-02-22 Gary Benson <gbenson@redhat.com>
10274
10275 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10276 (find_slot_in_mapped_hash): Likewise.
10277
f06e05e0
JK
102782012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10279
10280 PR build/13638
10281 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10282 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10283 * configure: Regenerate.
10284
b54a8fd7
PA
102852012-02-21 Tristan Gingold <gingold@adacore.com>
10286 Pedro Alves <palves@redhat.com>
10287
10288 * ia64-tdep.c: Do not include libunwind-ia64.h.
10289 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10290 Include libunwind-ia64.h instead of libunwind.h.
10291 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10292 for libunwind.h existence.
10293 * configure, config.in: Regenerate.
10294
dfcee124
AG
102952012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10296
10297 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10298 instead of value_rtti_target_type.
10299 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10300 instead of value_rtti_target_type.
10301 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10302 value_rtti_target_type.
10303 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10304 (value_rtti_target_type): Rename to ...
10305 (value_rtti_indirect_type): ... here and make it indirect. Update
10306 function comment.
10307 * value.c (readjust_indirect_value_type): New function.
10308 (coerce_ref): Support for enclosing type setting for references
10309 with readjust_indirect_value_type.
10310 * value.h (readjust_value_type): New declaration.
10311 (value_rtti_target_type): Rename to ...
10312 (value_rtti_indirect_type): ... here.
10313
02568277
AG
103142012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10315
10316 * MAINTAINERS (Write After Approval): Add myself to the list.
10317
10c07b7e 103182012-02-20 Doug Evans <dje@google.com>
28ee876a 10319
d82ea6a8
DE
10320 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10321 Rename objfile_p_char parameter to objfilep.
10322 (build_objfile_section_table): Result is now void. All callers
10323 updated.
10324 * objfiles.h (struct objfile): Tweak comments, whitespace.
10325 (build_objfile_section_table): Update.
10326
28ee876a
DE
10327 * elfread.c (elf_symfile_segments): Fix warning text.
10328
24c79950
TT
103292012-02-20 Tom Tromey <tromey@redhat.com>
10330
10331 PR gdb/13498:
10332 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10333 particular set of file names once.
10334 (dw2_map_symbol_filenames): Likewise.
10335
3a9b40b6
JK
103362012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10337
10338 Code cleanup.
10339 * main.c (write_files): Remove the declaration.
10340 (external_editor_command): Move the declaration ...
10341 [GDBTK] (external_editor_command): ... here. Fix the comment.
10342
4d0795ca
TT
103432012-02-20 Tom Tromey <tromey@redhat.com>
10344
10345 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10346 extraneous block.
10347
637fd620
TG
103482012-02-20 Tristan Gingold <gingold@adacore.com>
10349
10350 * darwin-nat.h (enum darwin_msg_state): Add comments.
10351
6f124894
TG
103522012-02-20 Tristan Gingold <gingold@adacore.com>
10353
10354 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10355 value.
10356
2e6e3d9c
JB
103572012-20-18 Joel Brobecker <brobecker@adacore.com>
10358
10359 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10360 between function description and implementation.
10361
2e8265fd
TT
103622012-02-17 Tom Tromey <tromey@redhat.com>
10363
10364 PR python/12070:
10365 * python/py-event.c (event_object_getset): New global.
10366 (event_object_type): Reference it.
10367 * python/py-type.c (field_object_getset): New global.
10368 (field_object_type): Reference it.
10369 * python/python-internal.h (gdb_py_generic_dict): Declare.
10370 * python/py-utils.c (gdb_py_generic_dict): New function.
10371
8544a150 103722012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 10373
8544a150 10374 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 10375
ca193e27
TS
103762012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10377
10378 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10379 TYPE_CALLING_CONVENTION annotation.
10380
e5586183
KB
103812012-02-16 Kevin Buettner <kevinb@redhat.com>
10382
10383 * MAINTAINERS: Add rx to target ISA section.
10384 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10385 (ALLDEPFILES): Add rx-tdep.c.
10386
7dcd53a0
TT
103872012-02-16 Tom Tromey <tromey@redhat.com>
10388
10389 * symfile.c (symbol_file_add_main_1): Use inferior's
10390 symfile_flags.
10391 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10392 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10393 inferior.
10394 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10395 inferior.
10396 (follow_exec): Use inferior's symfile_flags.
10397 * inferior.h (struct inferior) <symfile_flags>: New field.
10398
ddd60447
MF
103992012-02-16 Mike Frysinger <vapier@gentoo.org>
10400
10401 PR gdb/9734:
10402 * remote-sim.c (gdbsim_create_inferior): Call error() when
10403 sim_create_inferior() fails.
10404
b0d32fb6
TG
104052012-02-16 Josh Matthews <josh@joshmatthews.net>
10406
10407 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10408
9addecb9
TT
104092012-02-16 Tom Tromey <tromey@redhat.com>
10410
10411 PR c++/13653:
10412 * thread.c (struct current_thread_cleanup) <was_removable>: New
10413 field.
10414 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10415 (make_cleanup_restore_current_thread): Initialize new field.
10416
a58b110a
KB
104172012-02-15 Kevin Buettner <kevinb@redhat.com>
10418
10419 * MAINTAINERS: Add rl78 to target ISA section.
10420 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10421 (ALLDEPFILES): Add rl78-tdep.c.
10422 * NEWS: Mention rl78 as a new target.
10423
4cb6da1c
AR
104242012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10425
10426 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10427 data.
10428 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10429
3af2590d
TT
104302012-02-15 Tom Tromey <tromey@redhat.com>
10431
10432 PR gdb/12659:
10433 * infcmd.c (registers_info): Print just the current register's
10434 name.
10435
c6910659
TT
104362012-02-15 Tom Tromey <tromey@redhat.com>
10437
10438 * python/py-symbol.c (sympy_value): Use _().
10439
7cee1e54
PA
104402012-02-15 Pedro Alves <palves@redhat.com>
10441
10442 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10443 output to be like native targets'.
10444 (remote_pid_to_str): Special case the null ptid.
10445
816338b5
SS
104462012-02-14 Stan Shebs <stan@codesourcery.com>
10447
10448 * NEWS: Mention enable count command.
10449 * breakpoint.h (struct breakpoint): New field enable_count.
10450 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10451 (enable_breakpoint): Add arg to call.
10452 (struct disp_data): New struct.
10453 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10454 (do_map_enable_once_breakpoint): Create a struct and pass it.
10455 (do_map_enable_delete_breakpoint): Ditto.
10456 (do_map_enable_count_breakpoint): New function.
10457 (enable_count_command): New function.
10458 (bpstat_stop_status): Decrement enable_count.
10459 (print_one_breakpoint_location): Report enable count.
10460 (_initialize_breakpoint): Add enable count command.
10461
c47a44f4
KB
104622012-02-14 Kevin Buettner <kevinb@redhat.com>
10463
10464 * rl78-tdep.c (reggroups.h): Include.
10465 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10466 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10467 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10468 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10469 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10470 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10471 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10472 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10473 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10474 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10475 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10476 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10477 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10478 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10479 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10480 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10481 beginning of register list.
10482 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10483 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10484 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10485 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10486 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10487 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10488 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10489 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10490 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10491 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10492 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10493 the pseudo registers. Rearrange other pseudo registers too so
10494 that the bank registers appear at the end.
10495 (rl78_register_type): Account for the fact that the byte sized
10496 bank registers are now pseudo-registers.
10497 (rl78_register_name): Rearrange the register name array. Make
10498 initial set of raw banked registers inaccessible.
10499 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10500 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10501 case for copying bytes back and forth between raw and pseudo
10502 versions of the banked registers. Update other cases to reflect
10503 the changed names.
10504 (rl78_return_value): Update to account for changed names of
10505 raw registers.
10506 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10507 rl78_register_sim_regno().
10508
e4569f1e
KB
105092012-02-14 Kevin Buettner <kevinb@redhat.com>
10510
10511 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10512 the name parameter being passed to find_pc_partial_function().
10513
7a05aae7
JK
105142012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10515
10516 * MAINTAINERS: Step down from being ia64 target maintainer.
10517
11fde611
JK
105182012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10519
10520 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10521 compilation warning.
10522
57008375
JK
105232012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10524
10525 Fix crash on loaded shlibs without loaded exec_bfd.
10526 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10527 (set_section_command): Replace exec_bfd by p->bfd.
10528
ff3c9849
TT
105292012-02-10 Tom Tromey <tromey@redhat.com>
10530
10531 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10532 when we have a C++ qualified name.
10533
db2b9fdd
PA
105342012-02-10 Pedro Alves <palves@redhat.com>
10535
10536 * inferior.c (inferior_pid_to_str): New.
10537 (print_inferior, inferior_command): Use it.
10538
12cd34f3
PA
105392012-02-10 Pedro Alves <palves@redhat.com>
10540
10541 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10542 the test CFLAGS.
10543 * configure: Regenerate.
10544
e871429d
JK
105452012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10546
10547 * linespec.c (decode_line_internal): Fix comment correctness.
10548
1916efaf
PA
105492012-02-09 Valery Khromov <valery.khromov@gmail.com>
10550
10551 PR gdb/12953
10552 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10553 * amd64bsd-nat.c: Add support for debug registers (adapted from
10554 i386bsd-nat.c).
10555 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10556 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10557 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10558 (amd64bsd_dr_get_control): New functions.
10559 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10560 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10561 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10562 watchpoints initialization.
10563 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10564
f4859d94
JK
105652012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10566
10567 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10568 flds_bnds.fields.
10569 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10570
c56a97f9
JK
105712012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10572
10573 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10574
1a119f36
JB
105752012-02-08 Joel Brobecker <brobecker@adacore.com>
10576
10577 * language.h (symbol_name_cmp_ftype): Renames
10578 symbol_name_match_p_ftype.
10579 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10580 la_get_symbol_name_match_p.
10581 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10582 ada_get_symbol_name_match_p. Update comment.
10583 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10584 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10585 Renames symbol_name_match_p. Update field type.
10586 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10587 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10588 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10589 "la_get_symbol_name_cmp" in comments.
10590 * language.c: Likewise.
10591
c71bb1cf
RO
105922012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10593
10594 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10595 %eflags offset.
10596 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10597 (amd64_sol2_gregset32_reg_offs): Likewise.
10598
4b2d20a5
TG
105992012-02-08 Joel Brobecker <brobecker@adacore.com>
10600
10601 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10602 of the returned BFD is allocated by GDB.
10603
f0823d2c
TT
106042012-02-07 Tom Tromey <tromey@redhat.com>
10605
10606 PR python/12027:
10607 * python/python-internal.h (frame_object_type): Declare.
10608 * python/py-symbol.c (sympy_needs_frame): New function.
10609 (sympy_value): New function.
10610 (symbol_object_getset): Add "needs_frame".
10611 (symbol_object_methods): Add "value".
10612 * python/py-frame.c (frame_object_type): No longer static.
10613
64e7d9dd
TT
106142012-02-07 Tom Tromey <tromey@redhat.com>
10615
10616 PR python/13599:
10617 * python/py-symbol.c (sympy_line): New function.
10618 (symbol_object_getset): Add "line".
10619
1d6b2d2b
TT
106202012-02-07 Tom Tromey <tromey@redhat.com>
10621
10622 * charset.c (find_charset_names): Check 'in' against NULL.
10623
0d5cff50
DE
106242012-02-06 Doug Evans <dje@google.com>
10625
10626 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10627 and fields.name members from char * to const char *. All uses updated.
10628 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10629 from char * to const char *. All uses updated.
10630 (type_name_no_tag): Update.
10631 (lookup_unsigned_typename, lookup_signed_typename): Update.
10632 * gdbtypes.c (type_name_no_tag): Change result type
10633 from char * to const char *. All callers updated.
10634 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10635 name parameter from char * to const char *.
10636 * symtab.h (struct cplus_specific): Change type of demangled_name
10637 member from char * to const char *. All uses updated.
10638 (struct general_symbol_info): Change type of name and
10639 mangled_lang.demangled_name members from char * to const char *.
10640 All uses updated.
10641 (symbol_get_demangled_name, symbol_natural_name): Update.
10642 (symbol_demangled_name, symbol_search_name): Update.
10643 * symtab.c (symbol_get_demangled_name): Change result type
10644 from char * to const char *. All callers updated.
10645 (symbol_natural_name, symbol_demangled_name): Ditto.
10646 (symbol_search_name): Ditto.
10647 (completion_list_add_name): Change type of symname,sym_text,
10648 text,word parameters from char * to const char *.
10649 (completion_list_objc_symbol): Change type of sym_text,
10650 text,word parameters from char * to const char *.
10651 * ada-lang.c (find_struct_field): Change type of name parameter
10652 from char * to const char *.
10653 (encoded_ordered_before): Similarly for N0,N1 parameters.
10654 (old_renaming_is_invisible): Similarly for function_name parameter.
10655 (ada_type_name): Change result type from char * to const char *.
10656 All callers updated.
10657 * ada-lang.h (ada_type_name): Update.
10658 * buildsym.c (hashname): Change type of name parameter
10659 from char * to const char *.
10660 * buildsym.h (hashname): Update.
10661 * dbxread.c (end_psymtab): Change type of include_list parameter
10662 from char ** to const char **.
10663 * dwarf2read.c (determine_prefix): Change result type
10664 from char * to const char *. All callers updated.
10665 * f-lang.c (find_common_for_function): Change type of name, funcname
10666 parameters from char * to const char *.
10667 * f-lang.c (find_common_for_function): Update.
10668 * f-valprint.c (list_all_visible_commons): Change type of funcname
10669 parameters from char * to const char *.
10670 * gdbarch.sh (static_transform_name): Change type of name parameter
10671 and result from char * to const char *.
10672 * gdbarch.c: Regenerate.
10673 * gdbarch.h: Regenerate.
10674 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10675 of name parameter from char * to const char *.
10676 * jv-lang.c (java_primitive_type_from_name): Ditto.
10677 (java_demangled_signature_length): Similarly for signature parameter.
10678 (java_demangled_signature_copy): Ditto.
10679 (java_demangle_type_signature): Ditto.
10680 * jv-lang.h (java_primitive_type_from_name): Update.
10681 (java_demangle_type_signature): Update.
10682 * objc-lang.c (specialcmp): Change type of a,b parameters
10683 from char * to const char *.
10684 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10685 from char * to const char *. All callers updated.
10686 * p-lang.h (is_pascal_string_type): Update.
10687 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10688 of name parameter from char * to const char *.
10689 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10690 * utils.c (fprintf_symbol_filtered): Ditto.
10691 * defs.h (fprintf_symbol_filtered): Update.
10692 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10693 * stabsread.h (end_psymtab): Update.
10694 * stack.c (find_frame_funname): Change type of funname parameter
10695 from char ** to const char **.
10696 * stack.h (find_frame_funname): Update.
10697 * typeprint.c (type_print): Change type of varstring parameter
10698 from char * to const char *.
10699 * value.h (type_print): Update.
10700 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10701 from char * to const char *. All callers updated.
10702 (xcoff_end_psymtab): Change type of include_list parameter
10703 from char ** to const char **. All callers updated.
10704 (swap_sym): Similarly for name parameter. All callers updated.
10705 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10706 Use xstrdup.
10707 (process_coff_symbol): Use xstrdup.
10708 * stabsread.c (stabs_method_name_from_physname): Renamed from
10709 update_method_name_from_physname. Change result type from void
10710 to char *. All callers updated.
10711 (read_member_functions): In has_destructor case, store name in objfile
10712 obstack instead of malloc space. In !has_stub case, fix mem leak.
10713
5579a92e
TT
107142012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10715
10716 * configure: Rebuild.
10717 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10718 LDFLAGS.
10719
9058f767
KB
107202012-02-03 Kevin Buettner <kevinb@redhat.com>
10721
10722 * configure.tgt (rl78-*-elf): New target.
10723 * rl78-tdep.c: New file.
10724
5b37825d
PW
107252012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10726
10727 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10728 and continue the loop. Add QUIT statement.
10729
e009ee71
TT
107302012-02-03 Tom Tromey <tromey@redhat.com>
10731
10732 PR gdb/13596:
10733 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10734 bfd_lookup_symbol_from_symtab.
10735 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10736 gdb_bfd_lookup_symbol_from_symtab.
10737
f7e44f65
JB
107382012-02-03 Joel Brobecker <brobecker@adacore.com>
10739
10740 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10741 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10742 symbol. Add assertion that sym2 is never NULL.
10743
2c02bd72
DE
107442012-02-02 Doug Evans <dje@google.com>
10745
10746 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10747 "name" parameter to const char ** from char **. All callers updated.
10748 (find_pc_partial_function): Ditto.
10749 (cache_pc_function_name): Change type to const char * from char *.
10750 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10751 (find_pc_partial_function): Update.
10752 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10753 type of "name" parameter to const char * from char *.
10754 All uses updated.
10755 * arch-utils.c (generic_in_solib_return_trampoline): Change
10756 type of "name" parameter to const char * from char *.
10757 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10758 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10759 type of "name" parameter to const char * from char *.
10760 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10761 * gdbarch.c: Regenerate.
10762 * gdbarch.h: Regenerate.
10763 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10764 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10765 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10766 type of "name" parameter to const char * from char *.
10767 * skip.c (skip_function_pc): Ditto.
10768 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10769 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10770 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10771 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10772 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10773 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10774 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10775 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10776 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10777
e886a173
PA
107782012-02-02 Pedro Alves <palves@redhat.com>
10779
10780 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10781 the current inferior has no execution. Make sure the current
10782 remote process matches gdb's current inferior.
10783
c709a7c2
TT
107842012-02-02 Tom Tromey <tromey@redhat.com>
10785
10786 PR gdb/13405:
10787 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10788 read-only memory.
10789
f149aabd
TT
107902012-02-02 Tom Tromey <tromey@redhat.com>
10791
10792 PR gdb/9307:
10793 * symtab.c (lookup_language_this): Set block_found.
10794
03bef283
TT
107952012-02-01 Tom Tromey <tromey@redhat.com>
10796
10797 PR gdb/13431:
10798 * jit.c (struct jit_inferior_data): Rewrite.
10799 (struct jit_objfile_data): New.
10800 (get_jit_objfile_data): New function.
10801 (add_objfile_entry): Update.
10802 (jit_read_descriptor): Return int. Replace descriptor_addr
10803 argument with inf_data. Update. Don't call error.
10804 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10805 descriptor here.
10806 (jit_inferior_init): Don't look up descriptor. Don't call error.
10807 (jit_reset_inferior_data_and_breakpoints)
10808 (jit_inferior_created_observer): Remove.
10809 (jit_inferior_exit_hook): Update.
10810 (jit_executable_changed_observer): Remove.
10811 (jit_event_handler): Update.
10812 (free_objfile_data): Reset inferior data if needed.
10813 (_initialize_jit): Update.
10814
f0bbc364
TT
108152012-02-01 Tom Tromey <tromey@redhat.com>
10816
10817 * jit.c (bfd_open_from_target_memory): Move higher in file.
10818
47c1316c
TG
108192012-02-01 Tristan Gingold <gingold@adacore.com>
10820
10821 * libunwind-frame.c (libunwind_load): Display message if dlopen
10822 failed.
10823
8e704927
GB
108242012-02-01 Gary Benson <gbenson@redhat.com>
10825
09c7a31f 10826 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
10827 (iterate_over_symbols): Use the above.
10828 * symtab.c (iterate_over_symbols): Likewise.
10829 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10830 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10831 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10832 (iterate_name_matcher): Document return values.
10833 (collect_one_symbol): Likewise.
10834 (collect_function_symbols): Likewise.
10835 (collect_symbols): Likewise.
10836
d9680e73
TT
108372012-02-01 Tom Tromey <tromey@redhat.com>
10838
10839 * ada-lang.c (resolve_subexp): Update.
10840 (ada_lookup_symbol_list): Add 'full_search' argument.
10841 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10842 ada_lookup_symbol_list.
10843 (ada_lookup_encoded_symbol): Update.
10844 (get_var_value): Update.
10845 * ada-exp.y (block_lookup): Update.
10846 (write_var_or_type): Update.
10847 (write_name_assoc): Update.
10848 * ada-lang.h (ada_lookup_symbol_list): Update.
10849
72e1143f
TT
108502012-01-31 Tom Tromey <tromey@redhat.com>
10851
10852 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10853 comment.
10854
ab2d2ad3
DE
108552012-01-31 Doug Evans <dje@google.com>
10856
10857 * symtab.h: Remove outdated comment.
e9111bf7 10858 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 10859
bc884eba
JB
108602012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10861
10862 Fix build error in Darwin port.
10863 * i386-darwin-nat.c: Include i386-nat.h.
10864
8fc3fc34
TT
108652012-01-30 Tom Tromey <tromey@redhat.com>
10866
10867 PR breakpoints/13568:
10868 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10869 argument. Check for recursive includes.
10870 (dwarf_decode_macros): Create an include hash.
10871
5d853008
ME
108722012-01-30 Michael Eager <eager@eagercon.com>
10873
10874 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10875 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 10876 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
10877 (powerpc_linux_in_plt_stub): New function.
10878 (powerpc_linux_in_dynsym_resolve_code): New function.
10879 (ppc_skip_trampoline_code): New function.
10880 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10881 Use glibc_skip_solib_resolver.
10882
40478521
JK
108832012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10884
10885 Code cleanup: Make 1440 bytes of data segment read-only.
10886 * arch-utils.c (endian_enum): Make it const char *const [].
10887 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
10888 Likewise.
10889 * breakpoint.c (always_inserted_enums): Likewise.
10890 * cli/cli-cmds.c (script_ext_enums): Likewise.
10891 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
10892 enumlist parameter const char *const *.
10893 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
10894 const char *const *.
10895 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
10896 parameter const char *const *.
10897 * cris-tdep.c (cris_modes): Make it const char *const [].
10898 * filesystem.c (target_file_system_kinds): Likewise.
10899 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
10900 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
10901 (can_use_displaced_stepping_enum, scheduler_enums)
10902 (exec_direction_names): Likewise.
10903 * language.c (_initialize_language): Make the type_or_range_names and
10904 case_sensitive_names variables const char *const [].
10905 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
10906 * python/python.c (python_excp_enums): Likewise.
10907 * remote.c (interrupt_sequence_modes): Likewise.
10908 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
10909 * serial.c (logbase_enums): Likewise.
10910 * sh-tdep.c (sh_cc_enum): Likewise.
10911 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
10912 Likewise.
10913 * symtab.c (multiple_symbols_modes): Likewise.
10914 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
10915 Likewise.
10916 * utils.c (internal_problem_modes): Likewise.
10917
b3b8b934
JK
109182012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
10919
10920 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
10921 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
10922 result.
10923
8c85a4e2
DE
109242012-01-27 Doug Evans <dje@google.com>
10925
10926 * configure.ac (with_python): Fix absolute path handling for win32.
10927 * configure: Regenerate.
10928
78d8b4d7
DE
109292012-01-26 Doug Evans <dje@google.com>
10930
eca864fe
DE
10931 * symtab.c: Whitespace cleanup, no code changes.
10932
7e082072
DE
10933 * symtab.c (lookup_symbol_in_language): Improve comment.
10934 (lookup_symbol_aux): Fix comment.
10935
7dc25483
DE
10936 * psymtab.c (add_psymbol_to_list): Result is now "void".
10937 * psympriv.h (add_psymbol_to_list): Update.
10938
78d8b4d7
DE
10939 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
10940
4c63965b
JK
109412012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
10942
10943 Do not open script filenames twice.
10944 * cli/cli-cmds.c (source_script_from_stream): Pass to
10945 source_python_script also STREAM.
10946 * python/py-auto-load.c (source_section_scripts): Pass to
10947 source_python_script_for_objfile also STREAM.
10948 (auto_load_objfile_script): Pass to source_python_script_for_objfile
10949 also INPUT.
10950 * python/python-internal.h (source_python_script_for_objfile): New
10951 parameter file, rename parameter file to filename.
10952 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
10953 instead if !_WIN32. Update the function comment.
10954 (source_python_script, source_python_script_for_objfile)
10955 (source_python_script): New parameter file, rename parameter file to
10956 filename. Pass FILENAME to python_run_simple_file.
10957 * python/python.h (source_python_script): New parameter file, rename
10958 parameter file to filename.
10959
88f38a04
PA
109602012-01-26 Pedro Alves <palves@redhat.com>
10961
10962 * corelow.c (core_has_fake_pid): Delete.
10963 (core_close): Delete references to `core_has_fake_pid'.
10964 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
10965 (core_open): Delete references to `core_has_fake_pid'.
10966 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
10967 the removed global.
10968
e078317b
JB
109692012-01-26 Joel Brobecker <brobecker@adacore.com>
10970
10971 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
10972 Remove language parameter from name_matcher. Adjust the comment.
10973 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
10974 Remove language parameter.
10975 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
10976 * linespec.c (iterate_name_matcher): Likewise.
10977 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
10978 name_matcher. Adjust call accordingly.
10979 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
10980 (maintenance_check_symtabs): Adjust type of parameter "fun".
10981 * psymtab.h (maintenance_check_symtabs): Likewise.
10982
74ccd7f5
JB
109832012-01-26 Joel Brobecker <brobecker@adacore.com>
10984
10985 * language.h (symbol_name_match_p_ftype): New typedef.
10986 (struct language_defn): Replace field la_symbol_name_compare
10987 by la_get_symbol_name_match_p.
10988 * ada-lang.c (ada_get_symbol_name_match_p): New function.
10989 (ada_language_defn): Use it.
10990 * linespec.c (struct symbol_matcher_data): New type.
10991 (iterate_name_matcher): Rewrite.
10992 (iterate_over_all_matching_symtabs): Pass a pointer to
10993 a symbol_matcher_data struct to expand_symtabs_matching
10994 instead of just the lookup name.
10995 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10996 opencl-lang.c, p-lang.c, language.c: Delete field
10997 la_symbol_name_compare, and replace by NULL for new field
10998 la_get_symbol_name_match_p.
10999 * symfile.h (struct quick_symbol_functions): Update comment.
11000
5d268276
TT
110012012-01-25 Tom Tromey <tromey@redhat.com>
11002
11003 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11004 dereferencing.
11005
edcc5120
TT
110062012-01-24 Tom Tromey <tromey@redhat.com>
11007
11008 PR symtab/12406:
11009 * solib.c (update_solib_list): Update the program space's
11010 added_solibs and deleted_solibs fields.
11011 * progspace.h (struct program_space) <added_solibs,
11012 deleted_solibs>: New fields.
11013 (clear_program_space_solib_cache): Declare.
11014 * progspace.c (release_program_space): Call
11015 clear_program_space_solib_cache.
11016 (clear_program_space_solib_cache): New function.
11017 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11018 bpstat_stop_status. Use handle_solib_event.
11019 * breakpoint.c: Include gdb_regex.h.
11020 (print_solib_event): New function.
11021 (bpstat_print): Use print_solib_event.
11022 (bpstat_stop_status): Add special case for bp_shlib_event.
11023 (handle_solib_event): New function.
11024 (bpstat_what): Use handle_solib_event.
11025 (struct solib_catchpoint): New.
11026 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11027 (breakpoint_hit_catch_solib, check_status_catch_solib)
11028 (print_it_catch_solib, print_one_catch_solib)
11029 (print_mention_catch_solib, print_recreate_catch_solib): New
11030 functions.
11031 (catch_solib_breakpoint_ops): New global.
11032 (catch_load_or_unload, catch_load_command_1)
11033 (catch_unload_command_1): New functions.
11034 (internal_bkpt_check_status): Add special case for
11035 bp_shlib_event.
11036 (internal_bkpt_print_it): Use print_solib_event.
11037 (initialize_breakpoint_ops): Initialize
11038 catch_solib_breakpoint_ops.
11039 (_initialize_breakpoint): Register "catch load" and "catch
11040 unload".
11041 * breakpoint.h (handle_solib_event): Declare.
11042 * NEWS: Add entry for "catch load" and "catch unload".
11043
fa864999
TT
110442012-01-24 Tom Tromey <tromey@redhat.com>
11045
11046 * ada-lang.c: Include gdb_vecs.h.
11047 * charset.c: Include gdb_vecs.h.
11048 * tracepoint.h: Include gdb_vecs.h.
11049 * gdb_vecs.h: New file.
11050
f90263c1
TT
110512012-01-24 Pedro Alves <pedro@codesourcery.com>
11052
11053 * breakpoint.c (breakpoint_hit_catch_fork)
11054 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11055 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11056 * infrun.c (inferior_has_forked, inferior_has_vforked)
11057 (inferior_has_execd, inferior_has_called_syscall): Delete.
11058 (handle_syscall_event): Get syscall_number from the execution
11059 control state's wait status.
11060 (wait_for_inferior): Don't clear syscall_number.
11061
09ac7c10
TT
110622012-01-24 Pedro Alves <palves@redhat.com>
11063
11064 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11065 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11066 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11067 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11068 `ws' parameter.
11069 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11070 false for events other than TARGET_SIGNAL_TRAP.
11071 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11072 Add `ws' parameter.
11073 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11074 events other than TARGET_SIGNAL_TRAP.
11075 (tracepoint_breakpoint_hit): Add `ws' parameter.
11076 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11077 parameter.
11078 (bpstat_stop_status): Same.
11079 (pc_at_non_inline_function): Same.
11080 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11081 to pass the current event's waitstatus to bpstat_stop_status
11082 and pc_at_non_inline_function.
11083
86eb7e95
JK
110842012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11085
11086 Code cleanup.
11087 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11088 Update the function comment for it.
11089 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11090 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11091 for STREAM.
11092
a9b3a50f
PA
110932012-01-24 Pedro Alves <palves@redhat.com>
11094
11095 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11096 outside `bs->stop' block.
11097 (bpstat_what): Rework bp_shlib_event handling.
11098 (internal_bkpt_check_status): If the breakpoint is a
11099 bp_shlib_event, then set bs->stop and bs->print if
11100 stop_on_solib_events is set.
11101
53fe1783
GB
111022012-01-24 Gary Benson <gbenson@redhat.com>
11103
11104 Delete #if 0'd out code.
11105 * stack.c (print_frame_label_vars): Remove.
11106 (catch_info): Likewise.
11107 (_initialize_stack): Remove "info catch" command.
11108 * NEWS: Mention the above.
11109
49c62f2e
PA
111102012-01-24 Pedro Alves <palves@redhat.com>
11111
11112 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11113 it.
11114 (remote_notice_new_inferior): If the remote end doesn't support
11115 the multiprocess extensions, then the PID is fake.
11116 (add_current_inferior_and_thread): New.
11117 (remote_start_remote): Use it.
11118 (extended_remote_attach_1): Adjust.
11119 (extended_remote_create_inferior_1): Use
11120 add_current_inferior_and_thread.
11121
d0d8b0c6
JK
111222012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11123
11124 Fix watchpoints to be specific for each inferior.
11125 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11126 current_program_space.
11127 * i386-nat.c (i386_inferior_data_cleanup): New.
11128 (i386_inferior_data_get): Replace variable inf_data_local by an
11129 inferior_data call.
11130 (i386_use_watchpoints): Initialize i386_inferior_data.
11131 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11132 specific iterate_over_lwps.
11133
4403d8e9
JK
111342012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11135
11136 Fix watchpoints across inferior fork.
11137 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11138 comment for linux_nat_iterate_watchpoint_lwps.
11139 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11140 linux_nat_iterate_watchpoint_lwps.
11141 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11142 * i386-linux-nat.c (update_debug_registers_callback): Update the
11143 comment for linux_nat_iterate_watchpoint_lwps.
11144 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11145 linux_nat_iterate_watchpoint_lwps.
11146 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11147 * i386-nat.c: Include inferior.h.
11148 (dr_mirror): Remove.
11149 (i386_inferior_data, struct i386_inferior_data)
11150 (i386_inferior_data_get): New.
11151 (i386_debug_reg_state): Use i386_inferior_data_get.
11152 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11153 (i386_insert_watchpoint, i386_remove_watchpoint)
11154 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11155 (i386_remove_hw_breakpoint): New variable state, use
11156 i386_debug_reg_state instead of DR_MIRROR.
11157 * linux-nat.c (delete_lwp): New declaration.
11158 (num_lwps): Move here from downwards.
11159 (delete_lwp_cleanup): New.
11160 (linux_child_follow_fork): Create new child_lp, call
11161 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11162 PTRACE_DETACH.
11163 (num_lwps): Move upwards.
11164 (linux_nat_iterate_watchpoint_lwps): New.
11165 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11166 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11167
2992c9a7 111682012-01-24 Joel Brobecker <brobecker@adacore.com>
11169
11170 GDB 7.4 released.
11171
e360902b
PA
111722012-01-23 Pedro Alves <palves@redhat.com>
11173
11174 * top.c (caution): Rename to ...
11175 (confirm): ... this.
11176 (show_caution): Rename to ...
11177 (show_confirm): ... this.
11178 (quit_cover): Adjust.
11179 (init_main): Adjust.
11180 * top.h (caution): Rename to ...
11181 (confirm): ... this.
11182 * utils.c (internal_vproblem, defaulted_query): Adjust.
11183
050a2e1d
PA
111842012-01-23 Pedro Alves <palves@redhat.com>
11185
11186 * top.c (caution): Update comment.
11187 (execute_command): Don't consider the current value of `caution'.
11188
77a35dd8
JK
111892012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11190
11191 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11192
a71b5a38
UW
111932012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11194
11195 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11196 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11197 * target.c (target_fileio_pwrite): Remove buffer address from
11198 debug output.
11199 (target_fileio_pread): Likewise.
11200
d99bd577
UW
112012012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11202
11203 * NEWS: Document remote "info proc" and "generate-core-file".
11204
35c2fab7
UW
112052012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11206
11207 * gdbarch.sh (find_memory_regions): New callback.
11208 * gdbarch.c, gdbarch.h: Regenerate.
11209
11210 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11211 callback before falling back to target method.
11212
11213 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11214 (linux_target_install_ops): No longer install it.
11215
11216 * linux-tdep.c (linux_find_memory_regions): New function.
11217 (linux_init_abi): Install it.
11218
6432734d
UW
112192012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11220
11221 * gdbarch.sh (make_corefile_notes): New architecture callback.
11222 * gdbarch.c: Regenerate.
11223 * gdbarch.h: Likewise.
11224
11225 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11226 before target_make_corefile_notes. If NULL is returned, the
11227 target does not support core file generation.
11228
11229 * linux-nat.c: Include "linux-tdep.h".
11230 (find_signalled_thread, find_stop_signal): Remove.
11231 (linux_nat_do_thread_registers): Likewise.
11232 (struct linux_nat_corefile_thread_data): Likewise.
11233 (linux_nat_corefile_thread_callback): Likewise.
11234 (iterate_over_spus): Likewise.
11235 (struct linux_spu_corefile_data): Likewise.
11236 (linux_spu_corefile_callback): Likewise.
11237 (linux_spu_make_corefile_notes): Likewise.
11238 (linux_nat_collect_thread_registers): New function.
11239 (linux_nat_make_corefile_notes): Replace contents by call to
11240 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11241 as native-only callback.
11242
11243 * linux-tdep.h: Include "bfd.h".
11244 (struct regcache): Add forward declaration.
11245 (linux_collect_thread_registers_ftype): New typedef.
11246 (linux_make_corefile_notes): Add prototype.
11247 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11248 "regset.h", and "elf-bfd.h".
11249 (find_signalled_thread, find_stop_signal): New functions.
11250 (linux_spu_make_corefile_notes): Likewise.
11251 (linux_collect_thread_registers): Likewise.
11252 (struct linux_corefile_thread_data): New data structure.
11253 (linux_corefile_thread_callback): New funcion.
11254 (linux_make_corefile_notes): Likewise.
11255 (linux_make_corefile_notes_1): Likewise.
11256 (linux_init_abi): Install it.
11257
3030c96e
UW
112582012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11259
11260 * gdbarch.sh (info_proc): New callback.
11261 * gdbarch.c, gdbarch.h: Regenerate.
11262
11263 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11264 before falling back to the target info_proc callback.
11265
11266 * linux-nat.c: Do not include "cli/cli-utils.h".
11267 (linux_nat_info_proc): Remove.
11268 (linux_target_install_ops): No longer install it.
11269
11270 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11271 (read_mapping): New function.
11272 (linux_info_proc): Likewise.
11273 (linux_init_abi): Install it.
11274
145b16a9
UW
112752012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11276
11277 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11278 * infcmd.c: (info_proc_cmd_1): New function.
11279 (info_proc_cmd): New function, moved here from equivalent routine
11280 orignally in linux-nat.c.
11281 (info_proc_cmd_mappings): Likewise.
11282 (info_proc_cmd_stat): Likewise.
11283 (info_proc_cmd_status): Likewise.
11284 (info_proc_cmd_cwd): Likewise.
11285 (info_proc_cmd_cmdline): Likewise.
11286 (info_proc_cmd_exe): Likewise.
11287 (info_proc_cmd_all): Likewise.
11288 (_initialize_infcmd): Install "info proc" command and subcommands.
11289
11290 * target.h (struct target_ops): Add to_info_proc.
11291 (target_info_proc): Add prototype.
11292 * target.c (target_info_proc): New function.
11293
11294 * procfs.c (procfs_info_proc): Add prototype.
11295 (info_proc_cmd): Rename into ...
11296 (procfs_info_proc): ... this. Update argument types as appropriate
11297 for a to_info_proc implementation. Handle "what" argument.
11298 (procfs_target): Install procfs_info_proc.
11299 (_initialize_procfs): No longer install "info proc" command.
11300
11301 * linux-nat.c: (enum info_proc_what): Remove.
11302 (linux_nat_info_proc_cmd_1): Rename into ...
11303 (linux_nat_info_proc): ... this. Update argument types as appropriate
11304 for a to_info_proc implementation.
11305 (linux_nat_info_proc_cmd): Remove.
11306 (linux_nat_info_proc_cmd_mappings): Likewise.
11307 (linux_nat_info_proc_cmd_stat): Likewise.
11308 (linux_nat_info_proc_cmd_status): Likewise.
11309 (linux_nat_info_proc_cmd_cwd): Likewise.
11310 (linux_nat_info_proc_cmd_cmdline): Likewise.
11311 (linux_nat_info_proc_cmd_exe): Likewise.
11312 (linux_nat_info_proc_cmd_all): Likewise.
11313 (linux_target_install_ops): Install linux_nat_info_proc.
11314 (_initialize_linux_nat): No longer install "info proc" command
11315 and subcommands.
11316
b9e7b9c3
UW
113172012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11318
11319 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11320 * config.in, configure: Regenerate.
11321
11322 * target.h (struct target_ops): Add to_fileio_readlink.
11323 (target_fileio_readlink): Add prototype.
11324 * target.c (target_fileio_readlink): New function.
11325
11326 * inf-child.c: Conditionally include <sys/param.h>.
11327 (inf_child_fileio_readlink): New function.
11328 (inf_child_target): Install it.
11329
11330 * remote.c (PACKET_vFile_readlink): New enum value.
11331 (remote_hostio_readlink): New function.
11332 (init_remote_ops): Install it.
11333 (_initialize_remote): Handle vFile:readlink packet type.
11334
7313baad
UW
113352012-01-20 Pedro Alves <palves@redhat.com>
11336 Ulrich Weigand <ulrich.weigand@linaro.org>
11337
11338 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11339 * config.in, configure: Regenerate.
11340
11341 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11342 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11343 (target_fileio_open): Add prototype.
11344 (target_fileio_pwrite): Likewise.
11345 (target_fileio_pread): Likewise.
11346 (target_fileio_close): Likewise.
11347 (target_fileio_unlink): Likewise.
11348 (target_fileio_read_alloc): Likewise.
11349 (target_fileio_read_stralloc): Likewise.
11350
11351 * target.c: Include "gdb/fileio.h".
11352 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11353 (default_fileio_target): New function.
11354 (target_fileio_open): Likewise.
11355 (target_fileio_pwrite): Likewise.
11356 (target_fileio_pread): Likewise.
11357 (target_fileio_close): Likewise.
11358 (target_fileio_unlink): Likewise.
11359 (target_fileio_close_cleanup): Likewise.
11360 (target_fileio_read_alloc_1): Likewise.
11361 (target_fileio_read_alloc): Likewise.
11362 (target_fileio_read_stralloc): Likewise.
11363
11364 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11365 <fcntl.h>, and <unistd.h>.
11366 (inf_child_fileio_open_flags_to_host): New function.
11367 (inf_child_errno_to_fileio_error): Likewise.
11368 (inf_child_fileio_open): Likewise.
11369 (inf_child_fileio_pwrite): Likewise.
11370 (inf_child_fileio_pread): Likewise.
11371 (inf_child_fileio_close): Likewise.
11372 (inf_child_fileio_unlink): Likewise.
11373 (inf_child_target): Install to_fileio routines.
11374
11375 * remote.c (init_remote_ops): Install to_fileio routines.
11376
901f9912
UW
113772012-01-20 Pedro Alves <palves@redhat.com>
11378 Ulrich Weigand <ulrich.weigand@linaro.org>
11379
11380 * remote.c (remote_multi_process_p): Only check for multi-process
11381 protocol feature, do not check for extended protocol.
11382 (remote_supports_multi_process): Check for extended protocol here.
11383 (set_general_process): Likewise.
11384 (extended_remote_kill): Likewise.
11385 (remote_pid_to_str): Likewise.
11386 (remote_query_supported): Always query multiprocess mode.
11387
e714e1bf
UW
113882012-01-20 Pedro Alves <palves@redhat.com>
11389 Ulrich Weigand <ulrich.weigand@linaro.org>
11390
11391 * inferior.h (struct inferior): Add fake_pid_p.
11392 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11393 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11394 magic_null_ptid since the remote side doesn't provide a real PID.
11395
50897289
TT
113962012-01-19 Tom Tromey <tromey@redhat.com>
11397
11398 * NEWS: Combine the two Python sections.
11399
1afc2033
JK
114002012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11401
11402 * target.h (target_close): Update comment on the target's unpush state.
11403
305436e0
PA
114042012-01-19 Pedro Alves <palves@redhat.com>
11405
11406 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11407 linux_nat_async directly instead of going through the target
11408 vector.
11409 * target.c (unpush_target): Close target after unpushing it, not
11410 before.
11411
49323895
GB
114122012-01-19 Gary Benson <gbenson@redhat.com>
11413
11414 * mdebugread.c (sort_blocks): Replace integer constants with ones
11415 derived from FIRST_LOCAL_BLOCK.
11416
1db33378
PP
114172012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11418 Jan Kratochvil <jan.kratochvil@redhat.com>
11419
11420 PR gdb/9538
11421 * symfile.c (find_separate_debug_file): New function.
11422 (terminate_after_last_dir_separator): Likewise.
11423 (find_separate_debug_file_by_debuglink): Also try realpath.
11424 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11425 * configure: Regenerate.
11426 * config.in: Regenerate.
11427
f83d8a90
DE
114282012-01-18 Doug Evans <dje@google.com>
11429
11430 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11431 (main.o): Remove rule.
11432 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11433 (--with-sysroot): Rewrite.
11434 * configure: Regenerate.
11435 * config.in: Regenerate.
11436
2dbca4d6
SDJ
114372012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11438
11439 * parse.c (initialize_expout): New function.
11440 (reallocate_expout): Likewise.
11441 (parse_exp_in_context): Use `initialize_expout' and
11442 `reallocate_expout' when appropriate.
11443
0695b514
PA
114442012-01-18 Pedro Alves <palves@redhat.com>
11445
11446 * record.c (struct record_breakpoint, record_breakpoint_p)
11447 (record_breakpoints): New.
11448 (record_insert_breakpoint, record_remove_breakpoint): Manage
11449 record breakpoints list. Only remove breakpoints from the
11450 inferior if they had been inserted there in the first place.
11451
136e1c30
DE
114522012-01-17 Doug Evans <dje@google.com>
11453
11454 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11455 if we know we don't have a file name to look for.
11456
c0bf857d
PA
114572012-01-17 Pedro Alves <palves@redhat.com>
11458
11459 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11460 the frame's stop reason is UNWIND_UNAVAILABLE.
11461
b486de60
JK
114622012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11463
11464 Fix compilation error.
11465 * m2-exp.y (yyerror): Use ANSI C prototype.
11466
d04550a6
SDJ
114672012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11468
11469 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11470 (growbuf_by_size): Likewise.
11471 (yyerror): Likewise.
11472 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11473 (modblock): Remove variable (was #if 0'ed).
11474 (parse_number): Convert prototype from K&R to ANSI C.
11475 (yyerror): Likewise.
11476 * objc-exp.y (parse_number): Likewise.
11477 (yyerror): Likewise.
11478 (yylex): Remove #if 0'ed code.
11479 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11480 (yyerror): Likewise.
11481
4aac40c8
TT
114822012-01-16 Tom Tromey <tromey@redhat.com>
11483
11484 * NEWS: Add item.
11485 * symtab.h (compare_filenames_for_search): Declare.
11486 * symtab.c (compare_filenames_for_search): New function.
11487 (iterate_over_some_symtabs): Use it.
11488 * symfile.h (struct quick_symbol_functions)
11489 <map_symtabs_matching_filename>: Change spec.
11490 * psymtab.c (partial_map_symtabs_matching_filename): Use
11491 compare_filenames_for_search. Update for new spec.
11492 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11493 compare_filenames_for_search. Update for new spec.
11494 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11495
cafec441
TT
114962012-01-16 Tom Tromey <tromey@redhat.com>
11497
11498 PR python/13281:
11499 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11500 (struct main_type) <flag_flag_enum>: New field.
11501 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11502 * NEWS: Add entries.
11503 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11504 enums.
11505 * python/lib/gdb/printing.py (_EnumInstance): New class.
11506 (FlagEnumerationPrinter): Likewise.
11507
983af33b
SDJ
115082012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11509
11510 * breakpoint.c (create_sals_from_address_default): New function.
11511 (create_breakpoints_sal_default): Likewise.
11512 (decode_linespec_default): Likewise.
11513 (is_marker_spec): Removed.
11514 (strace_marker_p): New function.
11515 (init_breakpoint_sal): Using `strace_marker_p' instead of
11516 `is_marker_spec'.
11517 (create_breakpoint): Call method `create_sals_from_address' from
11518 breakpoint_ops, replacing code that created SALs conditionally
11519 on the type of the breakpoint. Call method `create_breakpoints_sal',
11520 replacing code that created breakpoints conditionally on the type
11521 wanted.
11522 (base_breakpoint_create_sals_from_address): New function.
11523 (base_breakpoint_create_breakpoints_sal): Likewise.
11524 (base_breakpoint_decode_linespec): Likewise.
11525 (base_breakpoint_ops): Add methods
11526 `base_breakpoint_create_sals_from_address',
11527 `base_breakpoint_create_breakpoints_sal' and
11528 `base_breakpoint_decode_linespec'.
11529 (bkpt_create_sals_from_address): New function.
11530 (bkpt_create_breakpoints_sal): Likewise.
11531 (bkpt_decode_linespec): Likewise.
11532 (tracepoint_create_sals_from_address): Likewise.
11533 (tracepoint_create_breakpoints_sal): Likewise.
11534 (tracepoint_decode_linespec): Likewise.
11535 (strace_marker_create_sals_from_address): Likewise.
11536 (strace_marker_create_breakpoints_sal): Likewise.
11537 (strace_marker_decode_linespec): Likewise.
11538 (strace_marker_breakpoint_ops): New variable.
11539 (addr_string_to_sals): Remove `marker_spec'. Call method
11540 `decode_linespec' from breakpoint_ops, replacing code that decoded
11541 an address string into a SAL. Use `strace_marker_p' instead of
11542 `marker_spec'.
11543 (strace_command): Decide whether we are dealing with a static
11544 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11545 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11546 * breakpoint.h (linespec_result, linespec_sals): New forward
11547 declarations.
11548 (breakpoint_ops) <create_sals_from_address>,
11549 <create_breakpoints_sal>, <decode_linespec>: New methods.
11550
4795f398
DE
115512012-01-14 Doug Evans <dje@google.com>
11552
11553 * NEWS: Update text for "maint set python print-stack".
11554 It is deprecated in gdb 7.4 and deleted in 7.5.
11555
ee5106fe
EZ
115562012-01-13 Eli Zaretskii <eliz@gnu.org>
11557
11558 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11559 including curses.h.
11560
b161e06f
JK
115612012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11562
11563 * configure: Regenerate.
11564 * config.in: Regenerate.
11565
85254831
KS
115662012-01-12 Keith Seitz <keiths@redhat.com>
11567
11568 PR mi/10586
11569 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11570 (ANONYMOUS_UNION_NAME): Define.
11571 (is_path_expr_parent): New function.
11572 (get_path_expr_parent): New function.
11573 (is_anonymous_child): New function.
11574 (create_child_with_value): If the child is anonymous and without
11575 a name, assign an object name to it.
11576 (c_describe_child): Use get_path_expr_parent to determine
11577 the parent expression.
11578 If there field represents an anonymous struct or union and
11579 has no name, set an appropriate display name and expression.
11580 (cplus_describe_child): Likewise.
11581
620fa63a
PA
115822012-01-12 Pedro Alves <palves@redhat.com>
11583
11584 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11585 available when %ebp is found to be zero (outermost).
11586
2efa2c79
AT
115872012-01-11 Andreas Tobler <andreast@fgznet.ch>
11588
11589 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11590 an internal gdb_static_assert.
11591 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11592
88e7d25d
TT
115932012-01-11 Tom Tromey <tromey@redhat.com>
11594
11595 PR gdb/9598:
11596 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11597 catch" and "catch throw".
11598
72384ba3
PH
115992012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11600
11601 * blockframe.c (block_innermost_frame): Start search from selected
11602 frame, if present, or otherwise the current frame.
11603
11604 * c-exp.y (variable): Update innermost_block for
11605 'block COLONCOLON NAME' clause.
11606 * m2-exp.y (variable): Ditto.
11607 * objc-exp.y (variable): Ditto.
11608
065a711f
TT
116092012-01-10 Tom Tromey <tromey@redhat.com>
11610
11611 PR python/13199:
11612 * python/python.c (finish_python_initialization): Set sys.argv.
11613
f3f5162e
DE
116142012-01-10 Doug Evans <dje@google.com>
11615
11616 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11617 "want_line_info". All callers updated.
11618 (dwarf_decode_lines_1): New function.
11619 (handle_DW_AT_stmt_list): Add function comment.
11620 New arg "want_line_info". All callers updated.
11621 (read_file_scope,read_type_unit_scope): Move comment from
11622 handle_DW_AT_stmt_list to here.
11623
9934703b
JK
116242012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11625
11626 Fix regression after libiberty/ update for GCC PR 6057 and others.
11627 * c-exp.y (operator) <OPERATOR DELETE>
11628 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11629 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11630 (make_builtin_type, make_name): New variable i, add gdb_assert.
11631 (operator) <OPERATOR NEW>: Update ARGS to 3.
11632 (operator) <OPERATOR DELETE>: Add trailing space.
11633 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11634 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11635 * cp-support.c (cp_canonicalize_string): Check NULL from
11636 cp_comp_to_string, call warning and return.
11637
06b9f45f
JK
116382012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11639
11640 Fix duplicate .o files after omitting libbfd.a.
11641 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11642 (SFILES): Add corelow.c.
11643 (COMMON_OBS): Add corelow.o.
11644 (ALLDEPFILES): Remove corelow.c.
11645 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11646 * config/alpha/alpha-osf3.mh: Likewise.
11647 * config/alpha/fbsd.mh: Likewise.
11648 * config/arm/nbsdaout.mh: Likewise.
11649 * config/arm/nbsdelf.mh: Likewise.
11650 * config/i386/i386gnu.mh: Likewise.
11651 * config/ia64/hpux.mh: Likewise.
11652 * config/ia64/linux.mh: Likewise.
11653 * config/m32r/linux.mh: Likewise.
11654 * config/m68k/linux.mh: Likewise.
11655 * config/mips/irix5.mh: Likewise.
11656 * config/mips/irix6.mh: Likewise.
11657 * config/pa/hpux.mh: Likewise.
11658 * config/pa/linux.mh: Likewise.
11659 * config/powerpc/aix.mh: Likewise.
11660 * config/sparc/linux.mh: Likewise.
11661 * config/sparc/linux64.mh: Likewise.
11662 * config/sparc/sol2.mh: Likewise.
11663 * config/vax/vax.mh: Likewise.
11664 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11665 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11666 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11667 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11668 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11669 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11670 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11671 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11672 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11673 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11674 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11675 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11676 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11677 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11678 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11679 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11680 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11681 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11682 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11683 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11684 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11685 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11686 corelow.o from gdb_target_obs.
11687 * corefile.c (core_target): Update the comment on NULL value.
11688 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11689 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11690 MATCHES. Drop YUMMY set on NULL.
11691 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11692 reclaim CORE_DATA if it is already NULL.
11693
34365054
DE
116942012-01-09 Doug Evans <dje@google.com>
11695
11696 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11697 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11698
696166a3
KS
116992012-01-09 Keith Seitz <keiths@redhat.com>
11700
11701 * breakpoint.c (wrapper.h): Don't include.
11702
8e7b59a5
KS
117032012-01-09 Keith Seitz <keiths@redhat.com>
11704
11705 * Makefile.in (SFILES): Remove wrapper.c.
11706 (HFILES_NO_SRCDIR): Remove wrapper.h.
11707 (COMMON_OBS): Remove wrapper.o.
11708 * cli/cli-interp.c: Don't inlude wrapper.h.
11709 * corelow.c: Likewise.
11710 (core_open): Replace gdb_target_find_new_threads with
11711 TRY_CATCH around target_find_new_threads.
11712 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11713 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11714 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11715 evaluate_expression.
11716 (varobj_set_value): Likewise for evaluate_expression and
11717 value_assign.
11718 (install_new_variable): Likewise for value_fetch_lazy.
11719 (adjust_value_for_child_access): Likewise for value_ind.
11720 (c_describe_child): Likewise for value_subscript and
11721 value_ind.
11722 (c_value_of_root): Likewise for evaluate_expression.
11723 * wrapper.c: Remove.
11724 * wrapper.h: Remove.
11725
1a4eeb98
DE
117262012-01-09 Doug Evans <dje@google.com>
11727
9ff913ba
DE
11728 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11729 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11730 "abfd" args with "section". All callers updated.
11731 Error checking code moved ...
11732 (error_check_comp_unit_head): ... here. New function.
11733 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11734 Delete arg "abfd". New arg "type_offset". All callers updated.
11735 (create_debug_types_hash_table): Simplify by using
11736 read_and_check_type_unit_head.
11737
1a4eeb98
DE
11738 * parser-defs.h (namecopy): Delete.
11739 * parse.c (namecopy, namecopy_size): Move into copy_name.
11740
2e6af8c0
JK
117412012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11742
11743 Partially fix duplicate .o files after omitting libbfd.a.
11744 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11745 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11746 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11747 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11748 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11749 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11750 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11751
9f2f828a
PA
117522012-01-09 Pedro Alves <palves@redhat.com>
11753
11754 * MAINTAINERS: Update my email address.
11755
4d72c0bc
DE
117562012-01-08 Doug Evans <dje@google.com>
11757
d467dd73
DE
11758 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11759 n_type_units. Rename type_comp_units to all_type_units.
11760 All uses updated.
11761 (add_signatured_type_cu_to_table): Renamed from
11762 add_signatured_type_cu_to_list. All callers updated.
11763
4d72c0bc
DE
11764 * gdbtypes.h (struct cplus_struct_type): Delete member
11765 nfn_fields_total. All uses removed.
11766
21b2bd31
DE
117672012-01-06 Doug Evans <dje@google.com>
11768
11769 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11770 to top of file.
11771 (dwarf2_find_comp_unit): Delete.
11772 (process_psymtab_comp_unit): Make result "void".
11773 Delete args buffer, info_ptr, buffer_size, and replace with
11774 "section". All callers updated.
11775 (dwarf2_build_psymtabs_hard): Simplify.
11776
bfd189b1
SDJ
117772012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11778 Thiago Jung Bauermann <bauerman@br.ibm.com>
11779
11780 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11781 before `struct gdb_exception'.
11782 * breakpoint.c (update_global_location_list_nothrow)
11783 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11784 * cp-abi.c (value_rtti_type): Likewise.
11785 * cp-support.c (cp_validate_operator): Likewise.
11786 * infrun.c (insert_exception_resume_breakpoint)
11787 (check_exception_resume, keep_going): Likewise.
11788 * mi-interp.c (mi_breakpoint_created)
11789 (mi_breakpoint_modified): Likewise.
11790 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11791 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11792 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11793
6b07635f
DE
117942012-01-05 Doug Evans <dje@google.com>
11795
0b30b85c
DE
11796 * dwarf2read.c (statement_prologue): Delete, unused.
11797
98714339
DE
11798 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11799 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11800
6b07635f
DE
11801 * dwarf2read.c (comp_unit_header): Delete, unused.
11802
761f4555
UW
118032012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11804
11805 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11806 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11807
2ca0b532
PA
118082012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11809
11810 * infrun.c (normal_stop): Don't skip calling the normal_stop
11811 observers if the thread was doing a multi-step, but stopped for
11812 some reason other than stepping.
11813
50aeff07
PA
118142012-01-05 Pedro Alves <alves.ped@gmail.com>
11815
11816 * cli/cli-decode.h: Add comments.
11817 (CMD_LIST_AMBIGUOUS): Moved to command.h
11818 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11819 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11820 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11821 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11822 (add_com, add_com_alias, add_info, add_info_alias)
11823 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11824 declarations.
11825 * command.h: Add and adjust comments.
11826 (CMD_LIST_AMBIGUOUS): Moved here.
11827 (help_cmd, help_cmd_list): Delete declarations.
11828
5953832c
DE
118292012-01-04 Doug Evans <dje@google.com>
11830
e5fe5e75
DE
11831 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11832 All callers updated.
11833 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11834 Replace all arguments with "per_cu". All callers updated.
11835
28dee7f5
DE
11836 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11837
23745b47
DE
11838 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11839 New arg "per_cu". All callers updated.
11840
5953832c
DE
11841 Delete #if 0'd out code.
11842 * language.c (binop_result_type): Delete.
11843 (simple_type, ordered_type, same_type, integral_type): Delete.
11844 (numeric_type, character_type, string_type, boolean_type): Delete.
11845 (float_type, structured_type): Delete.
11846 * language.h: Update.
11847
0f5b7562
TT
118482012-01-04 Tom Tromey <tromey@redhat.com>
11849
11850 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11851
78218f56
JB
118522012-01-04 Joel Brobecker <brobecker@adacore.com>
11853
11854 * corefile.c (close_exec_file): Delete.
11855 (reopen_exec_file): Remove commented out code that seems related
11856 to close_exec_file, which is being deleted here.
11857 * inferior.h (close_exec_file): Delete.
11858 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11859
0fcd72ba
JB
118602012-01-04 Joel Brobecker <brobecker@adacore.com>
11861
11862 * ada-lang.c: #include "cli/cli-utils.h".
11863 (get_selections): Use skip_spaces.
11864 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11865 (catch_ada_exception_command_split): Use skip_spaces.
11866 (ada_decode_assert_location): Likewise.
11867
1dabb4c4
JB
118682012-01-04 Joel Brobecker <brobecker@adacore.com>
11869
11870 * linespec.c (decode_line_internal): Check for C++ or Java
11871 compound constructs only if the current language is C, C++
11872 or Java.
11873
5931a2fa
JK
118742012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11875
11876 Revert:
11877 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11878 Joel Brobecker <brobecker@adacore.com>
11879 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11880 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11881 3 times.
11882 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11883 fall through into AT_ENTRY_POINT.
11884 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11885 DUMMY_ADDR with it.
11886 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11887 PPC_INSN_SIZE skip to 3 times.
11888
1a2da5ee
JB
118892012-01-04 Joel Brobecker <brobecker@adacore.com>
11890
11891 * linespec.c (add_minsym): Preserve function descriptors.
11892
8645ff69
UW
118932012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
11894
11895 * breakpoint.c (all_locations_are_pending): Consider locations
11896 in program spaces executing during startup pending as well.
11897
0b302171
JB
118982012-01-04 Joel Brobecker <brobecker@adacore.com>
11899
11900 Copyright year update in most files of the GDB Project.
11901
8ba098ad
JB
119022012-01-04 Joel Brobecker <brobecker@adacore.com>
11903
11904 * copyright.sh: Delete.
11905 * copyright.py: Rewrite.
11906
09c01c30
JB
119072012-01-04 Joel Brobecker <brobecker@adacore.com>
11908
11909 * gnulib/extra/update-copyright: New file, imported from gnulib.
11910
3c36c0af
JB
119112012-01-04 Joel Brobecker <brobecker@adacore.com>
11912
11913 * README (Copyright and License Notices): New section.
11914
888fe1e1
TT
119152012-01-03 Tom Tromey <tromey@redhat.com>
11916
11917 PR python/12533:
11918 * python/py-value.c (valpy_dereference, valpy_get_address
11919 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
11920 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
11921 (valpy_absolute, valpy_richcompare): Free intermediate values.
11922
6e681866
JB
119232011-01-03 Joel Brobecker <brobecker@adacore.com>
11924
11925 * ada-lang.c: Reformat the copyright notice.
11926
0cd09acb
JK
119272012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11928
11929 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
11930 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
11931 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
11932 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
11933 Revert this part of:
11934 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11935 Build gdb directly from *.o files not using libgdb.a.
11936 * Makefile.in (COMMON_OBS): Remove solib-target.o.
11937
12c3e59c
JB
119382012-01-02 Joel Brobecker <brobecker@adacore.com>
11939
11940 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
11941 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
11942 Reformat the copyright header.
11943
11bf1490
JK
119442012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11945
11946 Revert this part of:
11947 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11948 Remove the gdbtui binary.
11949 * gdb.c (main): Remove args.interpreter_p initialization.
11950 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
11951 * main.h (struct captured_main_args): Remove interpreter_p.
11952
1fef196f
JB
119532012-01-02 Joel Brobecker <brobecker@adacore.com>
11954
11955 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
11956
67827812
JB
119572012-01-02 Joel Brobecker <brobecker@adacore.com>
11958
11959 * top.c (print_gdb_version): Update copyright year.
11960
a4d0b831
YQ
119612012-01-02 Yao Qi <yao@codesourcery.com>
11962
11963 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
11964
b5914469
JK
119652012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11966 Joel Brobecker <brobecker@adacore.com>
11967
11968 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11969 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11970 3 times.
11971 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11972 fall through into AT_ENTRY_POINT.
11973 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
11974 DUMMY_ADDR with it.
11975 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
11976 PPC_INSN_SIZE skip to 3 times.
11977
8da828f7
JK
119782012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11979
11980 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
11981 the return value.
11982 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
11983
8574e74b
JK
119842012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11985
11986 Build gdb directly from *.o files not using libgdb.a.
11987 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
11988 (COMMON_OBS): Remove solib-target.o.
11989 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
11990 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
11991 (LIBGDB_OBS, libgdb.a): Move it above.
11992 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
11993 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
11994 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
11995 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
11996 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
11997 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
11998 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
11999 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12000 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12001 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12002 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12003 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12004 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12005 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12006 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12007 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12008 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12009 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12010 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12011 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12012 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12013 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12014 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12015 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12016 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12017 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12018 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12019
217bff3e
JK
120202012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12021
12022 Remove the gdbtui binary.
12023 * .gitignore (/gdbtui): Remove.
12024 * Makefile.in (TUI): Remove.
12025 (SUBDIR_TUI_OBS): Remove tui-main.o.
12026 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12027 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12028 (tui-main.o): Remove.
12029 (all_object_files): Remove tui-main.o.
12030 * NEWS: New note for the gdbtui removal.
12031 * configure: Rebuilt.
12032 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12033 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12034 CONFIG_UNINSTALL respectively.
12035 * gdb.c (main): Remove args.interpreter_p initialization.
12036 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12037 * main.h (struct captured_main_args): Remove interpreter_p.
12038 * tui/tui-main.c: Remove.
12039
9cdd5dbd
DE
120402012-01-01 Doug Evans <dje@google.com>
12041
bb5ed363
DE
12042 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12043 (dwarf2_physname, read_import_statement): Ditto.
12044 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12045 (process_structure_scope read_subroutine_type): Ditto.
12046 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12047 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12048 (dwarf2_fetch_die_location_block): Ditto.
12049 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12050
a0f42c21
DE
12051 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12052 All callers updated.
12053 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12054 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12055 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12056
2dc860c0
DE
12057 * dwarf2read.c (load_cu): Move assert to more useful location.
12058
68dc6402
DE
12059 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12060 All callers updated.
12061
9cdd5dbd
DE
12062 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12063 (dwarf2_elf_names): Minor reformat.
12064 (dwarf2_per_cu_data): Tweak comment.
12065 (dwarf2_read_section): Fix comment.
12066 (create_all_comp_units): Fix comment.
12067 (load_full_comp_unit): Fix comment.
12068 (process_full_comp_unit): Fix comment.
12069 (read_signatured_type): Fix comment.
12070
0c10e53e 12071For older changes see ChangeLog-2011.
c906108c
SS
12072\f
12073Local Variables:
12074mode: change-log
12075left-margin: 8
12076fill-column: 74
12077version-control: never
57da7796 12078coding: utf-8
c906108c 12079End:
This page took 3.061951 seconds and 4 git commands to generate.