gdb/testsuite
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
56e64610
DE
12012-12-03 Doug Evans <dje@google.com>
2
3 * dwarf2read.c (struct dwarf2_per_objfile): Clarify comment.
4 (dw2_find_symbol_file): Delete unused local file_data.
5
270140bd
TT
62012-12-03 Tom Tromey <tromey@redhat.com>
7
8 * ada-exp.y (write_object_renaming, write_var_or_type)
9 (write_ambiguous_var, write_var_from_sym): Make blocks const.
10 * ada-lang.c (replace_operator_with_call)
11 (find_old_style_renaming_symbol): Make blocks const.
12 * ada-lang.h (ada_find_renaming_symbol): Update.
13 (struct ada_symbol_info) <block>: Now const.
14 * breakpoint.c (watch_command_1): Update.
15 * breakpoint.h (struct watchpoint) <exp_valid_block,
16 cond_exp_valid_block>: Now const.
17 * c-exp.y (classify_inner_name, classify_name): Make block
18 argument const.
19 * expprint.c (print_subexp_standard) <OP_VAR_VALUE>: Make 'b'
20 const.
21 * expression.h (innermost_block, parse_exp_1): Update.
22 (union exp_element) <block>: Now const.
23 * gdbtypes.c (lookup_template_type, lookup_enum, lookup_union)
24 (lookup_struct): Make block argument const.
25 * gdbtypes.h (lookup_template_type): Update.
26 * go-exp.y (classify_name, classify_packaged_name)
27 (package_name_p): Make block argument const.
28 * objc-lang.c (lookup_struct_typedef): Make block argument const.
29 * objc-lang.h (lookup_struct_typedef): Update.
30 * parse.c (parse_exp_in_context, parse_exp_1)
31 (write_exp_elt_block): Make block arguments const.
32 (expression_context_block, innermost_block): Now const.
33 * parser-defs.h (write_exp_elt_block): Update.
34 (expression_context_block, innermost_block, block_found): Now
35 const.
36 * printcmd.c (struct display) <block>: Now const.
37 * symtab.h (lookup_struct, lookup_union, lookup_enum): Update.
38 * valops.c (address_of_variable): Make block argument const.
39 * value.h (value_of_variable): Update.
40 * varobj.c (struct varobj_root) <valid_block>: Now const.
41
31f56a27
YQ
422012-11-30 Yao Qi <yao@codesourcery.com>
43
44 * breakpoint.c (print_one_breakpoint_location): Indent code.
45
556ec64d
YQ
462012-11-30 Yao Qi <yao@codesourcery.com>
47
48 * breakpoint.c (print_one_breakpoint_location): Combine two
49 blocks handling 'hit count' together.
50
3d3fef6b
YQ
512012-11-30 Yao Qi <yao@codesourcery.com>
52
53 * infrun.c (error_is_running, ensure_not_running): Move them
54 to ...
55 * infcmd.c (error_is_running, ensure_not_running): ... here.
56 Make them 'static'.
57 * inferior.h: Remove declarations of error_is_running and
58 ensure_not_running.
59
7cd12a76
YQ
602012-11-30 Yao Qi <yao@codesourcery.com>
61
62 * tic6x-linux-tdep.c (tic6x_register_sigcontext_offset): Don't
63 check REGNUM >= 0.
64
7a76f5b8
YQ
652012-11-30 Yao Qi <yao@codesourcery.com>
66
67 * infrun.c: Make the declaration of 'init_infwait_state'
68 static.
69 (init_infwait_state): Make it 'static'.
70
b1209b03
UW
712012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
72
73 * python/python.c (finalize_python): Cast unused PyGILState_Ensure
74 return value to void to avoid compiler warning.
75
ea5e6b0e
UW
762012-11-29 Ulrich Weigand <uweigand@de.ibm.com>
77
78 * opencl-lang.c (opencl_print_type): New function.
79 (opencl_language_arch_info): Install it.
80
a93478ea
TT
812012-11-29 Tom Tromey <tromey@redhat.com>
82
83 * contrib/ari/gdb_ari.sh: Remove rules for xasprintf and
84 xvasprintf.
85 * common/common-utils.c (xasprintf, xvasprintf): Remove.
86 * common/common-utils.h (xasprintf, xvasprintf): Remove.
87
ac4a2da4
JG
882012-11-29 Jerome Guitton <guitton@adacore.com>
89
90 * ada-lang.c (ada_is_interface_tag): New function.
91 (ada_is_ignored_field): Add interface tags to the list
92 of ignored fields.
93
b50d69b5
JG
942012-11-29 Jerome Guitton <guitton@adacore.com>
95
96 * ada-lang.h (ada_tag_value_at_base_address): New function
97 declaration.
98 * ada-lang.c (is_ada95_tag, ada_tag_value_at_base_address):
99 New functions.
100 (ada_to_fixed_type_1, ada_evaluate_subexp): Let ada_tag_base_address
101 relocate the class-wide value if need be.
102 (ada_value_struct_elt, ada_value_ind, ada_coerce_ref):
103 Let ada_tag_value_at_base_address relocate the class-wide access/ref
104 before dereferencing it.
105 * ada-valprint.c (ada_val_print_1): Relocate to base address
106 before displaying the content of an interface-wide ref.
107
ca1f964d
JG
1082012-11-29 Jerome Guitton <guitton@adacore.com>
109
110 * ada-lang.c (ada_evaluate_subexp): Unwrap only in EVAL_NORMAL.
111
38d03cf1 1122012-11-29 Joel Brobecker <brobecker@adacore.com>
113
114 GDB 7.5.1 released.
115
f5682501
YQ
1162012-11-29 Yao Qi <yao@codesourcery.com>
117 Tom Tromey <tromey@redhat.com>
118
119 * eval.c (evaluate_subexp_standard): Get the correct pointer
120 type for TYPE_CODE_MEMBERPTR.
121
f359d716
EBM
1222012-11-28 Edjunior Machado <emachado@linux.vnet.ibm.com>
123
124 * rs6000-tdep.c (gdb_print_insn_powerpc): Remove info->mach checking,
125 since now it is being done by binutils' powerpc_init_dialect().
126
0cd61f44
TT
1272012-11-28 Tom Tromey <tromey@redhat.com>
128
129 PR gdb/14290:
130 * solib-darwin.c (gdb_bfd_mach_o_fat_extract): New function.
131 (darwin_solib_get_all_image_info_addr_at_init, darwin_bfd_open):
132 Use it.
133 * gdb_bfd.h (gdb_bfd_mark_parent): Declare.
134 * gdb_bfd.c (gdb_bfd_mark_parent): New function.
135 (gdb_bfd_openr_next_archived_file): Use it.
136
945bf713
MM
1372012-11-28 Markus Metzger <markus.t.metzger@intel.com>
138
139 * configure.ac: Check for linux/perf_event.h.
140 * config.in: Regenerated.
141 * configure: Regenerated.
142
7e20dfcd
YQ
1432012-11-28 Yao Qi <yao@codesourcery.com>
144
145 * breakpoint.c (_initialize_breakpoint): Call add_alias_cmd to
146 abbreviate 'delete tracepoints' to 'delete tr'.
147 * corefile.c (_initialize_core): Call add_alias_cmd to
148 abbreviate 'set gnutarget' to 'set g'.
149 * value.c (_initialize_values): Call add_alias_cmd to abbreviate
150 'show convenience' to 'show conv'.
151
b8293cc8
JB
1522012-11-27 Joel Brobecker <brobecker@adacore.com>
153
154 * sparc-sol2-nat.c (supply_gregset): Fix first parameter in
155 call to sparc_supply_fpregset.
156 (fill_fpregset): Fix first parameter in call to
157 sparc_collect_fpregset.
158
8c2b9656
YQ
1592012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
160 Kazu Hirata <kazu@codesourcery.com>
161 Yao Qi <yao@codesourcery.com>
162
163 * objfiles.c (init_entry_point_info): Call
164 gdbarch_convert_from_func_ptr_addr and
165 gdbarch_addr_bits_remove here ...
166 (entry_point_address_query): ... instead of here.
167 * solib-svr4.c (exec_entry_point): Call
168 gdbarch_addr_bits_remove.
169 * symfile.c (generic_load): Call gdbarch_addr_bits_remove on
170 the entry address.
171
5edf51fe
YQ
1722012-11-27 Daniel Jacobowitz <dan@codesourcery.com>
173 Yao Qi <yao@codesourcery.com>
174
175 * eval.c (evaluate_subexp_standard): Add handling of
176 TYPE_CODE_MEMBERPTR when calling functions. Correct the
177 result of ptype for calling a TYPE_CODE_METHODPTR.
178
ca242aad
YQ
1792012-11-27 Yao Qi <yao@codesourcery.com>
180
181 * symtab.c (symtab_symbol_info): Fix a -Wformat-extra-args
182 warning.
183 Add i18n markup.
184
608e2dbb
TT
1852012-11-26 Alexander Larsson <alexl@redhat.com>
186 Jan Kratochvil <jan.kratochvil@redhat.com>
187 Tom Tromey <tromey@redhat.com>
188
189 * NEWS: Mention mini debuginfo feature.
190 * minidebug.c: New file.
191 * configure.ac: Check for lzma.
192 * configure, config.in: Rebuild.
193 * Makefile.in (LIBLZMA): New variable.
194 (CLIBS): Include LIBLZMA.
195 (SFILES): Mention minidebug.c.
196 (COMMON_OBS): Mention minidebug.o.
197 * symfile.c (read_symbols): New function.
198 (syms_from_objfile, reread_symbols): Call it.
199 * symfile.h (find_separate_debug_file_in_section): Declare.
200
17d6efc4
JB
2012012-11-26 Keith Seitz <keiths@redhat.com>
202
203 * exec.c (exec_file_attach): Move cleanup after verifying that
204 memory has in fact been allocated.
205
210bbc17
TT
2062012-11-26 Tom Tromey <tromey@redhat.com>
207
208 * ada-lang.c (user_select_syms): Use SYMBOL_SYMTAB.
209 * dwarf2read.c (dw2_find_symbol_file, fixup_go_packaging): Use
210 SYMBOL_SYMTAB.
211 * skip.c (skip_info): Use SYMBOL_SYMTAB.
212
0270a750
PA
2132012-11-26 Maxime Villard <rustyBSD@gmx.fr>
214 Pedro Alves <palves@redhat.com>
215
216 * common/linux-osdata.c (linux_xfer_osdata_fds): Decrease buffer
217 size parameter passed to readlink by one byte.
218 * fbsd-nat.c (fbsd_pid_to_exec_file): Ditto.
219 * linux-nat.c (linux_child_pid_to_exec_file): Ditto.
220 * nbsd-nat.c (nbsd_pid_to_exec_file): Ditto.
221 * inf-child.c (inf_child_fileio_readlink): Decrease local buffer's
222 size by one byte.
223
9c16be9a
YQ
2242012-11-26 Yao Qi <yao@codesourcery.com>
225
226 * f-valprint.c (f77_create_arrayprint_offset_tbl): Remove
227 extraneous parentheses.
228
e6f3fa52
YQ
2292012-11-26 Yao Qi <yao@codesourcery.com>
230
231 * remote.c (remote_start_remote): Typo fix.
232
db75c717
DM
2332012-11-23 David S. Miller <davem@davemloft.net>
234
235 * sparc-tdep.h (struct sparc_fpregset): New data structure.
236 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset,
237 sparc32_sol2_fpregset): Declare new globals.
238 (sparc32_supply_fpregset, sparc32_collect_fpregset): Add new
239 'fpregset' argument.
240 * sparc64-tdep.h (sparc64_supply_fpregset,
241 sparc64_collect_fpregset): Likewise.
242 (sparc64_sol2_fpregset, sparc64_bsd_fpregset): Declare new
243 globals.
244 * sparc-nat.h (struct sparc_fpregset): Add forward declaration.
245 (sparc_fpregset): Declare new global.
246 (sparc_supply_fpregset, sparc_collect_fpregset): Add new
247 'fpregset' argument.
248 * sparc-linux-nat.c (supply_fpregset): Pass sparc_fpregset down
249 into handler.
250 (fill_fpregset): Likewise.
251 (_initialize_sparc_linux_nat): Set sparc_fpregset to
252 sparc32_bsd_fpregset.
253 * sparc-linux-tdep.c (sparc32_linux_supply_core_fpregset): Pass
254 sparc32_bsd_fpregset down into handler.
255 (sparc32_linux_collect_core_fpregset): Likewise.
256 * sparc-nat.c (sparc_fpregset): Define.
257 (sparc_supply_fpregset): Add 'fpregset' argument.
258 (sparc_collect_fpregset): Likewise.
259 (sparc_fetch_inferior_registers): Pass sparc_fpregset down
260 into fpregset handler.
261 (sparc_store_inferior_registers): Likewise.
262 (_initialize_sparc_nat): Set sparc_fpregset to
263 sparc32_sunos4_fpregset if NULL.
264 * sparc-sol2-nat.c (supply_gregset): Pass sparc_sol2_fpregset
265 down into handler.
266 (fill_fpregset): Likewise.
267 * sparc-sol2-tdep.c (sparc32_sol2_fpregset): Define.
268 * sparc-tdep.c (sparc32_supply_fpregset): Add fpregset arg and
269 use it to compute offsets.
270 (sparc32_collect_fpregset): Likewise.
271 (sparc32_sunos4_fpregset, sparc32_bsd_fpregset): Define.
272 * sparc64-linux-nat.c (supply_fpregset): Pass sparc64_bsd_fpregset
273 down into handler.
274 (fill_fpregset): Likewise.
275 * sparc64-linux-tdep.c (sparc64_linux_supply_core_fpregset):
276 Likewise.
277 (sparc64_linux_collect_core_fpregset): Likewise.
278 * sparc64-sol2-tdep.c (sparc64_sol2_fpregset): Define.
279 * sparc64-tdep.c (sparc64_supply_fpregset): Add fpregset arg and
280 use it to compute offsets.
281 (sparc64_collect_fpregset): Likewise.
282 (sparc64_bsd_fpregset): Define.
283 * sparc64fbsd-tdep.c (sparc64fbsd_supply_fpregset): Padd
284 sparc64_bsd_fpregset down into handler.
285 (sparc64fbsd_collect_fpregset): Likewise.
286 * sparc64nbsd-nat.c (sparc64nbsd_supply_fpregset): Add fpregset arg
287 and pass sparc{32,64}_bsd_fpregset down into handler.
288 (sparc64nbsd_collect_fpregset): Likewise.
289 * sparc64nbsd-tdep.c (sparc64nbsd_supply_fpregset): Pass
290 sparc64_bsd_fpregset down into handler.
291 * sparc64obsd-tdep.c (sparc64obsd_supply_gregset): Likewise.
292 * sparcnbsd-nat.c (_initialize_sparcnbsd_nat): Set sparc_fpregset
293 to sparc32_bsd_fpregset.
294 * sparcnbsd-tdep.c (sparc32nbsd_supply_gregset): Pass
295 sparc32_bsd_fpregset down into sparc32_supply_fpregset.
296 (sparc32nbsd_supply_fpregset): Likewise.
297
cfcad218
TT
2982012-11-21 Tom Tromey <tromey@redhat.com>
299
300 * gdbtypes.h (struct cplus_struct_type) <localtype_ptr>: Remove
301 field.
302 (TYPE_LOCALTYPE_PTR, TYPE_LOCALTYPE_FILE, TYPE_LOCALTYPE_LINE):
303 Remove.
304 * c-typeprint.c (c_type_print_base): Update.
305
85ddcc70
YQ
3062012-11-21 Yao Qi <yao@codesourcery.com>
307
308 PR tdep/7438
309 * gdbarch.sh (smash_text_address): Remove.
310 * gdbarch.c, gdbarch.h: Regenerate.
311 * arm-tdep.c (arm_smash_text_address): Remove.
312 (arm_gdbarch_init): Don't call set_gdbarch_smash_text_address.
313 * hppa-tdep.c (hppa_smash_text_address): Remove.
314 (hppa_addr_bits_remove): Rename from hppa_smash_text_address.
315 (hppa_gdbarch_init): Don't call set_gdbarch_smash_text_address.
316 Caller update.
317 * coffread.c (coff_symtab_read): Caller update.
318 * dbxread.c (process_one_symbol): Likewise.
319 * elfread.c (record_minimal_symbol): Likewise.
320 * somread.c (som_symtab_read): Likewise.
321
11522069
PM
3222012-11-20 Pierre Muller <muller@sourceware.org>
323
324 ARI fixes: sprintf rule.
325 Replace sprintf function calls for char arrays by
326 calls to xsnprintf calls.
327 * arm-tdep.c (arm_push_dummy_call): Replace sprintf by xsnprintf.
328 (arm_dwarf_reg_to_regnum, arm_return_value): Ditto.
329 (arm_neon_quad_read, arm_pseudo_read): Ditto.
330 (arm_neon_quad_write, arm_pseudo_write): Ditto.
331 * breakpoint.c (condition_completer): Ditto.
332 (create_tracepoint_from_upload): Ditto.
333 * dwarf2read.c (file_full_name): Ditto.
334 * gcore.c (gcore_command): Ditto.
335 * gnu-nat.c (proc_string, gnu_pid_to_str): Ditto.
336 * go32-nat.c (go32_sysinfo): Ditto.
337 * interps.c (interp_set): Ditto.
338 * m32c-tdep.c (make_types): Ditto.
339 * ppc-linux-nat.c (fetch_register, store_register): Ditto.
340 * remote-m32r-sdi.c (m32r_open): Ditto.
341 * sol-thread.c (td_err_string): Ditto.
342 (td_state_string, solaris_pid_to_str): Ditto.
343 * symtab.c (gdb_mangle_name): Ditto.
344 * cli/cli-script.c (execute_control_command): Ditto.
345 (define_command, document_command): Ditto.
346 * tui/tui-io.c (tui_rl_display_match_list): Ditto.
347 * tui/tui-stack.c (tui_make_status_line): Ditto.
348 * tui/tui-win.c (tui_update_gdb_sizes): Ditto.
349
ace21957
MF
3502012-11-20 Mike Frysinger <vapier@gentoo.org>
351
352 * cli/cli-decode.c (complete_on_cmdlist): Add a fourth arg and check
353 it when looking at ptr->func.
354 * command.h (complete_on_cmdlist): Add a fourth arg.
355 * completer.c (complete_line_internal): Add local ignore_help_classes,
356 and set it to 1 when reason is not handle_help. Pass this down to
357 lookup_cmd_1 and complete_on_cmdlist.
358
ec6632d7
TT
3592012-11-20 Tom Tromey <tromey@redhat.com>
360
361 * completer.c (count_struct_fields): Remove.
362 (expression_completer): Don't call count_struct_fields.
363
ef37bb07
PA
3642012-11-20 Pedro Alves <palves@redhat.com>
365
366 * annotate.c (breakpoints_changed): Rename to ...
367 (annotate_breakpoints_changed): ... this.
368 (annotate_stopped, breakpoint_changed): Adjust caller.
369 * annotate.h (breakpoints_changed): Rename to ...
370 (annotate_breakpoints_changed): ... this.
371 * breakpoint.c (set_breakpoint_condition, breakpoint_set_commands)
372 (do_map_commands_command, init_raw_breakpoint, clear_command)
373 (set_ignore_count, enable_breakpoint_disp): Adjust callers.
374
b245bdfc
DM
3752012-11-20 David S. Miller <davem@davemloft.net>
376
377 * common/linux-osdata.c (get_number_of_cpu_cores): Delete.
378 (linux_xfer_osdata_processes): Fetch _SC_NPROCESSORS_ONLN via
379 sysconf.
380 (get_cores_used_by_process): Update comment.
381
bd0cfc4d
YQ
3822012-11-20 Yao Qi <yao@codesourcery.com>
383
384 * objfiles.c (init_entry_point_info): Remove trailing spaces.
385
de9f1b68
YQ
3862012-11-20 Yao Qi <yao@codesourcery.com>
387
388 * infrun.c (handle_inferior_event): Pass 'saved_singlestep_ptid'
389 to deprecated_context_hook.
390
8870954f
YQ
3912012-11-19 Yao Qi <yao@codesourcery.com>
392
393 * infrun.c (infwait_state): Add static.
394
8dea366b
KS
3952012-11-16 Keith Seitz <keiths@redhat.com>
396
397 PR c++/13615
398 * cp-namespace.c (cp_lookup_symbol_in_namespace): Add SEARCH
399 parameter and pass it to lookup_symbol_file.
400 (cp_lookup_symbol_imports): Tell cp_lookup_symbol_in_namespace
401 to search base classes.
402 (cp_lookup_symbol_namespace): Likewise.
403 (lookup_namespace_scope): Likewise.
404 (lookup_symbol_file): Add SEARCH parameter.
405 If SEARCH is non-zero and no symbol is found, lookup the class
406 and call cp_lookup_nested_symbol.
407 (find_symbol_in_baseclass): New function.
408 (cp_lookup_nested_symbol): Do not let
409 cp_lookup_symbol_in_namespace search through base classes.
410 Do that later when there is no global symbol match.
411
e64e0392
DE
4122012-11-16 Doug Evans <dje@google.com>
413
414 * main.c (gdb_datadir_provided): New static global.
415 (get_init_files): If --data-directory is provided,
416 and SYSTEM_GDBINIT lives in data-directory, look for it there.
417 * NEWS: Mention it.
418
8bdce1ff
PM
4192012-11-15 Pierre Muller <muller@sourceware.org>
420
421 ARI fixes: move gdb_wait and gdb_stat headers to common subdirectory.
422 * gdb_stat.h: Delete. Moved to common directory.
423 * common/gdb_stat.h: New file.
424 * gdb_wait.h: Delete. Moved to common directory.
425 * common/gdb_wait.h: New file.
426 * Makefile.in (H_FILES_NO_SRC): Adapt to new header
427 location.
428 * contrib/ari/gdb_ari.sh (wait.h rule): Adapt to new gdb_wait.h
429 location.
430 (stat.h rule): Adapt to new gdb_stat.h location.
431 * common/linux-osdata.c: Include "gdb_stat.h" header instead of
432 <sys/stat.h> header.
433 * common/linux-ptrace.c: Include "gdb_wait.h" header instead of
434 <sys/wait.h> header.
435
3a731e0f
PM
4362012-11-15 Pierre Muller <muller@sourceware.org>
437
438 * configure.ac (AC_HEADER_STAT): Remove.
439 * gdb_stat.h (STAT_MACROS_BROKEN): Remove macro use
440 and corresponding code.
441 * configure: Regenerate.
442 * config.in: Regenerate.
443
2792b94d
PM
4442012-11-15 Pierre Muller <muller@sourceware.org>
445
446 ARI xasprintf rule fixes.
447 * dwarf2read.c (create_dwo_in_dwp): Use xstrprintf function
448 instead of xasprintf.
449 (open_and_init_dwp_file): Ditto.
450
5e34c6c3
LM
4512012-11-14 Luis Machado <lgustavo@codesourcery.com>
452
453 * value.c (value_actual_type): Check for TYPE_CODE_STRUCT
454 target types.
455
e68227b9
TT
4562012-11-14 Tom Tromey <tromey@redhat.com>
457
458 * configure, config.in: Rebuild.
459 * configure.ac: Don't check for ctype.h, time.h.
460 * expprint.c: Don't use HAVE_CTYPE_H.
461
aff68abb
TT
4622012-11-13 Tom Tromey <tromey@redhat.com>
463
464 * gdbarch.h, gdbarch.c: Rebuild.
465 * gdbarch.sh (set_target_gdbarch): Rename from
466 deprecated_target_gdbarch_select_hack.
467 * arch-utils.c (gdbarch_update_p): Update.
468 (set_gdbarch_from_file): Update.
469
84277139 4702012-11-14 Pierre Muller <muller@sourceware.org>
f7c93334
PM
471
472 * MAINTAINERS (Responsible Maintainers/misc): Add myself
473 as responsible of contrib/ari directory.
474
2ae28aa9
YQ
4752012-11-14 Daniel Jacobowitz <dan@codesourcery.com>
476 Yao Qi <yao@codesourcery.com>
477
478 * arm-tdep.c (arm_addr_bits_remove): Do not adjust the low
479 bit of EXC_RETURN.
480 (arm_m_exception_cache, arm_m_exception_this_id)
481 (arm_m_exception_prev_register, arm_m_exception_unwind_sniffer)
482 (arm_m_exception_unwind): New.
483 (arm_gdbarch_init): Register arm_m_exception_unwind.
484
62747a60
TT
4852012-11-13 Giuseppe Montalto <giuseppe.montalto@st.com>
486
487 * mi/mi-main.c (mi_cmd_data_write_memory): Handle additional
488 parameter COUNT, for pattern filling of memory regions.
489 * NEWS: Mention it.
490
4cd29721
MM
4912012-11-13 Markus Metzger <markus.t.metzger@intel.com>
492
493 * disasm.h (DISASSEMBLY_FILENAME): New macro.
494 * disasm.c (do_mixed_source_and_assembly): Pass filename flag on
495 to print_source_lines ().
496 * symtab.h (PRINT_SOURCE_LINES_FILENAME): New print source lines
497 flag.
498 * source.c (print_source_lines_base): Prefix source line with
499 filename if PRINT_SOURCE_LINES_FILENAME flag is set.
500
dfaae886
MM
5012012-11-13 Markus Metzger <markus.t.metzger@intel.com>
502
503 * symtab.h (print_source_lines_flags): New enum.
504 * source.c (print_source_lines_base): Change noerror to flags.
505 (print_source_lines): Change noerror to flags.
506
08850b56
PM
5072012-11-13 Pierre Muller <muller@sourceware.org>
508
509 ARI fixes: Avoid sprintf function use rule.
510 * charset.c (convert_between_encodings): Use xsnprintf.
511 * cli-out.c (cli_field_int): Likewise.
512 * cp-namespace.c (cp_lookup_nested_symbol): Likewise.
513 * expprint.c (op_name_standard): Likewise.
514 * frv-tdep.c (set_variant_num_gprs): Likewise.
515 (set_variant_num_fprs): Likewise.
516 * m68hc11-tdep.c (m68hc11_initialize_register_info): Likewise.
517 * nto-tdep.c (nto_find_and_open_solib): Likewise.
518 (nto_init_solib_absolute_prefix): Likewise.
519 * source.c (init_source_path): Likewise.
520 (print_source_lines_base): Likewise.
521 * valprint.c (print_wchar): Likewise.
522 * mi/mi-out.c (mi_field_int): Likewise.
523 windows-nat.c (windows_pid_to_exec_file): Likewise.
524 (windows_create_inferior): Likewise.
525 (_initialize_check_for_gdb_ini): Likewise.
526
ca9d61b9
JB
5272012-11-12 Joel Brobecker <brobecker@adacore.com>
528
529 * frame.h (deprecated_frame_register_read): Renames
530 frame_register_read.
531 * frame.c (deprecated_frame_register_read): Renames
532 frame_register_read. Update all callers.
533 * i386-tdep.c: Update all callers of frame_register_read.
534 * infcmd.c: Likewise.
535 * jit.c: Likewise.
536 * mips-tdep.c: Likewise.
537 * mt-tdep.c: Likewise.
538 * sh64-tdep.c: Likewise.
539
b2c7d45a
JB
5402012-11-12 Joel Brobecker <brobecker@adacore.com>
541
542 * frame.h (frame_register_read): Remove FIXME comment.
543 * frame.c (frame_register_read): Add suggestion explaining
544 which function to use in place of this one.
545
31594462
TT
5462012-11-12 Tom Tromey <tromey@redhat.com>
547
548 * python/python.c (start_type_printers): Initialize 'result_obj'.
549
18a9fc12
TT
5502012-11-12 Tom Tromey <tromey@redhat.com>
551
552 * NEWS: Update.
553 * data-directory/Makefile.in (PYTHON_FILES): Add
554 type_printers.py.
555 * python/lib/gdb/command/type_printers.py: New file.
556 * python/lib/gdb/command/types.py (TypePrinter): New class.
557 (_get_some_type_recognizers, get_type_recognizers,
558 apply_type_recognizers, register_type_printer): New
559 functions.
560 * python/py-objfile.c (objfile_object) <type_printers>: New
561 field.
562 (objfpy_dealloc): Decref new field.
563 (objfpy_new): Set new field.
564 (objfpy_get_type_printers, objfpy_set_type_printers): New
565 functions.
566 (objfile_to_objfile_object): Set new field.
567 (objfile_getset): Add "type_printers".
568 * python/py-progspace.c (pspace_object) <type_printers>: New
569 field.
570 (pspy_dealloc): Decref new field.
571 (pspy_new): Set new field.
572 (pspy_get_type_printers, pspy_set_type_printers): New functions.
573 (pspace_to_pspace_object): Set new field.
574 (pspace_getset): Add "type_printers".
575 * python/python.c (start_type_printers, apply_type_printers,
576 free_type_printers): New functions.
577 (_initialize_python): Set gdb.type_printers.
578 * python/python.h (start_type_printers, apply_type_printers,
579 free_type_printers): Declare.
580 * typeprint.c (type_print_raw_options, default_ptype_flags):
581 Update for new fields.
582 (do_free_global_table, create_global_typedef_table,
583 find_global_typedef): New functions.
584 (find_typedef_in_hash): Use find_global_typedef.
585 (whatis_exp): Use create_global_typedef_table. Change cleanup
586 handling.
587 * typeprint.h (struct type_print_options) <global_typedefs,
588 global_printers>: New fields.
589
bd69fc68
TT
5902012-11-12 Tom Tromey <tromey@redhat.com>
591
592 * c-typeprint.c (find_typedef_for_canonicalize,
593 print_name_maybe_canonical): New functions.
594 (c_print_type): Look up type name.
595 (cp_type_print_derivation_info): Add flags argument. Use
596 print_name_maybe_canonical.
597 (cp_type_print_method_args): Add wrapping.
598 (c_type_print_varspec_prefix): Use print_name_maybe_canonical.
599 (c_type_print_template_args): New function.
600 (c_type_print_base): Change wrapping. Use
601 print_name_maybe_canonical.
602 <TYPE_CODE_STRUCT>: Possibly create a typedef hash, and do
603 type name lookups.
604 * gdbtypes.c (types_equal): No longer static.
605 * gdbtypes.h (types_equal): Declare.
606 * typeprint.c (type_print_raw_options, default_ptype_flags):
607 Update.
608 (struct typedef_hash_table): New.
609 (hash_typedef_field, eq_typedef_field,
610 recursively_update_typedef_hash, add_template_parameters,
611 create_typedef_hash, free_typedef_hash, do_free_typedef_hash,
612 make_cleanup_free_typedef_hash, copy_typedef_hash_element,
613 copy_typedef_hash, find_typedef_in_hash): New functions.
614 * typeprint.h (struct type_print_options) <local_typedefs>:
615 New field.
616 (recursively_update_typedef_hash, add_template_parameters,
617 create_typedef_hash, free_typedef_hash,
618 make_cleanup_free_typedef_hash, copy_typedef_hash,
619 find_typedef_in_hash): Declare.
620
2621e0fd
TT
6212012-11-12 Tom Tromey <tromey@redhat.com>
622
623 * cp-support.c (inspect_type,
624 replace_typedefs_qualified_name, replace_typedefs): Add
625 finder, data arguments. Call as needed.
626 (cp_canonicalize_string_full): New function.
627 (cp_canonicalize_string_no_typedefs): Rewrite.
628 * cp-support.h (canonicalization_ftype): New typedef.
629 (cp_canonicalize_string_full): Declare.
630
53342f27
TT
6312012-11-12 Tom Tromey <tromey@redhat.com>
632
633 * NEWS: Update.
634 * c-typeprint.c (c_type_print_base): Handle print_method and
635 print_typedefs flags.
636 * gdbcmd.h (setprinttypelist, showprinttypelist): Declare.
637 * python/py-type.c (typy_str): Use LA_PRINT_TYPE and raw
638 options.
639 * typeprint.c (type_print_raw_options, default_ptype_flags):
640 Update for new field.s
641 (whatis_exp): Parse flags. Use LA_PRINT_TYPE.
642 (setprinttypelist, showprinttypelist, print_methods,
643 print_typedefs): New globals.
644 (set_print_type, show_print_type, set_print_type_methods,
645 show_print_type_methods, set_print_type_typedefs,
646 show_print_type_typedefs): New functions.
647 (_initialize_typeprint): Update documentation. Add "print
648 type methods" and "print type typedefs" parameters.
649 * typeprint.h (struct type_print_options) <print_methods,
650 print_typedefs>: New fields.
651
6c8702eb
TT
6522012-11-12 Tom Tromey <tromey@redhat.com>
653
654 * c-typeprint.c (cp_type_print_method_args): Add flags
655 argument. Call c_print_type, not type_print.
656 (c_type_print_base): Call c_print_type, not type_print.
657 Update.
658
79d43c61
TT
6592012-11-12 Tom Tromey <tromey@redhat.com>
660
661 * ada-lang.c (user_select_syms, ada_print_subexp): Pass flags
662 to type-printing functions.
663 * ada-lang.h (ada_print_type): Add argument.
664 * ada-typeprint.c (print_array_type, print_variant_clauses,
665 print_variant_part, print_selected_record_field_types,
666 print_record_field_types, print_unchecked_union_type,
667 print_func_type, ada_print_type): Add flags argument.
668 (ada_print_typedef): Update.
669 * c-exp.y (OPERATOR conversion_type_id): Update.
670 * c-lang.h (c_print_type, c_type_print_base): Update.
671 * c-typeprint.c (c_print_type, c_type_print_varspec_prefix,
672 c_type_print_modifier, c_type_print_args,
673 c_type_print_varspec_suffix, c_type_print_base): Add flags
674 argument.
675 * cp-valprint.c (cp_print_class_member): Update.
676 * dwarf2read.c (dwarf2_compute_name): Update.
677 * f-lang.h (f_print_type): Add argument.
678 * f-typeprint.c (f_print_type): Add flags argument.
679 * gnu-v3-abi.c (gnuv3_print_method_ptr): Update.
680 * go-lang.h (go_print_type): Add argument.
681 * go-typeprint.c (go_print_type): Add flags argument.
682 * jv-lang.h (java_print_type): Add argument.
683 * jv-typeprint.c (java_type_print_base, java_print_type): Add
684 flags argument.
685 * language.c (unk_lang_print_type): Add flags argument.
686 * language.h (struct language_defn) <la_print_type>: Add flags
687 argument.
688 (LA_PRINT_TYPE): Likewise.
689 * m2-lang.h (m2_print_type): Add argument.
690 * m2-typeprint.c (m2_print_type, m2_range, m2_typedef,
691 m2_array, m2_pointer, m2_ref, m2_procedure, m2_long_set,
692 m2_unbounded_array, m2_record_fields): Add flags argument.
693 * p-lang.h (pascal_print_type, pascal_type_print_base,
694 pascal_type_print_varspec_prefix): Add argument.
695 * p-typeprint.c (pascal_print_type,
696 pascal_type_print_varspec_prefix, pascal_print_func_args,
697 pascal_type_print_varspec_suffix, pascal_type_print_base): Add
698 flags argument.
699 * symmisc.c (print_symbol): Update.
700 * typeprint.c (type_print_raw_options, default_ptype_flags):
701 New globals.
702 (type_print): Update.
703 * typeprint.h (struct type_print_options): New.
704 (type_print_raw_options): Declare.
705 (c_type_print_varspec_suffix, c_type_print_args): Add argument.
706
cf4ded82
KS
7072012-11-10 Keith Seitz <keiths@redhat.com>
708
709 * breakpoint.c (clear_command): Add cleanup for
710 sals.sals if an argument is given.
711
712 * linespec.c (parse_linespec): Do cleanups after
713 parsing a convenience variable.
714
0d63ecda
KS
7152012-11-10 Keith Seitz <keiths@redhat.com>
716
717 PR gdb/14288
718 * c-valprint.c (c_val_print): For character arrays
719 with "print null" option on, print ellipses if
720 the output is truncated and the next character is not \000.
721 * valprint.c (MAX_WCHARS): Define.
722 (WCHAR_BUFLEN): Likewise.
723 (WCHAR_BUFLEN_MAX): Likewise.
724 (struct converted_character): New structure.
725 (count_next_character): New function.
726 (print_converted_chars_to_obstack): New function.
727 (generic_printstr): Rewrite using count_next_character
728 and print_converted_chars_to_obstack.
729
9b8d6827
SC
7302012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
731
732 * tui/tui.c (tui_rl_command_key): Switch to TUI_ONE_COMMAND_MODE
733 while executing the gdb command.
734 (tui_rl_startup_hook): Do not switch back to TUI_SINGLE_KEY_MODE if we
735 are called from prompt_for_continue.
736 * tui/tui-io.c (tui_redisplay_readline): Likewise.
737
e840f632
SC
7382012-11-10 Stephane Carrez <Stephane.Carrez@gmail.com>
739
740 PR tui/9584
741
742 * tui/tui.c (tui_rl_command_key): Do not call execute_command
743 but insert the command to execute in readline's buffer.
744
f5656ead
TT
7452012-11-09 Tom Tromey <tromey@redhat.com>
746
747 * gdbarch.sh (target_gdbarch): Remove macro.
748 (get_target_gdbarch): Rename to target_gdbarch.
749 * gdbarch.c, gdbarch.h: Rebuild.
750 * ada-tasks.c, aix-thread.c, amd64-linux-nat.c, arch-utils.c,
751 arm-tdep.c, auxv.c, breakpoint.c, bsd-uthread.c, corefile.c,
752 darwin-nat-info.c, dcache.c, dsrec.c, exec.c, fbsd-nat.c,
753 filesystem.c, gcore.c, gnu-nat.c, i386-darwin-nat.c, i386-nat.c,
754 ia64-vms-tdep.c, inf-ptrace.c, infcmd.c, jit.c, linux-nat.c,
755 linux-tdep.c, linux-thread-db.c, m32r-rom.c, memattr.c,
756 mep-tdep.c, microblaze-tdep.c, mips-linux-nat.c,
757 mips-linux-tdep.c, mips-tdep.c, monitor.c, moxie-tdep.c,
758 nto-procfs.c, nto-tdep.c, ppc-linux-nat.c, proc-service.c,
759 procfs.c, progspace.c, ravenscar-thread.c, record.c,
760 remote-m32r-sdi.c, remote-mips.c, remote-sim.c, remote.c,
761 rl78-tdep.c, rs6000-nat.c, rx-tdep.c, s390-nat.c, sol-thread.c,
762 solib-darwin.c, solib-dsbt.c, solib-frv.c, solib-ia64-hpux.c,
763 solib-irix.c, solib-pa64.c, solib-som.c, solib-spu.c,
764 solib-sunos.c, solib-svr4.c, solib.c, spu-linux-nat.c,
765 spu-multiarch.c, spu-tdep.c, symfile-mem.c, symfile.c, symtab.c,
766 target-descriptions.c, target.c, target.h, tracepoint.c,
767 windows-nat.c, windows-tdep.c, xcoffsolib.c, cli/cli-dump.c,
768 common/agent.c, mi/mi-interp.c, python/py-finishbreakpoint.c,
769 python/py-inferior.c, python/python.c: Update.
770
ed8a1c2d
AB
7712012-11-09 Andrew Burgess <aburgess@broadcom.com>
772
773 * source.c (print_source_lines_base): Add fullname field giving
774 full path to file in mi output.
775 * NEWS: Mention the new fullname field.
776
504b36fd
YQ
7772012-11-09 Yao Qi <yao@codesourcery.com>
778
779 * NEWS: Mention the fix to the ambiguity of 'fo' command.
780
9107fc8d
PA
7812012-11-09 Pedro Alves <palves@redhat.com>
782
783 PR gdb/14306
784
785 * infrun.c: Include target-descriptions.h.
786 (follow_exec): Fetch new target description.
787
30f8135b
YQ
7882012-11-09 Yao Qi <yao@codesourcery.com>
789
790 * i386-tdep.c (i386_analyze_frame_setup): Handle opcode
791 0x8d (lea).
792
558a9d82
YQ
7932012-11-09 Yao Qi <yao@codesourcery.com>
794
795 * breakpoint.c: Declare set_tracepoint_count.
796 (install_breakpoint): Call set_tracepoint_count if B is a
797 tracepoint.
798 (trace_command): Don't call set_tracepoint_count. Re-indent.
799 (strace_command, ftrace_command):
800 (create_tracepoint_from_upload): Likewise.
801
6ecd4729
PA
8022012-11-09 Pedro Alves <palves@redhat.com>
803
804 * gdbarch.sh (target_gdbarch) <gdbarch.h>: Reimplement as macro.
805 (get_target_gdbarch) <gdbarch.h>: New function.
806 (startup_gdbarch) <gdbarch.h>: Declare.
807 <gdbarch.c> (target_gdbarch): Delete.
808 <gdbarch.c> (deprecated_target_gdbarch_select_hack): Set the
809 current inferior's gdbarch.
810 <gdbarch.c> (get_target_gdbarch): New function.
811 * inferior.c: Include target-descriptions.h.
812 (free_inferior): Free target description info.
813 (add_inferior_with_spaces): Set the inferior's initial
814 architecture.
815 (clone_inferior_command): Copy the original inferior's target
816 description if it was user specified.
817 (initialize_inferiors): Add comment.
818 * inferior.h (struct target_desc_info): Forward declare.
819 (struct inferior) <gdbarch>: New field.
820 * linux-nat.c: Include target-descriptions.h.
821 (linux_child_follow_fork): Copy the parent's architecture and
822 target description to the child.
823 * target-descriptions.c: Include inferior.h.
824 (struct target_desc_info): New structure, holding the equivalents
825 of ...
826 (target_desc_fetched, current_target_desc)
827 (target_description_filename): ... these removed globals.
828 (get_tdesc_info, target_desc_info_from_user_p)
829 (copy_inferior_target_desc_info, target_desc_info_free): New.
830 (target_desc_fetched, current_target_desc)
831 (target_description_filename): Reimplemented as convenience
832 macros.
833 (tdesc_filename_cmd_string): New global.
834 (set_tdesc_filename_cmd): Copy the string manipulated by the "set
835 tdescs filename ..." commands to the per-inferior equivalent.
836 (show_tdesc_filename_cmd): Get the value to show from the
837 per-inferior description filename.
838 (_initilize_target_descriptions): Change the "set/show tdesc
839 filename" commands' variable.
840 * target-descriptions.h (struct target_desc, struct target_desc_info)
841 (struct inferior): Forward declare.
842 (target_find_description, target_clear_description)
843 (target_current_description): Adjust comments.
844 (copy_inferior_target_desc_info, target_desc_info_free)
845 (target_desc_info_from_user_p). Declare.
846
4ca4d161
SC
8472012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
848
849 * tui/tui-hooks.c (tui_about_to_proceed): New function.
850 (tui_target_wait_hook): Remove.
851 (tui_install_hooks): Install the about_to_proceed observer.
852 (tui_remove_hooks): And remove it here.
853
9015683b
TT
8542012-11-08 Tom Tromey <tromey@redhat.com>
855
856 * linux-tdep.c (linux_make_siginfo_note): New function.
857 (linux_make_corefile_notes): Use it.
858 * corelow.c (get_core_siginfo): New function.
859 (core_xfer_partial) <TARGET_OBJECT_SIGNAL_INFO>: New case.
860
ea9f10bb
TT
8612012-11-08 Tom Tromey <tromey@redhat.com>
862
863 PR gdb/14704:
864 * gdb_bfd.c (gdb_bfd_ref): Set BFD_DECOMPRESS.
865 (zlib_decompress_section): Remove.
866 (gdb_bfd_map_section): Only check for compressed section
867 in mmap case. Use bfd_get_full_section_contents.
868 * osabi.c (check_note): Add 'sectsize' argument. Read
869 section data.
870 (generic_elf_osabi_sniff_abi_tag_sections): Don't read
871 section data. Update for check_note change.
872 * xcoffread.c (xcoff_initial_scan): Use
873 bfd_get_full_section_contents.
874 * py-auto-load.c (auto_load_section_scripts): Use
875 bfd_get_full_section_contents.
876 * contrib/cc-with-tweaks.sh: Add -Z option.
877
d071a26b
TT
8782012-11-08 Tom Tromey <tromey@redhat.com>
879
880 * python/py-bpevent.c: Include defs.h.
881 * python/py-continueevent.c: Include defs.h.
882 * python/py-event.c: Include defs.h.
883 * python/py-event.h: Don't include defs.h.
884 * python/py-events.h: Don't include defs.h.
885 * python/py-evts.c: Include defs.h.
886 * python/py-exitedevent.c: Include defs.h.
887 * python/py-newobjfileevent.c: Include defs.h.
888 * python/py-signalevent.c: Include defs.h.
889 * python/py-stopevent.c: Include defs.h.
890 * python/py-threadevent.c: Include defs.h.
891
4574b35a
PM
8922012-11-08 Pierre Muller <muller@sourceware.org>
893
894 * update-web-ari.sh (print_heading): Add number of files
895 checked.
896 (nb_files): New variable counting the number of sources
897 files found by gdb_find.sh script.
898 (debug_awk): New variable to allow extra debug output.
899 (indexes): Add more information if DEBUG_AWK is set.
900
2834ab42
EBM
9012012-11-08 Edjunior Machado <emachado@linux.vnet.ibm.com>
902
903 * ppc-linux-tdep.c (ppc64_standard_linkage1, ppc64_standard_linkage2,
904 ppc64_standard_linkage3): Mark ld r11 instructions as optional,
905 following the change in PLT call stubs on linker.
906
84f13595
PM
9072012-11-08 Pierre Muller <muller@sourceware.org>
908
909 * contrib/ari/gdb_ari.sh (LANG, LC_ALL): Use 'C' instead of 'c'
910 as default language.
911 (AWK): Use = instead of == for sh test to avoid warning.
912 (Linux rule): Correct [:digit] into [[:digit:]].
913 (__func__ rule): Adapt to "gdb_assert.h" move to common subdirectory.
914 (vasprintf rule): Adapt to common subdirectory moves.
915 (xasprintf rule): Idem.
916 (xvasprintf rule): Idem.
917 (var_boolean rule): Accept occurence in == or != test.
918
919 * contrib/ari/gdb_find.sh: Also prune gdbtk directory.
920
d69e6a33
SC
9212012-11-08 Stephane Carrez <Stephane.Carrez@gmail.com>
922
923 * tui/tui-hooks.c (tui_inferior_exit): New function.
924 (tui_detach_hook): Remove.
925 (tui_install_hooks): Install the inferior exit observer.
926 (tui_remove_hooks): Remove it.
927
1e96de83
YQ
9282012-11-08 Yao Qi <yao@codesourcery.com>
929
930 PR gdb/14777.
931 * source.c (_initialize_source): Call add_com_alias to abbreviate
932 'forward-search' as 'fo'.
933
0baeab03
PA
9342012-11-07 Pedro Alves <palves@redhat.com>
935
936 * arm-tdep.c: Make defs.h be the first include.
937 * coff-pe-read.c: Ditto.
938 * gnu-nat.c: Ditto.
939 * go32-nat.c: Ditto.
940 * i386-nat.c: Ditto.
941 * ppcnbsd-nat.c: Ditto.
942 * ada-varobj.h: Don't include defs.h.
943 * i386-darwin-tdep.h: Ditto.
944 * i386-nat.h: Ditto.
945
892a8570
PA
9462012-11-07 Pedro Alves <palves@redhat.com>
947
948 * MAINTAINERS: New FSF-appointed maintainers replace the Steering
949 Committee.
950
719502e9
PM
9512012-11-07 Pierre Muller <muller@sourceware.org>
952
953 * common/linux-osdata.c (dirent.h): ARI fix: Remove.
954 File already uses "gdb_dirent.h" header.
955
ed86b350
YQ
9562012-11-07 Yao Qi <yao@codesourcery.com>
957
958 * breakpoint.c (get_tracepoint_by_number): Remove 'extern int
959 tracepoint_count'.
960
9a4f1e4f
TT
9612012-11-06 Tom Tromey <tromey@redhat.com>
962
963 * target.h (inferior_has_forked, inferior_has_vforked)
964 (inferior_has_execd, inferior_has_called_syscall): Remove
965 declarations.
966
0316657e
PM
9672012-11-06 Pierre Muller <muller@sourceware.org>
968
969 * remote.c (remote_insert_hw_breakpoint): ARI fix,
970 add missing internalization markup.
971
f6592439
PA
9722012-11-06 Pedro Alves <palves@redhat.com>
973
974 PR gdb/14810
975
976 * breakpoint.c (bpstat_stop_status): Skip disabled locations.
977
01f2564a
PM
9782012-11-06 Pierre Muller <muller@sourceware.org>
979
980 * contrib/ari/create-web-ari-in-src.sh: Avoid problem if script
981 is not executable.
982
f37c4431
JB
9832012-11-05 Joel Brobecker <brobecker@adacore.com>
984
985 * gnulib/update-gnulib.sh: New script.
986
550889c3
JB
9872012-11-05 Stephane Carrez <Stephane.Carrez@gmail.com>
988
989 * MAINTAINERS: Update my email address.
990
954b50b3
TT
9912012-11-05 Tom Tromey <tromey@redhat.com>
992
993 * frame.c (put_frame_register): Don't use temporary buffer.
994
68c9da30
PA
9952012-11-05 Pedro Alves <palves@redhat.com>
996
997 * inferior.c (exit_inferior_1): Clear 'vfork_parent' in the vfork
998 child. Clear 'pending_detach'.
999 * infrun.c (handle_vfork_child_exec_or_exit): Clear
1000 'pending_detach' in the vfork parent.
1001
80626a55
DE
10022012-11-05 Doug Evans <dje@google.com>
1003
1004 Add support for DWP files. http://gcc.gnu.org/wiki/DebugFissionDWP
1005 * contrib/cc-with-tweaks.sh: Add -p parameter to invoke dwp.
1006 * dwarf2read.c: #include "elf-bfd.h".
1007 (struct dwarf2_per_objfile): New members dwp_checked, dwp_file.
1008 (dwop_section_names): Renamed from dwo_section names. All uses
1009 updated. Add entries for .debug_cu_index, .debug_tu_index.
1010 (struct dwo_file): Rename dwo_name to name, dwo_bfd to dbfd.
1011 All uses updated.
1012 (struct dwp_sections): New type.
1013 (struct virtual_dwo_sections): New type.
1014 (struct dwp_hash_table): New type.
1015 (struct dwp_file): New type.
1016 (init_cutu_and_read_dies): Ensure DWO info/types section has been
1017 read in. Handle DWOs coming from DWP files.
1018 (lookup_dwo_file_slot): New function.
1019 (dwarf2_locate_dwo_sections): Move definition closer to use.
1020 (create_dwo_debug_info_hash_table_reader): Renamed from
1021 create_debug_info_hash_table_reader. All callers updated.
1022 (create_dwo_debug_info_hash_table): Renamed from
1023 create_debug_info_hash_table. All callers updated.
1024 (create_dwp_hash_table): New function.
1025 (locate_virtual_dwo_sections, create_dwo_in_dwp): New functions.
1026 (lookup_dwo_in_dwp): New function.
1027 (try_open_dwop_file): Renamed from try_open_dwo_file. New parameter
1028 is_dwp. All callers updated.
1029 (open_dwop_file): Renamed from open_dwo_file. All callers updated.
1030 (open_and_init_dwo_file): Renamed from init_dwo_file.
1031 All callers updated.
1032 (lookup_dwo_file): Delete.
1033 (dwarf2_locate_dwp_sections): New function.
1034 (hash_dwp_loaded_cutus, eq_dwp_loaded_cutus): New functions.
1035 (allocate_dwp_loaded_cutus_table): New function.
1036 (open_and_init_dwp_file): New function.
1037 (lookup_dwo_cutu): New function.
1038 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Call it.
1039
6f6484cd
YQ
10402012-11-03 Yao Qi <yao@codesourcery.com>
1041
1042 Fix PR gdb/14617.
1043 * breakpoint.c (trace_pass_set_count): Call
1044 observer_notify_breakpoint_modified instead of
1045 observer_notify_tracepoint_modified.
1046 * mi/mi-cmd-break.c (mi_cmd_break_passcount): Likewise.
1047
b45627a0
TT
10482012-11-02 Tom Tromey <tromey@redhat.com>
1049
1050 * breakpoint.c (catch_syscall_completer): Pass 'word' as second
1051 argument to complete_on_enum.
1052
d4fb63e1
TT
10532012-11-02 Tom Tromey <tromey@redhat.com>
1054
1055 * configure: Rebuild.
1056 * configure.ac (build_warnings): Add -Wempty-body.
1057 * m68k-tdep.c (m68k_gdbarch_init): Remove empty 'if'.
1058 * remote.c (handle_notification): Use braces for empty 'else' body.
1059 * s390-tdep.c (s390_analyze_prologue): Use braces for empty
1060 'else' body.
1061 * sh64-tdep.c (sh64_push_dummy_call): Use braces for empty
1062 'else' body.
1063 * solib-som.c (som_relocate_section_addresses): Use braces
1064 for empty 'else' body.
1065 * ui-file.c (stdio_file_write): Use braces for empty 'if' body.
1066 (stdio_file_write_async_safe, stdio_file_fputs): Likewise.
1067
f50f4e56
PA
10682012-11-02 Pedro Alves <palves@redhat.com>
1069
1070 PR gdb/14766
1071
1072 * infrun.c (handle_inferior_event)
1073 <TARGET_WAITKIND_EXITED/TARGET_WAITKIND_SIGNALLED>: Switch to
1074 null_ptid before handling a vfork child exec or exit. Switch to
1075 the event ptid afterwards.
1076
f0559fff
YQ
10772012-11-02 Yao Qi <yao@codesourcery.com>
1078
1079 * std-operator.def: Remove OP_LABELED.
1080 * eval.c: Remove the declaration of 'get_label'.
1081 (get_label): Remove.
1082 (evaluate_struct_tuple): Remove code handling OP_LABELED.
1083 Update comment.
1084 Remove local variable 'variantno' and related code.
1085 Replace 'substruct_type' with 'struct_type'. Replace 'subfieldno'
1086 with 'fieldno'.
1087 * expprint.c (print_subexp_standard): Likewise.
1088 (dump_subexp_body_standard): Likewise.
1089 * parse.c (operator_length_standard): Likewise.
1090
e5496e3e
PM
10912012-11-01 Pierre Muller <muller@ics.u-strasbg.fr>
1092
1093 Incorporate ARI web page generator into GDB sources.
1094 * contrib/ari/create-web-ari-in-src.sh: New file.
1095 * contrib/ari/gdb_ari.sh: New file.
1096 * contrib/ari/gdb_find.sh: New file.
1097 * contrib/ari/update-web-ari.sh: New file.
1098
c66fb220
TT
10992012-10-31 Tom Tromey <tromey@redhat.com>
1100
1101 * gdbarch.c: Rebuild.
1102 * gdbarch.sh: Remove references to gdbarch_swap.
1103 * corelow.c (core_open): Remove obsolete comment.
1104
2f27adfe
AB
11052012-10-31 Andrew Burgess <aburgess@broadcom.com>
1106
1107 PR cli/14772
1108 * c-typeprint.c (c_print_type): Don't print a space for vector
1109 types, this is handled within the suffix.
1110 (c_type_print_varspec_suffix): Add a space to vector suffix.
1111
144db827
PA
11122012-10-26 Pedro Alves <palves@redhat.com>
1113
1114 * amd64-tdep.c (amd64_relocate_instruction): Use
1115 store_unsigned_integer instead of memcpy.
1116 * i386-tdep.c (i386_relocate_instruction): Ditto.
1117
940c3c06
PA
11182012-10-26 Pedro Alves <palves@redhat.com>
1119
1120 * infrun.c (handle_inferior_event): Merge handling of
1121 TARGET_WAITKIND_EXITED and TARGET_WAITKIND_SIGNALLED into a single
1122 switch case.
1123
47b19065
PA
11242012-10-26 Pedro Alves <palves@redhat.com>
1125
1126 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_SIGNALLED>:
1127 Remove comment.
1128
87d2d2a4
PA
11292012-10-26 Pedro Alves <palves@redhat.com>
1130
1131 * target.c (target_waitstatus_to_string): Handle
1132 TARGET_WAITKIND_VFORK_DONE.
1133
fed708ed
PA
11342012-10-26 Pedro Alves <palves@redhat.com>
1135
1136 * infrun.c (handle_inferior_event): Print TARGET_WAITKIND_VFORKED
1137 as "TARGET_WAITKIND_VFORKED", not "TARGET_WAITKIND_FORKED".
1138
2590b645
JB
11392012-10-24 Tristan Gingold <gingold@adacore.com>
1140
1141 * ravenscar-sparc-thread.c (ravenscar_sparc_fetch_registers):
1142 Add comments.
1143
bed0c243
JB
11442012-10-24 Joel Brobecker <brobecker@adacore.com>
1145
1146 * ravenscar-thread.c (ravenscar_wait): Only update the list
1147 of threads and inferior_ptid if the inferior is still alive.
1148
f69c91ad
JB
11492012-10-24 Joel Brobecker <brobecker@adacore.com>
1150
1151 * ada-lang.c (is_known_support_routine): Use lbasename when
1152 matching the symtab's filename against
1153 known_runtime_file_name_patterns.
1154
d99dcf51
JB
11552012-10-24 Joel Brobecker <brobecker@adacore.com>
1156
1157 * ada-lang.c (ada_same_array_size_p): New function.
1158 (ada_promote_array_of_integrals): New function.
1159 (coerce_for_assign): Add handling of arrays where the elements
1160 are integrals of a smaller size than the size of the target
1161 array element type.
1162
32560274
JB
11632012-10-24 Joel Brobecker <brobecker@adacore.com>
1164
1165 * doublest.c (convert_doublest_to_floatformat): Fix comparison
1166 against maximum exponent value.
1167
5a04cc98
JB
11682012-10-24 Joel Brobecker <brobecker@adacore.com>
1169
1170 * ada-lang.h (ADA_KNOWN_RUNTIME_FILE_NAME_PATTERNS): Add entry for
1171 "unwind-seh.c".
1172
5ded5331
JB
11732012-10-24 Joel Brobecker <brobecker@adacore.com>
1174
1175 * ada-lang.c (ada_template_to_fixed_record_type_1): Do not
1176 strip typedef layer when computing the fixed type's field type,
1177 only when computing its size.
1178
2445fd7b
MK
11792012-10-24 Mark Kettenis <kettenis@gnu.org>
1180
1181 PR gdb/12783
1182 * i386-tdep.c (i386_return_value): Handle complex double and long
1183 double.
1184
8f205f9c
JB
11852012-10-24 Joel Brobecker <brobecker@adacore.com>
1186
1187 * windows-nat.c (windows_create_inferior) [!__CYGWIN__]:
1188 New local variable args_len.
1189 Quote the name of the executable when computing the command line.
1190
7f7930dd
MK
11912012-10-23 Mark Kettenis <kettenis@gnu.org>
1192
1193 PR gdb/12796
1194 PR gdb/12798
1195 PR gdb/12800
1196 * amd64-tdep.h (enum amd64_regnum): Add AMD64_ST1_REGNUM and
1197 AMD64_FTAG_REGNUM.
1198 * amd64-tdep.c (amd64_classify): Classify complex types.
1199 (amd64_return_value): Handle the COMPLEX_X87 class.
1200
38a69d0a
JB
12012012-10-23 Joel Brobecker <brobecker@adacore.com>
1202
1203 * rs6000-aix-tdep.c (rs6000_aix_auto_wide_charset): New function.
1204 (rs6000_aix_init_osabi): Set auto_wide_charset gdbarch method.
1205
83ab93c6
JB
12062012-10-23 Joel Brobecker <brobecker@adacore.com>
1207
1208 * amd64-windows-tdep.c (amd64_windows_auto_wide_charset): New
1209 function.
1210 (amd64_windows_init_abi): Set auto_wide_charset gdbarch method
1211 to amd64_windows_auto_wide_charset.
1212
f6fbab7d
YQ
12132012-10-23 Yao Qi <yao@codesourcery.com>
1214
1215 * event-top.c (mark_async_signal_handler_wrapper): Remove.
1216 * event-top.h: Remove its declaration.
1217 (async_request_quit): Call mark_async_signal_handler instead of
1218 mark_async_signal_handler_wrapper.
1219 (async_do_nothing, async_disconnect): Likewise.
1220 (async_stop_sig): Likewise.
1221 * remote.c (handle_remote_sigint): Likewise.
1222 (handle_remote_sigint_twice): Likewise.
1223
05fa9251
YQ
12242012-10-23 Yao Qi <yao@codesourcery.com>
1225
1226 * event-top.c (sigint_token, sighup_token): Replace 'void *'
1227 with 'static struct async_signal_handler *'.
1228 (sighup_token, sigquit_token, sigstp_token): Likewise.
1229
08af7a40
AA
12302012-10-22 Ali Anwar <ali_anwar@codesourcery.com>
1231
1232 * gdbarch.sh (function_list): Use 'pstring' when printing
1233 a variable which could return NULL.
1234 * gdbarch.c: Regenerate.
1235
beb4b03c
JB
12362012-10-10 Joel Brobecker <brobecker@adacore.com>
1237 Tom Tromey <tromey@redhat.com>
1238
1239 * rs6000-aix-tdep.c (rs6000_aix_osabi_sniffer): Replace
1240 inneffective if condition by gdb assertion. Add function
1241 description comment.
1242
a5b12627
JB
12432012-10-19 Joel Brobecker <brobecker@adacore.com>
1244
1245 * parser-defs.h (struct exp_descriptor): Document constraint
1246 on return value for "op_name" callbacks.
1247
0b0865da
TT
12482012-10-18 Tom Tromey <tromey@redhat.com>
1249
1250 * tracepoint.c (print_one_static_tracepoint_marker): Constify.
1251 * symtab.c (iterate_over_some_symtabs): Constify.
1252 * source.h (symtab_to_fullname): Return 'const char *'.
1253 * source.c (symtab_to_fullname): Return 'const char *'.
1254 * python/py-symtab.c (stpy_fullname): Constify.
1255 * cli/cli-cmds.c (edit_command): Constify.
1256 * breakpoint.c (print_breakpoint_location)
1257 (update_static_tracepoint): Constify.
1258
94b0e70d
TT
12592012-10-18 Tom Tromey <tromey@redhat.com>
1260
1261 * breakpoint.c (compare_breakpoints): Fix comparison.
1262
fff10684
TT
12632012-10-18 Tom Tromey <tromey@redhat.com>
1264
1265 * valprint.c (generic_emit_char, generic_printstr): Pass size of
1266 gdb_wchar_t to convert_between_encodings.
1267
8de0566d
YQ
12682012-10-17 Yao Qi <yao@codesourcery.com>
1269
1270 * breakpoint.c (invalidate_bp_value_on_memory_change): Add one
1271 more parameter 'inferior'.
1272 * corefile.c (write_memory_with_notification): Caller update.
1273
1274 * mi/mi-cmd-var.c: Include "mi-main.h".
1275 (mi_cmd_var_assign): Set mi_suppress_notification.data_write_memory
1276 to 1 and restore it later.
1277 * mi/mi-cmds.c (mi_cmd mi_cmds): Update for "data-write-memory"
1278 and "data-write-memory-bytes.
1279 * mi/mi-interp.c: Include objfiles.h.
1280 (mi_interpreter_init): Call observer_attach_memory_changed.
1281 (mi_memory_changed): New.
1282 * mi/mi-main.h (struct mi_suppress_notification) <memory>:
1283 New field.
1284
1285 * NEWS: Mention new MI notification "memory-changed".
1286
6235cdd1
JK
12872012-10-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1288
1289 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Remove comment.
1290
07540c15
DE
12912012-10-15 Doug Evans <dje@google.com>
1292
1293 New option -nh: inhibit loading of ~/.gdbinit.
1294 * NEWS: Mention -nh.
1295 * main.c (captured_main): Recognize and process -nh.
1296 (print_gdb_help): Mention -nh.
1297 * gdb.1: Mention -nh. Remove erroneous docs on -nx behavior.
1298
eab09350
L
12992012-10-15 H.J. Lu <hongjiu.lu@intel.com>
1300
1301 PR backtrace/14646
1302 PR gdb/14647
1303 * i386-tdep.h (gdbarch_tdep): Remove sp_regnum_from_eax and
1304 pc_regnum_from_eax.
1305 * i386-tdep.c (i386_gdbarch_init): Don't use sp_regnum_from_eax
1306 nor pc_regnum_from_eax.
1307 * amd64-tdep.c (amd64_x32_init_abi): Don't set sp_regnum_from_eax
1308 nor pc_regnum_from_eax.
1309
9e3a7d65
JK
13102012-10-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1311
1312 Fix entry values resolving in inlined frames.
1313 * dwarf2loc.c (dwarf_expr_reg_to_entry_parameter): Move func_addr,
1314 gdbarch and caller_frame initialization later. Skip INLINE_FRAME
1315 entries of FRAME.
1316
c83393b9
JB
13172012-10-15 Joel Brobecker <brobecker@adacore.com>
1318
1319 * configure.ac: Build with -DMS_WIN64 if building with Python
1320 enabled using GCC on amd64-windows.
1321 * configure: Regenerate.
1322
801e4185
TT
13232012-10-15 Tom Tromey <tromey@redhat.com>
1324
1325 PR python/14635:
1326 * python/py-symtab.c (del_objfile_sal): Set 'symtab' field
1327 to Py_None.
1328
74f910c8
TT
13292012-10-15 Tom Tromey <tromey@redhat.com>
1330
1331 PR python/14634:
1332 * python/py-symbol.c (sympy_dealloc): Check for NULL symbol.
1333
2a7c8fd5
AB
13342012-10-11 Andrew Burgess <aburgess@broadcom.com>
1335
1336 * remote-sim.c (gdbsim_create_inferior): Call init_thread_list to
1337 reset thread numbering back to 1.
1338
7c09e5a0
DE
13392012-10-11 Doug Evans <dje@google.com>
1340
1341 PR breakpoints/14643.
1342 * linespec.c (struct ls_parser): New member keyword_ok.
1343 (linespec_lexer_lex_string): Add comment.
1344 (linespec_lexer_lex_one): Ignore keywords if it's the wrong place
1345 for one.
1346 (parse_linespec): Set keyword_ok.
1347
a1855c1d
DE
13482012-10-10 Doug Evans <dje@google.com>
1349
844226d6
DE
1350 * dwarf2read.c (process_psymtab_comp_unit_reader): Remove duplicate
1351 "0x" prefix on address in log message.
1352
a1855c1d
DE
1353 * dwarf2read.c (read_1_byte): Add const to buf parameter.
1354 (read_1_signed_byte, read_2_bytes, read_2_signed_bytes): Ditto.
1355 (read_4_bytes, read_4_signed_bytes, read_8_bytes): Ditto.
1356 (lookup_dwo_file): Add const to dwo_name parameter.
1357 (lookup_dwo_comp_unit, lookup_dwo_type_unit): Ditto.
1358
2e24f4aa
JK
13592012-10-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1360
1361 Fix crash during stepping on ppc32.
1362 * ppc-linux-tdep.c (powerpc_linux_in_dynsym_resolve_code): Test NULL
1363 SYM.
1364
aa14df25
DE
13652012-10-03 Doug Evans <dje@google.com>
1366
1367 PR symtab/14601
1368 * buildsym.c (buildsym_init): Reset using_directives to NULL.
1369
3d468296
AB
13702012-10-02 Andrew Burgess <aburgess@broadcom.com>
1371
1372 * remote-sim.c (dump_mem): Always dump buffer contents, zero fill
1373 output and use uint32_t not long to ensure 4 byte size.
1374
8f0ee2eb
JB
13752012-10-02 Joel Brobecker <brobecker@adacore.com>
1376
1377 * rs6000-nat.c (add_vmap): Set "last" to "next" after having
1378 unref'ed it.
1379
b3dc46ff
AB
13802012-10-01 Andrew Burgess <aburgess@broadcom.com>
1381
1382 * target.c (simple_search_memory): Include access length in
1383 warning message.
1384
f712f01f
EBM
13852012-09-28 Nathan Miller <nathanm2@us.ibm.com>
1386 Edjunior Machado <emachado@linux.vnet.ibm.com>
1387
1388 PR gdb/13989
1389 * solib.c (solib_find): Prevent GDB from loading native libraries when
1390 debugging a cross-target corefile.
1391
39181896
PA
13922012-09-28 selven <pcthegreat@gmail.com>
1393
1394 Make definition match declaration.
1395
1396 * regcache.c (regcache_register_status): Change return type to
1397 enum register_status.
1398
4c2786ba
YQ
13992012-09-28 Yao Qi <yao@codesourcery.com>
1400
1401 * mi/mi-main.c (mi_cmd_data_write_memory): Call
1402 write_memory_with_notification instead of write_memory.
1403 (mi_cmd_data_write_memory_bytes): Call write_memory_with_notification
1404 instead of target_write_memory.
1405
1ae0c35e
YQ
14062012-09-28 Yao Qi <yao@codesourcery.com>
1407
1408 * mi/mi-main.c (mi_cmd_data_write_memory_bytes): Emit error
1409 when the length of content is not an even number.
1410
7977e5d2
TT
14112012-09-27 Tom Tromey <tromey@redhat.com>
1412
1413 Fix https://bugzilla.redhat.com/show_bug.cgi?id=849357
1414 * cp-valprint.c (cp_print_value_fields): Use get_vptr_fieldno.
1415
807160da
JB
14162012-09-27 Joel Brobecker <brobecker@adacore.com>
1417
1418 * sol-thread.c (sol_thread_fetch_registers)
1419 (sol_thread_store_registers): Delete commented out code.
1420
43c75337
JB
14212012-09-27 Joel Brobecker <brobecker@adacore.com>
1422
1423 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1424 Move these functions to sparc-sol-thread.c.
1425 * sparc-sol-thread.c: New file.
1426 * configure.ac: Add sparc-sol-thread.o to CONFIG_OBS and
1427 sparc-sol-thread.c to CONFIG_SRCS for sparc-solaris native
1428 configurations.
1429 * configure: Regenerate.
1430
d292a972
JB
14312012-09-27 Joel Brobecker <brobecker@adacore.com>
1432
1433 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1434 Remove commented-out code.
1435
8c3da003
JB
14362012-09-27 Joel Brobecker <brobecker@adacore.com>
1437
1438 * sol-thread.c (ps_lgetxregsize, ps_lgetxregs, ps_lsetxregs):
1439 Enable this code for sparc hosts only.
1440
f00482b6
JB
14412012-09-27 Joel Brobecker <brobecker@adacore.com>
1442
1443 * procfs.h (procfs_find_LDT_entry): Add declaration.
1444 * sol-thread.c (ps_lgetLDT): Delete local declaration of
1445 function procfs_find_LDT_entry.
1446
337c776f
JB
14472012-09-27 Joel Brobecker <brobecker@adacore.com>
1448
1449 * procfs.c (proc_get_LDT_entry): Make static.
1450
1a04d88f
JB
14512012-09-27 Joel Brobecker <brobecker@adacore.com>
1452
1453 * procfs.c (proc_find_memory_regions): Fix declaration.
1454
bad43aa5
SP
14552012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1456
1457 * amd64-tdep.c (amd64_return_value): Revert previous change
1458 that used TYPE_LENGTH directly.
1459 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1460 (bfin_store_return_value): Likewise.
1461 * cris-tdep.c (cris_store_return_value): Likewise.
1462 (cris_extract_return_value): Likewise.
1463 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1464 * hppa-tdep.c (hppa64_return_value): Likewise.
1465 * lm32-tdep.c (lm32_store_return_value): Likewise.
1466 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1467 * spu-tdep.c (spu_value_from_register): Likewise.
1468 * vax-tdep.c (vax_return_value): Likewise.
1469
63375b74
SP
14702012-09-27 Siddhesh Poyarekar <siddhesh@redhat.com>
1471
1472 * gdbtypes.c (lookup_array_range_type): Expand parameters
1473 LOW_BOUND and HIGH_BOUND to LONGEST.
1474 (lookup_string_range_type): Likewise.
1475 * gdbtypes.h (lookup_array_range_type): Likewise.
1476 (lookup_string_range_type): Likewise.
1477 * valops.c (value_cstring): Expand parameter LEN to ssize_t.
1478 Expand HIGHBOUND to ssize_t.
1479 (value_string): Likewise.
1480 * value.h (value_cstring): Expand parameter LEN to ssize_t.
1481 (value_string): Likewise.
1482
19ca11c5
YQ
14832012-09-27 Yao Qi <yao@codesourcery.com>
1484
1485 PR breakpoints/13898
1486 * breakpoint.h (tracepoint_breakpoint_ops): Forward declaration.
1487 * mi/mi-cmd-break.c (mi_cmd_break_insert): Set breakpoint_ops
1488 per breakpoint type.
1489
92107356
PM
14902012-09-26 Pierre Muller <muller@ics.u-strasbg.fr>
1491
1492 * procfs.c: Add gdb_bfd header.
1493 * rs6000-nat.c: Likewise.
1494 * solib-pa64.c: Likewise.
1495 * spu-linux-nat.c: Likewise.
1496 * windows-nat.c: Likewise.
1497
9742094a
TT
14982012-09-26 Tom Tromey <tromey@redhat.com>
1499
1500 * f-lang.h (BLANK_COMMON_NAME_LOCAL): Remove.
1501
0971de02
TT
15022012-09-26 Tom Tromey <tromey@redhat.com>
1503
1504 * dwarf2read.c (mark_common_block_symbol_computed): New function.
1505 (read_common_block): Handle child DIEs with
1506 DW_AT_data_member_location.
1507 (new_symbol_full): Add special case for common blocks.
1508
4357ac6c
TT
15092012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1510 Tom Tromey <tromey@redhat.com>
1511
1512 * dwarf2read.c (read_common_block): Rewrite.
1513 (new_symbol_full): Handle DW_TAG_common_block.
1514 * f-lang.c (head_common_list, find_common_for_function):
1515 Remove.
1516 * f-lang.h (struct common_entry, struct saved_f77_common,
1517 SAVED_F77_COMMON, SAVED_F77_COMMON_PTR, COMMON_ENTRY,
1518 COMMON_ENTRY_PTR, head_common_list, find_common_for_function,
1519 BLANK_COMMON_NAME_LOCAL): Remove.
1520 (struct common_block): New.
1521 * f-valprint.c (list_all_visible_commons): Remove.
1522 (info_common_command_for_block): New function.
1523 (info_common_command): Use it.
1524 * stack.c (iterate_over_block_locals): Special case for
1525 COMMON_BLOCK_DOMAIN.
1526 * symtab.h (enum domain_enum_tag) <COMMON_BLOCK_DOMAIN>: New
1527 constant.
1528 (struct general_symbol_info) <value.common_block>: New field.
1529 (SYMBOL_VALUE_COMMON_BLOCK): New define.
1530
965f07a8
TT
15312012-09-26 Jan Kratochvil <jan.kratochvil@redhat.com>
1532 Tom Tromey <tromey@redhat.com>
1533
1534 * f-lang.c (allocate_saved_bf_node,
1535 allocate_saved_function_node, allocate_saved_f77_common_node,
1536 allocate_common_entry_node, tail_common_list, current_common,
1537 saved_bf_list, saved_bf_list_end, current_head_bf_list,
1538 tmp_bf_ptr, add_common_block, add_common_entry,
1539 find_first_common_named, patch_common_entries,
1540 patch_all_commons_by_name, ADD_BF_SYMNUM, clear_bf_list,
1541 global_remote_debug, get_bf_for_fcn, saved_function_list,
1542 saved_function_list_end, clear_function_list, struct saved_fcn,
1543 struct saved_bf_symnum, SAVED_FUNCTION, SAVED_FUNCTION_PTR,
1544 SAVED_BF, SAVED_BF_PTR): Remove.
1545 * f-lang.h (tail_common_list, current_common,
1546 UNINITIALIZED_SECNUM, COMMON_NEEDS_PATCHING,
1547 BLANK_COMMON_NAME_ORIGINAL, BLANK_COMMON_NAME_MF77,
1548 DEFAULT_UPPER_BOUND, DEFAULT_LOWER_BOUND, real_main_name,
1549 real_main_c_value): Remove.
1550 * f-valprint.c (there_is_a_visible_common_named): Remove.
1551
6f380991
AB
15522012-09-26 Andrew Burgess <aburgess@broadcom.com>
1553
1554 * breakpoint.c (update_global_location_list): Ignore previous
1555 duplicate status of a breakpoint when starting a new scan for
1556 duplicate breakpoints.
1557
9ead7ae4 15582012-09-26 Karthik Bhat <kv.bhat@samsung.com>
8b3d5494 1559 PR breakpoints/14419
2536b51c
YQ
1560 * arm-tdep.c (arm_skip_prologue): Extending producer check to
1561 support LLVM compiler.
9ead7ae4 1562
8f8a23a2
SP
15632012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1564
1565 * amd64-tdep.c (amd64_return_value): Use TYPE_LENGTH directly.
1566 * bfin-tdep.c (bfin_extract_return_value): Likewise.
1567 (bfin_store_return_value): Likewise.
1568 * cris-tdep.c (cris_store_return_value): Likewise.
1569 (cris_extract_return_value): Likewise.
1570 * h8300-tdep.c (h8300_extract_return_value): Likewise.
1571 * hppa-tdep.c (hppa64_return_value): Likewise.
1572 * lm32-tdep.c (lm32_store_return_value): Likewise.
1573 * microblaze-tdep.c (microblaze_store_return_value): Likewise.
1574 * spu-tdep.c (spu_value_from_register): Likewise.
1575 * vax-tdep.c (vax_return_value): Likewise.
1576
d7019589
SP
15772012-09-26 Siddhesh Poyarekar <siddhesh@redhat.com>
1578
1579 * breakpoint.c (invalidate_bp_value_on_memory_change): Expand
1580 parameter LEN to ssize_t.
1581
744a8059
SP
15822012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1583
1584 * ada-valprint.c (ada_val_print_1): Eliminate single-use
1585 variable LEN.
1586 * alpha-tdep.c (alpha_extract_return_value): Use TYPE_LENGTH
1587 directly.
1588 (alpha_store_return_value): Likewise.
1589 * amd64-tdep.c (amd64_classify_aggregate): Likewise.
1590 (amd64_push_arguments): Likewise.
1591 * ax-gdb.c (gen_trace_static_fields): Likewise.
1592 (gen_traced_pop): Likewise.
1593 * bfin-tdep.c (bfin_push_dummy_call): Likewise.
1594 * breakpoint.c (update_watchpoint): Likewise.
1595 * findcmd.c (parse_find_args): Use local variable for type
1596 instead of length.
1597 * findvar.c (default_read_var_value): Use TYPE_LENGTH directly.
1598 * h8300-tdep.c (h8300h_extract_return_value): Likewise.
1599 (h8300_store_return_value): Likewise.
1600 * i386-darwin-tdep.c (i386_darwin_push_dummy_call): Likewise.
1601 Use i386_darwin_arg_type_alignment directly.
1602 * infcall.c (call_function_by_hand): Use TYPE_LENGTH directly.
1603 * lm32-tdep.c (lm32_push_dummy_call): Likewise.
1604 * m68hc11-tdep.c (m68hc11_push_dummy_call): Likewise.
1605 (m68hc11_extract_return_value): Likewise.
1606 * mep-tdep.c (mep_push_dummy_call): Likewise.
1607 * printcmd.c (float_type_from_length): Likewise.
1608 * s390-tdep.c (s390_value_from_register): Likewise.
1609 * stack.c (read_frame_arg): Likewise.
1610 * tracepoint.c (encode_actions_1): Likewise.
1611 * valops.c (value_fetch_lazy): Use local variable for type
1612 instead of length. Use TYPE_LENGTH directly.
1613 * value.c (value_contents_equal): Use TYPE_LENGTH directly.
1614
a4b411d6
JB
16152012-09-25 Joel Brobecker <brobecker@adacore.com>
1616
1617 * symtab.c (skip_prologue_sal): Fix typo in comment.
1618
11dba07a
JB
16192012-09-25 Joel Brobecker <brobecker@adacore.com>
1620
1621 * linespec.c (create_sals_line_offset): Fix typo in comment.
1622
318102b9
SP
16232012-09-25 Siddhesh Poyarekar <siddhesh@redhat.com>
1624
1625 * c-typeprint.c (c_type_print_varspec_suffix): Remove cast and
1626 use plongest to print the array size.
1627
b4aa388a
SP
16282012-09-24 Siddhesh Poyarekar <siddhesh@redhat.com>
1629
1630 * m2-typeprint.c (m2_enum): Expand LASTVAL to LONGEST.
1631 * p-valprint.c (pascal_type_print_base): Likewise.
1632
84cebc4a
YQ
16332012-09-22 Yao Qi <yao@codesourcery.com>
1634
1635 * remote.c (remote_get_trace_status): Remove setting default
1636 values of fields of 'ts'.
1637
04e7407c
JK
16382012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1639
1640 Fix internal error on canonicalization of clang types.
1641 * cp-name-parser.y (operator): New comment at make_operator call for
1642 new, delete, new[] and delete[].
1643 (exp): Use "sizeof ". Add new comment at make_operator call.
1644
9bf4bce9
JK
16452012-09-21 Jan Kratochvil <jan.kratochvil@redhat.com>
1646
1647 Fix disassemble without parameters in tailcall frame.
1648 * cli/cli-cmds.c (disassemble_current_function): Use
1649 get_frame_address_in_block.
1650
1c5b7826
TT
16512012-09-21 Tom Tromey <tromey@redhat.com>
1652
1653 * c-typeprint.c (c_type_print_base) <TYPE_CODE_STRUCT,
1654 TYPE_CODE_UNION>: Unify, removing a goto.
1655
62a49610
TT
16562012-09-21 Tom Tromey <tromey@redhat.com>
1657
1658 * c-typeprint.c (cp_type_print_derivation_info): Fix comment.
1659
2603f7ee
AB
16602012-09-21 Andrew Burgess <aburgess@broadcom.com>
1661
1662 * findvar.c (read_frame_register_value): Mark the result value as
1663 optimized out if any of the input registers have been optimized out.
1664
810849a3
AS
16652012-09-21 Andreas Schwab <schwab@linux-m68k.org>
1666
1667 * python/python.c (finalize_python): Only define if HAVE_PYTHON.
1668
0953dec1
SP
16692012-09-21 Siddhesh Poyarekar <siddhesh@redhat.com>
1670
1671 * eval.c (evaluate_subexp_standard): Eliminate single-use
1672 variable LOWER.
1673
82a90ccf
YQ
16742012-09-21 Yao Qi <yao@codesourcery.com>
1675
1676 * mi/mi-interp.c: Declare mi_record_changed.
1677 (mi_interpreter_init): Call observer_attach_record_changed.
1678 (mi_record_changed): New.
1679 * record.c (record_open): Call observer_notify_record_changed.
1680 (cmd_record_stop): Call observer_notify_record_changed.
1681 * NEWS: Mention it.
1682
d7de8e3c
TT
16832012-09-20 Tom Tromey <tromey@redhat.com>
1684
1685 * NEWS: Update.
1686 * python/python.c (finalize_python): New function.
1687 (_initialize_python): Make a final cleanup.
1688
43c7c83d
DE
16892012-09-19 Doug Evans <dje@google.com>
1690
1691 * buildsym.h (param_symbols): Delete, unused.
1692 (context_stack): Delete member "params", unused.
1693 * buildsym.c (push_context): Update.
1694 * dwarf2read.c (read_func_scope): Update.
1695
aa9259cc
TS
16962012-09-19 Thomas Schwinge <thomas@codesourcery.com>
1697
a6521d9a
TS
1698 * sh-tdep.c (sh_register_convert_to_virtual)
1699 (sh_register_convert_to_raw): Add a gdbarch parameter. Update
1700 all callers. Just do a memcpy if not the little-endian case.
1701
f92589cb
TS
1702 * h8300-tdep.c (h8300_gdbarch_init): Invoke
1703 set_gdbarch_double_format and set_gdbarch_long_double_format.
1704 * m68hc11-tdep.c (m68hc11_gdbarch_init): Invoke
1705 set_gdbarch_double_format.
1706 * sh-tdep.c (sh_gdbarch_init): Likewise.
1707
aa9259cc
TS
1708 * NEWS: Document the removal of SH's 'regs' command.
1709 * sh-tdep.c (_initialize_sh_tdep): Remove the deprecated 'regs'
1710 command.
1711
c1d780c2
SDJ
17122012-09-18 Sergio Durigan Junior <sergiodj@redhat.com>
1713
1714 * infcmd.c (_initialize_infcmd): Register `j' as an alias for
1715 `jump'.
1716
4ae24af0
JB
17172012-09-18 Joel Brobecker <brobecker@adacore.com>
1718
1719 * linespec.c (iterate_over_all_matching_symtabs): Use the correct
1720 language when iterating over symbols.
1721
bb25a15c
YQ
17222012-09-18 Yao Qi <yao@codesourcery.com>
1723
1724 * mi/mi-interp.c: Declare mi_tsv_created and mi_tsv_deleted.
1725 (mi_interpreter_init): Call observer_attach_tsv_created and
1726 observer_attach_tsv_deleted.
1727 (mi_tsv_created, mi_tsv_deleted): New.
1728 * tracepoint.c (delete_trace_state_variable): Call
1729 observer_notify_tsv_deleted.
1730 (trace_variable_command): Call observer_notify_tsv_created.
1731 (delete_trace_variable_command): Call
1732 observer_notify_tsv_deleted.
1733 (create_tsv_from_upload): Call observer_notify_tsv_created.
1734 * NEWS: Mention it.
1735
201b4506
YQ
17362012-09-18 Yao Qi <yao@codesourcery.com>
1737
1738 * tracepoint.c (tfind_1): Call observer_notify_traceframe_changed
1739 if traceframe changed.
1740 * mi/mi-cmds.c (mi_cmd mi_cmds): Adjust for command
1741 "trace-find".
1742 * mi/mi-interp.c: Declare 'mi_traceframe_changed'.
1743 (mi_interpreter_init): Hook mi_traceframe_changed to observer
1744 'traceframe_changed'.
1745 (mi_traceframe_changed): New.
1746 * mi/mi-main.h (struct mi_suppress_notification) <traceframe>:
1747 New field.
1748 * NEWS: Mention the new MI notification.
1749
eaeb12db
MW
17502012-09-17 Mike Wrighton <wrighton@codesourcery.com>
1751
1752 * MAINTAINERS (Write After Approval): Add "Mike Wrighton".
1753
6e3c039e
JK
17542012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1755
1756 * common/linux-ptrace.c: Change __i386__ to __i386__ || __x86_64__.
1757 (linux_ptrace_test_ret_to_nx): Extend comment for x86_64. Change
1758 __i386__ to __i386__ || __x86_64__. Extend code also for __x86_64__.
1759 Extend code also for PaX support. Convert all gdb_assert to warning
1760 calls.
1761
9a950c7c
JK
17622012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1763
1764 Implement auto-load user conveniences suggested by Doug Evans.
1765 * auto-load.c: Include top.h.
1766 (file_is_auto_load_safe): New variable advice_printed. Print advice.
1767 (_initialize_auto_load): New variable scripts_directory_help. Mention
1768 GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load
1769 scripts-directory. Document in online help one can use also files for
1770 set auto-load safe-path.
1771 * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ...
1772 * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
1773
deec9a9d
SP
17742012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1775
1776 * tic6x-tdep.c (tic6x_push_dummy_call): Remove unused definition
1777 of LEN.
1778
354ecfd5
SP
17792012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1780
1781 * m2-valprint.c (m2_print_array_contents): Eliminate variable
1782 ELTLEN and use TYPE_LENGTH directly.
1783 (m2_val_print): Likewise.
1784 * m68k-tdep.c (m68k_svr4_extract_return_value): Eliminate
1785 variable LEN and use TYPE_LENGTH directly.
1786 (m68k_svr4_store_return_value): Likewise.
1787 * mips-tdep.c (mips_o32_push_dummy_call): Eliminate variable
1788 ARGLEN and use TYPE_LENGTH directly.
1789 (mips_o64_push_dummy_call): Likewise.
1790 * s390-tdep (s390_function_arg_pass_by_reference): Eliminate
1791 variable LENGTH and use TYPE_LENGTH directly.
1792 (s390_function_arg_float): Likewise.
1793 (s390_function_arg_integer): Likewise.
1794 (s390_push_dummy_call): Likewise.
1795 (s390_return_value_convention): Likewise.
1796 * spu-tdep.c (spu_push_dummy_call): Eliminate LEN and use
1797 TYPE_LENGTH directly.
1798
6fc1c773
YQ
17992012-09-17 Yao Qi <yao@codesourcery.com>
1800
1801 * cli/cli-decode.c (add_setshow_zuinteger_unlimited_cmd): New.
1802 Update comment to add_setshow_integer_cmd.
1803 * cli/cli-setshow.c (do_set_command): Handle case
1804 'var_zuinteger_unlimited'.
1805 (do_show_command): Likewise.
1806 * cli/cli-cmds.c (init_cmds): Call add_setshow_zuinteger_unlimited_cmd
1807 for command 'remotetimeout'.
1808 * command.h (enum var_types): New zuinteger_unlimited. Update comment
1809 to var_integer.
1810 * source.c (_initialize_source): Call add_setshow_zuinteger_unlimited_cmd
1811 for command 'set listsize'.
1812
6acef6cd
SP
18132012-09-17 Siddhesh Poyarekar <siddhesh@redhat.com>
1814
1815 * infrun.c (restore_infcall_suspend_state): Eliminate single-use
1816 variable LEN.
1817
1ab3b62c
JK
18182012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1819
1820 PR 14119
1821 * frame.c (skip_inlined_frames): Skip also TAILCALL_FRAME frames.
1822 (frame_pop): Drop also TAILCALL_FRAME frames.
1823 * infcmd.c (finish_command): Ignore also TAILCALL_FRAME frames.
1824
acf9414f
JK
18252012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1826 Pedro Alves <palves@redhat.com>
1827
1828 PR 14548
1829 * infrun.c (handle_inferior_event): Do not reverse-continue back to the
1830 function start if we are already at function start. Both for
1831 reverse-next and for reverse-step into function without line number
1832 info.
1833
193facb3
JK
18342012-09-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1835
1836 Code cleanup - rename 'inline' depth to 'artificial' depth.
1837 * breakpoint.c (set_momentary_breakpoint): Rename at a caller to
1838 frame_id_artificial_p, extend the comment.
1839 * dwarf2-frame-tailcall.c (tailcall_frame_this_id): Rename at a user.
1840 * frame.c (fprint_frame_id): Rename at a user, change debug output
1841 text to "artificial=".
1842 (skip_inlined_frames): Rename to ...
1843 (skip_artificial_frames): ... here. Extend the comment.
1844 (get_stack_frame_id, frame_unwind_caller_id): Rename at a caller.
1845 (frame_id_inlined_p): Rename to ...
1846 (frame_id_artificial_p): ... here. Rename at a user.
1847 (frame_id_eq, frame_id_inner, frame_unwind_caller_pc)
1848 (frame_unwind_caller_pc_if_available, frame_unwind_caller_arch): Rename
1849 at a user.
1850 * frame.h (struct frame_id): Rename inline_depth to artificial_depth.
1851 Extend the comment.
1852 (frame_id_inlined_p): Rename to ...
1853 (frame_id_artificial_p): ... here.
1854 * inline-frame.c (inline_frame_this_id): Rename at a user.
1855
42056501
AB
18562012-09-14 Andrew Burgess <aburgess@broadcom.com>
1857
1858 * c-typeprint.c (c_type_print_varspec_suffix): Display the size of
1859 vector variables using vector_size syntax rather than array
1860 syntax.
1861
84c47588
SP
18622012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1863
1864 * valarith.c (value_concat): Replace unsafe ALLOCA with
1865 XMALLOC/XFREE.
1866
f4045bcb
PA
18672012-09-14 Pedro Alves <palves@redhat.com>
1868
1869 * gdb.1 (SEE ALSO): Expand pointer to GDB's Texinfo manual.
1870
63b46266
YPK
18712012-09-14 Khoo Yit Phang <khooyp@cs.umd.edu>
1872
1873 Point contrib/cc-with-tweaks.sh to the build-local data-directory.
1874 * contrib/cc-with-tweaks.sh (GDB): Add -data-directory
1875 data-directory as appropriate.
1876
ddd7a8e7
SP
18772012-09-14 Siddhesh Poyarekar <siddhesh@redhat.com>
1878
1879 * printcmd.c (ui_printf): Eliminate single-use variable
1880 PARAM_LEN.
1881
d649a38e
YQ
18822012-09-14 Yao Qi <yao@codesourcery.com>
1883 Pedro Alves <palves@redhat.com>
1884
1885 * valops.c (value_assign): Move observer_notify_target_changed
1886 below to replace reinit_frame_cache.
1887
b9516fa1
YPK
18882012-09-13 Khoo Yit Phang <khooyp@cs.umd.edu>
1889
1890 Refactor Python "gdb" module into a proper Python package, by
1891 introducing a new "_gdb" module for code implemented in C, and
1892 using reload/__import__ instead of exec.
1893 * python/lib/gdb/__init__.py: Import * from _gdb.
1894 (GdbOutputFile, sys.stdout, GdbOutputErrorFile, sys.stderr,
1895 prompt_hook, sys.argv): Moved from finish_python_initialization.
1896 (pretty_printers, PYTHONDIR): Moved from _initialize_python.
1897 (packages, auto_load_packages): New list and function replacing
1898 module_dict and auto-loading code, using __file__ instead of
1899 gdb.PYTHONDIR and reload/__import__ instead of exec.
1900 (GdbSetPythonDirectory): Replacing function of the same name
1901 from finish_python_initialization, using reload/__import__ instead
1902 of exec, as well as call auto_load_packages.
1903 * python/py-prettyprint.c (find_pretty_printer_from_gdb): Check
1904 gdb_python_module and not gdb_module.
1905 * python/python-internal.h (gdb_python_module): Declare.
1906 * python/python.c (gdb_python_module): New global.
1907 (before_prompt_hook): Check gdb_python_module and not gdb_module.
1908 (_initialize_python): Rename gdb module to _gdb.
1909 Move gdb.PYTHONDIR and gdb.pretty_printer to lib/gdb/__init__.py.
1910 (finish_python_initialization): Move Python code to
1911 lib/gdb/__init__.py; instead, set up sys.path and import gdb into
1912 __main__.
1913
aa0fbdd8
PA
19142012-09-13 Pedro Alves <palves@redhat.com>
1915
1916 * Makefile.in (COMMON_OBS): Add registry.o.
1917 * registry.c: New file.
1918 * registry.h (struct registry_container): Declare.
1919 (registry_data_callback): New typedef.
1920 (struct registry_data, struct registry_data_registration, struct
1921 registry_data_registry): New type.
1922 (register_data_with_cleanup, registry_alloc_data)
1923 (registry_callback_adaptor, registry_clear_data)
1924 (registry_container_free_data, registry_set_data, registry_data):
1925 Declare.
1926 (DEFINE_REGISTRY): Refactor structures and functions as shims over
1927 the new common structures and functions.
1928 (DECLARE_REGISTRY): Declare struct TAG ## _data. Use the tagged
1929 callback typedefs.
1930
42b5c53d
MW
19312012-09-12 Mike Wrighton <wrighton@codesourcery.com>
1932
1933 * remote.c (remote_insert_hw_breakpoint): Throw exception if
1934 there is an error inserting hardware breakpoints and use the
1935 error message from the target.
1936
1937 * breakpoint.c (insert_bp_location, insert_breakpoint_locations):
1938 Catch this exception and print the error message contained within. Do not
1939 print the default hardware error breakpoint message in this case.
1940
a1b64ce1
DE
19412012-09-12 Doug Evans <dje@google.com>
1942
1943 * dwarf2read.c (dwarf2_read_addr_index): Fix handling the case where
1944 cu == NULL.
1945
83a788b8
DE
19462012-09-11 Doug Evans <dje@google.com>
1947
1948 * dwarf2read.c (dw2_do_expand_symtabs_matching): Don't examine
1949 .gdb_index symbol attributes if there are none.
1950
d9eaeb59
JB
19512012-09-11 Joel Brobecker <brobecker@adacore.com>
1952
1953 * symtab.h (struct minimal_symbol) [has_size]: New field.
1954 (MSYMBOL_SIZE): Adjust to forbid macro from being used as lvalue.
1955 (SET_MSYMBOL_SIZE, MSYMBOL_HAS_SIZE): New macros.
1956 * printcmd.c (build_address_symbolic): Only filter out zero-sized
1957 minimal symbols if the symbol's size is actually known.
1958 * minsyms.c (prim_record_minimal_symbol_full): Adjust setting
1959 of msymbol's size field. Add comment.
1960 * elfread.c (elf_symtab_read, elf_rel_plt_read): Use
1961 SET_MSYMBOL_SIZE to set the minimal symbol size.
1962
a83e9154
JB
19632012-09-11 Joel Brobecker <brobecker@adacore.com>
1964
1965 * minsyms.c (install_minimal_symbols): Use memset to fill entire
1966 minimal_symbol struct object, rather than setting some of its
1967 fields one by one.
1968
350b1b26
AB
19692012-09-11 Andrew Burgess <aburgess@broadcom.com>
1970
1971 * c-typeprint.c (c_type_print_varspec_prefix): Pass through the
1972 passed_a_ptr flag when displaying typedef types.
1973
2fa15f23
JB
19742012-09-10 Joel Brobecker <brobecker@adacore.com>
1975
1976 * ada-lang.c (coerce_unspec_val_to_type): Make sure that
1977 the optimized_out flag is preserved.
1978
5152ff90
AG
19792012-09-10 Anthony Green <green@moxielogic.com>
1980
1981 * moxie-tdep.c (moxie_analyze_prologue): Update for function
1982 prologue changes in GCC.
1983
5b4f6e25
KS
19842012-09-10 Keith Seitz <keiths@redhat.com>
1985
1986 PR gdb/13483
1987 * gdbtypes.h (BOOL_PTR_CONVERSION_BADNESS): Rename to ...
1988 (BOOL_CONVERSION_BADNESS): ... this.
1989 * gdbtypes.c (BOOL_PTR_CONVERSION_BADNESS): Likewise.
1990 (rank_one_type): Allow all boolean conversions
1991 permitted by the standard.
1992
f1070426
TT
19932012-09-06 Tom Tromey <tromey@redhat.com>
1994
1995 * python/py-newobjfileevent.c (create_new_objfile_event_object):
1996 Don't decref py_objfile.
1997
a8db4212
YPK
19982012-09-02 Khoo Yit Phang <khooyp@cs.umd.edu>
1999
2000 Do not enable -lmcheck by default when Python is enabled with
2001 threading support.
2002 * configure.ac: (python_has_threads) New variable, by testing
2003 if WITH_THREAD is defined in Python.h.
2004 Move --enable-lmcheck after --with-python.
2005 Do not enable -lmcheck by default if python_has_threads=yes.
2006 Warn if --enable-lmcheck and python_has_threads=yes.
2007 * configure: Regenerate.
2008
648beb2b
YQ
20092012-08-31 Yao Qi <yao@codesourcery.com>
2010
2011 * mi/mi-cmds.c (mi_cmds): New macros DEF_MI_CMD_CLI
2012 DEF_MI_CMD_MI DEF_MI_CMD_CLI_1 and DEF_MI_CMD_CLI_1.
2013 Update some commands.
2014 * mi/mi-cmds.h (struct mi_cmd) <suppress_notification>: New field.
2015 * mi/mi-main.c (mi_cmd_execute): Set '*parse->cmd->suppress_notification'
2016 to 1.
2017
ef07a9f7
YQ
20182012-08-31 Yao Qi <yao@codesourcery.com>
2019
2020 * mi/mi-cmds.c (mi_cmds): Add 'static'.
2021
fda395cf
YPK
20222012-08-30 Khoo Yit Phang <khooyp@cs.umd.edu>
2023
2024 * MAINTAINERS (Write After Approval): Add "Khoo Yit Phang".
2025
8efd8e78
DE
20262012-08-29 Doug Evans <dje@google.com>
2027
2028 * main.c (print_gdb_help): Remove reference to
2029 --use-deprecated-index-sections.
2030
883b9c6c
YQ
20312012-08-28 Yao Qi <yao@codesourcery.com>
2032
2033 * cli/cli-cmds.c (max_user_call_depth): Add 'unsigned'.
2034 (init_cmds): Call add_setshow_uinteger_cmd for command
2035 'max-user-call-depth'.
2036 * cli/cli-script.c (execute_user_command): Add 'unsigned' to the
2037 declaration of 'max_user_call_depth'.
2038 * frame.c (backtrace_limit): Add 'unsigned'.
2039 (_initialize_frame): Call add_setshow_uinteger_cmd for command
2040 'limit'.
2041 * remote.c (remoteaddresssize): Add 'unsigned'.
2042 (remote_address_masked): Change local var 'address_size' to
2043 'unsigned'.
2044 (_initialize_remote): Call add_setshow_uinteger_cmd for
2045 'remoteaddresssize'.
2046 * top.c (history_size): Add 'unsigned'.
2047 (show_commands): Change local variables to 'unsigned'.
2048 (set_history_size_command): Don't check history_size is negative.
2049 Adjust the condition to call unstifle_history and set history_size
2050 to UNIT_MAX.
2051
1292279a
PA
20522012-08-28 Pedro Alves <palves@redhat.com>
2053
2054 PR gdb/14428
2055
2056 * infcmd.c (default_print_one_register_info): New, factored out
2057 from default_print_registers_info.
2058 (default_print_registers_info): Use it. Mark value unavailable if
2059 necessary.
2060 (registers_info): Print user registers with
2061 default_print_one_register_info.
2062
f629cd75
L
20632010-08-27 H.J. Lu <hongjiu.lu@intel.com>
2064
2065 PR tui/14486
2066 * tui/tui-source.c (tui_source_is_displayed): Check if TUI_SRC_WIN
2067 is not NULL before referencing it.
2068
1c8cdcb1
JK
20692012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2070
2071 * breakpoint.c (parse_breakpoint_sals) <(*address) == NULL>: New
2072 variable pc. Call find_pc_line instead of find_pc_overlay, restore
2073 original PC for it.
2074
e9687799
JK
20752012-08-27 Eli Zaretskii <eliz@gnu.org>
2076 Jan Kratochvil <jan.kratochvil@redhat.com>
2077
2078 * auto-load.c (auto_load_objfile_script): Rename to ...
2079 (auto_load_objfile_script_1): ... here, change variable realname to
2080 parameter realname, document it, add return value, add variable retval.
2081 (auto_load_objfile_script): New function.
2082
7afa1642
JK
20832012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2084
2085 * cli/cli-decode.c (print_doc_line): Keep skipping '.' and ',' not
2086 followed by a whitespace.
2087
dc7650b8
JK
20882012-08-27 Jan Kratochvil <jan.kratochvil@redhat.com>
2089
28e66c70 2090 PR gdb/14494.
dc7650b8
JK
2091 * dwarf2read.c (dwarf2_locate_sections): Move variable aflag here.
2092 Move the SEC_HAS_CONTENTS check here - for any NAMES use.
2093 (dwarf2_locate_sections) <eh_frame>: Move the variable and check from
2094 here.
2095
1591a1e8
PA
20962012-08-27 Wei-cheng Wang <cole945@gmail.com>
2097
2098 * memattr.c (create_mem_region): Fix memory region overlapping
2099 checking.
2100
ecfb0d68
SP
21012012-08-24 Siddhesh Poyarekar <siddhesh@redhat.com>
2102
2103 * h8300-tdep.c (h8300_push_dummy_call): Replace unsafe alloca
2104 with xmalloc/cleanup.
2105 * mt-tdep.c (mt_push_dummy_call): Likewise.
2106 * tilegx-tdep.c (tilegx_push_dummy_call): Likewise.
2107 * xstormy16-tdep.c (xstormy16_push_dummy_call): Likewise.
2108
8c56c1b9
YQ
21092012-08-24 Yao Qi <yao@codesourcery.com>
2110
2111 * jv-exp.y (push_expression_name): Add "." at the end of error
2112 message.
2113
e3480f4a
YPK
21142012-08-23 Khoo Yit Phang <khooyp@cs.umd.edu>
2115
2116 Document how to return from "python-interactive" to GDB.
e3480f4a
YPK
2117 * python/python.c (_initialize_python): Update documentation.
2118
dfbd5e7b
PA
21192012-08-23 Pedro Alves <palves@redhat.com>
2120
2121 * infrun.c (_initialize_infrun) <handle command help text>:
2122 Mention that multiple signals are supported.
2123
2edda2ff
PA
21242012-08-23 Pedro Alves <palves@redhat.com>
2125
2126 * infcmd.c (_initialize_infcmd) <signal command>: Fix typo in help
2127 string.
2128
8d735b87
YQ
21292012-08-23 Yao Qi <yao@codesourcery.com>
2130
2131 * tracepoint.c (disconnect_tracing): Call set_tracepoint_num.
2132 (tfind_1): Don't call registers_changed, set_traceframe_num,
2133 and clear_traceframe_info.
2134 Call set_current_traceframe.
2135 (set_current_traceframe): call set_traceframe_num.
2136
c5d9b215
SDJ
21372012-08-22 Sergio Durigan Junior <sergiodj@redhat.com>
2138
2139 * remote-sim.c (_initialize_remote_sim): Pass NULL argument to
2140 `register_inferior_data_with_cleanup', fixing regression on PowerPC64.
2141
037bbc8e
YPK
21422012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2143
2144 Enable readline in Python in a GDB-specific way and block the
2145 standard Python readline module to prevent conflicts with GDB.
2146 * Makefile.in (SUBDIR_PYTHON_OBS): Add py-gdb-readline.o.
2147 (SUBDIR_PYTHON_SRCS): Add python/py-gdb-readline.c.
2148 (py-gdb-readline.o): Add rule to compile python/py-gdb-readline.c.
2149 * python/py-gdb-readline.c: New file.
2150 * python/python-internal.h (gdbpy_initialize_gdb_readline): New
2151 prototype.
2152 * python/python.c (_initialize_python): Call
2153 gdbpy_initialize_gdb_readline.
2154
406b1477
KS
21552012-08-22 Keith Seitz <keiths@redhat.com>
2156
2157 * defs.h: Include build-gnulib/config.h
2158
6ca1b147
JM
21592012-08-22 Joseph Myers <joseph@codesourcery.com>
2160
2161 * arm-tdep.c (thumb_get_next_pc_raw): Mask off low bits for bx pc
2162 and blx pc.
2163
8315665e
YPK
21642012-08-22 Khoo Yit Phang <khooyp@cs.umd.edu>
2165
2166 Add a new "python-interactive" command that starts a standard
2167 Python interactive prompt with "pi" as alias, and add "py" as
2168 an alias to "python".
2169 * NEWS: Mention the new commands.
8315665e
YPK
2170 * python/python.c (eval_python_command): New function.
2171 (python_interactive_command): For "python-interactive" with
2172 arguments, call eval_python_command. For "python-interactive"
2173 without arguments, call PyRun_InteractiveLoop.
2174 (_initialize_python): Add "python-interactive" command with
2175 "pi" as alias, and add "py" as an alias to "python".
2176
522002f9
TT
21772012-08-22 Tom Tromey <tromey@redhat.com>
2178
2179 * defs.h (quit_flag): Don't declare.
2180 (clear_quit_flag, check_quit_flag, set_quit_flag): Declare.
2181 (QUIT): Use new functions.
2182 * event-top.c (command_handler): Use clear_quit_flag.
2183 (handle_sigint): Use set_quit_flag.
2184 (async_request_quit): Use check_quit_flag. Don't check
2185 immediate_quit.
2186 * exceptions.c (throw_exception): Use clear_quit_flag.
2187 * main.c (captured_main): Use clear_quit_flag.
2188 * python/python.c (clear_quit_flag, set_quit_flag)
2189 (check_quit_flag): New functions.
2190 * remote-sim.c (gdb_os_poll_quit): Use check_quit_flag,
2191 clear_quit_flag.
2192 * remote.c (remote_wait_as): Use check_quit_flag,
2193 clear_quit_flag.
2194 (remote_start_remote): Call QUIT.
2195 * symfile.c (load_progress): Use check_quit_flag.
2196 * top.c (command_loop): Use clear_quit_flag.
2197 (command_line_input): Call QUIT.
2198 * utils.c (quit_flag): Conditionally define.
2199 (clear_quit_flag, check_quit_flag, set_quit_flag): New
2200 functions.
2201 (prompt_for_continue): Call QUIT. Use quit, not
2202 async_request_quit.
2203 * remote-mips.c (mips_expect_timeout): Call QUIT.
2204 * monitor.c (monitor_expect): Call QUIT.
2205
b583003e
TT
22062012-08-22 Tom Tromey <tromey@redhat.com>
2207
2208 * event-top.c (sigwinch_token, handle_sigwinch): Remove.
2209 (async_init_signals): Update.
2210 * utils.c (init_page_info): Don't use SIGWINCH_HANDLER.
2211 (SIGWINCH_HANDLER_BODY): Remove.
2212
e1507e95
TT
22132012-08-22 Tom Tromey <tromey@redhat.com>
2214
2215 * jit.c (jit_object_close_impl): Don't malloc the objfile
2216 name.
2217 * objfiles.c (allocate_objfile): Don't malloc the objfile
2218 name.
2219 (free_objfile): Don't free the objfile name.
2220 * objfiles.h (struct objfile) <name>: Update comment.
2221 * symfile.c (reread_symbols): Fix reference counting. Don't
2222 malloc objfile name.
2223
1c00ec6b
TT
22242012-08-22 Tom Tromey <tromey@redhat.com>
2225
2226 * windows-nat.c (windows_make_so): Use gdb_bfd_open.
2227 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_open.
2228 (symfile_bfd_open): Likewise.
2229 (generic_load): Likewise.
2230 * solib.c (solib_bfd_fopen): Use gdb_bfd_open.
2231 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
2232 gdb_bfd_open.
2233 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
2234 Use gdb_bfd_open.
2235 * rs6000-nat.c (add_vmap): Use gdb_bfd_open.
2236 * remote-mips.c (mips_load_srec): Use gdb_bfd_open.
2237 (pmon_load_fast): Likewise.
2238 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_open.
2239 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_open.
2240 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_open.
2241 (macho_check_dsym): Likewise.
2242 * m32r-rom.c (m32r_load): Use gdb_bfd_open.
2243 (m32r_upload_command): Likewise.
2244 * gdb_bfd.h (gdb_bfd_cache): Declare.
2245 * gdb_bfd.c (struct gdb_bfd_data): New.
2246 (gdb_bfd_cache): New global.
2247 (struct gdb_bfd_cache_search): New.
2248 (hash_bfd): New function.
2249 (eq_bfd): Likewise.
2250 (gdb_bfd_open): Likewise.
2251 (gdb_bfd_ref): Allocate a gdb_bfd_data and attach to the BFD.
2252 (gdb_bfd_unref): Remove closed BFD from cache. Update for
2253 gdb_bfd_data.
2254 * exec.c (exec_file_attach): Use gdb_bfd_open.
2255 * dsrec.c (load_srec): Use gdb_bfd_open.
2256
6532ff36
TT
22572012-08-22 Tom Tromey <tromey@redhat.com>
2258
2259 * dwarf2read.c (macro_start_file): Update.
2260 * objfiles.c (get_objfile_bfd_data): Initialize macro_cache.
2261 (free_objfile_per_bfd_storage): Destroy macro_cache.
2262 (allocate_objfile, free_objfile): Update.
2263 * objfiles.h (struct objfile_per_bfd_storage) <macro_cache>:
2264 New field.
2265 (struct objfile) <macro_cache>: Remove.
2266 * symfile.c (reread_symbols): Update.
2267 * symmisc.c (print_symbol_bcache_statistics): Update.
2268 (print_objfile_statistics): Update.
2269
706e3705
TT
22702012-08-22 Tom Tromey <tromey@redhat.com>
2271
2272 * elfread.c (elf_symtab_read): Update.
2273 * objfiles.c (objfiles_bfd_data): New global.
2274 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
2275 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
2276 (allocate_objfile, free_objfile): Update.
2277 (_initialize_objfiles): Initialize objfiles_bfd_data.
2278 * objfiles.h (struct objfile_per_bfd_storage): New.
2279 (struct objfile) <per_bfd>: New field.
2280 <filename_cache>: Remove.
2281 (set_objfile_per_bfd): Declare.
2282 * symfile.c (reread_symbols): Update. Call
2283 set_objfile_per_bfd.
2284 (allocate_symtab): Update.
2285 * symmisc.c (print_symbol_bcache_statistics): Update.
2286 (print_objfile_statistics): Print the size of the BFD obstack.
2287
e992eda4
TT
22882012-08-22 Tom Tromey <tromey@redhat.com>
2289
2290 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
2291 * gdb_bfd.c: Use DEFINE_REGISTRY.
2292 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
2293 (gdb_bfd_ref): Call bfd_alloc_data.
2294 (gdb_bfd_unref): Call bfd_free_data.
2295
6b81941e
TT
22962012-08-22 Tom Tromey <tromey@redhat.com>
2297
2298 * registry.h (struct registry_fields): New.
2299 (REGISTRY_FIELDS): Redefine.
2300 (REGISTRY_ACCESS_FIELD): New macro.
2301 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
2302 functions.
2303
8e260fc0
TT
23042012-08-22 Tom Tromey <tromey@redhat.com>
2305
2306 * auto-load.c (_initialize_auto_load): Update.
2307 * solib-svr4.c (_initialize_svr4_solib): Update
2308 * solib-dsbt.c (_initialize_dsbt_solib): Update.
2309 * solib-darwin.c (_initialize_darwin_solib): Update.
2310 * registry.h: New file.
2311 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
2312 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
2313 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
2314 (register_program_space_data_with_cleanup)
2315 (register_program_space_data, program_space_alloc_data)
2316 (clear_program_space_data, set_program_space_data)
2317 (program_space_data): Don't declare.
2318 * progspace.c: Use DEFINE_REGISTRY.
2319 (struct program_space_data, struct
2320 program_space_data_registration, struct
2321 program_space_data_registry, program_space_data_registry)
2322 (register_program_space_data_with_cleanup)
2323 (register_program_space_data, program_space_alloc_data)
2324 (program_space_free_data, clear_program_space_data)
2325 (set_program_space_data, program_space_data): Remove.
2326 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
2327 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
2328 (register_objfile_data_with_cleanup, register_objfile_data)
2329 (clear_objfile_data, set_objfile_data, objfile_data): Don't
2330 declare.
2331 * objfiles.c: Use DEFINE_REGISTRY.
2332 (struct objfile_data, struct objfile_data_registration, struct
2333 objfile_data_registry, objfile_data_registry)
2334 (register_objfile_data_with_cleanup, register_objfile_data)
2335 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
2336 (set_objfile_data, objfile_data): Remove.
2337 (_initialize_objfiles): Update.
2338 * jit.c (_initialize_jit): Update.
2339 * inflow.c (_initialize_inflow): Update.
2340 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
2341 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
2342 (register_inferior_data_with_cleanup, register_inferior_data)
2343 (clear_inferior_data, set_inferior_data, inferior_data): Don't
2344 declare.
2345 * inferior.c: Use DEFINE_REGISTRY.
2346 (struct inferior_data, struct inferior_data_registration, struct
2347 inferior_data_registry, inferior_data_registry)
2348 (register_inferior_data_with_cleanup, register_inferior_data)
2349 (inferior_alloc_data, inferior_free_data clear_inferior_data)
2350 (set_inferior_data, inferior_data): Remove.
2351 * auxv.c (_initialize_auxv): Update.
2352 * ada-lang.c (_initialize_ada_language): Update.
2353 * breakpoint.c (_initialize_breakpoint): Update.
2354 * i386-nat.c (i386_use_watchpoints): Update.
2355
ed9eebaf
TT
23562012-08-22 Tom Tromey <tromey@redhat.com>
2357
2358 * exec.c (exec_close, exec_file_attach): Update.
2359 (add_to_section_table): Initialize 'key' field.
2360 (add_target_sections, remove_target_sections): Add 'key' argument.
2361 * exec.h (add_target_sections, remove_target_sections): Add
2362 'key' argument.
2363 * solib.c (solib_map_sections, update_solib_list, clear_solib)
2364 (reload_shared_libraries_1): Update.
2365 * target.h (struct target_section) <key>: New field.
2366
2f2e97fa
TT
23672012-08-22 Tom Tromey <tromey@redhat.com>
2368
2369 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
2370
b3dbbd6f
PM
23712012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
2372
2373 * symfile.c (allocate_symtab): Use host_address_to_string
2374 function instead of cast of pointer to long which is not
2375 compatible with x86_64-w64-mingw32 build.
2376
f94363d7
AP
23772012-08-19 Andrew Pinski <apinski@cavium.com>
2378
2379 * mips-tdep.c (is_octeon): New function.
2380 (is_octeon_bbit_op): New function.
2381 (mips32_next_pc): Handle Octeon's bbit instructions.
2382 (mips32_instruction_has_delay_slot): Likewise.
2383
78a59c2f
AP
23842012-08-19 Andrew Pinski <apinski@cavium.com>
2385
2386 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
2387 before the function.
2388
4f5bcb50
AP
23892012-08-19 Andrew Pinski <apinski@cavium.com>
2390
2391 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
2392
e5afdbd7
KS
23932012-08-19 Keith Seitz <keiths@redhat.com>
2394
2395 PR c++/14365
2396 * c-typeprint.c (c_type_print_varspec_prefix): Pass
2397 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
2398
13c9750e
EZ
23992012-08-18 Eli Zaretskii <eliz@gnu.org>
2400
2401 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
2402 The typo broke "make TAGS".
2403
db761810 24042012-08-17 Joel Brobecker <brobecker@adacore.com>
2405
2406 GDB 7.5 released.
2407
a451cb65
KS
24082012-08-17 Keith Seitz <keiths@redhat.com>
2409
2410 PR c++/13356
2411 * gdbtypes.c (strict_type_checking): New variable.
2412 (show_strict_type_checking): New function.
2413 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
2414 if strict type checking is disabled.
2415 (_initialize_gdbtypes): Add "check type" subcommand.
2416 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
2417
24182012-08-17 Keith Seitz <keiths@redhat.com>
2419
2420 * language.h (type_mode): Remove.
2421 (type_check): Remove.
2422 (struct language_defn): Remove la_type_check.
2423 (STRICT_TYPE): Remove unused macro.
2424 (type_error): Remove.
2425 * language.c (set_type_range_case): Renamed to ...
2426 (set_range_case): ... this. Update all callers.
2427 Remove type_mode/type_check.
2428 (type_mode): Remove.
2429 (type_check): Remove.
2430 (show_type_command): Remove.
2431 (set_type_command): Remove.
2432 (language_info): Remove type checking output.
2433 (type_error): Remove unused function.
2434 (range_error): Update comment.
2435 (unknown_language_defn): Remove la_type_check.
2436 (auto_language_defn): Likewise.
2437 (local_language_defn): Likewise.
2438 (_initialize_language): Remove "check type" subcommand.
2439 * ada-lang.c (ada_language_defn): Remove la_type_check.
2440 * c-lang.c (c_language_defn): Likewise.
2441 (cplus_language_defn): Likewise.
2442 (asm_language_defn): Likewise.
2443 (minimal_language_defn): Likewise.
2444 * d-lang.c (d_language_defn): Likewise.
2445 * f-lang.c (f_language_defn): Likewise.
2446 * go-lang.c (go_language_defn): Likewise.
2447 * jv-lang.c (java_language_defn): Likewise.
2448 * m2-lang.c (m2_language_defn): Likewise.
2449 * objc-lang.c (objc_language_defn): Likewise.
2450 * opencl-lang.c (opencl_language_defn): Likewise.
2451 * p-lang.c (pascal_language_defn): Likewise.
2452
dbf6a605
MF
24532012-08-16 Mike Frysinger <vapier@gentoo.org>
2454
2455 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
2456
973e3cf7
JB
24572012-08-16 Joel Brobecker <brobecker@adacore.com>
2458
2459 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
2460 New function.
2461 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
2462 using the regache. Use ia64_hpux_get_register_from_save_state_t
2463 to access the bsp and bspstore registers if not.
2464
d80ee84f
JB
24652012-08-16 Joel Brobecker <brobecker@adacore.com>
2466
2467 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
2468 * breakpoint.c (detach_breakpoints): Change pid parameter into
2469 a ptid. Adjust code accordingly.
2470 * infrun.c (handle_inferior_event): Delete variable child_pid.
2471 Update call to detach_breakpoints to pass the child ptid for
2472 fork events.
2473 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
2474 assert that inferior_ptid's lwp is zero.
2475 (linux_handle_extended_wait): Update call to detach_breakpoints.
2476 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
2477 detach_breakpoints.
2478
2dcc6086
JB
24792012-08-16 Joel Brobecker <brobecker@adacore.com>
2480
2481 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
2482 parent, only call detach_breakpoints if tts.tts_event ==
2483 TTEVT_VFORK.
2484
0c92d8c1
JB
24852012-08-16 Joel Brobecker <brobecker@adacore.com>
2486
2487 * dwarf2-frame.c (dwarf2_frame_cache): Use
2488 get_frame_address_in_block instead of get_frame_pc as
2489 the bound for executing the frame's FDE.
2490
6b1755ce
YQ
24912012-08-16 Yao Qi <yao@codesourcery.com>
2492
2493 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
2494 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
2495 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
2496 (c_type_print_varspec_suffix): Likewise.
2497 * eval.c (evaluate_subexp_standard): Likewise.
2498 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
2499 (f_type_print_varspec_suffix): Likewise.
2500 * gdbtypes.c (is_scalar_type): Likewise.
2501 (recursive_dump_type): Likewise.
2502 * infcall.c (value_arg_coerce): Likewise.
2503 * m2-valprint.c (m2_val_print): Likewise.
2504 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
2505 (pascal_type_print_varspec_suffix): Likewise.
2506 (pascal_type_print_base): Likewise.
2507 * p-valprint.c (pascal_val_print): Likewise.
2508 (pascal_val_print): Likewise.
2509 * valops.c (value_slice): Likewise.
2510 * valprint.c (scalar_type_p): Likewise.
2511 * valarith.c (value_bitstring_subscript): Remove.
2512 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
2513 Remove comment on TYPE_CODE_BITSTRING.
2514
2515 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
2516 TYPE_CODE_BITSTRING.
2517
2518 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
2519 slot 0.
2520
8acc4065
YQ
25212012-08-16 Yao Qi <yao@codesourcery.com>
2522
2523 * tracepoint.c (trace_find_none_command): Remove.
2524 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
2525
8128fd8e
YQ
25262012-08-16 Yao Qi <yao@codesourcery.com>
2527
2528 * remote.c (handle_notification): Remove parameter 'length'.
2529 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
2530
2873700e
KS
25312012-08-15 Keith Seitz <keiths@redhat.com>
2532
2533 * gdbtypes.c (opaque_type_resolution): Make static.
2534 Add missing comment.
2535 (overload_debug): Add missing comment.
2536 (show_opaque_type_resolution): Likewise.
2537 (show_overload_debug): Likewise.
2538 (print_bit_vector): Remove unnecessary forward declaration.
2539 (print_arg_types): Likewise.
2540 (dump_fn_fieldlists): Likewise.
2541 (print_cplus_stuff): Likewise.
2542
b82d08cd
TT
25432012-08-15 Tom Tromey <tromey@redhat.com>
2544
2545 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
2546 (gdb_bfd_ref): Initialize new field.
2547 (gdb_bfd_unref): Unref the archive BFD.
2548 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
2549 parent archive.
2550
db6573d6
TT
25512012-08-15 Tom Tromey <tromey@redhat.com>
2552
2553 PR python/14387:
2554 * python/py-bpevent.c (create_breakpoint_event_object): Update
2555 comment.
2556 * python/py-event.c (evpy_add_attribute): Update comment.
2557 * python/py-exitedevent.c (create_exited_event_object): Fix
2558 reference counting and error handling.
2559 * python/py-newobjfileevent.c (create_new_objfile_event_object):
2560 Fix reference counting.
2561 * python/py-signalevent.c (create_signal_event_object): Fix
2562 reference counting and error handling.
2563 * python/py-stopevent.c (emit_stop_event): Fix reference
2564 counting.
2565 * python/py-threadevent.c (get_event_thread): Return a
2566 borrowed reference.
2567 * python/py-type.c (convert_field): Fix reference counting.
2568
a036ba48
TT
25692012-08-15 Tom Tromey <tromey@redhat.com>
2570
2571 * dwarf2read.c (dwarf_decode_macro_bytes)
2572 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
2573 as hash key.
2574
486c7739
MF
25752012-08-14 Mike Frysinger <vapier@gentoo.org>
2576
2577 * infcmd.c (_initialize_infcmd): Update help text for the signal,
2578 stepi, nexti, finish, next, step, jump, and continue commands.
2579 * infrun.c (_initialize_infrun): Update help text for the handle
2580 command.
2581
4cf93a03
DE
25822012-08-14 Doug Evans <dje@google.com>
2583
70b099cf
DE
2584 * gdbtypes.c (struct extra): Delete, unused.
2585
5212577a
DE
2586 * gdbtypes.c: Whitespace cleanup.
2587 (address_space_name_to_int): Remove "extern" from definition.
2588 (_initialize_gdbtypes): Declare with initialize_file_ftype.
2589
4cf93a03
DE
2590 * gdbtypes.c (make_pointer_type): Remove redundant setting of
2591 TYPE_POINTER_TYPE (type).
2592
3756ef7e
GB
25932012-08-14 Gary Benson <gbenson@redhat.com>
2594
2595 * solib-svr4.c (svr4_free_library_list): Use free_so.
2596
40d72643
MF
25972012-08-13 Mike Frysinger <vapier@gentoo.org>
2598
2599 * .gitignore: Add go-exp.c.
2600
f47f77df
DE
26012012-08-13 Doug Evans <dje@google.com>
2602
2603 * value.c (show_convenience): Tweak comment.
2604 (_initialize_values): Mention convenience functions in the help text
2605 for "show convenience".
2606
7507c54a
YQ
26072012-08-13 Yao Qi <yao@codesourcery.com>
2608
2609 * std-operator.def: Remove TERNOP_SLICE_COUNT.
2610 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
2611 TERNOP_SLICE_COUNT.
2612 * eval.c (evaluate_subexp_standard): Likewise.
2613 * expprint.c (print_subexp_standard): Likewise.
2614 (dump_subexp_body_standard): Likewise.
2615 * parse.c (operator_length_standard): Likewise.
2616
5cad9736
YQ
26172012-08-13 Yao Qi <yao@codesourcery.com>
2618
2619 * std-operator.def: Remove OP_BITSTRING.
2620 * breakpoint.c (watchpoint_exp_is_const): Update.
2621 * eval.c (evaluate_subexp_standard): Remove handling to
2622 OP_BITSTRING.
2623 * expprint.c (print_subexp_standard): Likewise.
2624 (dump_subexp_body_standard): Likewise.
2625 * parse.c (operator_length_standard): Likewise.
2626 * valops.c (value_bitstring): Remove.
2627 * value.h: Remove the declaration of 'value_bitstring'.
2628
bad7670a
SDJ
26292012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2630
2631 * linespec.c (find_methods): Remove unused variables `i1' and
2632 `name_len'.
2633 (decode_line_full): Likewise for `arg_start'.
2634
d9dce7fa
SDJ
26352012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
2636
2637 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
2638 (zlib_decompress_section): Likewise for `section_data'.
2639 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
2640
a72c3253
DE
26412012-08-10 Doug Evans <dje@google.com>
2642
2643 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
2644 * NEWS: Document them.
2645 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
2646 function/strfns.py.
2647 * python/py-type.c (typy_array_1): New function.
2648 (typy_array): Call it.
2649 (typy_vector): New function.
2650 (type_object_methods): Add "vector".
2651 * python/lib/gdb/function/__init__.py: New file.
2652 * python/lib/gdb/function/strfns.py: New file.
2653
200bc880
SP
26542012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
2655
2656 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
2657 for TYPE_FIELD_BITPOS.
2658 (typy_get_sizeof): Likewise for TYPE_LENGTH.
2659
de0bea00
MF
26602012-08-10 Mike Frysinger <vapier@gentoo.org>
2661
2662 PR cli/10436:
2663 * common/vec.h (VEC_merge): Define.
2664 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
2665 (DEF_VEC_ALLOC_FUNC_P): Likewise.
2666 (DEF_VEC_ALLOC_FUNC_O): Likewise.
2667 * completer.c: Include gdb_signals.h.
2668 (signal_completer): Define.
2669 * completer.h (signal_completer): Add prototype.
2670 * infcmd.c (_initialize_infcmd): Assign the command
2671 completer for "signal" to handle_completer.
2672 * infrun.c: Include completer.h.
2673 (handle_completer): Define.
2674 (_initialize_infrun): Declare a new local variable c. Store the
2675 result of add_com("handle") to it. Assign the command
2676 completer for "handle" to handle_completer.
2677
5b9afe8a
YQ
26782012-08-09 Yao Qi <yao@codesourcery.com>
2679
2680 * cli/cli-decode.c (set_cmd_prefix): New.
2681 (lookup_cmd_for_prefixlist): New.
2682 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
2683 of each cmd_list_element in *prefixlist.
2684 (add_setshow_cmd_full): set_cmd_prefix.
2685 (add_alias_cmd): Likewise.
2686 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
2687 Declare 'auto_boolean_enums'.
2688 * cli/cli-setshow.c: Include "observer.h".
2689 (notify_command_param_changed_p): New.
2690 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
2691 Remove 'static'.
2692 (do_setshow_command): Split it to ...
2693 (do_set_command, do_show_command): ... them. New.
2694 (do_set_command): Call observer_notify_command_param_changed if
2695 notify_command_param_changed_p returns true.
2696 (cmd_show_list): Caller update.
2697 * auto-load.c (set_auto_load_cmd): Likewise.
2698 * remote.c (show_remote_cmd): Likewise.
2699 * cli/cli-setshow.h: Update declarations.
2700 * top.c (execute_command): Call do_set_command and do_show_command.
2701
2702 * NEWS: Mention new MI notification.
2703 * mi/mi-interp.c: Declare mi_command_param_changed.
2704 (mi_interpreter_init): Attach mi_command_param_changed to
2705 observer command_param_changed.
2706 (mi_command_param_changed): New.
2707 Remove mi_suppress_breakpoint_notifications.
2708 Define global variable mi_suppress_notification.
2709 (mi_breakpoint_created): Update.
2710 (mi_breakpoint_deleted): Likewise.
2711 (mi_breakpoint_modified): Likewise.
2712 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
2713 'gdb-set' and set mi_suppress_notification.
2714 * mi/mi-main.h: (mi_suppress_notification): New struct.
2715
1969df89
JK
27162012-08-09 Andreas Tobler <andreast@fgznet.ch>
2717 Jan Kratochvil <jan.kratochvil@redhat.com>
2718
2719 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
2720
8bfd80db
YQ
27212012-08-09 Yao Qi <yao@codesourcery.com>
2722
2723 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
2724 (skiplist): Move it to skip.c.
2725 (init_cmd_lists): Remove code setting enablebreaklist and
2726 skiplist to NULL.
2727 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
2728 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
2729 skiplist.
2730 * gdbcmd.h: Likewise.
2731 * skip.c (_initialize_step_skip): Move 'skiplist' from
2732 cli/cli-cmds.c.
2733
28578e6b
YQ
27342012-08-09 Yao Qi <yao@codesourcery.com>
2735
2736 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
2737 * gnu-nat.c, symfile.c: Likewise.
2738
260c0b2a
DE
27392012-08-08 Aaron Gamble <agamble@google.com>
2740
2741 * utils.c (prompt_for_continue_wait_time): New static global.
2742 (make_command_stats_cleanup): Initialize it.
2743 (report_command_stats): Subtract time waiting for user.
2744 (prompt_for_continue): Track time waiting for user.
2745 (defaulted_query): Track time waiting for user.
2746
4f485ebc
DE
27472012-08-08 Doug Evans <dje@google.com>
2748
2749 * eval.c (evaluate_subexp_standard): Fix thinko in handling
2750 UNOP_MEMVAL_TYPE.
2751 * expprint.c (print_subexp_standard, case OP_TYPE): New.
2752 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
2753 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
2754 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
2755 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
2756 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
2757 elt.
2758 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
2759 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
2760 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
2761 (dump_prefix_expression): Handle OP_TYPE.
2762
2acf2b39
KS
27632012-08-08 Keith Seitz <keiths@redhat.com>
2764
2765 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
2766 addr_start.
2767
e6712ff1
DE
27682012-08-08 Doug Evans <dje@google.com>
2769
2770 * linux-thread-db.c: #include "gdb_vecs.h".
2771 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
2772 updated.
2773 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
2774 (thread_db_load_search): Use a vector to iterate over path elements.
2775 Handle text appearing after "$pdir".
2776
2777 * gdb_string.h: Moved to ...
2778 * common/gdb_string.h: ... here.
2779 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
2780 gdb_string.h and gdb_assert.h.
2781
ab854e54
YQ
27822012-08-08 Yao Qi <yao@codesourcery.com>
2783
2784 * tic6x-tdep.c (tic6x_register_to_value): Remove.
2785 (tic6x_value_to_register): Likewise.
2786 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
2787 and set_gdbarch_value_to_register.
2788
4f69f4c2
JK
27892012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
2790 Jean-Marc Saffroy <saffroy@gmail.com>
2791
2792 PR 11804
2793 * defs.h (find_memory_region_ftype): New comment. New arg modified.
2794 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
2795 * gcore.c (gcore_create_callback): New function comment. Add modified
2796 parameter. Only write modified regions. Set SEC_READONLY exactly
2797 according to MODIFIED.
2798 (objfile_find_memory_regions): Ignore separate debug info files. Ass
2799 the passed modified value to FUNC.
2800 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
2801 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
2802 first. New variables modified and has_anonymous. Parse the lines of
2803 smaps file. Add the passed MODIFIED value to FUNC.
2804 * procfs.c (find_memory_regions_callback): Add the passed modified
2805 value.
2806
78ac5f83
TT
28072012-08-06 Tom Tromey <tromey@redhat.com>
2808
2809 * dwarf2-frame.c (clear_pointer_cleanup): New function.
2810 (dwarf2_frame_cache): Use it.
2811 * frame-unwind.h (frame_sniffer_ftype): Document prologue
2812 cache initialization constraint.
2813
2c12abee
TT
28142012-08-06 Tom Tromey <tromey@redhat.com>
2815
2816 PR python/14386:
2817 * varobj.c (update_dynamic_varobj_children): Don't call
2818 PyIter_Check.
2819
4979d7f0
TT
28202012-08-06 Tom Tromey <tromey@redhat.com>
2821
2822 PR cli/14392:
2823 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
2824
f3c8a52a
JK
28252012-08-06 Nathaniel Flath <flat0103@gmail.com>
2826
2827 * NEWS: New entry for 'cd' default parameters.
2828 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
2829
5a1cf4d6
TT
28302012-08-03 Tom Tromey <tromey@redhat.com>
2831
2832 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
2833 return.
2834
7c3270ae
UW
28352012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
2836
2837 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
2838 to attempting lseek/write.
2839 (inf_child_fileio_pread): Likewise for pread.
2840
ccce17b0
YQ
28412012-08-02 Yao Qi <yao@codesourcery.com>
2842
2843 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
2844 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
2845 add_setshow_zinteger_cmd.
2846 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
2847 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
2848 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
2849 instead of add_setshow_zinteger_cmd.
2850 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
2851 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
2852 instead of add_setshow_zinteger_cmd.
2853 * frame.c (frame_debug): Add 'unsigned'.
2854 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
2855 add_setshow_zinteger_cmd.
2856 * frame.h: Update the declaration of 'frame_debug'.
2857 * gdbtypes.c (overload_debug): Add 'unsigned'.
2858 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
2859 add_setshow_zinteger_cmd.
2860 * inferior.h: Update declaration of 'debug_infrun'.
2861 * infrun.c (debug_infrun): Add 'unsigned'.
2862 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
2863 add_setshow_zinteger_cmd.
2864 * jit.c (jit_debug): Add 'unsigned'.
2865 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
2866 add_setshow_zinteger_cmd.
2867 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
2868 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
2869 instead of add_setshow_zinteger_cmd.
2870 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
2871 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
2872 add_setshow_zinteger_cmd.
2873 * machoread.c (mach_o_debug_level): Add 'unsigned'.
2874 (_initialize_machoread): Call add_setshow_zuinteger_cmd
2875 instead of add_setshow_zinteger_cmd.
2876 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
2877 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
2878 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
2879 intead of add_setshow_zinteger_cmd.
2880 * mips-tdep.c (mips_debug): Add 'unsigned'.
2881 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
2882 instead of add_setshow_zinteger_cmd.
2883 * monitor.c (monitor_debug): Add 'unsigned'.
2884 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
2885 add_setshow_zinteger_cmd.
2886 * observer.c (observer_debug): Add 'unsigned'.
2887 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
2888 add_setshow_zinteger_cmd.
2889 * parse.c (expressiondebug): Add 'unsigned'.
2890 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
2891 add_setshow_zinteger_cmd.
2892 * record.c (record_debug): Add 'unsigned'.
2893 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
2894 add_setshow_zinteger_cmd.
2895 * record.h: Update the declaration of 'record_debug'.
2896 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
2897 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
2898 add_setshow_zinteger_cmd.
2899 * serial.c (global_serial_debug_p): Add 'unsigned'.
2900 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
2901 add_setshow_zinteger_cmd.
2902 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
2903 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
2904 add_setshow_zinteger_cmd.
2905 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
2906 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
2907 add_setshow_zinteger_cmd.
2908 * target.c (targetdebug): Add 'unsigned'.
2909 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
2910 add_setshow_zinteger_cmd.
2911 * valops.c (overload_debug): Add 'unsigned'.
2912 * varobj.c (varobjdebug): Add 'unsigned'.
2913 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
2914 add_setshow_zinteger_cmd.
2915 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
2916 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
2917 instead of add_setshow_zinteger_cmd.
2918
2919 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
2920 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
2921 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
2922 instead of add_setshow_zinteger_cmd.
2923 * gdbarch.c, gdbarch.h: Re-generated.
2924
95b07c96
YQ
29252012-08-02 Yao Qi <yao@codesourcery.com>
2926
2927 * nto-tdep.c: Don't include cli/cli-decode.h and
2928 cli/cli-cmds.h.
2929 (_initialize_nto_tdep): Remove.
2930 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
2931 Remove field.
2932 Remove macro nto_internal_debugging.
2933
57295b0b
RH
29342012-08-01 Richard Henderson <rth@redhat.com>
2935
2936 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
2937 (mep-*-*) [gdb_target_obs]: Likewise.
2938
f782ad9b
AS
29392012-07-31 Andreas Schwab <schwab@linux-m68k.org>
2940
2941 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
2942 linux_get_siginfo_type.
2943
a14dd77e
JK
29442012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
2945
2946 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
2947 AT_ENTRY_POINT.
2948 (call_function_by_hand) <ON_STACK>: Call write_memory with
2949 gdbarch_breakpoint_from_pc, if possible.
2950 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
2951 here.
2952
1467929f
YQ
29532012-07-31 Yao Qi <yao@codesourcery.com>
2954
2955 * tracepoint.c: Add 'static' for some variables.
2956
70976b65
YQ
29572012-07-31 Yao Qi <yao@codesourcery.com>
2958
2959 * go32-nat.c: Declare _initialize_go32_nat.
2960 * ser-go32.c: Declare _initialize_ser_dos.
2961 * top.c (do_chdir_cleanup): Add 'static'.
2962
eff9c3e6
KS
29632012-07-30 Keith Seitz <keiths@redhat.com>
2964
2965 * linespec.c (linespec_lex_number): A number followed
2966 by quotes is a valid number, too.
2967
728400d7
TT
29682012-07-30 Tom Tromey <tromey@redhat.com>
2969
2970 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
2971
fcf303ab
UW
29722012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
2973
2974 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
2975 attempt to 4-byte-align HW breakpoint addresses for Thumb.
2976
4e969b4f
AB
29772012-07-30 Andrew Burgess <aburgess@broadcom.com>
2978
2979 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
2980 invalid or reevaluated to prevent prevent references to possibly
2981 delete'd type objects being left in the varobj.
2982
c4bfde41
JK
29832012-07-27 Tom Tromey <tromey@redhat.com>
2984 Jan Kratochvil <jan.kratochvil@redhat.com>
2985
2986 * copying.awk: Print buffer-read-only and vi ro markers.
2987 * copying.c: Rebuild.
2988 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
2989 * gdbarch.c, gdbarch.h: Rebuild.
2990 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
2991 buffer-read-only and vi ro markers.
2992 * features/arm-with-iwmmxt.c: Rebuild.
2993 * features/arm-with-m-fpa-layout.c: Rebuild.
2994 * features/arm-with-m-vfp-d16.c: Rebuild.
2995 * features/arm-with-m.c: Rebuild.
2996 * features/arm-with-neon.c: Rebuild.
2997 * features/arm-with-vfpv2.c: Rebuild.
2998 * features/arm-with-vfpv3.c: Rebuild.
2999 * features/i386/amd64-avx-linux.c: Rebuild.
3000 * features/i386/amd64-avx.c: Rebuild.
3001 * features/i386/amd64-linux.c: Rebuild.
3002 * features/i386/amd64.c: Rebuild.
3003 * features/i386/i386-avx-linux.c: Rebuild.
3004 * features/i386/i386-avx.c: Rebuild.
3005 * features/i386/i386-linux.c: Rebuild.
3006 * features/i386/i386-mmx-linux.c: Rebuild.
3007 * features/i386/i386-mmx.c: Rebuild.
3008 * features/i386/i386.c: Rebuild.
3009 * features/i386/x32-avx-linux.c: Rebuild.
3010 * features/i386/x32-avx.c: Rebuild.
3011 * features/i386/x32-linux.c: Rebuild.
3012 * features/i386/x32.c: Rebuild.
3013 * features/mips-dsp-linux.c: Rebuild.
3014 * features/mips-linux.c: Rebuild.
3015 * features/mips64-dsp-linux.c: Rebuild.
3016 * features/mips64-linux.c: Rebuild.
3017 * features/rs6000/powerpc-32.c: Rebuild.
3018 * features/rs6000/powerpc-32l.c: Rebuild.
3019 * features/rs6000/powerpc-403.c: Rebuild.
3020 * features/rs6000/powerpc-403gc.c: Rebuild.
3021 * features/rs6000/powerpc-405.c: Rebuild.
3022 * features/rs6000/powerpc-505.c: Rebuild.
3023 * features/rs6000/powerpc-601.c: Rebuild.
3024 * features/rs6000/powerpc-602.c: Rebuild.
3025 * features/rs6000/powerpc-603.c: Rebuild.
3026 * features/rs6000/powerpc-604.c: Rebuild.
3027 * features/rs6000/powerpc-64.c: Rebuild.
3028 * features/rs6000/powerpc-64l.c: Rebuild.
3029 * features/rs6000/powerpc-7400.c: Rebuild.
3030 * features/rs6000/powerpc-750.c: Rebuild.
3031 * features/rs6000/powerpc-860.c: Rebuild.
3032 * features/rs6000/powerpc-altivec32.c: Rebuild.
3033 * features/rs6000/powerpc-altivec32l.c: Rebuild.
3034 * features/rs6000/powerpc-altivec64.c: Rebuild.
3035 * features/rs6000/powerpc-altivec64l.c: Rebuild.
3036 * features/rs6000/powerpc-cell32l.c: Rebuild.
3037 * features/rs6000/powerpc-cell64l.c: Rebuild.
3038 * features/rs6000/powerpc-e500.c: Rebuild.
3039 * features/rs6000/powerpc-e500l.c: Rebuild.
3040 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
3041 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
3042 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
3043 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
3044 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
3045 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
3046 * features/rs6000/powerpc-vsx32.c: Rebuild.
3047 * features/rs6000/powerpc-vsx32l.c: Rebuild.
3048 * features/rs6000/powerpc-vsx64.c: Rebuild.
3049 * features/rs6000/powerpc-vsx64l.c: Rebuild.
3050 * features/rs6000/rs6000.c: Rebuild.
3051 * features/s390-linux32.c: Rebuild.
3052 * features/s390-linux32v1.c: Rebuild.
3053 * features/s390-linux32v2.c: Rebuild.
3054 * features/s390-linux64.c: Rebuild.
3055 * features/s390-linux64v1.c: Rebuild.
3056 * features/s390-linux64v2.c: Rebuild.
3057 * features/s390x-linux64.c: Rebuild.
3058 * features/s390x-linux64v1.c: Rebuild.
3059 * features/s390x-linux64v2.c: Rebuild.
3060 * features/tic6x-c62x-linux.c: Rebuild.
3061 * features/tic6x-c62x.c: Rebuild.
3062 * features/tic6x-c64x-linux.c: Rebuild.
3063 * features/tic6x-c64x.c: Rebuild.
3064 * features/tic6x-c64xp-linux.c: Rebuild.
3065 * features/tic6x-c64xp.c: Rebuild.
3066
826f0041
TT
30672012-07-27 Tom Tromey <tromey@redhat.com>
3068
3069 * c-exp.y (classify_name): Avoid assignment in condition.
3070
84552b16
PA
30712012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
3072
3073 * amd64-windows-tdep.c: Include "frame.h".
3074 (amd64_windows_skip_trampoline_code): New function.
3075 (amd64_windows_init_abi): Add trampoline registration.
3076
a8a64aa8
YQ
30772012-07-27 Yao Qi <yao@codesourcery.com>
3078
3079 * tracepoint.c (cur_traceframe_number): Remove.
3080 (set_tfile_traceframe): Remove.
3081 (tfile_trace_find, tfile_fetch_registers): Update callers.
3082 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
3083 (tfile_open, tfile_trace_find): Likewise.
3084
d99067cb
YQ
30852012-07-27 Yao Qi <yao@codesourcery.com>
3086
3087 * thread.c (switch_to_thread): Don't call registers_changed.
3088
f2e8016f
TT
30892012-07-26 Tom Tromey <tromey@redhat.com>
3090
f782ad9b
AS
3091 * Makefile.in (SFILES): Remove objc-exp.y.
3092 (YYFILES): Remove objc-exp.c.
3093 (YYOBJ): Remove objc-exp.o.
3094 (local-maintainer-clean): Don't mention objc-exp.c.
3095 * c-exp.y: Include objc-lang.h.
3096 (%union) <class>: New field.
3097 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
3098 (exp): Clone subscript production for OBJC_LBRAC. Add various
3099 Objective C productions.
3100 (msglist, msgarglist, msgarg): New productions.
3101 (array_mod, func_mod, operator): Clone productions for
3102 OBJC_LBRAC.
3103 (parse_string_or_char): Handle '@' strings.
3104 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
3105 (classify_name): Check la_name_of_this. Recognize ObjC class
3106 names.
3107 * objc-exp.y: Remove.
3108 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
3109 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 3110
f66713d2
JK
31112012-07-26 Markus Metzger <markus.t.metzger@intel.com>
3112
3113 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
3114
7cfe01b4
JK
31152012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
3116
3117 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
3118 and decrement.
3119
5ba19b4c
TT
31202012-07-26 Tom Tromey <tromey@redhat.com>
3121
3122 * copying.c: Rebuild.
3123 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
3124 'no_class'.
3125
27618ce4
TT
31262012-07-26 Tom Tromey <tromey@redhat.com>
3127
3128 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
3129 immediate_quit.
3130 (print_objfile_statistics): Likewise.
3131 (maintenance_print_symbols): Likewise.
3132 (maintenance_print_msymbols): Likewise.
3133 (maintenance_print_objfiles): Likewise.
3134 * psymtab.c (print_partial_symbols): Call QUIT.
3135 (maintenance_print_psymbols): Likewise. Don't modify
3136 immediate_quit.
3137 * copying.c (show_copying_command): Don't modify immediate_quit.
3138 (show_warranty_command): Likewise.
3139 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
3140
dd3818c8
KS
31412012-07-26 Keith Seitz <keiths@redhat.com>
3142
3143 * linespec.c (linespec_lexer_lex_number): The input
3144 is also a valid number if the next character is a comma
3145 or colon.
3146
23a80689
JB
31472012-07-26 Joel Brobecker <brobecker@adacore.com>
3148
3149 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
3150 configure options.
3151
29f77997
TG
31522012-07-26 Tristan Gingold <gingold@adacore.com>
3153
3154 * machoread.c: Include gdb_bfd.h.
3155
a55c1f32
TG
31562012-07-26 Tristan Gingold <gingold@adacore.com>
3157
3158 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
3159 offset.
3160
56eb65bd
SP
31612012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
3162
3163 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
3164 SIZE to size_t.
3165 (dwarf2_evaluate_loc_desc): Likewise.
3166 (dwarf2_loc_desc_needs_frame): Likewise.
3167 (locexpr_describe_location_1): Likewise.
3168 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
3169 size_t.
3170 (struct dwarf2_loclist_baton): Likewise.
3171 * dwarf2read.c (struct dwarf_block): Likewise.
3172 (dump_die_shallow): Use pulongest to print dwarf_block.size.
3173 (decode_locdesc): Expand SIZE and I to size_t.
3174
aec8845c
JK
31752012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
3176
3177 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
3178
33d7655b
JB
31792012-07-25 Joel Brobecker <brobecker@adacore.com>
3180
3181 * doublest.c (convert_doublest_to_floatformat): If the exponent
3182 is too small, treat the value as zero. If the exponent is too
3183 large, treat the value as infinity.
3184
a22d44ff
JB
31852012-07-25 Joel Brobecker <brobecker@adacore.com>
3186
3187 * configure.ac: Add --enable-lmcheck configure option.
3188 * configure: Regenerate.
3189
d6b28940
TT
31902012-07-25 Tom Tromey <tromey@redhat.com>
3191
f782ad9b
AS
3192 * NEWS: Mention maint info bfds.
3193 * gdb_bfd.c (all_bfds): New global.
3194 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
3195 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
3196 New functions.
d6b28940 3197
6e73ba20
RC
31982012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
3199
3200 * configure.tgt: Add v850*-*-rtems*.
3201
d560eebd
TT
32022012-07-25 Tom Tromey <tromey@redhat.com>
3203
3204 * macrotab.c (macro_bcache_str): Remove cast.
3205
d7cbec71
HZ
32062012-07-25 Hui Zhu <hui_zhu@mentor.com>
3207
3208 * linespec.c (linespec_lexer_lex_number): Update comments,
3209 change the return and add check to make sure the input is
3210 the decimal numbers.
3211 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
3212 false, call linespec_lexer_lex_string.
3213
882f447f
TT
32142012-07-24 Tom Tromey <tromey@redhat.com>
3215
3216 * symfile.c (symbol_file_add): Don't open BFD twice.
3217
53ab4066 32182012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
3219
3220 * breakpoint.c (create_breakpoint): Store condition for pending
3221 breakpoints.
3222
108fb0f7
AS
32232012-07-24 Andreas Schwab <schwab@linux-m68k.org>
3224
3225 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
3226 (m68k_return_value): Handle complex types like structures.
3227 (m68k_svr4_return_value): Likewise.
3228
1634dcbe
JK
32292012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
3230
3231 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
3232 parameters to bfd_get_section_name.
3233
e2d12c21
YQ
32342012-07-24 Yao Qi <yao@codesourcery.com>
3235
3236 * cli/cli-setshow.c: Handle case 'var_uinteger'
3237 and 'var_zuninteger' together. Handle case 'var_integer' and
3238 'var_zinteger' together.
3239
64b92e45
KS
32402012-07-23 Keith Seitz <keiths@redhat.com>
3241
3242 * linespec.c (convert_linespec_to_sal): Don't add
3243 any symbols to the result vector if symbol_to_sal
3244 returns zero.
3245
0f5f4ffe
KS
32462012-07-23 Keith Seitz <keiths@redhat.com>
3247
3248 * linespec.c (decode_objc): Record the function name
3249 in the linespec.
3250
da1cc82f
TT
32512012-07-23 Tom Tromey <tromey@redhat.com>
3252
3253 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
3254 counting.
3255 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
3256 (map_vmap): Acquire a reference to the BFD.
3257
6c18f3e0
SP
32582012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
3259
3260 * p-valprint.c (pascal_object_print_value): Replace potentially
3261 unsafe alloca with xmalloc/xfree.
3262 * valops.c (search_struct_method): Likewise.
3263
695c3173
TT
32642012-07-23 Tom Tromey <tromey@redhat.com>
3265
3266 * solib-svr4.c (enable_break): Update.
3267 * bfd-target.h (target_bfd_reopen): Update documentation.
3268
08d2cd74
TT
32692012-07-23 Tom Tromey <tromey@redhat.com>
3270
3271 * symfile.c (separate_debug_file_exists): Update.
3272 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
3273 (reread_symbols): Update.
3274 * elfread.c (build_id_verify): Update.
3275 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
3276 bfd_open_maybe_remote.
3277
596f7d67
TT
32782012-07-23 Tom Tromey <tromey@redhat.com>
3279
3280 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
3281
8ac244b4
TT
32822012-07-23 Tom Tromey <tromey@redhat.com>
3283
3284 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
3285 and 'abfd'.
3286 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
3287 and 'abfd'.
3288 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
3289 * machoread.c (macho_add_oso_symfile): Make a cleanup for
3290 'abfd'.
3291 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
3292 * objfiles.c (allocate_objfile): Acquire a new reference.
3293 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
3294 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
3295 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
3296 a cleanup for 'nbfd'.
3297 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
3298 for 'nbfd'.
3299 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
3300 make a cleanup for 'abfd'.
3301 (symbol_file_add): Make a BFD cleanup.
3302
64c31149
TT
33032012-07-23 Tom Tromey <tromey@redhat.com>
3304
3305 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
3306 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
3307 * corelow.c (core_open): Use gdb_bfd_fopen.
3308 * dsrec.c (load_srec): Use gdb_bfd_openr.
3309 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
3310 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
3311 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3312 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3313 (gdb_bfd_fdopenr): New functions.
3314 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
3315 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
3316 (gdb_bfd_fdopenr): Declare.
3317 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
3318 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
3319 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
3320 gdb_bfd_openr_next_archived_file.
3321 (macho_check_dsym): Use gdb_bfd_openr.
3322 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
3323 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
3324 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
3325 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
3326 gdb_bfd_openr.
3327 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
3328 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
3329 gdb_bfd_openr_next_archived_file.
3330 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3331 Use gdb_bfd_openr.
3332 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
3333 gdb_bfd_openr.
3334 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
3335 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
3336 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
3337 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
3338 (symfile_bfd_open): Use gdb_bfd_fopen.
3339 (generic_load): Use gdb_bfd_openr.
3340 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
3341
520b0001
TT
33422012-07-23 Tom Tromey <tromey@redhat.com>
3343
3344 * bfd-target.c (target_bfd_reopen): Update.
3345 * cli/cli-dump.c (bfd_openr_with_cleanup)
3346 (bfd_openw_with_cleanup): Update.
3347 * corelow.c (core_open): Update.
3348 * dsrec.c (load_srec): Update.
3349 * exec.c (exec_file_attach): Update.
3350 * gcore.c (create_gcore_bfd): Update.
3351 * gdb_bfd.c (gdb_bfd_ref): Return void.
3352 (gdb_bfd_open): Update.
3353 * gdb_bfd.h (gdb_bfd_ref): Return void.
3354 Update comments.
3355 * jit.c (jit_bfd_try_read_symtab): Update.
3356 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3357 * machoread.c (macho_symfile_read_all_oso): Update.
3358 (macho_check_dsym): Update.
3359 * procfs.c (insert_dbx_link_bpt_in_file): Update.
3360 * remote-m32r-sdi.c (m32r_load): Update.
3361 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
3362 * rs6000-nat.c (add_vmap): Update.
3363 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3364 Update.
3365 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
3366 * solib-spu.c (spu_bfd_open): Update.
3367 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
3368 * spu-linux-nat.c (spu_bfd_open): Update.
3369 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
3370 (generic_load): Update.
3371 * windows-nat.c (windows_make_so): Update.
3372
2322ff16
SP
33732012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
3374
3375 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
3376
3def0b36
PA
33772012-07-20 Jeff Kenton <jkenton@tilera.com>
3378
3379 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
3380 SIGTRAMP_FRAME unwinding.
3381
e615022a
DE
33822012-07-20 Doug Evans <dje@google.com>
3383
3384 * NEWS: Document new options "set/show use-deprecated-index-sections",
3385 and delete reference to --use-deprecated-index-sections.
3386 * symfile.h (use_deprecated_index_sections): Delete.
3387 * dwarf2read.c (use_deprecated_index_sections): Make static.
3388 (read_index_from_section): Update wording of how to load
3389 deprecated index sections.
3390 (_initialize_dwarf2_read): New options
3391 "set/show use-deprecated-index-sections".
3392 * main.c (captured_main): Delete --use-deprecated-index-sections.
3393
64776a0b
PA
33942012-07-20 Pedro Alves <palves@redhat.com>
3395
3396 PR threads/11692
3397 PR gdb/12203
3398
3399 * infrun.c (handle_inferior_event) <new thread>: Don't special
3400 case minus_one_ptid.
3401 <TARGET_WAITKIND_SPURIOUS>: Ditto.
3402 * linux-thread-db.c (thread_get_info_callback): Don't return early
3403 if the thread is zombie.
3404 (thread_from_lwp): Change return type to void. Rewrite stale
3405 comment.
3406 (attach_thread): Don't return early if the thread is zombie,
3407 instead set its "dying" flag.
3408 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
3409 (find_new_threads_callback): Don't return early if the thread is
3410 zombie.
3411
09826ec5
PA
34122012-07-20 Pedro Alves <palves@redhat.com>
3413
3414 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
3415 * target.c (target_wait): Likewise.
3416 (str_comma_list_concat_elem, do_option, target_options_to_string):
3417 New functions.
3418 * target.h (target_options_to_string): Declare.
3419
f7a35f02
TT
34202012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3421 Tom Tromey <tromey@redhat.com>
3422
3423 * dwarf2read.c (dwarf_decode_macros)
3424 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
3425 DW_MACRO_GNU_transparent_include_alt>: New cases.
3426 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
3427 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
3428
b81e1ee0
TT
34292012-07-20 Tom Tromey <tromey@redhat.com>
3430
3431 * dwarf2read.c (try_open_dwo_file): Don't call
3432 gdb_bfd_stash_filename.
3433
99c1624c
PA
34342012-07-20 Pedro Alves <palves@redhat.com>
3435
3436 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3437 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
3438 (i386_process_record): Tweak description comments.
3439
4ffa4fc7
PA
34402012-07-20 Pedro Alves <palves@redhat.com>
3441
3442 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
3443 (i386_process_record): Use record_read_memory.
3444 * record.c (record_read_memory): New function.
3445 (record_arch_list_add_mem, record_exec_insn): Use
3446 record_read_memory.
3447 * record.h (record_read_memory): Declare.
3448
c24343e2
YQ
34492012-07-20 Yao Qi <yao@codesourcery.com>
3450
3451 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
3452 NULL for xfree.
3453
90f47860
PA
34542012-07-19 Pedro Alves <palves@redhat.com>
3455
3456 * record.c (record_resume): Ask the target beneath to report all
3457 signals.
3458
01093045
DE
34592012-07-19 Doug Evans <dje@google.com>
3460
3461 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
3462 there's no section at address zero.
3463 (dwarf2_record_block_ranges): Ditto.
3464
a7c3d162
YQ
34652012-07-19 Yao Qi <yao@codesourcery.com>
3466
3467 * command.h, remote.c: Fix a typo in comment.
3468
608b4967
TT
34692012-07-19 Tom Tromey <tromey@redhat.com>
3470
3471 PR exp/13206:
3472 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
3473 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
3474 OP_DECLTYPE>: New cases.
3475 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
3476 (type_exp): Add new productions.
3477 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
3478 and decltype.
3479 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
3480 New case.
3481 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
3482 OP_DECLTYPE>: New case.
3483 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
3484 New case.
3485 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
3486 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
3487
274b54d7
TT
34882012-07-19 Tom Tromey <tromey@redhat.com>
3489
3490 * c-exp.y (enum token_flags): New.
3491 (struct token) <cxx_only>: Remove.
3492 <flags>: New field.
3493 (tokentab3, tokentab2, ident_tokens): Update.
3494 (lex_one_token): Update. Handle FLAG_SHADOW.
3495
9eaf6705
TT
34962012-07-19 Tom Tromey <tromey@redhat.com>
3497
3498 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
3499 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
3500 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
3501 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
3502 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
3503 type_exp production where appropriate.
3504 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
3505 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
3506 <UNOP_MEMVAL_TYPE>: New case.
3507 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
3508 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
3509 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
3510 <UNOP_MEMVAL_TYPE>: New case.
3511 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
3512 UNOP_REINTERPRET_CAST>: Update.
3513 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3514 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
3515 UNOP_REINTERPRET_CAST>: Update.
3516 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
3517 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
3518 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
3519 constants.
3520
6ace3df1
YQ
35212012-07-19 Yao Qi <yao@codesourcery.com>
3522 Jan Kratochvil <jan.kratochvil@redhat.com>
3523
3524 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
3525 and case 'var_optional_filename' together.
3526 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
3527 instead of add_setshow_optional_filename_cmd for setshow command
3528 'args'. Set completer for 'set args'.
3529
48faced0
DE
35302012-07-18 Doug Evans <dje@google.com>
3531
3532 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
3533 * common/gdb_vecs.c: New file, contents from utils.c.
3534 * common/host-defs.h: New file, contents from defs.h.
3535 * utils.h: New file, contents from defs.h.
3536 * defs.h: Move all declarations of objects defined in utils.c
3537 to utils.h (except QUIT() and related).
3538 #include "utils.h", "host-defs.h".
3539 * probe.h (probe_p): Move here from gdb_vecs.h.
3540 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
3541 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
3542 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
3543 * Makefile.in (SFILES): Add common/gdb_vecs.c.
3544 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
3545 (COMMON_OBS): Add gdb_vecs.o.
3546 (gdb_vecs.o): New rule.
3547
66f1999b
KS
35482012-07-18 Keith Seitz <keiths@redhat.com>
3549
3550 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
3551 parameter. If non-zero, use SYMNAME as the canonical name
3552 for the SaL.
3553 Update all callers.
3554 (convert_linespec_to_sals): Use add_sal_to_sals for
3555 expressions, too.
3556 (decode_line_full): No need to "fill in missing canonical names"
3557 anymore. Simply make cleanups for the allocated names.
3558
5d94e27b
KS
35592012-07-18 Keith Seitz <keiths@redhat.com>
3560
3561 * linespec.c (struct linespec): Constify expression,
3562 source_filename, function_name, and label_name.
3563 (symbol_not_found_error): Make all parameters const.
3564 (linespec_parser_delete): No need to check for NULL
3565 when using xfree. Cast const char * to char * for xfree.
3566
af4908ba
KS
35672012-07-18 Keith Seitz <keiths@redhat.com>
3568
3569 * breakpoint.c (invalid_thread_id_error): New function.
3570 (find_condition_and_thread): Use invalid_thread_id_error.
3571 (watch_command_1): Likewise.
3572
853254db
TT
35732012-07-18 Tom Tromey <tromey@redhat.com>
3574
3575 * cc-with-index.sh, cc-with-dwz.sh: Remove.
3576 * contrib/cc-with-tweaks.sh: New file.
3577
2ec9a5e0
TT
35782012-07-18 Tom Tromey <tromey@redhat.com>
3579
3580 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
3581 (locate_dwz_sections): Recognize .gdb_index.
3582 (create_cus_from_index_list): New function.
3583 (create_cus_from_index): Use it. Handle .dwz data.
3584 (read_index_from_section): New function, extracted from
3585 dwarf2_read_index.
3586 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
3587 if needed.
3588
36586728
TT
35892012-07-18 Tom Tromey <tromey@redhat.com>
3590
3591 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
3592 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
3593 <is_dwz>: New field.
3594 (struct dwz_file): New.
3595 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
3596 (locate_dwz_sections, dwarf2_get_dwz_file)
3597 (get_abbrev_section_for_cu): New functions.
3598 (error_check_comp_unit_head, read_and_check_comp_unit_head)
3599 (read_and_check_type_unit_head): Add abbrev_section argument.
3600 (create_debug_types_hash_table): Update.
3601 (init_cutu_and_read_dies): Use proper abbrev section.
3602 (init_cutu_and_read_dies_no_follow): Likewise.
3603 (set_partial_user): Do nothing if PST==NULL.
3604 (read_comp_units_from_section): New function.
3605 (create_all_comp_units): Use it.
3606 (scan_partial_symbols, partial_die_parent_scope): Update.
3607 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3608 (process_imported_unit_die, read_partial_die): Handle .dwz files.
3609 (find_partial_die): Add offset_in_dwz argument. Update.
3610 (guess_partial_die_structure_name, fixup_partial_die): Update.
3611 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
3612 DW_FORM_GNU_strp_alt.
3613 (read_indirect_string_from_dwz): New function.
3614 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
3615 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
3616 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
3617 (follow_die_offset): Add offset_in_dwz argument.
3618 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
3619 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
3620 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
3621 Handle new macro forms.
3622 (dwarf_decode_macros): Update.
3623 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
3624 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
3625 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
3626 (create_debug_types_hash_table): Use correct abbrev section.
3627 (get_debug_line_section): New function.
3628 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
3629 (process_full_comp_unit): Pass 'required' argument to
3630 end_symtab_get_static_block.
3631 * buildsym.h (end_symtab_get_static_block): Update.
3632 * buildsym.c (end_symtab_get_static_block): Add 'required'
3633 argument.
3634 (end_symtab, end_expandable_symtab): Update.
3635
4bf44c1c
TT
36362012-07-18 Tom Tromey <tromey@redhat.com>
3637
3638 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
3639 (pagesize): Remove.
3640 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
3641 (zlib_decompress_section): Remove.
3642 (dwarf2_read_section): Use gdb_bfd_map_section.
3643 (munmap_section_buffer): Remove.
3644 (free_dwo_file, dwarf2_per_objfile_free): Don't use
3645 munmap_section_buffer.
3646 * gdb_bfd.c: Include zlib.h, sys/mman.h.
3647 (struct gdb_bfd_section_data): New.
3648 (free_one_bfd_section): New function.
3649 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
3650 (get_section_descriptor, zlib_decompress_section)
3651 (gdb_bfd_map_section): New functions.
3652 * gdb_bfd.h (gdb_bfd_map_section): Declare.
3653
bb397797
TT
36542012-07-18 Tom Tromey <tromey@redhat.com>
3655
3656 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
3657
6ec53d05
TT
36582012-07-18 Tom Tromey <tromey@redhat.com>
3659
3660 * gdb_bfd.c (struct gdb_bfd_data): New.
3661 (gdb_bfd_cache): New global.
3662 (struct gdb_bfd_cache_search): New.
3663 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
3664 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
3665 * gdb_bfd.h (gdb_bfd_open): Declare.
3666
f9a062ff
TT
36672012-07-18 Tom Tromey <tromey@redhat.com>
3668
3669 * utils.c (make_cleanup_bfd_unref): Rename from
3670 make_cleanup_bfd_close.
3671 * defs.h (make_cleanup_bfd_unref): Rename from
3672 make_cleanup_bfd_close.
3673 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
3674 (bfd_openw_with_cleanup): Update.
3675 * corelow.c (core_open): Update.
3676 * dsrec.c (load_srec): Update.
3677 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
3678 * remote-m32r-sdi.c (m32r_load): Update.
3679 * remote-mips.c (mips_load_srec): Update.
3680 (pmon_load_fast): Update.
3681 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3682 Update.
3683 (darwin_bfd_open): Update.
3684 * solib.c (solib_bfd_fopen): Update.
3685 * symfile-mem.c (symbol_file_add_from_memory): Update.
3686 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
3687 (symfile_bfd_open): Update.
3688 (generic_load): Update.
3689
d6ad71ba
TT
36902012-07-18 Tom Tromey <tromey@redhat.com>
3691
3692 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
3693 (pmon_load_fast): Likewise.
3694 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
3695 (m32r_upload_command): Likewise.
3696 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
3697 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3698 Use make_cleanup_bfd_close.
3699
a4453b7e
TT
37002012-07-18 Tom Tromey <tromey@redhat.com>
3701
3702 * symfile.c (symfile_bfd_open): Don't copy name. Call
3703 gdb_bfd_stash_filename.
3704 (load_command): Open the new BFD before freeing the old.
3705 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
3706 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
3707 Call gdb_bfd_stash_filename.
3708 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
3709 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
3710 gdb_bfd_stash_filename.
3711 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
3712 Free found_pathname.
3713 * rs6000-nat.c (add_vmap): Don't copy filename. Call
3714 gdb_bfd_stash_filename.
3715 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
3716 * machoread.c (macho_add_oso_symfile): Call
3717 gdb_bfd_stash_filename.
3718 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
3719 gdb_bfd_stash_filename.
3720 (macho_check_dsym): Don't copy filename. Call
3721 gdb_bfd_stash_filename.
3722 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
3723 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
3724 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
3725 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
3726 * exec.c (exec_close): Don't free the BFD's filename.
3727 (exec_file_attach): Don't copy the filename. Call
3728 gdb_bfd_stash_filename.
3729 * corelow.c (core_close): Don't free the BFD's filename.
3730 (core_open): Call gdb_bfd_stash_filename.
3731 * corefile.c (reopen_exec_file): Remove #if 0 code.
3732 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
3733 pathname.
3734 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
3735
cbb099e8
TT
37362012-07-18 Tom Tromey <tromey@redhat.com>
3737
3738 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
3739 gdb_bfd_unref.
3740 (free_dwo_file): Use gdb_bfd_unref.
3741 * cli/cli-dump.c: Include gdb_bfd.h.
3742 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
3743 (bfd_openr_with_cleanup): Likewise.
3744 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
3745 gdb_bfd_unref.
3746 * utils.c: Include gdb_bfd.h.
3747 (do_bfd_close_cleanup): Use gdb_bfd_unref.
3748 * symfile.c: Include gdb_bfd.h.
3749 (separate_debug_file_exists): Use gdb_bfd_unref.
3750 (bfd_open_maybe_remote): Use gdb_bfd_ref.
3751 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3752 (generic_load): Use gdb_bfd_ref.
3753 (reread_symbols): Use gdb_bfd_unref.
3754 * symfile-mem.c: Include gdb_bfd.h.
3755 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
3756 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
3757 * solib.c: Include gdb_bfd.h.
3758 (solib_bfd_fopen): Use gdb_bfd_ref.
3759 (solib_bfd_open): Use gdb_bfd_unref.
3760 (free_so_symbols): Use gdb_bfd_unref.
3761 (reload_shared_libraries_1): Use gdb_bfd_unref.
3762 * solib-spu.c: Include gdb_bfd.h.
3763 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
3764 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
3765 gdb_bfd_unref.
3766 * solib-frv.c: Include gdb_bfd.h.
3767 (enable_break2): Use gdb_bfd_unref.
3768 * solib-dsbt.c: Include gdb_bfd.h.
3769 (enable_break2): Use gdb_bfd_unref.
3770 * solib-darwin.c: Include gdb_bfd.h.
3771 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
3772 gdb_bfd_unref.
3773 (darwin_bfd_open): Use gdb_bfd_unref.
3774 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
3775 * remote-mips.c: Include gdb_bfd.h.
3776 (mips_load_srec): Use gdb_bfd_ref.
3777 (pmon_load_fast): Use gdb_bfd_ref.
3778 * remote-m32r-sdi.c: Include gdb_bfd.h.
3779 (m32r_load): Use gdb_bfd_ref.
3780 * record.c: Include gdb_bfd.h.
3781 (record_save_cleanups): Use gdb_bfd_unref.
3782 (cmd_record_save): Use gdb_bfd_unref.
3783 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
3784 gdb_bfd_unref.
3785 * objfiles.h (gdb_bfd_close_or_warn): Remove.
3786 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
3787 * objfiles.c: Include gdb_bfd.h.
3788 (free_objfile): Use gdb_bfd_unref.
3789 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
3790 gdb_bfd.c.
3791 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
3792 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
3793 (macho_check_dsym): Likewise.
3794 * m32r-rom.c: Include gdb_bfd.h.
3795 (m32r_load): Use gdb_bfd_ref.
3796 (m32r_upload_command): Use gdb_bfd_ref.
3797 * jit.c: Include gdb_bfd.h.
3798 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
3799 * gdb_bfd.h: New file.
3800 * gdb_bfd.c: New file.
3801 * gcore.c: Include gdb_bfd.h.
3802 (create_gcore_bfd): Use gdb_bfd_ref.
3803 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
3804 (gcore_command): Use gdb_bfd_unref.
3805 * exec.c: Include gdb_bfd.h.
3806 (exec_close): Use gdb_bfd_unref.
3807 (exec_close_1): Use gdb_bfd_unref.
3808 (exec_file_attach): Use gdb_bfd_ref.
3809 * elfread.c: Include gdb_bfd.h.
3810 (build_id_verify): Use gdb_bfd_unref.
3811 * dsrec.c: Include gdb_bfd.h.
3812 (load_srec): Use gdb_bfd_ref.
3813 * corelow.c: Include gdb_bfd.h.
3814 (core_close): Use gdb_bfd_unref.
3815 (core_open): Use gdb_bfd_ref.
3816 * bfd-target.c: Include gdb_bfd.h.
3817 (target_bfd_xclose): Use gdb_bfd_unref.
3818 (target_bfd_reopen): Use gdb_bfd_ref.
3819 * Makefile.in (SFILES): Add gdb_bfd.c.
3820 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
3821 (COMMON_OBS): Add gdb_bfd.o.
3822
ed1d1739
KS
38232012-07-18 Keith Seitz <keiths@redhat.com>
3824
3825 * breakpoint.c (find_condition_and_thread): Initialize
3826 TASK and REST.
3827 (create_breakpiont): find_condition_and_thread will now
3828 initialize COND_STRING, THREAD, and REST (and TASK).
3829 (addr_string_to_sals): Likewise.
3830
eab402df
PA
38312012-07-18 Pedro Alves <palves@redhat.com>
3832
3833 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
3834 Pull the single step breakpoints out of the target.
3835
2b963b68
SDJ
38362012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3837
3838 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
3839 * stap-probe.c (compile_probe_arg): Likewise.
3840
6bac7473
SDJ
38412012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
3842
3843 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
3844 (elf_compile_to_ax): Likewise.
3845 * infrun.c (insert_exception_resume_from_probe): Likewise.
3846 (check_exception_resume): Remove `objfile' variable.
3847 * probe.c (find_probe_by_pc): Remove `objfile' argument.
3848 (struct probe_and_objfile, probe_and_objfile_s): Delete.
3849 (collect_probes): Adjust return value to `VEC (probe_p) *'.
3850 (compare_entries): Rename to...
3851 (compare_probes): ...this. Adjust function to work with
3852 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
3853 respectively.
3854 (gen_ui_out_table_header_info): Adjust `probes' argument to be
3855 `VEC (probe_p) *'.
3856 (print_ui_out_info): Adjust argument to be `struct probe *'.
3857 (info_probes_for_ops): Adjust internal computations to use
3858 `VEC (probe_p) *'.
3859 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
3860 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
3861 gen_info_probes_table_values>: Remove `objfile' argument.
3862 (struct probe) <objfile>: New field.
3863 (find_probe_by_pc): Remove `objfile' argument.
3864 * stap-probe.c (stap_parse_probe_arguments): Likewise.
3865 (stap_get_probe_argument_count): Likewise.
3866 (stap_get_arg): Likewise.
3867 (stap_evaluate_probe_argument): Likewise.
3868 (stap_compile_to_ax): Likewise.
3869 (compile_probe_arg): Refactor not to pass `objfile' anymore.
3870 (handle_stap_probe): Fill `objfile' field from `struct probe'.
3871 (stap_gen_info_probes_table_header): Remove `objfile' argument.
3872 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
3873 sym_compile_to_ax>: Likewise.
3874
3347eb1a 38752012-07-18 Terry Guo <terry.guo@arm.com>
3876
3877 PR 14329
3878 * defs.h (GDB_MI_MSG_WIDTH): New.
3879 * ser_base (ser_base_read_error_fd): New function.
3880 (do_ser_base_readchar): Poll error file descriptor as well as
3881 standard output.
f782ad9b 3882 (generic_readchar): Refactor error handling.
3347eb1a 3883
80c8d323
JB
38842012-07-18 Joel Brobecker <brobecker@adacore.com>
3885
3886 * NEWS: Create a new section for the next release branch.
3887 Rename the section of the current branch, now that it has
3888 been cut.
3889
b45a0664 38902012-07-18 Joel Brobecker <brobecker@adacore.com>
3891
3892 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
3893 * version.in: Bump version to 7.5.50.20120718-cvs.
3894
09cf2b22
KS
38952012-07-17 Keith Seitz <keiths@redhat.com>
3896
3897 * linespec.c (linespec_parse_line_offset): Make parameter
3898 const.
3899
8f043999
JK
39002012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
3901
3902 PR 11914
3903 * f-valprint.c (info_common_command): New variable frame_id.
3904 Reinitialize FI form FRAME_ID after each print_variable_and_value.
3905 * printcmd.c (print_variable_and_value): Extend function comment.
3906 Add comment for invalidated FRAME.
3907 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
3908 FI form FRAME_ID after each print_frame_local_vars.
3909 (struct print_variable_and_value_data): Change frame to frame_id.
3910 (do_print_variable_and_value): New variable frame, initialize it from
3911 p->frame_id. Add comment for invalidated FRAME.
3912 (print_frame_local_vars, print_frame_arg_vars): New function comment.
3913 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
3914 for invalidated FRAME.
3915
ae5e0686
MK
39162012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
3917 Pedro Alves <palves@redhat.com>
3918
3919 * linux-nat.c (linux_nat_detach): Don't unregister from the event
3920 loop.
3921
5049c5be
TT
39222012-07-16 Tom Tromey <tromey@redhat.com>
3923
3924 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
3925
2908cac6
DE
39262012-07-15 Doug Evans <dje@google.com>
3927
094b34ac
DE
3928 * dwarf2read.c (stmt_list_hash): New struct.
3929 (type_unit_group): Embed "per_cu" member, remove pointer.
3930 New union member "t", move member "tus" into it, all uses updated.
3931 New member "hash", replaces member "line_offset, all uses updated.
3932 (quick_file_names): Replace member "offset" with "hash", all uses
3933 updated.
3934 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
3935 (hash_file_name_entry, eq_file_name_entry): Call them.
3936 (hash_type_unit_group, eq_type_unit_group): Ditto.
3937 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
3938 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
3939 (dw2_get_file_names): Update.
3940 (create_type_unit_group): Replace "per_cu" arg with "cu".
3941 All callers updated. Fix "quick" (.gdb_index) handling.
3942 (get_type_unit_group): Replace "per_cu" arg with "cu".
3943 All callers updated.
3944 (build_type_unit_groups): Don't reset tu_stats.
3945
2908cac6
DE
3946 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
3947 "tab_cur_size". Change member "tab" to be a htab_t.
3948 (create_filename_seen_cache): Update.
3949 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
3950 (filename_seen): Update.
3951
a2b6eff5
DE
39522012-07-13 Doug Evans <dje@google.com>
3953
3954 * symtab.c (filename_seen): Update comment.
3955
4359dff1
JK
39562012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3957 Doug Evans <dje@google.com>
3958
3959 * buildsym.c (end_symtab_1): Split it to ...
3960 (end_symtab_get_static_block): ... this ...
3961 (end_symtab_from_static_block): ... and this function.
3962 (end_symtab, end_expandable_symtab): Call them.
3963 * buildsym.h (end_symtab_get_static_block)
3964 (end_symtab_from_static_block): New declarations.
3965 * dwarf2read.c (process_full_comp_unit): New variable static_block.
3966 Set its valid CU ranges.
3967
a24f71ab
JK
39682012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3969
3970 * dwarf2loc.c (disassemble_dwarf_expression): Handle
3971 DW_OP_GNU_parameter_ref.
3972
d76b7dbc
JK
39732012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
3974
3975 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
3976 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
3977
9fdc877b
DE
39782012-07-13 Doug Evans <dje@google.com>
3979
3980 * symtab.c (output_source_filename): Delete unnecessary forward decl.
3981 (filename_seen_cache): New struct.
3982 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
3983 (create_filename_seen_cache): New function.
3984 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
3985 (filename_seen): Delete arg "first". New arg "cache". All callers
3986 updated.
3987 (output_source_filename_data): New struct.
3988 (output_source_filename): Delete arg "first". New arg "data".
3989 All callers updated.
3990 (sources_info): Delete local "first". New locals "data", "cleanups".
3991 Rewrite to use filename_seen_cache.
3992 (add_partial_filename_data): Delete member "first". New member
3993 "filename_seen_cache". All uses updated.
3994 (make_source_files_completion_list): Rewrite to use
3995 filename_seen_cache.
3996
f80c6f3f
DE
39972012-07-12 Doug Evans <dje@google.com>
3998
3999 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
4000
0bfa869d
DE
40012012-07-10 Doug Evans <dje@google.com>
4002
f4dc4d17
DE
4003 PR gdb/13498
4004 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
4005 all_type_unit_groups, type_unit_groups, tu_stats.
4006 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
4007 All uses updated. Add type_unit_group to union "s".
4008 (type_unit_group): New struct.
4009 (IS_TYPE_UNIT_GROUP): New macro.
4010 (abbrev_table): Delete unused member "section".
4011 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
4012 (dw2_get_cu): Assert not used with type_unit_group.
4013 (dw2_get_primary_cu): New function.
4014 (dw2_build_type_unit_groups_reader): New function.
4015 (dw2_build_type_unit_groups): New function.
4016 (dw2_get_file_names): Assert not called on type units.
4017 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
4018 Redo loop to iterate over type unit groups instead of type units.
4019 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
4020 (read_abbrev_offset): New function.
4021 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
4022 updated.
4023 (create_partial_symtab): New function.
4024 (process_psymtab_comp_unit_reader): Assert not used with type units.
4025 Call create_partial_symtab.
4026 (process_psymtab_type_unit): Delete.
4027 (hash_type_unit_group, eq_type_unit_group): New functions.
4028 (allocate_type_unit_groups_table): New function.
4029 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
4030 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
4031 (create_type_unit_group, get_type_unit_group): New functions.
4032 (tu_abbrev_offset): New struct.
4033 (sort_tu_by_abbrev_offset): New function.
4034 (add_type_unit_group_to_table): New function.
4035 (build_type_unit_groups): New function.
4036 (build_type_psymtabs_reader): New function.
4037 (build_type_psymtab_dependencies): New function.
4038 (build_type_psymtabs): Rewrite.
4039 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
4040 is seen in a type unit.
4041 (process_queue): Move symtab expansion debugging printfs here.
4042 Call process_full_type_unit for type units.
4043 (compute_symtab_includes): Assert not called for type units.
4044 (process_cu_includes): Don't call compute_symtab_includes for
4045 type units.
4046 (process_full_type_unit): New function.
4047 (process_imported_unit_die): Flag an error if called for type units.
4048 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
4049 updated. Assert not called for type units.
4050 (read_file_scope): Call dwarf2_start_symtab.
4051 (setup_type_unit_groups): New function.
4052 (read_type_unit_scope): Rewrite.
4053 (abbrev_table_read_table): Initialize abbrev_table->offset.
4054 (abbrev_table_free_cleanup): New function.
4055 (dwarf2_start_symtab): New function.
4056 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
4057 * buildsym.c (finish_block_internal): New arg "expandable".
4058 All callers updated.
4059 (start_symtab): Move most contents to ...
4060 (restart_symtab): ... here. New function.
4061 (reset_symtab_globals): New function.
4062 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
4063 Call reset_symtab_globals.
4064 (end_symtab, end_expandable_symtab): New functions.
4065 (set_missing_symtab, augment_type_symtab): New functions.
4066 * buildsym.h (end_expandable_symtab): Declare.
4067 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
4068 * psympriv.h (struct partial_symtab): New member "anonymous".
4069 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
4070 anonymous psymtabs.
4071 (read_psymtabs_with_filename): Ditto.
4072 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
4073 (expand_symtabs_matching_via_partial): Ditto.
4074 (dump_psymtab): Update.
0bfa869d
DE
4075 * dictionary.c (dict_add_pending): New function.
4076 * dictionary.h (dict_add_pending): Declare.
4077
45e58e77
DE
40782012-07-09 Doug Evans <dje@google.com>
4079
b74db436
DE
4080 * buildsym.c (start_subfile): Remove unnecessary check for
4081 name == NULL.
4082
fd55216c
DE
4083 * psymtab.c (allocate_psymtab): Use host_address_to_string.
4084
6721b2ec
DE
4085 * dwarf2read.c (load_full_type_unit): Simplify.
4086
b4dd5633
DE
4087 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
4088 to struct signatured_type **. All uses updated.
4089
45e58e77
DE
4090 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
4091 All callers updated.
4092
e314d629
TT
40932012-07-09 Tom Tromey <tromey@redhat.com>
4094
4095 * c-exp.y (check_parameter_typelist): New function.
4096 (parameter_typelist): Call it.
4097 * eval.c (make_params): Handle '(void)' case.
4098 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4099 '(void)' case.
4100
aa7c7447
JK
41012012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4102
4103 * common/linux-ptrace.c: Include gdb_assert.h.
4104 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
4105 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
4106 stdint.h.
4107 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
4108 functions.
4109 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
4110 * linux-nat.c (linux_child_post_attach)
4111 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
4112
889003ed
JK
41132012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
4114
4115 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
4116 nptl <2.7 bug workaround for core files.
4117
da559b09
JK
41182012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4119
4120 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
4121 clearing.
4122 (save_siginfo): Remove.
4123 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
4124 call.
4125 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
4126 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
4127 * linux-nat.h (struct lwp_info): Remove field siginfo.
4128
f865ee35
JK
41292012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4130
4131 Code cleanup for the next patch.
4132 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
4133 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4134 call for it.
4135 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4136 (ia64_linux_stopped_data_address):
4137 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
4138 the return value.
4139 * linux-nat.h (linux_nat_get_siginfo): Likewise.
4140 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
4141 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
4142 call for it.
4143
76b83c51
JK
41442012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4145
4146 PR 14321
4147 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
4148 Increase buffer sizes to 2x we need, not just 2x of the previous size.
4149
a6fb9c08
TT
41502012-07-06 Tom Tromey <tromey@redhat.com>
4151
4152 * c-exp.y (DOTDOTDOT): New token.
4153 (func_mod, exp): Use parameter_typelist.
4154 (parameter_typelist): New production.
4155 (tokentab3): Add "..." token.
4156 * eval.c (make_params): Handle varargs.
4157 * gdbtypes.c (lookup_function_type_with_arguments): Handle
4158 varargs.
4159
71918a86
TT
41602012-07-06 Tom Tromey <tromey@redhat.com>
4161
4162 PR exp/9608:
4163 * c-exp.y (%union) <tvec>: Change type.
4164 (func_mod): Now uses <tvec> type.
4165 (exp): Update for tvec change.
4166 (direct_abs_decl): Push the typelist.
4167 (func_mod): Return a typelist.
4168 (nonempty_typelist): Update for tvec change.
4169 * gdbtypes.c (lookup_function_type_with_arguments): New function.
4170 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
4171 * parse.c (pop_type_list): New function.
4172 (push_typelist): New function.
4173 (follow_types): Handle tp_function_with_arguments.
4174 * parser-defs.h (type_ptr): New typedef. Define a VEC.
4175 (enum type_pieces) <tp_function_with_arguments>: New constant.
4176 (union type_stack_elt) <typelist_val>: New field.
4177 (push_typelist): Declare.
4178
fcde5961
TT
41792012-07-06 Tom Tromey <tromey@redhat.com>
4180
4181 * c-exp.y (%union) <type_stack>: New field.
4182 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
4183 (ptr_operator_ts): New production.
4184 (ptype): Update.
4185 * parse.c (type_stack_reserve): New function.
4186 (check_type_stack_depth): Use it.
4187 (pop_type_stack, append_type_stack, push_type_stack)
4188 (get_type_stack, type_stack_cleanup): New functions.
4189 (follow_types): Handle tp_type_stack.
4190 (_initialize_parse): Simplify initialization.
4191 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
4192 constant.
4193 (union type_stack_elt) <stack_val>: New field.
4194 (get_type_stack, append_type_stack, push_type_stack)
4195 (type_stack_cleanup): Declare.
4196
1a7d0ce4
TT
41972012-07-06 Tom Tromey <tromey@redhat.com>
4198
4199 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
4200 Remove.
4201 (struct type_stack): New.
4202 * parse.c (type_stack, type_stack_size, type_stack_depth):
4203 Remove.
4204 (type_stack): New global.
4205 (parse_exp_in_context, check_type_stack_depth)
4206 (insert_into_type_stack, insert_type, push_type, push_type_int)
4207 (insert_type_address_space, pop_type, pop_type_int)
4208 (_initialize_parse): Update.
4209
16d01384
TT
42102012-07-06 Tom Tromey <tromey@redhat.com>
4211
4212 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
4213 Remove %type.
4214
9bfc60bf
SP
42152012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4216
4217 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
4218
d5161074
SP
42192012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4220 Jan Kratochvil <jan.kratochvil@redhat.com>
4221
4222 * cp-valprint.c (cp_print_value): Replace potentially unsafe
4223 alloca with xmalloc/xfree.
4224
a74bc576
SP
42252012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
4226
4227 * MAINTAINERS (Write After Approval): Add myself to the list.
4228
667e0a4b
DE
42292012-07-05 Doug Evans <dje@google.com>
4230
4231 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
4232
34b536a8
HZ
42332012-07-05 Hui Zhu <hui_zhu@mentor.com>
4234
4235 * ax-gdb.c (cli/cli-utils.h): New include.
4236 (linespec.h): Ditto.
4237 (agent_eval_command_one): New function.
4238 (agent_command_1): Ditto.
4239 (agent_command): Call function agent_command_1.
4240 (agent_eval_command): Ditto.
4241 (_initialize_ax_gdb): Change help for "maint agent"
4242 and "maint agent-eval".
4243
e6f0bce7
HZ
42442012-07-05 Hui Zhu <hui_zhu@mentor.com>
4245
4246 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
4247 * cli/cli-utils.c (check_for_argument): New function.
4248 * cli/cli-utils.h (check_for_argument): Ditto.
4249
1b3371b1
L
42502012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4251
4252 * NEWS: Mention x32 ABI support.
4253
23e2d720
L
42542012-07-04 H.J. Lu <hongjiu.lu@intel.com>
4255
4256 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
4257 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
4258
4259 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
4260 and pc_regnum_from_eax to -1. Update SP regnum from
4261 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
4262 needed.
4263
4264 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
4265 pc_regnum_from_eax.
4266
836bf454
JK
42672012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4268
4269 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
4270 * dwarf2expr.h: Include gdbtypes.h.
4271 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
4272 these forward declarations.
4273 (cu_offset, sect_offset): Move these ...
4274 * gdbtypes.h: Remove include dwarf2expr.h.
4275 (cu_offset, sect_offset): ... here.
4276
1e55e04f
L
42772012-07-03 H.J. Lu <hongjiu.lu@intel.com>
4278
4279 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
4280 (amd64_linux_sigtramp_code): This.
4281 (amd64_x32_linux_sigtramp_code): New.
4282 (LINUX_SIGTRAMP_LEN): Updated.
4283 (amd64_linux_sigtramp_start): Check x32 sigtramp.
4284
7d0e21ad
JK
42852012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4286
4287 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
4288
8775fd2d
JK
42892012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4290
4291 * config.in: Regenerate.
4292 * configure: Regenerate.
4293 * configure.ac: Remove check for gnu/libc-version.h.
4294 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
4295 gnu/libc-version.h.
4296 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
4297 variables libc_version, libc_major and libc_minor. Replace sscanf by
4298 inferior_has_bug. Extend the comment.
4299
fcb44371
JK
43002012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4301
4302 * linux-thread-db.c (inferior_has_bug): New function.
4303 (thread_db_find_new_threads_silently): Return boolean as checked by
4304 inferior_has_bug, describe it in the comments.
4305 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
4306 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 4307 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
4308 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
4309 if UNTIL_NO_NEW,
4310
09406207
DE
43112012-07-02 Doug Evans <dje@google.com>
4312
0907af0c
DE
4313 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
4314 related to queue management.
4315
09406207
DE
4316 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
4317 instead of "debug dwarf2-die" in debugging printfs.
4318 (create_debug_info_hash_table_reader): Ditto.
4319 (create_debug_info_hash_table): Ditto.
4320 (init_dwo_file): Ditto.
4321 (init_cutu_and_read_dies): Add debugging printf.
4322 (init_cutu_and_read_dies_no_follow): Ditto.
4323 (process_psymtab_comp_unit_reader): Ditto.
4324
d3ce09f5
SS
43252012-07-02 Stan Shebs <stan@codesourcery.com>
4326
4327 Add target-side support for dynamic printf.
4328 * NEWS: Mention the additional style.
4329 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
4330 (struct bp_location): New field cmd_bytecode.
4331 * breakpoint.c: Include format.h.
4332 (disconnected_dprintf): New global.
4333 (parse_cmd_to_aexpr): New function.
4334 (build_target_command_list): New function.
4335 (insert_bp_location): Call it.
4336 (remove_breakpoints_pid): Skip dprintf breakpoints.
4337 (print_one_breakpoint_location): Ditto.
4338 (dprintf_style_agent): New global.
4339 (dprintf_style_enums): Add dprintf_style_agent.
4340 (update_dprintf_command_list): Add agent case.
4341 (agent_printf_command): New function.
4342 (_initialize_breakpoint): Add new commands.
4343 * common/ax.def (printf): New bytecode.
4344 * ax.h (ax_string): Declare.
4345 * ax-gdb.h (gen_printf): Declare.
4346 * ax-gdb.c: Include cli-utils.h, format.h.
4347 (gen_printf): New function.
4348 (maint_agent_print_command): New function.
4349 (_initialize_ax_gdb): Add maint agent-printf command.
4350 * ax-general.c (ax_string): New function.
4351 (ax_print): Add printf disassembly.
4352 * Makefile.in (SFILES): Add format.c
4353 (COMMON_OBS): Add format.o.
4354 * common/format.h: New file.
4355 * common/format.c: New file.
4356 * printcmd.c: Include format.h.
4357 (ui_printf): Call parse_format_string.
4358 * remote.c (remote_state): New field breakpoint_commands.
4359 (PACKET_BreakpointCommands): New enum.
4360 (remote_breakpoint_commands_feature): New function.
4361 (remote_protocol_features): Add new BreakpointCommands entry.
4362 (remote_can_run_breakpoint_commands): New function.
4363 (remote_add_target_side_commands): New function.
4364 (remote_insert_breakpoint): Call it.
4365 (remote_insert_hw_breakpoint): Ditto.
4366 (_initialize_remote): Add new packet configuration for
4367 target-side breakpoint commands.
4368 * target.h (struct target_ops): New field
4369 to_can_run_breakpoint_commands.
4370 (target_can_run_breakpoint_commands): New macro.
4371 * target.c (update_current_target): Handle
4372 to_can_run_breakpoint_commands.
4373
2d7b58e8
JK
43742012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4375
4376 Execute -ix and -iex only after system and user gdbinit files.
4377 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
4378 processing down after gdbinit files.
4379
8690e634
JK
43802012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4381
4382 Add fnmatch-gnu module.
4383 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
4384 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
4385 * gnulib/aclocal.m4: Regenerate.
4386 * gnulib/config.in: Regenerate.
4387 * gnulib/configure: Regenerate.
4388 * gnulib/import/dummy.c: Remove.
4389 * gnulib/import/Makefile.am: Regenerate.
4390 * gnulib/import/Makefile.in: Likewise.
4391 * gnulib/import/m4/gnulib-cache.m4: Likewise.
4392 * gnulib/import/m4/gnulib-comp.m4: Likewise.
4393 * gnulib/import/alloca.c: New file.
4394 * gnulib/import/alloca.in.h: Likewise.
4395 * gnulib/import/config.charset: Likewise.
4396 * gnulib/import/fnmatch.c: Likewise.
4397 * gnulib/import/fnmatch.in.h: Likewise.
4398 * gnulib/import/fnmatch_loop.c: Likewise.
4399 * gnulib/import/localcharset.c: Likewise.
4400 * gnulib/import/localcharset.h: Likewise.
4401 * gnulib/import/m4/alloca.m4: Likewise.
4402 * gnulib/import/m4/codeset.m4: Likewise.
4403 * gnulib/import/m4/configmake.m4: Likewise.
4404 * gnulib/import/m4/fcntl-o.m4: Likewise.
4405 * gnulib/import/m4/fnmatch.m4: Likewise.
4406 * gnulib/import/m4/glibc21.m4: Likewise.
4407 * gnulib/import/m4/localcharset.m4: Likewise.
4408 * gnulib/import/m4/locale-fr.m4: Likewise.
4409 * gnulib/import/m4/locale-ja.m4: Likewise.
4410 * gnulib/import/m4/locale-zh.m4: Likewise.
4411 * gnulib/import/m4/mbrtowc.m4: Likewise.
4412 * gnulib/import/m4/mbsinit.m4: Likewise.
4413 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
4414 * gnulib/import/m4/mbstate_t.m4: Likewise.
4415 * gnulib/import/m4/stdbool.m4: Likewise.
4416 * gnulib/import/m4/wchar_h.m4: Likewise.
4417 * gnulib/import/m4/wctype_h.m4: Likewise.
4418 * gnulib/import/m4/wint_t.m4: Likewise.
4419 * gnulib/import/mbrtowc.c: Likewise.
4420 * gnulib/import/mbsinit.c: Likewise.
4421 * gnulib/import/mbsrtowcs-impl.h: Likewise.
4422 * gnulib/import/mbsrtowcs-state.c: Likewise.
4423 * gnulib/import/mbsrtowcs.c: Likewise.
4424 * gnulib/import/ref-add.sin: Likewise.
4425 * gnulib/import/ref-del.sin: Likewise.
4426 * gnulib/import/stdbool.in.h: Likewise.
4427 * gnulib/import/streq.h: Likewise.
4428 * gnulib/import/strnlen1.c: Likewise.
4429 * gnulib/import/strnlen1.h: Likewise.
4430 * gnulib/import/verify.h: Likewise.
4431 * gnulib/import/wchar.in.h: Likewise.
4432 * gnulib/import/wctype.in.h: Likewise.
4433
202cbf1c
JK
44342012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4435
4436 Support shell wildcards for 'set auto-load safe-path'.
4437 * auto-load.c: Include fnmatch.h.
4438 (filename_is_in_dir): Rename to ...
4439 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
4440 it. Update function comment. Rename dir_len to pattern_len. New
4441 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
4442 messages. Use gdb_filename_fnmatch.
4443 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
4444 pattern.
4445 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
4446 * defs.h (gdb_filename_fnmatch): New declaration.
4447 * utils.c: Include fnmatch.h.
4448 (gdb_filename_fnmatch): New function.
4449
fb7b5af4
SDJ
44502012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
4451
4452 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
4453 `-probe' and `-probe-stap' options.
4454
72d0e2c5
YQ
44552012-07-01 Yao Qi <yao@codesourcery.com>
4456
4457 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
4458 always_inserted_off, and always_inserted_enums.
4459 Change always_inserted_mode's type to 'enum auto_boolean'.
4460 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
4461 callers.
4462 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
4463 of add_setshow_enum_cmd.
4464 * infrun.c: Remove can_use_displaced_stepping_auto,
4465 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
4466 can_use_displaced_stepping_enum.
4467 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
4468 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
4469 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
4470 add_setshow_enum_cmd.
4471
42e7ad6c
DE
44722012-06-30 Doug Evans <dje@google.com>
4473
4474 * dwarf2read.c (signatured_type): Make "per_cu" member first.
4475 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
4476 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
4477
39cf75f7
DE
44782012-06-29 Doug Evans <dje@google.com>
4479
4480 * linespec.c: #include "stack.h".
4481 (decode_line_with_current_source): Moved here from symtab.c and
4482 renamed from decode_line_spec. All callers updated.
4483 (decode_line_with_last_displayed): Moved here from breakpoint.c and
4484 renamed from decode_line_spec_1. All callers updated.
4485 * linespec.h (decode_line_with_current_source): Move declaration here
4486 from symtab.h and renamed from decode_line_spec.
4487 (decode_line_with_last_displayed): Move declaration here from symtab.h
4488 and renamed from decode_line_spec_1.
4489 * macrocmd.c: #include "linespec.h".
4490 * symtab.c: Remove #include "linespec.h".
4491
433df2d4
DE
44922012-06-28 Doug Evans <dje@google.com>
4493
1ce1cefd
DE
4494 * dwarf2read.c (get_cu_length): New function.
4495 (offset_in_cu_p, error_check_comp_unit_head): Call it.
4496 (create_debug_types_hash_table): Ditto.
4497 (init_cutu_and_read_dies): Ditto.
4498 (init_cutu_and_read_dies_no_follow): Ditto.
4499
3b80fe9b
DE
4500 * dwarf2read.c (dwarf2_find_base_address): Move definition.
4501
433df2d4
DE
4502 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
4503 (struct abbrev_table): Define.
4504 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
4505 abbrev_table.
4506 (init_cutu_and_read_dies): Update.
4507 (abbrev_table_alloc_abbrev): New function. Replaces
4508 dwarf_alloc_abbrev. All callers updated.
4509 (abbrev_table_add_abbrev): New function.
4510 (abbrev_table_lookup_abbrev): New function. Replaces
4511 dwarf2_lookup_abbrev. All callers updated.
4512 (abbrev_table_read_table): New function. Contents moved here from
4513 dwarf2_read_abbrevs.
4514 (dwarf2_read_abbrevs): Call it.
4515 (abbrev_table_free): New function.
4516 (dwarf2_free_abbrev_table): Call it.
4517
71caed83
SS
45182012-06-28 Stan Shebs <stan@codesourcery.com>
4519
4520 * osdata.c (info_osdata_command): Filter out "Title" columns
4521 from non-MI uses.
4522 * common/linux-osdata.c (struct osdata_type): Add title field.
4523 (osdata_table): Add titles to each entry.
4524 (linux_command_xfer_osdata): Add a column for title data.
4525
37ce89eb
SS
45262012-06-28 Stan Shebs <stan@codesourcery.com>
4527
4528 Make logging work for MI.
4529 * NEWS: Mention it.
4530 * interps.h (interp_set_logging_ftype): New typedef.
4531 (struct interp_procs): New field set_logging_proc.
4532 (current_interp_set_logging): Declare.
4533 * interps.c (current_interp_set_logging): New function.
4534 * cli/cli-logging.c: Include interps.h.
4535 (set_logging_redirect): Call current_interp_set_logging.
4536 (pop_output_files): Ditto.
4537 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
4538 * mi/mi-console.h (mi_console_set_raw): Declare.
4539 * mi/mi-console.c (mi_console_set_raw): New function.
4540 * mi/mi-interp.c (saved_raw_stdout): New global.
4541 (mi_set_logging): New function.
4542 (_initialize_mi_interp): Add it to interp procs.
4543
659c9f3a
DE
45442012-06-28 Doug Evans <dje@google.com>
4545
a743abeb
DE
4546 * symtab.c (lookup_symbol_aux_objfile): Use
4547 ALL_OBJFILE_PRIMARY_SYMTABS.
4548
659c9f3a
DE
4549 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
4550
da2d6d3d
JK
45512012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4552
4553 * common/buffer.c: Include inttypes.h and stdint.h.
4554 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
4555
e5ef252a
PA
45562012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
4557 Pedro Alves <palves@redhat.com>
4558
4559 * gdbthread.h (ALL_THREADS): New macro.
4560 (thread_list): Declare.
4561 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
4562 going, but instead fall through to the stepping handling.
4563 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
4564 the passed in signal. Adjust debug output.
4565 (resume_callback): Rename to ...
4566 (linux_nat_resume_callback): ... this. Pass the thread's last
4567 stop signal, if in "pass" state.
4568 (linux_nat_resume): Adjust to rename.
4569 (stop_wait_callback): New assertion. Don't respawn signals;
4570 instead let the LWP remain with SIGNALLED set.
4571 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
4572 * remote.c (append_pending_thread_resumptions): New.
4573 (remote_vcont_resume): Call it.
4574 * target.h (target_resume): Extend comment.
4575
1d7975eb
IS
45762012-06-28 Iain Sandoe <iain@codesourcery.com>
4577
4578 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
4579
2e3cf129
DE
45802012-06-27 Doug Evans <dje@google.com>
4581
4582 * dwarf2read.c (dwarf2_cu): Add ranges_base.
4583 Delete have_addr_base, unused. All uses updated.
4584 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
4585 (dwarf2_get_pc_bounds): Add ranges_base.
4586 (dwarf2_record_block_ranges): Ditto.
4587
1bb9788d
TT
45882012-06-27 Tom Tromey <tromey@redhat.com>
4589
4590 PR macros/7961:
4591 * varobj.c (varobj_create): Update.
4592 (varobj_set_value): Update.
4593 * tracepoint.c (validate_actionline): Update.
4594 (encode_actions_1): Update.
4595 * parse.c (parse_exp_1): Add 'pc' argument.
4596 (parse_exp_in_context): Add 'pc' argument. Change how
4597 expression_context_pc is set.
4598 (parse_expression): Update.
4599 (parse_field_expression): Update.
4600 * expression.h (parse_exp_1): Update.
4601 * eval.c (parse_to_comma_and_eval): Update.
4602 * breakpoint.c (set_breakpoint_condition): Update.
4603 (update_watchpoint): Update.
4604 (init_breakpoint_sal): Update
4605 (find_condition_and_thread): Update.
4606 (watch_command_1): Update.
4607 (update_breakpoint_locations): Update.
4608 * ada-lang.c (ada_read_renaming_var_value): Update.
4609 (create_excep_cond_exprs): Update.
4610
0bc3a05c
DE
46112012-06-27 Doug Evans <dje@google.com>
4612
4613 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
4614 type units.
4615
4bdcc0c1
DE
46162012-06-26 Doug Evans <dje@google.com>
4617
4618 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
4619 prototype.
4620 (error_check_comp_unit_head): New arg abbrev_section. All callers
4621 updated.
4622 (read_and_check_comp_unit_head): Ditto.
4623 (read_and_check_type_unit_head): Ditto.
4624
ee0bf529
SCR
46252012-06-26 Siva Chandra Reddy <sivachandra@google.com>
4626
4627 New attribute 'last' for gdb.Symtab_and_line.
4628 * NEWS (Python Scripting): Add entry about the new attribute.
4629 * python/py-symtab.c (salpy_get_last): New function which
4630 implements the get method for the 'last' attribute of
4631 gdb.Symtab_and_line.
4632 (sal_object_getset): Add entry for the 'last' attribute.
4633
1c658ad5
DE
46342012-06-26 Doug Evans <dje@google.com>
4635
09262596
DE
4636 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
4637 (dwo_sections): Add macinfo, macro.
4638 (dwarf2_locate_dwo_sections): Watch for macro sections.
4639 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
4640 All callers updated. Handle DWO files.
4641
45cfd468
DE
4642 * NEWS: Mention new options "set debug dwarf2-read" and
4643 "set debug symtab-create".
4644 * dwarf2read.c (dwarf2_read_debug): New static global.
4645 (dwarf2_build_psymtabs_hard): Add debugging printfs.
4646 (process_queue): Ditto.
4647 (process_full_comp_unit): Ditto.
4648 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
4649 * elfread.c (elf_symfile_read): Add debugging printf.
4650 * minsyms.c (install_minimal_symbols): Ditto.
4651 * psymtab.c (allocate_psymtab): Ditto.
4652 * symfile.c (allocate_symtab): Ditto.
4653 * symtab.c (symtab_create_debug): New global.
4654 (_initialize_symtab): Add new option "set debug symtab-create".
4655 * symtab.h (symtab_create_debug): Declare.
4656
1c658ad5
DE
4657 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
4658 (lookup_dwo_type_unit): Ditto.
4659
6fea9e18
L
46602012-06-26 Roland McGrath <roland@hack.frob.com>
4661 H.J. Lu <hongjiu.lu@intel.com>
4662
4663 * amd64-linux-nat.c: Include <sys/user.h>.
4664 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
4665 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
4666 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
4667
4668 * configure.ac: Check if the fs_base and gs_base members of
4669 `struct user_regs_struct' exist.
4670 * config.in: Regenerated.
4671 * configure: Likewise.
4672
adb4fe3b
ME
46732012-06-25 Michael Eager <eager@eagercon.com>
4674
4675 PR python/14291
f782ad9b 4676 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 4677
fc51cce1
MGD
46782012-06-25 Greta Yorsh <greta.yorsh@arm.com>
4679
4680 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
4681 register as a stack alignment in ARM mode.
4682
40a73391
JK
46832012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4684
4685 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
4686 * gnulib/config.in: Regenerate.
4687 * gnulib/configure: Likewise.
4688 * gnulib/import/m4/extensions.m4: Update it.
4689 * gnulib/import/m4/gnulib-common.m4: Likewise.
4690 * gnulib/import/m4/memmem.m4: Likewise.
4691 * gnulib/import/m4/mmap-anon.m4: Likewise.
4692 * gnulib/import/m4/multiarch.m4: Likewise.
4693 * gnulib/import/stdint.in.h: Likewise.
4694
972daa01
YQ
46952012-06-24 Yao Qi <yao@codesourcery.com>
4696
4697 * corefile.c (write_memory_with_notification): New.
4698 * gdbcore.h: Declare write_memory_with_notification.
4699 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
4700 'observer_notify_memory_changed' with 'write_memory_with_notification'.
4701 * valops.c (value_assign): Likewise.
4702 * python/py-inferior.c (infpy_write_memory): Call
4703 'write_memory_with_notification'.
4704
8d6e0714
JK
47052012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
4706
4707 * cc-with-index.sh: Use also -ex "set auto-load no".
4708
156942c7
DE
47092012-06-23 Doug Evans <dje@google.com>
4710
4711 PR 14125
4712 * NEWS: Document additions to .gdb_index.
4713 * dwarf2read.c: #include "gdb/gdb-index.h".
4714 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
4715 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
4716 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
4717 (dwarf2_read_index): Recognize version 7.
4718 (dw2_do_expand_symtabs_matching): New args want_specific_block,
4719 block_kind, domain): All callers updated.
4720 (dw2_find_symbol_file): Handle new index CU values.
4721 (dw2_expand_symtabs_matching): Match symbol kind if requested.
4722 (add_index_entry): New args is_static, kind. All callers updated.
4723 (offset_type_compare, uniquify_cu_indices): New functions
4724 (symbol_kind): New function.
4725 (write_psymtabs_to_index): Remove duplicate CU values.
4726 (write_psymtabs_to_index): Write .gdb_index version 7.
4727
352b3eda
JB
47282012-06-22 Joel Brobecker <brobecker@adacore.com>
4729
4730 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
4731 * configure: Regenerate.
4732
2678e2af
YQ
47332012-06-20 Yao Qi <yao@codesourcery.com>
4734
4735 * python/py-inferior.c: Update comments of infpy_read_memory
4736 and infpy_write_memory.
4737
95c391b6
TT
47382012-06-19 Tom Tromey <tromey@redhat.com>
4739
4740 PR exp/9514:
4741 * parser-defs.h (insert_type, insert_type_address_space): Declare.
4742 (push_type_address_space): Remove.
4743 * parse.c (insert_into_type_stack): New function.
4744 (insert_type): Likewise.
4745 (insert_type_address_space): Rename from push_type_address_space.
4746 Insert tp_space_identifier.
4747 * c-exp.y (ptr_operator): New production.
4748 (abs_decl): Use ptr_operator.
4749 (space_identifier): Call insert_type_address_space.
4750 (ptype): Don't use const_or_volatile_or_space_identifier.
4751 (const_or_volatile_noopt): Call insert_type.
4752 (conversion_type_id, conversion_declarator): New productions.
4753 (operator): Use conversion_type_id.
4754
6ac9ef80
DE
47552012-06-18 Doug Evans <dje@google.com>
4756
422d65e7
DE
4757 * symtab.h (minimal_symbol): New member created_by_gdb.
4758 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
4759 created by gdb.
4760 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
4761 (search_symbols): Call it instead of lookup_symbol.
4762 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
4763
49f6c839
DE
4764 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
4765 Adjust address for DW_OP_GNU_addr_index.
4766 * dwarf2expr.h (dwarf_expr_context): Update comment.
4767 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
4768 all callers updated. Handle TLS vars described with
4769 DW_OP_GNU_const_index.
4770 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
4771 and DW_OP_GNU_const_index.
4772 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
4773
6ac9ef80
DE
4774 * block.c (find_block_in_blockvector): Make explicit the fact that we
4775 ignore GLOBAL_BLOCK.
4776
4cd18215
TT
47772012-06-18 Tom Tromey <tromey@redhat.com>
4778
4779 * c-exp.y (operator): Remove trailing space after "delete" and
4780 "delete[]".
4781
a9b8d892
JK
47822012-06-18 Mark Kettenis <kettenis@gnu.org>
4783 Jan Kratochvil <jan.kratochvil@redhat.com>
4784
4785 Switch i386 and derived targets to ON_STACK.
4786 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
4787 (amd64_dicos_init_abi): Remove its installment.
4788 * dicos-tdep.c (dicos_init_abi): Remove the
4789 set_gdbarch_call_dummy_location call. Update the comment here.
4790 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
4791 (i386_dicos_init_abi): Remove its installment.
4792 * i386-tdep.c (i386_push_dummy_code): New function.
4793 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
4794 i386_push_dummy_code.
4795
e2e4d78b
JK
47962012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
4797
4798 Remove stale dummy frames.
4799 * breakpoint.c: Include dummy-frame.h.
4800 (longjmp_breakpoint_ops): New variable.
4801 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
4802 bp_longjmp_call_dummy.
4803 (bpstat_what, bptype_string, print_one_breakpoint_location)
4804 (init_bp_location): Support bp_longjmp_call_dummy.
4805 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
4806 (set_longjmp_breakpoint_for_call_dummy)
4807 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
4808 functions.
4809 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
4810 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
4811 FIXME comment and extend the other comment for bp_call_dummy.
4812 (set_longjmp_breakpoint_for_call_dummy)
4813 (check_longjmp_breakpoint_for_call_dummy): New declarations.
4814 * dummy-frame.c: Include gdbthread.h.
4815 (pop_dummy_frame_bpt): New function.
4816 (pop_dummy_frame): Call pop_dummy_frame_bpt.
4817 (dummy_frame_discard): New function.
4818 (cleanup_dummy_frames): Update the comment about longjmps.
4819 * dummy-frame.h (dummy_frame_discard): New declaration.
4820 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
4821 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
4822 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
4823 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
4824 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
4825 keep_going if IS_LONGJMP and there is no other reason to stop.
4826
09d5912c
TT
48272012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
4828
4829 * remote-sim.c (sim_command_completer): Initialize
4830 variable 'result'.
4831
1788b2d3
JK
48322012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4833
4834 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
4835 * dwarf2loc.c (call_site_parameter_matches): Support
4836 CALL_SITE_PARAMETER_PARAM_OFFSET.
4837 (needs_dwarf_reg_entry_value): Push stub value.
4838 * dwarf2read.c (read_call_site_scope): New variable origin. Support
4839 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
4840 * gdbtypes.h (enum call_site_parameter_kind): New item
4841 CALL_SITE_PARAMETER_PARAM_OFFSET.
4842 (struct call_site.parameter.u): New field param_offset.
4843
24c5c679
JK
48442012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
4845
4846 Code cleanup: Generalize call_site.parameter key.
4847 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
4848 variable dwarf_reg. New variable kind_u. Update parameters to
4849 push_dwarf_reg_entry_value.
4850 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4851 * dwarf2expr.h (enum call_site_parameter_kind)
4852 (union call_site_parameter_u): Forward declarations.
4853 (struct dwarf_expr_context_funcs): Update parameters and their
4854 description for push_dwarf_reg_entry_value.
4855 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
4856 * dwarf2loc.c (call_site_parameter_matches): New function.
4857 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
4858 description. Use call_site_parameter_matches.
4859 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
4860 Update parameters and their description.
4861 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
4862 New variable kind_u. Adjust the caller for updated parameters.
4863 (needs_dwarf_reg_entry_value): Update parameters.
4864 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
4865 instead of attr. Update for the changed fields of struct
4866 call_site_parameter.
4867 * gdbtypes.h: Include dwarf2expr.h.
4868 (enum call_site_parameter_kind): New.
4869 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
4870 fb_offset into new union u.
4871
ac142d96
L
48722012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4873
4874 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
4875 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
4876 for x32.
4877
ba224c70
L
48782012-06-16 H.J. Lu <hongjiu.lu@intel.com>
4879
4880 * amd64-linux-nat.c (compat_x32_clock_t): New.
4881 (compat_x32_siginfo_t): Likewise.
4882 (compat_x32_siginfo_from_siginfo): Likewise.
4883 (siginfo_from_compat_x32_siginfo): Likewise.
4884 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
4885 and siginfo_from_compat_x32_siginfo for x32.
4886
7ecbc825
HZ
48872012-06-15 Hui Zhu <hui_zhu@mentor.com>
4888
4889 * tracepoint.c (tfile_xfer_partial): Add a lseek.
4890
233dfcf0
L
48912012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4892
4893 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
4894 instead of gdbarch_ptr_bit.
4895 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
4896 (amd64_supply_native_gregset): Likewise.
4897 (amd64_collect_native_gregset): Likewise.
4898 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
4899 (amd64_supply_xsave): Likewise.
4900 (amd64_collect_fxsave): Likewise.
4901 (amd64_collect_xsave): Likewise.
4902
6da38f42
L
49032012-06-15 H.J. Lu <hongjiu.lu@intel.com>
4904
4905 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
4906 (amd64_linux_read_description): Check DS segment register for
4907 x32 process.
4908
663b969e
TT
49092012-06-15 Tom Tromey <tromey@redhat.com>
4910
4911 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
4912 init_cutu_and_read_dies.
4913
d6f05027
IS
49142012-06-15 Iain Sandoe <iain@codesourcery.com>
4915
4916 * MAINTAINERS (Write After Approval): Add myself to the list.
4917
6598ed07
TT
49182012-06-15 Tom Tromey <tromey@redhat.com>
4919
4920 * valops.c (value_find_oload_method_list): Now static.
4921 * value.h (value_find_oload_method_list): Don't declare.
4922
2b214ea6
TT
49232012-06-15 Tom Tromey <tromey@redhat.com>
4924
4925 * valops.c (find_overload_match): Use value_ind.
4926
a210c238
MR
49272012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
4928
4929 * infrun.c (handle_inferior_event): Correct indentation.
4930
3771a44c
DE
49312012-06-14 Doug Evans <dje@google.com>
4932
4933 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
4934 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
4935 All uses updated.
4936 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
4937 updated. Handle DEBUG_LOC_START_LENGTH.
4938 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
4939 (loclist_describe_location): Ditto.
4940
1c5a993e
MR
49412012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
4942
4943 PR backtrace/13866
4944 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
4945 after hiding inline functions.
4946
0b155465
JB
49472012-06-13 Joel Brobecker <brobecker@adacore.com>
4948
4949 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
4950 _initialize_inf_ttrace.
4951
45717bac
JB
49522012-06-13 Joel Brobecker <brobecker@adacore.com>
4953
4954 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
4955 _initialize_hppa_hpux_nat.
4956
34370865
JB
49572012-06-13 Joel Brobecker <brobecker@adacore.com>
4958
4959 * remote-sim.c (sim_command_completer): Change type of return
4960 value to "VEC (char_ptr) *". Adjust implementation accordingly.
4961
284c5a60
MK
49622012-06-13 Mark Kettenis <kettenis@gnu.org>
4963 Jan Kratochvil <jan.kratochvil@redhat.com>
4964
4965 PR tdep/14222
4966 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
4967 stack on a 16-byte boundary.
4968
2535757a
TT
49692012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
4970
4971 * jit.c (finalize_symtab): Set function's return type to 'void' by
4972 default.
4973
fff4548b
MK
49742012-06-13 Mark Kettenis <kettenis@gnu.org>
4975 H.J. Lu <hongjiu.lu@intel.com>
4976
5a83521a
MK
4977 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
4978 Move bits common to both the classic LP64 and the new x32 ILP32
4979 ABI here.
4980 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
4981 (amd64_x32_linux_init_abi): New function.
4982 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
4983 subtype.
4984
fff4548b
MK
4985 * i386-tdep.h (i386_pseudo_register_name): New prototype.
4986 * i386-tdep.c (i386_pseudo_register_name): Make public.
4987 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
4988 * amd64-tdep.c (amd64_dword_names): Add "eip".
4989 (amd64_x32_pseudo_register_type): New function
4990 (amd64_x32_init_abi): New function.
4991
dd80ea3c
JK
49922012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4993
4994 PR build/14003
4995 * inferior.h (struct inferior_suspend_state): Comment out.
4996 (struct inferior): Comment out the field suspend.
4997 * infrun.c (struct infcall_suspend_state): Comment out the field
4998 inferior_suspend.
4999 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
5000 out its assignment.
5001
50af5481
JK
50022012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
5003
5004 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
5005 * c-exp.y (classify_inner_name): Remove caller assumptions in the
5006 function comment. Return ERROR for unresolved cases. Implement
5007 returning proper NAME.
5008 (yylex): Accept also NAME from classify_inner_name.
5009 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
5010 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
5011 LOC_TYPEDEF type.
5012 * cp-support.h (cp_lookup_nested_type): Update its declaration.
5013
d55637df
TT
50142012-06-13 Tom Tromey <tromey@redhat.com>
5015
5016 * breakpoint.c (condition_completer): New function.
5017 (_initialize_breakpoint): Use it.
5018 * value.c (complete_internalvar): New function.
5019 * value.h (complete_internalvar): Declare.
5020
49c4e619
TT
50212012-06-13 Tom Tromey <tromey@redhat.com>
5022
5023 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
5024 * breakpoint.c (catch_syscall_completer): Return a VEC.
5025 * cli/cli-cmds.c (complete_command): Update.
5026 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
5027 (complete_on_enum): Likewise.
5028 * command.h: Include gdb_vecs.h.
5029 (completer_ftype): Change return type.
5030 (complete_on_cmdlist, complete_on_enum): Likewise.
5031 * completer.c (noop_completer, filename_completer)
5032 (location_completer): Return a VEC.
5033 (add_struct_fields): Remove 'nextp' argument. Change 'output'
5034 to a VEC.
5035 (expression_completer, complete_line_internal, complete_line)
5036 (command_completer): Return a VEC.
5037 (gdb_completion_word_break_characters, line_completion_function):
5038 Update.
5039 * completer.h: Include gdb_vecs.h.
5040 (complete_line, noop_completer, filename_completer)
5041 (expression_completer, location_completer, command_completer):
5042 Update.
5043 * f-lang.c (f_word_break_characters): Return a VEC.
5044 * interps.c (interpreter_completer): Return a VEC.
5045 * language.h (struct language_defn)
5046 <la_make_symbol_completion_list>: Return a VEC.
5047 * python/py-cmd.c (cmdpy_completer): Return a VEC.
5048 * symtab.c (free_completion_list): Take a VEC.
5049 (return_val_size, return_val_index): Remove.
5050 (return_val): Now a VEC.
5051 (completion_list_add_name): Update.
5052 (default_make_symbol_completion_list_break_on)
5053 (default_make_symbol_completion_list, make_symbol_completion_list)
5054 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
5055 Return a VEC.
5056 (add_filename_to_list): Update.
5057 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
5058 <list>: Now a VEC.
5059 (maybe_add_partial_symtab_filename): Update.
5060 (make_source_files_completion_list): Return a VEC.
5061 * symtab.h (default_make_symbol_completion_list_break_on)
5062 (default_make_symbol_completion_list, make_symbol_completion_list)
5063 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
5064 (make_source_files_completion_list): Update.
5065
625e8578
TT
50662012-06-13 Tom Tromey <tromey@redhat.com>
5067
5068 * breakpoint.c (add_catch_command): Use completer_ftype.
5069 * breakpoint.h: Include command.h.
5070 (add_catch_command): Use completer_ftype.
5071 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
5072 * cli/cli-decode.h (struct cmd_list_element) <completer>:
5073 Use completer_ftype.
5074 * command.h (completer_ftype): New typedef.
5075 (set_cmd_completer): Use it.
5076 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
5077 completer_ftype.
5078
5eb3b062
PA
50792012-06-13 Pedro Alves <palves@redhat.com>
5080
5081 Partial revert of previous change.
5082
5083 * serial.c (scb_base): New global.
5084 (serial_for_fd): New.
5085 (serial_open, serial_fdopen_ops): Link new serial in open serials
5086 chain.
5087 (do_serial_close): Unlink serial from the open serials chain.
5088
8b3ee56d
PA
50892012-06-12 Pedro Alves <palves@redhat.com>
5090
5091 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
5092 threads here.
5093 (prepare_for_detach): No longer context switch here in non-stop
5094 mode.
5095 (fetch_inferior_event): Ditto.
5096 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
5097 to the event thread before removing breakpoints. Switch to the
5098 event thread before inserting breakpoints and resuming.
5099 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
5100 event thread before resuming.
5101 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
5102 Switch to the event thread before removing breakpoints.
5103
5d60742e
EZ
51042012-06-12 Eli Zaretskii <eliz@gnu.org>
5105
5106 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
5107 special characters correctly for the Windows shells. See
5108 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
5109 report.
5110 [!__MINGW32__]: Remove extra double quote character from special
5111 characters.
5112
a6feecf7
SS
51132012-06-11 Stan Shebs <stan@codesourcery.com>
5114
5115 * ui-out.h: Remove #if 0 declarations.
5116 * ui-out.c: Remove #if 0 functions.
5117
ddefb60f
PA
51182012-06-11 Pedro Alves <palves@redhat.com>
5119
5120 * ser-base.c (run_async_handler_and_reschedule): New.
5121 (fd_event, push_event): Use it.
5122 * serial.c (serial_open, serial_fdopen_ops): Set the initial
5123 reference count to 1.
5124 (do_serial_close): Set the bufp field to NULL. Use serial_unref
5125 instead of xfree.
5126 (serial_is_open, serial_ref, serial_unref): New.
5127 * serial.h (serial_open): Adjust comment.
5128 (serial_is_open): Declare.
5129 (serial_close): Adjust comment.
5130 (serial_ref, serial_unref) Declare.
5131 (struct serial): New field 'refcnt'.
5132
d5ad6aa5
PA
51332012-06-11 Pedro Alves <palves@redhat.com>
5134
5135 Remove #if 0'd "connect" command, and unnecessary associated
5136 refcounting and serial reuse bits.
5137
5138 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
5139 * serial.c (last_serial_opened): Delete.
5140 (scb_base): Delete.
5141 (serial_open): Adjust.
5142 (serial_for_fd): Delete.
5143 (serial_fdopen_ops, do_serial_close): Adjust.
5144 (serial_fdopen_ops): Adjust.
5145
318aa544
PA
51462012-06-11 Pedro Alves <palves@redhat.com>
5147
5148 * serial.c (do_serial_close): Remove early return when SCB is
5149 null.
5150
07261596
TT
51512012-06-11 Tom Tromey <tromey@redhat.com>
5152
5153 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
5154
cc80f267
JK
51552012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5156
5157 Fix regression by the "ambiguous linespec" series.
5158 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
5159 get_last_displayed_symtab and get_last_displayed_line and depending
5160 on CURSAL.
5161
356d9f9d
TT
51622012-06-11 Tom Tromey <tromey@redhat.com>
5163
5164 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
5165 (dw2_find_symbol_file): Use it.
5166
232b8704
ME
51672012-06-11 Michael Eager <eager@eagercon.com>
5168
5169 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
5170 * mips-linux-tdep.h (mips_signals): New
5171
e81a37f7
TT
51722012-06-11 Tom Tromey <tromey@redhat.com>
5173
5174 * infrun.c (handle_inferior_event)
5175 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
5176 breakpoint.
5177 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
5178 exception logic in all cases. Update comments.
5179 (insert_longjmp_resume_breakpoint): Set the exception resume
5180 breakpoint.
5181
2e81047f
MR
51822012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
5183
5184 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
5185
4e32eda7
SCR
51862012-06-09 Siva Chandra Reddy <sivachandra@google.com>
5187
5188 * valarith.c (binop_types_user_defined_p): Fix a typo.
5189
18648a37 51902012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 5191 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
5192
5193 * arch-utils.c (default_return_in_first_hidden_param_p): New.
5194 * arch-utils.h: Declare.
5195 * gdbarch.sh: Add return_in_first_hidden_param_p.
5196 * gdbarch.c, gdbarch.h: Regenerated.
5197 * infcall.c (call_function_by_hand): Call
5198 gdbarch_return_in_first_hidden_param_p instead of
5199 language_pass_by_reference.
5200
5201 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
5202 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
5203 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
5204 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
5205 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
5206 `cplus_return_struct_by_reference'.
5207 (tic6x_return_value): Handle language cplusplus.
5208 (tic6x_return_in_first_hidden_param_p): New.
5209 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
5210
034e5797
DE
52112012-06-07 Doug Evans <dje@google.com>
5212
5213 * dwarf2read.c (dwarf2_cu): Add comment.
5214
6a00aa1e
MR
52152012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5216
5217 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
5218 variable.
5219 (mips_eabi_push_dummy_call): Likewise.
5220 (mips_n32n64_push_dummy_call): Likewise.
5221 (mips_o32_push_dummy_call): Likewise.
5222 (mips_o64_push_dummy_call): Likewise.
5223
eaa05d59
MR
52242012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5225
5226 * mips-tdep.c (mips_convert_register_p): Correct coding style.
5227
de13fcf2
MR
52282012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
5229
5230 * mips-tdep.c (mips_pseudo_register_type): Use
5231 mips_float_register_p.
5232
c3a01a22
PA
52332012-06-06 Pedro Alves <palves@redhat.com>
5234
5235 * infrun.c (handle_inferior_event): Remove calls to
5236 reinit_frame_cache that follow a context_switch call.
5237
d25f45d9
PA
52382012-06-06 Pedro Alves <palves@redhat.com>
5239
5240 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
5241 context_switch and remove stale comment.
5242
359f5fe6
PA
52432012-06-06 Pedro Alves <palves@redhat.com>
5244
5245 * infrun.c (struct execution_control_state): Remove
5246 `new_thread_event' field.
5247 (handle_inferior_event): Simplify new threads handling; don't
5248 resume the inferior if we find a new thread.
5249
2d4c29c5
TS
52502012-06-06 Thomas Schwinge <thomas@codesourcery.com>
5251
5252 * NEWS: Document the deprecation of SH's 'regs' command.
5253 * inferior.h (all_registers_info): Add function declaration.
5254 * sh-tdep.c (sh_show_regs): Remove variable.
5255 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
5256 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
5257 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
5258 (sh_show_regs_command): Remove functions.
5259 (sh_gdbarch_init): Don't set sh_show_regs.
5260 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
5261 'info all-registers'.
5262 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
5263 (sh64_show_regs): Remove functions.
5264 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
5265
f5f1cdb6
JK
52662012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
5267
5268 * configure.ac: Move development=true below AC_INIT.
5269 * configure: Regenerate.
5270
bf6309af
SS
52712012-06-05 Stan Shebs <stan@codesourcery.com>
5272
5273 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
5274 gdb_stdout.
5275
45aa4659
JK
52762012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
5277
5278 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
5279 argument as ssize_t.
5280 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
5281 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
5282 * target.c (target_read_stack, target_write_memory)
5283 (target_write_raw_memory): Likewise.
5284 * target.h (target_read_stack, target_write_memory)
5285 (target_write_raw_memory): Likewise.
5286
1b162304
JK
52872012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
5288
5289 * symfile-mem.c: Change gdb_static_assert to ssize_t.
5290 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
5291 * target.c (target_read_memory): Change LEN to ssize_t.
5292 * target.h (target_read_memory): Change LEN to ssize_t.
5293
8556afb4
PA
52942012-06-05 Pedro Alves <palves@redhat.com>
5295
5296 PR backtrace/13866
5297
5298 * breakpoint.c (until_break_command): Only fetch the selected
5299 frame after decode_line_1.
5300
fb139f32
PA
53012012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
5302
5303 * solib-svr4.c (enable_break): Don't fallback to setting the solib
5304 event breakpoint at _start, __start or main if a program
5305 interpreter is not found.
5306
a8e1bb34
JB
53072012-06-05 Joel Brobecker <brobecker@adacore.com>
5308
5309 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
5310 Add declaration.
5311 * windows-tdep.c: #include "objfiles.h".
5312 (windows_iterate_over_objfiles_in_search_order): New function.
5313 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
5314 iterate_over_objfiles_in_search_order gdbarch method to
5315 windows_iterate_over_objfiles_in_search_order.
5316 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
5317
19630284
JB
53182012-06-05 Joel Brobecker <brobecker@adacore.com>
5319
5320 * gdbarch.sh: Add generation of
5321 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
5322 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
5323 (iterate_over_objfiles_in_search_order): New gdbarch method.
5324 * gdbarch.h, gdbarch.c: Regenerate.
5325 * objfiles.h (default_iterate_over_objfiles_in_search_order):
5326 Add declaration.
5327 * objfiles.c (default_iterate_over_objfiles_in_search_order):
5328 New function.
5329 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5330 out of lookup_symbol_aux_symtabs.
5331 (lookup_symbol_aux_symtabs): Replace extracted-out code by
5332 call to lookup_symbol_aux_objfile.
5333 (struct global_sym_lookup_data): New type.
5334 (lookup_symbol_global_iterator_cb): New function.
5335 (lookup_symbol_global): Search for symbol using
5336 gdbarch_iterate_over_objfiles_in_search_order and
5337 lookup_symbol_global_iterator_cb.
5338 * findvar.c (struct minsym_lookup_data): New type.
5339 (minsym_lookup_iterator_cb): New function.
5340 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
5341 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
5342 and minsym_lookup_iterator_cb.
5343
67ff19f7
JB
53442012-06-05 Joel Brobecker <brobecker@adacore.com>
5345
5346 Revert the following patch:
5347 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
5348 try locating the symbol in the symbol's own objfile first, before
5349 extending the search to all objfiles.
5350 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
5351 out of lookup_symbol_aux_symtabs.
5352 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
5353 Replace extracted-out code by call to lookup_symbol_aux_objfile.
5354 Do not search EXCLUDE_OBJFILE.
5355 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
5356 (lookup_symbol_global): Search for matches in the block's objfile
5357 first, before searching all other objfiles.
5358
ccab2054
JB
53592012-06-05 Joel Brobecker <brobecker@adacore.com>
5360
5361 * breakpoint.c (find_condition_and_thread): Stop parsing
5362 as soon as the first invalid keyword is found.
5363
e23d4a9c
JB
53642012-06-05 Joel Brobecker <brobecker@adacore.com>
5365
5366 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
5367
70160166
JB
53682012-06-05 Joel Brobecker <brobecker@adacore.com>
5369
5370 * config/djgpp/djcheck.sh: Add copyright header.
5371
399501a5
JB
53722012-06-05 Joel Brobecker <brobecker@adacore.com>
5373
5374 * copyright.py (update_files, main): Fix path to update-copyright
5375 script.
5376
3770a159
JB
53772012-06-05 Joel Brobecker <brobecker@adacore.com>
5378
5379 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
5380 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
5381 for which a reminder to update by hand is printed.
5382
4aad0dfc
DE
53832012-06-04 Doug Evans <dje@google.com>
5384
5385 * buildsym.c (make_blockvector): Add comment.
5386
1f8cf220
PA
53872012-06-04 Pedro Alves <palves@redhat.com>
5388
5389 * arch-utils.c (default_gdb_signal_from_target): Delete.
5390 * arch-utils.h (default_gdb_signal_from_target): Delete.
5391 * corelow.c (core_open) <signal mapping>: Extended comment. Check
5392 gdbarch_gdb_signal_from_target_p.
5393 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
5394 predicate).
5395 * gdbarch.h: Regenerate.
5396 * gdbarch.c: Regenerate.
5397
86b49880
PA
53982012-06-04 Pedro Alves <palves@redhat.com>
5399
5400 * gdbarch.sh (gdb_signal_from_target): Mention that the
5401 implementation of the method must be host independent.
5402 * gdbarch.h: Regenerate.
5403
fe78531d
JK
54042012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
5405
5406 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
5407 parameters.
5408 (target_read_memory_bfd): New function.
5409 (symbol_file_add_from_memory): Use it.
5410
d790cf0a
DE
54112012-06-03 Doug Evans <dje@google.com>
5412
78e5175a
DE
5413 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
5414 of primary symtab.
5415 (basic_lookup_transparent_type): Ditto.
5416
d790cf0a
DE
5417 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
5418 (ALL_PRIMARY_SYMTABS): Use it.
5419 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
5420 * dwarf2read.c (dw2_find_symbol_file): Ditto.
5421 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
5422 * symtab.c (lookup_symbol_aux_objfile): Ditto.
5423 (basic_lookup_transparent_type): Ditto.
5424
c6e5ee5e
SDJ
54252012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
5426
5427 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
5428 it to optimize resolution of demangled name.
5429
a68ffae9
JK
54302012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5431
5432 * configure.ac (development): Define new variable.
5433 Call AC_CHECK_LIB for mcheck if $development.
5434 (ERROR_ON_WARNING): Enable it by default only if $development.
5435 * config.in: Regenerate.
5436 * configure: Regenerate.
5437
5299c1c4
JK
54382012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
5439
5440 * target.c (target_read_memory): Make LEN argument as size_t.
5441 * target.h (target_read_memory): Likewise.
5442
54432012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
5444
5445 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
5446
0c56f59b
EBM
54472012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
5448
5449 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
5450 BookE interface for PowerPC server processors if not available
5451 in the Linux Kernel.
5452
71bdabee
KS
54532012-05-31 Keith Seitz <keiths@redhat.com>
5454
5455 * linespec.c (decode_objc): Add cleanup to free
5456 INFO.FILE_SYMTABS.
5457 (find_linespec_symbols): Add cleanup to free CLASSES.
5458 * symfile.c (find_separate_debug_file_by_debuglink): Add
5459 cleanup to free DEBUGLINK.
5460 * ui-out.c (clear_header_list): No need to check if
5461 HEADER_NEXT.COLHDR is NULL.
5462 Free HEADER_NEXT.COL_NAME.
5463
acbd605d
MGD
54642012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
5465
5466 * ada-lang.c (standard_lookup): Prevent uninitialized variable
5467 warning.
5468
65662cde
PA
54692012-05-30 Jeff Kenton <jkenton@tilera.com>
5470
5471 * configure.host (gdb_host_cpu): Handle tilegx*.
5472 (gdb_host): Handle tilegx-*-linux*.
5473 * tilegx-linux-nat.c: New file.
5474 * config/tilegx/linux.mh: New file.
5475
ade64f0e
PA
54762012-05-30 Jeff Kenton <jkenton@tilera.com>
5477
5478 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
5479 tilegx-linux-tdep.o.
5480 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
5481 tilegx-linux-tdep.c.
5482 * configure.tgt: Handle tilegx-*-linux*.
5483 * tilegx-tdep.h: New file.
5484 * tilegx-tdep.c: New file.
5485 * tilegx-linux-tdep.c: New file.
5486 * regformats/reg-tilegx.dat: New file.
5487
bb08bdbd
EBM
54882012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
5489
5490 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
5491 accounting of hw watchpoints on ppc.
5492
ebd86fb5
TJB
54932012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
5494
5495 * source.c (openp): Expand tilde in path entries.
5496
0a0edcd5
DE
54972012-05-29 Doug Evans <dje@google.com>
5498
98cc87bd
DE
5499 * buildsym.c (block_compar): Fix comment.
5500 (end_symtab): Fix and clarify some comments.
5501
0a0edcd5
DE
5502 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
5503 cleanup_undefined_types.
5504 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
5505 All callers updated.
5506
6f0c7050
TT
55072012-05-29 Tom Tromey <tromey@redhat.com>
5508
5509 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
5510 fails.
5511 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
5512 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
5513 fails.
5514 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
5515 fails.
5516
ec95993c
TG
55172012-05-29 Tristan Gingold <gingold@adacore.com>
5518
5519 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
5520 (struct darwin_info): ... New struct.
5521 (solib_darwin_pspace_data): New variable.
5522 (darwin_pspace_data_cleanup): New function.
5523 (get_darwin_info): Likewise.
5524 (darwin_dyld_version_ok, darwin_load_image_infos)
5525 (darwin_solib_get_all_image_info_addr_at_init)
5526 (darwin_solib_read_all_image_info_addr): Add info argument.
5527 Adjust code.
5528 (darwin_current_sos): Use per pspace structure.
5529 (darwin_solib_create_inferior_hook): Likewise.
5530 (darwin_clear_solib): Likewise.
5531 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
5532
ae25568b
PA
55332012-05-28 Pedro Alves <palves@redhat.com>
5534
5535 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
5536 block that uses them. Clear ecss before handling each event.
5537
0c5bf5a9
JK
55382012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5539
5540 * solib-svr4.c (svr4_current_sos): New comment on
5541 svr4_current_sos_via_xfer_libraries fall back.
5542
bfb05775
JK
55432012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5544
5545 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
5546 it as a fallback for TYPE_IS_OPAQUE.
5547 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
5548 symbols for lookup_symbol.
5549
685b1105
JK
55502012-05-24 John Steele Scott <toojays@toojays.net>
5551
5552 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
5553 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
5554 (producer_is_gxx_lt_4_6): Move the checking and caching to...
5555 (check_producer): ... this new function, which also checks for ICC
5556 and caches the result.
5557 (producer_is_icc): New function.
5558 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
5559 producer was ICC.
5560
22203bbf
PA
55612012-05-24 Pedro Alves <palves@redhat.com>
5562
5563 PR gdb/7205
5564
5565 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
5566 (default_gdb_signal_to_target): ... this. Add comment.
5567 (default_gdb_signal_from_host): Rename to ...
5568 (default_gdb_signal_from_target): ... this. Add comment.
5569 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
5570 (default_gdb_signal_to_target): ... this.
5571 (default_gdb_signal_from_host): Rename to ...
5572 (default_gdb_signal_from_target): ... this.
5573 * corelow.c (core_open): Adjust to naming change. Replace comment.
5574 * gdbarch.sh (gdb_signal_from_host): Rename to ...
5575 (gdb_signal_from_target): ... this. Adjust to
5576 default_gdb_signal_from_host naming change. Extend comment.
5577 (gdb_signal_to_host): Rename to ...
5578 (gdb_signal_to_target): ... this. Adjust to
5579 default_gdb_signal_to_host naming change.
5580 * gdbarch.h, gdbarch.c: Renegerate.
5581
a493e3e2
PA
55822012-05-24 Pedro Alves <palves@redhat.com>
5583
5584 PR gdb/7205
5585
f782ad9b 5586 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 5587
2ea28649
PA
55882012-05-24 Pedro Alves <palves@redhat.com>
5589
5590 PR gdb/7205
5591
5592 Replace target_signal with gdb_signal throughout.
5593
b09846a9
PA
55942012-05-24 Pedro Alves <palves@redhat.com>
5595
5596 PR tui/14159
5597
5598 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
5599 string, instead of reusing the va_list argument.
5600
e77c107e
TT
56012012-05-24 Tom Tromey <tromey@redhat.com>
5602
5603 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
5604 Remove.
5605
9fccedf7
DE
56062012-05-23 Doug Evans <dje@google.com>
5607
d50bd42b
DE
5608 * symtab.c (search_symbols): Formatting fixes.
5609 (print_symbol_info): Formatting fixes.
5610
9fccedf7
DE
5611 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
5612 int64_t change to leb128 API.
5613 (read_encoded_value, decode_frame_entry_1): Ditto.
5614 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
5615 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
5616 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5617 (execute_stack_op): Ditto.
5618 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
5619 (safe_read_uleb128, safe_read_sleb128): Ditto.
5620 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
5621 (dwarf2_compile_expr_to_ax): Ditto.
5622 (locexpr_describe_location_piece): Ditto.
5623 (disassemble_dwarf_expression): Ditto.
5624 (locexpr_describe_location_1): Ditto.
5625
f3e0e960
SS
56262012-05-23 Stan Shebs <stan@codesourcery.com>
5627 Kwok Cheung Yeung <kcy@codesourcery.com>
5628
5629 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
5630 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
5631 (mi-cmd-info.o): New rule.
5632 * osdata.h (info_osdata_command): New declaration.
5633 * osdata.c (info_osdata_command): Change to non-static.
5634 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
5635 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
5636 * mi/mi-cmd-info.c: New file.
5637
c51fe631
DE
56382012-05-23 Doug Evans <dje@google.com>
5639
71cddcc1
DE
5640 * symtab.c (search_symbols): Pass NULL for file_matcher to
5641 expand_symtabs_matching if there are no files to match.
5642
c51fe631
DE
5643 * gdbtypes.c (lookup_typename): Simplify.
5644
a79378d4
PA
56452012-05-23 Pedro Alves <palves@redhat.com>
5646
5647 * arch-utils.h (default_target_signal_to_host): Delete.
5648 * arch-utils.c (default_target_signal_to_host): Delete.
5649 * gdbarch.sh (target_signal_to_host): Remove.
5650 * gdbarch.h, gdbarch.c: Regenerate.
5651
f664829e
DE
56522012-05-22 Doug Evans <dje@google.com>
5653
5654 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
5655 "const gdb_byte *".
5656 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
5657 (execute_cfa_program): Update to match API of leb128 functions.
5658 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
5659 "const gdb_byte *".
5660 (read_unsigned_leb128, read_signed_leb128): Delete.
5661 (read_initial_length): Change type of buf argument to
5662 "const gdb_byte *".
5663 (read_encoded_value): Update to match API of leb128 functions.
5664 (decode_frame_entry): Change result to "const gdb_byte *", and
5665 similarly for "start" parameter.
5666 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
5667 (dwarf2_build_frame_info): Change local frame_ptr to
5668 "const gdb_byte *".
5669 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
5670 read_uleb128, read_sleb128. All callers updated.
5671 (safe_skip_leb128): New function.
5672 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
5673 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
5674 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
5675 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
5676 read_uleb128, read_sleb128.
5677 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
5678 (execute_stack_op): Update to match API of leb128 functions.
5679 * dwarf2expr.h: #include "leb128.h".
5680 (read_uleb128, read_sleb128): Delete.
5681 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
5682 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
5683 * dwarf2loc.c (debug_loc_kind): New enum.
5684 (decode_debug_loc_addresses): New function.
5685 (decode_debug_loc_dwo_addresses): New function.
5686 (dwarf2_find_location_expression): Rewrite.
5687 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
5688 (locexpr_describe_location_piece): Ditto.
5689 (disassemble_dwarf_expression): Ditto.
5690 (locexpr_describe_location_1): Ditto.
5691 (loclist_describe_location): Rewrite.
5692 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
5693 * dwarf2read.c (die_reader_specs): New member "buffer_end".
5694 (dwarf2_section_buffer_overflow_complaint): Renamed from
5695 dwarf2_macros_too_long_complaint. All callers updated.
5696 (skip_leb128): Delete.
5697 (init_cu_die_reader): Initialize reader->buffer_end.
5698 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
5699 (skip_form_bytes): New arg buffer_end. All callers updated.
5700 Replace call to skip_leb128 with gdb_skip_leb128.
5701 (skip_unknown_opcode): New arg mac_end. All callers updated.
5702 (fill_in_loclist_baton): Initialize baton->from_dwo.
5703
837a1b32
MR
57042012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5705
5706 * mips-linux-nat.c (mips_linux_read_description): Use a more
5707 verbose error message.
5708
d0e64392
MR
57092012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
5710
5711 * NEWS: Add MIPS/Linux DSP support.
5712 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
5713 (SIGCONTEXT_DSPCTL): New macro.
5714 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
5715 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
5716 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
5717 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
5718 (N64_SIGCONTEXT_HI3): Likewise.
5719 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
5720 (N64_SIGCONTEXT_LO3): Likewise.
5721 (N64_SIGCONTEXT_DSPCTL): Likewise.
5722 (N64_SIGCONTEXT_FPCSR): Clarify definition.
5723 (mips_linux_o32_sigframe_init): Handle DSP registers.
5724 (mips_linux_n32n64_sigframe_init): Likewise.
5725
8bea7ed1
PM
57262012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5727
5728 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
5729 call to abort.
5730
dab06dbe
PA
57312012-05-22 Pedro Alves <palves@redhat.com>
5732
5733 * target.h (store_waitstatus): Move declaration ...
5734 * inf-child.h (store_waitstatus): ... here.
5735 * target.c: Move inclusion of gdb_wait.h, and ...
5736 (store_waitstatus): ... this ...
5737 * inf-child.c: ... here.
5738 * linux-nat.c: Include inf-child.h.
5739 * rs6000-nat.c: Include inf-child.h.
5740 * spu-linux-nat.c: Include inf-child.h.
5741
43011e52
PM
57422012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
5743
5744 * tracepoint.c (start_tracing): Add missing i18n markup.
5745 (stop_tracing, set_trace_user): Ditto.
5746 (set_trace_notes, set_trace_stop_notes): Ditto.
5747
b1af9e97
TT
57482012-05-21 Tom Tromey <tromey@redhat.com>
5749
5750 PR c++/7173:
5751 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
5752 types.
5753 * value.h (value_cast_pointers): Update.
5754 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
5755 (value_cast): Update.
5756 (update_search_result): New function.
5757 (do_search_struct_field): New, from search_struct_field. Check
5758 for ambiguous results.
5759 (search_struct_field): Rewrite.
5760 * infcall.c (value_arg_coerce): Update.
5761 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
5762 value_cast_pointers.
5763 * ada-lang.c (ada_convert_actual): Update.
5764
e9e5e6b3
TT
57652012-05-21 Tom Tromey <tromey@redhat.com>
5766
5767 * macroexp.c (macro_stringify): Terminate the string.
5768
1564a261
JK
57692012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5770
5771 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
5772 Describe it.
5773 * auto-load.c (auto_load_expand_dir_vars): New function.
5774 (auto_load_safe_path_vec_update): Use it, remove the
5775 substitute_path_component call thanks to it.
5776 (auto_load_objfile_script): Remove the debug_file_directory processing.
5777 Use auto_load_expand_dir_vars, remove the substitute_path_component
5778 call thanks to it.
5779 * configure: Regenerate.
5780 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
5781 path. Escape $ also for $debugdir.
5782 (--with_auto_load_safe_path): Escape $ also for $debugdir.
5783 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
5784
a3ec0bb1
DE
57852012-05-20 Doug Evans <dje@google.com>
5786
5787 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
5788 before use. Check for symtab->includes == NULL before scanning it.
5789
d467df4e
MR
57902012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5791
5792 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
5793
4cc0665f
MR
57942012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
5795
5796 * NEWS: Add microMIPS support and "set mips compression",
5797 "show mips compression" commands.
5798 * mips-tdep.h (mips_isa): New enum.
5799 (gdbarch_tdep): Add mips_isa.
5800 (mips_pc_is_mips16): Update prototype.
5801 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
5802 * mips-tdep.c (mips_compression_mips16): New variable.
5803 (mips_compression_micromips): Likewise.
5804 (mips_compression_strings): Likewise.
5805 (mips_compression_string): Likewise.
5806 (is_mips16_isa, is_micromips_isa): New functions.
5807 (is_mips16_addr): Rename to...
5808 (is_compact_addr): ... this.
5809 (unmake_mips16_addr): Likewise to...
5810 (unmake_compact_addr): ... this.
5811 (make_mips16_addr): Likewise to...
5812 (make_compact_addr): ... this.
5813 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
5814 functions.
5815 (mips_elf_make_msymbol_special): Handle microMIPS code.
5816 (msymbol_is_special): Rename to...
5817 (msymbol_is_mips16): ... this.
5818 (mips_make_symbol_special, mips_pc_is_mips16): Update
5819 accordingly.
5820 (msymbol_is_mips, msymbol_is_micromips): New functions.
5821 (mips16_to_32_reg): Rename to...
5822 (mips_reg3_to_reg): ... this.
5823 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
5824 (mips_pc_isa): Likewise.
5825 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
5826 code.
5827 (mips_fetch_instruction): Pass return status instead of printing
5828 an error message if requested. Handle microMIPS code. Bail out
5829 on an invalid ISA.
5830 (micromips_op): New macro.
5831 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
5832 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
5833 (b6s4_op, b7s3_reg): Likewise.
5834 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
5835 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
5836 (mips_insn_size): New function.
5837 (mips32_next_pc): Update mips_fetch_instruction call.
5838 (micromips_relative_offset7): New function.
5839 (micromips_relative_offset10): Likewise.
5840 (micromips_relative_offset16): Likewise.
5841 (micromips_pc_insn_size): Likewise.
5842 (micromips_bc1_pc): Likewise.
5843 (micromips_next_pc): Likewise.
5844 (unpack_mips16): Update mips_fetch_instruction call.
5845 (extended_mips16_next_pc): Update according to change to
5846 mips16_to_32_reg.
5847 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
5848 code.
5849 (mips16_scan_prologue): Update mips_fetch_instruction call.
5850 Update according to change to mips16_to_32_reg.
5851 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
5852 (mips_insn16_frame_base_sniffer): Likewise.
5853 (micromips_decode_imm9): New function.
5854 (micromips_scan_prologue): Likewise.
5855 (mips_micro_frame_cache): Likewise.
5856 (mips_micro_frame_this_id): Likewise.
5857 (mips_micro_frame_prev_register): Likewise.
5858 (mips_micro_frame_sniffer): Likewise.
5859 (mips_micro_frame_unwind): New variable.
5860 (mips_micro_frame_base_address): New function.
5861 (mips_micro_frame_base): New variable.
5862 (mips_micro_frame_base_sniffer): New function.
5863 (mips32_scan_prologue): Update mips_fetch_instruction call.
5864 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
5865 rather than for MIPS16.
5866 (mips_insn32_frame_base_sniffer): Likewise.
5867 (mips_addr_bits_remove): Handle microMIPS code.
5868 (deal_with_atomic_sequence): Rename to...
5869 (mips_deal_with_atomic_sequence): ... this. Update the type
5870 of the variable used to hold an instruction. Remove the ISA bit
5871 check. Update mips_fetch_instruction call.
5872 (micromips_deal_with_atomic_sequence): New function.
5873 (deal_with_atomic_sequence): Likewise.
5874 (mips_about_to_return): Handle microMIPS code. Update
5875 mips_fetch_instruction call.
5876 (heuristic_proc_start): Check for the standard MIPS ISA rather
5877 than for MIPS16. Update mips_pc_is_mips16 and
5878 mips_fetch_instruction calls. Handle microMIPS code.
5879 (mips_push_dummy_code): Handle microMIPS code.
5880 (mips_eabi_push_dummy_call): Likewise.
5881 (mips_o32_return_value): Update mips_pc_is_mips16 call.
5882 (mips_o64_push_dummy_call): Handle microMIPS code.
5883 (mips_o64_return_value): Update mips_pc_is_mips16 call.
5884 (is_delayed): Remove function.
5885 (mips_single_step_through_delay): Replace the call to is_delayed
5886 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
5887 Handle microMIPS code.
5888 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
5889 microMIPS code.
5890 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
5891 call.
5892 (micromips_in_function_epilogue_p): New function.
5893 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
5894 call.
5895 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
5896 Handle microMIPS.
5897 (gdb_print_insn_mips): Likewise.
5898 (mips_breakpoint_from_pc): Likewise.
5899 (mips_remote_breakpoint_from_pc): New function.
5900 (mips32_instruction_has_delay_slot): Simplify making use of the
5901 updated mips_fetch_instruction interface.
5902 (micromips_instruction_has_delay_slot): New function.
5903 (mips16_instruction_has_delay_slot): Simplify making use of the
5904 updated mips_fetch_instruction interface.
5905 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 5906 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
5907 calls. Handle microMIPS code.
5908 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
5909 (mips_skip_trampoline_code): Handle microMIPS code.
5910 (global_mips_compression): New function.
5911 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
5912 file flags. Register the microMIPS remote breakpoint handler
5913 and heuristic frame unwinder.
5914 (show_mips_compression): New function.
5915 (_initialize_mips_tdep): Add the "set mips compression" and
5916 "show mips compression" commands.
5917
22e048c9
SDJ
59182012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
5919
5920 * ada-lang.c:
5921 * ada-tasks.c:
5922 * ada-varobj.c:
5923 * amd64-darwin-tdep.c:
5924 * arm-symbian-tdep.c:
5925 * arm-tdep.c:
5926 * avr-tdep.c:
5927 * ax-gdb.c:
5928 * bfin-linux-tdep.c:
5929 * breakpoint.c:
5930 * c-valprint.c:
5931 * cli/cli-cmds.c:
5932 * coffread.c:
5933 * cp-support.c:
5934 * cris-tdep.c:
5935 * dwarf2-frame-tailcall.c:
5936 * dwarf2-frame.c:
5937 * dwarf2expr.c:
5938 * dwarf2loc.c:
5939 * dwarf2read.c:
5940 * elfread.c:
5941 * eval.c:
5942 * expprint.c:
5943 * f-valprint.c:
5944 * frv-tdep.c:
5945 * h8300-tdep.c:
5946 * hppa-hpux-tdep.c:
5947 * hppa-tdep.c:
5948 * hppanbsd-tdep.c:
5949 * i386-nto-tdep.c:
5950 * i386-tdep.c:
5951 * i387-tdep.c:
5952 * ia64-tdep.c:
5953 * jit.c:
5954 * linespec.c:
5955 * linux-tdep.c:
5956 * lm32-tdep.c:
5957 * m2-valprint.c:
5958 * m32c-tdep.c:
5959 * m32r-rom.c:
5960 * m32r-tdep.c:
5961 * m68k-tdep.c:
5962 * m68klinux-tdep.c:
5963 * mi/mi-main.c:
5964 * microblaze-tdep.c:
5965 * mips-linux-tdep.c:
5966 * mips-tdep.c:
5967 * mn10300-tdep.c:
5968 * p-valprint.c:
5969 * parse.c:
5970 * ppc-linux-tdep.c:
5971 * ppc-sysv-tdep.c:
5972 * printcmd.c:
5973 * python/py-finishbreakpoint.c:
5974 * python/py-inferior.c:
5975 * python/py-infthread.c:
5976 * python/py-type.c:
5977 * python/python.c:
5978 * remote-fileio.c:
5979 * remote-m32r-sdi.c:
5980 * remote-mips.c:
5981 * reverse.c:
5982 * rl78-tdep.c:
5983 * rs6000-aix-tdep.c:
5984 * rs6000-tdep.c:
5985 * s390-tdep.c:
5986 * score-tdep.c:
5987 * sh64-tdep.c:
5988 * skip.c:
5989 * solib-darwin.c:
5990 * solib-dsbt.c:
5991 * solib-frv.c:
5992 * sparc-tdep.c:
5993 * spu-multiarch.c:
5994 * spu-tdep.c:
5995 * stack.c:
5996 * symfile.c:
5997 * symtab.c:
5998 * tic6x-tdep.c:
5999 * tracepoint.c:
6000 * v850-tdep.c:
6001 * valarith.c:
6002 * valprint.c:
6003 * value.c:
6004 * xcoffread.c:
6005 * xtensa-tdep.c:
6006 * ada-lang.c:
6007 * ada-tasks.c:
6008 * ada-varobj.c:
6009 * amd64-darwin-tdep.c:
6010 * arm-symbian-tdep.c:
6011 * arm-tdep.c: Delete unused variables.
6012
aff139ff
JK
60132012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6014
6015 Rename $ddir to $datadir.
6016 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
6017 * auto-load.c (auto_load_safe_path_vec_update)
6018 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
6019 * configure: Regenerate.
6020 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
6021 Likewise. Remove the 'use $ddir' help string.
6022
f7bfa992
JK
60232012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
6024
6025 * auto-load.c (show_auto_load_safe_path): Accept any combination of
6026 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
6027
9cb709b6
TT
60282012-05-18 Tom Tromey <tromey@redhat.com>
6029
6030 PR exp/13907:
6031 * valprint.h (struct value_print_options) <symbol_print>: New
6032 field.
6033 * valprint.c (user_print_options): Add default for symbol_print.
6034 (show_symbol_print): New function.
6035 (generic_val_print): Respect symbol_print.
6036 (_initialize_valprint): Add "print symbol" setting.
6037 * f-valprint.c (f_val_print): Respect symbol_print.
6038 * c-valprint.c (c_val_print): Respect symbol_print.
6039 * NEWS: Update.
6040 * printcmd.c (print_address_symbolic): Return int. Ignore some
6041 zero-size symbols.
6042 (print_address_demangle): Return int.
6043 * defs.h: (print_address_symbolic): Return int.
6044 * value.h (print_address_demangle): Return int.
6045
b012acdd
TT
60462012-05-18 Tom Tromey <tromey@redhat.com>
6047
6048 * valprint.c (val_print_string): Don't print leading space.
6049 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
6050 print space before string or vtbl.
6051 * m2-valprint.c (print_unpacked_pointer): Optionally print space
6052 before string.
6053 * jv-valprint.c (java_value_print): Print space before string.
6054 * go-valprint.c (print_go_string): Print space before string.
6055 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
6056 space before string.
6057 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
6058 space before string or vtbl.
6059 * auxv.c (fprint_target_auxv): Print space after address.
6060
1d51a733
TT
60612012-05-18 Tom Tromey <tromey@redhat.com>
6062
6063 * printcmd.c (print_address_demangle): Remove special case for 0.
6064
edf0c1b7
TT
60652012-05-18 Tom Tromey <tromey@redhat.com>
6066
6067 * printcmd.c (print_address_demangle): Add 'opts' argument.
6068 * p-valprint.c (pascal_val_print): Update.
6069 * jv-valprint.c (java_val_print): Update.
6070 * value.h: Update.
6071 * valprint.c (generic_val_print): Update.
6072 (print_function_pointer_address): Add 'options' argument. Remove
6073 'addressprint' argument. Update.
6074 * m2-valprint.c (print_unpacked_pointer): Update.
6075 * gnu-v3-abi.c (print_one_vtable): Update.
6076 (gnuv3_print_method_ptr): Update.
6077 * f-valprint.c (f_val_print): Update.
6078 * cp-valprint.c (cp_print_value_fields): Update.
6079 * valprint.h (print_function_pointer_address): Update.
6080 * c-valprint.c (c_val_print): Update.
6081
9703b513
TT
60822012-05-18 Tom Tromey <tromey@redhat.com>
6083
6084 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
6085 directly corresponding to the found psymtab.
6086 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
6087 (dw2_find_pc_sect_symtab): Use it.
6088 * block.h (blockvector_contains_pc): Declare.
6089 * block.c (find_block_in_blockvector): New function.
6090 (blockvector_for_pc_sect): Use it.
6091 (blockvector_contains_pc): New function.
6092
5a439849
MR
60932012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6094
6095 * mips-tdep.h (mips_write_pc): New prototype.
6096 * mips-tdep.c (mips_write_pc): Make external, add description.
6097 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
6098 add description.
6099
8376de04
MR
61002012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
6101
6102 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
6103 mips_regnum->pc.
6104 (mips_unwind_pc, mips_write_pc): Likewise.
6105 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
6106 gdbarch_read_pc.
6107
d3581e61
JB
61082012-05-17 Joel Brobecker <brobecker@adacore.com>
6109
6110 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
6111 proc_warn, proc_error, proc_get_status, proc_flags,
6112 proc_why, proc_what, proc_nsysarg, proc_sysargs,
6113 proc_set_run_on_last_close, proc_unset_run_on_last_close,
6114 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
6115 proc_stop_process, proc_wait_for_stop, proc_run_process,
6116 proc_set_traced_signals, proc_set_traced_faults,
6117 proc_set_traced_sysentry, proc_set_traced_sysexit,
6118 proc_set_held_signals, proc_get_held_signals,
6119 proc_get_traced_signals, proc_get_traced_faults,
6120 proc_get_traced_sysentry, proc_get_traced_sysexit,
6121 proc_clear_current_fault, proc_set_current_signal,
6122 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
6123 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
6124 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
6125 proc_get_current_thread, proc_get_current_thread,
6126 proc_get_current_thread, proc_update_threads,
6127 proc_update_threads, proc_update_threads, proc_update_threads,
6128 proc_iterate_over_threads, procfs_find_new_threads,
6129 procfs_pid_to_str): Make static. Remove advance declaration.
6130 (proc_cursig): Make static. Conditionalized defintion on
6131 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
6132 (proc_syscall, proc_set_kill_on_last_close,
6133 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
6134 proc_get_pending_signals, proc_get_signal_actions,
6135 proc_trace_signal, proc_ignore_signal): Delete.
6136
81b9b86e
SDJ
61372012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
6138
6139 * coffread.c (cs_section_address): Passing proper argument for
6140 `bfd_get_section_vma'.
6141 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
6142 `bfd_get_section_flags'.
6143 * remote.c (remote_trace_set_readonly_regions): Likewise, for
6144 `bfd_get_section_vma'.
6145
abc9d0dc
TT
61462012-05-16 Tom Tromey <tromey@redhat.com>
6147
6148 PR macros/13205:
6149 * macrotab.h: (macro_define_special): Declare.
6150 (enum macro_special_kind): New.
6151 (struct macro_definition) <argc, replacement>: Update comments.
6152 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
6153 (macro_define_object_internal): New function.
6154 (macro_define_object): Use it.
6155 (macro_define_special): New function.
6156 (fixup_definition): New function.
6157 (macro_lookup_definition, foreach_macro_in_scope)
6158 (foreach_macro): Use fixup_definition.
6159 * macroexp.h (macro_stringify): Declare.
6160 * macroexp.c (free_buffer_return_text): New function.
6161 (stringify): Constify "arg".
6162 (macro_stringify): New function.
6163 * dwarf2read.c (macro_start_file): Call macro_define_special.
6164
6a3a010b 61652012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 6166 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
6167
6168 * breakpoint.h (bp_location): Add related_address member.
6169 * inferior.h (get_return_value): Take a pointer to struct value
6170 instead of struct type for the function requested.
6171 * value.h (using_struct_return): Likewise.
6172 * gdbarch.sh (return_value): Take a pointer to struct value
6173 instead of struct type for the function requested.
6174 * breakpoint.c (set_breakpoint_location_function): Initialize
6175 related_address for bp_gnu_ifunc_resolver breakpoints.
6176 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
6177 requested function's address to gdbarch_return_value.
6178 * eval.c (evaluate_subexp_standard): Pass the requested
6179 function's address to using_struct_return.
6180 * infcall.c (call_function_by_hand): Pass the requested
6181 function's address to using_struct_return and
6182 gdbarch_return_value.
6183 * infcmd.c (get_return_value): Take a pointer to struct value
6184 instead of struct type for the function requested.
6185 (print_return_value): Update accordingly.
6186 (finish_command_continuation): Likewise.
6187 * stack.c (return_command): Pass the requested function's
6188 address to using_struct_return and gdbarch_return_value.
6189 * value.c (using_struct_return): Take a pointer to struct value
6190 instead of struct type for the function requested. Pass the
6191 requested function's address to gdbarch_return_value.
6192 * python/py-finishbreakpoint.c (finish_breakpoint_object):
6193 New function_value member, replacing function_type.
6194 (bpfinishpy_dealloc): Update accordingly.
6195 (bpfinishpy_pre_stop_hook): Likewise.
6196 (bpfinishpy_init): Likewise. Record the requested function's
6197 address.
6198 * mips-tdep.c (mips_fval_reg): New enum.
6199 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
6200 words put in GP registers.
6201 (mips_o64_push_dummy_call): Update a comment.
6202 (mips_o32_return_value): Take a pointer to struct value instead
6203 of struct type for the function requested and use it to check if
6204 using the MIPS16 calling convention. Return the designated
6205 general purpose registers for floating-point values returned in
6206 MIPS16 mode.
6207 (mips_o64_return_value): Likewise.
6208 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
6209 (ppc_sysv_abi_broken_return_value): Likewise.
6210 (ppc64_sysv_abi_return_value): Likewise.
6211 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
6212 value instead of struct type for the function requested.
6213 * amd64-tdep.c (amd64_return_value): Likewise.
6214 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
6215 * arm-tdep.c (arm_return_value): Likewise.
6216 * avr-tdep.c (avr_return_value): Likewise.
6217 * bfin-tdep.c (bfin_return_value): Likewise.
6218 * cris-tdep.c (cris_return_value): Likewise.
6219 * frv-tdep.c (frv_return_value): Likewise.
6220 * h8300-tdep.c (h8300_return_value): Likewise.
6221 (h8300h_return_value): Likewise.
6222 * hppa-tdep.c (hppa32_return_value): Likewise.
6223 (hppa64_return_value): Likewise.
6224 * i386-tdep.c (i386_return_value): Likewise.
6225 * ia64-tdep.c (ia64_return_value): Likewise.
6226 * iq2000-tdep.c (iq2000_return_value): Likewise.
6227 * lm32-tdep.c (lm32_return_value): Likewise.
6228 * m32c-tdep.c (m32c_return_value): Likewise.
6229 * m32r-tdep.c (m32r_return_value): Likewise.
6230 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
6231 * m68k-tdep.c (m68k_return_value): Likewise.
6232 (m68k_svr4_return_value): Likewise.
6233 * m88k-tdep.c (m88k_return_value): Likewise.
6234 * mep-tdep.c (mep_return_value): Likewise.
6235 * microblaze-tdep.c (microblaze_return_value): Likewise.
6236 * mn10300-tdep.c (mn10300_return_value): Likewise.
6237 * moxie-tdep.c (moxie_return_value): Likewise.
6238 * mt-tdep.c (mt_return_value): Likewise.
6239 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
6240 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
6241 (ppc_sysv_abi_broken_return_value): Likewise.
6242 (ppc64_sysv_abi_return_value): Likewise.
6243 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
6244 * rl78-tdep.c (rl78_return_value): Likewise.
6245 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
6246 * rx-tdep.c (rx_return_value): Likewise.
6247 * s390-tdep.c (s390_return_value): Likewise.
6248 * score-tdep.c (score_return_value): Likewise.
6249 * sh-tdep.c (sh_return_value_nofpu): Likewise.
6250 (sh_return_value_fpu): Likewise.
6251 * sh64-tdep.c (sh64_return_value): Likewise.
6252 * sparc-tdep.c (sparc32_return_value): Likewise.
6253 * sparc64-tdep.c (sparc64_return_value): Likewise.
6254 * spu-tdep.c (spu_return_value): Likewise.
6255 * tic6x-tdep.c (tic6x_return_value): Likewise.
6256 * v850-tdep.c (v850_return_value): Likewise.
6257 * vax-tdep.c (vax_return_value): Likewise.
6258 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
6259 * xtensa-tdep.c (xtensa_return_value): Likewise.
6260 * gdbarch.c: Regenerate.
6261 * gdbarch.h: Regenerate.
6262
29ca12b3
TT
62632012-05-15 Tom Tromey <tromey@redhat.com>
6264
6265 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
6266
588ae58c
JB
62672012-05-15 Joel Brobecker <brobecker@adacore.com>
6268
6269 * breakpoint.c (init_breakpoint_sal): Add quotes around part
6270 of command in two error message.
6271
855a6e68
JB
62722012-05-15 Joel Brobecker <brobecker@adacore.com>
6273
6274 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
6275
d634f2de
JB
62762012-05-15 Joel Brobecker <brobecker@adacore.com>
6277
6278 * breakpoint.c (find_condition_and_thread): Minor reformatting.
6279
9cc815f5
JK
62802012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6281
6282 * NEWS (show auto-load scripts-directory): Add forgotten command.
6283
6a609e58
JK
62842012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
6285
6286 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
6287 parameters.
6288
ac1438b5
L
62892012-05-14 H.J. Lu <hongjiu.lu@intel.com>
6290
6291 * amd64-tdep.c: Include features/i386/x32.c and
6292 features/i386/x32-avx.c.
6293 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
6294 initialize_tdesc_x32_avx.
6295
e7e0cddf
SS
62962012-05-14 Stan Shebs <stan@codesourcery.com>
6297
6298 Add dynamic printf.
6299 * breakpoint.h (enum bptype): New type bp_dprintf.
6300 (struct breakpoint): New field extra_string.
6301 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
6302 (create_breakpoint): Add extra_string arg.
6303 * breakpoint.c (dprintf_breakpoint_ops): New.
6304 (is_breakpoint): Add bp_dprintf.
6305 (bpstat_what): Add dprintf case.
6306 (bptype_string): Ditto.
6307 (print_one_breakpoint_location): Ditto.
6308 (init_bp_location): Ditto.
6309 (bkpt_print_mention): Ditto.
6310 (dprintf_style_enums): New array.
6311 (dprintf_style): New global.
6312 (dprintf_function): New global.
6313 (dprintf_channel): New global.
6314 (update_dprintf_command_list): New function.
6315 (update_dprintf_commands): New function.
6316 (init_breakpoint_sal): Add extra_string argument, handle it.
6317 (create_breakpoint_sal): Add extra_string argument.
6318 (create_breakpoints_sal): Add extra_string argument, update callers.
6319 (find_condition_and_thread): Add extra argument.
6320 (create_breakpoint): Add extra_string argument, record it.
6321 (dprintf_command): New function.
6322 (break_command_1): Add arg to create_breakpoint call.
6323 (handle_gnu_v3_exceptions): Ditto.
6324 (trace_command): Ditto.
6325 (ftrace_command): Ditto.
6326 (strace_command): Ditto.
6327 (bkpt_print_mention): Add dprintf case.
6328 (create_breakpoint_sal_default): Add extra_string argument.
6329 (_initialize_breakpoint): Add new commands.
6330 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
6331 * python/py-breakpoint.c (bppy_init): Ditto.
6332 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
6333
8ae38c14
MR
63342012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
6335
6336 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
6337
9f676e66
SCR
63382012-05-14 Siva Chandra Reddy <sivachandra@google.com>
6339
6340 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
6341 unsigned long long.
6342
7efc75aa
SCR
63432012-05-13 Siva Chandra Reddy <sivachandra@google.com>
6344
6345 Add a new function gdb.find_pc_line to the Python API.
6346 * NEWS (Python Scripting): Add entry about the new function.
6347 * python/python.c (gdbpy_find_pc_line): New function which
6348 implements gdb.find_pc_line.
6349 (GdbMethods): Add entry for the new function.
6350
70af3797
PA
63512012-05-12 Pedro Alves <palves@redhat.com>
6352
6353 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
6354 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
6355
06da564e
EZ
63562012-05-12 Eli Zaretskii <eliz@gnu.org>
6357
6358 * inferior.c: Include completer.h
6359 (initialize_inferiors): Set completer of add-inferior to
6360 filename_completer.
6361
0288cee2
L
63622012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6363
6364 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
6365 gdbarch_ptr_bit for x32 core dump.
6366
f6537a2c
L
63672012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6368
6369 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
6370 and features/i386/x32-avx-linux.c.
6371
85d4a676
SS
63722012-05-11 Stan Shebs <stan@codesourcery.com>
6373 Kwok Cheung Yeung <kcy@codesourcery.com>
6374
6375 * NEWS: Describe new info os commands.
6376 * common/linux-osdata.c (PID_T, TIME_T): Define.
6377 (MAX_PID_T_STRLEN): New.
6378 (linux_common_core_of_thread): Add comment. Change to use PID_T and
6379 MAX_PID_T_STRLEN.
6380 (command_from_pid): Add comment. Change to use PID_T.
6381 (commandline_from_pid): Change to use PID_T.
6382 (user_from_pid): Add comment.
6383 (get_process_owner): Add comment. Change to use PID_T and
6384 MAX_PID_T_STRLEN.
6385 (get_number_of_cpu_cores): Add comment.
6386 (get_cores_used_by_process): Add comment. Change to use PID_T and
6387 MAX_PID_T_STRLEN.
6388 (linux_xfer_osdata_processes): Change to use PID_T and
6389 MAX_PID_T_STRLEN.
6390 (compare_processes): New function.
6391 (linux_xfer_osdata_processgroups): New function.
6392 (linux_xfer_osdata_threads): Change to use PID_T.
6393 (linux_xfer_osdata_fds): New function.
6394 (format_socket_state, print_sockets): New functions.
6395 (union socket_addr): New union.
6396 (linux_xfer_osdata_isockets): New function.
6397 (time_from_time_t, group_from_gid): New functions.
6398 (linux_xfer_osdata_shm): New function.
6399 (linux_xfer_osdata_sem): New function.
6400 (linux_xfer_osdata_msg): New function.
6401 (linux_xfer_osdata_modules): New function.
6402 (osdata_table): Add new entries.
6403 * common/buffer.c (buffer_xml_printf): Add support for long and
6404 long long format specifiers.
6405
f24afd6d
L
64062012-05-11 H.J. Lu <hongjiu.lu@intel.com>
6407
6408 * amd64-linux-tdep.h (tdesc_x32_linux): New.
6409 (tdesc_x32_avx_linux): Likewise.
6410
7349ff92
JK
64112012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6412
6413 Implement multi-component --with-auto-load-dir.
6414 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
6415 entries.
6416 (--with-auto-load-safe-path): Update the default value description.
6417 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
6418 New.
6419 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
6420 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
6421 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
6422 (_initialize_auto_load): Initialize also auto_load_dir. Install new
6423 "set auto-load scripts-directory".
6424 * config.in: Regenerate.
6425 * configure: Regenerate.
6426 * configure.ac (--with-auto-load-dir): New configure option.
6427 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
6428
6dea1fbd
JK
64292012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6430
6431 Provide $ddir substitution for --with-auto-load-safe-path.
6432 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
6433 entries.
6434 * auto-load.c: Include observer.h.
6435 (auto_load_safe_path_vec_update): Call substitute_path_component for
6436 each component. New variable ddir_subst.
6437 (auto_load_gdb_datadir_changed): New function.
6438 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6439 AUTO_LOAD_SAFE_PATH. New comment.
6440 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
6441 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
6442 * config.in: Regenerate.
6443 * configure: Regenerate.
6444 * configure.ac (--auto-load-safe-path): Rename
6445 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
6446 GDB_DATADIR/auto-load.
6447 * defs.h (substitute_path_component): New declaration.
6448 * top.c: Include observer.h.
6449 (set_gdb_datadir): New function.
6450 (init_main): Install it for "set data-directory".
6451 * utils.c (substitute_path_component): New function.
6452
b09aca3a
JK
64532012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
6454
6455 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
6456 * auto-load.c (auto_load_objfile_script): Remove check for NULL
6457 DEBUG_FILE_DIRECTORY. Handle multiple components of
6458 DEBUG_FILE_DIRECTORY.
6459
95554aad
TT
64602012-05-10 Tom Tromey <tromey@redhat.com>
6461
6462 * dwarf2read.c (recursively_write_psymbols): New function.
6463 (write_psymtabs_to_index): Use it.
6464
6465 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
6466 field.
6467 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
6468 (load_partial_comp_unit): Update.
6469 (queue_comp_unit): Add argument 'pretend_language'.
6470 (process_queue): Update.
6471 (psymtab_to_symtab_1): Skip dependencies that have a user.
6472 (load_partial_comp_unit_reader): Give meaning to the 'data'
6473 argument.
6474 (load_full_comp_unit): Add 'pretend_language' argument.
6475 (process_full_comp_unit): Add 'pretend_language' argument. Set
6476 language on CU.
6477 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
6478 Update.
6479 (maybe_queue_comp_unit): Add 'pretend_language' argument.
6480 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
6481 Update.
6482 (prepare_one_comp_unit): Add 'pretend_language' argument.
6483
6484 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
6485 (struct dwarf2_per_objfile) <just_read_cus>: New field.
6486 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
6487 (dw2_do_instantiate_symtab): Check whether symtab was read in
6488 before queueing.
6489 (dw2_instantiate_symtab): Add assertion. Call
6490 process_cu_includes.
6491 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
6492 (partial_symtab_p): New typedef.
6493 (set_partial_user): New function.
6494 (dwarf2_build_psymtabs_hard): Use set_partial_user.
6495 (scan_partial_symbols): Add imported CU to imported_symtabs.
6496 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
6497 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
6498 (get_symtab, recursively_compute_inclusions)
6499 (compute_symtab_includes, process_cu_includes)
6500 (process_imported_unit_die): New functions.
6501 (process_die) <DW_TAG_imported_unit>: New case.
6502 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
6503
6504 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
6505 comment.
6506 (struct partial_die_info) <locdesc>: Remove.
6507 <d>: New field.
6508 (process_psymtab_comp_unit): Add 'read_partial' argument.
6509 Update.
6510 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
6511 (scan_partial_symbols): Handle DW_TAG_imported_unit.
6512 (add_partial_symbol): Update.
6513 (process_die): Handle DW_TAG_partial_unit.
6514 (read_file_scope): Update comment.
6515 (load_partial_dies): Handle DW_TAG_imported_unit.
6516 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
6517 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
6518
e871fbb9
TT
65192012-05-10 Tom Tromey <tromey@redhat.com>
6520
6521 * cc-with-dwz.sh: New file.
6522
b5b04b5b
TT
65232012-05-10 Tom Tromey <tromey@redhat.com>
6524
6525 * symtab.h (struct symtab) <includes, user>: New fields.
6526 * block.h (struct block_iterator) <d, idx, which>: New fields.
6527 * block.c (initialize_block_iterator, find_iterator_symtab)
6528 (block_iterator_step, block_iter_name_step)
6529 (block_iter_match_step): New functions.
6530 (block_iterator_first, block_iterator_next)
6531 (block_iter_name_first, block_iter_name_next)
6532 (block_iter_match_first, block_iter_match_next): Rewrite.
6533 (get_block_symtab): New function.
6534
84a146c9
TT
65352012-05-10 Tom Tromey <tromey@redhat.com>
6536
6537 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
6538 set_block_symtab.
6539 * jit.c (finalize_symtab): Use allocate_global_block,
6540 set_block_symtab.
6541 * buildsym.c (finish_block_internal): New function, from old
6542 finish_block.
6543 (finish_block): Rewrite.
6544 (end_symtab): Use finish_block_internal, set_block_symtab.
6545 * block.h (struct global_block): New.
6546 (allocate_global_block, set_block_symtab): Declare.
6547 * block.c (allocate_global_block, set_block_symtab): New
6548 functions.
6549
9439a077
TT
65502012-05-10 Tom Tromey <tromey@redhat.com>
6551
6552 * psymtab.c (partial_map_expand_apply): Add assertion.
6553 (partial_map_symtabs_matching_filename): Skip included psymtabs.
6554 (psymtab_to_symtab): Find unshared psymtab.
6555 (dump_psymtab): Print including psymtabs.
6556 (recursively_search_psymtabs): New function.
6557 (expand_symtabs_matching_via_partial): Use it.
6558 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
6559 fields.
6560 (enum psymtab_search_status): New.
6561
8157b174
TT
65622012-05-10 Tom Tromey <tromey@redhat.com>
6563
6564 * tracepoint.c (scope_info): Update.
6565 * symtab.c (lookup_block_symbol, iterate_over_symbols)
6566 (find_pc_sect_symtab, search_symbols)
6567 (default_make_symbol_completion_list_break_on)
6568 (make_file_symbol_completion_list): Update.
6569 * symmisc.c (dump_symtab_1): Update.
6570 * stack.c (print_frame_args, iterate_over_block_locals)
6571 (print_frame_labels, iterate_over_block_arg_vars): Update.
6572 * python/py-block.c (block_object) <dict>: Remove.
6573 <block>: New field.
6574 <iter>: Change type.
6575 (blpy_iter): Update.
6576 (blpy_block_syms_iternext): Update.
6577 * psymtab.c (map_block): Use block iterators.
6578 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
6579 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
6580 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
6581 * infrun.c (check_exception_resume): Update.
6582 * cp-support.c (make_symbol_overload_list_block): Update.
6583 * coffread.c (patch_opaque_types): Update.
6584 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
6585 * block.h (struct block_iterator): New.
6586 (block_iterator_first, block_iterator_next, block_iter_name_first)
6587 (block_iter_name_next, block_iter_match_first)
6588 (block_iter_match_next): Declare.
6589 (ALL_BLOCK_SYMBOLS): Redefine.
6590 * block.c (block_iterator_first, block_iterator_next)
6591 (block_iter_name_first, block_iter_name_next)
6592 (block_iter_match_first, block_iter_match_next): New functions.
6593 * ada-lang.c (ada_add_block_symbols)
6594 (ada_make_symbol_completion_list): Use block iterator.
6595
a2ca7a52
TT
65962012-05-10 Tom Tromey <tromey@redhat.com>
6597
6598 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
6599 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
6600 (lookup_partial_symbol, find_last_source_symtab_from_partial)
6601 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
6602 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
6603 Update.
6604
64ea88dc
JB
66052012-05-10 Joel Brobecker <brobecker@adacore.com>
6606
6607 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
6608 print-file-var-lib2.c, print-file-var-main.c and
6609 print-file-var.exp (located in gdb/testsuite/gdb.base).
6610
99a547d6
JB
66112012-05-10 Joel Brobecker <brobecker@adacore.com>
6612
6613 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
6614 try locating the symbol in the symbol's own objfile first, before
6615 extending the search to all objfiles.
6616 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
6617 out of lookup_symbol_aux_symtabs.
6618 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
6619 Replace extracted-out code by call to lookup_symbol_aux_objfile.
6620 Do not search EXCLUDE_OBJFILE.
6621 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
6622 (lookup_symbol_global): Search for matches in the block's objfile
6623 first, before searching all other objfiles.
6624
0ece64fd
TG
66252012-05-10 Tristan Gingold <gingold@adacore.com>
6626
6627 * printcmd.c (set_command): Add pre/post inc/dec.
6628
3d16a105
FCE
66292012-05-09 Frank Ch. Eigler <fche@redhat.com>
6630
6631 * gdb.1: Document -ex option.
6632
2efbc0f7
JB
66332012-05-09 Joel Brobecker <brobecker@adacore.com>
6634
6635 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
6636 * inferior.h (AT_SYMBOL): Delete.
6637
2c76a0c7
JB
66382012-05-09 Joel Brobecker <brobecker@adacore.com>
6639
6640 * mips-tdep.c (mips_push_dummy_code): New function.
6641 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
6642 ON_STACK and install mips_push_dummy_code as our gdbarch
6643 push_dummy_code routine.
6644
9401a810
PA
66452012-05-09 Pedro Alves <palves@redhat.com>
6646
6647 * target.c (set_maintenance_target_async_permitted): Rename to ...
6648 (set_target_async_command): ... this.
6649 (show_maintenance_target_async_permitted): Rename to ...
6650 (show_target_async_command): ... this.
6651 (initialize_targets): Adjust.
6652
3929b321
DE
66532012-05-08 Doug Evans <dje@google.com>
6654
6655 * go-exp.y (classify_name): Add missing assignment of fields of
6656 yylval.ssym.
6657
c41535fd
EZ
66582012-05-08 Eli Zaretskii <eliz@gnu.org>
6659
6660 Display the ">" prompt in interactive mode while reading canned
6661 commands, even when the current interpreter is MI.
6662
6663 * interps.c (interp_set_temp): New function.
6664
6665 * interps.h (interp_set_temp): Add prototype.
6666
6667 * cli/cli-script.c (restore_interp): New cleanup function.
6668 (read_command_lines): Temporarily override the current interpreter
6669 with CLI and arrange for restoring the original one.
6670
c0749c4d
JS
66712012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
6672
6673 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
6674
d7333987
SDJ
66752012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
6676
6677 * probe.c (parse_probes): Move conditional to check for
6678 debuginfo files from here...
6679 * stap-probe.c (stap_get_probes): ... to here.
6680
649e6d92
MK
66812012-05-07 Mark Kettenis <kettenis@gnu.org>
6682 H.J. Lu <hongjiu.lu@intel.com>
6683
6684 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
6685 `movl %esp, %ebp' for the X32 ABI.
6686
f39c6ffd
TT
66872012-05-07 Tom Tromey <tromey@redhat.com>
6688
6689 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
6690 get_DW_TAG_name.
6691 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
6692 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
6693 (dwarf_stack_op_name): Remove.
6694 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
6695 (decode_locdesc): Use get_DW_OP_name.
6696 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
6697 (dwarf2_compile_expr_to_ax): Likewise.
6698 (disassemble_dwarf_expression): Likewise.
6699 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
6700
1e1f6591
CLT
67012012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
6702
6703 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
6704 (sh_linux_sigtramp_cache): New function.
6705 (sh_linux_sigreturn_init): New function.
6706 (sh_linux_rt_sigreturn_init): New function.
6707 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
6708 patterns.
6709 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
6710 syscall codes.
6711 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
6712 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
6713 (sh_linux_init_abi): Add init calls to register new tramp_frame
6714 definitions under 32-bit SH, update comments.
6715
545c08b4
PA
67162012-05-07 Pedro Alves <palves@redhat.com>
6717
daac165e
PA
6718 PR gdb/10952
6719
545c08b4
PA
6720 * amd64-linux-tdep.c: Include glibc-tdep.h.
6721 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
6722 gdbarch_skip_solib_resolver callback.
6723
af2c1515
JK
67242012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
6725
6726 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
6727 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
6728 (show_auto_load_safe_path): Check any-directory by comparison with "/".
6729 (add_auto_load_safe_path): Change the error message.
6730 (_initialize_auto_load): Change the "safe-path" help text.
6731 * configure: Regenerate
6732 * configure.ac (--without-auto-load-safe-path): Set
6733 WITH_AUTO_LOAD_SAFE_PATH to /.
6734
1067f998
SDJ
67352012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
6736
6737 * stap-probe.h: Do not include unecessary `probe.h'.
6738
45dfa85a
AM
67392012-05-05 Alan Modra <amodra@gmail.com>
6740
6741 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
6742 bfd_und_section_ptr.
6743 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
6744 and bfd_com_section_ptr.
6745
cf093994
JB
67462012-05-04 Joel Brobecker <brobecker@adacore.com>
6747
762ebb75 6748 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 6749
d40dc7a8
JB
67502012-05-04 Joel Brobecker <brobecker@adacore.com>
6751
6752 * windows-nat.h (segment_register_p_ftype): New typedef.
6753 (windows_set_segment_register_p): Add declaration.
6754 * windows-nat.c (segment_register_p): New static global.
6755 (windows_set_segment_register_p): New function.
6756 (do_windows_fetch_inferior_registers): Add special handling
6757 for segment registers.
6758 * amd64-windows-nat.c: #include "amd64-tdep.h".
6759 (amd64_windows_segment_register_p): New function.
6760 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
6761 * i386-windows-nat.c: #include "i386-tdep.h".
6762 (i386_windows_segment_register_p): New function.
6763 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
6764
52b3699b
TG
67652012-05-04 Tristan Gingold <gingold@adacore.com>
6766
6767 * printcmd.c (set_command): Emit a warning if the expression is not
6768 an assignment.
6769
94c74239
JB
67702012-05-03 Joel Brobecker <brobecker@adacore.com>
6771
6772 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
6773 Make static.
6774
fcf57f19
SDJ
67752012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
6776
6777 * stap-probe.c (stap_is_operator): Change declaration.
6778 (stap_get_opcode): Change return value.
6779 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
6780 `stap_parse_argument_1'.
6781
27d2932e
PA
67822012-05-03 Pedro Alves <pedro@codesourcery.com>
6783
6784 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
6785 debug log.
6786
a20ee7a4
SCR
67872012-05-03 Siva Chandra Reddy <sivachandra@google.com>
6788
6789 Add two new methods global_block and static_block to gdb.Symtab
6790 objects.
6791 * NEWS (Python scripting): Add entry about the new methods.
6792 * python/py-symtab.c (stpy_global_block): New function which
6793 implements the gdb.Symtab.global_block() method.
6794 (stpy_static_block): New function which implements the
6795 gdb.Symtab.static_block() method.
6796 (symtab_object_methods): Add entries for the two new methods.
6797
943cb756
DE
67982012-05-03 Doug Evans <dje@google.com>
6799
6800 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
6801 files.
6802
f4644a3f
YQ
68032012-05-03 Yao Qi <yao@codesourcery.com>
6804
6805 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
6806 space.
6807 (i386_process_record): Ditto.
6808
ef61f180
JB
68092012-05-02 Joel Brobecker <brobecker@adacore.com>
6810
6811 * infcall.c (unwind_on_signal_p): Make static.
6812
02f1df11
JB
68132012-05-02 Joel Brobecker <brobecker@adacore.com>
6814
6815 * sol-thread.c (solaris_pid_to_str): Make static.
6816 (_initialize_sol_thread): Add prototype.
6817
39023530
JB
68182012-05-02 Joel Brobecker <brobecker@adacore.com>
6819
6820 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
6821
c6b0c501
CF
68222012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
6823
6824 * MAINTAINERS: Remove myself.
6825
1ef71717
JK
68262012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6827
6828 Fix --without-auto-load-safe-path for MS-Windows host platform.
6829 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
6830
b31b86a7
EZ
68312012-05-02 Eli Zaretskii <eliz@gnu.org>
6832
6833 * gdb_curses.h: Undefine KEY_EVENT before including curses
6834 headers. Move "#undef MOUSE_MOVED" before any curses header
6835 inclusion.
6836
777532fc
SDJ
68372012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6838
6839 * features/i386/i386-mmx-linux.c: Regenerate.
6840 * features/rs6000/powerpc-32.c: Likewise.
6841 * features/rs6000/powerpc-32l.c: Likewise.
6842 * features/rs6000/powerpc-403.c: Likewise.
6843 * features/rs6000/powerpc-403gc.c: Likewise.
6844 * features/rs6000/powerpc-405.c: Likewise.
6845 * features/rs6000/powerpc-505.c: Likewise.
6846 * features/rs6000/powerpc-601.c: Likewise.
6847 * features/rs6000/powerpc-602.c: Likewise.
6848 * features/rs6000/powerpc-603.c: Likewise.
6849 * features/rs6000/powerpc-604.c: Likewise.
6850 * features/rs6000/powerpc-64.c: Likewise.
6851 * features/rs6000/powerpc-64l.c: Likewise.
6852 * features/rs6000/powerpc-750.c: Likewise.
6853 * features/rs6000/powerpc-860.c: Likewise.
6854 * features/rs6000/powerpc-e500.c: Likewise.
6855 * features/rs6000/powerpc-e500l.c: Likewise.
6856 * features/rs6000/powerpc-isa205-32l.c: Likewise.
6857 * features/rs6000/powerpc-isa205-64l.c: Likewise.
6858 * features/rs6000/rs6000.c: Likewise.
6859
d71871bc
SDJ
68602012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
6861
6862 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
6863 variable.
6864 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
6865 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
6866 (stap_parse_argument) <e>: Likewise.
6867 (handle_stap_probe) <byte_order>: Likewise.
6868
fd820528
DE
68692012-04-30 Doug Evans <dje@google.com>
6870
6871 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
6872 init_and_read_dies_worker. All callers updated.
6873 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
6874 replaced with init_cutu_and_read_dies.
6875 (load_partial_comp_unit): Pass 1 for use_existing_cu.
6876 (find_partial_die): Remove FIXME. Don't free current CU.
6877
ec3f619d 68782012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
6879
6880 * contrib: New directory.
6881 * contrib/test_pubnames_and_indexes.py: New file.
6882
fceca515
DE
68832012-04-30 Doug Evans <dje@google.com>
6884
6885 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
6886 All callers updated.
6887 (init_cu_die_reader): Verify the section is non-empty.
6888 (dwarf_decode_line_header): Don't dereference section->asection
6889 until we know the section is present.
6890
311fe7e1
SDJ
68912012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
6892
6893 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
6894 probes.
6895
5977971a
YQ
68962012-04-29 Yao Qi <yao@codesourcery.com>
6897
6898 * gdb-code-style.el: New hook gdb-markup-hook
6899 and gdb-comment-hook.
6900
dee91e82
DE
69012012-04-28 Doug Evans <dje@google.com>
6902
3019eac3
DE
6903 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
6904 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
6905 objfile->obfd.
6906 * symfile.h (dwarf2_debug_sections): New member addr.
6907 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
6908 (ctx_no_get_addr_index): New function.
6909 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
6910 (ctx_no_get_addr_index): Declare.
6911 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
6912 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
6913 (dwarf_expr_ctx_funcs): Update.
6914 (needs_get_addr_index): New function.
6915 (needs_frame_ctx_funcs): Update.
6916 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
6917 * dwarf2read.c: #include "gdbcore.h".
6918 (dwarf2_per_objfile): New members addr, dwo_files.
6919 (dwarf2_elf_names): Add entry for addr.
6920 (struct dwo_section_names): New type.
6921 (dwo_section_names): New static global.
6922 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
6923 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
6924 old debug_types_section member updated to use this.
6925 Rename member debug_types_section to info_or_types_section,
6926 all uses updated.
6927 (signatured_type): Rename member type_offset to type_offset_in_tu,
6928 all uses updated. New member type_offset_in_section.
6929 (struct dwo_sections): New type.
6930 (struct dwo_unit): New type.
6931 (struct dwo_file): New type.
6932 (die_reader_specs): New member dwo_file.
6933 (dwarf2_locate_sections): Watch for .debug_addr.
6934 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
6935 (dwarf2_read_section): Get bfd of section from bfd's asection,
6936 instead of objfile.
6937 (create_cus_from_index): Initialize the_cu->info_or_types_section.
6938 (create_signatured_type_table_from_index): Initialize
6939 sig_type->info_or_types_section.
6940 (dw2_get_file_names): Statement lists for type units with DWO files
6941 live in the DWO file.
6942 (create_debug_types_hash_table): New function.
6943 (create_all_type_units): Rewrite.
6944 (init_cu_die_reader): New arg dwo_file, all callers updated.
6945 (init_and_read_dies_worker): Get section from
6946 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
6947 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
6948 continue reading the CU/TU from there.
6949 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
6950 updated. Get section from this_cu->info_or_types_section.
6951 (create_all_comp_units): Initialize this_cu->info_or_types_section.
6952 (skip_one_die): New cases DW_FORM_GNU_addr_index,
6953 DW_FORM_GNU_str_index.
6954 (hash_dwo_file, eq_dwo_file): New functions.
6955 (allocate_dwo_file_hash_table): New function.
6956 (hash_dwo_unit, eq_dwo_unit): New functions.
6957 (allocate_dwo_unit_table): New function.
6958 (dwarf2_locate_dwo_sections): New function.
6959 (struct create_dwo_info_table_data): New type.
6960 (create_debug_info_hash_table_reader): New function.
6961 (create_debug_info_hash_table): New function.
6962 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
6963 (lookup_dwo_file): New function.
6964 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
6965 (free_dwo_file, free_dwo_file_cleanup): New functions.
6966 (free_dwo_file_from_slot, free_dwo_files): New functions.
6967 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
6968 (dwarf2_record_block_ranges): Ditto.
6969 (read_partial_die): Ditto.
6970 (process_enumeration_scope): Update to use type_offset_in_section.
6971 (read_full_die_1): New function.
6972 (read_full_die): Rewrite.
6973 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
6974 DW_FORM_GNU_str_index.
6975 (read_addr_index_1, read_addr_index): New functions.
6976 (read_addr_index_from_leb128): New function.
6977 (struct dwarf2_read_addr_index_data): New type.
6978 (dwarf2_read_addr_index_reader): New function.
6979 (dwarf2_read_addr_index): New function.
6980 (read_str_index): New function.
6981 (leb128_size): New function.
6982 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
6983 If processing a type unit from a DWO file, get the line section
6984 from the DWO file.
6985 (var_decode_location): Watch for DW_OP_GNU_addr_index.
6986 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
6987 DW_FORM_GNU_str_index.
6988 (lookup_die_type): Check whether section offset of type's die is
6989 known before looking it up. Remove assert. Condition can
6990 legimately happen for inter-cu type references.
6991 (dwarf_attr_name): Handle Fission attributes.
6992 (dwarf_form_name): Handle Fission forms.
6993 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
6994 DW_FORM_GNU_str_index.
6995 (follow_die_sig): Update to use type_offset_in_section.
6996 (decode_locdesc): New case DW_OP_GNU_addr_index.
6997 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
6998 DW_FORM_GNU_str_index.
6999 (cu_debug_loc_section): New function.
7000 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
7001 (dwarf2_per_objfile_free): Unmap .debug_addr section.
7002 Free DWO files if present.
7003 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
7004
dee91e82
DE
7005 Refactor DIE reading.
7006 * dwarf2read.c (dwarf2_per_objfile): Replace members
7007 debug_info_type_hash and debug_types_type_hash with die_type_hash.
7008 (die_reader_specs): New member "die_section". Temporarily make
7009 member "buffer" non-const, pending constifying all info_ptr uses.
7010 (die_reader_func_ftype): New typedef.
7011 (dw2_get_file_names_reader): New function.
7012 (dw2_get_file_names): Rewrite.
7013 (read_and_check_type_unit_head): Rename arg type_offset to
7014 type_offset_in_tu.
7015 (create_all_type_units): Improve debugging message.
7016 Improve dummy type unit check.
7017 (init_cu_die_reader): New arg "section". All callers updated.
7018 (init_and_read_dies_worker): New function.
7019 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
7020 (init_cutu_and_read_dies_no_follow): New function.
7021 (init_cutu_and_read_dies_simple): New function.
7022 (process_psymtab_comp_unit_reader): New function.
7023 (process_psymtab_comp_unit): Delete args section,
7024 is_debug_types_section. Rewrite. All callers updated.
7025 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
7026 All callers updated. Rewrite.
7027 (load_partial_comp_unit_reader): New function.
7028 (load_partial_comp_unit): Rewrite.
7029 (skip_children): New arg reader. Delete args buffer, cu.
7030 All callers updated.
7031 (skip_one_die): New arg reader. Delete args buffer, cu.
7032 All callers updated.
7033 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
7034 All callers updated.
7035 (load_full_comp_unit_reader): New function.
7036 (load_full_comp_unit): Rewrite.
7037 (read_comp_unit): Delete.
7038 (read_die_and_children_1): Delete, contents moved ...
7039 (read_die_and_children): ... here.
7040 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
7041 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
7042 All callers updated.
7043 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
7044 All callers updated.
7045 (find_partial_die): Rewrite load_all_dies support.
7046 (read_attribute_value): New arg reader. Delete args abfd, cu.
7047 All callers updated.
7048 (read_attribute): New arg reader. Delete args abfd, cu.
7049 All callers updated.
7050 (load_full_type_unit): Add assert.
7051 (read_signatured_type_reader): New function.
7052 (read_signatured_type): Rewrite.
7053 (free_stack_comp_unit): Remove call to age_cached_comp_units.
7054 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
7055 All callers updated. Set per_cu->cu = NULL after freeing it.
7056 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
7057 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
7058 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
7059 (set_die_type): Update.
7060 (get_die_type_at_offset): Update.
7061 (read_file_scope): Call prepare_one_comp_unit.
7062 (read_type_unit_scope): Ditto.
7063 (prepare_one_comp_unit): Set producer if present.
7064
72d59e0d
SDJ
70652012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
7066
7067 * probe.c (compile_rx_or_error): Silence ARI warning about missing
7068 gettext function on `error'.
7069
0fefef59
DE
70702012-04-27 Doug Evans <dje@google.com>
7071
7072 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
7073 is empty.
7074
28106bc2
SDJ
70752012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7076 Tom Tromey <tromey@redhat.com>
7077
7078 * breakpoint.c (struct breakpoint_objfile_data)
7079 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
7080 <exception_probes>: New fields.
7081 (free_breakpoint_probes): New function.
7082 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
7083 `_Unwind_DebugHook'.
7084 (create_exception_master_breakpoint): Likewise.
7085 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
7086 * infrun.c: Including necessary header files for handling SystemTap
7087 probes.
7088 (handle_inferior_event): Handling longjmp breakpoint and exceptions
7089 via SystemTap probes.
7090 (check_exception_resume): Remove `func' argument. Handle exception
7091 unwinding breakpoint set via a SystemTap probe.
7092 (insert_exception_resume_from_probe): New function.
7093
55aa24fb
SDJ
70942012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7095 Tom Tromey <tromey@redhat.com>
7096 Jan Kratochvil <jan.kratochvil@redhat.com>
7097
7098 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
7099 (COMMON_OBS): Likewise.
7100 (HFILES_NO_SRCDIR): Add `probe'.
7101 * NEWS: Mention support for static and SystemTap probes.
7102 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
7103 SystemTap probes' arguments parser.
7104 * arm-linux-tdep.c: Including headers needed to perform the parsing
7105 of SystemTap probes' arguments.
7106 (arm_stap_is_single_operand): New function.
7107 (arm_stap_parse_special_token): Likewise.
7108 (arm_linux_init_abi): Initializing proper fields used by SystemTap
7109 probes' arguments parser.
7110 * ax-gdb.c (require_rvalue): Removing static declaration.
7111 (gen_expr): Likewise.
7112 * ax-gdb.h (gen_expr): Declaring function.
7113 (require_rvalue): Likewise.
7114 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
7115 (bkpt_probe_breakpoint_ops): New variable.
7116 (momentary_breakpoint_from_master): Set the `probe' value.
7117 (add_location_to_breakpoint): Likewise.
7118 (break_command_1): Using proper breakpoint_ops according to the
7119 argument passed by the user in the command line.
7120 (bkpt_probe_insert_location): New function.
7121 (bkpt_probe_remove_location): Likewise.
7122 (bkpt_probe_create_sals_from_address): Likewise.
7123 (bkpt_probe_decode_linespec): Likewise.
7124 (tracepoint_probe_create_sals_from_address): Likewise.
7125 (tracepoint_probe_decode_linespec): Likewise.
7126 (tracepoint_probe_breakpoint_ops): New variable.
7127 (trace_command): Using proper breakpoint_ops according to the
7128 argument passed by the user in the command line.
7129 (initialize_breakpoint_ops): Initializing breakpoint_ops for
7130 static probes on breakpoints and tracepoints.
7131 * breakpoint.h (struct bp_location) <probe>: New field.
7132 * cli-utils.c (skip_spaces_const): New function.
7133 (extract_arg): Likewise.
7134 * cli-utils.h (skip_spaces_const): Likewise.
7135 (extract_arg): Likewise.
7136 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
7137 * configure.ac: Append `stap-probe.o' to be generated when ELF
7138 support is present.
7139 * configure: Regenerate.
7140 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
7141 * elfread.c: Include `probe.h' and `arch-utils.h'.
7142 (probe_key): New variable.
7143 (elf_get_probes): New function.
7144 (elf_get_probe_argument_count): Likewise.
7145 (elf_evaluate_probe_argument): Likewise.
7146 (elf_compile_to_ax): Likewise.
7147 (elf_symfile_relocate_probe): Likewise.
7148 (stap_probe_key_free): Likewise.
7149 (elf_probe_fns): New variable.
7150 (elf_sym_fns): Add `sym_probe_fns' value.
7151 (elf_sym_fns_lazy_psyms): Likewise.
7152 (elf_sym_fns_gdb_index): Likewise.
7153 (_initialize_elfread): Initialize objfile cache for static
7154 probes.
7155 * gdb_vecs.h (struct probe): New forward declaration.
7156 (probe_p): New VEC declaration.
7157 * gdbarch.c: Regenerate.
7158 * gdbarch.h: Regenerate.
7159 * gdbarch.sh (stap_integer_prefix): New variable.
7160 (stap_integer_suffix): Likewise.
7161 (stap_register_prefix): Likewise.
7162 (stap_register_suffix): Likewise.
7163 (stap_register_indirection_prefix): Likewise.
7164 (stap_register_indirection_suffix): Likewise.
7165 (stap_gdb_register_prefix): Likewise.
7166 (stap_gdb_register_suffix): Likewise.
7167 (stap_is_single_operand): New function.
7168 (stap_parse_special_token): Likewise.
7169 (struct stap_parse_info): Forward declaration.
7170 * i386-tdep.c: Including headers needed to perform the parsing
7171 of SystemTap probes' arguments.
7172 (i386_stap_is_single_operand): New function.
7173 (i386_stap_parse_special_token): Likewise.
7174 (i386_elf_init_abi): Initializing proper fields used by SystemTap
7175 probes' arguments parser.
7176 * i386-tdep.h (i386_stap_is_single_operand): New function.
7177 (i386_stap_parse_special_token): Likewise.
7178 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
7179 * mipsread.c (ecoff_sym_fns): Likewise.
7180 * objfiles.c (objfile_relocate1): Support relocation for static
7181 probes.
7182 * parse.c (prefixify_expression): Remove static declaration.
7183 (initialize_expout): Likewise.
7184 (reallocate_expout): Likewise.
7185 * parser-defs.h (initialize_expout): Declare function.
7186 (reallocate_expout): Likewise.
7187 (prefixify_expression): Likewise.
7188 * ppc-linux-tdep.c: Including headers needed to perform the parsing
7189 of SystemTap probes' arguments.
7190 (ppc_stap_is_single_operand): New function.
7191 (ppc_stap_parse_special_token): Likewise.
7192 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
7193 probes' arguments parser.
7194 * probe.c: New file, for generic statically defined probe support.
7195 * probe.h: Likewise.
7196 * s390-tdep.c: Including headers needed to perform the parsing of
7197 SystemTap probes' arguments.
7198 (s390_stap_is_single_operand): New function.
7199 (s390_gdbarch_init): Initializing proper fields used by SystemTap
7200 probes' arguments parser.
7201 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
7202 * stap-probe.c: New file, for SystemTap probe support.
7203 * stap-probe.h: Likewise.
7204 * symfile.h: Include `gdb_vecs.h'.
7205 (struct sym_probe_fns): New struct.
7206 (struct sym_fns) <sym_probe_fns>: New field.
7207 * symtab.c (init_sal): Initialize `probe' field.
7208 * symtab.h (struct probe): Forward declaration.
7209 (struct symtab_and_line) <probe>: New field.
7210 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
7211 locations.
7212 (stop_tracing): Likewise.
7213 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
7214
22d2b532
SDJ
72152012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
7216 Tom Tromey <tromey@redhat.com>
7217
7218 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
7219 and to compile agent expressions.
7220 * infrun.c (siginfo_make_value): New argument `ignore'.
7221 (siginfo_funcs): New struct.
7222 (_initialize_infrun): New argument when calling
7223 `create_internalvar_type_lazy'.
7224 * thread.c (thread_id_make_value): New argument `ignore'.
7225 (thread_funcs): New struct.
7226 (_initialize_thread): New argument when calling
7227 `create_internalvar_type_lazy'.
7228 * tracepoint.c (sdata_make_value): New argument `ignore'.
7229 (sdata_funcs): New struct.
7230 (_initialize_tracepoint): New argument when calling
7231 `create_internalvar_type_lazy'.
7232 * value.c (make_value): New struct.
7233 (create_internalvar_type_lazy): New argument `data'.
7234 (compile_internalvar_to_ax): New function.
7235 (value_of_internalvar): Properly handling `make_value' case.
7236 (clear_internalvar): Likewise.
7237 (show_convenience): Adding `TRY_CATCH' block.
7238 * value.h (internalvar_make_value): Delete, replace by...
7239 (struct internalvar_funcs): ... this.
7240 (create_internalvar_type_lazy) <fun>: Delete argument.
7241 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
7242 (compile_internalvar_to_ax): New function.
7243 * windows-tdep.c (tlb_make_value): New argument `ignore'.
7244 (tlb_funcs): New struct.
7245 (_initialize_windows_tdep): New argument when calling
7246 `create_internalvar_type_lazy'.
7247
91da1414
MW
72482012-04-27 Mark Wielaard <mjw@redhat.com>
7249
7250 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
7251 see whether it is an address or a constant offset from DW_AT_low_pc.
7252 (dwarf2_record_block_ranges): Likewise.
7253 (read_partial_die): Likewise.
7254
4ab9d8ec
MW
72552012-04-26 Mark Wielaard <mjw@redhat.com>
7256
7257 * MAINTAINERS (Write After Approval): Add myself to the list.
7258
a0911fd0
MR
72592012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7260
7261 * proc-utils.h (proc_prettyprint_signalset): New prototype.
7262 (proc_prettyprint_signal): Likewise.
7263 (proc_prettyprint_faultset): Likewise.
7264 (proc_prettyprint_fault): Likewise.
7265 (proc_prettyprint_actionset): Likewise.
7266 (proc_prettyprint_flags): Move to new proc-flags.c section.
7267 (proc_prettyfprint_flags): New prototype.
7268 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
7269 (proc_syscall, proc_cursig): Likewise.
7270 (proc_set_kill_on_last_close): Likewise.
7271 (proc_unset_kill_on_last_close): Likewise.
7272 (proc_set_watchpoint): Make static.
7273 (proc_delete_dead_threads): Likewise.
7274 (procfs_set_watchpoint): Likewise.
7275 (_initialize_procfs): Add prototype.
7276 * proc-events.c: Include proc-utils.h.
7277 (init_syscall_table): Make static.
7278 * proc-api.c (_initialize_proc_api): Add prototype.
7279 * proc-flags.c: Include proc-utils.h.
7280
9009e1ae
MR
72812012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
7282
7283 * configure.ac: Add AC_ARG_PROGRAM.
7284 * configure: Regenerate.
7285
4fae6e18
JK
72862012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
7287
7288 Fix DW_AT_lower_bound defaults for DWARF-4+.
7289 * dwarf2read.c (read_subrange_type): Remove initialization of low and
7290 high. New variable low_default_is_valid. Implement DWARF-4+
7291 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
7292 no default by the DWARF standard.
7293
14132e89 72942012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 7295 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
7296
7297 * infrun.c (handle_inferior_event): Move the check for return
7298 trampolines ahead of the check for function trampolines.
7299 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
7300 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
7301 (mips_str_mips16_ret_stub): Likewise.
7302 (mips_str_call_fp_stub): Likewise.
7303 (mips_str_call_stub): Likewise.
7304 (mips_str_fn_stub): Likewise.
7305 (mips_str_pic): Likewise.
7306 (mips_in_frame_stub): New function.
7307 (mips_unwind_pc): Return the return address rather than the PC
7308 if the PC of an intermediate frame is inside a call thunk.
7309 (mips_is_stub_suffix): New function.
7310 (mips_is_stub_mode): Likewise.
7311 (mips_get_mips16_fn_stub_pc): Likewise.
7312 (mips_skip_mips16_trampoline_code): Update to handle all the
7313 currently generated stub types. Don't recurse into __fn_stub
7314 thunks. Remove heuristics to handle stubs beyond etext/_etext.
7315 Use cooked register accesses.
7316 (mips_in_return_stub): Reintroduce function.
7317 (mips_skip_trampoline_code): Traverse trampolines recursively.
7318 (mips_gdbarch_init): Handle MIPS16 return trampolines.
7319
518f0db5 73202012-04-26 Joel Brobecker <brobecker@adacore.com>
7321
7322 GDB 7.4.1 released.
7323
3184d3f9
JL
73242012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
7325
7326 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
7327 * features/arm-with-m-vfp-d16.xml: New file. Describes
7328 Cortex-M with VFPv4-sp-d16 FPU register layout.
7329 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
7330 * features/arm-with-m-vfp-d16.c: New. Generated from above.
7331 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
7332 (arm-register_g_packet_guesses): Add vfp-d16 guess.
7333 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
7334
b6201d44
DE
73352012-04-25 Doug Evans <dje@google.com>
7336
7337 * cli/cli-decode.c (print_doc_line): Use stream instead of
7338 current_uiout.
7339
4e2f8df6
SDJ
73402012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
7341
7342 * features/arm-with-iwmmxt.c: Regenerate.
7343 * features/arm-with-m-fpa-layout.c: Likewise.
7344 * features/arm-with-m.c: Likewise.
7345 * features/arm-with-neon.c: Likewise.
7346 * features/arm-with-vfpv2.c: Likewise.
7347 * features/arm-with-vfpv3.c: Likewise.
7348 * features/mips-dsp-linux.c: Likewise.
7349 * features/mips-linux.c: Likewise.
7350 * features/mips64-dsp-linux.c: Likewise.
7351 * features/mips64-linux.c: Likewise.
7352 * features/s390-linux32.c: Likewise.
7353 * features/s390-linux32v1.c: Likewise.
7354 * features/s390-linux32v2.c: Likewise.
7355 * features/s390-linux64.c: Likewise.
7356 * features/s390-linux64v1.c: Likewise.
7357 * features/s390-linux64v2.c: Likewise.
7358 * features/s390x-linux64.c: Likewise.
7359 * features/s390x-linux64v1.c: Likewise.
7360 * features/s390x-linux64v2.c: Likewise.
7361 * features/tic6x-c62x-linux.c: Likewise.
7362 * features/tic6x-c62x.c: Likewise.
7363 * features/tic6x-c64x-linux.c: Likewise.
7364 * features/tic6x-c64x.c: Likewise.
7365 * features/tic6x-c64xp-linux.c: Likewise.
7366 * features/tic6x-c64xp.c: Likewise.
7367 * target-descriptions.c: Only generate `field_type' and `type'
7368 variables when needed.
7369
2def3e66
JB
73702012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
7371
7372 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
7373
a766d390
DE
73742012-04-25 Doug Evans <dje@google.com>
7375
7376 Initial pass at Go language support.
7377 * NEWS: Mention Go.
7378 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
7379 go-valprint.c.
7380 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
7381 (YYFILES): Add go-exp.c.
7382 (YYOBJ): Add go-exp.o.
7383 (local-maintainer-clean): Delete go-exp.c.
7384 * defs.h (enum language): Add language_go.
7385 * dwarf2read.c: #include "go-lang.h".
7386 (fixup_go_packaging): New function.
7387 (process_full_comp_unit): Call it when processing Go CUs.
7388 (dwarf2_physname): Add Go support.
7389 (read_file_scope): Handle missing language spec for GNU Go.
7390 (set_cu_language): Handle DW_LANG_Go.
7391 * go-exp.y: New file.
7392 * go-lang.h: New file.
7393 * go-lang.c: New file.
7394 * go-typeprint.c: New file.
7395 * go-valprint.c: New file.
7396 * symtab.c: #include "go-lang.h".
7397 (symbol_set_language): Handle language_go.
7398 (symbol_find_demangled_name, symbol_set_names): Ditto.
7399 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
7400
4e2af517
JM
74012012-04-24 Jim Meyering <meyering@redhat.com>
7402
7403 avoid a few strncpy-induced buffer overruns
7404 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
7405 fname and psargs before trying to concatenate.
7406 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
7407 "name" before applying strchr.
7408
b77b7f52
SCR
74092012-04-25 Siva Chandra Reddy <sivachandra@google.com>
7410
7411 * CONTRIBUTE: Use unified diff instead of context diff when
7412 generating patches.
7413
6321c22a
MR
74142012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7415
7416 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
7417 code. Handle JR.HB correctly.
7418
742c84f6
MR
74192012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
7420
7421 * mips-tdep.c
7422 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
7423 with the other MIPS16 helpers.
7424
7fc7e0c3
SDJ
74252012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
7426
7427 * observer.sh: Conditionally declare `args', thus cleaning up
7428 unused instances of this variable.
7429
20388dd6
YQ
74302012-04-24 Yao Qi <yao@codesourcery.com>
7431
7432 Revert this patch to allow breakpoint always-inserted
7433 in record target.
7434 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
7435 * breakpoint.c: Include record.h.
7436 (breakpoints_always_inserted_mode): Return false when the record
7437 target is in use.
20388dd6
YQ
7438
7439 * breakpoint.c (iterate_over_bp_locations): New.
7440 * breakpoint.h: Declare.
7441 New typedef walk_bp_location_callback.
7442 * record.c (record_open): Call record_init_record_breakpoints.
7443 (record_sync_record_breakpoints): New.
7444 (record_init_record_breakpoints): New.
7445 * NEWS: Mention supporting breakpoint always-inserted mode in
7446 record target.
7447
4734f50e
MK
74482012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
7449
7450 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
7451 any thread.
7452
c326b90e
YQ
74532012-04-24 Yao Qi <yao@codesourcery.com>
7454
7455 * breakpoint.c (ep_is_catchpoint): Renamed to ...
7456 (is_catchpoint): ... it.
7457 (print_one_breakpoint_location): Caller update.
7458 * breakpoint.h: Update declaration.
7459
d8fb5a1e
DM
74602012-04-23 David S. Miller <davem@davemloft.net>
7461
7462 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
7463
34431a2a
TT
74642012-04-23 Tom Tromey <tromey@redhat.com>
7465
7466 * buildsym.c (add_free_pendings): Remove.
7467 * buildsym.h (add_free_pendings): Remove.
7468
4568ecf9
DE
74692012-04-23 Doug Evans <dje@google.com>
7470
7471 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
7472 attr.u.unsnd instead of attr.u.addr.
7473 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
7474 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
7475 DW_FORM_ref_udata.
7476 (dump_die_shallow): Update cases DW_FORM_ref_addr,
7477 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
7478 DW_FORM_ref_udata.
7479 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
7480
dca9aa3a
MR
74812012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
7482
7483 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
7484 (mips_o32_return_value): Likewise.
7485 (mips_o64_return_value): Likewise.
7486
c8ea1972
PH
74872012-04-21 Paul Hilfinger <hilfinger@adacore.com>
7488
7489 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
7490 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
7491 their treatment in eval.c.
c8ea1972 7492
8d1b3521
DM
74932012-04-21 David S. Miller <davem@davemloft.net>
7494
7495 * sparc-tdep.c (X_DISP10): Define.
7496 (sparc_analyze_control_transfer): Handle compare-and-branch.
7497
03145bf4
JL
74982012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
7499
7500 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
7501 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
7502
004159a2 75032012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 7504 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
7505
7506 * mips-tdep.c (mips_float_register_p): New function.
7507 (mips_convert_register_float_case_p): Use mips_float_register_p.
7508 (mips_register_type): Likewise.
7509 (mips_print_register): Likewise.
7510 (print_gp_register_row): Likewise.
7511 (mips_print_registers_info): Likewise.
7512
7f0e6aae
MR
75132012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
7514
7515 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
7516 of mips16 symbols.
7517
bc17beea
AP
75182012-04-20 Andrew Pinski <apinski@cavium.com>
7519
7520 * MAINTAINERS (Write After Approval): Add myself to the list.
7521
1730a5a5
SDJ
75222012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7523
7524 * MAINTAINERS: Update my e-mail address.
7525
38ea300a
PA
75262012-04-20 Pedro Alves <palves@redhat.com>
7527
7528 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
7529 $srcdir.
7530 * configure: Regenerate.
7531
111dfaae
SDJ
75322012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
7533
7534 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
7535 declaration.
7536 * gdb_vecs.h: Declare `const_char_ptr' VEC.
7537
4fb2c64a
JK
75382012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
7539
7540 Fix compilation compatibility with python-2.4
7541 * python/py-type.c (convert_field): Cast ADDRSTRING for
7542 PyObject_SetAttrString as non-const. New comment.
7543
6328eb38
TT
75442012-04-19 Tom Tromey <tromey@redhat.com>
7545
7546 * top.c (quit_target): Use all_cleanups.
7547 * main.c (captured_command_loop): Use all_cleanups.
7548 * exceptions.c (throw_exception): Use all_cleanups.
7549
c971b7fa
PA
75502012-04-19 Pedro Alves <palves@redhat.com>
7551
7552 * Makefile.in (GNULIB_BUILDDIR): New.
7553 (LIBGNU, INCGNU, GNULIB_H): Adjust.
7554 (SUBDIRS): Add $(GNULIB_BUILDDIR).
7555 (CLEANDIRS). Remove gnulib/import.
7556 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
7557 (all-lib): Ditto.
7558 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
7559 (gnulib/import/Makefile): Replace gnulib/import with
7560 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
7561 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
7562 (aclocal_m4_deps): Remove the gnulib dependencies. Add
7563 acx_configure_dir.m4.
7564 * acinclude.m4: Include acx_configure_dir.m4.
7565 * acx_configure_dir.m4: New file.
7566 * aclocal.m4: Regenerate.
a09130f9
PA
7567 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
7568 calls. Configure gnulib using ACX_CONFIGURE_DIR.
7569 (GNULIB): New variable.
7570 (GNULIB_STDINT_H): Adjust.
7571 (AC_OUTPUT): Don't output gnulib/Makefile.
7572 * gdb/defs.h: Include build-gnulib/config.h.
7573 * aclocal.m4: Regenerate.
7574 * config.in: Regenerate.
7575 * configure: Regenerate.
7576
7577 * gnulib/Makefile.in: New file.
7578 * gnulib/configure.ac: New file.
7579 * gnulib/aclocal.m4: New file.
7580 * gnulib/config.in: New file.
7581 * gnulib/configure: New file.
c971b7fa
PA
7582 * gnulib/: Re-run gnulib-tool to adjust.
7583
b10faa68
DE
75842012-04-19 Doug Evans <dje@google.com>
7585
7586 * cleanups.h (struct cleanup): Move to cleanups.c.
7587 (make_cleanup_dtor_ftype): New typedef.
7588 (make_cleanup_dtor): Use it.
7589 (ALL_CLEANUPS): Replace with ...
7590 (all_cleanups): ... this. Declare. All uses updated.
7591 * cleanups.c: #include "gdb_assert.h".
7592 (sentinel_cleanup): New static global.
7593 (SENTINEL_CLEANUP): Define.
7594 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
7595 (make_my_cleanup2): Assert result is non-NULL.
7596 (all_cleanups): New function.
7597 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
7598 of NULL.
7599
d8c267cc
PA
76002012-04-19 Pedro Alves <palves@redhat.com>
7601
7602 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
7603 Adjust paths to gnulib imported files.
7604
809277f8
PA
76052012-04-19 Pedro Alves <palves@redhat.com>
7606
7607 * gnulib/: Move whole directory ...
7608 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
7609 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
7610 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
7611 (aclocal_m4_deps): Adjust.
7612 * aclocal.m4: Regenerate.
7613 * configure: Regenerate.
7614 * configure.ac: Adjust AC_OUTPUT output.
7615
aad9eab9
YQ
76162012-04-19 Yao Qi <yao@codesourcery.com>
7617
7618 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
7619 (vec.o): New rule.
7620 * vec.c: Move it ...
7621 * common/vec.c: ... here.
7622 * vec.h: Move it ...
7623 * common/vec.h: ... here.
7624
48fe4669
YQ
76252012-04-19 Yao Qi <yao@codesourcery.com>
7626
7627 * gdb-code-style.el: New.
7628
770d76d7
PA
76292012-04-18 Pedro Alves <palves@redhat.com>
7630
7631 Update gnulib from latest git.
7632 (639ea5ae15e39fe48d43e04864b2997301e4b969)
7633
7634 * gnulib/Makefile.am: Update.
7635 * gnulib/dummy.c: Update.
7636 * gnulib/extra/arg-nonnull.h: Update.
7637 * gnulib/extra/c++defs.h: Update.
7638 * gnulib/extra/update-copyright: Update.
7639 * gnulib/extra/warn-on-use.h: Update.
7640 * gnulib/inttypes.in.h: Update.
7641 * gnulib/m4/00gnulib.m4: Update.
7642 * gnulib/m4/extensions.m4: Update.
7643 * gnulib/m4/gnulib-cache.m4: Update.
7644 * gnulib/m4/gnulib-common.m4: Update.
7645 * gnulib/m4/gnulib-comp.m4: Update.
7646 * gnulib/m4/gnulib-tool.m4: Update.
7647 * gnulib/m4/include_next.m4: Update.
7648 * gnulib/m4/inttypes-pri.m4: Update.
7649 * gnulib/m4/inttypes.m4: Update.
7650 * gnulib/m4/longlong.m4: Update.
7651 * gnulib/m4/memchr.m4: Update.
7652 * gnulib/m4/memmem.m4: Update.
7653 * gnulib/m4/mmap-anon.m4: Update.
7654 * gnulib/m4/multiarch.m4: Update.
7655 * gnulib/m4/onceonly.m4: Update.
7656 * gnulib/m4/stddef_h.m4: Update.
7657 * gnulib/m4/stdint.m4: Update.
7658 * gnulib/m4/string_h.m4: Update.
7659 * gnulib/m4/warn-on-use.m4: Update.
7660 * gnulib/m4/wchar_h.m4: Update.
7661 * gnulib/m4/wchar_t.m4: Update.
7662 * gnulib/m4/wint_t.m4: Update.
7663 * gnulib/memchr.c: Update.
7664 * gnulib/memmem.c: Update.
7665 * gnulib/stddef.in.h: Update.
7666 * gnulib/stdint.in.h: Update.
7667 * gnulib/str-two-way.h: Update.
7668 * gnulib/string.in.h: Update.
7669 * gnulib/wchar.in.h: Update.
7670
7671 * gnulib/extra/arg-nonnull.h: Delete.
7672 * gnulib/extra/c++defs.h: Delete.
7673 * gnulib/extra/warn-on-use.h: Delete.
7674 * gnulib/m4/wchar_h.m4: Delete.
7675 * gnulib/m4/wint_t.m4: Delete.
7676 * gnulib/wchar.in.h: Delete.
7677
7678 * gnulib/extra/snippets/arg-nonnull.h: New.
7679 * gnulib/extra/snippets/c++defs.h: New.
7680 * gnulib/extra/snippets/warn-on-use.h: New.
7681
7682 * aclocal.m4: Regenerate.
7683 * config.in: Regenerate.
7684 * configure: Regenerate.
7685 * gnulib/Makefile.in: Regenerate.
7686
174e088e
PA
76872012-04-18 Pedro Alves <palves@redhat.com>
7688
7689 Reimport the update-copyright module from gnulib
7690 (250b80067c1e1d8faa0c42fb572f721975b929c5).
7691
7692 * configure: Regenerate.
7693 * gnulib/Makefile.am: Update.
7694 * gnulib/Makefile.in: Regenerate.
7695 * gnulib/extra/update-copyright: Update.
7696 * gnulib/m4/gnulib-cache.m4: Update.
7697 * gnulib/m4/gnulib-comp.m4: Update.
7698
7f533142
JB
76992012-04-18 Tristan Gingold <gingold@adacore.com>
7700
7701 * configure.ac (aix): Put -lpthread into libs.
7702 * configure: Regenerate.
7703
001822aa
TT
77042012-04-18 Tom Tromey <tromey@redhat.com>
7705
7706 * linespec.c (convert_linespec_to_sals): Don't use
7707 SYMBOL_OBJ_SECTION.
7708 (compare_msymbols): Arguments are minsym_and_objfile, not
7709 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
7710
db026a31
PA
77112012-04-18 Pedro Alves <palves@redhat.com>
7712
7713 Revert gnulib/ part of:
7714 2011-01-01 Joel Brobecker <brobecker@adacore.com>
7715 Copyright year update in most files (performed by copyright.sh).
7716
12df843f
JK
77172012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
7718
7719 Fix 64-bit constants on 32-bit hosts.
7720 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
7721 from unsigned long to ULONGEST.
7722 (read_signed_leb128): Change declaration return type from long to
7723 LONGEST.
7724 (dwarf2_const_value_attr): Change declaration parameter value from long
7725 to LONGEST.
7726 (dwarf2_compute_name): Change variable value from long to LONGEST.
7727 (read_unsigned_leb128): Change return type, variable result and some
7728 casts from unsigned long to ULONGEST.
7729 (read_signed_leb128): Change return type, variable result and some
7730 casts from long to LONGEST.
7731 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
7732 value from long to LONGEST.
7733 (dwarf2_const_value): Change variable value from long to LONGEST.
7734 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
7735 plongest and hex_string.
7736 * symtab.h (struct general_symbol_info): Change ivalue from long to
7737 LONGEST, remove the comment.
7738 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
7739 Change SYMBOL_VALUE format strings to use plongest and hex_string.
7740
14e75d8e
JK
77412012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
7742
7743 PR symtab/7259:
7744 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
7745 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
7746 (ada_discrete_type_low_bound): Fix function comment. Use
7747 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
7748 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
7749 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7750 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
7751 Use TYPE_FIELD_ENUMVAL.
7752 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
7753 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7754 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
7755 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
7756 TYPE_CODE_ENUM.
7757 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
7758 * dwarf2read.c (process_enumeration_scope): Likewise.
7759 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
7760 field.bitpos.
7761 (class StructMainTypePrettyPrinter): Support also
7762 FIELD_LOC_KIND_ENUMVAL.
7763 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
7764 TYPE_CODE_ENUM.
7765 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7766 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
7767 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
7768 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
7769 field enumval.
7770 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
7771 accommodate enumval.
7772 (struct call_site): Adjust loc_kind to accommodate enumval.
7773 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
7774 (TYPE_FIELD_ENUMVAL): New macros.
7775 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
7776 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
7777 TYPE_CODE_ENUM.
7778 * p-typeprint.c (pascal_type_print_base): Likewise.
7779 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
7780 enumval.
7781 * python/lib/gdb/types.py (make_enum_dict): Likewise.
7782 * python/py-type.c (convert_field): New variable addrstring. Use
7783 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
7784 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
7785 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
7786 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
7787 TYPE_CODE_ENUM.
7788 * valprint.c (generic_val_print): Likewise.
7789
380bca97
DE
77902012-04-17 Doug Evans <dje@google.com>
7791
dcc07052
DE
7792 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
7793
380bca97
DE
7794 * dwarf2read.c: Whitespace fixes.
7795 (lookup_signatured_type): Tweak comment.
7796 (get_die_type_at_offset): Fix comment.
7797
ec92004f
JB
77982012-04-17 Joel Brobecker <brobecker@adacore.com>
7799
7800 * xcoffread.c (xcoff_secnum_to_sections): New function.
7801 (secnum_to_section, secnum_to_bfd_section): Reimplement
7802 using xcoff_secnum_to_sections. Rename "secnum" parameter
7803 into "n_scnum".
7804 (RECORD_MINIMAL_SYMBOL): Delete.
7805 (record_minimal_symbol): New function.
7806 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
7807 by call to record_minimal_symbol and set misc_func_recorded
7808 to 1. Set last_csect_sec to the XCOFF section index instead
7809 of GDB's section_offset index. Update calls to
7810 prim_record_minimal_symbol_and_info to pass the BFD section
7811 as well.
7812
40301fb7
JB
78132012-04-17 Joel Brobecker <brobecker@adacore.com>
7814
7815 * xcoffread.c (read_xcoff_symtab): Delete variables
7816 last_csect_val and last_csect_sec and associated code.
7817
e0088cfd
DE
78182012-04-17 Doug Evans <dje@google.com>
7819
58d5e2c3
DE
7820 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
7821 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7822 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
7823 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
7824
c27f5738
DE
7825 * cleanups.h: New file.
7826 * cleanups.c: New file.
7827 * Makefile.in (SFILES): Add cleanups.c.
7828 (HFILES_NO_SRCDIR): Add cleanups.h.
7829 (COMMON_OBS): Add cleanups.o.
7830 * defs.h (struct cleanup): Moved to cleanups.h.
7831 (do_cleanups,do_final_cleanups): Ditto.
7832 (discard_cleanups,discard_final_cleanups): Ditto
7833 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7834 (save_cleanups,save_final_cleanups): Ditto.
7835 (restore_cleanups,restore_final_cleanups): Ditto.
7836 (null_cleanup): Ditto.
7837 (make_my_cleanup,make_my_cleanup2): Ditto.
7838 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7839 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
7840 (do_cleanups,do_final_cleanups): Ditto.
7841 (discard_cleanups,discard_final_cleanups): Ditto
7842 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
7843 (save_cleanups,save_final_cleanups): Ditto.
7844 (restore_cleanups,restore_final_cleanups): Ditto.
7845 (null_cleanup): Ditto.
7846 (make_my_cleanup,make_my_cleanup2): Ditto.
7847 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
7848
e0088cfd
DE
7849 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
7850 make_my_cleanup.
7851 (make_cleanup_dyn_string_delete): Ditto.
7852 (make_cleanup_ui_file_delete): Ditto.
7853 (make_cleanup_ui_out_redirect_pop): Ditto.
7854 (make_cleanup_free_section_addr_info): Ditto.
7855 (make_cleanup_restore_integer): Ditto.
7856 (make_cleanup_unpush_target): Ditto.
7857 (make_cleanup_value_free_to_mark): Ditto.
7858 (make_cleanup_value_free): Ditto.
7859 (make_cleanup_free_so): Ditto.
7860
4dc84fd1
JK
78612012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7862
7863 New option "set debug auto-load".
7864 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
7865 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
7866 (auto_load_safe_path_vec_update)
7867 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
7868 if DEBUG_AUTO_LOAD.
7869 (file_is_auto_load_safe): New parameters debug_fmt and ....
7870 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
7871 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
7872 caller by explanatory string.
7873 (_initialize_auto_load): Register "set debug auto-load".
7874 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
7875 and ....
7876 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7877 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
7878 by explanatory string.
7879 * main.c (captured_main): Likewise.
7880 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
7881 (source_section_scripts): Likewise.
7882
bccbefd2
JK
78832012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7884
7885 New option "set auto-load safe-path".
7886 * NEWS: New commands "set auto-load safe-path"
7887 and "show auto-load safe-path".
7888 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
7889 (auto_load_safe_path, auto_load_safe_path_vec)
7890 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
7891 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
7892 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
7893 (source_gdb_script_for_objfile): New variable is_safe. Call
7894 file_is_auto_load_safe. Return if it is not.
7895 (struct loaded_script): New field loaded.
7896 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
7897 (print_script): Use LOADED indicator instead of FULL_PATH. Change
7898 output "Missing" to "No".
7899 (_initialize_auto_load): New variable cmd. Initialize
7900 auto_load_safe_path. Register "set auto-load safe-path",
7901 "show auto-load safe-path" and "add-auto-load-safe-path".
7902 * auto-load.h (maybe_add_script): Add parameter loaded.
7903 (file_is_auto_load_safe): New declaration.
7904 * config.in: Regenerate.
7905 * configure: Regenerate.
7906 * configure.ac: New parameters --with-auto-load-safe-path
7907 and --without-auto-load-safe-path.
7908 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
7909 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
7910 * main.c (captured_main): Check file_is_auto_load_safe for
7911 LOCAL_GDBINIT.
7912 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
7913 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
7914 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
7915 not.
7916
bf88dd68
JK
79172012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7918
7919 auto-load: Implementation.
7920 * NEWS: New descriptions for "info auto-load",
7921 "info auto-load gdb-scripts", "info auto-load python-scripts",
7922 "info auto-load local-gdbinit" and "info auto-load libthread-db".
7923 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
7924 and "show auto-load-scripts". New description for "set auto-load",
7925 "show auto-load", "set auto-load gdb-scripts",
7926 "show auto-load gdb-scripts", "set auto-load python-scripts",
7927 "show auto-load python-scripts", "set auto-load local-gdbinit",
7928 "show auto-load local-gdbinit", "set auto-load libthread-db" and
7929 "show auto-load libthread-db".
7930 * auto-load.c: Remove include python/python-internal.h. Add includes
7931 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
7932 cli/cli-setshow.h.
7933 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
7934 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
7935 (gdbpy_global_auto_load): Rename to ...
7936 (global_auto_load): ... here.
7937 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7938 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
7939 (script_language_gdb, source_gdb_script_for_objfile): New.
7940 (struct loaded_script): New field language.
7941 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
7942 LANGUAGE.
7943 (maybe_add_script): Add parameter language. Drop redundant
7944 entry.full_path initialization. Initialize entry.language and
7945 (*slot)->language.
7946 (auto_load_objfile_script): Change parameter suffix to language.
7947 Remove the call of maybe_add_script.
7948 Call language->source_script_for_objfile.
7949 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
7950 New.
7951 (collect_matching_scripts): Adjust it for
7952 struct collect_matching_scripts_data.
7953 (auto_load_info_scripts_pattern_nl): New variable.
7954 (info_auto_load_scripts): Rename to ...
7955 (auto_load_info_scripts): ... here, add parameter language. Adjust it
7956 for struct collect_matching_scripts_data.
7957 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
7958 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
7959 (auto_load_show_cmdlist_get, info_auto_load_cmd)
7960 (auto_load_info_cmdlist_get): New.
7961 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
7962 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
7963 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
7964 "info auto-load local-gdbinit".
7965 * auto-load.h (struct script_language): New.
7966 (gdbpy_global_auto_load): Rename to ...
7967 (global_auto_load): ... here.
7968 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
7969 (auto_load_local_gdbinit_loaded): New declarations.
7970 (maybe_add_script): New parameter language.
7971 (auto_load_objfile_script): Change parameter suffix to language.
7972 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
7973 (auto_load_info_scripts, auto_load_set_cmdlist_get)
7974 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
7975 declarations.
7976 * linux-thread-db.c: Include auto-load.h and ctype.h.
7977 (auto_load_thread_db, show_auto_load_thread_db): New.
7978 (struct thread_db_info): New field filename.
7979 (delete_thread_db_info): Call xfree for FILENAME.
7980 (try_thread_db_load): Initialize FILENAME.
7981 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
7982 if !AUTO_LOAD_THREAD_DB.
7983 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
7984 (_initialize_thread_db): Install auto_load_thread_db
7985 as "set auto-load libthread-db" and install info_auto_load_libthread_db
7986 as "info auto-load libthread-db".
7987 * main.c (captured_main): Rename gdbpy_global_auto_load to
7988 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
7989 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
7990 (print_gdb_help): Extend the help for 'local init file'.
7991 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
7992 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
7993 (auto_load_scripts): Rename to ...
7994 (auto_load_python_scripts): ... here, update the comment.
7995 (gdbpy_load_auto_script_for_objfile): New declaration.
7996 (show_auto_load_python_scripts, script_language_python)
7997 (gdbpy_load_auto_script_for_objfile): New.
7998 (source_section_scripts): Refactor the code.
7999 (load_auto_scripts_for_objfile): Rename to ...
8000 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
8001 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
8002 (info_auto_load_python_scripts): New.
8003 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
8004 Rename "set auto-load-scripts" to "set auto-load python-scripts".
8005 Register "set auto-load-scripts" as its deprecated alias. Register
8006 "info auto-load python-scripts". Register "info auto-load-scripts" as
8007 its deprecated alias.
8008 (load_auto_scripts_for_objfile): Rename to ...
8009 (gdbpy_load_auto_scripts_for_objfile): ... here.
8010 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
8011 (gdbpy_load_auto_scripts_for_objfile): ... here.
8012
e2207b9a
JK
80132012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8014
8015 auto-load: Move files.
8016 * Makefile.in (SFILES): Add auto-load.c.
8017 (HFILES_NO_SRCDIR): Add auto-load.h.
8018 (COMMON_OBS): Add auto-load.o.
8019 (distclean): Change .gdbinit for gdb-gdb.gdb.
8020 * auto-load.c: New file, with parts from python/py-auto-load.c.
8021 * auto-load.h: New file, with parts from python/python.h.
8022 * configure: Regenerate.
8023 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
8024 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
8025 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
8026 * main.c: Include auto-load.h.
8027 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
8028 command.h, observer.h and progspace.h to auto-load.c. Add include
8029 auto-load.h.
8030 (gdbpy_global_auto_load, struct auto_load_pspace_info)
8031 (struct loaded_script, auto_load_pspace_data)
8032 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
8033 (hash_loaded_script_entry, eq_loaded_script_entry)
8034 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
8035 (maybe_add_script): Move to auto-load.c.
8036 (source_section_scripts): Change maybe_add_script parameters passing,
8037 use script_not_found_warning_print.
8038 (clear_section_scripts, auto_load_objfile_script)
8039 (auto_load_new_objfile, loaded_script_ptr)
8040 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
8041 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
8042 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
8043 auto_load_new_objfile and info_auto_load_scripts initizations to
8044 auto-load.c.
8045 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
8046
e4ab2fad
JK
80472012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8048
8049 Code cleanup.
8050 * charset.c (find_charset_names): Remove variables ix and elt.
8051 Use free_char_ptr_vec.
8052 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
8053 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8054 debugdir_end. New variable debugdir_len.
8055 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
8056 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
8057 declarations.
8058 * progspace.c (clear_program_space_solib_cache): Remove variables ix
8059 and elt. Use free_char_ptr_vec.
8060 * source.c (add_path): Remove variables argv, arg and argv_index.
8061 New variables dir_vec, back_to, ix and name.
8062 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
8063 make_cleanup_freeargv. Remove variable separator. Simplify the code
8064 no longer expecting DIRNAME_SEPARATOR.
8065 (openp): Remove variable p, p1 and len. New variables dir_vec,
8066 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
8067 no longer expecting DIRNAME_SEPARATOR.
8068 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
8069 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
8070 debugdir_end.
8071 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
8072 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
8073 (dirnames_to_char_ptr_vec): New functions.
8074
5ee4ed9f
JK
80752012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8076
8077 Code cleanup.
8078 * source.c (add_path): Remove always true conditional 'p == 0' and
8079 unindent its code block.
8080
f41f5e61
PA
80812012-04-17 Pedro Alves <palves@redhat.com>
8082
8083 * gdbtypes.h (FIELD_BITPOS): Rename to ...
8084 (FIELD_BITPOS_LVAL): ... this.
8085 (FIELD_BITPOS): New.
8086 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
8087 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
8088 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
8089 SET_FIELD_BITPOS.
8090 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
8091 SET_FIELD_BITPOS.
8092 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
8093 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
8094 * target-descriptions.c (tdesc_gdb_type): Adjust to use
8095 SET_FIELD_BITPOS.
8096
945b3a32
JK
80972012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
8098
8099 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
8100 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
8101 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
8102 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
8103 * jv-lang.c (java_link_class_type): Likewise, once.
8104 * stabsread.c (read_enum_type): Likewise.
8105
42476b70
YQ
81062012-04-16 Yao Qi <yao@codesourcery.com>
8107
8108 * common/agent.c (agent_run_command): Add one more parameter `len'.
8109 Update callers.
8110 * common/agent.h: Update declaration.
8111 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
8112 Update.
8113 (linux_child_static_tracepoint_markers_by_strid): Ditto.
8114
8264ba82
AG
81152012-04-14 Anton Gorenkov <xgsa@yandex.ru>
8116
8117 PR mi/13393
8118 * value.c (value_actual_type): New function.
8119 * value.h (value_actual_type): New declaration.
8120 * varobj.c (update_type_if_necessary): New function.
8121 (varobj_create): Call value_actual_type instead of
8122 value_type.
8123 (install_dynamic_child): distinct changed and type changed MI variable
8124 objects.
8125 (update_dynamic_varobj_children): Updated for install_dynamic_child
8126 change. All callers updated.
a09130f9 8127 (varobj_update): Support for MI variable object type change if
8264ba82
AG
8128 the value changed and RTTI is used to determine the type.
8129 (create_child_with_value): Call value_actual_type instead of
8130 value_type.
a09130f9 8131 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
8132 specify whether the given value should be casted to enclosing type.
8133 All callers updated.
8134
55a8c076
YQ
81352012-04-14 Yao Qi <yao@codesourcery.com>
8136
8137 Import gnulib module inttypes from git
8138 (250b80067c1e1d8faa0c42fb572f721975b929c5)
8139 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
8140 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
8141 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
8142 * aclocal.m4, config.in, configure: Regenerated.
8143 * gnulib/Makefile.am: Update.
8144 * gnulib/Makefile.in: Update.
8145 * gnulib/m4/gnulib-cache.m4: Update.
8146 * gnulib/m4/gnulib-comp.m4: Update.
8147 * gnulib/inttypes.in.h: New.
8148 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 8149 * gnulib/m4/inttypes.m4: New.
55a8c076 8150
ca7781d2
LM
81512012-04-13 Luis Machado <lgustavo@codesourcery.com>
8152
8153 * infrun.c (resume): Update PC address to the real PC after
8154 preparing to do displaced stepping.
8155
e319fa28
DE
81562012-04-12 Doug Evans <dje@google.com>
8157
8158 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
8159 All callers updated.
8160
15add3f5
MK
81612012-04-12 Mark Kettenis <kettenis@gnu.org>
8162
8163 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
8164
52dc124a
DE
81652012-04-12 Doug Evans <dje@google.com>
8166
0e50663e
DE
8167 * dwarf2read.c (create_all_type_units): Renamed from
8168 create_debug_types_hash_table. All callers updated.
8169
52dc124a
DE
8170 * dwarf2read.c (create_signatured_type_table_from_index): Rename
8171 local type_sig to sig_type, type_offset to type_offset_in_tu.
8172 (hash_signatured_type): Renamed from hash_type_signature,
8173 all callers updated.
8174 (eq_signatured_type): Renamed from eq_type_signature,
8175 all callers updated.
8176 (create_debug_types_hash_table): Rename local type_sig to sig_type.
8177 (process_enumeration_scope): Ditto.
8178 (lookup_signatured_type_at_offset): Ditto.
8179 (load_full_type_unit, read_signatured_type): Ditto.
8180
248fd3bf
YQ
81812012-04-12 Yao Qi <yao@codesourcery.com>
8182
8183 * remote.c (async_remote_interrupt): Correct function name in
8184 debug message.
8185 (async_remote_interrupt_twice): Ditto.
8186
bc3aa6c3
DE
81872012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
8188
8189 * source.c (find_and_open_source): Consistently pass resulting
8190 full path through xfullpath.
8191
9e529e1d
JK
81922012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
8193
8194 Provide more specific displaced-stepping memory error message.
8195 * infrun.c (displaced_step_prepare): New variable status. Call
8196 target_read_memory instead of read_memory, provide more specific
8197 error message.
8198
82e0cec1
TG
81992012-04-11 Tristan Gingold <gingold@adacore.com>
8200
8201 PR gdb/13901
8202 * darwin-nat.c (darwin_execvp): Revert previous patch.
8203
d987a266
TG
82042012-04-11 Tristan Gingold <gingold@adacore.com>
8205
8206 PR gdb/13901
8207 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
8208 in case of change.
8209
016b7430
TG
82102012-04-11 Tristan Gingold <gingold@adacore.com>
8211
8212 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8213 warning.
8214
06fc020f
SCR
82152012-04-11 Siva Chandra Reddy <sivachandra@google.com>
8216
8217 New command 'explore' which helps explore values and types in
8218 scope.
8219 * NEWS: Add an entry about the new 'explore' command.
8220 * data-directory/Makefile.in: Add gdb/command/explore.py
8221 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 8222 command using the GDB Python API.
06fc020f 8223
de0919f8 82242012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
8225
8226 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
8227 extension in jump target calculation.
8228
de0919f8 82292012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
8230
8231 * mips-tdep.c (mips32_next_pc): Handle JALX.
8232
2f26ef89
YQ
82332012-04-10 Yao Qi <yao@codesourcery.com>
8234
8235 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
8236
2e505b66
YQ
82372012-04-10 Yao Qi <yao@codesourcery.com>
8238
8239 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
8240 and gnulib/m4/gnulib-tool.m4.
8241
0d99eb77
DE
82422012-04-10 Doug Evans <dje@google.com>
8243
8244 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
8245 (load_partial_dies): Clarify comment.
8246 (find_partial_die): Support rereading type units.
8247 Clarify CU handling, if we know offset is in CU, don't search for the
8248 containing CU. Add comment regarding memory waste.
8249
9a82b8ff
L
82502012-04-10 H.J. Lu <hongjiu.lu@intel.com>
8251
8252 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
8253 i386/x32-avx and i386/x32-avx-linux.
8254 (i386/x32-expedite): New.
8255 (i386/x32-linux-expedite): Likewise.
8256 (i386/x32-avx-expedite): Likewise.
8257 (i386/x32-avx-linux-expedite): Likewise.
8258 ($(outdir)/i386/x32.dat): Likewise.
8259 ($(outdir)/i386/x32-linux.dat): Likewise.
8260 ($(outdir)/i386/x32-avx.dat): Likewise.
8261 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
8262
8263 * features/i386/x32-avx-linux.xml: New file.
8264 * features/i386/x32-avx.xml: Likewise.
8265 * features/i386/x32-core.xml: Likewise.
8266 * features/i386/x32-linux.xml: Likewise.
8267 * features/i386/x32.xml: Likewise.
8268
8269 * features/i386/x32-avx-linux.c: New. Generated.
8270 * features/i386/x32-avx.c: Likewise.
8271 * features/i386/x32-linux.c: Likewise.
8272 * features/i386/x32.c: Likewise.
8273 * regformats/i386/x32-avx-linux.dat: Likewise.
8274 * regformats/i386/x32-avx.dat: Likewise.
8275 * regformats/i386/x32-linux.dat: Likewise.
8276 * regformats/i386/x32.dat: Likewise.
8277
ee41036f
TG
82782012-04-10 Tristan Gingold <gingold@adacore.com>
8279
8280 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
8281 code to kill the inferior.
8282
a7aa5b8a
MK
82832012-04-09 Mark Kettenis <kettenis@gnu.org>
8284
8285 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8286 defines.
8287 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8288 defines.
a09130f9 8289 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
8290 (yyvsp): New defines.
8291 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8292 defines.
8293 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8294 defines.
8295 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8296 defines.
8297 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8298 defines.
8299 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
8300 defines.
8301
fb57d452
MK
83022012-04-09 Mark Kettenis <kettenis@gnu.org>
8303
a09130f9 8304 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
8305 (sparc64_store_arguments): Fix coding style.
8306
cdc7b32f
MK
83072012-04-07 Mark Kettenis <kettenis@gnu.org>
8308
8309 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
8310 complex floats, adjust some related comments and tighten a related
8311 assertion.
8312 (sparc64_extract_return_value): Handle complex floats.
8313
7adf1e79
DE
83142012-04-07 Doug Evans <dje@google.com>
8315
8316 * dwarf2read.c (load_partial_dies): Change condition to assert.
8317
50f1ae7b
DE
83182012-04-06 Doug Evans <dje@google.com>
8319
8320 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
8321 "mov %rsp,%rbp".
8322
55fa75c3
KB
83232012-04-05 Kevin Buettner <kevinb@redhat.com>
8324
8325 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
8326 fencepost error.
8327 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
8328 (v850_gdbarch_init): Set `num_regs' as appropriate for the
8329 architecture.
8330
40e084e1
KS
83312012-04-05 Keith Seitz <keiths@redhat.com>
8332
8333 * linespec.c (decode_compound): Remove.
8334 (enum offset_relative_sign): New enum.
8335 (struct line_offset): New struct.
8336 (struct linespec): New struct.
8337 (struct linespec_state): Move file_symtabs,
8338 user_filename, and user_function into struct linespec.
8339 Make result an anonymous struct holding vectors of
8340 symbolp and minsym_and_objfile_d.
8341 Add language member.
8342 (enum ls_token_type): New enum.
8343 (linespec_keywords): New array.
8344 (struct ls_token): New struct.
8345 (struct ls_parser): New struct.
8346 (linespec_lexer_lex_number): New function.
8347 (linespec_lexer_lex_keyword): New function.
8348 (is_ada_operator): New function.
8349 (skip_quote_char): New function.
8350 (copy_token_string): New function.
8351 (is_closing_quote_enclosed): New function.
8352 (find_parameter_list_end): New function.
8353 (linespec_lexer_lex_string): New function.
8354 (linespec_lexer_lex_one): New function.
8355 (linespec_lexer_consume_token): New function.
8356 (linespec_lexer_peek_token): New function.
8357 (cplusplus_error): Remove unused function.
8358 (find_methods): Update comment.
8359 (find_toplevel_char): Return const.
8360 (is_objc_method_format): Remove unused function.
8361 (find_toplevel_string): New function.
8362 (is_linespec_boundary): Remove.
8363 (symbol_not_found_error): New function.
8364 (find_method_overload_end): Remove function.
8365 (unexpected_linespec_error): New function.
8366 (keep_name_info): Remove.
8367 (linespec_parse_line_offset): New function.
8368 (linespec_parse_basic): New function.
8369 (canonicalize_linespec): New function.
8370 (decode_line_internal): Remove.
8371 (create_sals_line_offset): New function adapted from
8372 decode_all_digits.
8373 (convert_linespec_to_sals): New function.
8374 (parse_linespec): New function.
8375 (linespec_parser_new): New function.
8376 (linespec_state_destructor): Change parameter type to
8377 struct linespec_state *.
8378 Add language parameter.
8379 Remove freeing of moved members.
8380 (linespec_parser_delete): New function.
8381 (decode_line_full): Use parse_linespec and linespec_parser_new.
8382 (decode_line_1): Likewise.
8383 (decode_indirect): Rename to ...
8384 (linespec_expression_to_pc): ... this and rewrite
8385 to simply find CORE_ADDR, storing this result for later
8386 conversion to SALs.
8387 (locate_first_half): Remove.
8388 (deocde_objc): Add parameter LS.
8389 Initialize new struct collect_info members.
8390 Handle minimal symbols, too.
8391 (decode_compound): Delete.
8392 (lookup_prefix_sym): Rewrite.
8393 (compare_msymbols): New function.
8394 (find_method): Rewrite.
8395 Do not call cplusplus_error.
8396 (symtabs_from_filename): Rewrite.
8397 (collect_function_symbols): Delete.
8398 (find_function_symbols): Rewrite without ARGPTR-style
8399 processing.
8400 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
8401 (decode_dollar): Adapted and renamed to ...
8402 (linespec_parse_variable): ... this.
8403 (find_linespec_symbols): New function.
8404 (decode_label): Adapted and renamed to ...
8405 (find_label_symbols): ... this.
8406 (decode_digits_list_mode): Add and use LS argument.
8407 (decode_digits_ordinary): Likewise.
8408 (collect_symbols): Do not collect SALs, just symbols and msymbols.
8409 If in list mode, allow any symbol class. Otherwise, only
8410 permit LOC_BLOCK symbols.
8411 (minsym_found): Update comments.
8412 (search_minsyms_for_name): Do not convert the matching symbol
8413 into a SAL. Simply push the symbol and objfile into the
8414 result vector.
8415 (decode_variable): Delete. Contents adapted into
8416 find_linespec_symbols.
8417
8418 * cp-support.c (SKIP_SPACE): Remove.
8419 (operator_tokens): Remove unused global.
8420 (cp_validate_operator): Remove.
8421 * cp-support.h (cp_validate_operator): Remove declaration.
8422
a72c8f6a
JK
84232012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
8424
8425 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
8426 for TYPE_VPTR_FIELDNO.
8427 * valprint.c (valprint_check_validity): Make it global, move the
8428 function comment ...
8429 * value.h (valprint_check_validity): ... to this new declaration.
8430
cf9bb588
TG
84312012-04-02 Tristan Gingold <gingold@adacore.com>
8432
8433 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
8434 the STATE32 api for i386 state.
8435 (i386_darwin_store_inferior_registers): Likewise.
8436
17092398
TG
84372012-04-02 Tristan Gingold <gingold@adacore.com>
8438
8439 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
8440 SS offset.
8441 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
8442 format_string.
8443
ece0061f
TG
84442012-04-02 Tristan Gingold <gingold@adacore.com>
8445
8446 PR gdb/13901
d987a266 8447 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 8448
cf65ecd3
JK
84492012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
8450
8451 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
8452
9bc3523d
TT
84532012-03-30 Tom Tromey <tromey@redhat.com>
8454
8455 * python/python.c (gdbpy_decode_line): Move cleanup creation out
8456 of TRY_CATCH. Fix error handling.
8457 * python/py-value.c (convert_value_from_python): Move 'old'
8458 declaration to innermost scope.
8459
b1ed564a
JB
84602012-03-29 Joel Brobecker <brobecker@adacore.com>
8461 Andrey Smirnov <andrew.smirnov@gmail.com>
8462
8463 -Wshadow warning fix.
8464 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
8465 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
8466 Adjust code accordingly.
8467
cb8e9b97
JB
84682012-03-29 Joel Brobecker <brobecker@adacore.com>
8469
8470 * ada-lang.c (symbol_completion_add): Rename parameter
8471 "encoded" into "encoded_p". Ajust code and documentation
8472 accordingly.
8473
c0af1706
JB
84742012-03-29 Joel Brobecker <brobecker@adacore.com>
8475 Andrey Smirnov <andrew.smirnov@gmail.com>
8476
8477 -Wshadow warning fix.
8478 * ada-lang.c (symbol_completion_add): Rename parameter
8479 "wild_match" into wild_match_p. Update code and documentation
8480 accordingly.
8481
6ea35997
JB
84822012-03-29 Joel Brobecker <brobecker@adacore.com>
8483
8484 * ada-lang.c (symbol_completion_match): Rename parameter
8485 "encoded" into "encoded_p". Ajust code and documentation
8486 accordingly.
8487
e701b3c0
JB
84882012-03-29 Joel Brobecker <brobecker@adacore.com>
8489 Andrey Smirnov <andrew.smirnov@gmail.com>
8490
8491 -Wshadow warning fix.
8492 * ada-lang.c (symbol_completion_match): Rename parameter
8493 "wild_match" into "wild_match_p". Adjust code and function
8494 documentation accordingly.
8495
5e2336be
JB
84962012-03-29 Joel Brobecker <brobecker@adacore.com>
8497 Andrey Smirnov <andrew.smirnov@gmail.com>
8498
8499 -Wshadow warning fix.
8500 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
8501 "symbol_info" into "info". Adjust code accordingly.
8502 (ada_lookup_symbol): Likewise.
8503
9f88c959
JB
85042012-03-29 Joel Brobecker <brobecker@adacore.com>
8505
8506 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
8507 of this function's documentation.
8508
82ccd55e
JB
85092012-03-29 Joel Brobecker <brobecker@adacore.com>
8510 Andrey Smirnov <andrew.smirnov@gmail.com>
8511
8512 -Wshadow warning fix.
8513 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
8514 variable into "wild_match_p". Adjust code accordingly.
8515
d0a8ab18
JB
85162012-03-29 Joel Brobecker <brobecker@adacore.com>
8517 Andrey Smirnov <andrew.smirnov@gmail.com>
8518
8519 -Wshadow warning fix.
8520 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
8521 parameter into "wild_match_p". Adjust code accordingly.
8522 Document this parameter in the function description.
8523
48b78332
JB
85242012-03-29 Joel Brobecker <brobecker@adacore.com>
8525 Andrey Smirnov <andrew.smirnov@gmail.com>
8526
8527 -Wshadow warning fix.
8528 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
8529 "wild_match" parameter to "wild_match_p" (-Wshadow).
8530
2e6e0353
JB
85312012-03-29 Joel Brobecker <brobecker@adacore.com>
8532
8533 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
8534 in function documentation.
8535
dc4024cd
JB
85362012-03-29 Joel Brobecker <brobecker@adacore.com>
8537 Andrey Smirnov <andrew.smirnov@gmail.com>
8538
8539 -Wshadow warning fix.
8540 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
8541 variable into wild_match_p. Adjust code accordingly.
8542
6c88661c
JB
85432012-03-29 Joel Brobecker <brobecker@adacore.com>
8544 Andrey Smirnov <andrew.smirnov@gmail.com>
8545
8546 * ada-valprint.c (ada_val_print_1): Move the code handling
8547 TYPE_CODE_ENUM inside its own lexical block. Declare
8548 variables len and val there, instead of in the function's
8549 top level block. Avoid declaring deref_val again in a way
8550 that shadows another variable of the same name declared
8551 in one of the up-level blocks. Just re-use the up-level
8552 variable instead.
8553
4e5c77fe
JB
85542012-03-29 Joel Brobecker <brobecker@adacore.com>
8555
8556 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
8557 Replace block_found argument by symbol_info. Adjust
8558 implementation accordingly. Add function documentation.
8559 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
8560 Fix documentation.
8561 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
8562 * ada-exp.y (write_object_renaming): Adjust to new
8563 ada_lookup_encoded_symbol API.
8564
1c0ac8c7
JB
85652012-03-29 Joel Brobecker <brobecker@adacore.com>
8566
8567 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
8568 documentation.
8569
2aaed979
KB
85702012-03-28 Rathish C <rathish.c@kpitcummins.com>
8571
8572 * v850-tdep.c: Add the enum values for mpu and fpu registers.
8573 (v850_register_name): Add the mpu and fpu register names.
8574 (v850e_register_name): Add the mpu and fpu register names.
8575 (v850e2_register_name): New function.
a09130f9 8576 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
8577 bfd_mach_v850e2v3.
8578
927fbba6
JB
85792012-03-28 Joel Brobecker <brobecker@adacore.com>
8580
8581 * NEWS: Add entry for Ada varobj support.
8582
d32cafc7
JB
85832012-03-28 Joel Brobecker <brobecker@adacore.com>
8584
8585 * varobj.c (default_value_is_changeable_p): New function,
8586 extracted from varobj_value_is_changeable_p. Add declaration.
8587 (ada_value_is_changeable_p): New function, extracted from
8588 varobj_value_is_changeable_p. Add declaration.
8589 (struct language_specific): New field "value_is_changeable_p".
8590 (languages): Add entries for new field.
8591 (varobj_create): Set language before calling install_new_value.
8592 (varobj_value_is_changeable_p): Reimplement to call the varobj's
8593 "value_is_changeable_p" language callback.
8594
181875a4
JB
85952012-03-28 Joel Brobecker <brobecker@adacore.com>
8596
8597 * ada-varobj.h, ada-varobj.c: New files.
8598 * Makefile.in (SFILES): Add ada-varobj.c.
8599 (HFILES_NO_SRCDIR): Add ada-varobj.h.
8600 (COMMON_OBS): Add ada-varobj.o.
8601
7a290c40
JB
86022012-03-28 Joel Brobecker <brobecker@adacore.com>
8603
8604 * varobj.c (ada_value_has_mutated): Add declaration. New function.
8605 (struct language_specific): New field "value_has_mutated".
8606 (languages): Set field "value_has_mutated" in each entry of array.
8607 (varobj_value_has_mutated): New function.
8608 (varobj_udpdate): Add handling of type mutation.
8609 (value_of_root): Add handling of type mutation.
8610 (ada_value_has_mutated): New function.
8611
ca9b8b9c
PA
86122012-03-28 Pedro Alves <palves@redhat.com>
8613
8614 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
8615 Always supply $fr0 as 0.0 and $fr1 as 1.0.
8616
cc0265cd
TT
86172012-03-28 Tom Tromey <tromey@redhat.com>
8618
8619 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
8620 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
8621 before returning.
8622
3ad2ec6f
TT
86232012-03-28 Tom Tromey <tromey@redhat.com>
8624
8625 * .dir-locals.el: New file.
8626
4a6510ba
PA
86272012-03-28 Pedro Alves <palves@redhat.com>
8628
8629 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
8630
5a75128f
JB
86312012-03-28 Joel Brobecker <brobecker@adacore.com>
8632
8633 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
8634 handling for r0.
8635
f99d8bf4
PA
86362012-03-27 Pedro Alves <palves@redhat.com>
8637
8638 Eliminate struct ui_stream.
8639
8640 * ui-out.h (struct ui_stream): Delete.
8641 (ui_out_field_stream): Adjust prototype.
8642 (ui_out_stream_new, ui_out_stream_delete)
8643 (make_cleanup_ui_out_stream_delete): Delete declarations.
8644 * ui-out.c (ui_out_field_stream): Change prototype to take a
8645 ui_file instead of a ui_stream. Adjust.
8646 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
8647 (make_cleanup_ui_out_stream_delete): Delete.
8648 * breakpoint.c (print_breakpoint_location)
8649 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
8650 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8651 * disasm.c (dump_insns): Ditto.
8652 (do_mixed_source_and_assembly, do_assembly_only): Adjust
8653 prototype.
8654 (gdb_disassembly): Use ui_file/mem_fileopen instead of
8655 ui_stream/ui_out_stream_new.
8656 * infcmd.c (print_return_value): Ditto.
8657 * osdata.c (info_osdata_command): Don't allocate a local
8658 ui_stream.
8659 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
8660 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
8661 * tracepoint.c (print_one_static_tracepoint_marker): Don't
8662 allocate a local ui_stream.
8663 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
8664 instead of ui_stream/ui_out_stream_new.
8665 (list_args_or_locals): Don't allocate a local ui_stream.
8666 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
8667 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
8668 ui_stream/ui_out_stream_new.
8669 * cli/cli-setshow.c (do_setshow_command): Ditto.
8670
6350a066 86712012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 8672
6350a066
PA
8673 * arm-linux-tdep.c (arm_linux_init_abi): Call
8674 set_gdbarch_process_record. Initialize `arm_swi_record' field.
8675 * arm-tdep.c (arm_process_record): New function.
8676 (deallocate_reg_mem): New function.
8677 (decode_insn): New function.
8678 (thumb_record_branch): New function.
8679 (thumb_record_ldm_stm_swi(): New function.
8680 (thumb_record_misc): New function.
8681 (thumb_record_ld_st_stack): New function.
8682 (thumb_record_ld_st_imm_offset): New function.
8683 (thumb_record_ld_st_reg_offset(): New function.
8684 (thumb_record_add_sub_cmp_mov): New function.
8685 (thumb_record_shift_add_sub): New function.
8686 (arm_record_coproc_data_proc): New function.
8687 (arm_record_coproc): New function.
8688 (arm_record_b_bl): New function.
8689 (arm_record_ld_st_multiple): New function.
8690 (arm_record_ld_st_reg_offset): New function.
8691 (arm_record_ld_st_imm_offset): New function.
8692 (arm_record_data_proc_imm): New function.
8693 (arm_record_data_proc_misc_ld_str): New function.
8694 (arm_record_extension_space): New function.
8695 (arm_record_strx): New function.
8696 (sbo_sbz): New function.
8697 (struct insn_decode_record): New structure for arm insn record.
8698 (REG_ALLOC): New macro for reg allocations.
8699 (MEM_ALLOC): New macro for memory allocations.
8700 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 8701
89e028e2
AS
87022012-03-27 Andreas Schwab <schwab@linux-m68k.org>
8703
8704 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
8705 (store_register): Likewise.
8706
6350a066 87072012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 8708
6350a066 8709 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 8710
5b43fab2
JK
87112012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
8712
8713 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
8714 Describe also the option "auto".
8715
b5453b95
RH
87162012-03-22 Richard Henderson <rth@redhat.com>
8717
8718 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
8719 * sparc-nat.c (sparc_xfer_wcookie): Make static.
8720
227ee7fc
RH
87212012-03-22 Richard Henderson <rth@redhat.com>
8722
8723 * jit.c (jit_read_code_entry): Compute alignment and offset of
8724 int64_t member before computing entry_size.
8725
7b282c5a
SCR
87262012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8727
8728 Python scripting: Add new method Value.referenced_value to
8729 gdb.Value which can dereference pointer as well as reference
8730 values.
8731 * NEWS: Add entry under 'Python scripting' about the new method
8732 Value.referenced_value on gdb.Value objects.
8733 * python/py-value.c (valpy_referenced_value): New function
8734 defining a new method on gdb.Value objects which can dereference
8735 pointer and reference values.
8736
0c83539f
SCR
87372012-03-22 Siva Chandra Reddy <sivachandra@google.com>
8738
8739 * MAINTAINERS (Write After Approval): Add myself to the list.
8740
7ccffd7c
KB
87412012-03-21 Kevin Buettner <kevinb@redhat.com>
8742
8743 * symtab.c (skip_prologue_sal): Change test to check for "main()"
8744 in addition to "main".
8745
bd0b9f9e
JB
87462012-03-21 Joel Brobecker <brobecker@adacore.com>
8747
8748 * expression.h (op_name): Add declaration.
8749 * expprint.c (op_name): Remove declaration. Make non-static.
8750 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
8751
a5362b9a
TS
87522012-03-21 Thomas Schwinge <thomas@codesourcery.com>
8753
8754 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
8755 of struct siginfo.
8756 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
8757 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
8758 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
8759 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
8760 (linux_nat_get_siginfo): Likewise.
8761 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
8762 (linux_nat_get_siginfo): Likewise.
8763 * linux-tdep.c (linux_get_siginfo_type): Likewise.
8764 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
8765 * procfs.c (gdb_siginfo_t): Likewise.
8766
adcadaab
MF
87672012-03-21 Mike Frysinger <vapier@gentoo.org>
8768
8769 * .gitignore: Ignore more files.
8770
e278ad5b
PA
87712012-03-20 Pedro Alves <palves@redhat.com>
8772
8773 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
8774 returns.
8775
741e63d7
YQ
87762012-03-20 Yao Qi <yao@codesourcery.com>
8777
8778 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
8779 comment.
8780
b64f50a1
JK
87812012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8782
8783 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
8784 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
8785 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
8786 sect_offset.
8787 * dwarf2expr.h (cu_offset, sect_offset): New types.
8788 (struct dwarf_expr_context_funcs) <dwarf_call>
8789 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
8790 sect_offset.
8791 (struct dwarf_expr_context) <len>: Improve the comment.
8792 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
8793 cu_offset and sect_offset.
8794 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
8795 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
8796 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
8797 * dwarf2loc.h: Include dwarf2expr.h.
8798 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
8799 and sect_offset.
8800 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
8801 Improve the comment.
8802 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
8803 (struct signatured_type, struct line_header, struct partial_die_info)
8804 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
8805 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
8806 (get_die_type_at_offset, create_cus_from_index)
8807 (create_signatured_type_table_from_index, dw2_get_file_names)
8808 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
8809 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
8810 (create_debug_types_hash_table, process_psymtab_comp_unit)
8811 (load_partial_comp_unit, create_all_comp_units)
8812 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
8813 (load_full_comp_unit, dwarf2_physname, read_import_statement)
8814 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
8815 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
8816 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
8817 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
8818 (find_partial_die, read_attribute_value, lookup_die_type)
8819 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
8820 (is_ref_attr): New function comment.
8821 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
8822 Use cu_offset and sect_offset.
8823 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
8824 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
8825 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
8826 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
8827 (offset_and_type_hash, offset_and_type_eq, set_die_type)
8828 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
8829 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
8830 sect_offset.
8831
e97a38f7
JK
88322012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8833
8834 Code cleanup.
8835 * python/py-auto-load.c (source_section_scripts): New variable back_to.
8836 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
8837 with xfree.
8838 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
8839
8320cc4f
JK
88402012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8841
8842 * NEWS: Describe new options --init-command=FILE, -ix and
8843 --init-eval-command=COMMAND, -iex.
8844 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
8845 CMDARG_INIT_COMMAND.
8846 (captured_main): New enum items OPT_IX and OPT_IEX. Add
8847 "init-command", "init-eval-command", "ix" and "iex" to the variable
8848 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
8849 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
8850 (print_gdb_help): Describe --init-command=FILE, -ix and
8851 --init-eval-command=COMMAND, -iex.
8852
26743505
JK
88532012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
8854
8855 Code cleanup.
8856 * main.c (struct cmdarg): Move it here from main. Add more comments.
8857 (cmdarg_s, VEC (cmdarg_s)): New.
8858 (main): Move struct cmdarg from here. New variables cmdarg_vec and
8859 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
8860 Install cleanup for cmdarg_vec. Update filling for options 'x' and
8861 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
8862 of CMDARG.
8863
5ff5c7b4
TT
88642012-03-19 Tom Tromey <tromey@redhat.com>
8865
8866 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
8867
ab260dad
JK
88682012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
8869
8870 PR symtab/13777
8871 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
8872 GCC >=4.5.
8873
c366c1f0
TT
88742012-03-16 Chris January <chris.january@allinea.com>
8875
8876 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
8877 of clear.
8878
e16edb45
TT
88792012-03-16 Chris January <chris.january@allinea.com>
8880
8881 * source.c (add_path): Use memmove instead of strcpy because the
8882 strings overlap.
8883
53ba8333
JB
88842012-03-16 Joel Brobecker <brobecker@adacore.com>
8885
8886 * value.h (set_value_parent): Add declaration.
8887 * value.c (set_value_parent): New function.
8888 (value_address): If VALUE->PARENT is not NULL, then use it as
8889 the base address instead of VALUE->LOCATION.address.
8890 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
8891 the same as OBJ's address. Adjust V's offset accordingly.
8892 Set V's parent.
8893
481860b3
GB
88942012-03-16 Gary Benson <gbenson@redhat.com>
8895
8896 PR breakpoints/10738
8897 * dwarf2read.c (use_deprecated_index_sections): New global.
8898 (struct partial_die_info): New member may_be_inlined.
8899 (read_partial_die): Set may_be_inlined where appropriate.
8900 (add_partial_subprogram): Add partial symbols for partial
8901 DIEs that may be inlined.
8902 (new_symbol_full): Add inlined subroutines to the current
8903 scope.
8904 (write_psymtabs_to_index): Bump version number.
8905 (dwarf2_read_index): Read only version 6 indices unless
8906 use_deprecated_index_sections is set.
8907 * linespec.c (symbol_and_data_callback): New structure.
8908 (iterate_inline_only): New function.
8909 (iterate_over_all_matching_symtabs): New argument
8910 "include_inline". If nonzero, also call the callback for
8911 symbols representing inlined subroutines.
8912 (lookup_prefix_sym): Pass extra argument to the above.
8913 (find_function_symbols): Likewise.
8914 (add_matching_symbols_to_info): Likewise.
8915 * NEWS: Mention that GDB can now set breakpoints on inlined
8916 functions.
8917
d0e7e15a
PM
89182012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8919
8920 * p-typeprint.c (pascal_type_print_method_args):
8921 Fix display of parameter of methods.
8922
3d354654
PM
89232012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
8924
8925 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
8926 Add missing prototype.
8927
cafe75b0
JK
89282012-03-16 Yao Qi <yao@codesourcery.com>
8929 Jan Kratochvil <jan.kratochvil@redhat.com>
8930
8931 Fix false compilation warning.
8932 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
8933
25f8c692
JL
89342012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
8935 Pedro Alves <pedro@codesourcery.com>
8936
8937 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
8938 (arm_register_g_packet_guesses): New function.
8939 (arm_gdbarch_init): Don't force a target description with
8940 registers when the executable is detected as M-profile. Instead
8941 set gdbarch->tdep->is_m. Register `g' packet guesses.
8942 (_initialize_arm_tdep): Initialize the new target description.
8943 * features/arm-with-m-fpa-layout.xml: New description.
8944 * features/arm-with-m-fpa-layout.c: New, generated.
8945
35c63cd8
JB
89462012-03-15 Joel Brobecker <brobecker@adacore.com>
8947
8948 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
8949 Update function description.
8950 (insert_bp_location): Do not wipe bl->target_info out.
8951 * mem-break.c: #include "gdb_string.h".
8952 (default_memory_insert_breakpoint): Do not call target_read_memory
8953 with a pointer to the breakpoint's shadow_contents buffer. Use
8954 a local buffer instead.
8955 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
8956
57651221
TT
89572012-03-15 Tom Tromey <tromey@redhat.com>
8958
8959 * NEWS: Mention "info vtbl", not "info vtable".
8960 * cp-support.c (info_vtbl_command): Fix comment.
8961 (_initialize_cp_support): Fix text.
8962
410528f0
TT
89632012-03-15 Tom Tromey <tromey@redhat.com>
8964
8965 * cp-valprint.c (cp_print_value_fields): Use
8966 print_function_pointer_address for vtable slot.
8967
c4aeac85
TT
89682012-03-15 Tom Tromey <tromey@redhat.com>
8969
8970 * gnu-v3-abi.c (struct value_and_voffset): New.
8971 (hash_value_and_voffset, eq_value_and_voffset)
8972 (compare_value_and_voffset, compute_vtable_size)
8973 (print_one_vtable, gnuv3_print_vtable): New functions.
8974 (init_gnuv3_ops): Initialize 'print_vtable' field.
8975 * cp-support.c (info_vtbl_command): New function.
8976 (_initialize_cp_support): Add "info vtbl".
8977 * cp-abi.h (cplus_print_vtable): Declare.
8978 (struct cp_abi_ops) <print_vtable>: New field.
8979 * cp-abi.c (cplus_print_vtable): New function.
8980 * NEWS: Update.
8981
95cbceff
TT
89822012-03-15 Tom Tromey <tromey@redhat.com>
8983
8984 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
8985 iterate_over_symbols.
8986
589b4a32
DE
89872012-03-14 Doug Evans <dje@google.com>
8988
8989 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
8990 DW_OP_GNU_parameter_ref.
8991
e837f12a
JK
89922012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8993
8994 Fix double prompt of 'interpreter-exec mi'.
8995 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
8996 (mi_interpreter_resume): use it.
8997 (mi_execute_command_input_handler): New function.
8998 * mi/mi-main.c (mi_execute_command): Move prompt printing to
8999 mi_execute_command_input_handler.
9000
ff1e4526 90012012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
9002
9003 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
9004 prototype.
9005 (darwin_debug_port_info): Make static.
9006 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
9007 * machoread.c (_initialize_machoread): Add prototype.
9008 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
9009 (i386_darwin_set_control, i386_darwin_get_control)
9010 i386_darwin_dr_set_addr, i386_darwin_get_addr)
9011 i386_darwin_get_status, i386_darwin_get_control):
9012 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
9013
d8a5d6ee
JB
90142012-03-13 Joel Brobecker <brobecker@adacore.com>
9015
9016 * ax-gdb.c (gen_usual_unary): Remove special handling of
9017 enum and bool types.
9018
af381b8c
JB
90192012-03-13 Joel Brobecker <brobecker@adacore.com>
9020
9021 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
9022
786c562f
JB
90232012-03-13 Joel Brobecker <brobecker@adacore.com>
9024
9025 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
9026
e3ebf1bb
JB
90272012-03-13 Chris January <chris.january@allinea.com>
9028
9029 * aix-thread.c (fill_sprs): Store the floating point registers
9030 at the correct offsets into vals.
9031
c5b7e1cb
DE
90322012-03-13 Doug Evans <dje@google.com>
9033
16899756
DE
9034 * NEWS: Mention symbol-reloading has been deleted.
9035 * symfile.c (symbol_reloading): Delete.
9036 (show_symbol_reloading): Delete.
9037 (_initialize_symfile): Delete set/show symbol-reloading.
9038
c5b7e1cb
DE
9039 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
9040 read_in_chain until we have successfully read it in.
9041 (load_full_comp_unit): Ditto.
9042 (read_signatured_type): Add comment.
9043
46cb6474
JB
90442012-03-13 Chris January <chris.january@allinea.com>
9045
9046 * stabsread.c (fix_common_block): Change type of valu argument
9047 to CORE_ADDR.
9048
76219d77
JB
90492012-03-13 Chris January <chris.january@allinea.com>
9050
9051 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
9052 instruction.
9053
87b0bb13
JK
90542012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9055
9056 * common/linux-procfs.c (linux_proc_get_int): New, from
9057 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
9058 field.
9059 (linux_proc_get_tgid): Only call linux_proc_get_int.
9060 (linux_proc_get_tracerpid): New.
9061 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
9062 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
9063 linux_proc_pid_has_state.
9064 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
9065 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
9066 (linux_ptrace_attach_warnings): New.
9067 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
9068 New declaration.
9069 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
9070 (linux_nat_attach): New variables ex, buffer, message and message_s.
9071 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
9072
5f572dec
JK
90732012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
9074
9075 * Makefile.in (linux-ptrace.o): New.
9076 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
9077 from linux-nat.c.
9078 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
9079 * common/linux-ptrace.c: New file.
9080 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
9081 * config/arm/linux.mh: Likewise.
9082 * config/i386/linux.mh: Likewise.
9083 * config/i386/linux64.mh: Likewise.
9084 * config/ia64/linux.mh: Likewise.
9085 * config/m32r/linux.mh: Likewise.
9086 * config/m68k/linux.mh: Likewise.
9087 * config/mips/linux.mh: Likewise.
9088 * config/pa/linux.mh: Likewise.
9089 * config/powerpc/linux.mh: Likewise.
9090 * config/powerpc/ppc64-linux.mh: Likewise.
9091 * config/powerpc/spu-linux.mh: Likewise.
9092 * config/s390/s390.mh: Likewise.
9093 * config/sparc/linux.mh: Likewise.
9094 * config/sparc/linux64.mh: Likewise.
9095 * config/xtensa/linux.mh: Likewise.
9096 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
9097 common/linux-procfs.c.
9098 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
9099
44f238bb
PA
91002012-03-13 Hui Zhu <teawater@gmail.com>
9101 Pedro Alves <palves@redhat.com>
9102
9103 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
9104 CREATE_BREAKPOINT_FLAGS_INSERTED.
9105 (create_breakpoint_sal, create_breakpoints_sal)
9106 (base_breakpoint_create_breakpoints_sal)
9107 (tracepoint_create_breakpoints_sal)
9108 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
9109 down.
9110 (break_command_1, handle_gnu_v3_exceptions, trace_command)
9111 (ftrace_command, strace_command): Adjust.
9112 (create_tracepoint_from_upload): Pass
9113 CREATE_BREAKPOINT_FLAGS_INSERTED.
9114 * breakpoint.h (enum breakpoint_create_flags): New.
9115 (create_breakpoint): New flags parameter.
9116 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
9117 * python/py-breakpoint.c (bppy_init): Adjust.
9118 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
9119 * spu-tdep.c (spu_catch_start): Adjust.
9120
1e51243a
PA
91212012-03-13 Pedro Alves <palves@redhat.com>
9122 Hui Zhu <teawater@gmail.com>
9123 Yao Qi <yao@codesourcery.com>
9124
9125 * remote.c (struct remote_state): New field `starting_up'.
9126 (remote_start_remote): Set and clear it.
9127 (remote_can_download_tracepoint): If starting up, return false.
9128
fa3064dd
YQ
91292012-03-13 Yao Qi <yao@codesourcery.com>
9130
9131 * inferior.h (struct inferior): Remove fields any_syscall_count,
9132 syscalls_counts and total_syscalls_count. Move them to new
9133 struct catch_syscall_inferior_data in breakpoint.c.
9134 * breakpoint.c: Call DEF_VEC_I(int).
9135 (struct catch_syscall_inferior_data): New.
9136 (get_catch_syscall_inferior_data): New.
9137 (catch_syscall_inferior_data_cleanup): New.
9138 (insert_catch_syscall): Update to access data in
9139 struct catch_syscall_inferior_data.
9140 (insert_catch_syscall): Likewise.
9141 (remove_catch_syscall): Likewise.
9142 (remove_catch_syscall): Likewise.
9143 (is_syscall_catchpoint_enabled): Likewise.
9144 (add_catch_command): Likewise.
9145 (_initialize_breakpoint): Register cleanup.
9146 * breakpoint.h: Removed DEF_VEC_I(int).
9147 * dwarf2loc.c: Call DEF_VEC_I(int).
9148 * mi/mi-main.c: Likewise.
9149
460fac3c
MK
91502012-03-12 Mark Kettenis <kettenis@gnu.org>
9151
9152 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
9153
e1aca11e
JB
91542012-03-12 Chris January <chris.january@allinea.com>
9155
9156 * aix-thread.c (_initialize_aix_thread): Add prototype.
9157 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
9158 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
9159
649c7061
JB
91602012-03-12 Joel Brobecker <brobecker@adacore.com>
9161
9162 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
9163 include of "amd64-nat.h".
9164
0b49e518
TT
91652012-03-12 Tom Tromey <tromey@redhat.com>
9166
9167 * buildsym.c (record_pending_block): Now static.
9168 * buildsym.h: (record_pending_block): Remove.
9169
fd24fa94
AT
91702012-03-12 Andreas Tobler <andreast@fgznet.ch>
9171
9172 * amd64bsd-nat.c: Include amd64bsd-nat.h.
9173
ba919b58
TT
91742012-03-09 Tom Tromey <tromey@redhat.com>
9175
9176 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
9177 producer_is_gxx_lt_4_6>: New fields.
9178 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
9179
a48e046c
TT
91802012-03-09 Tom Tromey <tromey@redhat.com>
9181
9182 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
9183
6f5e9362
JB
91842012-03-08 Joel Brobecker <brobecker@adacore.com>
9185
9186 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
9187 prototype.
9188
8d037db9
JB
91892012-03-08 Joel Brobecker <brobecker@adacore.com>
9190
9191 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
9192
4e841acf
JK
91932012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9194
9195 Fix -Wmissing-prototypes build.
9196 * arm-linux-nat.c (get_thread_id): Make it static.
9197 * xtensa-linux-nat.c (get_thread_id): Likewise.
9198
c6030312
JB
91992012-03-08 Joel Brobecker <brobecker@adacore.com>
9200
9201 * server.c (process_point_options): If a conditional expression
9202 is found, only print a message if remote_debug is nonzero.
9203
52323be9
LM
92042012-03-08 Luis Machado <lgustavo@codesourcery.com>
9205
9206 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
9207 of internal error for unknown/unsupported types.
9208
7fe25d9b
JK
92092012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9210
9211 Fix CU relative vs. absolute DIE offsets.
9212 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
9213 offset to offset_in_cu.
9214 * dwarf2read.c (process_enumeration_scope): Add CU offset to
9215 TYPE_OFFSET.
9216 (dwarf2_fetch_die_location_block): Rename parameter offset to
9217 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
9218
05e7c244
JK
92192012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9220
9221 * libunwind-frame.c: Rename to ...
9222 * ia64-libunwind-tdep.c: ... here.
9223 * libunwind-frame.h: Rename to ...
9224 * ia64-libunwind-tdep.h: ... here.
9225 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
9226 ia64-libunwind-tdep.h.
9227 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
9228 * README (--with-libunwind): Rename to ...
9229 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
9230 * config.in: Regenerate.
9231 * configure: Regenerate.
9232 * configure.ac: New option --with-libunwind-ia64, make the
9233 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
9234 Remove AC_DEFINE for HAVE_LIBUNWIND.
9235 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
9236 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
9237 Rename libunwind-frame in the general comment.
9238 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
9239 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
9240 Move forward declarations inside #ifndef. Rename libunwind-frame in
9241 the general comment.
9242 * ia64-tdep.c: Rename libunwind-frame.h #include to
9243 ia64-libunwind-tdep.h.
9244 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
9245 (ia64_libunwind_descr): Rename libunwind-frame to
9246 ia64-libunwind-tdep in these function comments.
9247 * ia64-tdep.h: Rename libunwind-frame.h #include to
9248 ia64-libunwind-tdep.h.
9249 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
9250 ia64-libunwind-tdep in that data comment.
9251
3755cbfd
JK
92522012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
9253
9254 * libunwind-frame.h (struct frame_unwind): New declaration.
9255
d1cda5d9
JB
92562012-03-08 Joel Brobecker <brobecker@adacore.com>
9257
9258 * breakpoint.c (_initialize_breakpoint): Fix error in help of
9259 "set breakpoint condition-evaluation" command.
9260
a0ba0aa2
TG
92612012-03-08 Tristan Gingold <gingold@adacore.com>
9262
9263 * sparc-stub.c: Move to stubs/
9264 * sh-stub.c: Likewise.
9265 * m68k-stub.c: Likewise.
9266 * m32r-stub.c: Likewise.
9267 * i386-stub.c: Likewise.
9268
7b8b6d6d
AS
92692012-03-08 Andreas Schwab <schwab@linux-m68k.org>
9270
007cafee
AS
9271 * m68klinux-tdep.c (m68k_linux_init_abi): Register
9272 linux_get_siginfo_type.
9273
7b8b6d6d
AS
9274 * m68klinux-nat.c: Include "gdb_proc_service.h".
9275 (PTRACE_GET_THREAD_AREA): Define.
9276 (ps_get_thread_area): New function.
9277
bba74b36
YQ
92782012-03-08 Yao Qi <yao@codesourcery.com>
9279
9280 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
9281 `xsnprintf'.
9282 (remote_query_attached): Likewise.
9283 (remote_static_tracepoint_marker_at): Likewise.
9284 (remote_set_permissions): Likewise.
9285 (remote_detach_1, extended_remote_attach_1): Likewise.
9286 (send_g_packet, remote_vkill): Likewise.
9287 (extended_remote_disable_randomization): Likewise.
9288 (remote_add_target_side_condition): Likewise.
9289 (remote_insert_breakpoint): Likewise.
9290 (remote_remove_breakpoint): Likewise.
9291 (remote_insert_watchpoint): Likewise.
9292 (remote_remove_watchpoint): Likewise.
9293 (remote_insert_hw_breakpoint): Likewise.
9294 (remote_insert_hw_breakpoint): Likewise.
9295 (remote_remove_hw_breakpoint): Likewise.
9296 (remote_download_command_source): Likewise.
9297 (remote_download_tracepoint): Likewise.
9298 (remote_download_trace_state_variable): Likewise.
9299 (remote_disable_tracepoint): Likewise.
9300 (remote_trace_set_readonly_regions): Likewise.
9301 (remote_get_tracepoint_status): Likewise.
9302 (remote_trace_find): Likewise.
9303 (remote_get_trace_state_variable_value): Likewise.
9304 (remote_set_disconnected_tracing): Likewise.
9305 (remote_set_circular_trace_buffer): Likewise.
9306 (remote_get_min_fast_tracepoint_insn_len): Likewise.
9307 (remote_use_agent): Likewise.
9308 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
9309 Update callers.
9310
9b224c5e
PA
93112012-03-07 Pedro Alves <palves@redhat.com>
9312
9313 * NEWS: Mention QProgramSignals.
9314 * inferior.h (update_signals_program_target): Declare.
9315 * infrun.c: (update_signals_program_target): New.
9316 (handle_command): Update the target of the new program signals
9317 array changes.
9318 * remote.c (PACKET_QProgramSignals): New enum.
9319 (last_program_signals_packet): New global.
9320 (remote_program_signals): New.
9321 (remote_start_remote): Update the target with the program signals
9322 list.
9323 (remote_protocol_features): Add entry for QPassSignals.
9324 (remote_open_1): Free anc clear last_program_signals_packet.
9325 (init_remote_ops): Install remote_program_signals.
9326 * target.c (update_current_target): Adjust.
9327 (target_program_signals): New.
9328 * target.h (struct target_ops) <to_program_signals>: New field.
9329 (target_program_signals): Declare.
9330
74c48cbb
PA
93312012-03-07 Pedro Alves <palves@redhat.com>
9332
9333 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
9334 extensions.
9335
0c13fc49
AS
93362012-03-07 Andreas Schwab <schwab@linux-m68k.org>
9337
9338 * m68klinux-nat.c (getregs_supplies): Make static.
9339 (getfpregs_supplies): Likewise.
9340 (have_ptrace_getregs): Likewise.
9341
1281d2a3
JB
93422012-03-06 Joel Brobecker <brobecker@adacore.com>
9343
9344 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
9345 in call to get_die_type_at_offset.
9346
2b03b41d
SS
93472012-03-06 Stan Shebs <stan@codesourcery.com>
9348
9349 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
9350 * mi/mi-cmd-disas.c: Ditto.
9351 * mi/mi-cmd-env.c: Ditto.
9352 * mi/mi-cmd-file.c: Ditto.
9353 * mi/mi-cmd-stack.c: Ditto.
9354 * mi/mi-cmd-target.c: Ditto.
9355 * mi/mi-cmd-var.c: Ditto.
9356 * mi/mi-cmds.c: Ditto.
9357 * mi/mi-cmds.h: Ditto.
9358 * mi/mi-console.c: Ditto.
9359 * mi/mi-getopt.c: Ditto.
9360 * mi/mi-getopt.h: Ditto.
9361 * mi/mi-interp.c: Ditto.
9362 * mi/mi-main.c: Ditto.
9363 * mi/mi-out.c: Ditto.
9364 * mi/mi-parse.c: Ditto.
9365 * mi/mi-parse.h: Ditto.
9366 * mi/mi-symbol-cmds.c: Ditto.
9367
9368 * mi/mi-getopt.h: Move mi_opt struct up.
9369 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
9370 return.
9371 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
9372
c988ad87
TT
93732012-03-06 Tom Tromey <tromey@redhat.com>
9374
9375 * proc-service.c (ps_pglobal_lookup): Set the current program
9376 space.
9377
1b7c1b10
PA
93782012-03-06 Pedro Alves <palves@redhat.com>
9379
9380 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
9381
3c182069
JB
93822012-03-05 Joel Brobecker <brobecker@adacore.com>
9383
9384 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
9385
2e794194
JK
93862012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9387
9388 Code cleanup.
9389 * common/linux-osdata.c (linux_common_core_of_thread): New function
9390 comment.
9391 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
9392 call by linux_common_core_of_thread.
9393 (linux_nat_core_of_thread_1): Remove.
9394 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
9395 * linux-thread-db.c: Include linux-osdata.h.
9396 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
9397 linux_common_core_of_thread.
9398
9f9f1f31
TT
93992012-03-05 Tom Tromey <tromey@redhat.com>
9400
9401 * value.c (value_primitive_field): Don't fetch contents for
9402 non-virtual bases.
9403
b7b189f3
TT
94042012-03-05 Tom Tromey <tromey@redhat.com>
9405
9406 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
9407
05b8a789 94082012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 9409
5538f557
JB
9410 * s390-nat.c: Include "gregset.h".
9411
75528772
JK
94122012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
9413
9414 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
9415 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
9416 (libunwind_load): New variable so_error, use it for dlerror. Try to
9417 load also LIBUNWIND_SO_7.
9418
275418ae
PA
94192012-03-05 Pedro Alves <palves@redhat.com>
9420
9421 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
9422 is not NULL, and remove resulting dead code.
9423
5cbb9812
TS
94242012-03-05 Thomas Schwinge <thomas@codesourcery.com>
9425
9426 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
9427 prologue to sh_analyze_prologue.
9428 (sh_analyze_prologue): Make better use of such an upper limit, and
9429 generally be more cautious about accessing memory.
9430
541515ad
TT
94312012-03-05 Tom Tromey <tromey@redhat.com>
9432
9433 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
9434 _initialize_ia64_hpux_tdep.
9435
b4d36fb8
PA
94362012-03-05 Pedro Alves <palves@redhat.com>
9437
24490249
PA
9438 PR gdb/13766
9439
b4d36fb8
PA
9440 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
9441 the register state is clear, supply explicit zero, instead of
9442 marking the register unavailable.
9443
60c9a3c0
TG
94442012-03-05 Tristan Gingold <gingold@adacore.com>
9445
9446 * NEWS: Mention OpenVMS ia64 new target.
9447
696759ad
TG
94482012-03-05 Tristan Gingold <gingold@adacore.com>
9449
9450 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
9451 (ia64_unw_accessors, ia64_unw_rse_accessors)
9452 (ia64_libunwind_descr): Declare.
9453 * ia64-vms-tdep.c: New file.
9454 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
9455 (ia64_libunwind_descr): Make them public.
9456 * configure.tgt: Add ia64-*-*vms*.
9457 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
9458 (ALLDEPFILES): Add ia64-vms-tdep.c
9459
34864976
TG
94602012-03-05 Tristan Gingold <gingold@adacore.com>
9461
169081d0
TG
9462 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
9463 * remote.c (PACKET_qXfer_uib): New enum value.
9464 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
9465 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
9466 (_initialize_remote): Call add_packet_config_cmd for
9467 xfer:uib packet.
9468
94692012-03-05 Tristan Gingold <gingold@adacore.com>
9470
9471 * osabi.c (gdb_osabi_names): Add OpenVMS.
9472 (generic_elf_osabi_sniffer): Likewise.
9473 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 9474
6597b100
JK
94752012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9476
9477 Removed unused code.
9478 * libunwind-frame.c (libunwind_frame_unwind)
9479 (libunwind_frame_base_address): Remove.
9480 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
9481
87399aa1
YQ
94822012-03-04 Yao Qi <yao@codesourcery.com>
9483
9484 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
9485 remove trailing new line.
9486 (agent_run_command, agent_run_command): Add _ markup.
9487 (agent_capability_check): Likewise.
9488
abf1152a
JK
94892012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
9490
9491 * breakpoint.c (set_condition_evaluation_mode): Set
9492 CONDITION_EVALUATION_MODE unconditionally.
9493
5808517f
YQ
94942012-03-03 Yao Qi <yao@codesourcery.com>
9495
9496 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
9497 * common/agent.h: Update declaration.
9498 * inf-child.c (inf_child_use_agent): New.
9499 (inf_child_can_use_agent): New.
9500 (inf_child_target): Initialize fields `to_use_agent'
9501 and `to_can_use_agent'.
9502 * agent.c (agent_new_objfile): New.
89b7509a 9503 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
9504 observer.
9505
9506 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
9507 New.
89b7509a 9508 (linux_target_install_ops): Initialize field
5808517f
YQ
9509 `to_static_tracepoint_markers_by_strid'.
9510 * remote.c (free_current_marker): Move it to ...
9511 * tracepoint.c (free_current_marker): ... here. New.
9512 (cleanup_target_stop): New.
9513 * tracepoint.h: Declare free_current_marker.
9514 * NEWS: Add one entry about `info static-tracepoint-marker'.
9515
58b4daa5
YQ
95162012-03-03 Yao Qi <yao@codesourcery.com>
9517
9518 * common/agent.c (agent_loaded_p): New.
89b7509a 9519 (agent_look_up_symbols): New global.
58b4daa5
YQ
9520 * common/agent.h: Declare agent_loaded_p.
9521
8ffcbaaf
YQ
95222012-03-03 Yao Qi <yao@codesourcery.com>
9523
9524 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
9525 (agent_capability_check, agent_capability_invalidate): New.
9526 (symbol_list): New array element.
9527 * common/agent.h (enum agent_capa): New.
9528 * target.c (target_pre_inferior): Call agent_capability_invalidate.
9529
d1feda86
YQ
95302012-03-03 Yao Qi <yao@codesourcery.com>
9531
9532 * target.h (struct target_ops) <to_use_agent>: New field.
9533 (struct target_ops) <to_can_use_agent>: New field.
9534 (target_use_agent, target_can_use_agent): New macro.
9535 * target.c (update_current_target): Update.
9536 * remote.c: New enum `PACKET_QAgent'.
9537 (remote_protocol_features): Add a new element.
9538 (remote_use_agent, remote_can_use_agent): New.
9539 (init_remote_ops): Initialize field `can_use_agent' with
9540 remote_can_use_agent. Intiailize field `use_agent' with
9541 remote_use_agent.
9542 * common/agent.c (use_agent): New global.
9543 * common/agent.h: Declare it.
9544 * tracepoint.c (info_static_tracepoint_markers_command): Add
9545 comment.
9546 * Makefile.in (SFILES): Add common/agent.c and agent.c.
9547 (COMMON_OBS): Add common/agent.o and agent.o
9548 (common-agent.o): New rule.
9549 * agent.c: New.
9550
2fa291ac
YQ
95512012-03-03 Yao Qi <yao@codesourcery.com>
9552
9553 * common/agent.c: New.
9554 * common/agent.h: New.
9555 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
9556 AC_CHECK_HEADERS.
9557 * configure, configh.in: Regenerated.
9558
9fc05685
KB
95592012-03-02 Kevin Buettner <kevinb@redhat.com>
9560
9561 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
9562 unless it exists for this architecture.
9563
a5ee536b
JB
95642012-03-02 Joel Brobecker <brobecker@adacore.com>
9565
9566 * language.h (struct language_defn): New "method" la_read_var_value.
9567 * findvar.c: #include "language.h".
9568 (default_read_var_value): Renames read_var_value. Rewrite
9569 function description.
9570 (read_var_value): New function.
9571 * value.h (default_read_var_value): Add prototype.
9572 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
9573 New functions.
9574 (ada_language_defn): Add entry for la_read_var_value.
9575 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
9576 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
9577 language_defn structures to add entry for new la_read_var_value
9578 field.
9579
f59f708a
PA
95802012-03-02 Tom Tromey <tromey@redhat.com>
9581 Pedro Alves <palves@redhat.com>
9582
9583 PR breakpoints/13776:
9584 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
9585 breakpoints.
9586 (delete_longjmp_breakpoint_at_next_stop): New.
9587 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
9588 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
9589 before deleting the inferior. Add comments.
9590 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
9591 breakpoints immediately, but only on next stop. Move that code
9592 next to where we mark other breakpoints for deletion.
9593
44099a67
JB
95942012-03-02 Joel Brobecker <brobecker@adacore.com>
9595
9596 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
9597 marker.
9598 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
9599 violation.
9600
2a2ef594
PA
96012012-03-02 Pedro Alves <palves@redhat.com>
9602
9603 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
9604
b261e0c5
UW
96052012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
9606
9607 Fix -Wmissing-prototypes build.
9608 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
9609 * remote-sim.c (gdbsim_has_all_memory): Likewise.
9610 (gdbsim_has_memory): Likewise.
9611
a95babbf
YQ
96122012-03-02 Yao Qi <yao@codesourcery.com>
9613
9614 Fix -Wmissing-prototypes build.
9615 * charset.c (phony_iconv_open): Make static.
9616 (phony_iconv_close, phony_iconv): Likewise.
9617 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
9618 * i386-windows-nat.c (_initialize_i386_windows_nat): New
9619 prototype.
9620 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
9621 * ser-mingw.c (create_select_thread): Make static.
9622 * windows-termcap.c (tgetent): New prototype.
9623 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
9624
d603d4b3
JK
96252012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
9626
9627 Fix -Wmissing-prototypes build.
9628 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
9629 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
9630 (_initialize_loadable): New prototypes.
9631
7fb3ad1f
DE
96322012-03-02 Doug Evans <dje@google.com>
9633
9634 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
9635 abbrev table, read_comp_unit will do it.
9636
693be288
JK
96372012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9638
9639 Fix -Wmissing-prototypes build.
9640 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
9641 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
9642 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
9643 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
9644 (_initialize_arm_symbian_tdep): New prototype.
9645 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
9646 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
9647 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
9648 static.
9649 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
9650 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
9651 prototype.
9652 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
9653 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
9654 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
9655 static.
9656 * moxie-tdep.c (moxie_process_record): Likewise.
9657 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
9658 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
9659 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
9660 (_initialize_rl78_tdep): New prototype.
9661 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
9662 (_initialize_rx_tdep): New prototype.
9663 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
9664 (_initialize_darwin_solib): New prototype.
9665 * solib-spu.c: Include solib-spu.h.
9666 (_initialize_spu_solib): New prototype.
9667 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
9668 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
9669 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
9670 (tic6x_software_single_step): Make it static.
9671 (_initialize_tic6x_tdep): New prototype.
9672
638234e5
JK
96732012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9674
9675 Fix -Wmissing-prototypes build.
9676 * cris-tdep.c (cris_can_use_hardware_watchpoint)
9677 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
9678
f4a6f16d
JK
96792012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9680
9681 Fix -Wmissing-prototypes build.
9682 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
9683 (frv_have_stopped_data_address): Remove.
9684
04dcf5fa
JK
96852012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
9686
9687 Fix -Wmissing-prototypes build.
9688 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
9689 * sh-tdep.c: Include sh64-tdep.h.
9690 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
9691 * sh64-tdep.c: Include sh64-tdep.h.
9692 * sh64-tdep.h: New file.
9693
19080931
MR
96942012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9695
9696 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
9697
9aac7884
MR
96982012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9699
9700 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
9701 sp_regnum once the gdbarch_init_osabi hook has been called.
9702
a385295e
MR
97032012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
9704
9705 * mips-tdep.c (mips32_bc1_pc): New function.
9706 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
9707 BPOSGE32 and BPOSGE64 instructions.
9708 (deal_with_atomic_sequence): Likewise.
9709 (mips32_instruction_has_delay_slot): Likewise.
9710
1faeff08 97112012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
9712 Chris Dearman <chris@mips.com>
9713 Maciej W. Rozycki <macro@codesourcery.com>
9714 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
9715
9716 * features/mips-dsp.xml: New file.
9717 * features/mips64-dsp.xml: New file.
9718 * features/mips-dsp-linux.xml: New file.
9719 * features/mips64-dsp-linux.xml: New file.
9720 * features/Makefile (WHICH): Add mips-dsp-linux and
9721 mips64-dsp-linux.
9722 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
9723 * features/mips-dsp-linux.c: New file.
9724 * features/mips64-dsp-linux.c: New file.
9725 * regformats/mips-dsp-linux.dat: New file.
9726 * regformats/mips64-dsp-linux.dat: New file.
9727 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
9728 registers.
9729 (mips64_linux_register_addr): Likewise.
9730 (mips64_linux_regsets_fetch_registers): Likewise.
9731 (mips64_linux_regsets_store_registers): Likewise.
9732 (mips64_linux_fetch_registers): Update call to
9733 mips64_linux_regsets_fetch_registers.
9734 (mips64_linux_store_registers): Update call to
9735 mips64_linux_regsets_store_registers.
9736 (mips_linux_read_description): Probe for DSP registers.
9737 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
9738 and initialize_tdesc_mips64_dsp_linux.
9739 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
9740 Remove padding of no longer used embedded register slots.
9741 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
9742 (MIPS_RESTART_REGNUM): Redefine enum value.
9743 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
9744 strings.
9745 (mips_tx39_reg_names): Likewise.
9746 (mips_linux_reg_names): New array of register names for Linux
9747 targets.
9748 (mips_register_name): Check for a null pointer in
9749 mips_processor_reg_names and return an empty string.
9750 (mips_register_type): Exclude embedded registers for the IRIX
9751 and Linux ABIs.
9752 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
9753 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
9754 DSP registers.
9755 (mips_stab_reg_to_regnum): Handle DSP accumulators.
9756 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
9757 (mips_gdbarch_init): Likewise. Initialize internal register
9758 indices for the Linux ABI. Use dynamic numbers to refer to
9759 registers, as applicable, while parsing the target description.
9760 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
9761
263689d8
JB
97622012-03-01 Joel Brobecker <brobecker@adacore.com>
9763
9764 * frame.h (read_frame_register_unsigned): Fix typo in function
9765 description.
9766
f3b4f45c
PA
97672012-03-01 Pedro Alves <palves@redhat.com>
9768
9769 * jit-reader.in [!__cplusplus]
9770 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
9771
b03a2011
PA
97722012-03-01 Pedro Alves <palves@redhat.com>
9773
9774 * configure.ac (build_warnings): Add -Wmissing-prototypes.
9775 * configure: Regenerate.
9776
70221824
PA
97772012-03-01 Pedro Alves <palves@redhat.com>
9778
9779 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
9780 * breakpoint.c (create_exception_master_breakpoint, trace_command)
9781 (ftrace_command, strace_command): Make static.
9782 * d-lang.c (_initialize_d_language): Declare.
9783 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
9784 * dwarf2loc.c (_initialize_dwarf2loc):
9785 * dwarf2read.c (process_psymtab_comp_unit): Make static.
9786 * exec.c (exec_get_section_table): Make static.
9787 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
9788 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
9789 * inferior.c (remove_inferior_command, add_inferior_command)
9790 (clone_inferior_command): Make static.
9791 * linux-nat.c (linux_nat_thread_address_space)
9792 (linux_nat_core_of_thread): Make static.
9793 * linux-tdep.c (_initialize_linux_tdep): Declare.
9794 * objc-lang.c (_initialize_objc_lang): Declare.
9795 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
9796 Make static.
9797 (_initialize_opencl_language): Declare.
9798 * record.c (_initialize_record): Declare.
9799 * remote.c (demand_private_info, remote_get_tib_address)
9800 (remote_supports_cond_tracepoints)
9801 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
9802 Make static.
9803 * skip.c (_initialize_step_skip): Declare.
9804 * symtab.c (skip_prologue_using_lineinfo): Make static.
9805 * tracepoint.c (delete_trace_state_variable)
9806 (trace_variable_command, delete_trace_variable_command)
9807 (get_uploaded_tsv, find_matching_tracepoint_location)
9808 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
9809 Make static.
9810 * value.c (pack_unsigned_long): Make static.
9811 * varobj.c (varobj_ensure_python_env): Make static.
9812 * windows-tdep.c (_initialize_windows_tdep): Declare.
9813 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
9814
33fbcbee
PA
98152012-03-01 Pedro Alves <palves@redhat.com>
9816
9817 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
9818 gdbarch parameter.
9819 (linux_init_abi): Install it as has_shared_address_space gdbarch
9820 callback.
9821
44d0cd3b
PA
98222012-03-01 Pedro Alves <palves@redhat.com>
9823
9824 * observer.c (observer_test_first_notification_function)
9825 (observer_test_second_notification_function)
9826 (observer_test_third_notification_function): Add declarations.
9827
ed01b82c
PA
98282012-03-01 Pedro Alves <palves@redhat.com>
9829
9830 * common/signals.c (default_target_signal_to_host)
9831 (default_target_signal_from_host): Move ...
9832 * arch-utils.c: ... here.
9833 * arch-utils.h (default_target_signal_to_host)
9834 (default_target_signal_from_host): Declare.
9835
9836 * common/signals.c (target_signal_from_command): Move ...
9837 * infrun.c: ... here.
9838 * inferior.h (target_signal_from_command): Declare.
9839 * target.h (target_signal_from_command)
9840 (default_target_signal_from_host, default_target_signal_to_host):
9841 Delete declarations.
9842
9843 * common/signals.c (_initialize_signals): Delete.
9844
c9b87335
PA
98452012-03-01 Pedro Alves <palves@redhat.com>
9846
9847 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
9848 both __cplusplus and !__cplusplus.
9849
9340a6c0
PA
98502012-03-01 Pedro Alves <palves@redhat.com>
9851
9852 * psymtab.c (find_and_open_source): Delete declaration.
9853 * source.c (find_and_open_source): Move comment ...
9854 * source.h (find_and_open_source): ... to this new declaration.
9855
e451c4a1
PA
98562012-03-01 Pedro Alves <palves@redhat.com>
9857
9858 * inline-frame.c: Include inline-frame.h.
9859
983fb104
PA
98602012-03-01 Pedro Alves <palves@redhat.com>
9861
9862 * tui/tui-data.c (set_gen_win_origin): Delete.
9863 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
9864 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
9865
5fbce5df
PA
98662012-03-01 Pedro Alves <palves@redhat.com>
9867
9868 * remote.c (encode_actions): Delete declaration.
9869 * tracepoint.c (encode_actions): Make extern.
9870 * tracepoint.h (encode_actions): Declare.
9871
49a8461d
PA
98722012-03-01 Pedro Alves <palves@redhat.com>
9873
9874 * python/py-breakpoint.c: Include python.h.
9875 * python/py-continueevent.c (create_continue_event_object): Make
9876 static.
9877 * python/py-lazy-string.c (stpy_get_type): Make static.
9878 * python/py-newobjfileevent.c (create_new_objfile_event_object):
9879 Make static.
9880 * python/py-utils.c (unicode_to_target_python_string): Make
9881 static.
9882 * python/py-value.c: Include python.h.
9883
9079102f
PA
98842012-03-01 Pedro Alves <palves@redhat.com>
9885
9886 * inferior.c (delete_threads_of_inferior): Delete.
9887
a298c5e8
PA
98882012-03-01 Pedro Alves <palves@redhat.com>
9889
9890 Import fallback definitions from glibc.
9891
9892 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
9893 ps_prochandle): Forward declare.
9894 (ps_err_e): Use glibc's comments.
9895 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
9896 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
9897 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
9898 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
9899 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
9900 (struct ps_prochandle): Adjust comment.
9901
e3084549
PA
99022012-03-01 Pedro Alves <palves@redhat.com>
9903
9904 * ada-lang.c (ada_modulus_from_name): Delete.
9905 * ada-lex.l (lexer_init): Make static.
9906
ad5f7d6e
PA
99072012-03-01 Pedro Alves <palves@redhat.com>
9908
9909 PR gdb/13767
9910
9911 * frame.c (read_frame_register_unsigned): New.
9912 * frame.h (read_frame_register_unsigned): Declare.
9913 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
9914 Handle it.
9915 (print_i387_control_word): New parameter `control_p'. Handle it.
9916 (i387_print_float_info): Handle unavailable float registers.
9917
e0a4d108
KS
99182012-03-01 Keith Seitz <keiths@redhat.com>
9919
9920 * linespec.c (decode_line_2): Sort the list of methods
9921 alphabetically before presenting the user with a selection
9922 menu.
9923
122d1940
DE
99242012-03-01 Doug Evans <dje@google.com>
9925
9926 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
9927 has_namespace_info.
9928 (dwarf2_read_abbrevs): Remove corresponding initialization.
9929
7d74f244
DE
99302012-03-01 Scott J. Goldman <scottjg@vmware.com>
9931
9932 * NEWS: Mention new python command class gdb.COMMAND_USER.
9933 * cli/cli-cmds.c (show_user): Print error when used on a python
9934 command.
9935 (init_cli_cmds): Update documentation strings for "show user" and
9936 "set/show max-user-call-depth" to clarify that it does not apply to
9937 python commands.
9938 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
9939 error check.
9940 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
9941 gdb python api.
9942 * top.c (execute_command): Only execute a user-defined command as a
9943 legacy macro if c->user_commands is set.
9944
e88acd96
TT
99452012-03-01 Tom Tromey <tromey@redhat.com>
9946
9947 * valprint.h (struct generic_val_print_decorations): New.
9948 (generic_val_print): Declare.
9949 * valprint.c (generic_val_print): New function.
9950 * p-valprint.c (p_decorations): New global.
9951 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
9952 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
9953 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
9954 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
9955 * m2-valprint.c (m2_decorations): New global.
9956 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
9957 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
9958 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
9959 TYPE_CODE_ERROR>: Call generic_val_print.
9960 * f-valprint.c (f_decorations): New global.
9961 (f_val_print): Use print_function_pointer_address.
9962 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
9963 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
9964 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
9965 generic_val_print.
9966 * c-valprint.c (c_decorations): New global.
9967 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
9968 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
9969 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
9970 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
9971 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
9972 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
9973 case.
9974
d3eab38a
TT
99752012-03-01 Tom Tromey <tromey@redhat.com>
9976
9977 * valprint.c (val_print): Update.
9978 * p-valprint (pascal_val_print): Return void.
9979 * p-lang.h (pascal_val_print): Return void.
9980 * m2-valprint.c (m2_val_print): Return void.
9981 * m2-lang.h (m2_val_print): Return void.
9982 * language.h (struct language_defn) <la_val_print>: Return void.
9983 * language.c (unk_lang_val_print): Return void.
9984 * jv-valprint.c (java_val_print): Return void.
9985 * jv-lang.h (java_val_print): Return void.
9986 * f-valprint.c (f_val_print): Return void.
9987 * f-lang.h (f_val_print): Return void.
9988 * d-valprint.c (d_val_print): Return void.
9989 (dynamic_array_type): Update.
9990 * d-lang.h (d_val_print): Return void.
9991 * c-valprint.c (c_val_print): Return void.
9992 * c-lang.h (c_val_print): Return void.
9993 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
9994 void.
9995 * ada-lang.h (ada_val_print): Return void.
9996
35c0084b
TT
99972012-03-01 Tom Tromey <tromey@redhat.com>
9998
9999 * value.h (val_print): Return void.
10000 * valprint.c (val_print): Return void.
10001
a1f5dd1b
TT
100022012-03-01 Tom Tromey <tromey@redhat.com>
10003
10004 * value.h (common_val_print): Return void.
10005 * valprint.c (common_val_print): Return void.
10006
8e069a98
TT
100072012-03-01 Tom Tromey <tromey@redhat.com>
10008
10009 * value.h (value_print): Return void.
10010 * valprint.c (value_print): Return void.
10011 * p-valprint.c (pascal_value_print): Return void.
10012 * p-lang.h (pascal_value_print): Return void.
10013 * language.h (struct language_defn) <la_value_print>: Return
10014 void.
10015 * language.c (unk_lang_value_print): Return void.
10016 * jv-valprint.c (java_value_print): Return void.
10017 * jv-lang.h (java_value_print): Return void.
10018 * f-valprint.c (c_value_print): Don't declare.
10019 Include c-lang.h.
10020 * c-valprint.c (c_value_print): Return void.
10021 * c-lang.h (c_value_print): Return void.
10022 * ada-valprint.c (ada_value_print): Return void.
10023 * ada-lang.h (ada_value_print): Return void.
10024
be335936
TT
100252012-03-01 Tom Tromey <tromey@redhat.com>
10026
10027 * value.c (value_primitive_field): Handle virtual base classes.
10028
b0db66a7
TT
100292012-03-01 Tom Tromey <tromey@redhat.com>
10030
10031 * gdbtypes.h (struct vbase): Remove.
10032
132c57b4
TT
100332012-03-01 Tom Tromey <tromey@redhat.com>
10034
10035 * c-valprint.c (print_function_pointer_address): Move...
10036 * valprint.c: ... here. Make non-static.
10037 * m2-valprint.c (print_function_pointer_address): Remove.
10038 * valprint.h (print_function_pointer_address): Declare.
10039
e41eec66
JB
100402012-03-01 Joel Brobecker <brobecker@adacore.com>
10041
10042 * NEWS: Document the fact that one can provide a condition when
10043 creating an Ada exception catchpoint.
10044
19c37f24
TT
100452012-03-01 Tom Tromey <tromey@redhat.com>
10046
10047 * valprint.c (val_print_type_code_flags): Fix placement of
10048 trailing brace.
10049
f0fed3a3
JB
100502012-03-01 Joel Brobecker <brobecker@adacore.com>
10051
10052 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
10053 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
10054 environment variable before calling update-copyright.
10055
8ba85d85
JB
100562012-03-01 Joel Brobecker <brobecker@adacore.com>
10057
10058 * gnulib/extra/update-copyright: Update to the latest from
10059 gnulib's git repository.
10060 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
10061 variable to 2 instead of 1.
10062
8219b1e8
JB
100632012-02-29 Joel Brobecker <brobecker@adacore.com>
10064
10065 * varobj.c (c_value_of_variable): Remove dead code.
10066
718cb7da
JB
100672012-02-29 Joel Brobecker <brobecker@adacore.com>
10068
10069 * ada-lex.p (processId): Do not modify already encoded IDs.
10070 Update function documentation.
10071
739593e0
JB
100722012-02-29 Joel Brobecker <brobecker@adacore.com>
10073
10074 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
10075 "name" with "struct symbol *name_sym".
10076 * ada-exp.y (write_var_or_type): Update call to
10077 ada_find_renaming_symbol.
10078 "name" with "struct symbol *name_sym". Adjust Implementation
10079 accordingly. Adjust the function documentation.
10080
852dff6c
JB
100812012-02-29 Joel Brobecker <brobecker@adacore.com>
10082
10083 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
10084 * ada-lang.c (ada_find_any_type): Add advance declaration.
10085 Make static. Replace ada_find_any_symbol by
10086 ada_find_any_type_symbol.
10087 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
10088 Improve function description. Make static.
10089 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
10090 Replace ada_find_any_symbol by ada_find_any_type_symbol.
10091
1b611343
JB
100922012-02-29 Joel Brobecker <brobecker@adacore.com>
10093
10094 * ada-lang.c (struct tag_args): Delete.
10095 (ada_get_tsd_type): Function body moved up in source file.
10096 (ada_tag_name_1, ada_tag_name_2): Delete.
10097 (ada_get_tsd_from_tag): New function.
10098 (ada_tag_name_from_tsd): New function.
10099 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
10100 to determine the tag name.
10101
41246937
JB
101022012-02-29 Joel Brobecker <brobecker@adacore.com>
10103
10104 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
10105 declaration.
10106 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
10107 function.
10108
ffde82bf
JB
101092012-02-29 Joel Brobecker <brobecker@adacore.com>
10110
10111 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
10112
2ad01556
JB
101132012-02-29 Joel Brobecker <brobecker@adacore.com>
10114
10115 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
10116 full searches.
10117
99b1c762
JB
101182012-02-29 Joel Brobecker <brobecker@adacore.com>
10119
10120 * ada-lang.c (constrained_packed_array_type): If there is a
10121 parallel XA type, use it to determine the array index type.
10122
2d4a02ee
JB
101232012-02-29 Joel Brobecker <brobecker@adacore.com>
10124
10125 * ada-valprint.c (ada_val_print_1): If our value is a reference
10126 to an array descriptor, dereference it before converting it
10127 to a simple array.
10128
c48db5ca
JB
101292012-02-29 Joel Brobecker <brobecker@adacore.com>
10130
10131 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
10132 creating fixed value.
10133 (ada_value_ind, ada_coerce_ref, assign_component)
10134 (ada_evaluate_subexp): Remove call to unwrap_value before
10135 call to ada_to_fixed_value.
10136
2e6fda7d
JB
101372012-02-29 Joel Brobecker <brobecker@adacore.com>
10138
10139 * ada-lang.c (to_fixed_array_type): Set result's type name.
10140
5845583d
JB
101412012-02-29 Joel Brobecker <brobecker@adacore.com>
10142
10143 * ada-lang.c (catch_ada_exception_command_split): Add new
10144 argument cond_string. Add support for condition at end of
10145 "catch exception" commands.
10146 (ada_decode_exception_location): Add new argument cond_string.
10147 Update call to catch_ada_exception_command_split.
10148 (create_ada_exception_catchpoint): Add new argument cond_string.
10149 Set the breakpoint condition if needed.
10150 (catch_ada_exception_command): Update call to
10151 ada_decode_exception_location.
10152 (ada_decode_assert_location): Add function documentation.
10153 Add support for condition at end of "catch assert" command.
10154 (catch_assert_command): Update calls to ada_decode_assert_location
10155 and create_ada_exception_catchpoint.
10156
9a7f938f
JK
101572012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10158
10159 Fix disp-step-syscall.exp: fork: single step over fork.
10160 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
10161 (i386_linux_get_syscall_number_from_regcache): ... here, new function
10162 comment, change parameters gdbarch and ptid to regcache. Remove
10163 parameter regcache, initialize gdbarch from regcache here.
10164 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
10165 New functions.
10166 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
10167 instead.
10168 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
10169 'syscall'. Make the 'int' check more strict.
10170
ffdf6de5
JK
101712012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10172
10173 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
10174 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
10175 (i386_linux_intx80_sysenter_syscall_record): ... here.
10176 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
10177 Use the renamed function name.
10178
c70a6932
JK
101792012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
10180
10181 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
10182 * breakpoint.c (until_break_command): Likewise.
10183 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
10184 * infcall.c (call_function_by_hand): Likewise.
10185 * infcmd.c (finish_forward): Likewise.
10186 * infrun.c (insert_exception_resume_breakpoint): Likewise.
10187
05b8a789 101882012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 10189
d4cd3da9
JB
10190 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
10191 avoid variable assignments inside condition.
10192
6425366c
JK
101932012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10194
10195 Fix static analysis issue found by cppcheck.
10196 * microblaze-tdep.c (microblaze_extract_return_value): Fix
10197 uninitialized BUF for size 2.
10198
c8cef75f 101992012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
10200 Nathan Froyd <froydnj@codesourcery.com>
10201 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
10202
10203 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
10204 (mips16_instruction_has_delay_slot): Likewise.
10205 (mips_segment_boundary): Likewise.
10206 (mips_adjust_breakpoint_address): Likewise.
10207 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
10208
473347ad 102092012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 10210 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
10211
10212 * infrun.c (handle_inferior_event): Don't proceed through
10213 shared library trampolines if stepping at the machine
10214 instruction level.
10215
cf233303
MR
102162012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
10217
10218 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
10219 too.
10220
cb2cf4ce
TS
102212012-02-27 Thomas Schwinge <thomas@codesourcery.com>
10222
10223 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
10224 (sh_stub_unwind_sniffer): New functions.
10225 (sh_stub_unwind): New variable.
10226 (sh_gdbarch_init): Wire everything.
10227
644cebc9
PA
102282012-02-27 Pedro Alves <palves@redhat.com>
10229
10230 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
10231 (linux_nat_post_attach_wait): Adjust to use
10232 linux_proc_pid_is_stopped.
10233 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
10234 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
10235 based on pid_is_stopped from both linux-nat.c and
10236 gdbserver/linux-low.c, and renamed.
10237
283002cf
MR
102382012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10239
10240 * remote.c (remote_watchpoint_addr_within_range): New function.
10241 (init_remote_ops): Use it.
10242
9b3e86b1
MR
102432012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
10244
10245 * target.h (target_watchpoint_addr_within_range): Document macro.
10246
e36930bb
PA
102472012-02-24 Pedro Alves <palves@redhat.com>
10248
10249 * stack.c (set_last_displayed_sal): Issue internal_error instead
10250 of warning, and issue it after clearing the last displayed sal.
10251
883bc8d1
PA
102522012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
10253 Pedro Alves <palves@redhat.com>
10254
10255 * breakpoint.c (until_break_command): Install breakpoints after
10256 all frame manipulations.
10257
b775012e
LM
102582012-02-24 Luis Machado <lgustavo@codesourcery.com>
10259
10260 * remote.c (remote_supports_cond_breakpoints): New forward
10261 declaration.
10262 (remote_add_target_side_condition): New function.
10263 (remote_insert_breakpoint): Add target-side breakpoint
10264 conditional if supported.
10265 (remote_insert_hw_breakpoint): Likewise.
10266 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
10267 hook.
10268
10269 * target.c (update_current_target): Inherit
10270 to_supports_evaluation_of_breakpoint_conditions.
10271 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
10272
10273 * target.h (struct target_ops)
10274 <to_supports_evaluation_of_breakpoint_conditions>: New field.
10275 (target_supports_evaluation_of_breakpoint_conditions): New #define.
10276
10277 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
10278 (condition_evaluation_both, condition_evaluation_auto,
10279 condition_evaluation_host, condition_evaluation_target,
10280 condition_evaluation_enums, condition_evaluation_mode_1,
10281 condition_evaluation_mode): New static globals.
10282 (translate_condition_evaluation_mode): New function.
10283 (breakpoint_condition_evaluation_mode): New function.
10284 (gdb_evaluates_breakpoint_condition_p): New function.
10285 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
10286 (mark_breakpoint_modified): New function.
10287 (mark_breakpoint_location_modified): New function.
10288 (set_condition_evaluation_mode): New function.
10289 (show_condition_evaluation_mode): New function.
10290 (bp_location_compare_addrs): New function.
10291 (get_first_location_gte_addr): New helper function.
10292 (set_breakpoint_condition): Free condition bytecode if locations
10293 has become unconditional. Call mark_breakpoint_modified (...).
10294 (condition_command): Call update_global_location_list (1) for
10295 breakpoints.
10296 (breakpoint_xfer_memory): Use is_breakpoint (...).
10297 (is_breakpoint): New function.
10298 (parse_cond_to_aexpr): New function.
10299 (build_target_condition_list): New function.
10300 (insert_bp_location): Handle target-side conditional
10301 breakpoints and call build_target_condition_list (...).
10302 (update_inserted_breakpoint_locations): New function.
10303 (insert_breakpoint_locations): Handle target-side conditional
10304 breakpoints.
10305 (bpstat_check_breakpoint_conditions): Add comment.
10306 (bp_condition_evaluator): New function.
10307 (bp_location_condition_evaluator): New function.
10308 (print_breakpoint_location): Print information on where the condition
10309 will be evaluated.
10310 (print_one_breakpoint_location): Likewise.
10311 (init_bp_location): Call mark_breakpoint_location_modified (...) for
10312 breakpoint location.
10313 (force_breakpoint_reinsertion): New functions.
10314 (update_global_location_list): Handle target-side breakpoint
10315 conditions.
10316 Reinsert locations that are already inserted if conditions have
10317 changed.
10318 (bp_location_dtor): Free agent expression bytecode.
10319 (disable_breakpoint): Call mark_breakpoint_modified (...).
10320 Call update_global_location_list (...) with parameter 1 for breakpoints.
10321 (disable_command): Call mark_breakpoint_location_modified (...).
10322 Call update_global_location_list (...) with parameter 1 for breakpoints.
10323 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
10324 (enable_command): mark_breakpoint_location_modified (...).
10325 (_initialize_breakpoint): Update documentation and add
10326 condition-evaluation breakpoint subcommand.
10327
10328 * breakpoint.h: Include ax.h.
10329 (condition_list): New data structure.
10330 (condition_status): New enum.
10331 (bp_target_info) <cond_list>: New field.
10332 (bp_location) <condition_changed, cond_bytecode>: New fields.
10333 (is_breakpoint): New prototype.
10334
3788aec7
LM
103352012-02-24 Luis Machado <lgustavo@codesourcery.com>
10336
10337 * remote.c (remote_state) <cond_breakpoints>: New field.
10338 (PACKET_ConditionalBreakpoints): New enum.
10339 (remote_cond_breakpoint_feature): New function.
10340 (remote_protocol_features): Add new ConditionalBreakpoints entry.
10341 (remote_supports_cond_breakpoints): New function.
10342 (_initialize_remote): Add new packet configuration for
10343 target-side conditional breakpoints.
10344
72895ff6
LM
103452012-02-24 Luis Machado <lgustavo@codesourcery.com>
10346
10347 * NEWS: Mention target-side conditional breakpoint support,
10348 new condition-evaluation breakpoint subcommand and remote
10349 packet extensions.
10350
dea2aa5f
LM
103512012-02-24 Luis Machado <lgustavo@codesourcery.com>
10352
10353 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
10354 number.
10355
8a8bc27f
TS
103562012-02-24 Thomas Schwinge <thomas@codesourcery.com>
10357
10358 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
10359 (after_prologue): Remove.
10360
6b446fdf
TT
103612012-02-23 Tom Tromey <tromey@redhat.com>
10362
10363 * jv-valprint.c (java_val_print): Remove dead code.
10364
ef59abfb
TG
103652012-02-23 Tristan Gingold <gingold@adacore.com>
10366
a09130f9
PA
10367 * ada-tasks.c (struct ada_tasks_inferior_data): Add
10368 known_tasks_element and known_tasks_length fields.
10369 (read_known_tasks_array): Change argument type. Use pointer type
10370 and number of elements from DATA. Adjust.
10371 (read_known_tasks_list): Likewise.
10372 (get_known_tasks_addr): Remove.
10373 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
10374 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
10375 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 10376
def166f6
JK
103772012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
10378
10379 PR backtrace/13716
10380 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
10381 it after set_momentary_breakpoint.
10382
aeaa2474
SA
103832012-02-22 Sterling Augustine <saugustine@google.com>
10384
10385 PR 13689:
10386 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
10387
feea76c2
GB
103882012-02-22 Gary Benson <gbenson@redhat.com>
10389
10390 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
10391 (find_slot_in_mapped_hash): Likewise.
10392
f06e05e0
JK
103932012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
10394
10395 PR build/13638
10396 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
10397 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
10398 * configure: Regenerate.
10399
b54a8fd7
PA
104002012-02-21 Tristan Gingold <gingold@adacore.com>
10401 Pedro Alves <palves@redhat.com>
10402
10403 * ia64-tdep.c: Do not include libunwind-ia64.h.
10404 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
10405 Include libunwind-ia64.h instead of libunwind.h.
10406 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
10407 for libunwind.h existence.
10408 * configure, config.in: Regenerate.
10409
dfcee124
AG
104102012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10411
10412 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
10413 instead of value_rtti_target_type.
10414 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
10415 instead of value_rtti_target_type.
10416 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
10417 value_rtti_target_type.
10418 * valops.c (value_ind): Extract function readjust_indirect_value_type.
10419 (value_rtti_target_type): Rename to ...
10420 (value_rtti_indirect_type): ... here and make it indirect. Update
10421 function comment.
10422 * value.c (readjust_indirect_value_type): New function.
10423 (coerce_ref): Support for enclosing type setting for references
10424 with readjust_indirect_value_type.
10425 * value.h (readjust_value_type): New declaration.
10426 (value_rtti_target_type): Rename to ...
10427 (value_rtti_indirect_type): ... here.
10428
02568277
AG
104292012-02-21 Anton Gorenkov <xgsa@yandex.ru>
10430
10431 * MAINTAINERS (Write After Approval): Add myself to the list.
10432
10c07b7e 104332012-02-20 Doug Evans <dje@google.com>
28ee876a 10434
d82ea6a8
DE
10435 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
10436 Rename objfile_p_char parameter to objfilep.
10437 (build_objfile_section_table): Result is now void. All callers
10438 updated.
10439 * objfiles.h (struct objfile): Tweak comments, whitespace.
10440 (build_objfile_section_table): Update.
10441
28ee876a
DE
10442 * elfread.c (elf_symfile_segments): Fix warning text.
10443
24c79950
TT
104442012-02-20 Tom Tromey <tromey@redhat.com>
10445
10446 PR gdb/13498:
10447 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
10448 particular set of file names once.
10449 (dw2_map_symbol_filenames): Likewise.
10450
3a9b40b6
JK
104512012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
10452
10453 Code cleanup.
10454 * main.c (write_files): Remove the declaration.
10455 (external_editor_command): Move the declaration ...
10456 [GDBTK] (external_editor_command): ... here. Fix the comment.
10457
4d0795ca
TT
104582012-02-20 Tom Tromey <tromey@redhat.com>
10459
10460 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
10461 extraneous block.
10462
637fd620
TG
104632012-02-20 Tristan Gingold <gingold@adacore.com>
10464
10465 * darwin-nat.h (enum darwin_msg_state): Add comments.
10466
6f124894
TG
104672012-02-20 Tristan Gingold <gingold@adacore.com>
10468
10469 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
10470 value.
10471
2e6e3d9c
JB
104722012-20-18 Joel Brobecker <brobecker@adacore.com>
10473
10474 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
10475 between function description and implementation.
10476
2e8265fd
TT
104772012-02-17 Tom Tromey <tromey@redhat.com>
10478
10479 PR python/12070:
10480 * python/py-event.c (event_object_getset): New global.
10481 (event_object_type): Reference it.
10482 * python/py-type.c (field_object_getset): New global.
10483 (field_object_type): Reference it.
10484 * python/python-internal.h (gdb_py_generic_dict): Declare.
10485 * python/py-utils.c (gdb_py_generic_dict): New function.
10486
8544a150 104872012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 10488
8544a150 10489 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 10490
ca193e27
TS
104912012-02-17 Thomas Schwinge <thomas@codesourcery.com>
10492
10493 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
10494 TYPE_CALLING_CONVENTION annotation.
10495
e5586183
KB
104962012-02-16 Kevin Buettner <kevinb@redhat.com>
10497
10498 * MAINTAINERS: Add rx to target ISA section.
10499 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
10500 (ALLDEPFILES): Add rx-tdep.c.
10501
7dcd53a0
TT
105022012-02-16 Tom Tromey <tromey@redhat.com>
10503
10504 * symfile.c (symbol_file_add_main_1): Use inferior's
10505 symfile_flags.
10506 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
10507 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
10508 inferior.
10509 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
10510 inferior.
10511 (follow_exec): Use inferior's symfile_flags.
10512 * inferior.h (struct inferior) <symfile_flags>: New field.
10513
ddd60447
MF
105142012-02-16 Mike Frysinger <vapier@gentoo.org>
10515
10516 PR gdb/9734:
10517 * remote-sim.c (gdbsim_create_inferior): Call error() when
10518 sim_create_inferior() fails.
10519
b0d32fb6
TG
105202012-02-16 Josh Matthews <josh@joshmatthews.net>
10521
10522 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
10523
9addecb9
TT
105242012-02-16 Tom Tromey <tromey@redhat.com>
10525
10526 PR c++/13653:
10527 * thread.c (struct current_thread_cleanup) <was_removable>: New
10528 field.
10529 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
10530 (make_cleanup_restore_current_thread): Initialize new field.
10531
a58b110a
KB
105322012-02-15 Kevin Buettner <kevinb@redhat.com>
10533
10534 * MAINTAINERS: Add rl78 to target ISA section.
10535 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
10536 (ALLDEPFILES): Add rl78-tdep.c.
10537 * NEWS: Mention rl78 as a new target.
10538
4cb6da1c
AR
105392012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
10540
10541 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
10542 data.
10543 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
10544
3af2590d
TT
105452012-02-15 Tom Tromey <tromey@redhat.com>
10546
10547 PR gdb/12659:
10548 * infcmd.c (registers_info): Print just the current register's
10549 name.
10550
c6910659
TT
105512012-02-15 Tom Tromey <tromey@redhat.com>
10552
10553 * python/py-symbol.c (sympy_value): Use _().
10554
7cee1e54
PA
105552012-02-15 Pedro Alves <palves@redhat.com>
10556
10557 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
10558 output to be like native targets'.
10559 (remote_pid_to_str): Special case the null ptid.
10560
816338b5
SS
105612012-02-14 Stan Shebs <stan@codesourcery.com>
10562
10563 * NEWS: Mention enable count command.
10564 * breakpoint.h (struct breakpoint): New field enable_count.
10565 * breakpoint.c (enable_breakpoint_disp): Add count argument.
10566 (enable_breakpoint): Add arg to call.
10567 (struct disp_data): New struct.
10568 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
10569 (do_map_enable_once_breakpoint): Create a struct and pass it.
10570 (do_map_enable_delete_breakpoint): Ditto.
10571 (do_map_enable_count_breakpoint): New function.
10572 (enable_count_command): New function.
10573 (bpstat_stop_status): Decrement enable_count.
10574 (print_one_breakpoint_location): Report enable count.
10575 (_initialize_breakpoint): Add enable count command.
10576
c47a44f4
KB
105772012-02-14 Kevin Buettner <kevinb@redhat.com>
10578
10579 * rl78-tdep.c (reggroups.h): Include.
10580 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
10581 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
10582 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
10583 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
10584 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
10585 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
10586 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
10587 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
10588 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
10589 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
10590 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
10591 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
10592 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
10593 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
10594 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
10595 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
10596 beginning of register list.
10597 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
10598 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
10599 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
10600 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
10601 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
10602 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
10603 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
10604 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
10605 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
10606 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
10607 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
10608 the pseudo registers. Rearrange other pseudo registers too so
10609 that the bank registers appear at the end.
10610 (rl78_register_type): Account for the fact that the byte sized
10611 bank registers are now pseudo-registers.
10612 (rl78_register_name): Rearrange the register name array. Make
10613 initial set of raw banked registers inaccessible.
10614 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
10615 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
10616 case for copying bytes back and forth between raw and pseudo
10617 versions of the banked registers. Update other cases to reflect
10618 the changed names.
10619 (rl78_return_value): Update to account for changed names of
10620 raw registers.
10621 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
10622 rl78_register_sim_regno().
10623
e4569f1e
KB
106242012-02-14 Kevin Buettner <kevinb@redhat.com>
10625
10626 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
10627 the name parameter being passed to find_pc_partial_function().
10628
7a05aae7
JK
106292012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
10630
10631 * MAINTAINERS: Step down from being ia64 target maintainer.
10632
11fde611
JK
106332012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10634
10635 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
10636 compilation warning.
10637
57008375
JK
106382012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
10639
10640 Fix crash on loaded shlibs without loaded exec_bfd.
10641 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
10642 (set_section_command): Replace exec_bfd by p->bfd.
10643
ff3c9849
TT
106442012-02-10 Tom Tromey <tromey@redhat.com>
10645
10646 * linespec.c (decode_line_internal): Skip symtabs_from_filename
10647 when we have a C++ qualified name.
10648
db2b9fdd
PA
106492012-02-10 Pedro Alves <palves@redhat.com>
10650
10651 * inferior.c (inferior_pid_to_str): New.
10652 (print_inferior, inferior_command): Use it.
10653
12cd34f3
PA
106542012-02-10 Pedro Alves <palves@redhat.com>
10655
10656 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
10657 the test CFLAGS.
10658 * configure: Regenerate.
10659
e871429d
JK
106602012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
10661
10662 * linespec.c (decode_line_internal): Fix comment correctness.
10663
1916efaf
PA
106642012-02-09 Valery Khromov <valery.khromov@gmail.com>
10665
10666 PR gdb/12953
10667 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
10668 * amd64bsd-nat.c: Add support for debug registers (adapted from
10669 i386bsd-nat.c).
10670 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
10671 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
10672 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
10673 (amd64bsd_dr_get_control): New functions.
10674 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
10675 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
10676 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
10677 watchpoints initialization.
10678 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
10679
f4859d94
JK
106802012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10681
10682 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
10683 flds_bnds.fields.
10684 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
10685
c56a97f9
JK
106862012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
10687
10688 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
10689
1a119f36
JB
106902012-02-08 Joel Brobecker <brobecker@adacore.com>
10691
10692 * language.h (symbol_name_cmp_ftype): Renames
10693 symbol_name_match_p_ftype.
10694 (struct language_defn)[la_get_symbol_name_cmp]: Renames
10695 la_get_symbol_name_match_p.
10696 * ada-lang.c (ada_get_symbol_name_cmp): Renames
10697 ada_get_symbol_name_match_p. Update comment.
10698 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
10699 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
10700 Renames symbol_name_match_p. Update field type.
10701 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
10702 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
10703 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
10704 "la_get_symbol_name_cmp" in comments.
10705 * language.c: Likewise.
10706
c71bb1cf
RO
107072012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
10708
10709 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
10710 %eflags offset.
10711 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
10712 (amd64_sol2_gregset32_reg_offs): Likewise.
10713
4b2d20a5
TG
107142012-02-08 Joel Brobecker <brobecker@adacore.com>
10715
10716 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
10717 of the returned BFD is allocated by GDB.
10718
f0823d2c
TT
107192012-02-07 Tom Tromey <tromey@redhat.com>
10720
10721 PR python/12027:
10722 * python/python-internal.h (frame_object_type): Declare.
10723 * python/py-symbol.c (sympy_needs_frame): New function.
10724 (sympy_value): New function.
10725 (symbol_object_getset): Add "needs_frame".
10726 (symbol_object_methods): Add "value".
10727 * python/py-frame.c (frame_object_type): No longer static.
10728
64e7d9dd
TT
107292012-02-07 Tom Tromey <tromey@redhat.com>
10730
10731 PR python/13599:
10732 * python/py-symbol.c (sympy_line): New function.
10733 (symbol_object_getset): Add "line".
10734
1d6b2d2b
TT
107352012-02-07 Tom Tromey <tromey@redhat.com>
10736
10737 * charset.c (find_charset_names): Check 'in' against NULL.
10738
0d5cff50
DE
107392012-02-06 Doug Evans <dje@google.com>
10740
10741 * gdbtypes.h (struct main_type): Change type of name,tag_name,
10742 and fields.name members from char * to const char *. All uses updated.
10743 (struct cplus_struct_type): Change type of fn_fieldlists.name member
10744 from char * to const char *. All uses updated.
10745 (type_name_no_tag): Update.
10746 (lookup_unsigned_typename, lookup_signed_typename): Update.
10747 * gdbtypes.c (type_name_no_tag): Change result type
10748 from char * to const char *. All callers updated.
10749 (lookup_unsigned_typename, lookup_signed_typename): Change type of
10750 name parameter from char * to const char *.
10751 * symtab.h (struct cplus_specific): Change type of demangled_name
10752 member from char * to const char *. All uses updated.
10753 (struct general_symbol_info): Change type of name and
10754 mangled_lang.demangled_name members from char * to const char *.
10755 All uses updated.
10756 (symbol_get_demangled_name, symbol_natural_name): Update.
10757 (symbol_demangled_name, symbol_search_name): Update.
10758 * symtab.c (symbol_get_demangled_name): Change result type
10759 from char * to const char *. All callers updated.
10760 (symbol_natural_name, symbol_demangled_name): Ditto.
10761 (symbol_search_name): Ditto.
10762 (completion_list_add_name): Change type of symname,sym_text,
10763 text,word parameters from char * to const char *.
10764 (completion_list_objc_symbol): Change type of sym_text,
10765 text,word parameters from char * to const char *.
10766 * ada-lang.c (find_struct_field): Change type of name parameter
10767 from char * to const char *.
10768 (encoded_ordered_before): Similarly for N0,N1 parameters.
10769 (old_renaming_is_invisible): Similarly for function_name parameter.
10770 (ada_type_name): Change result type from char * to const char *.
10771 All callers updated.
10772 * ada-lang.h (ada_type_name): Update.
10773 * buildsym.c (hashname): Change type of name parameter
10774 from char * to const char *.
10775 * buildsym.h (hashname): Update.
10776 * dbxread.c (end_psymtab): Change type of include_list parameter
10777 from char ** to const char **.
10778 * dwarf2read.c (determine_prefix): Change result type
10779 from char * to const char *. All callers updated.
10780 * f-lang.c (find_common_for_function): Change type of name, funcname
10781 parameters from char * to const char *.
10782 * f-lang.c (find_common_for_function): Update.
10783 * f-valprint.c (list_all_visible_commons): Change type of funcname
10784 parameters from char * to const char *.
10785 * gdbarch.sh (static_transform_name): Change type of name parameter
10786 and result from char * to const char *.
10787 * gdbarch.c: Regenerate.
10788 * gdbarch.h: Regenerate.
10789 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
10790 of name parameter from char * to const char *.
10791 * jv-lang.c (java_primitive_type_from_name): Ditto.
10792 (java_demangled_signature_length): Similarly for signature parameter.
10793 (java_demangled_signature_copy): Ditto.
10794 (java_demangle_type_signature): Ditto.
10795 * jv-lang.h (java_primitive_type_from_name): Update.
10796 (java_demangle_type_signature): Update.
10797 * objc-lang.c (specialcmp): Change type of a,b parameters
10798 from char * to const char *.
10799 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
10800 from char * to const char *. All callers updated.
10801 * p-lang.h (is_pascal_string_type): Update.
10802 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
10803 of name parameter from char * to const char *.
10804 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
10805 * utils.c (fprintf_symbol_filtered): Ditto.
10806 * defs.h (fprintf_symbol_filtered): Update.
10807 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
10808 * stabsread.h (end_psymtab): Update.
10809 * stack.c (find_frame_funname): Change type of funname parameter
10810 from char ** to const char **.
10811 * stack.h (find_frame_funname): Update.
10812 * typeprint.c (type_print): Change type of varstring parameter
10813 from char * to const char *.
10814 * value.h (type_print): Update.
10815 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
10816 from char * to const char *. All callers updated.
10817 (xcoff_end_psymtab): Change type of include_list parameter
10818 from char ** to const char **. All callers updated.
10819 (swap_sym): Similarly for name parameter. All callers updated.
10820 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
10821 Use xstrdup.
10822 (process_coff_symbol): Use xstrdup.
10823 * stabsread.c (stabs_method_name_from_physname): Renamed from
10824 update_method_name_from_physname. Change result type from void
10825 to char *. All callers updated.
10826 (read_member_functions): In has_destructor case, store name in objfile
10827 obstack instead of malloc space. In !has_stub case, fix mem leak.
10828
5579a92e
TT
108292012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
10830
10831 * configure: Rebuild.
10832 * configure.ac: Put -L../bfd and -L../libiberty at the front of
10833 LDFLAGS.
10834
9058f767
KB
108352012-02-03 Kevin Buettner <kevinb@redhat.com>
10836
10837 * configure.tgt (rl78-*-elf): New target.
10838 * rl78-tdep.c: New file.
10839
5b37825d
PW
108402012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
10841
10842 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
10843 and continue the loop. Add QUIT statement.
10844
e009ee71
TT
108452012-02-03 Tom Tromey <tromey@redhat.com>
10846
10847 PR gdb/13596:
10848 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
10849 bfd_lookup_symbol_from_symtab.
10850 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
10851 gdb_bfd_lookup_symbol_from_symtab.
10852
f7e44f65
JB
108532012-02-03 Joel Brobecker <brobecker@adacore.com>
10854
10855 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
10856 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
10857 symbol. Add assertion that sym2 is never NULL.
10858
2c02bd72
DE
108592012-02-02 Doug Evans <dje@google.com>
10860
10861 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
10862 "name" parameter to const char ** from char **. All callers updated.
10863 (find_pc_partial_function): Ditto.
10864 (cache_pc_function_name): Change type to const char * from char *.
10865 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
10866 (find_pc_partial_function): Update.
10867 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
10868 type of "name" parameter to const char * from char *.
10869 All uses updated.
10870 * arch-utils.c (generic_in_solib_return_trampoline): Change
10871 type of "name" parameter to const char * from char *.
10872 * arch-utils.h (generic_in_solib_return_trampoline): Update.
10873 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
10874 type of "name" parameter to const char * from char *.
10875 * gdbarch.sh (in_solib_return_trampoline): Ditto.
10876 * gdbarch.c: Regenerate.
10877 * gdbarch.h: Regenerate.
10878 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
10879 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
10880 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
10881 type of "name" parameter to const char * from char *.
10882 * skip.c (skip_function_pc): Ditto.
10883 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
10884 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
10885 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
10886 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
10887 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
10888 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
10889 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
10890 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
10891 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
10892
e886a173
PA
108932012-02-02 Pedro Alves <palves@redhat.com>
10894
10895 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
10896 the current inferior has no execution. Make sure the current
10897 remote process matches gdb's current inferior.
10898
c709a7c2
TT
108992012-02-02 Tom Tromey <tromey@redhat.com>
10900
10901 PR gdb/13405:
10902 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
10903 read-only memory.
10904
f149aabd
TT
109052012-02-02 Tom Tromey <tromey@redhat.com>
10906
10907 PR gdb/9307:
10908 * symtab.c (lookup_language_this): Set block_found.
10909
03bef283
TT
109102012-02-01 Tom Tromey <tromey@redhat.com>
10911
10912 PR gdb/13431:
10913 * jit.c (struct jit_inferior_data): Rewrite.
10914 (struct jit_objfile_data): New.
10915 (get_jit_objfile_data): New function.
10916 (add_objfile_entry): Update.
10917 (jit_read_descriptor): Return int. Replace descriptor_addr
10918 argument with inf_data. Update. Don't call error.
10919 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
10920 descriptor here.
10921 (jit_inferior_init): Don't look up descriptor. Don't call error.
10922 (jit_reset_inferior_data_and_breakpoints)
10923 (jit_inferior_created_observer): Remove.
10924 (jit_inferior_exit_hook): Update.
10925 (jit_executable_changed_observer): Remove.
10926 (jit_event_handler): Update.
10927 (free_objfile_data): Reset inferior data if needed.
10928 (_initialize_jit): Update.
10929
f0bbc364
TT
109302012-02-01 Tom Tromey <tromey@redhat.com>
10931
10932 * jit.c (bfd_open_from_target_memory): Move higher in file.
10933
47c1316c
TG
109342012-02-01 Tristan Gingold <gingold@adacore.com>
10935
10936 * libunwind-frame.c (libunwind_load): Display message if dlopen
10937 failed.
10938
8e704927
GB
109392012-02-01 Gary Benson <gbenson@redhat.com>
10940
09c7a31f 10941 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
10942 (iterate_over_symbols): Use the above.
10943 * symtab.c (iterate_over_symbols): Likewise.
10944 * language.h (language_defn->la_iterate_over_symbols): Likewise.
10945 * ada-lang.c (ada_iterate_over_symbols): Likewise.
10946 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
10947 (iterate_name_matcher): Document return values.
10948 (collect_one_symbol): Likewise.
10949 (collect_function_symbols): Likewise.
10950 (collect_symbols): Likewise.
10951
d9680e73
TT
109522012-02-01 Tom Tromey <tromey@redhat.com>
10953
10954 * ada-lang.c (resolve_subexp): Update.
10955 (ada_lookup_symbol_list): Add 'full_search' argument.
10956 (ada_iterate_over_symbols): Pass 0 as full_search argument to
10957 ada_lookup_symbol_list.
10958 (ada_lookup_encoded_symbol): Update.
10959 (get_var_value): Update.
10960 * ada-exp.y (block_lookup): Update.
10961 (write_var_or_type): Update.
10962 (write_name_assoc): Update.
10963 * ada-lang.h (ada_lookup_symbol_list): Update.
10964
72e1143f
TT
109652012-01-31 Tom Tromey <tromey@redhat.com>
10966
10967 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
10968 comment.
10969
ab2d2ad3
DE
109702012-01-31 Doug Evans <dje@google.com>
10971
10972 * symtab.h: Remove outdated comment.
e9111bf7 10973 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 10974
bc884eba
JB
109752012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
10976
10977 Fix build error in Darwin port.
10978 * i386-darwin-nat.c: Include i386-nat.h.
10979
8fc3fc34
TT
109802012-01-30 Tom Tromey <tromey@redhat.com>
10981
10982 PR breakpoints/13568:
10983 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
10984 argument. Check for recursive includes.
10985 (dwarf_decode_macros): Create an include hash.
10986
5d853008
ME
109872012-01-30 Michael Eager <eager@eagercon.com>
10988
10989 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
10990 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 10991 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
10992 (powerpc_linux_in_plt_stub): New function.
10993 (powerpc_linux_in_dynsym_resolve_code): New function.
10994 (ppc_skip_trampoline_code): New function.
10995 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
10996 Use glibc_skip_solib_resolver.
10997
40478521
JK
109982012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
10999
11000 Code cleanup: Make 1440 bytes of data segment read-only.
11001 * arch-utils.c (endian_enum): Make it const char *const [].
11002 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
11003 Likewise.
11004 * breakpoint.c (always_inserted_enums): Likewise.
11005 * cli/cli-cmds.c (script_ext_enums): Likewise.
11006 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
11007 enumlist parameter const char *const *.
11008 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
11009 const char *const *.
11010 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
11011 parameter const char *const *.
11012 * cris-tdep.c (cris_modes): Make it const char *const [].
11013 * filesystem.c (target_file_system_kinds): Likewise.
11014 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
11015 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
11016 (can_use_displaced_stepping_enum, scheduler_enums)
11017 (exec_direction_names): Likewise.
11018 * language.c (_initialize_language): Make the type_or_range_names and
11019 case_sensitive_names variables const char *const [].
11020 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
11021 * python/python.c (python_excp_enums): Likewise.
11022 * remote.c (interrupt_sequence_modes): Likewise.
11023 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
11024 * serial.c (logbase_enums): Likewise.
11025 * sh-tdep.c (sh_cc_enum): Likewise.
11026 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
11027 Likewise.
11028 * symtab.c (multiple_symbols_modes): Likewise.
11029 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
11030 Likewise.
11031 * utils.c (internal_problem_modes): Likewise.
11032
b3b8b934
JK
110332012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
11034
11035 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
11036 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
11037 result.
11038
8c85a4e2
DE
110392012-01-27 Doug Evans <dje@google.com>
11040
11041 * configure.ac (with_python): Fix absolute path handling for win32.
11042 * configure: Regenerate.
11043
78d8b4d7
DE
110442012-01-26 Doug Evans <dje@google.com>
11045
eca864fe
DE
11046 * symtab.c: Whitespace cleanup, no code changes.
11047
7e082072
DE
11048 * symtab.c (lookup_symbol_in_language): Improve comment.
11049 (lookup_symbol_aux): Fix comment.
11050
7dc25483
DE
11051 * psymtab.c (add_psymbol_to_list): Result is now "void".
11052 * psympriv.h (add_psymbol_to_list): Update.
11053
78d8b4d7
DE
11054 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
11055
4c63965b
JK
110562012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
11057
11058 Do not open script filenames twice.
11059 * cli/cli-cmds.c (source_script_from_stream): Pass to
11060 source_python_script also STREAM.
11061 * python/py-auto-load.c (source_section_scripts): Pass to
11062 source_python_script_for_objfile also STREAM.
11063 (auto_load_objfile_script): Pass to source_python_script_for_objfile
11064 also INPUT.
11065 * python/python-internal.h (source_python_script_for_objfile): New
11066 parameter file, rename parameter file to filename.
11067 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
11068 instead if !_WIN32. Update the function comment.
11069 (source_python_script, source_python_script_for_objfile)
11070 (source_python_script): New parameter file, rename parameter file to
11071 filename. Pass FILENAME to python_run_simple_file.
11072 * python/python.h (source_python_script): New parameter file, rename
11073 parameter file to filename.
11074
88f38a04
PA
110752012-01-26 Pedro Alves <palves@redhat.com>
11076
11077 * corelow.c (core_has_fake_pid): Delete.
11078 (core_close): Delete references to `core_has_fake_pid'.
11079 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
11080 (core_open): Delete references to `core_has_fake_pid'.
11081 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
11082 the removed global.
11083
e078317b
JB
110842012-01-26 Joel Brobecker <brobecker@adacore.com>
11085
11086 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
11087 Remove language parameter from name_matcher. Adjust the comment.
11088 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
11089 Remove language parameter.
11090 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
11091 * linespec.c (iterate_name_matcher): Likewise.
11092 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
11093 name_matcher. Adjust call accordingly.
11094 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
11095 (maintenance_check_symtabs): Adjust type of parameter "fun".
11096 * psymtab.h (maintenance_check_symtabs): Likewise.
11097
74ccd7f5
JB
110982012-01-26 Joel Brobecker <brobecker@adacore.com>
11099
11100 * language.h (symbol_name_match_p_ftype): New typedef.
11101 (struct language_defn): Replace field la_symbol_name_compare
11102 by la_get_symbol_name_match_p.
11103 * ada-lang.c (ada_get_symbol_name_match_p): New function.
11104 (ada_language_defn): Use it.
11105 * linespec.c (struct symbol_matcher_data): New type.
11106 (iterate_name_matcher): Rewrite.
11107 (iterate_over_all_matching_symtabs): Pass a pointer to
11108 a symbol_matcher_data struct to expand_symtabs_matching
11109 instead of just the lookup name.
11110 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
11111 opencl-lang.c, p-lang.c, language.c: Delete field
11112 la_symbol_name_compare, and replace by NULL for new field
11113 la_get_symbol_name_match_p.
11114 * symfile.h (struct quick_symbol_functions): Update comment.
11115
5d268276
TT
111162012-01-25 Tom Tromey <tromey@redhat.com>
11117
11118 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
11119 dereferencing.
11120
edcc5120
TT
111212012-01-24 Tom Tromey <tromey@redhat.com>
11122
11123 PR symtab/12406:
11124 * solib.c (update_solib_list): Update the program space's
11125 added_solibs and deleted_solibs fields.
11126 * progspace.h (struct program_space) <added_solibs,
11127 deleted_solibs>: New fields.
11128 (clear_program_space_solib_cache): Declare.
11129 * progspace.c (release_program_space): Call
11130 clear_program_space_solib_cache.
11131 (clear_program_space_solib_cache): New function.
11132 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
11133 bpstat_stop_status. Use handle_solib_event.
11134 * breakpoint.c: Include gdb_regex.h.
11135 (print_solib_event): New function.
11136 (bpstat_print): Use print_solib_event.
11137 (bpstat_stop_status): Add special case for bp_shlib_event.
11138 (handle_solib_event): New function.
11139 (bpstat_what): Use handle_solib_event.
11140 (struct solib_catchpoint): New.
11141 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
11142 (breakpoint_hit_catch_solib, check_status_catch_solib)
11143 (print_it_catch_solib, print_one_catch_solib)
11144 (print_mention_catch_solib, print_recreate_catch_solib): New
11145 functions.
11146 (catch_solib_breakpoint_ops): New global.
11147 (catch_load_or_unload, catch_load_command_1)
11148 (catch_unload_command_1): New functions.
11149 (internal_bkpt_check_status): Add special case for
11150 bp_shlib_event.
11151 (internal_bkpt_print_it): Use print_solib_event.
11152 (initialize_breakpoint_ops): Initialize
11153 catch_solib_breakpoint_ops.
11154 (_initialize_breakpoint): Register "catch load" and "catch
11155 unload".
11156 * breakpoint.h (handle_solib_event): Declare.
11157 * NEWS: Add entry for "catch load" and "catch unload".
11158
fa864999
TT
111592012-01-24 Tom Tromey <tromey@redhat.com>
11160
11161 * ada-lang.c: Include gdb_vecs.h.
11162 * charset.c: Include gdb_vecs.h.
11163 * tracepoint.h: Include gdb_vecs.h.
11164 * gdb_vecs.h: New file.
11165
f90263c1
TT
111662012-01-24 Pedro Alves <pedro@codesourcery.com>
11167
11168 * breakpoint.c (breakpoint_hit_catch_fork)
11169 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
11170 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
11171 * infrun.c (inferior_has_forked, inferior_has_vforked)
11172 (inferior_has_execd, inferior_has_called_syscall): Delete.
11173 (handle_syscall_event): Get syscall_number from the execution
11174 control state's wait status.
11175 (wait_for_inferior): Don't clear syscall_number.
11176
09ac7c10
TT
111772012-01-24 Pedro Alves <palves@redhat.com>
11178
11179 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
11180 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
11181 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
11182 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
11183 `ws' parameter.
11184 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
11185 false for events other than TARGET_SIGNAL_TRAP.
11186 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
11187 Add `ws' parameter.
11188 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
11189 events other than TARGET_SIGNAL_TRAP.
11190 (tracepoint_breakpoint_hit): Add `ws' parameter.
11191 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
11192 parameter.
11193 (bpstat_stop_status): Same.
11194 (pc_at_non_inline_function): Same.
11195 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
11196 to pass the current event's waitstatus to bpstat_stop_status
11197 and pc_at_non_inline_function.
11198
86eb7e95
JK
111992012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11200
11201 Code cleanup.
11202 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
11203 Update the function comment for it.
11204 (source_script_with_search): Call make_cleanup_fclose for STREAM.
11205 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
11206 for STREAM.
11207
a9b3a50f
PA
112082012-01-24 Pedro Alves <palves@redhat.com>
11209
11210 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
11211 outside `bs->stop' block.
11212 (bpstat_what): Rework bp_shlib_event handling.
11213 (internal_bkpt_check_status): If the breakpoint is a
11214 bp_shlib_event, then set bs->stop and bs->print if
11215 stop_on_solib_events is set.
11216
53fe1783
GB
112172012-01-24 Gary Benson <gbenson@redhat.com>
11218
11219 Delete #if 0'd out code.
11220 * stack.c (print_frame_label_vars): Remove.
11221 (catch_info): Likewise.
11222 (_initialize_stack): Remove "info catch" command.
11223 * NEWS: Mention the above.
11224
49c62f2e
PA
112252012-01-24 Pedro Alves <palves@redhat.com>
11226
11227 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
11228 it.
11229 (remote_notice_new_inferior): If the remote end doesn't support
11230 the multiprocess extensions, then the PID is fake.
11231 (add_current_inferior_and_thread): New.
11232 (remote_start_remote): Use it.
11233 (extended_remote_attach_1): Adjust.
11234 (extended_remote_create_inferior_1): Use
11235 add_current_inferior_and_thread.
11236
d0d8b0c6
JK
112372012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11238
11239 Fix watchpoints to be specific for each inferior.
11240 * breakpoint.c (watchpoint_in_thread_scope): Verify also
11241 current_program_space.
11242 * i386-nat.c (i386_inferior_data_cleanup): New.
11243 (i386_inferior_data_get): Replace variable inf_data_local by an
11244 inferior_data call.
11245 (i386_use_watchpoints): Initialize i386_inferior_data.
11246 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
11247 specific iterate_over_lwps.
11248
4403d8e9
JK
112492012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
11250
11251 Fix watchpoints across inferior fork.
11252 * amd64-linux-nat.c (update_debug_registers_callback): Update the
11253 comment for linux_nat_iterate_watchpoint_lwps.
11254 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
11255 linux_nat_iterate_watchpoint_lwps.
11256 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
11257 * i386-linux-nat.c (update_debug_registers_callback): Update the
11258 comment for linux_nat_iterate_watchpoint_lwps.
11259 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
11260 linux_nat_iterate_watchpoint_lwps.
11261 (i386_linux_prepare_to_resume): New comment on Linux kernel.
11262 * i386-nat.c: Include inferior.h.
11263 (dr_mirror): Remove.
11264 (i386_inferior_data, struct i386_inferior_data)
11265 (i386_inferior_data_get): New.
11266 (i386_debug_reg_state): Use i386_inferior_data_get.
11267 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
11268 (i386_insert_watchpoint, i386_remove_watchpoint)
11269 (i386_stopped_data_address, i386_insert_hw_breakpoint)
11270 (i386_remove_hw_breakpoint): New variable state, use
11271 i386_debug_reg_state instead of DR_MIRROR.
11272 * linux-nat.c (delete_lwp): New declaration.
11273 (num_lwps): Move here from downwards.
11274 (delete_lwp_cleanup): New.
11275 (linux_child_follow_fork): Create new child_lp, call
11276 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
11277 PTRACE_DETACH.
11278 (num_lwps): Move upwards.
11279 (linux_nat_iterate_watchpoint_lwps): New.
11280 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
11281 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
11282
2992c9a7 112832012-01-24 Joel Brobecker <brobecker@adacore.com>
11284
11285 GDB 7.4 released.
11286
e360902b
PA
112872012-01-23 Pedro Alves <palves@redhat.com>
11288
11289 * top.c (caution): Rename to ...
11290 (confirm): ... this.
11291 (show_caution): Rename to ...
11292 (show_confirm): ... this.
11293 (quit_cover): Adjust.
11294 (init_main): Adjust.
11295 * top.h (caution): Rename to ...
11296 (confirm): ... this.
11297 * utils.c (internal_vproblem, defaulted_query): Adjust.
11298
050a2e1d
PA
112992012-01-23 Pedro Alves <palves@redhat.com>
11300
11301 * top.c (caution): Update comment.
11302 (execute_command): Don't consider the current value of `caution'.
11303
77a35dd8
JK
113042012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
11305
11306 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
11307
a71b5a38
UW
113082012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
11309
11310 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
11311 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
11312 * target.c (target_fileio_pwrite): Remove buffer address from
11313 debug output.
11314 (target_fileio_pread): Likewise.
11315
d99bd577
UW
113162012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11317
11318 * NEWS: Document remote "info proc" and "generate-core-file".
11319
35c2fab7
UW
113202012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11321
11322 * gdbarch.sh (find_memory_regions): New callback.
11323 * gdbarch.c, gdbarch.h: Regenerate.
11324
11325 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
11326 callback before falling back to target method.
11327
11328 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
11329 (linux_target_install_ops): No longer install it.
11330
11331 * linux-tdep.c (linux_find_memory_regions): New function.
11332 (linux_init_abi): Install it.
11333
6432734d
UW
113342012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11335
11336 * gdbarch.sh (make_corefile_notes): New architecture callback.
11337 * gdbarch.c: Regenerate.
11338 * gdbarch.h: Likewise.
11339
11340 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
11341 before target_make_corefile_notes. If NULL is returned, the
11342 target does not support core file generation.
11343
11344 * linux-nat.c: Include "linux-tdep.h".
11345 (find_signalled_thread, find_stop_signal): Remove.
11346 (linux_nat_do_thread_registers): Likewise.
11347 (struct linux_nat_corefile_thread_data): Likewise.
11348 (linux_nat_corefile_thread_callback): Likewise.
11349 (iterate_over_spus): Likewise.
11350 (struct linux_spu_corefile_data): Likewise.
11351 (linux_spu_corefile_callback): Likewise.
11352 (linux_spu_make_corefile_notes): Likewise.
11353 (linux_nat_collect_thread_registers): New function.
11354 (linux_nat_make_corefile_notes): Replace contents by call to
11355 linux_make_corefile_notes passing linux_nat_collect_thread_registers
11356 as native-only callback.
11357
11358 * linux-tdep.h: Include "bfd.h".
11359 (struct regcache): Add forward declaration.
11360 (linux_collect_thread_registers_ftype): New typedef.
11361 (linux_make_corefile_notes): Add prototype.
11362 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
11363 "regset.h", and "elf-bfd.h".
11364 (find_signalled_thread, find_stop_signal): New functions.
11365 (linux_spu_make_corefile_notes): Likewise.
11366 (linux_collect_thread_registers): Likewise.
11367 (struct linux_corefile_thread_data): New data structure.
11368 (linux_corefile_thread_callback): New funcion.
11369 (linux_make_corefile_notes): Likewise.
11370 (linux_make_corefile_notes_1): Likewise.
11371 (linux_init_abi): Install it.
11372
3030c96e
UW
113732012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11374
11375 * gdbarch.sh (info_proc): New callback.
11376 * gdbarch.c, gdbarch.h: Regenerate.
11377
11378 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
11379 before falling back to the target info_proc callback.
11380
11381 * linux-nat.c: Do not include "cli/cli-utils.h".
11382 (linux_nat_info_proc): Remove.
11383 (linux_target_install_ops): No longer install it.
11384
11385 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
11386 (read_mapping): New function.
11387 (linux_info_proc): Likewise.
11388 (linux_init_abi): Install it.
11389
145b16a9
UW
113902012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11391
11392 * defs.h (enum info_proc_what): Moved here from linux-nat.c
11393 * infcmd.c: (info_proc_cmd_1): New function.
11394 (info_proc_cmd): New function, moved here from equivalent routine
11395 orignally in linux-nat.c.
11396 (info_proc_cmd_mappings): Likewise.
11397 (info_proc_cmd_stat): Likewise.
11398 (info_proc_cmd_status): Likewise.
11399 (info_proc_cmd_cwd): Likewise.
11400 (info_proc_cmd_cmdline): Likewise.
11401 (info_proc_cmd_exe): Likewise.
11402 (info_proc_cmd_all): Likewise.
11403 (_initialize_infcmd): Install "info proc" command and subcommands.
11404
11405 * target.h (struct target_ops): Add to_info_proc.
11406 (target_info_proc): Add prototype.
11407 * target.c (target_info_proc): New function.
11408
11409 * procfs.c (procfs_info_proc): Add prototype.
11410 (info_proc_cmd): Rename into ...
11411 (procfs_info_proc): ... this. Update argument types as appropriate
11412 for a to_info_proc implementation. Handle "what" argument.
11413 (procfs_target): Install procfs_info_proc.
11414 (_initialize_procfs): No longer install "info proc" command.
11415
11416 * linux-nat.c: (enum info_proc_what): Remove.
11417 (linux_nat_info_proc_cmd_1): Rename into ...
11418 (linux_nat_info_proc): ... this. Update argument types as appropriate
11419 for a to_info_proc implementation.
11420 (linux_nat_info_proc_cmd): Remove.
11421 (linux_nat_info_proc_cmd_mappings): Likewise.
11422 (linux_nat_info_proc_cmd_stat): Likewise.
11423 (linux_nat_info_proc_cmd_status): Likewise.
11424 (linux_nat_info_proc_cmd_cwd): Likewise.
11425 (linux_nat_info_proc_cmd_cmdline): Likewise.
11426 (linux_nat_info_proc_cmd_exe): Likewise.
11427 (linux_nat_info_proc_cmd_all): Likewise.
11428 (linux_target_install_ops): Install linux_nat_info_proc.
11429 (_initialize_linux_nat): No longer install "info proc" command
11430 and subcommands.
11431
b9e7b9c3
UW
114322012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
11433
11434 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
11435 * config.in, configure: Regenerate.
11436
11437 * target.h (struct target_ops): Add to_fileio_readlink.
11438 (target_fileio_readlink): Add prototype.
11439 * target.c (target_fileio_readlink): New function.
11440
11441 * inf-child.c: Conditionally include <sys/param.h>.
11442 (inf_child_fileio_readlink): New function.
11443 (inf_child_target): Install it.
11444
11445 * remote.c (PACKET_vFile_readlink): New enum value.
11446 (remote_hostio_readlink): New function.
11447 (init_remote_ops): Install it.
11448 (_initialize_remote): Handle vFile:readlink packet type.
11449
7313baad
UW
114502012-01-20 Pedro Alves <palves@redhat.com>
11451 Ulrich Weigand <ulrich.weigand@linaro.org>
11452
11453 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
11454 * config.in, configure: Regenerate.
11455
11456 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
11457 to_fileio_pread, to_fileio_close, to_fileio_unlink.
11458 (target_fileio_open): Add prototype.
11459 (target_fileio_pwrite): Likewise.
11460 (target_fileio_pread): Likewise.
11461 (target_fileio_close): Likewise.
11462 (target_fileio_unlink): Likewise.
11463 (target_fileio_read_alloc): Likewise.
11464 (target_fileio_read_stralloc): Likewise.
11465
11466 * target.c: Include "gdb/fileio.h".
11467 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
11468 (default_fileio_target): New function.
11469 (target_fileio_open): Likewise.
11470 (target_fileio_pwrite): Likewise.
11471 (target_fileio_pread): Likewise.
11472 (target_fileio_close): Likewise.
11473 (target_fileio_unlink): Likewise.
11474 (target_fileio_close_cleanup): Likewise.
11475 (target_fileio_read_alloc_1): Likewise.
11476 (target_fileio_read_alloc): Likewise.
11477 (target_fileio_read_stralloc): Likewise.
11478
11479 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
11480 <fcntl.h>, and <unistd.h>.
11481 (inf_child_fileio_open_flags_to_host): New function.
11482 (inf_child_errno_to_fileio_error): Likewise.
11483 (inf_child_fileio_open): Likewise.
11484 (inf_child_fileio_pwrite): Likewise.
11485 (inf_child_fileio_pread): Likewise.
11486 (inf_child_fileio_close): Likewise.
11487 (inf_child_fileio_unlink): Likewise.
11488 (inf_child_target): Install to_fileio routines.
11489
11490 * remote.c (init_remote_ops): Install to_fileio routines.
11491
901f9912
UW
114922012-01-20 Pedro Alves <palves@redhat.com>
11493 Ulrich Weigand <ulrich.weigand@linaro.org>
11494
11495 * remote.c (remote_multi_process_p): Only check for multi-process
11496 protocol feature, do not check for extended protocol.
11497 (remote_supports_multi_process): Check for extended protocol here.
11498 (set_general_process): Likewise.
11499 (extended_remote_kill): Likewise.
11500 (remote_pid_to_str): Likewise.
11501 (remote_query_supported): Always query multiprocess mode.
11502
e714e1bf
UW
115032012-01-20 Pedro Alves <palves@redhat.com>
11504 Ulrich Weigand <ulrich.weigand@linaro.org>
11505
11506 * inferior.h (struct inferior): Add fake_pid_p.
11507 * inferior.c (exit_inferior_1): Clear fake_pid_p.
11508 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
11509 magic_null_ptid since the remote side doesn't provide a real PID.
11510
50897289
TT
115112012-01-19 Tom Tromey <tromey@redhat.com>
11512
11513 * NEWS: Combine the two Python sections.
11514
1afc2033
JK
115152012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
11516
11517 * target.h (target_close): Update comment on the target's unpush state.
11518
305436e0
PA
115192012-01-19 Pedro Alves <palves@redhat.com>
11520
11521 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
11522 linux_nat_async directly instead of going through the target
11523 vector.
11524 * target.c (unpush_target): Close target after unpushing it, not
11525 before.
11526
49323895
GB
115272012-01-19 Gary Benson <gbenson@redhat.com>
11528
11529 * mdebugread.c (sort_blocks): Replace integer constants with ones
11530 derived from FIRST_LOCAL_BLOCK.
11531
1db33378
PP
115322012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
11533 Jan Kratochvil <jan.kratochvil@redhat.com>
11534
11535 PR gdb/9538
11536 * symfile.c (find_separate_debug_file): New function.
11537 (terminate_after_last_dir_separator): Likewise.
11538 (find_separate_debug_file_by_debuglink): Also try realpath.
11539 * configure.ac (AC_CHECK_FUNCS): Add lstat.
11540 * configure: Regenerate.
11541 * config.in: Regenerate.
11542
f83d8a90
DE
115432012-01-18 Doug Evans <dje@google.com>
11544
11545 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
11546 (main.o): Remove rule.
11547 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
11548 (--with-sysroot): Rewrite.
11549 * configure: Regenerate.
11550 * config.in: Regenerate.
11551
2dbca4d6
SDJ
115522012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
11553
11554 * parse.c (initialize_expout): New function.
11555 (reallocate_expout): Likewise.
11556 (parse_exp_in_context): Use `initialize_expout' and
11557 `reallocate_expout' when appropriate.
11558
0695b514
PA
115592012-01-18 Pedro Alves <palves@redhat.com>
11560
11561 * record.c (struct record_breakpoint, record_breakpoint_p)
11562 (record_breakpoints): New.
11563 (record_insert_breakpoint, record_remove_breakpoint): Manage
11564 record breakpoints list. Only remove breakpoints from the
11565 inferior if they had been inserted there in the first place.
11566
136e1c30
DE
115672012-01-17 Doug Evans <dje@google.com>
11568
11569 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
11570 if we know we don't have a file name to look for.
11571
c0bf857d
PA
115722012-01-17 Pedro Alves <palves@redhat.com>
11573
11574 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
11575 the frame's stop reason is UNWIND_UNAVAILABLE.
11576
b486de60
JK
115772012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
11578
11579 Fix compilation error.
11580 * m2-exp.y (yyerror): Use ANSI C prototype.
11581
d04550a6
SDJ
115822012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11583
11584 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
11585 (growbuf_by_size): Likewise.
11586 (yyerror): Likewise.
11587 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
11588 (modblock): Remove variable (was #if 0'ed).
11589 (parse_number): Convert prototype from K&R to ANSI C.
11590 (yyerror): Likewise.
11591 * objc-exp.y (parse_number): Likewise.
11592 (yyerror): Likewise.
11593 (yylex): Remove #if 0'ed code.
11594 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
11595 (yyerror): Likewise.
11596
4aac40c8
TT
115972012-01-16 Tom Tromey <tromey@redhat.com>
11598
11599 * NEWS: Add item.
11600 * symtab.h (compare_filenames_for_search): Declare.
11601 * symtab.c (compare_filenames_for_search): New function.
11602 (iterate_over_some_symtabs): Use it.
11603 * symfile.h (struct quick_symbol_functions)
11604 <map_symtabs_matching_filename>: Change spec.
11605 * psymtab.c (partial_map_symtabs_matching_filename): Use
11606 compare_filenames_for_search. Update for new spec.
11607 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
11608 compare_filenames_for_search. Update for new spec.
11609 * breakpoint.c (clear_command): Use compare_filenames_for_search.
11610
cafec441
TT
116112012-01-16 Tom Tromey <tromey@redhat.com>
11612
11613 PR python/13281:
11614 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
11615 (struct main_type) <flag_flag_enum>: New field.
11616 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
11617 * NEWS: Add entries.
11618 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
11619 enums.
11620 * python/lib/gdb/printing.py (_EnumInstance): New class.
11621 (FlagEnumerationPrinter): Likewise.
11622
983af33b
SDJ
116232012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
11624
11625 * breakpoint.c (create_sals_from_address_default): New function.
11626 (create_breakpoints_sal_default): Likewise.
11627 (decode_linespec_default): Likewise.
11628 (is_marker_spec): Removed.
11629 (strace_marker_p): New function.
11630 (init_breakpoint_sal): Using `strace_marker_p' instead of
11631 `is_marker_spec'.
11632 (create_breakpoint): Call method `create_sals_from_address' from
11633 breakpoint_ops, replacing code that created SALs conditionally
11634 on the type of the breakpoint. Call method `create_breakpoints_sal',
11635 replacing code that created breakpoints conditionally on the type
11636 wanted.
11637 (base_breakpoint_create_sals_from_address): New function.
11638 (base_breakpoint_create_breakpoints_sal): Likewise.
11639 (base_breakpoint_decode_linespec): Likewise.
11640 (base_breakpoint_ops): Add methods
11641 `base_breakpoint_create_sals_from_address',
11642 `base_breakpoint_create_breakpoints_sal' and
11643 `base_breakpoint_decode_linespec'.
11644 (bkpt_create_sals_from_address): New function.
11645 (bkpt_create_breakpoints_sal): Likewise.
11646 (bkpt_decode_linespec): Likewise.
11647 (tracepoint_create_sals_from_address): Likewise.
11648 (tracepoint_create_breakpoints_sal): Likewise.
11649 (tracepoint_decode_linespec): Likewise.
11650 (strace_marker_create_sals_from_address): Likewise.
11651 (strace_marker_create_breakpoints_sal): Likewise.
11652 (strace_marker_decode_linespec): Likewise.
11653 (strace_marker_breakpoint_ops): New variable.
11654 (addr_string_to_sals): Remove `marker_spec'. Call method
11655 `decode_linespec' from breakpoint_ops, replacing code that decoded
11656 an address string into a SAL. Use `strace_marker_p' instead of
11657 `marker_spec'.
11658 (strace_command): Decide whether we are dealing with a static
11659 tracepoint with marker or not. Use the appropriate breakpoint_ops.
11660 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
11661 * breakpoint.h (linespec_result, linespec_sals): New forward
11662 declarations.
11663 (breakpoint_ops) <create_sals_from_address>,
11664 <create_breakpoints_sal>, <decode_linespec>: New methods.
11665
4795f398
DE
116662012-01-14 Doug Evans <dje@google.com>
11667
11668 * NEWS: Update text for "maint set python print-stack".
11669 It is deprecated in gdb 7.4 and deleted in 7.5.
11670
ee5106fe
EZ
116712012-01-13 Eli Zaretskii <eliz@gnu.org>
11672
11673 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
11674 including curses.h.
11675
b161e06f
JK
116762012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
11677
11678 * configure: Regenerate.
11679 * config.in: Regenerate.
11680
85254831
KS
116812012-01-12 Keith Seitz <keiths@redhat.com>
11682
11683 PR mi/10586
11684 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
11685 (ANONYMOUS_UNION_NAME): Define.
11686 (is_path_expr_parent): New function.
11687 (get_path_expr_parent): New function.
11688 (is_anonymous_child): New function.
11689 (create_child_with_value): If the child is anonymous and without
11690 a name, assign an object name to it.
11691 (c_describe_child): Use get_path_expr_parent to determine
11692 the parent expression.
11693 If there field represents an anonymous struct or union and
11694 has no name, set an appropriate display name and expression.
11695 (cplus_describe_child): Likewise.
11696
620fa63a
PA
116972012-01-12 Pedro Alves <palves@redhat.com>
11698
11699 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
11700 available when %ebp is found to be zero (outermost).
11701
2efa2c79
AT
117022012-01-11 Andreas Tobler <andreast@fgznet.ch>
11703
11704 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
11705 an internal gdb_static_assert.
11706 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
11707
88e7d25d
TT
117082012-01-11 Tom Tromey <tromey@redhat.com>
11709
11710 PR gdb/9598:
11711 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
11712 catch" and "catch throw".
11713
72384ba3
PH
117142012-01-11 Paul Hilfinger <hilfingr@adacore.com>
11715
11716 * blockframe.c (block_innermost_frame): Start search from selected
11717 frame, if present, or otherwise the current frame.
11718
11719 * c-exp.y (variable): Update innermost_block for
11720 'block COLONCOLON NAME' clause.
11721 * m2-exp.y (variable): Ditto.
11722 * objc-exp.y (variable): Ditto.
11723
065a711f
TT
117242012-01-10 Tom Tromey <tromey@redhat.com>
11725
11726 PR python/13199:
11727 * python/python.c (finish_python_initialization): Set sys.argv.
11728
f3f5162e
DE
117292012-01-10 Doug Evans <dje@google.com>
11730
11731 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
11732 "want_line_info". All callers updated.
11733 (dwarf_decode_lines_1): New function.
11734 (handle_DW_AT_stmt_list): Add function comment.
11735 New arg "want_line_info". All callers updated.
11736 (read_file_scope,read_type_unit_scope): Move comment from
11737 handle_DW_AT_stmt_list to here.
11738
9934703b
JK
117392012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11740
11741 Fix regression after libiberty/ update for GCC PR 6057 and others.
11742 * c-exp.y (operator) <OPERATOR DELETE>
11743 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11744 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
11745 (make_builtin_type, make_name): New variable i, add gdb_assert.
11746 (operator) <OPERATOR NEW>: Update ARGS to 3.
11747 (operator) <OPERATOR DELETE>: Add trailing space.
11748 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
11749 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
11750 * cp-support.c (cp_canonicalize_string): Check NULL from
11751 cp_comp_to_string, call warning and return.
11752
06b9f45f
JK
117532012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
11754
11755 Fix duplicate .o files after omitting libbfd.a.
11756 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
11757 (SFILES): Add corelow.c.
11758 (COMMON_OBS): Add corelow.o.
11759 (ALLDEPFILES): Remove corelow.c.
11760 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
11761 * config/alpha/alpha-osf3.mh: Likewise.
11762 * config/alpha/fbsd.mh: Likewise.
11763 * config/arm/nbsdaout.mh: Likewise.
11764 * config/arm/nbsdelf.mh: Likewise.
11765 * config/i386/i386gnu.mh: Likewise.
11766 * config/ia64/hpux.mh: Likewise.
11767 * config/ia64/linux.mh: Likewise.
11768 * config/m32r/linux.mh: Likewise.
11769 * config/m68k/linux.mh: Likewise.
11770 * config/mips/irix5.mh: Likewise.
11771 * config/mips/irix6.mh: Likewise.
11772 * config/pa/hpux.mh: Likewise.
11773 * config/pa/linux.mh: Likewise.
11774 * config/powerpc/aix.mh: Likewise.
11775 * config/sparc/linux.mh: Likewise.
11776 * config/sparc/linux64.mh: Likewise.
11777 * config/sparc/sol2.mh: Likewise.
11778 * config/vax/vax.mh: Likewise.
11779 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
11780 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
11781 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
11782 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
11783 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
11784 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
11785 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
11786 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
11787 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
11788 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
11789 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
11790 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
11791 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
11792 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
11793 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
11794 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
11795 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
11796 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
11797 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
11798 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
11799 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
11800 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
11801 corelow.o from gdb_target_obs.
11802 * corefile.c (core_target): Update the comment on NULL value.
11803 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
11804 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
11805 MATCHES. Drop YUMMY set on NULL.
11806 (core_close): Do not call exit_inferior_silent on zero PID. Do not
11807 reclaim CORE_DATA if it is already NULL.
11808
34365054
DE
118092012-01-09 Doug Evans <dje@google.com>
11810
11811 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
11812 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
11813
696166a3
KS
118142012-01-09 Keith Seitz <keiths@redhat.com>
11815
11816 * breakpoint.c (wrapper.h): Don't include.
11817
8e7b59a5
KS
118182012-01-09 Keith Seitz <keiths@redhat.com>
11819
11820 * Makefile.in (SFILES): Remove wrapper.c.
11821 (HFILES_NO_SRCDIR): Remove wrapper.h.
11822 (COMMON_OBS): Remove wrapper.o.
11823 * cli/cli-interp.c: Don't inlude wrapper.h.
11824 * corelow.c: Likewise.
11825 (core_open): Replace gdb_target_find_new_threads with
11826 TRY_CATCH around target_find_new_threads.
11827 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
11828 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
11829 * varobj.c (varobj_create): Likewise for parse_exp_1 and
11830 evaluate_expression.
11831 (varobj_set_value): Likewise for evaluate_expression and
11832 value_assign.
11833 (install_new_variable): Likewise for value_fetch_lazy.
11834 (adjust_value_for_child_access): Likewise for value_ind.
11835 (c_describe_child): Likewise for value_subscript and
11836 value_ind.
11837 (c_value_of_root): Likewise for evaluate_expression.
11838 * wrapper.c: Remove.
11839 * wrapper.h: Remove.
11840
1a4eeb98
DE
118412012-01-09 Doug Evans <dje@google.com>
11842
9ff913ba
DE
11843 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
11844 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
11845 "abfd" args with "section". All callers updated.
11846 Error checking code moved ...
11847 (error_check_comp_unit_head): ... here. New function.
11848 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
11849 Delete arg "abfd". New arg "type_offset". All callers updated.
11850 (create_debug_types_hash_table): Simplify by using
11851 read_and_check_type_unit_head.
11852
1a4eeb98
DE
11853 * parser-defs.h (namecopy): Delete.
11854 * parse.c (namecopy, namecopy_size): Move into copy_name.
11855
2e6af8c0
JK
118562012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
11857
11858 Partially fix duplicate .o files after omitting libbfd.a.
11859 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
11860 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11861 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
11862 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11863 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
11864 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
11865 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
11866
9f2f828a
PA
118672012-01-09 Pedro Alves <palves@redhat.com>
11868
11869 * MAINTAINERS: Update my email address.
11870
4d72c0bc
DE
118712012-01-08 Doug Evans <dje@google.com>
11872
d467dd73
DE
11873 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
11874 n_type_units. Rename type_comp_units to all_type_units.
11875 All uses updated.
11876 (add_signatured_type_cu_to_table): Renamed from
11877 add_signatured_type_cu_to_list. All callers updated.
11878
4d72c0bc
DE
11879 * gdbtypes.h (struct cplus_struct_type): Delete member
11880 nfn_fields_total. All uses removed.
11881
21b2bd31
DE
118822012-01-06 Doug Evans <dje@google.com>
11883
11884 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
11885 to top of file.
11886 (dwarf2_find_comp_unit): Delete.
11887 (process_psymtab_comp_unit): Make result "void".
11888 Delete args buffer, info_ptr, buffer_size, and replace with
11889 "section". All callers updated.
11890 (dwarf2_build_psymtabs_hard): Simplify.
11891
bfd189b1
SDJ
118922012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
11893 Thiago Jung Bauermann <bauerman@br.ibm.com>
11894
11895 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
11896 before `struct gdb_exception'.
11897 * breakpoint.c (update_global_location_list_nothrow)
11898 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
11899 * cp-abi.c (value_rtti_type): Likewise.
11900 * cp-support.c (cp_validate_operator): Likewise.
11901 * infrun.c (insert_exception_resume_breakpoint)
11902 (check_exception_resume, keep_going): Likewise.
11903 * mi-interp.c (mi_breakpoint_created)
11904 (mi_breakpoint_modified): Likewise.
11905 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
11906 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
11907 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
11908
6b07635f
DE
119092012-01-05 Doug Evans <dje@google.com>
11910
0b30b85c
DE
11911 * dwarf2read.c (statement_prologue): Delete, unused.
11912
98714339
DE
11913 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
11914 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
11915
6b07635f
DE
11916 * dwarf2read.c (comp_unit_header): Delete, unused.
11917
761f4555
UW
119182012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
11919
11920 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
11921 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
11922
2ca0b532
PA
119232012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
11924
11925 * infrun.c (normal_stop): Don't skip calling the normal_stop
11926 observers if the thread was doing a multi-step, but stopped for
11927 some reason other than stepping.
11928
50aeff07
PA
119292012-01-05 Pedro Alves <alves.ped@gmail.com>
11930
11931 * cli/cli-decode.h: Add comments.
11932 (CMD_LIST_AMBIGUOUS): Moved to command.h
11933 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
11934 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
11935 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
11936 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
11937 (add_com, add_com_alias, add_info, add_info_alias)
11938 (complete_on_cmdlist, complete_on_enum, help_list): Remove
11939 declarations.
11940 * command.h: Add and adjust comments.
11941 (CMD_LIST_AMBIGUOUS): Moved here.
11942 (help_cmd, help_cmd_list): Delete declarations.
11943
5953832c
DE
119442012-01-04 Doug Evans <dje@google.com>
11945
e5fe5e75
DE
11946 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
11947 All callers updated.
11948 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
11949 Replace all arguments with "per_cu". All callers updated.
11950
28dee7f5
DE
11951 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
11952
23745b47
DE
11953 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
11954 New arg "per_cu". All callers updated.
11955
5953832c
DE
11956 Delete #if 0'd out code.
11957 * language.c (binop_result_type): Delete.
11958 (simple_type, ordered_type, same_type, integral_type): Delete.
11959 (numeric_type, character_type, string_type, boolean_type): Delete.
11960 (float_type, structured_type): Delete.
11961 * language.h: Update.
11962
0f5b7562
TT
119632012-01-04 Tom Tromey <tromey@redhat.com>
11964
11965 * python/py-value.c (valpy_binop): Initialize 'res_val'.
11966
78218f56
JB
119672012-01-04 Joel Brobecker <brobecker@adacore.com>
11968
11969 * corefile.c (close_exec_file): Delete.
11970 (reopen_exec_file): Remove commented out code that seems related
11971 to close_exec_file, which is being deleted here.
11972 * inferior.h (close_exec_file): Delete.
11973 * fork-child.c (fork_inferior): Remove call to fork_inferior.
11974
0fcd72ba
JB
119752012-01-04 Joel Brobecker <brobecker@adacore.com>
11976
11977 * ada-lang.c: #include "cli/cli-utils.h".
11978 (get_selections): Use skip_spaces.
11979 (ada_get_next_arg): Use skip_spaces and skip_to_space.
11980 (catch_ada_exception_command_split): Use skip_spaces.
11981 (ada_decode_assert_location): Likewise.
11982
1dabb4c4
JB
119832012-01-04 Joel Brobecker <brobecker@adacore.com>
11984
11985 * linespec.c (decode_line_internal): Check for C++ or Java
11986 compound constructs only if the current language is C, C++
11987 or Java.
11988
5931a2fa
JK
119892012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
11990
11991 Revert:
11992 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
11993 Joel Brobecker <brobecker@adacore.com>
11994 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
11995 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
11996 3 times.
11997 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
11998 fall through into AT_ENTRY_POINT.
11999 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12000 DUMMY_ADDR with it.
12001 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12002 PPC_INSN_SIZE skip to 3 times.
12003
1a2da5ee
JB
120042012-01-04 Joel Brobecker <brobecker@adacore.com>
12005
12006 * linespec.c (add_minsym): Preserve function descriptors.
12007
8645ff69
UW
120082012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
12009
12010 * breakpoint.c (all_locations_are_pending): Consider locations
12011 in program spaces executing during startup pending as well.
12012
0b302171
JB
120132012-01-04 Joel Brobecker <brobecker@adacore.com>
12014
12015 Copyright year update in most files of the GDB Project.
12016
8ba098ad
JB
120172012-01-04 Joel Brobecker <brobecker@adacore.com>
12018
12019 * copyright.sh: Delete.
12020 * copyright.py: Rewrite.
12021
09c01c30
JB
120222012-01-04 Joel Brobecker <brobecker@adacore.com>
12023
12024 * gnulib/extra/update-copyright: New file, imported from gnulib.
12025
3c36c0af
JB
120262012-01-04 Joel Brobecker <brobecker@adacore.com>
12027
12028 * README (Copyright and License Notices): New section.
12029
888fe1e1
TT
120302012-01-03 Tom Tromey <tromey@redhat.com>
12031
12032 PR python/12533:
12033 * python/py-value.c (valpy_dereference, valpy_get_address
12034 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
12035 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
12036 (valpy_absolute, valpy_richcompare): Free intermediate values.
12037
6e681866
JB
120382011-01-03 Joel Brobecker <brobecker@adacore.com>
12039
12040 * ada-lang.c: Reformat the copyright notice.
12041
0cd09acb
JK
120422012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12043
12044 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
12045 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
12046 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
12047 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
12048 Revert this part of:
12049 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12050 Build gdb directly from *.o files not using libgdb.a.
12051 * Makefile.in (COMMON_OBS): Remove solib-target.o.
12052
12c3e59c
JB
120532012-01-02 Joel Brobecker <brobecker@adacore.com>
12054
12055 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
12056 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
12057 Reformat the copyright header.
12058
11bf1490
JK
120592012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12060
12061 Revert this part of:
12062 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12063 Remove the gdbtui binary.
12064 * gdb.c (main): Remove args.interpreter_p initialization.
12065 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12066 * main.h (struct captured_main_args): Remove interpreter_p.
12067
1fef196f
JB
120682012-01-02 Joel Brobecker <brobecker@adacore.com>
12069
12070 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
12071
67827812
JB
120722012-01-02 Joel Brobecker <brobecker@adacore.com>
12073
12074 * top.c (print_gdb_version): Update copyright year.
12075
a4d0b831
YQ
120762012-01-02 Yao Qi <yao@codesourcery.com>
12077
12078 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
12079
b5914469
JK
120802012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12081 Joel Brobecker <brobecker@adacore.com>
12082
12083 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
12084 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
12085 3 times.
12086 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
12087 fall through into AT_ENTRY_POINT.
12088 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
12089 DUMMY_ADDR with it.
12090 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
12091 PPC_INSN_SIZE skip to 3 times.
12092
8da828f7
JK
120932012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12094
12095 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
12096 the return value.
12097 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
12098
8574e74b
JK
120992012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12100
12101 Build gdb directly from *.o files not using libgdb.a.
12102 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
12103 (COMMON_OBS): Remove solib-target.o.
12104 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
12105 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
12106 (LIBGDB_OBS, libgdb.a): Move it above.
12107 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
12108 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
12109 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
12110 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
12111 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
12112 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
12113 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
12114 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
12115 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
12116 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
12117 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
12118 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
12119 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
12120 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
12121 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
12122 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
12123 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
12124 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
12125 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
12126 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
12127 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
12128 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
12129 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
12130 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
12131 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
12132 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
12133 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
12134
217bff3e
JK
121352012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
12136
12137 Remove the gdbtui binary.
12138 * .gitignore (/gdbtui): Remove.
12139 * Makefile.in (TUI): Remove.
12140 (SUBDIR_TUI_OBS): Remove tui-main.o.
12141 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
12142 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
12143 (tui-main.o): Remove.
12144 (all_object_files): Remove tui-main.o.
12145 * NEWS: New note for the gdbtui removal.
12146 * configure: Rebuilt.
12147 * configure.ac: No longer add all-tui, clean-tui, install-tui and
12148 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
12149 CONFIG_UNINSTALL respectively.
12150 * gdb.c (main): Remove args.interpreter_p initialization.
12151 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
12152 * main.h (struct captured_main_args): Remove interpreter_p.
12153 * tui/tui-main.c: Remove.
12154
9cdd5dbd
DE
121552012-01-01 Doug Evans <dje@google.com>
12156
bb5ed363
DE
12157 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
12158 (dwarf2_physname, read_import_statement): Ditto.
12159 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
12160 (process_structure_scope read_subroutine_type): Ditto.
12161 (read_typedef, load_partial_dies, read_partial_die): Ditto.
12162 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
12163 (dwarf2_fetch_die_location_block): Ditto.
12164 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
12165
a0f42c21
DE
12166 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
12167 All callers updated.
12168 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
12169 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
12170 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
12171
2dc860c0
DE
12172 * dwarf2read.c (load_cu): Move assert to more useful location.
12173
68dc6402
DE
12174 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
12175 All callers updated.
12176
9cdd5dbd
DE
12177 * dwarf2read.c (dwarf2_per_objfile): Add comment.
12178 (dwarf2_elf_names): Minor reformat.
12179 (dwarf2_per_cu_data): Tweak comment.
12180 (dwarf2_read_section): Fix comment.
12181 (create_all_comp_units): Fix comment.
12182 (load_full_comp_unit): Fix comment.
12183 (process_full_comp_unit): Fix comment.
12184 (read_signatured_type): Fix comment.
12185
0c10e53e 12186For older changes see ChangeLog-2011.
c906108c
SS
12187\f
12188Local Variables:
12189mode: change-log
12190left-margin: 8
12191fill-column: 74
12192version-control: never
57da7796 12193coding: utf-8
c906108c 12194End:
This page took 2.086193 seconds and 4 git commands to generate.