]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - gdb/ChangeLog
* osdata.c (info_osdata_command): Filter out "Title" columns
[thirdparty/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
71caed83
SS
12012-06-28 Stan Shebs <stan@codesourcery.com>
2
3 * osdata.c (info_osdata_command): Filter out "Title" columns
4 from non-MI uses.
5 * common/linux-osdata.c (struct osdata_type): Add title field.
6 (osdata_table): Add titles to each entry.
7 (linux_command_xfer_osdata): Add a column for title data.
8
37ce89eb
SS
92012-06-28 Stan Shebs <stan@codesourcery.com>
10
11 Make logging work for MI.
12 * NEWS: Mention it.
13 * interps.h (interp_set_logging_ftype): New typedef.
14 (struct interp_procs): New field set_logging_proc.
15 (current_interp_set_logging): Declare.
16 * interps.c (current_interp_set_logging): New function.
17 * cli/cli-logging.c: Include interps.h.
18 (set_logging_redirect): Call current_interp_set_logging.
19 (pop_output_files): Ditto.
20 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
21 * mi/mi-console.h (mi_console_set_raw): Declare.
22 * mi/mi-console.c (mi_console_set_raw): New function.
23 * mi/mi-interp.c (saved_raw_stdout): New global.
24 (mi_set_logging): New function.
25 (_initialize_mi_interp): Add it to interp procs.
26
659c9f3a
DE
272012-06-28 Doug Evans <dje@google.com>
28
a743abeb
DE
29 * symtab.c (lookup_symbol_aux_objfile): Use
30 ALL_OBJFILE_PRIMARY_SYMTABS.
31
659c9f3a
DE
32 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
33
da2d6d3d
JK
342012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
35
36 * common/buffer.c: Include inttypes.h and stdint.h.
37 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
38
e5ef252a
PA
392012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
40 Pedro Alves <palves@redhat.com>
41
42 * gdbthread.h (ALL_THREADS): New macro.
43 (thread_list): Declare.
44 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
45 going, but instead fall through to the stepping handling.
46 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
47 the passed in signal. Adjust debug output.
48 (resume_callback): Rename to ...
49 (linux_nat_resume_callback): ... this. Pass the thread's last
50 stop signal, if in "pass" state.
51 (linux_nat_resume): Adjust to rename.
52 (stop_wait_callback): New assertion. Don't respawn signals;
53 instead let the LWP remain with SIGNALLED set.
54 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
55 * remote.c (append_pending_thread_resumptions): New.
56 (remote_vcont_resume): Call it.
57 * target.h (target_resume): Extend comment.
58
1d7975eb
IS
592012-06-28 Iain Sandoe <iain@codesourcery.com>
60
61 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
62
2e3cf129
DE
632012-06-27 Doug Evans <dje@google.com>
64
65 * dwarf2read.c (dwarf2_cu): Add ranges_base.
66 Delete have_addr_base, unused. All uses updated.
67 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
68 (dwarf2_get_pc_bounds): Add ranges_base.
69 (dwarf2_record_block_ranges): Ditto.
70
1bb9788d
TT
712012-06-27 Tom Tromey <tromey@redhat.com>
72
73 PR macros/7961:
74 * varobj.c (varobj_create): Update.
75 (varobj_set_value): Update.
76 * tracepoint.c (validate_actionline): Update.
77 (encode_actions_1): Update.
78 * parse.c (parse_exp_1): Add 'pc' argument.
79 (parse_exp_in_context): Add 'pc' argument. Change how
80 expression_context_pc is set.
81 (parse_expression): Update.
82 (parse_field_expression): Update.
83 * expression.h (parse_exp_1): Update.
84 * eval.c (parse_to_comma_and_eval): Update.
85 * breakpoint.c (set_breakpoint_condition): Update.
86 (update_watchpoint): Update.
87 (init_breakpoint_sal): Update
88 (find_condition_and_thread): Update.
89 (watch_command_1): Update.
90 (update_breakpoint_locations): Update.
91 * ada-lang.c (ada_read_renaming_var_value): Update.
92 (create_excep_cond_exprs): Update.
93
0bc3a05c
DE
942012-06-27 Doug Evans <dje@google.com>
95
96 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
97 type units.
98
4bdcc0c1
DE
992012-06-26 Doug Evans <dje@google.com>
100
101 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
102 prototype.
103 (error_check_comp_unit_head): New arg abbrev_section. All callers
104 updated.
105 (read_and_check_comp_unit_head): Ditto.
106 (read_and_check_type_unit_head): Ditto.
107
ee0bf529
SCR
1082012-06-26 Siva Chandra Reddy <sivachandra@google.com>
109
110 New attribute 'last' for gdb.Symtab_and_line.
111 * NEWS (Python Scripting): Add entry about the new attribute.
112 * python/py-symtab.c (salpy_get_last): New function which
113 implements the get method for the 'last' attribute of
114 gdb.Symtab_and_line.
115 (sal_object_getset): Add entry for the 'last' attribute.
116
1c658ad5
DE
1172012-06-26 Doug Evans <dje@google.com>
118
09262596
DE
119 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
120 (dwo_sections): Add macinfo, macro.
121 (dwarf2_locate_dwo_sections): Watch for macro sections.
122 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
123 All callers updated. Handle DWO files.
124
45cfd468
DE
125 * NEWS: Mention new options "set debug dwarf2-read" and
126 "set debug symtab-create".
127 * dwarf2read.c (dwarf2_read_debug): New static global.
128 (dwarf2_build_psymtabs_hard): Add debugging printfs.
129 (process_queue): Ditto.
130 (process_full_comp_unit): Ditto.
131 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
132 * elfread.c (elf_symfile_read): Add debugging printf.
133 * minsyms.c (install_minimal_symbols): Ditto.
134 * psymtab.c (allocate_psymtab): Ditto.
135 * symfile.c (allocate_symtab): Ditto.
136 * symtab.c (symtab_create_debug): New global.
137 (_initialize_symtab): Add new option "set debug symtab-create".
138 * symtab.h (symtab_create_debug): Declare.
139
1c658ad5
DE
140 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
141 (lookup_dwo_type_unit): Ditto.
142
6fea9e18
L
1432012-06-26 Roland McGrath <roland@hack.frob.com>
144 H.J. Lu <hongjiu.lu@intel.com>
145
146 * amd64-linux-nat.c: Include <sys/user.h>.
147 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
148 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
149 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
150
151 * configure.ac: Check if the fs_base and gs_base members of
152 `struct user_regs_struct' exist.
153 * config.in: Regenerated.
154 * configure: Likewise.
155
adb4fe3b
ME
1562012-06-25 Michael Eager <eager@eagercon.com>
157
158 PR python/14291
159 * python/python.c (gdbpy_write): Check for interrupted output.
160
fc51cce1
MGD
1612012-06-25 Greta Yorsh <greta.yorsh@arm.com>
162
163 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
164 register as a stack alignment in ARM mode.
165
40a73391
JK
1662012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
167
168 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
169 * gnulib/config.in: Regenerate.
170 * gnulib/configure: Likewise.
171 * gnulib/import/m4/extensions.m4: Update it.
172 * gnulib/import/m4/gnulib-common.m4: Likewise.
173 * gnulib/import/m4/memmem.m4: Likewise.
174 * gnulib/import/m4/mmap-anon.m4: Likewise.
175 * gnulib/import/m4/multiarch.m4: Likewise.
176 * gnulib/import/stdint.in.h: Likewise.
177
972daa01
YQ
1782012-06-24 Yao Qi <yao@codesourcery.com>
179
180 * corefile.c (write_memory_with_notification): New.
181 * gdbcore.h: Declare write_memory_with_notification.
182 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
183 'observer_notify_memory_changed' with 'write_memory_with_notification'.
184 * valops.c (value_assign): Likewise.
185 * python/py-inferior.c (infpy_write_memory): Call
186 'write_memory_with_notification'.
187
8d6e0714
JK
1882012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
189
190 * cc-with-index.sh: Use also -ex "set auto-load no".
191
156942c7
DE
1922012-06-23 Doug Evans <dje@google.com>
193
194 PR 14125
195 * NEWS: Document additions to .gdb_index.
196 * dwarf2read.c: #include "gdb/gdb-index.h".
197 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
198 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
199 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
200 (dwarf2_read_index): Recognize version 7.
201 (dw2_do_expand_symtabs_matching): New args want_specific_block,
202 block_kind, domain): All callers updated.
203 (dw2_find_symbol_file): Handle new index CU values.
204 (dw2_expand_symtabs_matching): Match symbol kind if requested.
205 (add_index_entry): New args is_static, kind. All callers updated.
206 (offset_type_compare, uniquify_cu_indices): New functions
207 (symbol_kind): New function.
208 (write_psymtabs_to_index): Remove duplicate CU values.
209 (write_psymtabs_to_index): Write .gdb_index version 7.
210
352b3eda
JB
2112012-06-22 Joel Brobecker <brobecker@adacore.com>
212
213 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
214 * configure: Regenerate.
215
2678e2af
YQ
2162012-06-20 Yao Qi <yao@codesourcery.com>
217
218 * python/py-inferior.c: Update comments of infpy_read_memory
219 and infpy_write_memory.
220
95c391b6
TT
2212012-06-19 Tom Tromey <tromey@redhat.com>
222
223 PR exp/9514:
224 * parser-defs.h (insert_type, insert_type_address_space): Declare.
225 (push_type_address_space): Remove.
226 * parse.c (insert_into_type_stack): New function.
227 (insert_type): Likewise.
228 (insert_type_address_space): Rename from push_type_address_space.
229 Insert tp_space_identifier.
230 * c-exp.y (ptr_operator): New production.
231 (abs_decl): Use ptr_operator.
232 (space_identifier): Call insert_type_address_space.
233 (ptype): Don't use const_or_volatile_or_space_identifier.
234 (const_or_volatile_noopt): Call insert_type.
235 (conversion_type_id, conversion_declarator): New productions.
236 (operator): Use conversion_type_id.
237
6ac9ef80
DE
2382012-06-18 Doug Evans <dje@google.com>
239
422d65e7
DE
240 * symtab.h (minimal_symbol): New member created_by_gdb.
241 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
242 created by gdb.
243 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
244 (search_symbols): Call it instead of lookup_symbol.
245 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
246
49f6c839
DE
247 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
248 Adjust address for DW_OP_GNU_addr_index.
249 * dwarf2expr.h (dwarf_expr_context): Update comment.
250 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
251 all callers updated. Handle TLS vars described with
252 DW_OP_GNU_const_index.
253 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
254 and DW_OP_GNU_const_index.
255 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
256
6ac9ef80
DE
257 * block.c (find_block_in_blockvector): Make explicit the fact that we
258 ignore GLOBAL_BLOCK.
259
4cd18215
TT
2602012-06-18 Tom Tromey <tromey@redhat.com>
261
262 * c-exp.y (operator): Remove trailing space after "delete" and
263 "delete[]".
264
a9b8d892
JK
2652012-06-18 Mark Kettenis <kettenis@gnu.org>
266 Jan Kratochvil <jan.kratochvil@redhat.com>
267
268 Switch i386 and derived targets to ON_STACK.
269 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
270 (amd64_dicos_init_abi): Remove its installment.
271 * dicos-tdep.c (dicos_init_abi): Remove the
272 set_gdbarch_call_dummy_location call. Update the comment here.
273 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
274 (i386_dicos_init_abi): Remove its installment.
275 * i386-tdep.c (i386_push_dummy_code): New function.
276 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
277 i386_push_dummy_code.
278
e2e4d78b
JK
2792012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
280
281 Remove stale dummy frames.
282 * breakpoint.c: Include dummy-frame.h.
283 (longjmp_breakpoint_ops): New variable.
284 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
285 bp_longjmp_call_dummy.
286 (bpstat_what, bptype_string, print_one_breakpoint_location)
287 (init_bp_location): Support bp_longjmp_call_dummy.
288 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
289 (set_longjmp_breakpoint_for_call_dummy)
290 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
291 functions.
292 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
293 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
294 FIXME comment and extend the other comment for bp_call_dummy.
295 (set_longjmp_breakpoint_for_call_dummy)
296 (check_longjmp_breakpoint_for_call_dummy): New declarations.
297 * dummy-frame.c: Include gdbthread.h.
298 (pop_dummy_frame_bpt): New function.
299 (pop_dummy_frame): Call pop_dummy_frame_bpt.
300 (dummy_frame_discard): New function.
301 (cleanup_dummy_frames): Update the comment about longjmps.
302 * dummy-frame.h (dummy_frame_discard): New declaration.
303 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
304 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
305 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
306 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
307 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
308 keep_going if IS_LONGJMP and there is no other reason to stop.
309
09d5912c
TT
3102012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
311
312 * remote-sim.c (sim_command_completer): Initialize
313 variable 'result'.
314
1788b2d3
JK
3152012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
316
317 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
318 * dwarf2loc.c (call_site_parameter_matches): Support
319 CALL_SITE_PARAMETER_PARAM_OFFSET.
320 (needs_dwarf_reg_entry_value): Push stub value.
321 * dwarf2read.c (read_call_site_scope): New variable origin. Support
322 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
323 * gdbtypes.h (enum call_site_parameter_kind): New item
324 CALL_SITE_PARAMETER_PARAM_OFFSET.
325 (struct call_site.parameter.u): New field param_offset.
326
24c5c679
JK
3272012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
328
329 Code cleanup: Generalize call_site.parameter key.
330 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
331 variable dwarf_reg. New variable kind_u. Update parameters to
332 push_dwarf_reg_entry_value.
333 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
334 * dwarf2expr.h (enum call_site_parameter_kind)
335 (union call_site_parameter_u): Forward declarations.
336 (struct dwarf_expr_context_funcs): Update parameters and their
337 description for push_dwarf_reg_entry_value.
338 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
339 * dwarf2loc.c (call_site_parameter_matches): New function.
340 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
341 description. Use call_site_parameter_matches.
342 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
343 Update parameters and their description.
344 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
345 New variable kind_u. Adjust the caller for updated parameters.
346 (needs_dwarf_reg_entry_value): Update parameters.
347 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
348 instead of attr. Update for the changed fields of struct
349 call_site_parameter.
350 * gdbtypes.h: Include dwarf2expr.h.
351 (enum call_site_parameter_kind): New.
352 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
353 fb_offset into new union u.
354
ac142d96
L
3552012-06-16 H.J. Lu <hongjiu.lu@intel.com>
356
357 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
358 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
359 for x32.
360
ba224c70
L
3612012-06-16 H.J. Lu <hongjiu.lu@intel.com>
362
363 * amd64-linux-nat.c (compat_x32_clock_t): New.
364 (compat_x32_siginfo_t): Likewise.
365 (compat_x32_siginfo_from_siginfo): Likewise.
366 (siginfo_from_compat_x32_siginfo): Likewise.
367 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
368 and siginfo_from_compat_x32_siginfo for x32.
369
7ecbc825
HZ
3702012-06-15 Hui Zhu <hui_zhu@mentor.com>
371
372 * tracepoint.c (tfile_xfer_partial): Add a lseek.
373
233dfcf0
L
3742012-06-15 H.J. Lu <hongjiu.lu@intel.com>
375
376 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
377 instead of gdbarch_ptr_bit.
378 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
379 (amd64_supply_native_gregset): Likewise.
380 (amd64_collect_native_gregset): Likewise.
381 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
382 (amd64_supply_xsave): Likewise.
383 (amd64_collect_fxsave): Likewise.
384 (amd64_collect_xsave): Likewise.
385
6da38f42
L
3862012-06-15 H.J. Lu <hongjiu.lu@intel.com>
387
388 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
389 (amd64_linux_read_description): Check DS segment register for
390 x32 process.
391
663b969e
TT
3922012-06-15 Tom Tromey <tromey@redhat.com>
393
394 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
395 init_cutu_and_read_dies.
396
d6f05027
IS
3972012-06-15 Iain Sandoe <iain@codesourcery.com>
398
399 * MAINTAINERS (Write After Approval): Add myself to the list.
400
6598ed07
TT
4012012-06-15 Tom Tromey <tromey@redhat.com>
402
403 * valops.c (value_find_oload_method_list): Now static.
404 * value.h (value_find_oload_method_list): Don't declare.
405
2b214ea6
TT
4062012-06-15 Tom Tromey <tromey@redhat.com>
407
408 * valops.c (find_overload_match): Use value_ind.
409
a210c238
MR
4102012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
411
412 * infrun.c (handle_inferior_event): Correct indentation.
413
3771a44c
DE
4142012-06-14 Doug Evans <dje@google.com>
415
416 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
417 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
418 All uses updated.
419 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
420 updated. Handle DEBUG_LOC_START_LENGTH.
421 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
422 (loclist_describe_location): Ditto.
423
1c5a993e
MR
4242012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
425
426 PR backtrace/13866
427 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
428 after hiding inline functions.
429
0b155465
JB
4302012-06-13 Joel Brobecker <brobecker@adacore.com>
431
432 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
433 _initialize_inf_ttrace.
434
45717bac
JB
4352012-06-13 Joel Brobecker <brobecker@adacore.com>
436
437 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
438 _initialize_hppa_hpux_nat.
439
34370865
JB
4402012-06-13 Joel Brobecker <brobecker@adacore.com>
441
442 * remote-sim.c (sim_command_completer): Change type of return
443 value to "VEC (char_ptr) *". Adjust implementation accordingly.
444
284c5a60
MK
4452012-06-13 Mark Kettenis <kettenis@gnu.org>
446 Jan Kratochvil <jan.kratochvil@redhat.com>
447
448 PR tdep/14222
449 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
450 stack on a 16-byte boundary.
451
2535757a
TT
4522012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
453
454 * jit.c (finalize_symtab): Set function's return type to 'void' by
455 default.
456
fff4548b
MK
4572012-06-13 Mark Kettenis <kettenis@gnu.org>
458 H.J. Lu <hongjiu.lu@intel.com>
459
5a83521a
MK
460 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
461 Move bits common to both the classic LP64 and the new x32 ILP32
462 ABI here.
463 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
464 (amd64_x32_linux_init_abi): New function.
465 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
466 subtype.
467
fff4548b
MK
468 * i386-tdep.h (i386_pseudo_register_name): New prototype.
469 * i386-tdep.c (i386_pseudo_register_name): Make public.
470 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
471 * amd64-tdep.c (amd64_dword_names): Add "eip".
472 (amd64_x32_pseudo_register_type): New function
473 (amd64_x32_init_abi): New function.
474
dd80ea3c
JK
4752012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
476
477 PR build/14003
478 * inferior.h (struct inferior_suspend_state): Comment out.
479 (struct inferior): Comment out the field suspend.
480 * infrun.c (struct infcall_suspend_state): Comment out the field
481 inferior_suspend.
482 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
483 out its assignment.
484
50af5481
JK
4852012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
486
487 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
488 * c-exp.y (classify_inner_name): Remove caller assumptions in the
489 function comment. Return ERROR for unresolved cases. Implement
490 returning proper NAME.
491 (yylex): Accept also NAME from classify_inner_name.
492 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
493 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
494 LOC_TYPEDEF type.
495 * cp-support.h (cp_lookup_nested_type): Update its declaration.
496
d55637df
TT
4972012-06-13 Tom Tromey <tromey@redhat.com>
498
499 * breakpoint.c (condition_completer): New function.
500 (_initialize_breakpoint): Use it.
501 * value.c (complete_internalvar): New function.
502 * value.h (complete_internalvar): Declare.
503
49c4e619
TT
5042012-06-13 Tom Tromey <tromey@redhat.com>
505
506 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
507 * breakpoint.c (catch_syscall_completer): Return a VEC.
508 * cli/cli-cmds.c (complete_command): Update.
509 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
510 (complete_on_enum): Likewise.
511 * command.h: Include gdb_vecs.h.
512 (completer_ftype): Change return type.
513 (complete_on_cmdlist, complete_on_enum): Likewise.
514 * completer.c (noop_completer, filename_completer)
515 (location_completer): Return a VEC.
516 (add_struct_fields): Remove 'nextp' argument. Change 'output'
517 to a VEC.
518 (expression_completer, complete_line_internal, complete_line)
519 (command_completer): Return a VEC.
520 (gdb_completion_word_break_characters, line_completion_function):
521 Update.
522 * completer.h: Include gdb_vecs.h.
523 (complete_line, noop_completer, filename_completer)
524 (expression_completer, location_completer, command_completer):
525 Update.
526 * f-lang.c (f_word_break_characters): Return a VEC.
527 * interps.c (interpreter_completer): Return a VEC.
528 * language.h (struct language_defn)
529 <la_make_symbol_completion_list>: Return a VEC.
530 * python/py-cmd.c (cmdpy_completer): Return a VEC.
531 * symtab.c (free_completion_list): Take a VEC.
532 (return_val_size, return_val_index): Remove.
533 (return_val): Now a VEC.
534 (completion_list_add_name): Update.
535 (default_make_symbol_completion_list_break_on)
536 (default_make_symbol_completion_list, make_symbol_completion_list)
537 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
538 Return a VEC.
539 (add_filename_to_list): Update.
540 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
541 <list>: Now a VEC.
542 (maybe_add_partial_symtab_filename): Update.
543 (make_source_files_completion_list): Return a VEC.
544 * symtab.h (default_make_symbol_completion_list_break_on)
545 (default_make_symbol_completion_list, make_symbol_completion_list)
546 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
547 (make_source_files_completion_list): Update.
548
625e8578
TT
5492012-06-13 Tom Tromey <tromey@redhat.com>
550
551 * breakpoint.c (add_catch_command): Use completer_ftype.
552 * breakpoint.h: Include command.h.
553 (add_catch_command): Use completer_ftype.
554 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
555 * cli/cli-decode.h (struct cmd_list_element) <completer>:
556 Use completer_ftype.
557 * command.h (completer_ftype): New typedef.
558 (set_cmd_completer): Use it.
559 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
560 completer_ftype.
561
5eb3b062
PA
5622012-06-13 Pedro Alves <palves@redhat.com>
563
564 Partial revert of previous change.
565
566 * serial.c (scb_base): New global.
567 (serial_for_fd): New.
568 (serial_open, serial_fdopen_ops): Link new serial in open serials
569 chain.
570 (do_serial_close): Unlink serial from the open serials chain.
571
8b3ee56d
PA
5722012-06-12 Pedro Alves <palves@redhat.com>
573
574 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
575 threads here.
576 (prepare_for_detach): No longer context switch here in non-stop
577 mode.
578 (fetch_inferior_event): Ditto.
579 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
580 to the event thread before removing breakpoints. Switch to the
581 event thread before inserting breakpoints and resuming.
582 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
583 event thread before resuming.
584 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
585 Switch to the event thread before removing breakpoints.
586
5d60742e
EZ
5872012-06-12 Eli Zaretskii <eliz@gnu.org>
588
589 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
590 special characters correctly for the Windows shells. See
591 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
592 report.
593 [!__MINGW32__]: Remove extra double quote character from special
594 characters.
595
a6feecf7
SS
5962012-06-11 Stan Shebs <stan@codesourcery.com>
597
598 * ui-out.h: Remove #if 0 declarations.
599 * ui-out.c: Remove #if 0 functions.
600
ddefb60f
PA
6012012-06-11 Pedro Alves <palves@redhat.com>
602
603 * ser-base.c (run_async_handler_and_reschedule): New.
604 (fd_event, push_event): Use it.
605 * serial.c (serial_open, serial_fdopen_ops): Set the initial
606 reference count to 1.
607 (do_serial_close): Set the bufp field to NULL. Use serial_unref
608 instead of xfree.
609 (serial_is_open, serial_ref, serial_unref): New.
610 * serial.h (serial_open): Adjust comment.
611 (serial_is_open): Declare.
612 (serial_close): Adjust comment.
613 (serial_ref, serial_unref) Declare.
614 (struct serial): New field 'refcnt'.
615
d5ad6aa5
PA
6162012-06-11 Pedro Alves <palves@redhat.com>
617
618 Remove #if 0'd "connect" command, and unnecessary associated
619 refcounting and serial reuse bits.
620
621 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
622 * serial.c (last_serial_opened): Delete.
623 (scb_base): Delete.
624 (serial_open): Adjust.
625 (serial_for_fd): Delete.
626 (serial_fdopen_ops, do_serial_close): Adjust.
627 (serial_fdopen_ops): Adjust.
628
318aa544
PA
6292012-06-11 Pedro Alves <palves@redhat.com>
630
631 * serial.c (do_serial_close): Remove early return when SCB is
632 null.
633
07261596
TT
6342012-06-11 Tom Tromey <tromey@redhat.com>
635
636 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
637
cc80f267
JK
6382012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
639
640 Fix regression by the "ambiguous linespec" series.
641 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
642 get_last_displayed_symtab and get_last_displayed_line and depending
643 on CURSAL.
644
356d9f9d
TT
6452012-06-11 Tom Tromey <tromey@redhat.com>
646
647 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
648 (dw2_find_symbol_file): Use it.
649
232b8704
ME
6502012-06-11 Michael Eager <eager@eagercon.com>
651
652 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
653 * mips-linux-tdep.h (mips_signals): New
654
e81a37f7
TT
6552012-06-11 Tom Tromey <tromey@redhat.com>
656
657 * infrun.c (handle_inferior_event)
658 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
659 breakpoint.
660 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
661 exception logic in all cases. Update comments.
662 (insert_longjmp_resume_breakpoint): Set the exception resume
663 breakpoint.
664
2e81047f
MR
6652012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
666
667 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
668
4e32eda7
SCR
6692012-06-09 Siva Chandra Reddy <sivachandra@google.com>
670
671 * valarith.c (binop_types_user_defined_p): Fix a typo.
672
18648a37
YQ
6732012-06-08 Yao Qi <yao@codesourcery.com>
674 Chung-Lin Tang <cltang@codesourcery.com>
675
676 * arch-utils.c (default_return_in_first_hidden_param_p): New.
677 * arch-utils.h: Declare.
678 * gdbarch.sh: Add return_in_first_hidden_param_p.
679 * gdbarch.c, gdbarch.h: Regenerated.
680 * infcall.c (call_function_by_hand): Call
681 gdbarch_return_in_first_hidden_param_p instead of
682 language_pass_by_reference.
683
684 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
685 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
686 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
687 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
688 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
689 `cplus_return_struct_by_reference'.
690 (tic6x_return_value): Handle language cplusplus.
691 (tic6x_return_in_first_hidden_param_p): New.
692 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
693
034e5797
DE
6942012-06-07 Doug Evans <dje@google.com>
695
696 * dwarf2read.c (dwarf2_cu): Add comment.
697
6a00aa1e
MR
6982012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
699
700 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
701 variable.
702 (mips_eabi_push_dummy_call): Likewise.
703 (mips_n32n64_push_dummy_call): Likewise.
704 (mips_o32_push_dummy_call): Likewise.
705 (mips_o64_push_dummy_call): Likewise.
706
eaa05d59
MR
7072012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
708
709 * mips-tdep.c (mips_convert_register_p): Correct coding style.
710
de13fcf2
MR
7112012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
712
713 * mips-tdep.c (mips_pseudo_register_type): Use
714 mips_float_register_p.
715
c3a01a22
PA
7162012-06-06 Pedro Alves <palves@redhat.com>
717
718 * infrun.c (handle_inferior_event): Remove calls to
719 reinit_frame_cache that follow a context_switch call.
720
d25f45d9
PA
7212012-06-06 Pedro Alves <palves@redhat.com>
722
723 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
724 context_switch and remove stale comment.
725
359f5fe6
PA
7262012-06-06 Pedro Alves <palves@redhat.com>
727
728 * infrun.c (struct execution_control_state): Remove
729 `new_thread_event' field.
730 (handle_inferior_event): Simplify new threads handling; don't
731 resume the inferior if we find a new thread.
732
2d4c29c5
TS
7332012-06-06 Thomas Schwinge <thomas@codesourcery.com>
734
735 * NEWS: Document the deprecation of SH's 'regs' command.
736 * inferior.h (all_registers_info): Add function declaration.
737 * sh-tdep.c (sh_show_regs): Remove variable.
738 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
739 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
740 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
741 (sh_show_regs_command): Remove functions.
742 (sh_gdbarch_init): Don't set sh_show_regs.
743 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
744 'info all-registers'.
745 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
746 (sh64_show_regs): Remove functions.
747 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
748
f5f1cdb6
JK
7492012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
750
751 * configure.ac: Move development=true below AC_INIT.
752 * configure: Regenerate.
753
bf6309af
SS
7542012-06-05 Stan Shebs <stan@codesourcery.com>
755
756 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
757 gdb_stdout.
758
45aa4659
JK
7592012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
760
761 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
762 argument as ssize_t.
763 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
764 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
765 * target.c (target_read_stack, target_write_memory)
766 (target_write_raw_memory): Likewise.
767 * target.h (target_read_stack, target_write_memory)
768 (target_write_raw_memory): Likewise.
769
1b162304
JK
7702012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
771
772 * symfile-mem.c: Change gdb_static_assert to ssize_t.
773 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
774 * target.c (target_read_memory): Change LEN to ssize_t.
775 * target.h (target_read_memory): Change LEN to ssize_t.
776
8556afb4
PA
7772012-06-05 Pedro Alves <palves@redhat.com>
778
779 PR backtrace/13866
780
781 * breakpoint.c (until_break_command): Only fetch the selected
782 frame after decode_line_1.
783
fb139f32
PA
7842012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
785
786 * solib-svr4.c (enable_break): Don't fallback to setting the solib
787 event breakpoint at _start, __start or main if a program
788 interpreter is not found.
789
a8e1bb34
JB
7902012-06-05 Joel Brobecker <brobecker@adacore.com>
791
792 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
793 Add declaration.
794 * windows-tdep.c: #include "objfiles.h".
795 (windows_iterate_over_objfiles_in_search_order): New function.
796 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
797 iterate_over_objfiles_in_search_order gdbarch method to
798 windows_iterate_over_objfiles_in_search_order.
799 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
800
19630284
JB
8012012-06-05 Joel Brobecker <brobecker@adacore.com>
802
803 * gdbarch.sh: Add generation of
804 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
805 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
806 (iterate_over_objfiles_in_search_order): New gdbarch method.
807 * gdbarch.h, gdbarch.c: Regenerate.
808 * objfiles.h (default_iterate_over_objfiles_in_search_order):
809 Add declaration.
810 * objfiles.c (default_iterate_over_objfiles_in_search_order):
811 New function.
812 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
813 out of lookup_symbol_aux_symtabs.
814 (lookup_symbol_aux_symtabs): Replace extracted-out code by
815 call to lookup_symbol_aux_objfile.
816 (struct global_sym_lookup_data): New type.
817 (lookup_symbol_global_iterator_cb): New function.
818 (lookup_symbol_global): Search for symbol using
819 gdbarch_iterate_over_objfiles_in_search_order and
820 lookup_symbol_global_iterator_cb.
821 * findvar.c (struct minsym_lookup_data): New type.
822 (minsym_lookup_iterator_cb): New function.
823 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
824 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
825 and minsym_lookup_iterator_cb.
826
67ff19f7
JB
8272012-06-05 Joel Brobecker <brobecker@adacore.com>
828
829 Revert the following patch:
830 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
831 try locating the symbol in the symbol's own objfile first, before
832 extending the search to all objfiles.
833 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
834 out of lookup_symbol_aux_symtabs.
835 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
836 Replace extracted-out code by call to lookup_symbol_aux_objfile.
837 Do not search EXCLUDE_OBJFILE.
838 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
839 (lookup_symbol_global): Search for matches in the block's objfile
840 first, before searching all other objfiles.
841
ccab2054
JB
8422012-06-05 Joel Brobecker <brobecker@adacore.com>
843
844 * breakpoint.c (find_condition_and_thread): Stop parsing
845 as soon as the first invalid keyword is found.
846
e23d4a9c
JB
8472012-06-05 Joel Brobecker <brobecker@adacore.com>
848
849 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
850
70160166
JB
8512012-06-05 Joel Brobecker <brobecker@adacore.com>
852
853 * config/djgpp/djcheck.sh: Add copyright header.
854
399501a5
JB
8552012-06-05 Joel Brobecker <brobecker@adacore.com>
856
857 * copyright.py (update_files, main): Fix path to update-copyright
858 script.
859
3770a159
JB
8602012-06-05 Joel Brobecker <brobecker@adacore.com>
861
862 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
863 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
864 for which a reminder to update by hand is printed.
865
4aad0dfc
DE
8662012-06-04 Doug Evans <dje@google.com>
867
868 * buildsym.c (make_blockvector): Add comment.
869
1f8cf220
PA
8702012-06-04 Pedro Alves <palves@redhat.com>
871
872 * arch-utils.c (default_gdb_signal_from_target): Delete.
873 * arch-utils.h (default_gdb_signal_from_target): Delete.
874 * corelow.c (core_open) <signal mapping>: Extended comment. Check
875 gdbarch_gdb_signal_from_target_p.
876 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
877 predicate).
878 * gdbarch.h: Regenerate.
879 * gdbarch.c: Regenerate.
880
86b49880
PA
8812012-06-04 Pedro Alves <palves@redhat.com>
882
883 * gdbarch.sh (gdb_signal_from_target): Mention that the
884 implementation of the method must be host independent.
885 * gdbarch.h: Regenerate.
886
fe78531d
JK
8872012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
888
889 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
890 parameters.
891 (target_read_memory_bfd): New function.
892 (symbol_file_add_from_memory): Use it.
893
d790cf0a
DE
8942012-06-03 Doug Evans <dje@google.com>
895
78e5175a
DE
896 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
897 of primary symtab.
898 (basic_lookup_transparent_type): Ditto.
899
d790cf0a
DE
900 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
901 (ALL_PRIMARY_SYMTABS): Use it.
902 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
903 * dwarf2read.c (dw2_find_symbol_file): Ditto.
904 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
905 * symtab.c (lookup_symbol_aux_objfile): Ditto.
906 (basic_lookup_transparent_type): Ditto.
907
c6e5ee5e
SDJ
9082012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
909
910 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
911 it to optimize resolution of demangled name.
912
a68ffae9
JK
9132012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
914
915 * configure.ac (development): Define new variable.
916 Call AC_CHECK_LIB for mcheck if $development.
917 (ERROR_ON_WARNING): Enable it by default only if $development.
918 * config.in: Regenerate.
919 * configure: Regenerate.
920
5299c1c4
JK
9212012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
922
923 * target.c (target_read_memory): Make LEN argument as size_t.
924 * target.h (target_read_memory): Likewise.
925
9262012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
927
928 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
929
0c56f59b
EBM
9302012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
931
932 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
933 BookE interface for PowerPC server processors if not available
934 in the Linux Kernel.
935
71bdabee
KS
9362012-05-31 Keith Seitz <keiths@redhat.com>
937
938 * linespec.c (decode_objc): Add cleanup to free
939 INFO.FILE_SYMTABS.
940 (find_linespec_symbols): Add cleanup to free CLASSES.
941 * symfile.c (find_separate_debug_file_by_debuglink): Add
942 cleanup to free DEBUGLINK.
943 * ui-out.c (clear_header_list): No need to check if
944 HEADER_NEXT.COLHDR is NULL.
945 Free HEADER_NEXT.COL_NAME.
946
acbd605d
MGD
9472012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
948
949 * ada-lang.c (standard_lookup): Prevent uninitialized variable
950 warning.
951
65662cde
PA
9522012-05-30 Jeff Kenton <jkenton@tilera.com>
953
954 * configure.host (gdb_host_cpu): Handle tilegx*.
955 (gdb_host): Handle tilegx-*-linux*.
956 * tilegx-linux-nat.c: New file.
957 * config/tilegx/linux.mh: New file.
958
ade64f0e
PA
9592012-05-30 Jeff Kenton <jkenton@tilera.com>
960
961 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
962 tilegx-linux-tdep.o.
963 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
964 tilegx-linux-tdep.c.
965 * configure.tgt: Handle tilegx-*-linux*.
966 * tilegx-tdep.h: New file.
967 * tilegx-tdep.c: New file.
968 * tilegx-linux-tdep.c: New file.
969 * regformats/reg-tilegx.dat: New file.
970
bb08bdbd
EBM
9712012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
972
973 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
974 accounting of hw watchpoints on ppc.
975
ebd86fb5
TJB
9762012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
977
978 * source.c (openp): Expand tilde in path entries.
979
0a0edcd5
DE
9802012-05-29 Doug Evans <dje@google.com>
981
98cc87bd
DE
982 * buildsym.c (block_compar): Fix comment.
983 (end_symtab): Fix and clarify some comments.
984
0a0edcd5
DE
985 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
986 cleanup_undefined_types.
987 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
988 All callers updated.
989
6f0c7050
TT
9902012-05-29 Tom Tromey <tromey@redhat.com>
991
992 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
993 fails.
994 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
995 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
996 fails.
997 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
998 fails.
999
ec95993c
TG
10002012-05-29 Tristan Gingold <gingold@adacore.com>
1001
1002 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
1003 (struct darwin_info): ... New struct.
1004 (solib_darwin_pspace_data): New variable.
1005 (darwin_pspace_data_cleanup): New function.
1006 (get_darwin_info): Likewise.
1007 (darwin_dyld_version_ok, darwin_load_image_infos)
1008 (darwin_solib_get_all_image_info_addr_at_init)
1009 (darwin_solib_read_all_image_info_addr): Add info argument.
1010 Adjust code.
1011 (darwin_current_sos): Use per pspace structure.
1012 (darwin_solib_create_inferior_hook): Likewise.
1013 (darwin_clear_solib): Likewise.
1014 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
1015
ae25568b
PA
10162012-05-28 Pedro Alves <palves@redhat.com>
1017
1018 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
1019 block that uses them. Clear ecss before handling each event.
1020
0c5bf5a9
JK
10212012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
1022
1023 * solib-svr4.c (svr4_current_sos): New comment on
1024 svr4_current_sos_via_xfer_libraries fall back.
1025
bfb05775
JK
10262012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
1027
1028 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
1029 it as a fallback for TYPE_IS_OPAQUE.
1030 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
1031 symbols for lookup_symbol.
1032
685b1105
JK
10332012-05-24 John Steele Scott <toojays@toojays.net>
1034
1035 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
1036 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
1037 (producer_is_gxx_lt_4_6): Move the checking and caching to...
1038 (check_producer): ... this new function, which also checks for ICC
1039 and caches the result.
1040 (producer_is_icc): New function.
1041 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
1042 producer was ICC.
1043
22203bbf
PA
10442012-05-24 Pedro Alves <palves@redhat.com>
1045
1046 PR gdb/7205
1047
1048 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
1049 (default_gdb_signal_to_target): ... this. Add comment.
1050 (default_gdb_signal_from_host): Rename to ...
1051 (default_gdb_signal_from_target): ... this. Add comment.
1052 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
1053 (default_gdb_signal_to_target): ... this.
1054 (default_gdb_signal_from_host): Rename to ...
1055 (default_gdb_signal_from_target): ... this.
1056 * corelow.c (core_open): Adjust to naming change. Replace comment.
1057 * gdbarch.sh (gdb_signal_from_host): Rename to ...
1058 (gdb_signal_from_target): ... this. Adjust to
1059 default_gdb_signal_from_host naming change. Extend comment.
1060 (gdb_signal_to_host): Rename to ...
1061 (gdb_signal_to_target): ... this. Adjust to
1062 default_gdb_signal_to_host naming change.
1063 * gdbarch.h, gdbarch.c: Renegerate.
1064
a493e3e2
PA
10652012-05-24 Pedro Alves <palves@redhat.com>
1066
1067 PR gdb/7205
1068
1069 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
1070
2ea28649
PA
10712012-05-24 Pedro Alves <palves@redhat.com>
1072
1073 PR gdb/7205
1074
1075 Replace target_signal with gdb_signal throughout.
1076
b09846a9
PA
10772012-05-24 Pedro Alves <palves@redhat.com>
1078
1079 PR tui/14159
1080
1081 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
1082 string, instead of reusing the va_list argument.
1083
e77c107e
TT
10842012-05-24 Tom Tromey <tromey@redhat.com>
1085
1086 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
1087 Remove.
1088
9fccedf7
DE
10892012-05-23 Doug Evans <dje@google.com>
1090
d50bd42b
DE
1091 * symtab.c (search_symbols): Formatting fixes.
1092 (print_symbol_info): Formatting fixes.
1093
9fccedf7
DE
1094 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
1095 int64_t change to leb128 API.
1096 (read_encoded_value, decode_frame_entry_1): Ditto.
1097 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
1098 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
1099 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1100 (execute_stack_op): Ditto.
1101 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
1102 (safe_read_uleb128, safe_read_sleb128): Ditto.
1103 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
1104 (dwarf2_compile_expr_to_ax): Ditto.
1105 (locexpr_describe_location_piece): Ditto.
1106 (disassemble_dwarf_expression): Ditto.
1107 (locexpr_describe_location_1): Ditto.
1108
f3e0e960
SS
11092012-05-23 Stan Shebs <stan@codesourcery.com>
1110 Kwok Cheung Yeung <kcy@codesourcery.com>
1111
1112 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
1113 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
1114 (mi-cmd-info.o): New rule.
1115 * osdata.h (info_osdata_command): New declaration.
1116 * osdata.c (info_osdata_command): Change to non-static.
1117 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
1118 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
1119 * mi/mi-cmd-info.c: New file.
1120
c51fe631
DE
11212012-05-23 Doug Evans <dje@google.com>
1122
71cddcc1
DE
1123 * symtab.c (search_symbols): Pass NULL for file_matcher to
1124 expand_symtabs_matching if there are no files to match.
1125
c51fe631
DE
1126 * gdbtypes.c (lookup_typename): Simplify.
1127
a79378d4
PA
11282012-05-23 Pedro Alves <palves@redhat.com>
1129
1130 * arch-utils.h (default_target_signal_to_host): Delete.
1131 * arch-utils.c (default_target_signal_to_host): Delete.
1132 * gdbarch.sh (target_signal_to_host): Remove.
1133 * gdbarch.h, gdbarch.c: Regenerate.
1134
f664829e
DE
11352012-05-22 Doug Evans <dje@google.com>
1136
1137 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
1138 "const gdb_byte *".
1139 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
1140 (execute_cfa_program): Update to match API of leb128 functions.
1141 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
1142 "const gdb_byte *".
1143 (read_unsigned_leb128, read_signed_leb128): Delete.
1144 (read_initial_length): Change type of buf argument to
1145 "const gdb_byte *".
1146 (read_encoded_value): Update to match API of leb128 functions.
1147 (decode_frame_entry): Change result to "const gdb_byte *", and
1148 similarly for "start" parameter.
1149 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
1150 (dwarf2_build_frame_info): Change local frame_ptr to
1151 "const gdb_byte *".
1152 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
1153 read_uleb128, read_sleb128. All callers updated.
1154 (safe_skip_leb128): New function.
1155 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
1156 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
1157 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
1158 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
1159 read_uleb128, read_sleb128.
1160 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
1161 (execute_stack_op): Update to match API of leb128 functions.
1162 * dwarf2expr.h: #include "leb128.h".
1163 (read_uleb128, read_sleb128): Delete.
1164 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
1165 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
1166 * dwarf2loc.c (debug_loc_kind): New enum.
1167 (decode_debug_loc_addresses): New function.
1168 (decode_debug_loc_dwo_addresses): New function.
1169 (dwarf2_find_location_expression): Rewrite.
1170 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
1171 (locexpr_describe_location_piece): Ditto.
1172 (disassemble_dwarf_expression): Ditto.
1173 (locexpr_describe_location_1): Ditto.
1174 (loclist_describe_location): Rewrite.
1175 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
1176 * dwarf2read.c (die_reader_specs): New member "buffer_end".
1177 (dwarf2_section_buffer_overflow_complaint): Renamed from
1178 dwarf2_macros_too_long_complaint. All callers updated.
1179 (skip_leb128): Delete.
1180 (init_cu_die_reader): Initialize reader->buffer_end.
1181 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
1182 (skip_form_bytes): New arg buffer_end. All callers updated.
1183 Replace call to skip_leb128 with gdb_skip_leb128.
1184 (skip_unknown_opcode): New arg mac_end. All callers updated.
1185 (fill_in_loclist_baton): Initialize baton->from_dwo.
1186
837a1b32
MR
11872012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1188
1189 * mips-linux-nat.c (mips_linux_read_description): Use a more
1190 verbose error message.
1191
d0e64392
MR
11922012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
1193
1194 * NEWS: Add MIPS/Linux DSP support.
1195 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
1196 (SIGCONTEXT_DSPCTL): New macro.
1197 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
1198 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
1199 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
1200 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
1201 (N64_SIGCONTEXT_HI3): Likewise.
1202 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
1203 (N64_SIGCONTEXT_LO3): Likewise.
1204 (N64_SIGCONTEXT_DSPCTL): Likewise.
1205 (N64_SIGCONTEXT_FPCSR): Clarify definition.
1206 (mips_linux_o32_sigframe_init): Handle DSP registers.
1207 (mips_linux_n32n64_sigframe_init): Likewise.
1208
8bea7ed1
PM
12092012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1210
1211 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
1212 call to abort.
1213
dab06dbe
PA
12142012-05-22 Pedro Alves <palves@redhat.com>
1215
1216 * target.h (store_waitstatus): Move declaration ...
1217 * inf-child.h (store_waitstatus): ... here.
1218 * target.c: Move inclusion of gdb_wait.h, and ...
1219 (store_waitstatus): ... this ...
1220 * inf-child.c: ... here.
1221 * linux-nat.c: Include inf-child.h.
1222 * rs6000-nat.c: Include inf-child.h.
1223 * spu-linux-nat.c: Include inf-child.h.
1224
43011e52
PM
12252012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
1226
1227 * tracepoint.c (start_tracing): Add missing i18n markup.
1228 (stop_tracing, set_trace_user): Ditto.
1229 (set_trace_notes, set_trace_stop_notes): Ditto.
1230
b1af9e97
TT
12312012-05-21 Tom Tromey <tromey@redhat.com>
1232
1233 PR c++/7173:
1234 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
1235 types.
1236 * value.h (value_cast_pointers): Update.
1237 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
1238 (value_cast): Update.
1239 (update_search_result): New function.
1240 (do_search_struct_field): New, from search_struct_field. Check
1241 for ambiguous results.
1242 (search_struct_field): Rewrite.
1243 * infcall.c (value_arg_coerce): Update.
1244 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
1245 value_cast_pointers.
1246 * ada-lang.c (ada_convert_actual): Update.
1247
e9e5e6b3
TT
12482012-05-21 Tom Tromey <tromey@redhat.com>
1249
1250 * macroexp.c (macro_stringify): Terminate the string.
1251
1564a261
JK
12522012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1253
1254 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
1255 Describe it.
1256 * auto-load.c (auto_load_expand_dir_vars): New function.
1257 (auto_load_safe_path_vec_update): Use it, remove the
1258 substitute_path_component call thanks to it.
1259 (auto_load_objfile_script): Remove the debug_file_directory processing.
1260 Use auto_load_expand_dir_vars, remove the substitute_path_component
1261 call thanks to it.
1262 * configure: Regenerate.
1263 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
1264 path. Escape $ also for $debugdir.
1265 (--with_auto_load_safe_path): Escape $ also for $debugdir.
1266 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
1267
a3ec0bb1
DE
12682012-05-20 Doug Evans <dje@google.com>
1269
1270 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
1271 before use. Check for symtab->includes == NULL before scanning it.
1272
d467df4e
MR
12732012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1274
1275 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
1276
4cc0665f
MR
12772012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1278
1279 * NEWS: Add microMIPS support and "set mips compression",
1280 "show mips compression" commands.
1281 * mips-tdep.h (mips_isa): New enum.
1282 (gdbarch_tdep): Add mips_isa.
1283 (mips_pc_is_mips16): Update prototype.
1284 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
1285 * mips-tdep.c (mips_compression_mips16): New variable.
1286 (mips_compression_micromips): Likewise.
1287 (mips_compression_strings): Likewise.
1288 (mips_compression_string): Likewise.
1289 (is_mips16_isa, is_micromips_isa): New functions.
1290 (is_mips16_addr): Rename to...
1291 (is_compact_addr): ... this.
1292 (unmake_mips16_addr): Likewise to...
1293 (unmake_compact_addr): ... this.
1294 (make_mips16_addr): Likewise to...
1295 (make_compact_addr): ... this.
1296 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
1297 functions.
1298 (mips_elf_make_msymbol_special): Handle microMIPS code.
1299 (msymbol_is_special): Rename to...
1300 (msymbol_is_mips16): ... this.
1301 (mips_make_symbol_special, mips_pc_is_mips16): Update
1302 accordingly.
1303 (msymbol_is_mips, msymbol_is_micromips): New functions.
1304 (mips16_to_32_reg): Rename to...
1305 (mips_reg3_to_reg): ... this.
1306 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
1307 (mips_pc_isa): Likewise.
1308 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
1309 code.
1310 (mips_fetch_instruction): Pass return status instead of printing
1311 an error message if requested. Handle microMIPS code. Bail out
1312 on an invalid ISA.
1313 (micromips_op): New macro.
1314 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
1315 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
1316 (b6s4_op, b7s3_reg): Likewise.
1317 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
1318 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
1319 (mips_insn_size): New function.
1320 (mips32_next_pc): Update mips_fetch_instruction call.
1321 (micromips_relative_offset7): New function.
1322 (micromips_relative_offset10): Likewise.
1323 (micromips_relative_offset16): Likewise.
1324 (micromips_pc_insn_size): Likewise.
1325 (micromips_bc1_pc): Likewise.
1326 (micromips_next_pc): Likewise.
1327 (unpack_mips16): Update mips_fetch_instruction call.
1328 (extended_mips16_next_pc): Update according to change to
1329 mips16_to_32_reg.
1330 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
1331 code.
1332 (mips16_scan_prologue): Update mips_fetch_instruction call.
1333 Update according to change to mips16_to_32_reg.
1334 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
1335 (mips_insn16_frame_base_sniffer): Likewise.
1336 (micromips_decode_imm9): New function.
1337 (micromips_scan_prologue): Likewise.
1338 (mips_micro_frame_cache): Likewise.
1339 (mips_micro_frame_this_id): Likewise.
1340 (mips_micro_frame_prev_register): Likewise.
1341 (mips_micro_frame_sniffer): Likewise.
1342 (mips_micro_frame_unwind): New variable.
1343 (mips_micro_frame_base_address): New function.
1344 (mips_micro_frame_base): New variable.
1345 (mips_micro_frame_base_sniffer): New function.
1346 (mips32_scan_prologue): Update mips_fetch_instruction call.
1347 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
1348 rather than for MIPS16.
1349 (mips_insn32_frame_base_sniffer): Likewise.
1350 (mips_addr_bits_remove): Handle microMIPS code.
1351 (deal_with_atomic_sequence): Rename to...
1352 (mips_deal_with_atomic_sequence): ... this. Update the type
1353 of the variable used to hold an instruction. Remove the ISA bit
1354 check. Update mips_fetch_instruction call.
1355 (micromips_deal_with_atomic_sequence): New function.
1356 (deal_with_atomic_sequence): Likewise.
1357 (mips_about_to_return): Handle microMIPS code. Update
1358 mips_fetch_instruction call.
1359 (heuristic_proc_start): Check for the standard MIPS ISA rather
1360 than for MIPS16. Update mips_pc_is_mips16 and
1361 mips_fetch_instruction calls. Handle microMIPS code.
1362 (mips_push_dummy_code): Handle microMIPS code.
1363 (mips_eabi_push_dummy_call): Likewise.
1364 (mips_o32_return_value): Update mips_pc_is_mips16 call.
1365 (mips_o64_push_dummy_call): Handle microMIPS code.
1366 (mips_o64_return_value): Update mips_pc_is_mips16 call.
1367 (is_delayed): Remove function.
1368 (mips_single_step_through_delay): Replace the call to is_delayed
1369 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
1370 Handle microMIPS code.
1371 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
1372 microMIPS code.
1373 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
1374 call.
1375 (micromips_in_function_epilogue_p): New function.
1376 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
1377 call.
1378 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
1379 Handle microMIPS.
1380 (gdb_print_insn_mips): Likewise.
1381 (mips_breakpoint_from_pc): Likewise.
1382 (mips_remote_breakpoint_from_pc): New function.
1383 (mips32_instruction_has_delay_slot): Simplify making use of the
1384 updated mips_fetch_instruction interface.
1385 (micromips_instruction_has_delay_slot): New function.
1386 (mips16_instruction_has_delay_slot): Simplify making use of the
1387 updated mips_fetch_instruction interface.
1388 (mips_adjust_breakpoint_address): Check for the standard MIPS
1389 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
1390 calls. Handle microMIPS code.
1391 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
1392 (mips_skip_trampoline_code): Handle microMIPS code.
1393 (global_mips_compression): New function.
1394 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
1395 file flags. Register the microMIPS remote breakpoint handler
1396 and heuristic frame unwinder.
1397 (show_mips_compression): New function.
1398 (_initialize_mips_tdep): Add the "set mips compression" and
1399 "show mips compression" commands.
1400
22e048c9
SDJ
14012012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
1402
1403 * ada-lang.c:
1404 * ada-tasks.c:
1405 * ada-varobj.c:
1406 * amd64-darwin-tdep.c:
1407 * arm-symbian-tdep.c:
1408 * arm-tdep.c:
1409 * avr-tdep.c:
1410 * ax-gdb.c:
1411 * bfin-linux-tdep.c:
1412 * breakpoint.c:
1413 * c-valprint.c:
1414 * cli/cli-cmds.c:
1415 * coffread.c:
1416 * cp-support.c:
1417 * cris-tdep.c:
1418 * dwarf2-frame-tailcall.c:
1419 * dwarf2-frame.c:
1420 * dwarf2expr.c:
1421 * dwarf2loc.c:
1422 * dwarf2read.c:
1423 * elfread.c:
1424 * eval.c:
1425 * expprint.c:
1426 * f-valprint.c:
1427 * frv-tdep.c:
1428 * h8300-tdep.c:
1429 * hppa-hpux-tdep.c:
1430 * hppa-tdep.c:
1431 * hppanbsd-tdep.c:
1432 * i386-nto-tdep.c:
1433 * i386-tdep.c:
1434 * i387-tdep.c:
1435 * ia64-tdep.c:
1436 * jit.c:
1437 * linespec.c:
1438 * linux-tdep.c:
1439 * lm32-tdep.c:
1440 * m2-valprint.c:
1441 * m32c-tdep.c:
1442 * m32r-rom.c:
1443 * m32r-tdep.c:
1444 * m68k-tdep.c:
1445 * m68klinux-tdep.c:
1446 * mi/mi-main.c:
1447 * microblaze-tdep.c:
1448 * mips-linux-tdep.c:
1449 * mips-tdep.c:
1450 * mn10300-tdep.c:
1451 * p-valprint.c:
1452 * parse.c:
1453 * ppc-linux-tdep.c:
1454 * ppc-sysv-tdep.c:
1455 * printcmd.c:
1456 * python/py-finishbreakpoint.c:
1457 * python/py-inferior.c:
1458 * python/py-infthread.c:
1459 * python/py-type.c:
1460 * python/python.c:
1461 * remote-fileio.c:
1462 * remote-m32r-sdi.c:
1463 * remote-mips.c:
1464 * reverse.c:
1465 * rl78-tdep.c:
1466 * rs6000-aix-tdep.c:
1467 * rs6000-tdep.c:
1468 * s390-tdep.c:
1469 * score-tdep.c:
1470 * sh64-tdep.c:
1471 * skip.c:
1472 * solib-darwin.c:
1473 * solib-dsbt.c:
1474 * solib-frv.c:
1475 * sparc-tdep.c:
1476 * spu-multiarch.c:
1477 * spu-tdep.c:
1478 * stack.c:
1479 * symfile.c:
1480 * symtab.c:
1481 * tic6x-tdep.c:
1482 * tracepoint.c:
1483 * v850-tdep.c:
1484 * valarith.c:
1485 * valprint.c:
1486 * value.c:
1487 * xcoffread.c:
1488 * xtensa-tdep.c:
1489 * ada-lang.c:
1490 * ada-tasks.c:
1491 * ada-varobj.c:
1492 * amd64-darwin-tdep.c:
1493 * arm-symbian-tdep.c:
1494 * arm-tdep.c: Delete unused variables.
1495
aff139ff
JK
14962012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1497
1498 Rename $ddir to $datadir.
1499 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
1500 * auto-load.c (auto_load_safe_path_vec_update)
1501 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
1502 * configure: Regenerate.
1503 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
1504 Likewise. Remove the 'use $ddir' help string.
1505
f7bfa992
JK
15062012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
1507
1508 * auto-load.c (show_auto_load_safe_path): Accept any combination of
1509 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
1510
9cb709b6
TT
15112012-05-18 Tom Tromey <tromey@redhat.com>
1512
1513 PR exp/13907:
1514 * valprint.h (struct value_print_options) <symbol_print>: New
1515 field.
1516 * valprint.c (user_print_options): Add default for symbol_print.
1517 (show_symbol_print): New function.
1518 (generic_val_print): Respect symbol_print.
1519 (_initialize_valprint): Add "print symbol" setting.
1520 * f-valprint.c (f_val_print): Respect symbol_print.
1521 * c-valprint.c (c_val_print): Respect symbol_print.
1522 * NEWS: Update.
1523 * printcmd.c (print_address_symbolic): Return int. Ignore some
1524 zero-size symbols.
1525 (print_address_demangle): Return int.
1526 * defs.h: (print_address_symbolic): Return int.
1527 * value.h (print_address_demangle): Return int.
1528
b012acdd
TT
15292012-05-18 Tom Tromey <tromey@redhat.com>
1530
1531 * valprint.c (val_print_string): Don't print leading space.
1532 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
1533 print space before string or vtbl.
1534 * m2-valprint.c (print_unpacked_pointer): Optionally print space
1535 before string.
1536 * jv-valprint.c (java_value_print): Print space before string.
1537 * go-valprint.c (print_go_string): Print space before string.
1538 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
1539 space before string.
1540 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
1541 space before string or vtbl.
1542 * auxv.c (fprint_target_auxv): Print space after address.
1543
1d51a733
TT
15442012-05-18 Tom Tromey <tromey@redhat.com>
1545
1546 * printcmd.c (print_address_demangle): Remove special case for 0.
1547
edf0c1b7
TT
15482012-05-18 Tom Tromey <tromey@redhat.com>
1549
1550 * printcmd.c (print_address_demangle): Add 'opts' argument.
1551 * p-valprint.c (pascal_val_print): Update.
1552 * jv-valprint.c (java_val_print): Update.
1553 * value.h: Update.
1554 * valprint.c (generic_val_print): Update.
1555 (print_function_pointer_address): Add 'options' argument. Remove
1556 'addressprint' argument. Update.
1557 * m2-valprint.c (print_unpacked_pointer): Update.
1558 * gnu-v3-abi.c (print_one_vtable): Update.
1559 (gnuv3_print_method_ptr): Update.
1560 * f-valprint.c (f_val_print): Update.
1561 * cp-valprint.c (cp_print_value_fields): Update.
1562 * valprint.h (print_function_pointer_address): Update.
1563 * c-valprint.c (c_val_print): Update.
1564
9703b513
TT
15652012-05-18 Tom Tromey <tromey@redhat.com>
1566
1567 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
1568 directly corresponding to the found psymtab.
1569 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
1570 (dw2_find_pc_sect_symtab): Use it.
1571 * block.h (blockvector_contains_pc): Declare.
1572 * block.c (find_block_in_blockvector): New function.
1573 (blockvector_for_pc_sect): Use it.
1574 (blockvector_contains_pc): New function.
1575
5a439849
MR
15762012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1577
1578 * mips-tdep.h (mips_write_pc): New prototype.
1579 * mips-tdep.c (mips_write_pc): Make external, add description.
1580 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
1581 add description.
1582
8376de04
MR
15832012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
1584
1585 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
1586 mips_regnum->pc.
1587 (mips_unwind_pc, mips_write_pc): Likewise.
1588 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
1589 gdbarch_read_pc.
1590
d3581e61
JB
15912012-05-17 Joel Brobecker <brobecker@adacore.com>
1592
1593 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
1594 proc_warn, proc_error, proc_get_status, proc_flags,
1595 proc_why, proc_what, proc_nsysarg, proc_sysargs,
1596 proc_set_run_on_last_close, proc_unset_run_on_last_close,
1597 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
1598 proc_stop_process, proc_wait_for_stop, proc_run_process,
1599 proc_set_traced_signals, proc_set_traced_faults,
1600 proc_set_traced_sysentry, proc_set_traced_sysexit,
1601 proc_set_held_signals, proc_get_held_signals,
1602 proc_get_traced_signals, proc_get_traced_faults,
1603 proc_get_traced_sysentry, proc_get_traced_sysexit,
1604 proc_clear_current_fault, proc_set_current_signal,
1605 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
1606 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
1607 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
1608 proc_get_current_thread, proc_get_current_thread,
1609 proc_get_current_thread, proc_update_threads,
1610 proc_update_threads, proc_update_threads, proc_update_threads,
1611 proc_iterate_over_threads, procfs_find_new_threads,
1612 procfs_pid_to_str): Make static. Remove advance declaration.
1613 (proc_cursig): Make static. Conditionalized defintion on
1614 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
1615 (proc_syscall, proc_set_kill_on_last_close,
1616 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
1617 proc_get_pending_signals, proc_get_signal_actions,
1618 proc_trace_signal, proc_ignore_signal): Delete.
1619
81b9b86e
SDJ
16202012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1621
1622 * coffread.c (cs_section_address): Passing proper argument for
1623 `bfd_get_section_vma'.
1624 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
1625 `bfd_get_section_flags'.
1626 * remote.c (remote_trace_set_readonly_regions): Likewise, for
1627 `bfd_get_section_vma'.
1628
abc9d0dc
TT
16292012-05-16 Tom Tromey <tromey@redhat.com>
1630
1631 PR macros/13205:
1632 * macrotab.h: (macro_define_special): Declare.
1633 (enum macro_special_kind): New.
1634 (struct macro_definition) <argc, replacement>: Update comments.
1635 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
1636 (macro_define_object_internal): New function.
1637 (macro_define_object): Use it.
1638 (macro_define_special): New function.
1639 (fixup_definition): New function.
1640 (macro_lookup_definition, foreach_macro_in_scope)
1641 (foreach_macro): Use fixup_definition.
1642 * macroexp.h (macro_stringify): Declare.
1643 * macroexp.c (free_buffer_return_text): New function.
1644 (stringify): Constify "arg".
1645 (macro_stringify): New function.
1646 * dwarf2read.c (macro_start_file): Call macro_define_special.
1647
6a3a010b
MR
16482012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
1649 Maciej W. Rozycki <macro@mips.com>
1650
1651 * breakpoint.h (bp_location): Add related_address member.
1652 * inferior.h (get_return_value): Take a pointer to struct value
1653 instead of struct type for the function requested.
1654 * value.h (using_struct_return): Likewise.
1655 * gdbarch.sh (return_value): Take a pointer to struct value
1656 instead of struct type for the function requested.
1657 * breakpoint.c (set_breakpoint_location_function): Initialize
1658 related_address for bp_gnu_ifunc_resolver breakpoints.
1659 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
1660 requested function's address to gdbarch_return_value.
1661 * eval.c (evaluate_subexp_standard): Pass the requested
1662 function's address to using_struct_return.
1663 * infcall.c (call_function_by_hand): Pass the requested
1664 function's address to using_struct_return and
1665 gdbarch_return_value.
1666 * infcmd.c (get_return_value): Take a pointer to struct value
1667 instead of struct type for the function requested.
1668 (print_return_value): Update accordingly.
1669 (finish_command_continuation): Likewise.
1670 * stack.c (return_command): Pass the requested function's
1671 address to using_struct_return and gdbarch_return_value.
1672 * value.c (using_struct_return): Take a pointer to struct value
1673 instead of struct type for the function requested. Pass the
1674 requested function's address to gdbarch_return_value.
1675 * python/py-finishbreakpoint.c (finish_breakpoint_object):
1676 New function_value member, replacing function_type.
1677 (bpfinishpy_dealloc): Update accordingly.
1678 (bpfinishpy_pre_stop_hook): Likewise.
1679 (bpfinishpy_init): Likewise. Record the requested function's
1680 address.
1681 * mips-tdep.c (mips_fval_reg): New enum.
1682 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
1683 words put in GP registers.
1684 (mips_o64_push_dummy_call): Update a comment.
1685 (mips_o32_return_value): Take a pointer to struct value instead
1686 of struct type for the function requested and use it to check if
1687 using the MIPS16 calling convention. Return the designated
1688 general purpose registers for floating-point values returned in
1689 MIPS16 mode.
1690 (mips_o64_return_value): Likewise.
1691 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
1692 (ppc_sysv_abi_broken_return_value): Likewise.
1693 (ppc64_sysv_abi_return_value): Likewise.
1694 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
1695 value instead of struct type for the function requested.
1696 * amd64-tdep.c (amd64_return_value): Likewise.
1697 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
1698 * arm-tdep.c (arm_return_value): Likewise.
1699 * avr-tdep.c (avr_return_value): Likewise.
1700 * bfin-tdep.c (bfin_return_value): Likewise.
1701 * cris-tdep.c (cris_return_value): Likewise.
1702 * frv-tdep.c (frv_return_value): Likewise.
1703 * h8300-tdep.c (h8300_return_value): Likewise.
1704 (h8300h_return_value): Likewise.
1705 * hppa-tdep.c (hppa32_return_value): Likewise.
1706 (hppa64_return_value): Likewise.
1707 * i386-tdep.c (i386_return_value): Likewise.
1708 * ia64-tdep.c (ia64_return_value): Likewise.
1709 * iq2000-tdep.c (iq2000_return_value): Likewise.
1710 * lm32-tdep.c (lm32_return_value): Likewise.
1711 * m32c-tdep.c (m32c_return_value): Likewise.
1712 * m32r-tdep.c (m32r_return_value): Likewise.
1713 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
1714 * m68k-tdep.c (m68k_return_value): Likewise.
1715 (m68k_svr4_return_value): Likewise.
1716 * m88k-tdep.c (m88k_return_value): Likewise.
1717 * mep-tdep.c (mep_return_value): Likewise.
1718 * microblaze-tdep.c (microblaze_return_value): Likewise.
1719 * mn10300-tdep.c (mn10300_return_value): Likewise.
1720 * moxie-tdep.c (moxie_return_value): Likewise.
1721 * mt-tdep.c (mt_return_value): Likewise.
1722 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
1723 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
1724 (ppc_sysv_abi_broken_return_value): Likewise.
1725 (ppc64_sysv_abi_return_value): Likewise.
1726 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
1727 * rl78-tdep.c (rl78_return_value): Likewise.
1728 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
1729 * rx-tdep.c (rx_return_value): Likewise.
1730 * s390-tdep.c (s390_return_value): Likewise.
1731 * score-tdep.c (score_return_value): Likewise.
1732 * sh-tdep.c (sh_return_value_nofpu): Likewise.
1733 (sh_return_value_fpu): Likewise.
1734 * sh64-tdep.c (sh64_return_value): Likewise.
1735 * sparc-tdep.c (sparc32_return_value): Likewise.
1736 * sparc64-tdep.c (sparc64_return_value): Likewise.
1737 * spu-tdep.c (spu_return_value): Likewise.
1738 * tic6x-tdep.c (tic6x_return_value): Likewise.
1739 * v850-tdep.c (v850_return_value): Likewise.
1740 * vax-tdep.c (vax_return_value): Likewise.
1741 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
1742 * xtensa-tdep.c (xtensa_return_value): Likewise.
1743 * gdbarch.c: Regenerate.
1744 * gdbarch.h: Regenerate.
1745
29ca12b3
TT
17462012-05-15 Tom Tromey <tromey@redhat.com>
1747
1748 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
1749
588ae58c
JB
17502012-05-15 Joel Brobecker <brobecker@adacore.com>
1751
1752 * breakpoint.c (init_breakpoint_sal): Add quotes around part
1753 of command in two error message.
1754
855a6e68
JB
17552012-05-15 Joel Brobecker <brobecker@adacore.com>
1756
1757 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
1758
d634f2de
JB
17592012-05-15 Joel Brobecker <brobecker@adacore.com>
1760
1761 * breakpoint.c (find_condition_and_thread): Minor reformatting.
1762
9cc815f5
JK
17632012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1764
1765 * NEWS (show auto-load scripts-directory): Add forgotten command.
1766
6a609e58
JK
17672012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
1768
1769 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
1770 parameters.
1771
ac1438b5
L
17722012-05-14 H.J. Lu <hongjiu.lu@intel.com>
1773
1774 * amd64-tdep.c: Include features/i386/x32.c and
1775 features/i386/x32-avx.c.
1776 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
1777 initialize_tdesc_x32_avx.
1778
e7e0cddf
SS
17792012-05-14 Stan Shebs <stan@codesourcery.com>
1780
1781 Add dynamic printf.
1782 * breakpoint.h (enum bptype): New type bp_dprintf.
1783 (struct breakpoint): New field extra_string.
1784 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
1785 (create_breakpoint): Add extra_string arg.
1786 * breakpoint.c (dprintf_breakpoint_ops): New.
1787 (is_breakpoint): Add bp_dprintf.
1788 (bpstat_what): Add dprintf case.
1789 (bptype_string): Ditto.
1790 (print_one_breakpoint_location): Ditto.
1791 (init_bp_location): Ditto.
1792 (bkpt_print_mention): Ditto.
1793 (dprintf_style_enums): New array.
1794 (dprintf_style): New global.
1795 (dprintf_function): New global.
1796 (dprintf_channel): New global.
1797 (update_dprintf_command_list): New function.
1798 (update_dprintf_commands): New function.
1799 (init_breakpoint_sal): Add extra_string argument, handle it.
1800 (create_breakpoint_sal): Add extra_string argument.
1801 (create_breakpoints_sal): Add extra_string argument, update callers.
1802 (find_condition_and_thread): Add extra argument.
1803 (create_breakpoint): Add extra_string argument, record it.
1804 (dprintf_command): New function.
1805 (break_command_1): Add arg to create_breakpoint call.
1806 (handle_gnu_v3_exceptions): Ditto.
1807 (trace_command): Ditto.
1808 (ftrace_command): Ditto.
1809 (strace_command): Ditto.
1810 (bkpt_print_mention): Add dprintf case.
1811 (create_breakpoint_sal_default): Add extra_string argument.
1812 (_initialize_breakpoint): Add new commands.
1813 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
1814 * python/py-breakpoint.c (bppy_init): Ditto.
1815 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
1816
8ae38c14
MR
18172012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
1818
1819 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
1820
9f676e66
SCR
18212012-05-14 Siva Chandra Reddy <sivachandra@google.com>
1822
1823 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
1824 unsigned long long.
1825
7efc75aa
SCR
18262012-05-13 Siva Chandra Reddy <sivachandra@google.com>
1827
1828 Add a new function gdb.find_pc_line to the Python API.
1829 * NEWS (Python Scripting): Add entry about the new function.
1830 * python/python.c (gdbpy_find_pc_line): New function which
1831 implements gdb.find_pc_line.
1832 (GdbMethods): Add entry for the new function.
1833
70af3797
PA
18342012-05-12 Pedro Alves <palves@redhat.com>
1835
1836 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
1837 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
1838
06da564e
EZ
18392012-05-12 Eli Zaretskii <eliz@gnu.org>
1840
1841 * inferior.c: Include completer.h
1842 (initialize_inferiors): Set completer of add-inferior to
1843 filename_completer.
1844
0288cee2
L
18452012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1846
1847 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
1848 gdbarch_ptr_bit for x32 core dump.
1849
f6537a2c
L
18502012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1851
1852 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
1853 and features/i386/x32-avx-linux.c.
1854
85d4a676
SS
18552012-05-11 Stan Shebs <stan@codesourcery.com>
1856 Kwok Cheung Yeung <kcy@codesourcery.com>
1857
1858 * NEWS: Describe new info os commands.
1859 * common/linux-osdata.c (PID_T, TIME_T): Define.
1860 (MAX_PID_T_STRLEN): New.
1861 (linux_common_core_of_thread): Add comment. Change to use PID_T and
1862 MAX_PID_T_STRLEN.
1863 (command_from_pid): Add comment. Change to use PID_T.
1864 (commandline_from_pid): Change to use PID_T.
1865 (user_from_pid): Add comment.
1866 (get_process_owner): Add comment. Change to use PID_T and
1867 MAX_PID_T_STRLEN.
1868 (get_number_of_cpu_cores): Add comment.
1869 (get_cores_used_by_process): Add comment. Change to use PID_T and
1870 MAX_PID_T_STRLEN.
1871 (linux_xfer_osdata_processes): Change to use PID_T and
1872 MAX_PID_T_STRLEN.
1873 (compare_processes): New function.
1874 (linux_xfer_osdata_processgroups): New function.
1875 (linux_xfer_osdata_threads): Change to use PID_T.
1876 (linux_xfer_osdata_fds): New function.
1877 (format_socket_state, print_sockets): New functions.
1878 (union socket_addr): New union.
1879 (linux_xfer_osdata_isockets): New function.
1880 (time_from_time_t, group_from_gid): New functions.
1881 (linux_xfer_osdata_shm): New function.
1882 (linux_xfer_osdata_sem): New function.
1883 (linux_xfer_osdata_msg): New function.
1884 (linux_xfer_osdata_modules): New function.
1885 (osdata_table): Add new entries.
1886 * common/buffer.c (buffer_xml_printf): Add support for long and
1887 long long format specifiers.
1888
f24afd6d
L
18892012-05-11 H.J. Lu <hongjiu.lu@intel.com>
1890
1891 * amd64-linux-tdep.h (tdesc_x32_linux): New.
1892 (tdesc_x32_avx_linux): Likewise.
1893
7349ff92
JK
18942012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1895
1896 Implement multi-component --with-auto-load-dir.
1897 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
1898 entries.
1899 (--with-auto-load-safe-path): Update the default value description.
1900 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
1901 New.
1902 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
1903 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
1904 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
1905 (_initialize_auto_load): Initialize also auto_load_dir. Install new
1906 "set auto-load scripts-directory".
1907 * config.in: Regenerate.
1908 * configure: Regenerate.
1909 * configure.ac (--with-auto-load-dir): New configure option.
1910 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
1911
6dea1fbd
JK
19122012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1913
1914 Provide $ddir substitution for --with-auto-load-safe-path.
1915 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
1916 entries.
1917 * auto-load.c: Include observer.h.
1918 (auto_load_safe_path_vec_update): Call substitute_path_component for
1919 each component. New variable ddir_subst.
1920 (auto_load_gdb_datadir_changed): New function.
1921 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1922 AUTO_LOAD_SAFE_PATH. New comment.
1923 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
1924 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
1925 * config.in: Regenerate.
1926 * configure: Regenerate.
1927 * configure.ac (--auto-load-safe-path): Rename
1928 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
1929 GDB_DATADIR/auto-load.
1930 * defs.h (substitute_path_component): New declaration.
1931 * top.c: Include observer.h.
1932 (set_gdb_datadir): New function.
1933 (init_main): Install it for "set data-directory".
1934 * utils.c (substitute_path_component): New function.
1935
b09aca3a
JK
19362012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1937
1938 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
1939 * auto-load.c (auto_load_objfile_script): Remove check for NULL
1940 DEBUG_FILE_DIRECTORY. Handle multiple components of
1941 DEBUG_FILE_DIRECTORY.
1942
95554aad
TT
19432012-05-10 Tom Tromey <tromey@redhat.com>
1944
1945 * dwarf2read.c (recursively_write_psymbols): New function.
1946 (write_psymtabs_to_index): Use it.
1947
1948 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
1949 field.
1950 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
1951 (load_partial_comp_unit): Update.
1952 (queue_comp_unit): Add argument 'pretend_language'.
1953 (process_queue): Update.
1954 (psymtab_to_symtab_1): Skip dependencies that have a user.
1955 (load_partial_comp_unit_reader): Give meaning to the 'data'
1956 argument.
1957 (load_full_comp_unit): Add 'pretend_language' argument.
1958 (process_full_comp_unit): Add 'pretend_language' argument. Set
1959 language on CU.
1960 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
1961 Update.
1962 (maybe_queue_comp_unit): Add 'pretend_language' argument.
1963 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
1964 Update.
1965 (prepare_one_comp_unit): Add 'pretend_language' argument.
1966
1967 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
1968 (struct dwarf2_per_objfile) <just_read_cus>: New field.
1969 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
1970 (dw2_do_instantiate_symtab): Check whether symtab was read in
1971 before queueing.
1972 (dw2_instantiate_symtab): Add assertion. Call
1973 process_cu_includes.
1974 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
1975 (partial_symtab_p): New typedef.
1976 (set_partial_user): New function.
1977 (dwarf2_build_psymtabs_hard): Use set_partial_user.
1978 (scan_partial_symbols): Add imported CU to imported_symtabs.
1979 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
1980 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
1981 (get_symtab, recursively_compute_inclusions)
1982 (compute_symtab_includes, process_cu_includes)
1983 (process_imported_unit_die): New functions.
1984 (process_die) <DW_TAG_imported_unit>: New case.
1985 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
1986
1987 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
1988 comment.
1989 (struct partial_die_info) <locdesc>: Remove.
1990 <d>: New field.
1991 (process_psymtab_comp_unit): Add 'read_partial' argument.
1992 Update.
1993 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
1994 (scan_partial_symbols): Handle DW_TAG_imported_unit.
1995 (add_partial_symbol): Update.
1996 (process_die): Handle DW_TAG_partial_unit.
1997 (read_file_scope): Update comment.
1998 (load_partial_dies): Handle DW_TAG_imported_unit.
1999 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
2000 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
2001
e871fbb9
TT
20022012-05-10 Tom Tromey <tromey@redhat.com>
2003
2004 * cc-with-dwz.sh: New file.
2005
b5b04b5b
TT
20062012-05-10 Tom Tromey <tromey@redhat.com>
2007
2008 * symtab.h (struct symtab) <includes, user>: New fields.
2009 * block.h (struct block_iterator) <d, idx, which>: New fields.
2010 * block.c (initialize_block_iterator, find_iterator_symtab)
2011 (block_iterator_step, block_iter_name_step)
2012 (block_iter_match_step): New functions.
2013 (block_iterator_first, block_iterator_next)
2014 (block_iter_name_first, block_iter_name_next)
2015 (block_iter_match_first, block_iter_match_next): Rewrite.
2016 (get_block_symtab): New function.
2017
84a146c9
TT
20182012-05-10 Tom Tromey <tromey@redhat.com>
2019
2020 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
2021 set_block_symtab.
2022 * jit.c (finalize_symtab): Use allocate_global_block,
2023 set_block_symtab.
2024 * buildsym.c (finish_block_internal): New function, from old
2025 finish_block.
2026 (finish_block): Rewrite.
2027 (end_symtab): Use finish_block_internal, set_block_symtab.
2028 * block.h (struct global_block): New.
2029 (allocate_global_block, set_block_symtab): Declare.
2030 * block.c (allocate_global_block, set_block_symtab): New
2031 functions.
2032
9439a077
TT
20332012-05-10 Tom Tromey <tromey@redhat.com>
2034
2035 * psymtab.c (partial_map_expand_apply): Add assertion.
2036 (partial_map_symtabs_matching_filename): Skip included psymtabs.
2037 (psymtab_to_symtab): Find unshared psymtab.
2038 (dump_psymtab): Print including psymtabs.
2039 (recursively_search_psymtabs): New function.
2040 (expand_symtabs_matching_via_partial): Use it.
2041 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
2042 fields.
2043 (enum psymtab_search_status): New.
2044
8157b174
TT
20452012-05-10 Tom Tromey <tromey@redhat.com>
2046
2047 * tracepoint.c (scope_info): Update.
2048 * symtab.c (lookup_block_symbol, iterate_over_symbols)
2049 (find_pc_sect_symtab, search_symbols)
2050 (default_make_symbol_completion_list_break_on)
2051 (make_file_symbol_completion_list): Update.
2052 * symmisc.c (dump_symtab_1): Update.
2053 * stack.c (print_frame_args, iterate_over_block_locals)
2054 (print_frame_labels, iterate_over_block_arg_vars): Update.
2055 * python/py-block.c (block_object) <dict>: Remove.
2056 <block>: New field.
2057 <iter>: Change type.
2058 (blpy_iter): Update.
2059 (blpy_block_syms_iternext): Update.
2060 * psymtab.c (map_block): Use block iterators.
2061 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
2062 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
2063 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
2064 * infrun.c (check_exception_resume): Update.
2065 * cp-support.c (make_symbol_overload_list_block): Update.
2066 * coffread.c (patch_opaque_types): Update.
2067 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
2068 * block.h (struct block_iterator): New.
2069 (block_iterator_first, block_iterator_next, block_iter_name_first)
2070 (block_iter_name_next, block_iter_match_first)
2071 (block_iter_match_next): Declare.
2072 (ALL_BLOCK_SYMBOLS): Redefine.
2073 * block.c (block_iterator_first, block_iterator_next)
2074 (block_iter_name_first, block_iter_name_next)
2075 (block_iter_match_first, block_iter_match_next): New functions.
2076 * ada-lang.c (ada_add_block_symbols)
2077 (ada_make_symbol_completion_list): Use block iterator.
2078
a2ca7a52
TT
20792012-05-10 Tom Tromey <tromey@redhat.com>
2080
2081 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
2082 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
2083 (lookup_partial_symbol, find_last_source_symtab_from_partial)
2084 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
2085 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
2086 Update.
2087
64ea88dc
JB
20882012-05-10 Joel Brobecker <brobecker@adacore.com>
2089
2090 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
2091 print-file-var-lib2.c, print-file-var-main.c and
2092 print-file-var.exp (located in gdb/testsuite/gdb.base).
2093
99a547d6
JB
20942012-05-10 Joel Brobecker <brobecker@adacore.com>
2095
2096 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
2097 try locating the symbol in the symbol's own objfile first, before
2098 extending the search to all objfiles.
2099 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
2100 out of lookup_symbol_aux_symtabs.
2101 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
2102 Replace extracted-out code by call to lookup_symbol_aux_objfile.
2103 Do not search EXCLUDE_OBJFILE.
2104 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
2105 (lookup_symbol_global): Search for matches in the block's objfile
2106 first, before searching all other objfiles.
2107
0ece64fd
TG
21082012-05-10 Tristan Gingold <gingold@adacore.com>
2109
2110 * printcmd.c (set_command): Add pre/post inc/dec.
2111
3d16a105
FCE
21122012-05-09 Frank Ch. Eigler <fche@redhat.com>
2113
2114 * gdb.1: Document -ex option.
2115
2efbc0f7
JB
21162012-05-09 Joel Brobecker <brobecker@adacore.com>
2117
2118 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
2119 * inferior.h (AT_SYMBOL): Delete.
2120
2c76a0c7
JB
21212012-05-09 Joel Brobecker <brobecker@adacore.com>
2122
2123 * mips-tdep.c (mips_push_dummy_code): New function.
2124 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
2125 ON_STACK and install mips_push_dummy_code as our gdbarch
2126 push_dummy_code routine.
2127
9401a810
PA
21282012-05-09 Pedro Alves <palves@redhat.com>
2129
2130 * target.c (set_maintenance_target_async_permitted): Rename to ...
2131 (set_target_async_command): ... this.
2132 (show_maintenance_target_async_permitted): Rename to ...
2133 (show_target_async_command): ... this.
2134 (initialize_targets): Adjust.
2135
3929b321
DE
21362012-05-08 Doug Evans <dje@google.com>
2137
2138 * go-exp.y (classify_name): Add missing assignment of fields of
2139 yylval.ssym.
2140
c41535fd
EZ
21412012-05-08 Eli Zaretskii <eliz@gnu.org>
2142
2143 Display the ">" prompt in interactive mode while reading canned
2144 commands, even when the current interpreter is MI.
2145
2146 * interps.c (interp_set_temp): New function.
2147
2148 * interps.h (interp_set_temp): Add prototype.
2149
2150 * cli/cli-script.c (restore_interp): New cleanup function.
2151 (read_command_lines): Temporarily override the current interpreter
2152 with CLI and arrange for restoring the original one.
2153
c0749c4d
JS
21542012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
2155
2156 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
2157
d7333987
SDJ
21582012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
2159
2160 * probe.c (parse_probes): Move conditional to check for
2161 debuginfo files from here...
2162 * stap-probe.c (stap_get_probes): ... to here.
2163
649e6d92
MK
21642012-05-07 Mark Kettenis <kettenis@gnu.org>
2165 H.J. Lu <hongjiu.lu@intel.com>
2166
2167 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
2168 `movl %esp, %ebp' for the X32 ABI.
2169
f39c6ffd
TT
21702012-05-07 Tom Tromey <tromey@redhat.com>
2171
2172 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
2173 get_DW_TAG_name.
2174 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
2175 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
2176 (dwarf_stack_op_name): Remove.
2177 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
2178 (decode_locdesc): Use get_DW_OP_name.
2179 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
2180 (dwarf2_compile_expr_to_ax): Likewise.
2181 (disassemble_dwarf_expression): Likewise.
2182 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
2183
1e1f6591
CLT
21842012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
2185
2186 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
2187 (sh_linux_sigtramp_cache): New function.
2188 (sh_linux_sigreturn_init): New function.
2189 (sh_linux_rt_sigreturn_init): New function.
2190 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
2191 patterns.
2192 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
2193 syscall codes.
2194 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
2195 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
2196 (sh_linux_init_abi): Add init calls to register new tramp_frame
2197 definitions under 32-bit SH, update comments.
2198
545c08b4
PA
21992012-05-07 Pedro Alves <palves@redhat.com>
2200
daac165e
PA
2201 PR gdb/10952
2202
545c08b4
PA
2203 * amd64-linux-tdep.c: Include glibc-tdep.h.
2204 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
2205 gdbarch_skip_solib_resolver callback.
2206
af2c1515
JK
22072012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2208
2209 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
2210 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
2211 (show_auto_load_safe_path): Check any-directory by comparison with "/".
2212 (add_auto_load_safe_path): Change the error message.
2213 (_initialize_auto_load): Change the "safe-path" help text.
2214 * configure: Regenerate
2215 * configure.ac (--without-auto-load-safe-path): Set
2216 WITH_AUTO_LOAD_SAFE_PATH to /.
2217
1067f998
SDJ
22182012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
2219
2220 * stap-probe.h: Do not include unecessary `probe.h'.
2221
45dfa85a
AM
22222012-05-05 Alan Modra <amodra@gmail.com>
2223
2224 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
2225 bfd_und_section_ptr.
2226 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
2227 and bfd_com_section_ptr.
2228
cf093994
JB
22292012-05-04 Joel Brobecker <brobecker@adacore.com>
2230
762ebb75 2231 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 2232
d40dc7a8
JB
22332012-05-04 Joel Brobecker <brobecker@adacore.com>
2234
2235 * windows-nat.h (segment_register_p_ftype): New typedef.
2236 (windows_set_segment_register_p): Add declaration.
2237 * windows-nat.c (segment_register_p): New static global.
2238 (windows_set_segment_register_p): New function.
2239 (do_windows_fetch_inferior_registers): Add special handling
2240 for segment registers.
2241 * amd64-windows-nat.c: #include "amd64-tdep.h".
2242 (amd64_windows_segment_register_p): New function.
2243 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
2244 * i386-windows-nat.c: #include "i386-tdep.h".
2245 (i386_windows_segment_register_p): New function.
2246 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
2247
52b3699b
TG
22482012-05-04 Tristan Gingold <gingold@adacore.com>
2249
2250 * printcmd.c (set_command): Emit a warning if the expression is not
2251 an assignment.
2252
94c74239
JB
22532012-05-03 Joel Brobecker <brobecker@adacore.com>
2254
2255 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
2256 Make static.
2257
fcf57f19
SDJ
22582012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
2259
2260 * stap-probe.c (stap_is_operator): Change declaration.
2261 (stap_get_opcode): Change return value.
2262 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
2263 `stap_parse_argument_1'.
2264
27d2932e
PA
22652012-05-03 Pedro Alves <pedro@codesourcery.com>
2266
2267 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
2268 debug log.
2269
a20ee7a4
SCR
22702012-05-03 Siva Chandra Reddy <sivachandra@google.com>
2271
2272 Add two new methods global_block and static_block to gdb.Symtab
2273 objects.
2274 * NEWS (Python scripting): Add entry about the new methods.
2275 * python/py-symtab.c (stpy_global_block): New function which
2276 implements the gdb.Symtab.global_block() method.
2277 (stpy_static_block): New function which implements the
2278 gdb.Symtab.static_block() method.
2279 (symtab_object_methods): Add entries for the two new methods.
2280
943cb756
DE
22812012-05-03 Doug Evans <dje@google.com>
2282
2283 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
2284 files.
2285
f4644a3f
YQ
22862012-05-03 Yao Qi <yao@codesourcery.com>
2287
2288 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
2289 space.
2290 (i386_process_record): Ditto.
2291
ef61f180
JB
22922012-05-02 Joel Brobecker <brobecker@adacore.com>
2293
2294 * infcall.c (unwind_on_signal_p): Make static.
2295
02f1df11
JB
22962012-05-02 Joel Brobecker <brobecker@adacore.com>
2297
2298 * sol-thread.c (solaris_pid_to_str): Make static.
2299 (_initialize_sol_thread): Add prototype.
2300
39023530
JB
23012012-05-02 Joel Brobecker <brobecker@adacore.com>
2302
2303 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
2304
c6b0c501
CF
23052012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
2306
2307 * MAINTAINERS: Remove myself.
2308
1ef71717
JK
23092012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2310
2311 Fix --without-auto-load-safe-path for MS-Windows host platform.
2312 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
2313
b31b86a7
EZ
23142012-05-02 Eli Zaretskii <eliz@gnu.org>
2315
2316 * gdb_curses.h: Undefine KEY_EVENT before including curses
2317 headers. Move "#undef MOUSE_MOVED" before any curses header
2318 inclusion.
2319
777532fc
SDJ
23202012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2321
2322 * features/i386/i386-mmx-linux.c: Regenerate.
2323 * features/rs6000/powerpc-32.c: Likewise.
2324 * features/rs6000/powerpc-32l.c: Likewise.
2325 * features/rs6000/powerpc-403.c: Likewise.
2326 * features/rs6000/powerpc-403gc.c: Likewise.
2327 * features/rs6000/powerpc-405.c: Likewise.
2328 * features/rs6000/powerpc-505.c: Likewise.
2329 * features/rs6000/powerpc-601.c: Likewise.
2330 * features/rs6000/powerpc-602.c: Likewise.
2331 * features/rs6000/powerpc-603.c: Likewise.
2332 * features/rs6000/powerpc-604.c: Likewise.
2333 * features/rs6000/powerpc-64.c: Likewise.
2334 * features/rs6000/powerpc-64l.c: Likewise.
2335 * features/rs6000/powerpc-750.c: Likewise.
2336 * features/rs6000/powerpc-860.c: Likewise.
2337 * features/rs6000/powerpc-e500.c: Likewise.
2338 * features/rs6000/powerpc-e500l.c: Likewise.
2339 * features/rs6000/powerpc-isa205-32l.c: Likewise.
2340 * features/rs6000/powerpc-isa205-64l.c: Likewise.
2341 * features/rs6000/rs6000.c: Likewise.
2342
d71871bc
SDJ
23432012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
2344
2345 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
2346 variable.
2347 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
2348 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
2349 (stap_parse_argument) <e>: Likewise.
2350 (handle_stap_probe) <byte_order>: Likewise.
2351
fd820528
DE
23522012-04-30 Doug Evans <dje@google.com>
2353
2354 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
2355 init_and_read_dies_worker. All callers updated.
2356 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
2357 replaced with init_cutu_and_read_dies.
2358 (load_partial_comp_unit): Pass 1 for use_existing_cu.
2359 (find_partial_die): Remove FIXME. Don't free current CU.
2360
ec3f619d 23612012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
2362
2363 * contrib: New directory.
2364 * contrib/test_pubnames_and_indexes.py: New file.
2365
fceca515
DE
23662012-04-30 Doug Evans <dje@google.com>
2367
2368 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
2369 All callers updated.
2370 (init_cu_die_reader): Verify the section is non-empty.
2371 (dwarf_decode_line_header): Don't dereference section->asection
2372 until we know the section is present.
2373
311fe7e1
SDJ
23742012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
2375
2376 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
2377 probes.
2378
5977971a
YQ
23792012-04-29 Yao Qi <yao@codesourcery.com>
2380
2381 * gdb-code-style.el: New hook gdb-markup-hook
2382 and gdb-comment-hook.
2383
dee91e82
DE
23842012-04-28 Doug Evans <dje@google.com>
2385
3019eac3
DE
2386 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
2387 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
2388 objfile->obfd.
2389 * symfile.h (dwarf2_debug_sections): New member addr.
2390 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
2391 (ctx_no_get_addr_index): New function.
2392 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
2393 (ctx_no_get_addr_index): Declare.
2394 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
2395 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
2396 (dwarf_expr_ctx_funcs): Update.
2397 (needs_get_addr_index): New function.
2398 (needs_frame_ctx_funcs): Update.
2399 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
2400 * dwarf2read.c: #include "gdbcore.h".
2401 (dwarf2_per_objfile): New members addr, dwo_files.
2402 (dwarf2_elf_names): Add entry for addr.
2403 (struct dwo_section_names): New type.
2404 (dwo_section_names): New static global.
2405 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
2406 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
2407 old debug_types_section member updated to use this.
2408 Rename member debug_types_section to info_or_types_section,
2409 all uses updated.
2410 (signatured_type): Rename member type_offset to type_offset_in_tu,
2411 all uses updated. New member type_offset_in_section.
2412 (struct dwo_sections): New type.
2413 (struct dwo_unit): New type.
2414 (struct dwo_file): New type.
2415 (die_reader_specs): New member dwo_file.
2416 (dwarf2_locate_sections): Watch for .debug_addr.
2417 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
2418 (dwarf2_read_section): Get bfd of section from bfd's asection,
2419 instead of objfile.
2420 (create_cus_from_index): Initialize the_cu->info_or_types_section.
2421 (create_signatured_type_table_from_index): Initialize
2422 sig_type->info_or_types_section.
2423 (dw2_get_file_names): Statement lists for type units with DWO files
2424 live in the DWO file.
2425 (create_debug_types_hash_table): New function.
2426 (create_all_type_units): Rewrite.
2427 (init_cu_die_reader): New arg dwo_file, all callers updated.
2428 (init_and_read_dies_worker): Get section from
2429 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
2430 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
2431 continue reading the CU/TU from there.
2432 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
2433 updated. Get section from this_cu->info_or_types_section.
2434 (create_all_comp_units): Initialize this_cu->info_or_types_section.
2435 (skip_one_die): New cases DW_FORM_GNU_addr_index,
2436 DW_FORM_GNU_str_index.
2437 (hash_dwo_file, eq_dwo_file): New functions.
2438 (allocate_dwo_file_hash_table): New function.
2439 (hash_dwo_unit, eq_dwo_unit): New functions.
2440 (allocate_dwo_unit_table): New function.
2441 (dwarf2_locate_dwo_sections): New function.
2442 (struct create_dwo_info_table_data): New type.
2443 (create_debug_info_hash_table_reader): New function.
2444 (create_debug_info_hash_table): New function.
2445 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
2446 (lookup_dwo_file): New function.
2447 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
2448 (free_dwo_file, free_dwo_file_cleanup): New functions.
2449 (free_dwo_file_from_slot, free_dwo_files): New functions.
2450 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
2451 (dwarf2_record_block_ranges): Ditto.
2452 (read_partial_die): Ditto.
2453 (process_enumeration_scope): Update to use type_offset_in_section.
2454 (read_full_die_1): New function.
2455 (read_full_die): Rewrite.
2456 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
2457 DW_FORM_GNU_str_index.
2458 (read_addr_index_1, read_addr_index): New functions.
2459 (read_addr_index_from_leb128): New function.
2460 (struct dwarf2_read_addr_index_data): New type.
2461 (dwarf2_read_addr_index_reader): New function.
2462 (dwarf2_read_addr_index): New function.
2463 (read_str_index): New function.
2464 (leb128_size): New function.
2465 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
2466 If processing a type unit from a DWO file, get the line section
2467 from the DWO file.
2468 (var_decode_location): Watch for DW_OP_GNU_addr_index.
2469 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
2470 DW_FORM_GNU_str_index.
2471 (lookup_die_type): Check whether section offset of type's die is
2472 known before looking it up. Remove assert. Condition can
2473 legimately happen for inter-cu type references.
2474 (dwarf_attr_name): Handle Fission attributes.
2475 (dwarf_form_name): Handle Fission forms.
2476 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
2477 DW_FORM_GNU_str_index.
2478 (follow_die_sig): Update to use type_offset_in_section.
2479 (decode_locdesc): New case DW_OP_GNU_addr_index.
2480 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
2481 DW_FORM_GNU_str_index.
2482 (cu_debug_loc_section): New function.
2483 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
2484 (dwarf2_per_objfile_free): Unmap .debug_addr section.
2485 Free DWO files if present.
2486 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
2487
dee91e82
DE
2488 Refactor DIE reading.
2489 * dwarf2read.c (dwarf2_per_objfile): Replace members
2490 debug_info_type_hash and debug_types_type_hash with die_type_hash.
2491 (die_reader_specs): New member "die_section". Temporarily make
2492 member "buffer" non-const, pending constifying all info_ptr uses.
2493 (die_reader_func_ftype): New typedef.
2494 (dw2_get_file_names_reader): New function.
2495 (dw2_get_file_names): Rewrite.
2496 (read_and_check_type_unit_head): Rename arg type_offset to
2497 type_offset_in_tu.
2498 (create_all_type_units): Improve debugging message.
2499 Improve dummy type unit check.
2500 (init_cu_die_reader): New arg "section". All callers updated.
2501 (init_and_read_dies_worker): New function.
2502 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
2503 (init_cutu_and_read_dies_no_follow): New function.
2504 (init_cutu_and_read_dies_simple): New function.
2505 (process_psymtab_comp_unit_reader): New function.
2506 (process_psymtab_comp_unit): Delete args section,
2507 is_debug_types_section. Rewrite. All callers updated.
2508 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
2509 All callers updated. Rewrite.
2510 (load_partial_comp_unit_reader): New function.
2511 (load_partial_comp_unit): Rewrite.
2512 (skip_children): New arg reader. Delete args buffer, cu.
2513 All callers updated.
2514 (skip_one_die): New arg reader. Delete args buffer, cu.
2515 All callers updated.
2516 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
2517 All callers updated.
2518 (load_full_comp_unit_reader): New function.
2519 (load_full_comp_unit): Rewrite.
2520 (read_comp_unit): Delete.
2521 (read_die_and_children_1): Delete, contents moved ...
2522 (read_die_and_children): ... here.
2523 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
2524 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
2525 All callers updated.
2526 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
2527 All callers updated.
2528 (find_partial_die): Rewrite load_all_dies support.
2529 (read_attribute_value): New arg reader. Delete args abfd, cu.
2530 All callers updated.
2531 (read_attribute): New arg reader. Delete args abfd, cu.
2532 All callers updated.
2533 (load_full_type_unit): Add assert.
2534 (read_signatured_type_reader): New function.
2535 (read_signatured_type): Rewrite.
2536 (free_stack_comp_unit): Remove call to age_cached_comp_units.
2537 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
2538 All callers updated. Set per_cu->cu = NULL after freeing it.
2539 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
2540 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
2541 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
2542 (set_die_type): Update.
2543 (get_die_type_at_offset): Update.
2544 (read_file_scope): Call prepare_one_comp_unit.
2545 (read_type_unit_scope): Ditto.
2546 (prepare_one_comp_unit): Set producer if present.
2547
72d59e0d
SDJ
25482012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
2549
2550 * probe.c (compile_rx_or_error): Silence ARI warning about missing
2551 gettext function on `error'.
2552
0fefef59
DE
25532012-04-27 Doug Evans <dje@google.com>
2554
2555 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
2556 is empty.
2557
28106bc2
SDJ
25582012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2559 Tom Tromey <tromey@redhat.com>
2560
2561 * breakpoint.c (struct breakpoint_objfile_data)
2562 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
2563 <exception_probes>: New fields.
2564 (free_breakpoint_probes): New function.
2565 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
2566 `_Unwind_DebugHook'.
2567 (create_exception_master_breakpoint): Likewise.
2568 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
2569 * infrun.c: Including necessary header files for handling SystemTap
2570 probes.
2571 (handle_inferior_event): Handling longjmp breakpoint and exceptions
2572 via SystemTap probes.
2573 (check_exception_resume): Remove `func' argument. Handle exception
2574 unwinding breakpoint set via a SystemTap probe.
2575 (insert_exception_resume_from_probe): New function.
2576
55aa24fb
SDJ
25772012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2578 Tom Tromey <tromey@redhat.com>
2579 Jan Kratochvil <jan.kratochvil@redhat.com>
2580
2581 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
2582 (COMMON_OBS): Likewise.
2583 (HFILES_NO_SRCDIR): Add `probe'.
2584 * NEWS: Mention support for static and SystemTap probes.
2585 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
2586 SystemTap probes' arguments parser.
2587 * arm-linux-tdep.c: Including headers needed to perform the parsing
2588 of SystemTap probes' arguments.
2589 (arm_stap_is_single_operand): New function.
2590 (arm_stap_parse_special_token): Likewise.
2591 (arm_linux_init_abi): Initializing proper fields used by SystemTap
2592 probes' arguments parser.
2593 * ax-gdb.c (require_rvalue): Removing static declaration.
2594 (gen_expr): Likewise.
2595 * ax-gdb.h (gen_expr): Declaring function.
2596 (require_rvalue): Likewise.
2597 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
2598 (bkpt_probe_breakpoint_ops): New variable.
2599 (momentary_breakpoint_from_master): Set the `probe' value.
2600 (add_location_to_breakpoint): Likewise.
2601 (break_command_1): Using proper breakpoint_ops according to the
2602 argument passed by the user in the command line.
2603 (bkpt_probe_insert_location): New function.
2604 (bkpt_probe_remove_location): Likewise.
2605 (bkpt_probe_create_sals_from_address): Likewise.
2606 (bkpt_probe_decode_linespec): Likewise.
2607 (tracepoint_probe_create_sals_from_address): Likewise.
2608 (tracepoint_probe_decode_linespec): Likewise.
2609 (tracepoint_probe_breakpoint_ops): New variable.
2610 (trace_command): Using proper breakpoint_ops according to the
2611 argument passed by the user in the command line.
2612 (initialize_breakpoint_ops): Initializing breakpoint_ops for
2613 static probes on breakpoints and tracepoints.
2614 * breakpoint.h (struct bp_location) <probe>: New field.
2615 * cli-utils.c (skip_spaces_const): New function.
2616 (extract_arg): Likewise.
2617 * cli-utils.h (skip_spaces_const): Likewise.
2618 (extract_arg): Likewise.
2619 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
2620 * configure.ac: Append `stap-probe.o' to be generated when ELF
2621 support is present.
2622 * configure: Regenerate.
2623 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
2624 * elfread.c: Include `probe.h' and `arch-utils.h'.
2625 (probe_key): New variable.
2626 (elf_get_probes): New function.
2627 (elf_get_probe_argument_count): Likewise.
2628 (elf_evaluate_probe_argument): Likewise.
2629 (elf_compile_to_ax): Likewise.
2630 (elf_symfile_relocate_probe): Likewise.
2631 (stap_probe_key_free): Likewise.
2632 (elf_probe_fns): New variable.
2633 (elf_sym_fns): Add `sym_probe_fns' value.
2634 (elf_sym_fns_lazy_psyms): Likewise.
2635 (elf_sym_fns_gdb_index): Likewise.
2636 (_initialize_elfread): Initialize objfile cache for static
2637 probes.
2638 * gdb_vecs.h (struct probe): New forward declaration.
2639 (probe_p): New VEC declaration.
2640 * gdbarch.c: Regenerate.
2641 * gdbarch.h: Regenerate.
2642 * gdbarch.sh (stap_integer_prefix): New variable.
2643 (stap_integer_suffix): Likewise.
2644 (stap_register_prefix): Likewise.
2645 (stap_register_suffix): Likewise.
2646 (stap_register_indirection_prefix): Likewise.
2647 (stap_register_indirection_suffix): Likewise.
2648 (stap_gdb_register_prefix): Likewise.
2649 (stap_gdb_register_suffix): Likewise.
2650 (stap_is_single_operand): New function.
2651 (stap_parse_special_token): Likewise.
2652 (struct stap_parse_info): Forward declaration.
2653 * i386-tdep.c: Including headers needed to perform the parsing
2654 of SystemTap probes' arguments.
2655 (i386_stap_is_single_operand): New function.
2656 (i386_stap_parse_special_token): Likewise.
2657 (i386_elf_init_abi): Initializing proper fields used by SystemTap
2658 probes' arguments parser.
2659 * i386-tdep.h (i386_stap_is_single_operand): New function.
2660 (i386_stap_parse_special_token): Likewise.
2661 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
2662 * mipsread.c (ecoff_sym_fns): Likewise.
2663 * objfiles.c (objfile_relocate1): Support relocation for static
2664 probes.
2665 * parse.c (prefixify_expression): Remove static declaration.
2666 (initialize_expout): Likewise.
2667 (reallocate_expout): Likewise.
2668 * parser-defs.h (initialize_expout): Declare function.
2669 (reallocate_expout): Likewise.
2670 (prefixify_expression): Likewise.
2671 * ppc-linux-tdep.c: Including headers needed to perform the parsing
2672 of SystemTap probes' arguments.
2673 (ppc_stap_is_single_operand): New function.
2674 (ppc_stap_parse_special_token): Likewise.
2675 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
2676 probes' arguments parser.
2677 * probe.c: New file, for generic statically defined probe support.
2678 * probe.h: Likewise.
2679 * s390-tdep.c: Including headers needed to perform the parsing of
2680 SystemTap probes' arguments.
2681 (s390_stap_is_single_operand): New function.
2682 (s390_gdbarch_init): Initializing proper fields used by SystemTap
2683 probes' arguments parser.
2684 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
2685 * stap-probe.c: New file, for SystemTap probe support.
2686 * stap-probe.h: Likewise.
2687 * symfile.h: Include `gdb_vecs.h'.
2688 (struct sym_probe_fns): New struct.
2689 (struct sym_fns) <sym_probe_fns>: New field.
2690 * symtab.c (init_sal): Initialize `probe' field.
2691 * symtab.h (struct probe): Forward declaration.
2692 (struct symtab_and_line) <probe>: New field.
2693 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
2694 locations.
2695 (stop_tracing): Likewise.
2696 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
2697
22d2b532
SDJ
26982012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
2699 Tom Tromey <tromey@redhat.com>
2700
2701 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
2702 and to compile agent expressions.
2703 * infrun.c (siginfo_make_value): New argument `ignore'.
2704 (siginfo_funcs): New struct.
2705 (_initialize_infrun): New argument when calling
2706 `create_internalvar_type_lazy'.
2707 * thread.c (thread_id_make_value): New argument `ignore'.
2708 (thread_funcs): New struct.
2709 (_initialize_thread): New argument when calling
2710 `create_internalvar_type_lazy'.
2711 * tracepoint.c (sdata_make_value): New argument `ignore'.
2712 (sdata_funcs): New struct.
2713 (_initialize_tracepoint): New argument when calling
2714 `create_internalvar_type_lazy'.
2715 * value.c (make_value): New struct.
2716 (create_internalvar_type_lazy): New argument `data'.
2717 (compile_internalvar_to_ax): New function.
2718 (value_of_internalvar): Properly handling `make_value' case.
2719 (clear_internalvar): Likewise.
2720 (show_convenience): Adding `TRY_CATCH' block.
2721 * value.h (internalvar_make_value): Delete, replace by...
2722 (struct internalvar_funcs): ... this.
2723 (create_internalvar_type_lazy) <fun>: Delete argument.
2724 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
2725 (compile_internalvar_to_ax): New function.
2726 * windows-tdep.c (tlb_make_value): New argument `ignore'.
2727 (tlb_funcs): New struct.
2728 (_initialize_windows_tdep): New argument when calling
2729 `create_internalvar_type_lazy'.
2730
91da1414
MW
27312012-04-27 Mark Wielaard <mjw@redhat.com>
2732
2733 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
2734 see whether it is an address or a constant offset from DW_AT_low_pc.
2735 (dwarf2_record_block_ranges): Likewise.
2736 (read_partial_die): Likewise.
2737
4ab9d8ec
MW
27382012-04-26 Mark Wielaard <mjw@redhat.com>
2739
2740 * MAINTAINERS (Write After Approval): Add myself to the list.
2741
a0911fd0
MR
27422012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2743
2744 * proc-utils.h (proc_prettyprint_signalset): New prototype.
2745 (proc_prettyprint_signal): Likewise.
2746 (proc_prettyprint_faultset): Likewise.
2747 (proc_prettyprint_fault): Likewise.
2748 (proc_prettyprint_actionset): Likewise.
2749 (proc_prettyprint_flags): Move to new proc-flags.c section.
2750 (proc_prettyfprint_flags): New prototype.
2751 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
2752 (proc_syscall, proc_cursig): Likewise.
2753 (proc_set_kill_on_last_close): Likewise.
2754 (proc_unset_kill_on_last_close): Likewise.
2755 (proc_set_watchpoint): Make static.
2756 (proc_delete_dead_threads): Likewise.
2757 (procfs_set_watchpoint): Likewise.
2758 (_initialize_procfs): Add prototype.
2759 * proc-events.c: Include proc-utils.h.
2760 (init_syscall_table): Make static.
2761 * proc-api.c (_initialize_proc_api): Add prototype.
2762 * proc-flags.c: Include proc-utils.h.
2763
9009e1ae
MR
27642012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
2765
2766 * configure.ac: Add AC_ARG_PROGRAM.
2767 * configure: Regenerate.
2768
4fae6e18
JK
27692012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
2770
2771 Fix DW_AT_lower_bound defaults for DWARF-4+.
2772 * dwarf2read.c (read_subrange_type): Remove initialization of low and
2773 high. New variable low_default_is_valid. Implement DWARF-4+
2774 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
2775 no default by the DWARF standard.
2776
14132e89
MR
27772012-04-26 Maciej W. Rozycki <macro@mips.com>
2778 Maciej W. Rozycki <macro@codesourcery.com>
2779
2780 * infrun.c (handle_inferior_event): Move the check for return
2781 trampolines ahead of the check for function trampolines.
2782 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
2783 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
2784 (mips_str_mips16_ret_stub): Likewise.
2785 (mips_str_call_fp_stub): Likewise.
2786 (mips_str_call_stub): Likewise.
2787 (mips_str_fn_stub): Likewise.
2788 (mips_str_pic): Likewise.
2789 (mips_in_frame_stub): New function.
2790 (mips_unwind_pc): Return the return address rather than the PC
2791 if the PC of an intermediate frame is inside a call thunk.
2792 (mips_is_stub_suffix): New function.
2793 (mips_is_stub_mode): Likewise.
2794 (mips_get_mips16_fn_stub_pc): Likewise.
2795 (mips_skip_mips16_trampoline_code): Update to handle all the
2796 currently generated stub types. Don't recurse into __fn_stub
2797 thunks. Remove heuristics to handle stubs beyond etext/_etext.
2798 Use cooked register accesses.
2799 (mips_in_return_stub): Reintroduce function.
2800 (mips_skip_trampoline_code): Traverse trampolines recursively.
2801 (mips_gdbarch_init): Handle MIPS16 return trampolines.
2802
518f0db5 28032012-04-26 Joel Brobecker <brobecker@adacore.com>
2804
2805 GDB 7.4.1 released.
2806
3184d3f9
JL
28072012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
2808
2809 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
2810 * features/arm-with-m-vfp-d16.xml: New file. Describes
2811 Cortex-M with VFPv4-sp-d16 FPU register layout.
2812 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
2813 * features/arm-with-m-vfp-d16.c: New. Generated from above.
2814 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
2815 (arm-register_g_packet_guesses): Add vfp-d16 guess.
2816 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
2817
b6201d44
DE
28182012-04-25 Doug Evans <dje@google.com>
2819
2820 * cli/cli-decode.c (print_doc_line): Use stream instead of
2821 current_uiout.
2822
4e2f8df6
SDJ
28232012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
2824
2825 * features/arm-with-iwmmxt.c: Regenerate.
2826 * features/arm-with-m-fpa-layout.c: Likewise.
2827 * features/arm-with-m.c: Likewise.
2828 * features/arm-with-neon.c: Likewise.
2829 * features/arm-with-vfpv2.c: Likewise.
2830 * features/arm-with-vfpv3.c: Likewise.
2831 * features/mips-dsp-linux.c: Likewise.
2832 * features/mips-linux.c: Likewise.
2833 * features/mips64-dsp-linux.c: Likewise.
2834 * features/mips64-linux.c: Likewise.
2835 * features/s390-linux32.c: Likewise.
2836 * features/s390-linux32v1.c: Likewise.
2837 * features/s390-linux32v2.c: Likewise.
2838 * features/s390-linux64.c: Likewise.
2839 * features/s390-linux64v1.c: Likewise.
2840 * features/s390-linux64v2.c: Likewise.
2841 * features/s390x-linux64.c: Likewise.
2842 * features/s390x-linux64v1.c: Likewise.
2843 * features/s390x-linux64v2.c: Likewise.
2844 * features/tic6x-c62x-linux.c: Likewise.
2845 * features/tic6x-c62x.c: Likewise.
2846 * features/tic6x-c64x-linux.c: Likewise.
2847 * features/tic6x-c64x.c: Likewise.
2848 * features/tic6x-c64xp-linux.c: Likewise.
2849 * features/tic6x-c64xp.c: Likewise.
2850 * target-descriptions.c: Only generate `field_type' and `type'
2851 variables when needed.
2852
2def3e66
JB
28532012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
2854
2855 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
2856
a766d390
DE
28572012-04-25 Doug Evans <dje@google.com>
2858
2859 Initial pass at Go language support.
2860 * NEWS: Mention Go.
2861 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
2862 go-valprint.c.
2863 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
2864 (YYFILES): Add go-exp.c.
2865 (YYOBJ): Add go-exp.o.
2866 (local-maintainer-clean): Delete go-exp.c.
2867 * defs.h (enum language): Add language_go.
2868 * dwarf2read.c: #include "go-lang.h".
2869 (fixup_go_packaging): New function.
2870 (process_full_comp_unit): Call it when processing Go CUs.
2871 (dwarf2_physname): Add Go support.
2872 (read_file_scope): Handle missing language spec for GNU Go.
2873 (set_cu_language): Handle DW_LANG_Go.
2874 * go-exp.y: New file.
2875 * go-lang.h: New file.
2876 * go-lang.c: New file.
2877 * go-typeprint.c: New file.
2878 * go-valprint.c: New file.
2879 * symtab.c: #include "go-lang.h".
2880 (symbol_set_language): Handle language_go.
2881 (symbol_find_demangled_name, symbol_set_names): Ditto.
2882 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
2883
4e2af517
JM
28842012-04-24 Jim Meyering <meyering@redhat.com>
2885
2886 avoid a few strncpy-induced buffer overruns
2887 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
2888 fname and psargs before trying to concatenate.
2889 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
2890 "name" before applying strchr.
2891
b77b7f52
SCR
28922012-04-25 Siva Chandra Reddy <sivachandra@google.com>
2893
2894 * CONTRIBUTE: Use unified diff instead of context diff when
2895 generating patches.
2896
6321c22a
MR
28972012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2898
2899 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
2900 code. Handle JR.HB correctly.
2901
742c84f6
MR
29022012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
2903
2904 * mips-tdep.c
2905 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
2906 with the other MIPS16 helpers.
2907
7fc7e0c3
SDJ
29082012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
2909
2910 * observer.sh: Conditionally declare `args', thus cleaning up
2911 unused instances of this variable.
2912
20388dd6
YQ
29132012-04-24 Yao Qi <yao@codesourcery.com>
2914
2915 Revert this patch to allow breakpoint always-inserted
2916 in record target.
2917 2011-12-05 Pedro Alves <pedro@codesourcery.com>
2918 * breakpoint.c: Include record.h.
2919 (breakpoints_always_inserted_mode): Return false when the record
2920 target is in use.
2921
2922 * breakpoint.c (iterate_over_bp_locations): New.
2923 * breakpoint.h: Declare.
2924 New typedef walk_bp_location_callback.
2925 * record.c (record_open): Call record_init_record_breakpoints.
2926 (record_sync_record_breakpoints): New.
2927 (record_init_record_breakpoints): New.
2928 * NEWS: Mention supporting breakpoint always-inserted mode in
2929 record target.
2930
4734f50e
MK
29312012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
2932
2933 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
2934 any thread.
2935
c326b90e
YQ
29362012-04-24 Yao Qi <yao@codesourcery.com>
2937
2938 * breakpoint.c (ep_is_catchpoint): Renamed to ...
2939 (is_catchpoint): ... it.
2940 (print_one_breakpoint_location): Caller update.
2941 * breakpoint.h: Update declaration.
2942
d8fb5a1e
DM
29432012-04-23 David S. Miller <davem@davemloft.net>
2944
2945 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
2946
34431a2a
TT
29472012-04-23 Tom Tromey <tromey@redhat.com>
2948
2949 * buildsym.c (add_free_pendings): Remove.
2950 * buildsym.h (add_free_pendings): Remove.
2951
4568ecf9
DE
29522012-04-23 Doug Evans <dje@google.com>
2953
2954 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
2955 attr.u.unsnd instead of attr.u.addr.
2956 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
2957 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
2958 DW_FORM_ref_udata.
2959 (dump_die_shallow): Update cases DW_FORM_ref_addr,
2960 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
2961 DW_FORM_ref_udata.
2962 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
2963
dca9aa3a
MR
29642012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
2965
2966 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
2967 (mips_o32_return_value): Likewise.
2968 (mips_o64_return_value): Likewise.
2969
c8ea1972
PH
29702012-04-21 Paul Hilfinger <hilfinger@adacore.com>
2971
2972 * ada-lang.c (ada_evaluate_subexp): Add cases for
2973 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
2974 their treatment in eval.c.
2975
8d1b3521
DM
29762012-04-21 David S. Miller <davem@davemloft.net>
2977
2978 * sparc-tdep.c (X_DISP10): Define.
2979 (sparc_analyze_control_transfer): Handle compare-and-branch.
2980
03145bf4
JL
29812012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
2982
2983 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
2984 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
2985
004159a2
MR
29862012-04-20 Nigel Stephens <nigel@mips.com>
2987 Maciej W. Rozycki <macro@codesourcery.com>
2988
2989 * mips-tdep.c (mips_float_register_p): New function.
2990 (mips_convert_register_float_case_p): Use mips_float_register_p.
2991 (mips_register_type): Likewise.
2992 (mips_print_register): Likewise.
2993 (print_gp_register_row): Likewise.
2994 (mips_print_registers_info): Likewise.
2995
7f0e6aae
MR
29962012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
2997
2998 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
2999 of mips16 symbols.
3000
bc17beea
AP
30012012-04-20 Andrew Pinski <apinski@cavium.com>
3002
3003 * MAINTAINERS (Write After Approval): Add myself to the list.
3004
1730a5a5
SDJ
30052012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
3006
3007 * MAINTAINERS: Update my e-mail address.
3008
38ea300a
PA
30092012-04-20 Pedro Alves <palves@redhat.com>
3010
3011 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
3012 $srcdir.
3013 * configure: Regenerate.
3014
111dfaae
SDJ
30152012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
3016
3017 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
3018 declaration.
3019 * gdb_vecs.h: Declare `const_char_ptr' VEC.
3020
4fb2c64a
JK
30212012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3022
3023 Fix compilation compatibility with python-2.4
3024 * python/py-type.c (convert_field): Cast ADDRSTRING for
3025 PyObject_SetAttrString as non-const. New comment.
3026
6328eb38
TT
30272012-04-19 Tom Tromey <tromey@redhat.com>
3028
3029 * top.c (quit_target): Use all_cleanups.
3030 * main.c (captured_command_loop): Use all_cleanups.
3031 * exceptions.c (throw_exception): Use all_cleanups.
3032
c971b7fa
PA
30332012-04-19 Pedro Alves <palves@redhat.com>
3034
3035 * Makefile.in (GNULIB_BUILDDIR): New.
3036 (LIBGNU, INCGNU, GNULIB_H): Adjust.
3037 (SUBDIRS): Add $(GNULIB_BUILDDIR).
3038 (CLEANDIRS). Remove gnulib/import.
3039 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
3040 (all-lib): Ditto.
3041 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
3042 (gnulib/import/Makefile): Replace gnulib/import with
3043 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
3044 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
3045 (aclocal_m4_deps): Remove the gnulib dependencies. Add
3046 acx_configure_dir.m4.
3047 * acinclude.m4: Include acx_configure_dir.m4.
3048 * acx_configure_dir.m4: New file.
3049 * aclocal.m4: Regenerate.
a09130f9
PA
3050 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
3051 calls. Configure gnulib using ACX_CONFIGURE_DIR.
3052 (GNULIB): New variable.
3053 (GNULIB_STDINT_H): Adjust.
3054 (AC_OUTPUT): Don't output gnulib/Makefile.
3055 * gdb/defs.h: Include build-gnulib/config.h.
3056 * aclocal.m4: Regenerate.
3057 * config.in: Regenerate.
3058 * configure: Regenerate.
3059
3060 * gnulib/Makefile.in: New file.
3061 * gnulib/configure.ac: New file.
3062 * gnulib/aclocal.m4: New file.
3063 * gnulib/config.in: New file.
3064 * gnulib/configure: New file.
c971b7fa
PA
3065 * gnulib/: Re-run gnulib-tool to adjust.
3066
b10faa68
DE
30672012-04-19 Doug Evans <dje@google.com>
3068
3069 * cleanups.h (struct cleanup): Move to cleanups.c.
3070 (make_cleanup_dtor_ftype): New typedef.
3071 (make_cleanup_dtor): Use it.
3072 (ALL_CLEANUPS): Replace with ...
3073 (all_cleanups): ... this. Declare. All uses updated.
3074 * cleanups.c: #include "gdb_assert.h".
3075 (sentinel_cleanup): New static global.
3076 (SENTINEL_CLEANUP): Define.
3077 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
3078 (make_my_cleanup2): Assert result is non-NULL.
3079 (all_cleanups): New function.
3080 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
3081 of NULL.
3082
d8c267cc
PA
30832012-04-19 Pedro Alves <palves@redhat.com>
3084
3085 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
3086 Adjust paths to gnulib imported files.
3087
809277f8
PA
30882012-04-19 Pedro Alves <palves@redhat.com>
3089
3090 * gnulib/: Move whole directory ...
3091 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
3092 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
3093 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
3094 (aclocal_m4_deps): Adjust.
3095 * aclocal.m4: Regenerate.
3096 * configure: Regenerate.
3097 * configure.ac: Adjust AC_OUTPUT output.
3098
aad9eab9
YQ
30992012-04-19 Yao Qi <yao@codesourcery.com>
3100
3101 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
3102 (vec.o): New rule.
3103 * vec.c: Move it ...
3104 * common/vec.c: ... here.
3105 * vec.h: Move it ...
3106 * common/vec.h: ... here.
3107
48fe4669
YQ
31082012-04-19 Yao Qi <yao@codesourcery.com>
3109
3110 * gdb-code-style.el: New.
3111
770d76d7
PA
31122012-04-18 Pedro Alves <palves@redhat.com>
3113
3114 Update gnulib from latest git.
3115 (639ea5ae15e39fe48d43e04864b2997301e4b969)
3116
3117 * gnulib/Makefile.am: Update.
3118 * gnulib/dummy.c: Update.
3119 * gnulib/extra/arg-nonnull.h: Update.
3120 * gnulib/extra/c++defs.h: Update.
3121 * gnulib/extra/update-copyright: Update.
3122 * gnulib/extra/warn-on-use.h: Update.
3123 * gnulib/inttypes.in.h: Update.
3124 * gnulib/m4/00gnulib.m4: Update.
3125 * gnulib/m4/extensions.m4: Update.
3126 * gnulib/m4/gnulib-cache.m4: Update.
3127 * gnulib/m4/gnulib-common.m4: Update.
3128 * gnulib/m4/gnulib-comp.m4: Update.
3129 * gnulib/m4/gnulib-tool.m4: Update.
3130 * gnulib/m4/include_next.m4: Update.
3131 * gnulib/m4/inttypes-pri.m4: Update.
3132 * gnulib/m4/inttypes.m4: Update.
3133 * gnulib/m4/longlong.m4: Update.
3134 * gnulib/m4/memchr.m4: Update.
3135 * gnulib/m4/memmem.m4: Update.
3136 * gnulib/m4/mmap-anon.m4: Update.
3137 * gnulib/m4/multiarch.m4: Update.
3138 * gnulib/m4/onceonly.m4: Update.
3139 * gnulib/m4/stddef_h.m4: Update.
3140 * gnulib/m4/stdint.m4: Update.
3141 * gnulib/m4/string_h.m4: Update.
3142 * gnulib/m4/warn-on-use.m4: Update.
3143 * gnulib/m4/wchar_h.m4: Update.
3144 * gnulib/m4/wchar_t.m4: Update.
3145 * gnulib/m4/wint_t.m4: Update.
3146 * gnulib/memchr.c: Update.
3147 * gnulib/memmem.c: Update.
3148 * gnulib/stddef.in.h: Update.
3149 * gnulib/stdint.in.h: Update.
3150 * gnulib/str-two-way.h: Update.
3151 * gnulib/string.in.h: Update.
3152 * gnulib/wchar.in.h: Update.
3153
3154 * gnulib/extra/arg-nonnull.h: Delete.
3155 * gnulib/extra/c++defs.h: Delete.
3156 * gnulib/extra/warn-on-use.h: Delete.
3157 * gnulib/m4/wchar_h.m4: Delete.
3158 * gnulib/m4/wint_t.m4: Delete.
3159 * gnulib/wchar.in.h: Delete.
3160
3161 * gnulib/extra/snippets/arg-nonnull.h: New.
3162 * gnulib/extra/snippets/c++defs.h: New.
3163 * gnulib/extra/snippets/warn-on-use.h: New.
3164
3165 * aclocal.m4: Regenerate.
3166 * config.in: Regenerate.
3167 * configure: Regenerate.
3168 * gnulib/Makefile.in: Regenerate.
3169
174e088e
PA
31702012-04-18 Pedro Alves <palves@redhat.com>
3171
3172 Reimport the update-copyright module from gnulib
3173 (250b80067c1e1d8faa0c42fb572f721975b929c5).
3174
3175 * configure: Regenerate.
3176 * gnulib/Makefile.am: Update.
3177 * gnulib/Makefile.in: Regenerate.
3178 * gnulib/extra/update-copyright: Update.
3179 * gnulib/m4/gnulib-cache.m4: Update.
3180 * gnulib/m4/gnulib-comp.m4: Update.
3181
7f533142
JB
31822012-04-18 Tristan Gingold <gingold@adacore.com>
3183
3184 * configure.ac (aix): Put -lpthread into libs.
3185 * configure: Regenerate.
3186
001822aa
TT
31872012-04-18 Tom Tromey <tromey@redhat.com>
3188
3189 * linespec.c (convert_linespec_to_sals): Don't use
3190 SYMBOL_OBJ_SECTION.
3191 (compare_msymbols): Arguments are minsym_and_objfile, not
3192 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
3193
db026a31
PA
31942012-04-18 Pedro Alves <palves@redhat.com>
3195
3196 Revert gnulib/ part of:
3197 2011-01-01 Joel Brobecker <brobecker@adacore.com>
3198 Copyright year update in most files (performed by copyright.sh).
3199
12df843f
JK
32002012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3201
3202 Fix 64-bit constants on 32-bit hosts.
3203 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
3204 from unsigned long to ULONGEST.
3205 (read_signed_leb128): Change declaration return type from long to
3206 LONGEST.
3207 (dwarf2_const_value_attr): Change declaration parameter value from long
3208 to LONGEST.
3209 (dwarf2_compute_name): Change variable value from long to LONGEST.
3210 (read_unsigned_leb128): Change return type, variable result and some
3211 casts from unsigned long to ULONGEST.
3212 (read_signed_leb128): Change return type, variable result and some
3213 casts from long to LONGEST.
3214 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
3215 value from long to LONGEST.
3216 (dwarf2_const_value): Change variable value from long to LONGEST.
3217 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
3218 plongest and hex_string.
3219 * symtab.h (struct general_symbol_info): Change ivalue from long to
3220 LONGEST, remove the comment.
3221 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
3222 Change SYMBOL_VALUE format strings to use plongest and hex_string.
3223
14e75d8e
JK
32242012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
3225
3226 PR symtab/7259:
3227 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
3228 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
3229 (ada_discrete_type_low_bound): Fix function comment. Use
3230 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
3231 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
3232 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3233 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
3234 Use TYPE_FIELD_ENUMVAL.
3235 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
3236 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3237 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
3238 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
3239 TYPE_CODE_ENUM.
3240 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
3241 * dwarf2read.c (process_enumeration_scope): Likewise.
3242 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
3243 field.bitpos.
3244 (class StructMainTypePrettyPrinter): Support also
3245 FIELD_LOC_KIND_ENUMVAL.
3246 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
3247 TYPE_CODE_ENUM.
3248 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3249 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
3250 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
3251 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
3252 field enumval.
3253 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
3254 accommodate enumval.
3255 (struct call_site): Adjust loc_kind to accommodate enumval.
3256 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
3257 (TYPE_FIELD_ENUMVAL): New macros.
3258 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
3259 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
3260 TYPE_CODE_ENUM.
3261 * p-typeprint.c (pascal_type_print_base): Likewise.
3262 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
3263 enumval.
3264 * python/lib/gdb/types.py (make_enum_dict): Likewise.
3265 * python/py-type.c (convert_field): New variable addrstring. Use
3266 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
3267 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
3268 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
3269 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
3270 TYPE_CODE_ENUM.
3271 * valprint.c (generic_val_print): Likewise.
3272
380bca97
DE
32732012-04-17 Doug Evans <dje@google.com>
3274
dcc07052
DE
3275 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
3276
380bca97
DE
3277 * dwarf2read.c: Whitespace fixes.
3278 (lookup_signatured_type): Tweak comment.
3279 (get_die_type_at_offset): Fix comment.
3280
ec92004f
JB
32812012-04-17 Joel Brobecker <brobecker@adacore.com>
3282
3283 * xcoffread.c (xcoff_secnum_to_sections): New function.
3284 (secnum_to_section, secnum_to_bfd_section): Reimplement
3285 using xcoff_secnum_to_sections. Rename "secnum" parameter
3286 into "n_scnum".
3287 (RECORD_MINIMAL_SYMBOL): Delete.
3288 (record_minimal_symbol): New function.
3289 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
3290 by call to record_minimal_symbol and set misc_func_recorded
3291 to 1. Set last_csect_sec to the XCOFF section index instead
3292 of GDB's section_offset index. Update calls to
3293 prim_record_minimal_symbol_and_info to pass the BFD section
3294 as well.
3295
40301fb7
JB
32962012-04-17 Joel Brobecker <brobecker@adacore.com>
3297
3298 * xcoffread.c (read_xcoff_symtab): Delete variables
3299 last_csect_val and last_csect_sec and associated code.
3300
e0088cfd
DE
33012012-04-17 Doug Evans <dje@google.com>
3302
58d5e2c3
DE
3303 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
3304 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3305 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
3306 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
3307
c27f5738
DE
3308 * cleanups.h: New file.
3309 * cleanups.c: New file.
3310 * Makefile.in (SFILES): Add cleanups.c.
3311 (HFILES_NO_SRCDIR): Add cleanups.h.
3312 (COMMON_OBS): Add cleanups.o.
3313 * defs.h (struct cleanup): Moved to cleanups.h.
3314 (do_cleanups,do_final_cleanups): Ditto.
3315 (discard_cleanups,discard_final_cleanups): Ditto
3316 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3317 (save_cleanups,save_final_cleanups): Ditto.
3318 (restore_cleanups,restore_final_cleanups): Ditto.
3319 (null_cleanup): Ditto.
3320 (make_my_cleanup,make_my_cleanup2): Ditto.
3321 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3322 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
3323 (do_cleanups,do_final_cleanups): Ditto.
3324 (discard_cleanups,discard_final_cleanups): Ditto
3325 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
3326 (save_cleanups,save_final_cleanups): Ditto.
3327 (restore_cleanups,restore_final_cleanups): Ditto.
3328 (null_cleanup): Ditto.
3329 (make_my_cleanup,make_my_cleanup2): Ditto.
3330 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
3331
e0088cfd
DE
3332 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
3333 make_my_cleanup.
3334 (make_cleanup_dyn_string_delete): Ditto.
3335 (make_cleanup_ui_file_delete): Ditto.
3336 (make_cleanup_ui_out_redirect_pop): Ditto.
3337 (make_cleanup_free_section_addr_info): Ditto.
3338 (make_cleanup_restore_integer): Ditto.
3339 (make_cleanup_unpush_target): Ditto.
3340 (make_cleanup_value_free_to_mark): Ditto.
3341 (make_cleanup_value_free): Ditto.
3342 (make_cleanup_free_so): Ditto.
3343
4dc84fd1
JK
33442012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3345
3346 New option "set debug auto-load".
3347 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
3348 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
3349 (auto_load_safe_path_vec_update)
3350 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
3351 if DEBUG_AUTO_LOAD.
3352 (file_is_auto_load_safe): New parameters debug_fmt and ....
3353 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
3354 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
3355 caller by explanatory string.
3356 (_initialize_auto_load): Register "set debug auto-load".
3357 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
3358 and ....
3359 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3360 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
3361 by explanatory string.
3362 * main.c (captured_main): Likewise.
3363 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
3364 (source_section_scripts): Likewise.
3365
bccbefd2
JK
33662012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3367
3368 New option "set auto-load safe-path".
3369 * NEWS: New commands "set auto-load safe-path"
3370 and "show auto-load safe-path".
3371 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
3372 (auto_load_safe_path, auto_load_safe_path_vec)
3373 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
3374 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
3375 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
3376 (source_gdb_script_for_objfile): New variable is_safe. Call
3377 file_is_auto_load_safe. Return if it is not.
3378 (struct loaded_script): New field loaded.
3379 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
3380 (print_script): Use LOADED indicator instead of FULL_PATH. Change
3381 output "Missing" to "No".
3382 (_initialize_auto_load): New variable cmd. Initialize
3383 auto_load_safe_path. Register "set auto-load safe-path",
3384 "show auto-load safe-path" and "add-auto-load-safe-path".
3385 * auto-load.h (maybe_add_script): Add parameter loaded.
3386 (file_is_auto_load_safe): New declaration.
3387 * config.in: Regenerate.
3388 * configure: Regenerate.
3389 * configure.ac: New parameters --with-auto-load-safe-path
3390 and --without-auto-load-safe-path.
3391 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
3392 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
3393 * main.c (captured_main): Check file_is_auto_load_safe for
3394 LOCAL_GDBINIT.
3395 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
3396 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
3397 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
3398 not.
3399
bf88dd68
JK
34002012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3401
3402 auto-load: Implementation.
3403 * NEWS: New descriptions for "info auto-load",
3404 "info auto-load gdb-scripts", "info auto-load python-scripts",
3405 "info auto-load local-gdbinit" and "info auto-load libthread-db".
3406 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
3407 and "show auto-load-scripts". New description for "set auto-load",
3408 "show auto-load", "set auto-load gdb-scripts",
3409 "show auto-load gdb-scripts", "set auto-load python-scripts",
3410 "show auto-load python-scripts", "set auto-load local-gdbinit",
3411 "show auto-load local-gdbinit", "set auto-load libthread-db" and
3412 "show auto-load libthread-db".
3413 * auto-load.c: Remove include python/python-internal.h. Add includes
3414 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
3415 cli/cli-setshow.h.
3416 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
3417 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
3418 (gdbpy_global_auto_load): Rename to ...
3419 (global_auto_load): ... here.
3420 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3421 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
3422 (script_language_gdb, source_gdb_script_for_objfile): New.
3423 (struct loaded_script): New field language.
3424 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
3425 LANGUAGE.
3426 (maybe_add_script): Add parameter language. Drop redundant
3427 entry.full_path initialization. Initialize entry.language and
3428 (*slot)->language.
3429 (auto_load_objfile_script): Change parameter suffix to language.
3430 Remove the call of maybe_add_script.
3431 Call language->source_script_for_objfile.
3432 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
3433 New.
3434 (collect_matching_scripts): Adjust it for
3435 struct collect_matching_scripts_data.
3436 (auto_load_info_scripts_pattern_nl): New variable.
3437 (info_auto_load_scripts): Rename to ...
3438 (auto_load_info_scripts): ... here, add parameter language. Adjust it
3439 for struct collect_matching_scripts_data.
3440 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
3441 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
3442 (auto_load_show_cmdlist_get, info_auto_load_cmd)
3443 (auto_load_info_cmdlist_get): New.
3444 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
3445 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
3446 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
3447 "info auto-load local-gdbinit".
3448 * auto-load.h (struct script_language): New.
3449 (gdbpy_global_auto_load): Rename to ...
3450 (global_auto_load): ... here.
3451 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
3452 (auto_load_local_gdbinit_loaded): New declarations.
3453 (maybe_add_script): New parameter language.
3454 (auto_load_objfile_script): Change parameter suffix to language.
3455 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
3456 (auto_load_info_scripts, auto_load_set_cmdlist_get)
3457 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
3458 declarations.
3459 * linux-thread-db.c: Include auto-load.h and ctype.h.
3460 (auto_load_thread_db, show_auto_load_thread_db): New.
3461 (struct thread_db_info): New field filename.
3462 (delete_thread_db_info): Call xfree for FILENAME.
3463 (try_thread_db_load): Initialize FILENAME.
3464 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
3465 if !AUTO_LOAD_THREAD_DB.
3466 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
3467 (_initialize_thread_db): Install auto_load_thread_db
3468 as "set auto-load libthread-db" and install info_auto_load_libthread_db
3469 as "info auto-load libthread-db".
3470 * main.c (captured_main): Rename gdbpy_global_auto_load to
3471 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
3472 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
3473 (print_gdb_help): Extend the help for 'local init file'.
3474 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
3475 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
3476 (auto_load_scripts): Rename to ...
3477 (auto_load_python_scripts): ... here, update the comment.
3478 (gdbpy_load_auto_script_for_objfile): New declaration.
3479 (show_auto_load_python_scripts, script_language_python)
3480 (gdbpy_load_auto_script_for_objfile): New.
3481 (source_section_scripts): Refactor the code.
3482 (load_auto_scripts_for_objfile): Rename to ...
3483 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
3484 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
3485 (info_auto_load_python_scripts): New.
3486 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
3487 Rename "set auto-load-scripts" to "set auto-load python-scripts".
3488 Register "set auto-load-scripts" as its deprecated alias. Register
3489 "info auto-load python-scripts". Register "info auto-load-scripts" as
3490 its deprecated alias.
3491 (load_auto_scripts_for_objfile): Rename to ...
3492 (gdbpy_load_auto_scripts_for_objfile): ... here.
3493 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
3494 (gdbpy_load_auto_scripts_for_objfile): ... here.
3495
e2207b9a
JK
34962012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3497
3498 auto-load: Move files.
3499 * Makefile.in (SFILES): Add auto-load.c.
3500 (HFILES_NO_SRCDIR): Add auto-load.h.
3501 (COMMON_OBS): Add auto-load.o.
3502 (distclean): Change .gdbinit for gdb-gdb.gdb.
3503 * auto-load.c: New file, with parts from python/py-auto-load.c.
3504 * auto-load.h: New file, with parts from python/python.h.
3505 * configure: Regenerate.
3506 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
3507 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
3508 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
3509 * main.c: Include auto-load.h.
3510 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
3511 command.h, observer.h and progspace.h to auto-load.c. Add include
3512 auto-load.h.
3513 (gdbpy_global_auto_load, struct auto_load_pspace_info)
3514 (struct loaded_script, auto_load_pspace_data)
3515 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
3516 (hash_loaded_script_entry, eq_loaded_script_entry)
3517 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
3518 (maybe_add_script): Move to auto-load.c.
3519 (source_section_scripts): Change maybe_add_script parameters passing,
3520 use script_not_found_warning_print.
3521 (clear_section_scripts, auto_load_objfile_script)
3522 (auto_load_new_objfile, loaded_script_ptr)
3523 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
3524 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
3525 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
3526 auto_load_new_objfile and info_auto_load_scripts initizations to
3527 auto-load.c.
3528 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
3529
e4ab2fad
JK
35302012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3531
3532 Code cleanup.
3533 * charset.c (find_charset_names): Remove variables ix and elt.
3534 Use free_char_ptr_vec.
3535 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
3536 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3537 debugdir_end. New variable debugdir_len.
3538 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
3539 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
3540 declarations.
3541 * progspace.c (clear_program_space_solib_cache): Remove variables ix
3542 and elt. Use free_char_ptr_vec.
3543 * source.c (add_path): Remove variables argv, arg and argv_index.
3544 New variables dir_vec, back_to, ix and name.
3545 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
3546 make_cleanup_freeargv. Remove variable separator. Simplify the code
3547 no longer expecting DIRNAME_SEPARATOR.
3548 (openp): Remove variable p, p1 and len. New variables dir_vec,
3549 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
3550 no longer expecting DIRNAME_SEPARATOR.
3551 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
3552 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
3553 debugdir_end.
3554 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
3555 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
3556 (dirnames_to_char_ptr_vec): New functions.
3557
5ee4ed9f
JK
35582012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3559
3560 Code cleanup.
3561 * source.c (add_path): Remove always true conditional 'p == 0' and
3562 unindent its code block.
3563
f41f5e61
PA
35642012-04-17 Pedro Alves <palves@redhat.com>
3565
3566 * gdbtypes.h (FIELD_BITPOS): Rename to ...
3567 (FIELD_BITPOS_LVAL): ... this.
3568 (FIELD_BITPOS): New.
3569 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
3570 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
3571 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
3572 SET_FIELD_BITPOS.
3573 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
3574 SET_FIELD_BITPOS.
3575 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
3576 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
3577 * target-descriptions.c (tdesc_gdb_type): Adjust to use
3578 SET_FIELD_BITPOS.
3579
945b3a32
JK
35802012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
3581
3582 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
3583 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
3584 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
3585 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
3586 * jv-lang.c (java_link_class_type): Likewise, once.
3587 * stabsread.c (read_enum_type): Likewise.
3588
42476b70
YQ
35892012-04-16 Yao Qi <yao@codesourcery.com>
3590
3591 * common/agent.c (agent_run_command): Add one more parameter `len'.
3592 Update callers.
3593 * common/agent.h: Update declaration.
3594 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
3595 Update.
3596 (linux_child_static_tracepoint_markers_by_strid): Ditto.
3597
8264ba82
AG
35982012-04-14 Anton Gorenkov <xgsa@yandex.ru>
3599
3600 PR mi/13393
3601 * value.c (value_actual_type): New function.
3602 * value.h (value_actual_type): New declaration.
3603 * varobj.c (update_type_if_necessary): New function.
3604 (varobj_create): Call value_actual_type instead of
3605 value_type.
3606 (install_dynamic_child): distinct changed and type changed MI variable
3607 objects.
3608 (update_dynamic_varobj_children): Updated for install_dynamic_child
3609 change. All callers updated.
a09130f9 3610 (varobj_update): Support for MI variable object type change if
8264ba82
AG
3611 the value changed and RTTI is used to determine the type.
3612 (create_child_with_value): Call value_actual_type instead of
3613 value_type.
a09130f9 3614 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
3615 specify whether the given value should be casted to enclosing type.
3616 All callers updated.
3617
55a8c076
YQ
36182012-04-14 Yao Qi <yao@codesourcery.com>
3619
3620 Import gnulib module inttypes from git
3621 (250b80067c1e1d8faa0c42fb572f721975b929c5)
3622 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
3623 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
3624 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
3625 * aclocal.m4, config.in, configure: Regenerated.
3626 * gnulib/Makefile.am: Update.
3627 * gnulib/Makefile.in: Update.
3628 * gnulib/m4/gnulib-cache.m4: Update.
3629 * gnulib/m4/gnulib-comp.m4: Update.
3630 * gnulib/inttypes.in.h: New.
3631 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 3632 * gnulib/m4/inttypes.m4: New.
55a8c076 3633
ca7781d2
LM
36342012-04-13 Luis Machado <lgustavo@codesourcery.com>
3635
3636 * infrun.c (resume): Update PC address to the real PC after
3637 preparing to do displaced stepping.
3638
e319fa28
DE
36392012-04-12 Doug Evans <dje@google.com>
3640
3641 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
3642 All callers updated.
3643
15add3f5
MK
36442012-04-12 Mark Kettenis <kettenis@gnu.org>
3645
3646 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
3647
52dc124a
DE
36482012-04-12 Doug Evans <dje@google.com>
3649
0e50663e
DE
3650 * dwarf2read.c (create_all_type_units): Renamed from
3651 create_debug_types_hash_table. All callers updated.
3652
52dc124a
DE
3653 * dwarf2read.c (create_signatured_type_table_from_index): Rename
3654 local type_sig to sig_type, type_offset to type_offset_in_tu.
3655 (hash_signatured_type): Renamed from hash_type_signature,
3656 all callers updated.
3657 (eq_signatured_type): Renamed from eq_type_signature,
3658 all callers updated.
3659 (create_debug_types_hash_table): Rename local type_sig to sig_type.
3660 (process_enumeration_scope): Ditto.
3661 (lookup_signatured_type_at_offset): Ditto.
3662 (load_full_type_unit, read_signatured_type): Ditto.
3663
248fd3bf
YQ
36642012-04-12 Yao Qi <yao@codesourcery.com>
3665
3666 * remote.c (async_remote_interrupt): Correct function name in
3667 debug message.
3668 (async_remote_interrupt_twice): Ditto.
3669
bc3aa6c3
DE
36702012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
3671
3672 * source.c (find_and_open_source): Consistently pass resulting
3673 full path through xfullpath.
3674
9e529e1d
JK
36752012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
3676
3677 Provide more specific displaced-stepping memory error message.
3678 * infrun.c (displaced_step_prepare): New variable status. Call
3679 target_read_memory instead of read_memory, provide more specific
3680 error message.
3681
82e0cec1
TG
36822012-04-11 Tristan Gingold <gingold@adacore.com>
3683
3684 PR gdb/13901
3685 * darwin-nat.c (darwin_execvp): Revert previous patch.
3686
d987a266
TG
36872012-04-11 Tristan Gingold <gingold@adacore.com>
3688
3689 PR gdb/13901
3690 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
3691 in case of change.
3692
016b7430
TG
36932012-04-11 Tristan Gingold <gingold@adacore.com>
3694
3695 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3696 warning.
3697
06fc020f
SCR
36982012-04-11 Siva Chandra Reddy <sivachandra@google.com>
3699
3700 New command 'explore' which helps explore values and types in
3701 scope.
3702 * NEWS: Add an entry about the new 'explore' command.
3703 * data-directory/Makefile.in: Add gdb/command/explore.py
3704 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 3705 command using the GDB Python API.
06fc020f 3706
de0919f8 37072012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
3708
3709 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
3710 extension in jump target calculation.
3711
de0919f8 37122012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
3713
3714 * mips-tdep.c (mips32_next_pc): Handle JALX.
3715
2f26ef89
YQ
37162012-04-10 Yao Qi <yao@codesourcery.com>
3717
3718 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
3719
2e505b66
YQ
37202012-04-10 Yao Qi <yao@codesourcery.com>
3721
3722 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
3723 and gnulib/m4/gnulib-tool.m4.
3724
0d99eb77
DE
37252012-04-10 Doug Evans <dje@google.com>
3726
3727 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
3728 (load_partial_dies): Clarify comment.
3729 (find_partial_die): Support rereading type units.
3730 Clarify CU handling, if we know offset is in CU, don't search for the
3731 containing CU. Add comment regarding memory waste.
3732
9a82b8ff
L
37332012-04-10 H.J. Lu <hongjiu.lu@intel.com>
3734
3735 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
3736 i386/x32-avx and i386/x32-avx-linux.
3737 (i386/x32-expedite): New.
3738 (i386/x32-linux-expedite): Likewise.
3739 (i386/x32-avx-expedite): Likewise.
3740 (i386/x32-avx-linux-expedite): Likewise.
3741 ($(outdir)/i386/x32.dat): Likewise.
3742 ($(outdir)/i386/x32-linux.dat): Likewise.
3743 ($(outdir)/i386/x32-avx.dat): Likewise.
3744 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
3745
3746 * features/i386/x32-avx-linux.xml: New file.
3747 * features/i386/x32-avx.xml: Likewise.
3748 * features/i386/x32-core.xml: Likewise.
3749 * features/i386/x32-linux.xml: Likewise.
3750 * features/i386/x32.xml: Likewise.
3751
3752 * features/i386/x32-avx-linux.c: New. Generated.
3753 * features/i386/x32-avx.c: Likewise.
3754 * features/i386/x32-linux.c: Likewise.
3755 * features/i386/x32.c: Likewise.
3756 * regformats/i386/x32-avx-linux.dat: Likewise.
3757 * regformats/i386/x32-avx.dat: Likewise.
3758 * regformats/i386/x32-linux.dat: Likewise.
3759 * regformats/i386/x32.dat: Likewise.
3760
ee41036f
TG
37612012-04-10 Tristan Gingold <gingold@adacore.com>
3762
3763 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
3764 code to kill the inferior.
3765
a7aa5b8a
MK
37662012-04-09 Mark Kettenis <kettenis@gnu.org>
3767
3768 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3769 defines.
3770 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3771 defines.
a09130f9 3772 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
3773 (yyvsp): New defines.
3774 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3775 defines.
3776 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3777 defines.
3778 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3779 defines.
3780 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3781 defines.
3782 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
3783 defines.
3784
fb57d452
MK
37852012-04-09 Mark Kettenis <kettenis@gnu.org>
3786
a09130f9 3787 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
3788 (sparc64_store_arguments): Fix coding style.
3789
cdc7b32f
MK
37902012-04-07 Mark Kettenis <kettenis@gnu.org>
3791
3792 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
3793 complex floats, adjust some related comments and tighten a related
3794 assertion.
3795 (sparc64_extract_return_value): Handle complex floats.
3796
7adf1e79
DE
37972012-04-07 Doug Evans <dje@google.com>
3798
3799 * dwarf2read.c (load_partial_dies): Change condition to assert.
3800
50f1ae7b
DE
38012012-04-06 Doug Evans <dje@google.com>
3802
3803 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
3804 "mov %rsp,%rbp".
3805
55fa75c3
KB
38062012-04-05 Kevin Buettner <kevinb@redhat.com>
3807
3808 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
3809 fencepost error.
3810 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
3811 (v850_gdbarch_init): Set `num_regs' as appropriate for the
3812 architecture.
3813
40e084e1
KS
38142012-04-05 Keith Seitz <keiths@redhat.com>
3815
3816 * linespec.c (decode_compound): Remove.
3817 (enum offset_relative_sign): New enum.
3818 (struct line_offset): New struct.
3819 (struct linespec): New struct.
3820 (struct linespec_state): Move file_symtabs,
3821 user_filename, and user_function into struct linespec.
3822 Make result an anonymous struct holding vectors of
3823 symbolp and minsym_and_objfile_d.
3824 Add language member.
3825 (enum ls_token_type): New enum.
3826 (linespec_keywords): New array.
3827 (struct ls_token): New struct.
3828 (struct ls_parser): New struct.
3829 (linespec_lexer_lex_number): New function.
3830 (linespec_lexer_lex_keyword): New function.
3831 (is_ada_operator): New function.
3832 (skip_quote_char): New function.
3833 (copy_token_string): New function.
3834 (is_closing_quote_enclosed): New function.
3835 (find_parameter_list_end): New function.
3836 (linespec_lexer_lex_string): New function.
3837 (linespec_lexer_lex_one): New function.
3838 (linespec_lexer_consume_token): New function.
3839 (linespec_lexer_peek_token): New function.
3840 (cplusplus_error): Remove unused function.
3841 (find_methods): Update comment.
3842 (find_toplevel_char): Return const.
3843 (is_objc_method_format): Remove unused function.
3844 (find_toplevel_string): New function.
3845 (is_linespec_boundary): Remove.
3846 (symbol_not_found_error): New function.
3847 (find_method_overload_end): Remove function.
3848 (unexpected_linespec_error): New function.
3849 (keep_name_info): Remove.
3850 (linespec_parse_line_offset): New function.
3851 (linespec_parse_basic): New function.
3852 (canonicalize_linespec): New function.
3853 (decode_line_internal): Remove.
3854 (create_sals_line_offset): New function adapted from
3855 decode_all_digits.
3856 (convert_linespec_to_sals): New function.
3857 (parse_linespec): New function.
3858 (linespec_parser_new): New function.
3859 (linespec_state_destructor): Change parameter type to
3860 struct linespec_state *.
3861 Add language parameter.
3862 Remove freeing of moved members.
3863 (linespec_parser_delete): New function.
3864 (decode_line_full): Use parse_linespec and linespec_parser_new.
3865 (decode_line_1): Likewise.
3866 (decode_indirect): Rename to ...
3867 (linespec_expression_to_pc): ... this and rewrite
3868 to simply find CORE_ADDR, storing this result for later
3869 conversion to SALs.
3870 (locate_first_half): Remove.
3871 (deocde_objc): Add parameter LS.
3872 Initialize new struct collect_info members.
3873 Handle minimal symbols, too.
3874 (decode_compound): Delete.
3875 (lookup_prefix_sym): Rewrite.
3876 (compare_msymbols): New function.
3877 (find_method): Rewrite.
3878 Do not call cplusplus_error.
3879 (symtabs_from_filename): Rewrite.
3880 (collect_function_symbols): Delete.
3881 (find_function_symbols): Rewrite without ARGPTR-style
3882 processing.
3883 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
3884 (decode_dollar): Adapted and renamed to ...
3885 (linespec_parse_variable): ... this.
3886 (find_linespec_symbols): New function.
3887 (decode_label): Adapted and renamed to ...
3888 (find_label_symbols): ... this.
3889 (decode_digits_list_mode): Add and use LS argument.
3890 (decode_digits_ordinary): Likewise.
3891 (collect_symbols): Do not collect SALs, just symbols and msymbols.
3892 If in list mode, allow any symbol class. Otherwise, only
3893 permit LOC_BLOCK symbols.
3894 (minsym_found): Update comments.
3895 (search_minsyms_for_name): Do not convert the matching symbol
3896 into a SAL. Simply push the symbol and objfile into the
3897 result vector.
3898 (decode_variable): Delete. Contents adapted into
3899 find_linespec_symbols.
3900
3901 * cp-support.c (SKIP_SPACE): Remove.
3902 (operator_tokens): Remove unused global.
3903 (cp_validate_operator): Remove.
3904 * cp-support.h (cp_validate_operator): Remove declaration.
3905
a72c8f6a
JK
39062012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
3907
3908 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
3909 for TYPE_VPTR_FIELDNO.
3910 * valprint.c (valprint_check_validity): Make it global, move the
3911 function comment ...
3912 * value.h (valprint_check_validity): ... to this new declaration.
3913
cf9bb588
TG
39142012-04-02 Tristan Gingold <gingold@adacore.com>
3915
3916 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
3917 the STATE32 api for i386 state.
3918 (i386_darwin_store_inferior_registers): Likewise.
3919
17092398
TG
39202012-04-02 Tristan Gingold <gingold@adacore.com>
3921
3922 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
3923 SS offset.
3924 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
3925 format_string.
3926
ece0061f
TG
39272012-04-02 Tristan Gingold <gingold@adacore.com>
3928
3929 PR gdb/13901
d987a266 3930 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 3931
cf65ecd3
JK
39322012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
3933
3934 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
3935
9bc3523d
TT
39362012-03-30 Tom Tromey <tromey@redhat.com>
3937
3938 * python/python.c (gdbpy_decode_line): Move cleanup creation out
3939 of TRY_CATCH. Fix error handling.
3940 * python/py-value.c (convert_value_from_python): Move 'old'
3941 declaration to innermost scope.
3942
b1ed564a
JB
39432012-03-29 Joel Brobecker <brobecker@adacore.com>
3944 Andrey Smirnov <andrew.smirnov@gmail.com>
3945
3946 -Wshadow warning fix.
3947 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
3948 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
3949 Adjust code accordingly.
3950
cb8e9b97
JB
39512012-03-29 Joel Brobecker <brobecker@adacore.com>
3952
3953 * ada-lang.c (symbol_completion_add): Rename parameter
3954 "encoded" into "encoded_p". Ajust code and documentation
3955 accordingly.
3956
c0af1706
JB
39572012-03-29 Joel Brobecker <brobecker@adacore.com>
3958 Andrey Smirnov <andrew.smirnov@gmail.com>
3959
3960 -Wshadow warning fix.
3961 * ada-lang.c (symbol_completion_add): Rename parameter
3962 "wild_match" into wild_match_p. Update code and documentation
3963 accordingly.
3964
6ea35997
JB
39652012-03-29 Joel Brobecker <brobecker@adacore.com>
3966
3967 * ada-lang.c (symbol_completion_match): Rename parameter
3968 "encoded" into "encoded_p". Ajust code and documentation
3969 accordingly.
3970
e701b3c0
JB
39712012-03-29 Joel Brobecker <brobecker@adacore.com>
3972 Andrey Smirnov <andrew.smirnov@gmail.com>
3973
3974 -Wshadow warning fix.
3975 * ada-lang.c (symbol_completion_match): Rename parameter
3976 "wild_match" into "wild_match_p". Adjust code and function
3977 documentation accordingly.
3978
5e2336be
JB
39792012-03-29 Joel Brobecker <brobecker@adacore.com>
3980 Andrey Smirnov <andrew.smirnov@gmail.com>
3981
3982 -Wshadow warning fix.
3983 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
3984 "symbol_info" into "info". Adjust code accordingly.
3985 (ada_lookup_symbol): Likewise.
3986
9f88c959
JB
39872012-03-29 Joel Brobecker <brobecker@adacore.com>
3988
3989 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
3990 of this function's documentation.
3991
82ccd55e
JB
39922012-03-29 Joel Brobecker <brobecker@adacore.com>
3993 Andrey Smirnov <andrew.smirnov@gmail.com>
3994
3995 -Wshadow warning fix.
3996 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
3997 variable into "wild_match_p". Adjust code accordingly.
3998
d0a8ab18
JB
39992012-03-29 Joel Brobecker <brobecker@adacore.com>
4000 Andrey Smirnov <andrew.smirnov@gmail.com>
4001
4002 -Wshadow warning fix.
4003 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
4004 parameter into "wild_match_p". Adjust code accordingly.
4005 Document this parameter in the function description.
4006
48b78332
JB
40072012-03-29 Joel Brobecker <brobecker@adacore.com>
4008 Andrey Smirnov <andrew.smirnov@gmail.com>
4009
4010 -Wshadow warning fix.
4011 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
4012 "wild_match" parameter to "wild_match_p" (-Wshadow).
4013
2e6e0353
JB
40142012-03-29 Joel Brobecker <brobecker@adacore.com>
4015
4016 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
4017 in function documentation.
4018
dc4024cd
JB
40192012-03-29 Joel Brobecker <brobecker@adacore.com>
4020 Andrey Smirnov <andrew.smirnov@gmail.com>
4021
4022 -Wshadow warning fix.
4023 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
4024 variable into wild_match_p. Adjust code accordingly.
4025
6c88661c
JB
40262012-03-29 Joel Brobecker <brobecker@adacore.com>
4027 Andrey Smirnov <andrew.smirnov@gmail.com>
4028
4029 * ada-valprint.c (ada_val_print_1): Move the code handling
4030 TYPE_CODE_ENUM inside its own lexical block. Declare
4031 variables len and val there, instead of in the function's
4032 top level block. Avoid declaring deref_val again in a way
4033 that shadows another variable of the same name declared
4034 in one of the up-level blocks. Just re-use the up-level
4035 variable instead.
4036
4e5c77fe
JB
40372012-03-29 Joel Brobecker <brobecker@adacore.com>
4038
4039 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
4040 Replace block_found argument by symbol_info. Adjust
4041 implementation accordingly. Add function documentation.
4042 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
4043 Fix documentation.
4044 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
4045 * ada-exp.y (write_object_renaming): Adjust to new
4046 ada_lookup_encoded_symbol API.
4047
1c0ac8c7
JB
40482012-03-29 Joel Brobecker <brobecker@adacore.com>
4049
4050 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
4051 documentation.
4052
2aaed979
KB
40532012-03-28 Rathish C <rathish.c@kpitcummins.com>
4054
4055 * v850-tdep.c: Add the enum values for mpu and fpu registers.
4056 (v850_register_name): Add the mpu and fpu register names.
4057 (v850e_register_name): Add the mpu and fpu register names.
4058 (v850e2_register_name): New function.
a09130f9 4059 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
4060 bfd_mach_v850e2v3.
4061
927fbba6
JB
40622012-03-28 Joel Brobecker <brobecker@adacore.com>
4063
4064 * NEWS: Add entry for Ada varobj support.
4065
d32cafc7
JB
40662012-03-28 Joel Brobecker <brobecker@adacore.com>
4067
4068 * varobj.c (default_value_is_changeable_p): New function,
4069 extracted from varobj_value_is_changeable_p. Add declaration.
4070 (ada_value_is_changeable_p): New function, extracted from
4071 varobj_value_is_changeable_p. Add declaration.
4072 (struct language_specific): New field "value_is_changeable_p".
4073 (languages): Add entries for new field.
4074 (varobj_create): Set language before calling install_new_value.
4075 (varobj_value_is_changeable_p): Reimplement to call the varobj's
4076 "value_is_changeable_p" language callback.
4077
181875a4
JB
40782012-03-28 Joel Brobecker <brobecker@adacore.com>
4079
4080 * ada-varobj.h, ada-varobj.c: New files.
4081 * Makefile.in (SFILES): Add ada-varobj.c.
4082 (HFILES_NO_SRCDIR): Add ada-varobj.h.
4083 (COMMON_OBS): Add ada-varobj.o.
4084
7a290c40
JB
40852012-03-28 Joel Brobecker <brobecker@adacore.com>
4086
4087 * varobj.c (ada_value_has_mutated): Add declaration. New function.
4088 (struct language_specific): New field "value_has_mutated".
4089 (languages): Set field "value_has_mutated" in each entry of array.
4090 (varobj_value_has_mutated): New function.
4091 (varobj_udpdate): Add handling of type mutation.
4092 (value_of_root): Add handling of type mutation.
4093 (ada_value_has_mutated): New function.
4094
ca9b8b9c
PA
40952012-03-28 Pedro Alves <palves@redhat.com>
4096
4097 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
4098 Always supply $fr0 as 0.0 and $fr1 as 1.0.
4099
cc0265cd
TT
41002012-03-28 Tom Tromey <tromey@redhat.com>
4101
4102 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
4103 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
4104 before returning.
4105
3ad2ec6f
TT
41062012-03-28 Tom Tromey <tromey@redhat.com>
4107
4108 * .dir-locals.el: New file.
4109
4a6510ba
PA
41102012-03-28 Pedro Alves <palves@redhat.com>
4111
4112 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
4113
5a75128f
JB
41142012-03-28 Joel Brobecker <brobecker@adacore.com>
4115
4116 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
4117 handling for r0.
4118
f99d8bf4
PA
41192012-03-27 Pedro Alves <palves@redhat.com>
4120
4121 Eliminate struct ui_stream.
4122
4123 * ui-out.h (struct ui_stream): Delete.
4124 (ui_out_field_stream): Adjust prototype.
4125 (ui_out_stream_new, ui_out_stream_delete)
4126 (make_cleanup_ui_out_stream_delete): Delete declarations.
4127 * ui-out.c (ui_out_field_stream): Change prototype to take a
4128 ui_file instead of a ui_stream. Adjust.
4129 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
4130 (make_cleanup_ui_out_stream_delete): Delete.
4131 * breakpoint.c (print_breakpoint_location)
4132 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
4133 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4134 * disasm.c (dump_insns): Ditto.
4135 (do_mixed_source_and_assembly, do_assembly_only): Adjust
4136 prototype.
4137 (gdb_disassembly): Use ui_file/mem_fileopen instead of
4138 ui_stream/ui_out_stream_new.
4139 * infcmd.c (print_return_value): Ditto.
4140 * osdata.c (info_osdata_command): Don't allocate a local
4141 ui_stream.
4142 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
4143 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
4144 * tracepoint.c (print_one_static_tracepoint_marker): Don't
4145 allocate a local ui_stream.
4146 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
4147 instead of ui_stream/ui_out_stream_new.
4148 (list_args_or_locals): Don't allocate a local ui_stream.
4149 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
4150 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
4151 ui_stream/ui_out_stream_new.
4152 * cli/cli-setshow.c (do_setshow_command): Ditto.
4153
6350a066 41542012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 4155
6350a066
PA
4156 * arm-linux-tdep.c (arm_linux_init_abi): Call
4157 set_gdbarch_process_record. Initialize `arm_swi_record' field.
4158 * arm-tdep.c (arm_process_record): New function.
4159 (deallocate_reg_mem): New function.
4160 (decode_insn): New function.
4161 (thumb_record_branch): New function.
4162 (thumb_record_ldm_stm_swi(): New function.
4163 (thumb_record_misc): New function.
4164 (thumb_record_ld_st_stack): New function.
4165 (thumb_record_ld_st_imm_offset): New function.
4166 (thumb_record_ld_st_reg_offset(): New function.
4167 (thumb_record_add_sub_cmp_mov): New function.
4168 (thumb_record_shift_add_sub): New function.
4169 (arm_record_coproc_data_proc): New function.
4170 (arm_record_coproc): New function.
4171 (arm_record_b_bl): New function.
4172 (arm_record_ld_st_multiple): New function.
4173 (arm_record_ld_st_reg_offset): New function.
4174 (arm_record_ld_st_imm_offset): New function.
4175 (arm_record_data_proc_imm): New function.
4176 (arm_record_data_proc_misc_ld_str): New function.
4177 (arm_record_extension_space): New function.
4178 (arm_record_strx): New function.
4179 (sbo_sbz): New function.
4180 (struct insn_decode_record): New structure for arm insn record.
4181 (REG_ALLOC): New macro for reg allocations.
4182 (MEM_ALLOC): New macro for memory allocations.
4183 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 4184
89e028e2
AS
41852012-03-27 Andreas Schwab <schwab@linux-m68k.org>
4186
4187 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
4188 (store_register): Likewise.
4189
6350a066 41902012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 4191
6350a066 4192 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 4193
5b43fab2
JK
41942012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
4195
4196 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
4197 Describe also the option "auto".
4198
b5453b95
RH
41992012-03-22 Richard Henderson <rth@redhat.com>
4200
4201 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
4202 * sparc-nat.c (sparc_xfer_wcookie): Make static.
4203
227ee7fc
RH
42042012-03-22 Richard Henderson <rth@redhat.com>
4205
4206 * jit.c (jit_read_code_entry): Compute alignment and offset of
4207 int64_t member before computing entry_size.
4208
7b282c5a
SCR
42092012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4210
4211 Python scripting: Add new method Value.referenced_value to
4212 gdb.Value which can dereference pointer as well as reference
4213 values.
4214 * NEWS: Add entry under 'Python scripting' about the new method
4215 Value.referenced_value on gdb.Value objects.
4216 * python/py-value.c (valpy_referenced_value): New function
4217 defining a new method on gdb.Value objects which can dereference
4218 pointer and reference values.
4219
0c83539f
SCR
42202012-03-22 Siva Chandra Reddy <sivachandra@google.com>
4221
4222 * MAINTAINERS (Write After Approval): Add myself to the list.
4223
7ccffd7c
KB
42242012-03-21 Kevin Buettner <kevinb@redhat.com>
4225
4226 * symtab.c (skip_prologue_sal): Change test to check for "main()"
4227 in addition to "main".
4228
bd0b9f9e
JB
42292012-03-21 Joel Brobecker <brobecker@adacore.com>
4230
4231 * expression.h (op_name): Add declaration.
4232 * expprint.c (op_name): Remove declaration. Make non-static.
4233 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
4234
a5362b9a
TS
42352012-03-21 Thomas Schwinge <thomas@codesourcery.com>
4236
4237 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
4238 of struct siginfo.
4239 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
4240 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
4241 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
4242 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
4243 (linux_nat_get_siginfo): Likewise.
4244 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
4245 (linux_nat_get_siginfo): Likewise.
4246 * linux-tdep.c (linux_get_siginfo_type): Likewise.
4247 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
4248 * procfs.c (gdb_siginfo_t): Likewise.
4249
adcadaab
MF
42502012-03-21 Mike Frysinger <vapier@gentoo.org>
4251
4252 * .gitignore: Ignore more files.
4253
e278ad5b
PA
42542012-03-20 Pedro Alves <palves@redhat.com>
4255
4256 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
4257 returns.
4258
741e63d7
YQ
42592012-03-20 Yao Qi <yao@codesourcery.com>
4260
4261 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
4262 comment.
4263
b64f50a1
JK
42642012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4265
4266 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
4267 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
4268 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
4269 sect_offset.
4270 * dwarf2expr.h (cu_offset, sect_offset): New types.
4271 (struct dwarf_expr_context_funcs) <dwarf_call>
4272 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
4273 sect_offset.
4274 (struct dwarf_expr_context) <len>: Improve the comment.
4275 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
4276 cu_offset and sect_offset.
4277 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
4278 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
4279 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
4280 * dwarf2loc.h: Include dwarf2expr.h.
4281 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
4282 and sect_offset.
4283 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
4284 Improve the comment.
4285 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
4286 (struct signatured_type, struct line_header, struct partial_die_info)
4287 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
4288 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
4289 (get_die_type_at_offset, create_cus_from_index)
4290 (create_signatured_type_table_from_index, dw2_get_file_names)
4291 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
4292 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
4293 (create_debug_types_hash_table, process_psymtab_comp_unit)
4294 (load_partial_comp_unit, create_all_comp_units)
4295 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
4296 (load_full_comp_unit, dwarf2_physname, read_import_statement)
4297 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
4298 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
4299 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
4300 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
4301 (find_partial_die, read_attribute_value, lookup_die_type)
4302 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
4303 (is_ref_attr): New function comment.
4304 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
4305 Use cu_offset and sect_offset.
4306 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
4307 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
4308 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
4309 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
4310 (offset_and_type_hash, offset_and_type_eq, set_die_type)
4311 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
4312 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
4313 sect_offset.
4314
e97a38f7
JK
43152012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4316
4317 Code cleanup.
4318 * python/py-auto-load.c (source_section_scripts): New variable back_to.
4319 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
4320 with xfree.
4321 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
4322
8320cc4f
JK
43232012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4324
4325 * NEWS: Describe new options --init-command=FILE, -ix and
4326 --init-eval-command=COMMAND, -iex.
4327 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
4328 CMDARG_INIT_COMMAND.
4329 (captured_main): New enum items OPT_IX and OPT_IEX. Add
4330 "init-command", "init-eval-command", "ix" and "iex" to the variable
4331 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
4332 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
4333 (print_gdb_help): Describe --init-command=FILE, -ix and
4334 --init-eval-command=COMMAND, -iex.
4335
26743505
JK
43362012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
4337
4338 Code cleanup.
4339 * main.c (struct cmdarg): Move it here from main. Add more comments.
4340 (cmdarg_s, VEC (cmdarg_s)): New.
4341 (main): Move struct cmdarg from here. New variables cmdarg_vec and
4342 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
4343 Install cleanup for cmdarg_vec. Update filling for options 'x' and
4344 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
4345 of CMDARG.
4346
5ff5c7b4
TT
43472012-03-19 Tom Tromey <tromey@redhat.com>
4348
4349 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
4350
ab260dad
JK
43512012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
4352
4353 PR symtab/13777
4354 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
4355 GCC >=4.5.
4356
c366c1f0
TT
43572012-03-16 Chris January <chris.january@allinea.com>
4358
4359 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
4360 of clear.
4361
e16edb45
TT
43622012-03-16 Chris January <chris.january@allinea.com>
4363
4364 * source.c (add_path): Use memmove instead of strcpy because the
4365 strings overlap.
4366
53ba8333
JB
43672012-03-16 Joel Brobecker <brobecker@adacore.com>
4368
4369 * value.h (set_value_parent): Add declaration.
4370 * value.c (set_value_parent): New function.
4371 (value_address): If VALUE->PARENT is not NULL, then use it as
4372 the base address instead of VALUE->LOCATION.address.
4373 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
4374 the same as OBJ's address. Adjust V's offset accordingly.
4375 Set V's parent.
4376
481860b3
GB
43772012-03-16 Gary Benson <gbenson@redhat.com>
4378
4379 PR breakpoints/10738
4380 * dwarf2read.c (use_deprecated_index_sections): New global.
4381 (struct partial_die_info): New member may_be_inlined.
4382 (read_partial_die): Set may_be_inlined where appropriate.
4383 (add_partial_subprogram): Add partial symbols for partial
4384 DIEs that may be inlined.
4385 (new_symbol_full): Add inlined subroutines to the current
4386 scope.
4387 (write_psymtabs_to_index): Bump version number.
4388 (dwarf2_read_index): Read only version 6 indices unless
4389 use_deprecated_index_sections is set.
4390 * linespec.c (symbol_and_data_callback): New structure.
4391 (iterate_inline_only): New function.
4392 (iterate_over_all_matching_symtabs): New argument
4393 "include_inline". If nonzero, also call the callback for
4394 symbols representing inlined subroutines.
4395 (lookup_prefix_sym): Pass extra argument to the above.
4396 (find_function_symbols): Likewise.
4397 (add_matching_symbols_to_info): Likewise.
4398 * NEWS: Mention that GDB can now set breakpoints on inlined
4399 functions.
4400
d0e7e15a
PM
44012012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4402
4403 * p-typeprint.c (pascal_type_print_method_args):
4404 Fix display of parameter of methods.
4405
3d354654
PM
44062012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
4407
4408 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
4409 Add missing prototype.
4410
cafe75b0
JK
44112012-03-16 Yao Qi <yao@codesourcery.com>
4412 Jan Kratochvil <jan.kratochvil@redhat.com>
4413
4414 Fix false compilation warning.
4415 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
4416
25f8c692
JL
44172012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
4418 Pedro Alves <pedro@codesourcery.com>
4419
4420 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
4421 (arm_register_g_packet_guesses): New function.
4422 (arm_gdbarch_init): Don't force a target description with
4423 registers when the executable is detected as M-profile. Instead
4424 set gdbarch->tdep->is_m. Register `g' packet guesses.
4425 (_initialize_arm_tdep): Initialize the new target description.
4426 * features/arm-with-m-fpa-layout.xml: New description.
4427 * features/arm-with-m-fpa-layout.c: New, generated.
4428
35c63cd8
JB
44292012-03-15 Joel Brobecker <brobecker@adacore.com>
4430
4431 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
4432 Update function description.
4433 (insert_bp_location): Do not wipe bl->target_info out.
4434 * mem-break.c: #include "gdb_string.h".
4435 (default_memory_insert_breakpoint): Do not call target_read_memory
4436 with a pointer to the breakpoint's shadow_contents buffer. Use
4437 a local buffer instead.
4438 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
4439
57651221
TT
44402012-03-15 Tom Tromey <tromey@redhat.com>
4441
4442 * NEWS: Mention "info vtbl", not "info vtable".
4443 * cp-support.c (info_vtbl_command): Fix comment.
4444 (_initialize_cp_support): Fix text.
4445
410528f0
TT
44462012-03-15 Tom Tromey <tromey@redhat.com>
4447
4448 * cp-valprint.c (cp_print_value_fields): Use
4449 print_function_pointer_address for vtable slot.
4450
c4aeac85
TT
44512012-03-15 Tom Tromey <tromey@redhat.com>
4452
4453 * gnu-v3-abi.c (struct value_and_voffset): New.
4454 (hash_value_and_voffset, eq_value_and_voffset)
4455 (compare_value_and_voffset, compute_vtable_size)
4456 (print_one_vtable, gnuv3_print_vtable): New functions.
4457 (init_gnuv3_ops): Initialize 'print_vtable' field.
4458 * cp-support.c (info_vtbl_command): New function.
4459 (_initialize_cp_support): Add "info vtbl".
4460 * cp-abi.h (cplus_print_vtable): Declare.
4461 (struct cp_abi_ops) <print_vtable>: New field.
4462 * cp-abi.c (cplus_print_vtable): New function.
4463 * NEWS: Update.
4464
95cbceff
TT
44652012-03-15 Tom Tromey <tromey@redhat.com>
4466
4467 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
4468 iterate_over_symbols.
4469
589b4a32
DE
44702012-03-14 Doug Evans <dje@google.com>
4471
4472 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
4473 DW_OP_GNU_parameter_ref.
4474
e837f12a
JK
44752012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
4476
4477 Fix double prompt of 'interpreter-exec mi'.
4478 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
4479 (mi_interpreter_resume): use it.
4480 (mi_execute_command_input_handler): New function.
4481 * mi/mi-main.c (mi_execute_command): Move prompt printing to
4482 mi_execute_command_input_handler.
4483
ff1e4526 44842012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
4485
4486 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
4487 prototype.
4488 (darwin_debug_port_info): Make static.
4489 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
4490 * machoread.c (_initialize_machoread): Add prototype.
4491 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
4492 (i386_darwin_set_control, i386_darwin_get_control)
4493 i386_darwin_dr_set_addr, i386_darwin_get_addr)
4494 i386_darwin_get_status, i386_darwin_get_control):
4495 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
4496
d8a5d6ee
JB
44972012-03-13 Joel Brobecker <brobecker@adacore.com>
4498
4499 * ax-gdb.c (gen_usual_unary): Remove special handling of
4500 enum and bool types.
4501
af381b8c
JB
45022012-03-13 Joel Brobecker <brobecker@adacore.com>
4503
4504 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
4505
786c562f
JB
45062012-03-13 Joel Brobecker <brobecker@adacore.com>
4507
4508 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
4509
e3ebf1bb
JB
45102012-03-13 Chris January <chris.january@allinea.com>
4511
4512 * aix-thread.c (fill_sprs): Store the floating point registers
4513 at the correct offsets into vals.
4514
c5b7e1cb
DE
45152012-03-13 Doug Evans <dje@google.com>
4516
16899756
DE
4517 * NEWS: Mention symbol-reloading has been deleted.
4518 * symfile.c (symbol_reloading): Delete.
4519 (show_symbol_reloading): Delete.
4520 (_initialize_symfile): Delete set/show symbol-reloading.
4521
c5b7e1cb
DE
4522 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
4523 read_in_chain until we have successfully read it in.
4524 (load_full_comp_unit): Ditto.
4525 (read_signatured_type): Add comment.
4526
46cb6474
JB
45272012-03-13 Chris January <chris.january@allinea.com>
4528
4529 * stabsread.c (fix_common_block): Change type of valu argument
4530 to CORE_ADDR.
4531
76219d77
JB
45322012-03-13 Chris January <chris.january@allinea.com>
4533
4534 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
4535 instruction.
4536
87b0bb13
JK
45372012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4538
4539 * common/linux-procfs.c (linux_proc_get_int): New, from
4540 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
4541 field.
4542 (linux_proc_get_tgid): Only call linux_proc_get_int.
4543 (linux_proc_get_tracerpid): New.
4544 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
4545 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
4546 linux_proc_pid_has_state.
4547 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
4548 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
4549 (linux_ptrace_attach_warnings): New.
4550 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
4551 New declaration.
4552 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
4553 (linux_nat_attach): New variables ex, buffer, message and message_s.
4554 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
4555
5f572dec
JK
45562012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
4557
4558 * Makefile.in (linux-ptrace.o): New.
4559 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
4560 from linux-nat.c.
4561 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
4562 * common/linux-ptrace.c: New file.
4563 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
4564 * config/arm/linux.mh: Likewise.
4565 * config/i386/linux.mh: Likewise.
4566 * config/i386/linux64.mh: Likewise.
4567 * config/ia64/linux.mh: Likewise.
4568 * config/m32r/linux.mh: Likewise.
4569 * config/m68k/linux.mh: Likewise.
4570 * config/mips/linux.mh: Likewise.
4571 * config/pa/linux.mh: Likewise.
4572 * config/powerpc/linux.mh: Likewise.
4573 * config/powerpc/ppc64-linux.mh: Likewise.
4574 * config/powerpc/spu-linux.mh: Likewise.
4575 * config/s390/s390.mh: Likewise.
4576 * config/sparc/linux.mh: Likewise.
4577 * config/sparc/linux64.mh: Likewise.
4578 * config/xtensa/linux.mh: Likewise.
4579 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
4580 common/linux-procfs.c.
4581 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
4582
44f238bb
PA
45832012-03-13 Hui Zhu <teawater@gmail.com>
4584 Pedro Alves <palves@redhat.com>
4585
4586 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
4587 CREATE_BREAKPOINT_FLAGS_INSERTED.
4588 (create_breakpoint_sal, create_breakpoints_sal)
4589 (base_breakpoint_create_breakpoints_sal)
4590 (tracepoint_create_breakpoints_sal)
4591 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
4592 down.
4593 (break_command_1, handle_gnu_v3_exceptions, trace_command)
4594 (ftrace_command, strace_command): Adjust.
4595 (create_tracepoint_from_upload): Pass
4596 CREATE_BREAKPOINT_FLAGS_INSERTED.
4597 * breakpoint.h (enum breakpoint_create_flags): New.
4598 (create_breakpoint): New flags parameter.
4599 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
4600 * python/py-breakpoint.c (bppy_init): Adjust.
4601 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
4602 * spu-tdep.c (spu_catch_start): Adjust.
4603
1e51243a
PA
46042012-03-13 Pedro Alves <palves@redhat.com>
4605 Hui Zhu <teawater@gmail.com>
4606 Yao Qi <yao@codesourcery.com>
4607
4608 * remote.c (struct remote_state): New field `starting_up'.
4609 (remote_start_remote): Set and clear it.
4610 (remote_can_download_tracepoint): If starting up, return false.
4611
fa3064dd
YQ
46122012-03-13 Yao Qi <yao@codesourcery.com>
4613
4614 * inferior.h (struct inferior): Remove fields any_syscall_count,
4615 syscalls_counts and total_syscalls_count. Move them to new
4616 struct catch_syscall_inferior_data in breakpoint.c.
4617 * breakpoint.c: Call DEF_VEC_I(int).
4618 (struct catch_syscall_inferior_data): New.
4619 (get_catch_syscall_inferior_data): New.
4620 (catch_syscall_inferior_data_cleanup): New.
4621 (insert_catch_syscall): Update to access data in
4622 struct catch_syscall_inferior_data.
4623 (insert_catch_syscall): Likewise.
4624 (remove_catch_syscall): Likewise.
4625 (remove_catch_syscall): Likewise.
4626 (is_syscall_catchpoint_enabled): Likewise.
4627 (add_catch_command): Likewise.
4628 (_initialize_breakpoint): Register cleanup.
4629 * breakpoint.h: Removed DEF_VEC_I(int).
4630 * dwarf2loc.c: Call DEF_VEC_I(int).
4631 * mi/mi-main.c: Likewise.
4632
460fac3c
MK
46332012-03-12 Mark Kettenis <kettenis@gnu.org>
4634
4635 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
4636
e1aca11e
JB
46372012-03-12 Chris January <chris.january@allinea.com>
4638
4639 * aix-thread.c (_initialize_aix_thread): Add prototype.
4640 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
4641 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
4642
649c7061
JB
46432012-03-12 Joel Brobecker <brobecker@adacore.com>
4644
4645 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
4646 include of "amd64-nat.h".
4647
0b49e518
TT
46482012-03-12 Tom Tromey <tromey@redhat.com>
4649
4650 * buildsym.c (record_pending_block): Now static.
4651 * buildsym.h: (record_pending_block): Remove.
4652
fd24fa94
AT
46532012-03-12 Andreas Tobler <andreast@fgznet.ch>
4654
4655 * amd64bsd-nat.c: Include amd64bsd-nat.h.
4656
ba919b58
TT
46572012-03-09 Tom Tromey <tromey@redhat.com>
4658
4659 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
4660 producer_is_gxx_lt_4_6>: New fields.
4661 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
4662
a48e046c
TT
46632012-03-09 Tom Tromey <tromey@redhat.com>
4664
4665 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
4666
6f5e9362
JB
46672012-03-08 Joel Brobecker <brobecker@adacore.com>
4668
4669 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
4670 prototype.
4671
8d037db9
JB
46722012-03-08 Joel Brobecker <brobecker@adacore.com>
4673
4674 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
4675
4e841acf
JK
46762012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4677
4678 Fix -Wmissing-prototypes build.
4679 * arm-linux-nat.c (get_thread_id): Make it static.
4680 * xtensa-linux-nat.c (get_thread_id): Likewise.
4681
c6030312
JB
46822012-03-08 Joel Brobecker <brobecker@adacore.com>
4683
4684 * server.c (process_point_options): If a conditional expression
4685 is found, only print a message if remote_debug is nonzero.
4686
52323be9
LM
46872012-03-08 Luis Machado <lgustavo@codesourcery.com>
4688
4689 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
4690 of internal error for unknown/unsupported types.
4691
7fe25d9b
JK
46922012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4693
4694 Fix CU relative vs. absolute DIE offsets.
4695 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
4696 offset to offset_in_cu.
4697 * dwarf2read.c (process_enumeration_scope): Add CU offset to
4698 TYPE_OFFSET.
4699 (dwarf2_fetch_die_location_block): Rename parameter offset to
4700 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
4701
05e7c244
JK
47022012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4703
4704 * libunwind-frame.c: Rename to ...
4705 * ia64-libunwind-tdep.c: ... here.
4706 * libunwind-frame.h: Rename to ...
4707 * ia64-libunwind-tdep.h: ... here.
4708 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
4709 ia64-libunwind-tdep.h.
4710 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
4711 * README (--with-libunwind): Rename to ...
4712 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
4713 * config.in: Regenerate.
4714 * configure: Regenerate.
4715 * configure.ac: New option --with-libunwind-ia64, make the
4716 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
4717 Remove AC_DEFINE for HAVE_LIBUNWIND.
4718 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
4719 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
4720 Rename libunwind-frame in the general comment.
4721 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
4722 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
4723 Move forward declarations inside #ifndef. Rename libunwind-frame in
4724 the general comment.
4725 * ia64-tdep.c: Rename libunwind-frame.h #include to
4726 ia64-libunwind-tdep.h.
4727 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
4728 (ia64_libunwind_descr): Rename libunwind-frame to
4729 ia64-libunwind-tdep in these function comments.
4730 * ia64-tdep.h: Rename libunwind-frame.h #include to
4731 ia64-libunwind-tdep.h.
4732 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
4733 ia64-libunwind-tdep in that data comment.
4734
3755cbfd
JK
47352012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
4736
4737 * libunwind-frame.h (struct frame_unwind): New declaration.
4738
d1cda5d9
JB
47392012-03-08 Joel Brobecker <brobecker@adacore.com>
4740
4741 * breakpoint.c (_initialize_breakpoint): Fix error in help of
4742 "set breakpoint condition-evaluation" command.
4743
a0ba0aa2
TG
47442012-03-08 Tristan Gingold <gingold@adacore.com>
4745
4746 * sparc-stub.c: Move to stubs/
4747 * sh-stub.c: Likewise.
4748 * m68k-stub.c: Likewise.
4749 * m32r-stub.c: Likewise.
4750 * i386-stub.c: Likewise.
4751
7b8b6d6d
AS
47522012-03-08 Andreas Schwab <schwab@linux-m68k.org>
4753
007cafee
AS
4754 * m68klinux-tdep.c (m68k_linux_init_abi): Register
4755 linux_get_siginfo_type.
4756
7b8b6d6d
AS
4757 * m68klinux-nat.c: Include "gdb_proc_service.h".
4758 (PTRACE_GET_THREAD_AREA): Define.
4759 (ps_get_thread_area): New function.
4760
bba74b36
YQ
47612012-03-08 Yao Qi <yao@codesourcery.com>
4762
4763 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
4764 `xsnprintf'.
4765 (remote_query_attached): Likewise.
4766 (remote_static_tracepoint_marker_at): Likewise.
4767 (remote_set_permissions): Likewise.
4768 (remote_detach_1, extended_remote_attach_1): Likewise.
4769 (send_g_packet, remote_vkill): Likewise.
4770 (extended_remote_disable_randomization): Likewise.
4771 (remote_add_target_side_condition): Likewise.
4772 (remote_insert_breakpoint): Likewise.
4773 (remote_remove_breakpoint): Likewise.
4774 (remote_insert_watchpoint): Likewise.
4775 (remote_remove_watchpoint): Likewise.
4776 (remote_insert_hw_breakpoint): Likewise.
4777 (remote_insert_hw_breakpoint): Likewise.
4778 (remote_remove_hw_breakpoint): Likewise.
4779 (remote_download_command_source): Likewise.
4780 (remote_download_tracepoint): Likewise.
4781 (remote_download_trace_state_variable): Likewise.
4782 (remote_disable_tracepoint): Likewise.
4783 (remote_trace_set_readonly_regions): Likewise.
4784 (remote_get_tracepoint_status): Likewise.
4785 (remote_trace_find): Likewise.
4786 (remote_get_trace_state_variable_value): Likewise.
4787 (remote_set_disconnected_tracing): Likewise.
4788 (remote_set_circular_trace_buffer): Likewise.
4789 (remote_get_min_fast_tracepoint_insn_len): Likewise.
4790 (remote_use_agent): Likewise.
4791 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
4792 Update callers.
4793
9b224c5e
PA
47942012-03-07 Pedro Alves <palves@redhat.com>
4795
4796 * NEWS: Mention QProgramSignals.
4797 * inferior.h (update_signals_program_target): Declare.
4798 * infrun.c: (update_signals_program_target): New.
4799 (handle_command): Update the target of the new program signals
4800 array changes.
4801 * remote.c (PACKET_QProgramSignals): New enum.
4802 (last_program_signals_packet): New global.
4803 (remote_program_signals): New.
4804 (remote_start_remote): Update the target with the program signals
4805 list.
4806 (remote_protocol_features): Add entry for QPassSignals.
4807 (remote_open_1): Free anc clear last_program_signals_packet.
4808 (init_remote_ops): Install remote_program_signals.
4809 * target.c (update_current_target): Adjust.
4810 (target_program_signals): New.
4811 * target.h (struct target_ops) <to_program_signals>: New field.
4812 (target_program_signals): Declare.
4813
74c48cbb
PA
48142012-03-07 Pedro Alves <palves@redhat.com>
4815
4816 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
4817 extensions.
4818
0c13fc49
AS
48192012-03-07 Andreas Schwab <schwab@linux-m68k.org>
4820
4821 * m68klinux-nat.c (getregs_supplies): Make static.
4822 (getfpregs_supplies): Likewise.
4823 (have_ptrace_getregs): Likewise.
4824
1281d2a3
JB
48252012-03-06 Joel Brobecker <brobecker@adacore.com>
4826
4827 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
4828 in call to get_die_type_at_offset.
4829
2b03b41d
SS
48302012-03-06 Stan Shebs <stan@codesourcery.com>
4831
4832 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
4833 * mi/mi-cmd-disas.c: Ditto.
4834 * mi/mi-cmd-env.c: Ditto.
4835 * mi/mi-cmd-file.c: Ditto.
4836 * mi/mi-cmd-stack.c: Ditto.
4837 * mi/mi-cmd-target.c: Ditto.
4838 * mi/mi-cmd-var.c: Ditto.
4839 * mi/mi-cmds.c: Ditto.
4840 * mi/mi-cmds.h: Ditto.
4841 * mi/mi-console.c: Ditto.
4842 * mi/mi-getopt.c: Ditto.
4843 * mi/mi-getopt.h: Ditto.
4844 * mi/mi-interp.c: Ditto.
4845 * mi/mi-main.c: Ditto.
4846 * mi/mi-out.c: Ditto.
4847 * mi/mi-parse.c: Ditto.
4848 * mi/mi-parse.h: Ditto.
4849 * mi/mi-symbol-cmds.c: Ditto.
4850
4851 * mi/mi-getopt.h: Move mi_opt struct up.
4852 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
4853 return.
4854 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
4855
c988ad87
TT
48562012-03-06 Tom Tromey <tromey@redhat.com>
4857
4858 * proc-service.c (ps_pglobal_lookup): Set the current program
4859 space.
4860
1b7c1b10
PA
48612012-03-06 Pedro Alves <palves@redhat.com>
4862
4863 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
4864
3c182069
JB
48652012-03-05 Joel Brobecker <brobecker@adacore.com>
4866
4867 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
4868
2e794194
JK
48692012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4870
4871 Code cleanup.
4872 * common/linux-osdata.c (linux_common_core_of_thread): New function
4873 comment.
4874 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
4875 call by linux_common_core_of_thread.
4876 (linux_nat_core_of_thread_1): Remove.
4877 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
4878 * linux-thread-db.c: Include linux-osdata.h.
4879 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
4880 linux_common_core_of_thread.
4881
9f9f1f31
TT
48822012-03-05 Tom Tromey <tromey@redhat.com>
4883
4884 * value.c (value_primitive_field): Don't fetch contents for
4885 non-virtual bases.
4886
b7b189f3
TT
48872012-03-05 Tom Tromey <tromey@redhat.com>
4888
4889 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
4890
05b8a789 48912012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 4892
5538f557
JB
4893 * s390-nat.c: Include "gregset.h".
4894
75528772
JK
48952012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
4896
4897 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
4898 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
4899 (libunwind_load): New variable so_error, use it for dlerror. Try to
4900 load also LIBUNWIND_SO_7.
4901
275418ae
PA
49022012-03-05 Pedro Alves <palves@redhat.com>
4903
4904 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
4905 is not NULL, and remove resulting dead code.
4906
5cbb9812
TS
49072012-03-05 Thomas Schwinge <thomas@codesourcery.com>
4908
4909 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
4910 prologue to sh_analyze_prologue.
4911 (sh_analyze_prologue): Make better use of such an upper limit, and
4912 generally be more cautious about accessing memory.
4913
541515ad
TT
49142012-03-05 Tom Tromey <tromey@redhat.com>
4915
4916 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
4917 _initialize_ia64_hpux_tdep.
4918
b4d36fb8
PA
49192012-03-05 Pedro Alves <palves@redhat.com>
4920
24490249
PA
4921 PR gdb/13766
4922
b4d36fb8
PA
4923 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
4924 the register state is clear, supply explicit zero, instead of
4925 marking the register unavailable.
4926
60c9a3c0
TG
49272012-03-05 Tristan Gingold <gingold@adacore.com>
4928
4929 * NEWS: Mention OpenVMS ia64 new target.
4930
696759ad
TG
49312012-03-05 Tristan Gingold <gingold@adacore.com>
4932
4933 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
4934 (ia64_unw_accessors, ia64_unw_rse_accessors)
4935 (ia64_libunwind_descr): Declare.
4936 * ia64-vms-tdep.c: New file.
4937 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
4938 (ia64_libunwind_descr): Make them public.
4939 * configure.tgt: Add ia64-*-*vms*.
4940 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
4941 (ALLDEPFILES): Add ia64-vms-tdep.c
4942
34864976
TG
49432012-03-05 Tristan Gingold <gingold@adacore.com>
4944
169081d0
TG
4945 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
4946 * remote.c (PACKET_qXfer_uib): New enum value.
4947 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
4948 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
4949 (_initialize_remote): Call add_packet_config_cmd for
4950 xfer:uib packet.
4951
49522012-03-05 Tristan Gingold <gingold@adacore.com>
4953
4954 * osabi.c (gdb_osabi_names): Add OpenVMS.
4955 (generic_elf_osabi_sniffer): Likewise.
4956 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 4957
6597b100
JK
49582012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
4959
4960 Removed unused code.
4961 * libunwind-frame.c (libunwind_frame_unwind)
4962 (libunwind_frame_base_address): Remove.
4963 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
4964
87399aa1
YQ
49652012-03-04 Yao Qi <yao@codesourcery.com>
4966
4967 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
4968 remove trailing new line.
4969 (agent_run_command, agent_run_command): Add _ markup.
4970 (agent_capability_check): Likewise.
4971
abf1152a
JK
49722012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
4973
4974 * breakpoint.c (set_condition_evaluation_mode): Set
4975 CONDITION_EVALUATION_MODE unconditionally.
4976
5808517f
YQ
49772012-03-03 Yao Qi <yao@codesourcery.com>
4978
4979 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
4980 * common/agent.h: Update declaration.
4981 * inf-child.c (inf_child_use_agent): New.
4982 (inf_child_can_use_agent): New.
4983 (inf_child_target): Initialize fields `to_use_agent'
4984 and `to_can_use_agent'.
4985 * agent.c (agent_new_objfile): New.
89b7509a 4986 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
4987 observer.
4988
4989 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
4990 New.
89b7509a 4991 (linux_target_install_ops): Initialize field
5808517f
YQ
4992 `to_static_tracepoint_markers_by_strid'.
4993 * remote.c (free_current_marker): Move it to ...
4994 * tracepoint.c (free_current_marker): ... here. New.
4995 (cleanup_target_stop): New.
4996 * tracepoint.h: Declare free_current_marker.
4997 * NEWS: Add one entry about `info static-tracepoint-marker'.
4998
58b4daa5
YQ
49992012-03-03 Yao Qi <yao@codesourcery.com>
5000
5001 * common/agent.c (agent_loaded_p): New.
89b7509a 5002 (agent_look_up_symbols): New global.
58b4daa5
YQ
5003 * common/agent.h: Declare agent_loaded_p.
5004
8ffcbaaf
YQ
50052012-03-03 Yao Qi <yao@codesourcery.com>
5006
5007 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
5008 (agent_capability_check, agent_capability_invalidate): New.
5009 (symbol_list): New array element.
5010 * common/agent.h (enum agent_capa): New.
5011 * target.c (target_pre_inferior): Call agent_capability_invalidate.
5012
d1feda86
YQ
50132012-03-03 Yao Qi <yao@codesourcery.com>
5014
5015 * target.h (struct target_ops) <to_use_agent>: New field.
5016 (struct target_ops) <to_can_use_agent>: New field.
5017 (target_use_agent, target_can_use_agent): New macro.
5018 * target.c (update_current_target): Update.
5019 * remote.c: New enum `PACKET_QAgent'.
5020 (remote_protocol_features): Add a new element.
5021 (remote_use_agent, remote_can_use_agent): New.
5022 (init_remote_ops): Initialize field `can_use_agent' with
5023 remote_can_use_agent. Intiailize field `use_agent' with
5024 remote_use_agent.
5025 * common/agent.c (use_agent): New global.
5026 * common/agent.h: Declare it.
5027 * tracepoint.c (info_static_tracepoint_markers_command): Add
5028 comment.
5029 * Makefile.in (SFILES): Add common/agent.c and agent.c.
5030 (COMMON_OBS): Add common/agent.o and agent.o
5031 (common-agent.o): New rule.
5032 * agent.c: New.
5033
2fa291ac
YQ
50342012-03-03 Yao Qi <yao@codesourcery.com>
5035
5036 * common/agent.c: New.
5037 * common/agent.h: New.
5038 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
5039 AC_CHECK_HEADERS.
5040 * configure, configh.in: Regenerated.
5041
9fc05685
KB
50422012-03-02 Kevin Buettner <kevinb@redhat.com>
5043
5044 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
5045 unless it exists for this architecture.
5046
a5ee536b
JB
50472012-03-02 Joel Brobecker <brobecker@adacore.com>
5048
5049 * language.h (struct language_defn): New "method" la_read_var_value.
5050 * findvar.c: #include "language.h".
5051 (default_read_var_value): Renames read_var_value. Rewrite
5052 function description.
5053 (read_var_value): New function.
5054 * value.h (default_read_var_value): Add prototype.
5055 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
5056 New functions.
5057 (ada_language_defn): Add entry for la_read_var_value.
5058 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
5059 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
5060 language_defn structures to add entry for new la_read_var_value
5061 field.
5062
f59f708a
PA
50632012-03-02 Tom Tromey <tromey@redhat.com>
5064 Pedro Alves <palves@redhat.com>
5065
5066 PR breakpoints/13776:
5067 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
5068 breakpoints.
5069 (delete_longjmp_breakpoint_at_next_stop): New.
5070 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
5071 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
5072 before deleting the inferior. Add comments.
5073 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
5074 breakpoints immediately, but only on next stop. Move that code
5075 next to where we mark other breakpoints for deletion.
5076
44099a67
JB
50772012-03-02 Joel Brobecker <brobecker@adacore.com>
5078
5079 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
5080 marker.
5081 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
5082 violation.
5083
2a2ef594
PA
50842012-03-02 Pedro Alves <palves@redhat.com>
5085
5086 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
5087
b261e0c5
UW
50882012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
5089
5090 Fix -Wmissing-prototypes build.
5091 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
5092 * remote-sim.c (gdbsim_has_all_memory): Likewise.
5093 (gdbsim_has_memory): Likewise.
5094
a95babbf
YQ
50952012-03-02 Yao Qi <yao@codesourcery.com>
5096
5097 Fix -Wmissing-prototypes build.
5098 * charset.c (phony_iconv_open): Make static.
5099 (phony_iconv_close, phony_iconv): Likewise.
5100 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
5101 * i386-windows-nat.c (_initialize_i386_windows_nat): New
5102 prototype.
5103 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
5104 * ser-mingw.c (create_select_thread): Make static.
5105 * windows-termcap.c (tgetent): New prototype.
5106 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
5107
d603d4b3
JK
51082012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
5109
5110 Fix -Wmissing-prototypes build.
5111 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
5112 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
5113 (_initialize_loadable): New prototypes.
5114
7fb3ad1f
DE
51152012-03-02 Doug Evans <dje@google.com>
5116
5117 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
5118 abbrev table, read_comp_unit will do it.
5119
693be288
JK
51202012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5121
5122 Fix -Wmissing-prototypes build.
5123 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
5124 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
5125 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
5126 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
5127 (_initialize_arm_symbian_tdep): New prototype.
5128 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
5129 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
5130 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
5131 static.
5132 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
5133 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
5134 prototype.
5135 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
5136 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
5137 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
5138 static.
5139 * moxie-tdep.c (moxie_process_record): Likewise.
5140 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
5141 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
5142 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
5143 (_initialize_rl78_tdep): New prototype.
5144 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
5145 (_initialize_rx_tdep): New prototype.
5146 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
5147 (_initialize_darwin_solib): New prototype.
5148 * solib-spu.c: Include solib-spu.h.
5149 (_initialize_spu_solib): New prototype.
5150 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
5151 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
5152 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
5153 (tic6x_software_single_step): Make it static.
5154 (_initialize_tic6x_tdep): New prototype.
5155
638234e5
JK
51562012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
5157
5158 Fix -Wmissing-prototypes build.
5159 * cris-tdep.c (cris_can_use_hardware_watchpoint)
5160 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
5161
f4a6f16d
JK
51622012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5163
5164 Fix -Wmissing-prototypes build.
5165 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
5166 (frv_have_stopped_data_address): Remove.
5167
04dcf5fa
JK
51682012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
5169
5170 Fix -Wmissing-prototypes build.
5171 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
5172 * sh-tdep.c: Include sh64-tdep.h.
5173 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
5174 * sh64-tdep.c: Include sh64-tdep.h.
5175 * sh64-tdep.h: New file.
5176
19080931
MR
51772012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5178
5179 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
5180
9aac7884
MR
51812012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5182
5183 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
5184 sp_regnum once the gdbarch_init_osabi hook has been called.
5185
a385295e
MR
51862012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
5187
5188 * mips-tdep.c (mips32_bc1_pc): New function.
5189 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
5190 BPOSGE32 and BPOSGE64 instructions.
5191 (deal_with_atomic_sequence): Likewise.
5192 (mips32_instruction_has_delay_slot): Likewise.
5193
1faeff08 51942012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
5195 Chris Dearman <chris@mips.com>
5196 Maciej W. Rozycki <macro@codesourcery.com>
5197 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
5198
5199 * features/mips-dsp.xml: New file.
5200 * features/mips64-dsp.xml: New file.
5201 * features/mips-dsp-linux.xml: New file.
5202 * features/mips64-dsp-linux.xml: New file.
5203 * features/Makefile (WHICH): Add mips-dsp-linux and
5204 mips64-dsp-linux.
5205 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
5206 * features/mips-dsp-linux.c: New file.
5207 * features/mips64-dsp-linux.c: New file.
5208 * regformats/mips-dsp-linux.dat: New file.
5209 * regformats/mips64-dsp-linux.dat: New file.
5210 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
5211 registers.
5212 (mips64_linux_register_addr): Likewise.
5213 (mips64_linux_regsets_fetch_registers): Likewise.
5214 (mips64_linux_regsets_store_registers): Likewise.
5215 (mips64_linux_fetch_registers): Update call to
5216 mips64_linux_regsets_fetch_registers.
5217 (mips64_linux_store_registers): Update call to
5218 mips64_linux_regsets_store_registers.
5219 (mips_linux_read_description): Probe for DSP registers.
5220 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
5221 and initialize_tdesc_mips64_dsp_linux.
5222 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
5223 Remove padding of no longer used embedded register slots.
5224 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
5225 (MIPS_RESTART_REGNUM): Redefine enum value.
5226 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
5227 strings.
5228 (mips_tx39_reg_names): Likewise.
5229 (mips_linux_reg_names): New array of register names for Linux
5230 targets.
5231 (mips_register_name): Check for a null pointer in
5232 mips_processor_reg_names and return an empty string.
5233 (mips_register_type): Exclude embedded registers for the IRIX
5234 and Linux ABIs.
5235 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
5236 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
5237 DSP registers.
5238 (mips_stab_reg_to_regnum): Handle DSP accumulators.
5239 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
5240 (mips_gdbarch_init): Likewise. Initialize internal register
5241 indices for the Linux ABI. Use dynamic numbers to refer to
5242 registers, as applicable, while parsing the target description.
5243 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
5244
263689d8
JB
52452012-03-01 Joel Brobecker <brobecker@adacore.com>
5246
5247 * frame.h (read_frame_register_unsigned): Fix typo in function
5248 description.
5249
f3b4f45c
PA
52502012-03-01 Pedro Alves <palves@redhat.com>
5251
5252 * jit-reader.in [!__cplusplus]
5253 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
5254
b03a2011
PA
52552012-03-01 Pedro Alves <palves@redhat.com>
5256
5257 * configure.ac (build_warnings): Add -Wmissing-prototypes.
5258 * configure: Regenerate.
5259
70221824
PA
52602012-03-01 Pedro Alves <palves@redhat.com>
5261
5262 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
5263 * breakpoint.c (create_exception_master_breakpoint, trace_command)
5264 (ftrace_command, strace_command): Make static.
5265 * d-lang.c (_initialize_d_language): Declare.
5266 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
5267 * dwarf2loc.c (_initialize_dwarf2loc):
5268 * dwarf2read.c (process_psymtab_comp_unit): Make static.
5269 * exec.c (exec_get_section_table): Make static.
5270 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
5271 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
5272 * inferior.c (remove_inferior_command, add_inferior_command)
5273 (clone_inferior_command): Make static.
5274 * linux-nat.c (linux_nat_thread_address_space)
5275 (linux_nat_core_of_thread): Make static.
5276 * linux-tdep.c (_initialize_linux_tdep): Declare.
5277 * objc-lang.c (_initialize_objc_lang): Declare.
5278 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
5279 Make static.
5280 (_initialize_opencl_language): Declare.
5281 * record.c (_initialize_record): Declare.
5282 * remote.c (demand_private_info, remote_get_tib_address)
5283 (remote_supports_cond_tracepoints)
5284 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
5285 Make static.
5286 * skip.c (_initialize_step_skip): Declare.
5287 * symtab.c (skip_prologue_using_lineinfo): Make static.
5288 * tracepoint.c (delete_trace_state_variable)
5289 (trace_variable_command, delete_trace_variable_command)
5290 (get_uploaded_tsv, find_matching_tracepoint_location)
5291 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
5292 Make static.
5293 * value.c (pack_unsigned_long): Make static.
5294 * varobj.c (varobj_ensure_python_env): Make static.
5295 * windows-tdep.c (_initialize_windows_tdep): Declare.
5296 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
5297
33fbcbee
PA
52982012-03-01 Pedro Alves <palves@redhat.com>
5299
5300 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
5301 gdbarch parameter.
5302 (linux_init_abi): Install it as has_shared_address_space gdbarch
5303 callback.
5304
44d0cd3b
PA
53052012-03-01 Pedro Alves <palves@redhat.com>
5306
5307 * observer.c (observer_test_first_notification_function)
5308 (observer_test_second_notification_function)
5309 (observer_test_third_notification_function): Add declarations.
5310
ed01b82c
PA
53112012-03-01 Pedro Alves <palves@redhat.com>
5312
5313 * common/signals.c (default_target_signal_to_host)
5314 (default_target_signal_from_host): Move ...
5315 * arch-utils.c: ... here.
5316 * arch-utils.h (default_target_signal_to_host)
5317 (default_target_signal_from_host): Declare.
5318
5319 * common/signals.c (target_signal_from_command): Move ...
5320 * infrun.c: ... here.
5321 * inferior.h (target_signal_from_command): Declare.
5322 * target.h (target_signal_from_command)
5323 (default_target_signal_from_host, default_target_signal_to_host):
5324 Delete declarations.
5325
5326 * common/signals.c (_initialize_signals): Delete.
5327
c9b87335
PA
53282012-03-01 Pedro Alves <palves@redhat.com>
5329
5330 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
5331 both __cplusplus and !__cplusplus.
5332
9340a6c0
PA
53332012-03-01 Pedro Alves <palves@redhat.com>
5334
5335 * psymtab.c (find_and_open_source): Delete declaration.
5336 * source.c (find_and_open_source): Move comment ...
5337 * source.h (find_and_open_source): ... to this new declaration.
5338
e451c4a1
PA
53392012-03-01 Pedro Alves <palves@redhat.com>
5340
5341 * inline-frame.c: Include inline-frame.h.
5342
983fb104
PA
53432012-03-01 Pedro Alves <palves@redhat.com>
5344
5345 * tui/tui-data.c (set_gen_win_origin): Delete.
5346 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
5347 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
5348
5fbce5df
PA
53492012-03-01 Pedro Alves <palves@redhat.com>
5350
5351 * remote.c (encode_actions): Delete declaration.
5352 * tracepoint.c (encode_actions): Make extern.
5353 * tracepoint.h (encode_actions): Declare.
5354
49a8461d
PA
53552012-03-01 Pedro Alves <palves@redhat.com>
5356
5357 * python/py-breakpoint.c: Include python.h.
5358 * python/py-continueevent.c (create_continue_event_object): Make
5359 static.
5360 * python/py-lazy-string.c (stpy_get_type): Make static.
5361 * python/py-newobjfileevent.c (create_new_objfile_event_object):
5362 Make static.
5363 * python/py-utils.c (unicode_to_target_python_string): Make
5364 static.
5365 * python/py-value.c: Include python.h.
5366
9079102f
PA
53672012-03-01 Pedro Alves <palves@redhat.com>
5368
5369 * inferior.c (delete_threads_of_inferior): Delete.
5370
a298c5e8
PA
53712012-03-01 Pedro Alves <palves@redhat.com>
5372
5373 Import fallback definitions from glibc.
5374
5375 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
5376 ps_prochandle): Forward declare.
5377 (ps_err_e): Use glibc's comments.
5378 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
5379 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
5380 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
5381 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
5382 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
5383 (struct ps_prochandle): Adjust comment.
5384
e3084549
PA
53852012-03-01 Pedro Alves <palves@redhat.com>
5386
5387 * ada-lang.c (ada_modulus_from_name): Delete.
5388 * ada-lex.l (lexer_init): Make static.
5389
ad5f7d6e
PA
53902012-03-01 Pedro Alves <palves@redhat.com>
5391
5392 PR gdb/13767
5393
5394 * frame.c (read_frame_register_unsigned): New.
5395 * frame.h (read_frame_register_unsigned): Declare.
5396 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
5397 Handle it.
5398 (print_i387_control_word): New parameter `control_p'. Handle it.
5399 (i387_print_float_info): Handle unavailable float registers.
5400
e0a4d108
KS
54012012-03-01 Keith Seitz <keiths@redhat.com>
5402
5403 * linespec.c (decode_line_2): Sort the list of methods
5404 alphabetically before presenting the user with a selection
5405 menu.
5406
122d1940
DE
54072012-03-01 Doug Evans <dje@google.com>
5408
5409 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
5410 has_namespace_info.
5411 (dwarf2_read_abbrevs): Remove corresponding initialization.
5412
7d74f244
DE
54132012-03-01 Scott J. Goldman <scottjg@vmware.com>
5414
5415 * NEWS: Mention new python command class gdb.COMMAND_USER.
5416 * cli/cli-cmds.c (show_user): Print error when used on a python
5417 command.
5418 (init_cli_cmds): Update documentation strings for "show user" and
5419 "set/show max-user-call-depth" to clarify that it does not apply to
5420 python commands.
5421 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
5422 error check.
5423 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
5424 gdb python api.
5425 * top.c (execute_command): Only execute a user-defined command as a
5426 legacy macro if c->user_commands is set.
5427
e88acd96
TT
54282012-03-01 Tom Tromey <tromey@redhat.com>
5429
5430 * valprint.h (struct generic_val_print_decorations): New.
5431 (generic_val_print): Declare.
5432 * valprint.c (generic_val_print): New function.
5433 * p-valprint.c (p_decorations): New global.
5434 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
5435 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
5436 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
5437 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
5438 * m2-valprint.c (m2_decorations): New global.
5439 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
5440 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
5441 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
5442 TYPE_CODE_ERROR>: Call generic_val_print.
5443 * f-valprint.c (f_decorations): New global.
5444 (f_val_print): Use print_function_pointer_address.
5445 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
5446 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
5447 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
5448 generic_val_print.
5449 * c-valprint.c (c_decorations): New global.
5450 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
5451 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
5452 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
5453 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
5454 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
5455 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
5456 case.
5457
d3eab38a
TT
54582012-03-01 Tom Tromey <tromey@redhat.com>
5459
5460 * valprint.c (val_print): Update.
5461 * p-valprint (pascal_val_print): Return void.
5462 * p-lang.h (pascal_val_print): Return void.
5463 * m2-valprint.c (m2_val_print): Return void.
5464 * m2-lang.h (m2_val_print): Return void.
5465 * language.h (struct language_defn) <la_val_print>: Return void.
5466 * language.c (unk_lang_val_print): Return void.
5467 * jv-valprint.c (java_val_print): Return void.
5468 * jv-lang.h (java_val_print): Return void.
5469 * f-valprint.c (f_val_print): Return void.
5470 * f-lang.h (f_val_print): Return void.
5471 * d-valprint.c (d_val_print): Return void.
5472 (dynamic_array_type): Update.
5473 * d-lang.h (d_val_print): Return void.
5474 * c-valprint.c (c_val_print): Return void.
5475 * c-lang.h (c_val_print): Return void.
5476 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
5477 void.
5478 * ada-lang.h (ada_val_print): Return void.
5479
35c0084b
TT
54802012-03-01 Tom Tromey <tromey@redhat.com>
5481
5482 * value.h (val_print): Return void.
5483 * valprint.c (val_print): Return void.
5484
a1f5dd1b
TT
54852012-03-01 Tom Tromey <tromey@redhat.com>
5486
5487 * value.h (common_val_print): Return void.
5488 * valprint.c (common_val_print): Return void.
5489
8e069a98
TT
54902012-03-01 Tom Tromey <tromey@redhat.com>
5491
5492 * value.h (value_print): Return void.
5493 * valprint.c (value_print): Return void.
5494 * p-valprint.c (pascal_value_print): Return void.
5495 * p-lang.h (pascal_value_print): Return void.
5496 * language.h (struct language_defn) <la_value_print>: Return
5497 void.
5498 * language.c (unk_lang_value_print): Return void.
5499 * jv-valprint.c (java_value_print): Return void.
5500 * jv-lang.h (java_value_print): Return void.
5501 * f-valprint.c (c_value_print): Don't declare.
5502 Include c-lang.h.
5503 * c-valprint.c (c_value_print): Return void.
5504 * c-lang.h (c_value_print): Return void.
5505 * ada-valprint.c (ada_value_print): Return void.
5506 * ada-lang.h (ada_value_print): Return void.
5507
be335936
TT
55082012-03-01 Tom Tromey <tromey@redhat.com>
5509
5510 * value.c (value_primitive_field): Handle virtual base classes.
5511
b0db66a7
TT
55122012-03-01 Tom Tromey <tromey@redhat.com>
5513
5514 * gdbtypes.h (struct vbase): Remove.
5515
132c57b4
TT
55162012-03-01 Tom Tromey <tromey@redhat.com>
5517
5518 * c-valprint.c (print_function_pointer_address): Move...
5519 * valprint.c: ... here. Make non-static.
5520 * m2-valprint.c (print_function_pointer_address): Remove.
5521 * valprint.h (print_function_pointer_address): Declare.
5522
e41eec66
JB
55232012-03-01 Joel Brobecker <brobecker@adacore.com>
5524
5525 * NEWS: Document the fact that one can provide a condition when
5526 creating an Ada exception catchpoint.
5527
19c37f24
TT
55282012-03-01 Tom Tromey <tromey@redhat.com>
5529
5530 * valprint.c (val_print_type_code_flags): Fix placement of
5531 trailing brace.
5532
f0fed3a3
JB
55332012-03-01 Joel Brobecker <brobecker@adacore.com>
5534
5535 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
5536 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
5537 environment variable before calling update-copyright.
5538
8ba85d85
JB
55392012-03-01 Joel Brobecker <brobecker@adacore.com>
5540
5541 * gnulib/extra/update-copyright: Update to the latest from
5542 gnulib's git repository.
5543 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
5544 variable to 2 instead of 1.
5545
8219b1e8
JB
55462012-02-29 Joel Brobecker <brobecker@adacore.com>
5547
5548 * varobj.c (c_value_of_variable): Remove dead code.
5549
718cb7da
JB
55502012-02-29 Joel Brobecker <brobecker@adacore.com>
5551
5552 * ada-lex.p (processId): Do not modify already encoded IDs.
5553 Update function documentation.
5554
739593e0
JB
55552012-02-29 Joel Brobecker <brobecker@adacore.com>
5556
5557 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
5558 "name" with "struct symbol *name_sym".
5559 * ada-exp.y (write_var_or_type): Update call to
5560 ada_find_renaming_symbol.
5561 "name" with "struct symbol *name_sym". Adjust Implementation
5562 accordingly. Adjust the function documentation.
5563
852dff6c
JB
55642012-02-29 Joel Brobecker <brobecker@adacore.com>
5565
5566 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
5567 * ada-lang.c (ada_find_any_type): Add advance declaration.
5568 Make static. Replace ada_find_any_symbol by
5569 ada_find_any_type_symbol.
5570 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
5571 Improve function description. Make static.
5572 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
5573 Replace ada_find_any_symbol by ada_find_any_type_symbol.
5574
1b611343
JB
55752012-02-29 Joel Brobecker <brobecker@adacore.com>
5576
5577 * ada-lang.c (struct tag_args): Delete.
5578 (ada_get_tsd_type): Function body moved up in source file.
5579 (ada_tag_name_1, ada_tag_name_2): Delete.
5580 (ada_get_tsd_from_tag): New function.
5581 (ada_tag_name_from_tsd): New function.
5582 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
5583 to determine the tag name.
5584
41246937
JB
55852012-02-29 Joel Brobecker <brobecker@adacore.com>
5586
5587 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
5588 declaration.
5589 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
5590 function.
5591
ffde82bf
JB
55922012-02-29 Joel Brobecker <brobecker@adacore.com>
5593
5594 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
5595
2ad01556
JB
55962012-02-29 Joel Brobecker <brobecker@adacore.com>
5597
5598 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
5599 full searches.
5600
99b1c762
JB
56012012-02-29 Joel Brobecker <brobecker@adacore.com>
5602
5603 * ada-lang.c (constrained_packed_array_type): If there is a
5604 parallel XA type, use it to determine the array index type.
5605
2d4a02ee
JB
56062012-02-29 Joel Brobecker <brobecker@adacore.com>
5607
5608 * ada-valprint.c (ada_val_print_1): If our value is a reference
5609 to an array descriptor, dereference it before converting it
5610 to a simple array.
5611
c48db5ca
JB
56122012-02-29 Joel Brobecker <brobecker@adacore.com>
5613
5614 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
5615 creating fixed value.
5616 (ada_value_ind, ada_coerce_ref, assign_component)
5617 (ada_evaluate_subexp): Remove call to unwrap_value before
5618 call to ada_to_fixed_value.
5619
2e6fda7d
JB
56202012-02-29 Joel Brobecker <brobecker@adacore.com>
5621
5622 * ada-lang.c (to_fixed_array_type): Set result's type name.
5623
5845583d
JB
56242012-02-29 Joel Brobecker <brobecker@adacore.com>
5625
5626 * ada-lang.c (catch_ada_exception_command_split): Add new
5627 argument cond_string. Add support for condition at end of
5628 "catch exception" commands.
5629 (ada_decode_exception_location): Add new argument cond_string.
5630 Update call to catch_ada_exception_command_split.
5631 (create_ada_exception_catchpoint): Add new argument cond_string.
5632 Set the breakpoint condition if needed.
5633 (catch_ada_exception_command): Update call to
5634 ada_decode_exception_location.
5635 (ada_decode_assert_location): Add function documentation.
5636 Add support for condition at end of "catch assert" command.
5637 (catch_assert_command): Update calls to ada_decode_assert_location
5638 and create_ada_exception_catchpoint.
5639
9a7f938f
JK
56402012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5641
5642 Fix disp-step-syscall.exp: fork: single step over fork.
5643 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
5644 (i386_linux_get_syscall_number_from_regcache): ... here, new function
5645 comment, change parameters gdbarch and ptid to regcache. Remove
5646 parameter regcache, initialize gdbarch from regcache here.
5647 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
5648 New functions.
5649 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
5650 instead.
5651 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
5652 'syscall'. Make the 'int' check more strict.
5653
ffdf6de5
JK
56542012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5655
5656 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
5657 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
5658 (i386_linux_intx80_sysenter_syscall_record): ... here.
5659 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
5660 Use the renamed function name.
5661
c70a6932
JK
56622012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
5663
5664 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
5665 * breakpoint.c (until_break_command): Likewise.
5666 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
5667 * infcall.c (call_function_by_hand): Likewise.
5668 * infcmd.c (finish_forward): Likewise.
5669 * infrun.c (insert_exception_resume_breakpoint): Likewise.
5670
05b8a789 56712012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 5672
d4cd3da9
JB
5673 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
5674 avoid variable assignments inside condition.
5675
6425366c
JK
56762012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
5677
5678 Fix static analysis issue found by cppcheck.
5679 * microblaze-tdep.c (microblaze_extract_return_value): Fix
5680 uninitialized BUF for size 2.
5681
c8cef75f 56822012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
5683 Nathan Froyd <froydnj@codesourcery.com>
5684 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
5685
5686 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
5687 (mips16_instruction_has_delay_slot): Likewise.
5688 (mips_segment_boundary): Likewise.
5689 (mips_adjust_breakpoint_address): Likewise.
5690 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
5691
473347ad 56922012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 5693 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
5694
5695 * infrun.c (handle_inferior_event): Don't proceed through
5696 shared library trampolines if stepping at the machine
5697 instruction level.
5698
cf233303
MR
56992012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
5700
5701 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
5702 too.
5703
cb2cf4ce
TS
57042012-02-27 Thomas Schwinge <thomas@codesourcery.com>
5705
5706 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
5707 (sh_stub_unwind_sniffer): New functions.
5708 (sh_stub_unwind): New variable.
5709 (sh_gdbarch_init): Wire everything.
5710
644cebc9
PA
57112012-02-27 Pedro Alves <palves@redhat.com>
5712
5713 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
5714 (linux_nat_post_attach_wait): Adjust to use
5715 linux_proc_pid_is_stopped.
5716 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
5717 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
5718 based on pid_is_stopped from both linux-nat.c and
5719 gdbserver/linux-low.c, and renamed.
5720
283002cf
MR
57212012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5722
5723 * remote.c (remote_watchpoint_addr_within_range): New function.
5724 (init_remote_ops): Use it.
5725
9b3e86b1
MR
57262012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
5727
5728 * target.h (target_watchpoint_addr_within_range): Document macro.
5729
e36930bb
PA
57302012-02-24 Pedro Alves <palves@redhat.com>
5731
5732 * stack.c (set_last_displayed_sal): Issue internal_error instead
5733 of warning, and issue it after clearing the last displayed sal.
5734
883bc8d1
PA
57352012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
5736 Pedro Alves <palves@redhat.com>
5737
5738 * breakpoint.c (until_break_command): Install breakpoints after
5739 all frame manipulations.
5740
b775012e
LM
57412012-02-24 Luis Machado <lgustavo@codesourcery.com>
5742
5743 * remote.c (remote_supports_cond_breakpoints): New forward
5744 declaration.
5745 (remote_add_target_side_condition): New function.
5746 (remote_insert_breakpoint): Add target-side breakpoint
5747 conditional if supported.
5748 (remote_insert_hw_breakpoint): Likewise.
5749 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
5750 hook.
5751
5752 * target.c (update_current_target): Inherit
5753 to_supports_evaluation_of_breakpoint_conditions.
5754 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
5755
5756 * target.h (struct target_ops)
5757 <to_supports_evaluation_of_breakpoint_conditions>: New field.
5758 (target_supports_evaluation_of_breakpoint_conditions): New #define.
5759
5760 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
5761 (condition_evaluation_both, condition_evaluation_auto,
5762 condition_evaluation_host, condition_evaluation_target,
5763 condition_evaluation_enums, condition_evaluation_mode_1,
5764 condition_evaluation_mode): New static globals.
5765 (translate_condition_evaluation_mode): New function.
5766 (breakpoint_condition_evaluation_mode): New function.
5767 (gdb_evaluates_breakpoint_condition_p): New function.
5768 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
5769 (mark_breakpoint_modified): New function.
5770 (mark_breakpoint_location_modified): New function.
5771 (set_condition_evaluation_mode): New function.
5772 (show_condition_evaluation_mode): New function.
5773 (bp_location_compare_addrs): New function.
5774 (get_first_location_gte_addr): New helper function.
5775 (set_breakpoint_condition): Free condition bytecode if locations
5776 has become unconditional. Call mark_breakpoint_modified (...).
5777 (condition_command): Call update_global_location_list (1) for
5778 breakpoints.
5779 (breakpoint_xfer_memory): Use is_breakpoint (...).
5780 (is_breakpoint): New function.
5781 (parse_cond_to_aexpr): New function.
5782 (build_target_condition_list): New function.
5783 (insert_bp_location): Handle target-side conditional
5784 breakpoints and call build_target_condition_list (...).
5785 (update_inserted_breakpoint_locations): New function.
5786 (insert_breakpoint_locations): Handle target-side conditional
5787 breakpoints.
5788 (bpstat_check_breakpoint_conditions): Add comment.
5789 (bp_condition_evaluator): New function.
5790 (bp_location_condition_evaluator): New function.
5791 (print_breakpoint_location): Print information on where the condition
5792 will be evaluated.
5793 (print_one_breakpoint_location): Likewise.
5794 (init_bp_location): Call mark_breakpoint_location_modified (...) for
5795 breakpoint location.
5796 (force_breakpoint_reinsertion): New functions.
5797 (update_global_location_list): Handle target-side breakpoint
5798 conditions.
5799 Reinsert locations that are already inserted if conditions have
5800 changed.
5801 (bp_location_dtor): Free agent expression bytecode.
5802 (disable_breakpoint): Call mark_breakpoint_modified (...).
5803 Call update_global_location_list (...) with parameter 1 for breakpoints.
5804 (disable_command): Call mark_breakpoint_location_modified (...).
5805 Call update_global_location_list (...) with parameter 1 for breakpoints.
5806 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
5807 (enable_command): mark_breakpoint_location_modified (...).
5808 (_initialize_breakpoint): Update documentation and add
5809 condition-evaluation breakpoint subcommand.
5810
5811 * breakpoint.h: Include ax.h.
5812 (condition_list): New data structure.
5813 (condition_status): New enum.
5814 (bp_target_info) <cond_list>: New field.
5815 (bp_location) <condition_changed, cond_bytecode>: New fields.
5816 (is_breakpoint): New prototype.
5817
3788aec7
LM
58182012-02-24 Luis Machado <lgustavo@codesourcery.com>
5819
5820 * remote.c (remote_state) <cond_breakpoints>: New field.
5821 (PACKET_ConditionalBreakpoints): New enum.
5822 (remote_cond_breakpoint_feature): New function.
5823 (remote_protocol_features): Add new ConditionalBreakpoints entry.
5824 (remote_supports_cond_breakpoints): New function.
5825 (_initialize_remote): Add new packet configuration for
5826 target-side conditional breakpoints.
5827
72895ff6
LM
58282012-02-24 Luis Machado <lgustavo@codesourcery.com>
5829
5830 * NEWS: Mention target-side conditional breakpoint support,
5831 new condition-evaluation breakpoint subcommand and remote
5832 packet extensions.
5833
dea2aa5f
LM
58342012-02-24 Luis Machado <lgustavo@codesourcery.com>
5835
5836 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
5837 number.
5838
8a8bc27f
TS
58392012-02-24 Thomas Schwinge <thomas@codesourcery.com>
5840
5841 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
5842 (after_prologue): Remove.
5843
6b446fdf
TT
58442012-02-23 Tom Tromey <tromey@redhat.com>
5845
5846 * jv-valprint.c (java_val_print): Remove dead code.
5847
ef59abfb
TG
58482012-02-23 Tristan Gingold <gingold@adacore.com>
5849
a09130f9
PA
5850 * ada-tasks.c (struct ada_tasks_inferior_data): Add
5851 known_tasks_element and known_tasks_length fields.
5852 (read_known_tasks_array): Change argument type. Use pointer type
5853 and number of elements from DATA. Adjust.
5854 (read_known_tasks_list): Likewise.
5855 (get_known_tasks_addr): Remove.
5856 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
5857 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
5858 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 5859
def166f6
JK
58602012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
5861
5862 PR backtrace/13716
5863 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
5864 it after set_momentary_breakpoint.
5865
aeaa2474
SA
58662012-02-22 Sterling Augustine <saugustine@google.com>
5867
5868 PR 13689:
5869 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
5870
feea76c2
GB
58712012-02-22 Gary Benson <gbenson@redhat.com>
5872
5873 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
5874 (find_slot_in_mapped_hash): Likewise.
5875
f06e05e0
JK
58762012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
5877
5878 PR build/13638
5879 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
5880 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
5881 * configure: Regenerate.
5882
b54a8fd7
PA
58832012-02-21 Tristan Gingold <gingold@adacore.com>
5884 Pedro Alves <palves@redhat.com>
5885
5886 * ia64-tdep.c: Do not include libunwind-ia64.h.
5887 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
5888 Include libunwind-ia64.h instead of libunwind.h.
5889 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
5890 for libunwind.h existence.
5891 * configure, config.in: Regenerate.
5892
dfcee124
AG
58932012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5894
5895 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
5896 instead of value_rtti_target_type.
5897 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
5898 instead of value_rtti_target_type.
5899 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
5900 value_rtti_target_type.
5901 * valops.c (value_ind): Extract function readjust_indirect_value_type.
5902 (value_rtti_target_type): Rename to ...
5903 (value_rtti_indirect_type): ... here and make it indirect. Update
5904 function comment.
5905 * value.c (readjust_indirect_value_type): New function.
5906 (coerce_ref): Support for enclosing type setting for references
5907 with readjust_indirect_value_type.
5908 * value.h (readjust_value_type): New declaration.
5909 (value_rtti_target_type): Rename to ...
5910 (value_rtti_indirect_type): ... here.
5911
02568277
AG
59122012-02-21 Anton Gorenkov <xgsa@yandex.ru>
5913
5914 * MAINTAINERS (Write After Approval): Add myself to the list.
5915
10c07b7e 59162012-02-20 Doug Evans <dje@google.com>
28ee876a 5917
d82ea6a8
DE
5918 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
5919 Rename objfile_p_char parameter to objfilep.
5920 (build_objfile_section_table): Result is now void. All callers
5921 updated.
5922 * objfiles.h (struct objfile): Tweak comments, whitespace.
5923 (build_objfile_section_table): Update.
5924
28ee876a
DE
5925 * elfread.c (elf_symfile_segments): Fix warning text.
5926
24c79950
TT
59272012-02-20 Tom Tromey <tromey@redhat.com>
5928
5929 PR gdb/13498:
5930 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
5931 particular set of file names once.
5932 (dw2_map_symbol_filenames): Likewise.
5933
3a9b40b6
JK
59342012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5935
5936 Code cleanup.
5937 * main.c (write_files): Remove the declaration.
5938 (external_editor_command): Move the declaration ...
5939 [GDBTK] (external_editor_command): ... here. Fix the comment.
5940
4d0795ca
TT
59412012-02-20 Tom Tromey <tromey@redhat.com>
5942
5943 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
5944 extraneous block.
5945
637fd620
TG
59462012-02-20 Tristan Gingold <gingold@adacore.com>
5947
5948 * darwin-nat.h (enum darwin_msg_state): Add comments.
5949
6f124894
TG
59502012-02-20 Tristan Gingold <gingold@adacore.com>
5951
5952 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
5953 value.
5954
2e6e3d9c
JB
59552012-20-18 Joel Brobecker <brobecker@adacore.com>
5956
5957 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
5958 between function description and implementation.
5959
2e8265fd
TT
59602012-02-17 Tom Tromey <tromey@redhat.com>
5961
5962 PR python/12070:
5963 * python/py-event.c (event_object_getset): New global.
5964 (event_object_type): Reference it.
5965 * python/py-type.c (field_object_getset): New global.
5966 (field_object_type): Reference it.
5967 * python/python-internal.h (gdb_py_generic_dict): Declare.
5968 * python/py-utils.c (gdb_py_generic_dict): New function.
5969
8544a150 59702012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 5971
8544a150 5972 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 5973
ca193e27
TS
59742012-02-17 Thomas Schwinge <thomas@codesourcery.com>
5975
5976 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
5977 TYPE_CALLING_CONVENTION annotation.
5978
e5586183
KB
59792012-02-16 Kevin Buettner <kevinb@redhat.com>
5980
5981 * MAINTAINERS: Add rx to target ISA section.
5982 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
5983 (ALLDEPFILES): Add rx-tdep.c.
5984
7dcd53a0
TT
59852012-02-16 Tom Tromey <tromey@redhat.com>
5986
5987 * symfile.c (symbol_file_add_main_1): Use inferior's
5988 symfile_flags.
5989 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
5990 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
5991 inferior.
5992 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
5993 inferior.
5994 (follow_exec): Use inferior's symfile_flags.
5995 * inferior.h (struct inferior) <symfile_flags>: New field.
5996
ddd60447
MF
59972012-02-16 Mike Frysinger <vapier@gentoo.org>
5998
5999 PR gdb/9734:
6000 * remote-sim.c (gdbsim_create_inferior): Call error() when
6001 sim_create_inferior() fails.
6002
b0d32fb6
TG
60032012-02-16 Josh Matthews <josh@joshmatthews.net>
6004
6005 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
6006
9addecb9
TT
60072012-02-16 Tom Tromey <tromey@redhat.com>
6008
6009 PR c++/13653:
6010 * thread.c (struct current_thread_cleanup) <was_removable>: New
6011 field.
6012 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
6013 (make_cleanup_restore_current_thread): Initialize new field.
6014
a58b110a
KB
60152012-02-15 Kevin Buettner <kevinb@redhat.com>
6016
6017 * MAINTAINERS: Add rl78 to target ISA section.
6018 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
6019 (ALLDEPFILES): Add rl78-tdep.c.
6020 * NEWS: Mention rl78 as a new target.
6021
4cb6da1c
AR
60222012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
6023
6024 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
6025 data.
6026 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
6027
3af2590d
TT
60282012-02-15 Tom Tromey <tromey@redhat.com>
6029
6030 PR gdb/12659:
6031 * infcmd.c (registers_info): Print just the current register's
6032 name.
6033
c6910659
TT
60342012-02-15 Tom Tromey <tromey@redhat.com>
6035
6036 * python/py-symbol.c (sympy_value): Use _().
6037
7cee1e54
PA
60382012-02-15 Pedro Alves <palves@redhat.com>
6039
6040 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
6041 output to be like native targets'.
6042 (remote_pid_to_str): Special case the null ptid.
6043
816338b5
SS
60442012-02-14 Stan Shebs <stan@codesourcery.com>
6045
6046 * NEWS: Mention enable count command.
6047 * breakpoint.h (struct breakpoint): New field enable_count.
6048 * breakpoint.c (enable_breakpoint_disp): Add count argument.
6049 (enable_breakpoint): Add arg to call.
6050 (struct disp_data): New struct.
6051 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
6052 (do_map_enable_once_breakpoint): Create a struct and pass it.
6053 (do_map_enable_delete_breakpoint): Ditto.
6054 (do_map_enable_count_breakpoint): New function.
6055 (enable_count_command): New function.
6056 (bpstat_stop_status): Decrement enable_count.
6057 (print_one_breakpoint_location): Report enable count.
6058 (_initialize_breakpoint): Add enable count command.
6059
c47a44f4
KB
60602012-02-14 Kevin Buettner <kevinb@redhat.com>
6061
6062 * rl78-tdep.c (reggroups.h): Include.
6063 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
6064 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
6065 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
6066 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
6067 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
6068 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
6069 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
6070 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
6071 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
6072 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
6073 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
6074 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
6075 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
6076 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
6077 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
6078 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
6079 beginning of register list.
6080 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
6081 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
6082 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
6083 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
6084 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
6085 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
6086 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
6087 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
6088 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
6089 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
6090 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
6091 the pseudo registers. Rearrange other pseudo registers too so
6092 that the bank registers appear at the end.
6093 (rl78_register_type): Account for the fact that the byte sized
6094 bank registers are now pseudo-registers.
6095 (rl78_register_name): Rearrange the register name array. Make
6096 initial set of raw banked registers inaccessible.
6097 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
6098 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
6099 case for copying bytes back and forth between raw and pseudo
6100 versions of the banked registers. Update other cases to reflect
6101 the changed names.
6102 (rl78_return_value): Update to account for changed names of
6103 raw registers.
6104 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
6105 rl78_register_sim_regno().
6106
e4569f1e
KB
61072012-02-14 Kevin Buettner <kevinb@redhat.com>
6108
6109 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
6110 the name parameter being passed to find_pc_partial_function().
6111
7a05aae7
JK
61122012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6113
6114 * MAINTAINERS: Step down from being ia64 target maintainer.
6115
11fde611
JK
61162012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6117
6118 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
6119 compilation warning.
6120
57008375
JK
61212012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
6122
6123 Fix crash on loaded shlibs without loaded exec_bfd.
6124 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
6125 (set_section_command): Replace exec_bfd by p->bfd.
6126
ff3c9849
TT
61272012-02-10 Tom Tromey <tromey@redhat.com>
6128
6129 * linespec.c (decode_line_internal): Skip symtabs_from_filename
6130 when we have a C++ qualified name.
6131
db2b9fdd
PA
61322012-02-10 Pedro Alves <palves@redhat.com>
6133
6134 * inferior.c (inferior_pid_to_str): New.
6135 (print_inferior, inferior_command): Use it.
6136
12cd34f3
PA
61372012-02-10 Pedro Alves <palves@redhat.com>
6138
6139 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
6140 the test CFLAGS.
6141 * configure: Regenerate.
6142
e871429d
JK
61432012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
6144
6145 * linespec.c (decode_line_internal): Fix comment correctness.
6146
1916efaf
PA
61472012-02-09 Valery Khromov <valery.khromov@gmail.com>
6148
6149 PR gdb/12953
6150 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
6151 * amd64bsd-nat.c: Add support for debug registers (adapted from
6152 i386bsd-nat.c).
6153 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
6154 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
6155 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
6156 (amd64bsd_dr_get_control): New functions.
6157 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
6158 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
6159 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
6160 watchpoints initialization.
6161 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
6162
f4859d94
JK
61632012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6164
6165 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
6166 flds_bnds.fields.
6167 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
6168
c56a97f9
JK
61692012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
6170
6171 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
6172
1a119f36
JB
61732012-02-08 Joel Brobecker <brobecker@adacore.com>
6174
6175 * language.h (symbol_name_cmp_ftype): Renames
6176 symbol_name_match_p_ftype.
6177 (struct language_defn)[la_get_symbol_name_cmp]: Renames
6178 la_get_symbol_name_match_p.
6179 * ada-lang.c (ada_get_symbol_name_cmp): Renames
6180 ada_get_symbol_name_match_p. Update comment.
6181 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
6182 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
6183 Renames symbol_name_match_p. Update field type.
6184 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
6185 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6186 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
6187 "la_get_symbol_name_cmp" in comments.
6188 * language.c: Likewise.
6189
c71bb1cf
RO
61902012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
6191
6192 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
6193 %eflags offset.
6194 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
6195 (amd64_sol2_gregset32_reg_offs): Likewise.
6196
4b2d20a5
TG
61972012-02-08 Joel Brobecker <brobecker@adacore.com>
6198
6199 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
6200 of the returned BFD is allocated by GDB.
6201
f0823d2c
TT
62022012-02-07 Tom Tromey <tromey@redhat.com>
6203
6204 PR python/12027:
6205 * python/python-internal.h (frame_object_type): Declare.
6206 * python/py-symbol.c (sympy_needs_frame): New function.
6207 (sympy_value): New function.
6208 (symbol_object_getset): Add "needs_frame".
6209 (symbol_object_methods): Add "value".
6210 * python/py-frame.c (frame_object_type): No longer static.
6211
64e7d9dd
TT
62122012-02-07 Tom Tromey <tromey@redhat.com>
6213
6214 PR python/13599:
6215 * python/py-symbol.c (sympy_line): New function.
6216 (symbol_object_getset): Add "line".
6217
1d6b2d2b
TT
62182012-02-07 Tom Tromey <tromey@redhat.com>
6219
6220 * charset.c (find_charset_names): Check 'in' against NULL.
6221
0d5cff50
DE
62222012-02-06 Doug Evans <dje@google.com>
6223
6224 * gdbtypes.h (struct main_type): Change type of name,tag_name,
6225 and fields.name members from char * to const char *. All uses updated.
6226 (struct cplus_struct_type): Change type of fn_fieldlists.name member
6227 from char * to const char *. All uses updated.
6228 (type_name_no_tag): Update.
6229 (lookup_unsigned_typename, lookup_signed_typename): Update.
6230 * gdbtypes.c (type_name_no_tag): Change result type
6231 from char * to const char *. All callers updated.
6232 (lookup_unsigned_typename, lookup_signed_typename): Change type of
6233 name parameter from char * to const char *.
6234 * symtab.h (struct cplus_specific): Change type of demangled_name
6235 member from char * to const char *. All uses updated.
6236 (struct general_symbol_info): Change type of name and
6237 mangled_lang.demangled_name members from char * to const char *.
6238 All uses updated.
6239 (symbol_get_demangled_name, symbol_natural_name): Update.
6240 (symbol_demangled_name, symbol_search_name): Update.
6241 * symtab.c (symbol_get_demangled_name): Change result type
6242 from char * to const char *. All callers updated.
6243 (symbol_natural_name, symbol_demangled_name): Ditto.
6244 (symbol_search_name): Ditto.
6245 (completion_list_add_name): Change type of symname,sym_text,
6246 text,word parameters from char * to const char *.
6247 (completion_list_objc_symbol): Change type of sym_text,
6248 text,word parameters from char * to const char *.
6249 * ada-lang.c (find_struct_field): Change type of name parameter
6250 from char * to const char *.
6251 (encoded_ordered_before): Similarly for N0,N1 parameters.
6252 (old_renaming_is_invisible): Similarly for function_name parameter.
6253 (ada_type_name): Change result type from char * to const char *.
6254 All callers updated.
6255 * ada-lang.h (ada_type_name): Update.
6256 * buildsym.c (hashname): Change type of name parameter
6257 from char * to const char *.
6258 * buildsym.h (hashname): Update.
6259 * dbxread.c (end_psymtab): Change type of include_list parameter
6260 from char ** to const char **.
6261 * dwarf2read.c (determine_prefix): Change result type
6262 from char * to const char *. All callers updated.
6263 * f-lang.c (find_common_for_function): Change type of name, funcname
6264 parameters from char * to const char *.
6265 * f-lang.c (find_common_for_function): Update.
6266 * f-valprint.c (list_all_visible_commons): Change type of funcname
6267 parameters from char * to const char *.
6268 * gdbarch.sh (static_transform_name): Change type of name parameter
6269 and result from char * to const char *.
6270 * gdbarch.c: Regenerate.
6271 * gdbarch.h: Regenerate.
6272 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
6273 of name parameter from char * to const char *.
6274 * jv-lang.c (java_primitive_type_from_name): Ditto.
6275 (java_demangled_signature_length): Similarly for signature parameter.
6276 (java_demangled_signature_copy): Ditto.
6277 (java_demangle_type_signature): Ditto.
6278 * jv-lang.h (java_primitive_type_from_name): Update.
6279 (java_demangle_type_signature): Update.
6280 * objc-lang.c (specialcmp): Change type of a,b parameters
6281 from char * to const char *.
6282 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
6283 from char * to const char *. All callers updated.
6284 * p-lang.h (is_pascal_string_type): Update.
6285 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
6286 of name parameter from char * to const char *.
6287 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
6288 * utils.c (fprintf_symbol_filtered): Ditto.
6289 * defs.h (fprintf_symbol_filtered): Update.
6290 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
6291 * stabsread.h (end_psymtab): Update.
6292 * stack.c (find_frame_funname): Change type of funname parameter
6293 from char ** to const char **.
6294 * stack.h (find_frame_funname): Update.
6295 * typeprint.c (type_print): Change type of varstring parameter
6296 from char * to const char *.
6297 * value.h (type_print): Update.
6298 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
6299 from char * to const char *. All callers updated.
6300 (xcoff_end_psymtab): Change type of include_list parameter
6301 from char ** to const char **. All callers updated.
6302 (swap_sym): Similarly for name parameter. All callers updated.
6303 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
6304 Use xstrdup.
6305 (process_coff_symbol): Use xstrdup.
6306 * stabsread.c (stabs_method_name_from_physname): Renamed from
6307 update_method_name_from_physname. Change result type from void
6308 to char *. All callers updated.
6309 (read_member_functions): In has_destructor case, store name in objfile
6310 obstack instead of malloc space. In !has_stub case, fix mem leak.
6311
5579a92e
TT
63122012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
6313
6314 * configure: Rebuild.
6315 * configure.ac: Put -L../bfd and -L../libiberty at the front of
6316 LDFLAGS.
6317
9058f767
KB
63182012-02-03 Kevin Buettner <kevinb@redhat.com>
6319
6320 * configure.tgt (rl78-*-elf): New target.
6321 * rl78-tdep.c: New file.
6322
5b37825d
PW
63232012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
6324
6325 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
6326 and continue the loop. Add QUIT statement.
6327
e009ee71
TT
63282012-02-03 Tom Tromey <tromey@redhat.com>
6329
6330 PR gdb/13596:
6331 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
6332 bfd_lookup_symbol_from_symtab.
6333 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
6334 gdb_bfd_lookup_symbol_from_symtab.
6335
f7e44f65
JB
63362012-02-03 Joel Brobecker <brobecker@adacore.com>
6337
6338 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
6339 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
6340 symbol. Add assertion that sym2 is never NULL.
6341
2c02bd72
DE
63422012-02-02 Doug Evans <dje@google.com>
6343
6344 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
6345 "name" parameter to const char ** from char **. All callers updated.
6346 (find_pc_partial_function): Ditto.
6347 (cache_pc_function_name): Change type to const char * from char *.
6348 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
6349 (find_pc_partial_function): Update.
6350 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
6351 type of "name" parameter to const char * from char *.
6352 All uses updated.
6353 * arch-utils.c (generic_in_solib_return_trampoline): Change
6354 type of "name" parameter to const char * from char *.
6355 * arch-utils.h (generic_in_solib_return_trampoline): Update.
6356 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
6357 type of "name" parameter to const char * from char *.
6358 * gdbarch.sh (in_solib_return_trampoline): Ditto.
6359 * gdbarch.c: Regenerate.
6360 * gdbarch.h: Regenerate.
6361 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
6362 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
6363 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
6364 type of "name" parameter to const char * from char *.
6365 * skip.c (skip_function_pc): Ditto.
6366 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
6367 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
6368 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
6369 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
6370 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
6371 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
6372 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
6373 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
6374 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
6375
e886a173
PA
63762012-02-02 Pedro Alves <palves@redhat.com>
6377
6378 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
6379 the current inferior has no execution. Make sure the current
6380 remote process matches gdb's current inferior.
6381
c709a7c2
TT
63822012-02-02 Tom Tromey <tromey@redhat.com>
6383
6384 PR gdb/13405:
6385 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
6386 read-only memory.
6387
f149aabd
TT
63882012-02-02 Tom Tromey <tromey@redhat.com>
6389
6390 PR gdb/9307:
6391 * symtab.c (lookup_language_this): Set block_found.
6392
03bef283
TT
63932012-02-01 Tom Tromey <tromey@redhat.com>
6394
6395 PR gdb/13431:
6396 * jit.c (struct jit_inferior_data): Rewrite.
6397 (struct jit_objfile_data): New.
6398 (get_jit_objfile_data): New function.
6399 (add_objfile_entry): Update.
6400 (jit_read_descriptor): Return int. Replace descriptor_addr
6401 argument with inf_data. Update. Don't call error.
6402 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
6403 descriptor here.
6404 (jit_inferior_init): Don't look up descriptor. Don't call error.
6405 (jit_reset_inferior_data_and_breakpoints)
6406 (jit_inferior_created_observer): Remove.
6407 (jit_inferior_exit_hook): Update.
6408 (jit_executable_changed_observer): Remove.
6409 (jit_event_handler): Update.
6410 (free_objfile_data): Reset inferior data if needed.
6411 (_initialize_jit): Update.
6412
f0bbc364
TT
64132012-02-01 Tom Tromey <tromey@redhat.com>
6414
6415 * jit.c (bfd_open_from_target_memory): Move higher in file.
6416
47c1316c
TG
64172012-02-01 Tristan Gingold <gingold@adacore.com>
6418
6419 * libunwind-frame.c (libunwind_load): Display message if dlopen
6420 failed.
6421
8e704927
GB
64222012-02-01 Gary Benson <gbenson@redhat.com>
6423
09c7a31f 6424 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
6425 (iterate_over_symbols): Use the above.
6426 * symtab.c (iterate_over_symbols): Likewise.
6427 * language.h (language_defn->la_iterate_over_symbols): Likewise.
6428 * ada-lang.c (ada_iterate_over_symbols): Likewise.
6429 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
6430 (iterate_name_matcher): Document return values.
6431 (collect_one_symbol): Likewise.
6432 (collect_function_symbols): Likewise.
6433 (collect_symbols): Likewise.
6434
d9680e73
TT
64352012-02-01 Tom Tromey <tromey@redhat.com>
6436
6437 * ada-lang.c (resolve_subexp): Update.
6438 (ada_lookup_symbol_list): Add 'full_search' argument.
6439 (ada_iterate_over_symbols): Pass 0 as full_search argument to
6440 ada_lookup_symbol_list.
6441 (ada_lookup_encoded_symbol): Update.
6442 (get_var_value): Update.
6443 * ada-exp.y (block_lookup): Update.
6444 (write_var_or_type): Update.
6445 (write_name_assoc): Update.
6446 * ada-lang.h (ada_lookup_symbol_list): Update.
6447
72e1143f
TT
64482012-01-31 Tom Tromey <tromey@redhat.com>
6449
6450 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
6451 comment.
6452
ab2d2ad3
DE
64532012-01-31 Doug Evans <dje@google.com>
6454
6455 * symtab.h: Remove outdated comment.
e9111bf7 6456 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 6457
bc884eba
JB
64582012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
6459
6460 Fix build error in Darwin port.
6461 * i386-darwin-nat.c: Include i386-nat.h.
6462
8fc3fc34
TT
64632012-01-30 Tom Tromey <tromey@redhat.com>
6464
6465 PR breakpoints/13568:
6466 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
6467 argument. Check for recursive includes.
6468 (dwarf_decode_macros): Create an include hash.
6469
5d853008
ME
64702012-01-30 Michael Eager <eager@eagercon.com>
6471
6472 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
6473 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 6474 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
6475 (powerpc_linux_in_plt_stub): New function.
6476 (powerpc_linux_in_dynsym_resolve_code): New function.
6477 (ppc_skip_trampoline_code): New function.
6478 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
6479 Use glibc_skip_solib_resolver.
6480
40478521
JK
64812012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
6482
6483 Code cleanup: Make 1440 bytes of data segment read-only.
6484 * arch-utils.c (endian_enum): Make it const char *const [].
6485 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
6486 Likewise.
6487 * breakpoint.c (always_inserted_enums): Likewise.
6488 * cli/cli-cmds.c (script_ext_enums): Likewise.
6489 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
6490 enumlist parameter const char *const *.
6491 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
6492 const char *const *.
6493 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
6494 parameter const char *const *.
6495 * cris-tdep.c (cris_modes): Make it const char *const [].
6496 * filesystem.c (target_file_system_kinds): Likewise.
6497 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
6498 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
6499 (can_use_displaced_stepping_enum, scheduler_enums)
6500 (exec_direction_names): Likewise.
6501 * language.c (_initialize_language): Make the type_or_range_names and
6502 case_sensitive_names variables const char *const [].
6503 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
6504 * python/python.c (python_excp_enums): Likewise.
6505 * remote.c (interrupt_sequence_modes): Likewise.
6506 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
6507 * serial.c (logbase_enums): Likewise.
6508 * sh-tdep.c (sh_cc_enum): Likewise.
6509 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
6510 Likewise.
6511 * symtab.c (multiple_symbols_modes): Likewise.
6512 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
6513 Likewise.
6514 * utils.c (internal_problem_modes): Likewise.
6515
b3b8b934
JK
65162012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
6517
6518 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
6519 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
6520 result.
6521
8c85a4e2
DE
65222012-01-27 Doug Evans <dje@google.com>
6523
6524 * configure.ac (with_python): Fix absolute path handling for win32.
6525 * configure: Regenerate.
6526
78d8b4d7
DE
65272012-01-26 Doug Evans <dje@google.com>
6528
eca864fe
DE
6529 * symtab.c: Whitespace cleanup, no code changes.
6530
7e082072
DE
6531 * symtab.c (lookup_symbol_in_language): Improve comment.
6532 (lookup_symbol_aux): Fix comment.
6533
7dc25483
DE
6534 * psymtab.c (add_psymbol_to_list): Result is now "void".
6535 * psympriv.h (add_psymbol_to_list): Update.
6536
78d8b4d7
DE
6537 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
6538
4c63965b
JK
65392012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
6540
6541 Do not open script filenames twice.
6542 * cli/cli-cmds.c (source_script_from_stream): Pass to
6543 source_python_script also STREAM.
6544 * python/py-auto-load.c (source_section_scripts): Pass to
6545 source_python_script_for_objfile also STREAM.
6546 (auto_load_objfile_script): Pass to source_python_script_for_objfile
6547 also INPUT.
6548 * python/python-internal.h (source_python_script_for_objfile): New
6549 parameter file, rename parameter file to filename.
6550 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
6551 instead if !_WIN32. Update the function comment.
6552 (source_python_script, source_python_script_for_objfile)
6553 (source_python_script): New parameter file, rename parameter file to
6554 filename. Pass FILENAME to python_run_simple_file.
6555 * python/python.h (source_python_script): New parameter file, rename
6556 parameter file to filename.
6557
88f38a04
PA
65582012-01-26 Pedro Alves <palves@redhat.com>
6559
6560 * corelow.c (core_has_fake_pid): Delete.
6561 (core_close): Delete references to `core_has_fake_pid'.
6562 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
6563 (core_open): Delete references to `core_has_fake_pid'.
6564 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
6565 the removed global.
6566
e078317b
JB
65672012-01-26 Joel Brobecker <brobecker@adacore.com>
6568
6569 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
6570 Remove language parameter from name_matcher. Adjust the comment.
6571 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
6572 Remove language parameter.
6573 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
6574 * linespec.c (iterate_name_matcher): Likewise.
6575 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
6576 name_matcher. Adjust call accordingly.
6577 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
6578 (maintenance_check_symtabs): Adjust type of parameter "fun".
6579 * psymtab.h (maintenance_check_symtabs): Likewise.
6580
74ccd7f5
JB
65812012-01-26 Joel Brobecker <brobecker@adacore.com>
6582
6583 * language.h (symbol_name_match_p_ftype): New typedef.
6584 (struct language_defn): Replace field la_symbol_name_compare
6585 by la_get_symbol_name_match_p.
6586 * ada-lang.c (ada_get_symbol_name_match_p): New function.
6587 (ada_language_defn): Use it.
6588 * linespec.c (struct symbol_matcher_data): New type.
6589 (iterate_name_matcher): Rewrite.
6590 (iterate_over_all_matching_symtabs): Pass a pointer to
6591 a symbol_matcher_data struct to expand_symtabs_matching
6592 instead of just the lookup name.
6593 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
6594 opencl-lang.c, p-lang.c, language.c: Delete field
6595 la_symbol_name_compare, and replace by NULL for new field
6596 la_get_symbol_name_match_p.
6597 * symfile.h (struct quick_symbol_functions): Update comment.
6598
5d268276
TT
65992012-01-25 Tom Tromey <tromey@redhat.com>
6600
6601 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
6602 dereferencing.
6603
edcc5120
TT
66042012-01-24 Tom Tromey <tromey@redhat.com>
6605
6606 PR symtab/12406:
6607 * solib.c (update_solib_list): Update the program space's
6608 added_solibs and deleted_solibs fields.
6609 * progspace.h (struct program_space) <added_solibs,
6610 deleted_solibs>: New fields.
6611 (clear_program_space_solib_cache): Declare.
6612 * progspace.c (release_program_space): Call
6613 clear_program_space_solib_cache.
6614 (clear_program_space_solib_cache): New function.
6615 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
6616 bpstat_stop_status. Use handle_solib_event.
6617 * breakpoint.c: Include gdb_regex.h.
6618 (print_solib_event): New function.
6619 (bpstat_print): Use print_solib_event.
6620 (bpstat_stop_status): Add special case for bp_shlib_event.
6621 (handle_solib_event): New function.
6622 (bpstat_what): Use handle_solib_event.
6623 (struct solib_catchpoint): New.
6624 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
6625 (breakpoint_hit_catch_solib, check_status_catch_solib)
6626 (print_it_catch_solib, print_one_catch_solib)
6627 (print_mention_catch_solib, print_recreate_catch_solib): New
6628 functions.
6629 (catch_solib_breakpoint_ops): New global.
6630 (catch_load_or_unload, catch_load_command_1)
6631 (catch_unload_command_1): New functions.
6632 (internal_bkpt_check_status): Add special case for
6633 bp_shlib_event.
6634 (internal_bkpt_print_it): Use print_solib_event.
6635 (initialize_breakpoint_ops): Initialize
6636 catch_solib_breakpoint_ops.
6637 (_initialize_breakpoint): Register "catch load" and "catch
6638 unload".
6639 * breakpoint.h (handle_solib_event): Declare.
6640 * NEWS: Add entry for "catch load" and "catch unload".
6641
fa864999
TT
66422012-01-24 Tom Tromey <tromey@redhat.com>
6643
6644 * ada-lang.c: Include gdb_vecs.h.
6645 * charset.c: Include gdb_vecs.h.
6646 * tracepoint.h: Include gdb_vecs.h.
6647 * gdb_vecs.h: New file.
6648
f90263c1
TT
66492012-01-24 Pedro Alves <pedro@codesourcery.com>
6650
6651 * breakpoint.c (breakpoint_hit_catch_fork)
6652 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
6653 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
6654 * infrun.c (inferior_has_forked, inferior_has_vforked)
6655 (inferior_has_execd, inferior_has_called_syscall): Delete.
6656 (handle_syscall_event): Get syscall_number from the execution
6657 control state's wait status.
6658 (wait_for_inferior): Don't clear syscall_number.
6659
09ac7c10
TT
66602012-01-24 Pedro Alves <palves@redhat.com>
6661
6662 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
6663 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
6664 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
6665 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
6666 `ws' parameter.
6667 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
6668 false for events other than TARGET_SIGNAL_TRAP.
6669 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
6670 Add `ws' parameter.
6671 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
6672 events other than TARGET_SIGNAL_TRAP.
6673 (tracepoint_breakpoint_hit): Add `ws' parameter.
6674 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
6675 parameter.
6676 (bpstat_stop_status): Same.
6677 (pc_at_non_inline_function): Same.
6678 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
6679 to pass the current event's waitstatus to bpstat_stop_status
6680 and pc_at_non_inline_function.
6681
86eb7e95
JK
66822012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6683
6684 Code cleanup.
6685 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
6686 Update the function comment for it.
6687 (source_script_with_search): Call make_cleanup_fclose for STREAM.
6688 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
6689 for STREAM.
6690
a9b3a50f
PA
66912012-01-24 Pedro Alves <palves@redhat.com>
6692
6693 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
6694 outside `bs->stop' block.
6695 (bpstat_what): Rework bp_shlib_event handling.
6696 (internal_bkpt_check_status): If the breakpoint is a
6697 bp_shlib_event, then set bs->stop and bs->print if
6698 stop_on_solib_events is set.
6699
53fe1783
GB
67002012-01-24 Gary Benson <gbenson@redhat.com>
6701
6702 Delete #if 0'd out code.
6703 * stack.c (print_frame_label_vars): Remove.
6704 (catch_info): Likewise.
6705 (_initialize_stack): Remove "info catch" command.
6706 * NEWS: Mention the above.
6707
49c62f2e
PA
67082012-01-24 Pedro Alves <palves@redhat.com>
6709
6710 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
6711 it.
6712 (remote_notice_new_inferior): If the remote end doesn't support
6713 the multiprocess extensions, then the PID is fake.
6714 (add_current_inferior_and_thread): New.
6715 (remote_start_remote): Use it.
6716 (extended_remote_attach_1): Adjust.
6717 (extended_remote_create_inferior_1): Use
6718 add_current_inferior_and_thread.
6719
d0d8b0c6
JK
67202012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6721
6722 Fix watchpoints to be specific for each inferior.
6723 * breakpoint.c (watchpoint_in_thread_scope): Verify also
6724 current_program_space.
6725 * i386-nat.c (i386_inferior_data_cleanup): New.
6726 (i386_inferior_data_get): Replace variable inf_data_local by an
6727 inferior_data call.
6728 (i386_use_watchpoints): Initialize i386_inferior_data.
6729 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
6730 specific iterate_over_lwps.
6731
4403d8e9
JK
67322012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
6733
6734 Fix watchpoints across inferior fork.
6735 * amd64-linux-nat.c (update_debug_registers_callback): Update the
6736 comment for linux_nat_iterate_watchpoint_lwps.
6737 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
6738 linux_nat_iterate_watchpoint_lwps.
6739 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
6740 * i386-linux-nat.c (update_debug_registers_callback): Update the
6741 comment for linux_nat_iterate_watchpoint_lwps.
6742 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
6743 linux_nat_iterate_watchpoint_lwps.
6744 (i386_linux_prepare_to_resume): New comment on Linux kernel.
6745 * i386-nat.c: Include inferior.h.
6746 (dr_mirror): Remove.
6747 (i386_inferior_data, struct i386_inferior_data)
6748 (i386_inferior_data_get): New.
6749 (i386_debug_reg_state): Use i386_inferior_data_get.
6750 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
6751 (i386_insert_watchpoint, i386_remove_watchpoint)
6752 (i386_stopped_data_address, i386_insert_hw_breakpoint)
6753 (i386_remove_hw_breakpoint): New variable state, use
6754 i386_debug_reg_state instead of DR_MIRROR.
6755 * linux-nat.c (delete_lwp): New declaration.
6756 (num_lwps): Move here from downwards.
6757 (delete_lwp_cleanup): New.
6758 (linux_child_follow_fork): Create new child_lp, call
6759 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
6760 PTRACE_DETACH.
6761 (num_lwps): Move upwards.
6762 (linux_nat_iterate_watchpoint_lwps): New.
6763 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
6764 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
6765
2992c9a7 67662012-01-24 Joel Brobecker <brobecker@adacore.com>
6767
6768 GDB 7.4 released.
6769
e360902b
PA
67702012-01-23 Pedro Alves <palves@redhat.com>
6771
6772 * top.c (caution): Rename to ...
6773 (confirm): ... this.
6774 (show_caution): Rename to ...
6775 (show_confirm): ... this.
6776 (quit_cover): Adjust.
6777 (init_main): Adjust.
6778 * top.h (caution): Rename to ...
6779 (confirm): ... this.
6780 * utils.c (internal_vproblem, defaulted_query): Adjust.
6781
050a2e1d
PA
67822012-01-23 Pedro Alves <palves@redhat.com>
6783
6784 * top.c (caution): Update comment.
6785 (execute_command): Don't consider the current value of `caution'.
6786
77a35dd8
JK
67872012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
6788
6789 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
6790
a71b5a38
UW
67912012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
6792
6793 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
6794 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
6795 * target.c (target_fileio_pwrite): Remove buffer address from
6796 debug output.
6797 (target_fileio_pread): Likewise.
6798
d99bd577
UW
67992012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6800
6801 * NEWS: Document remote "info proc" and "generate-core-file".
6802
35c2fab7
UW
68032012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6804
6805 * gdbarch.sh (find_memory_regions): New callback.
6806 * gdbarch.c, gdbarch.h: Regenerate.
6807
6808 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
6809 callback before falling back to target method.
6810
6811 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
6812 (linux_target_install_ops): No longer install it.
6813
6814 * linux-tdep.c (linux_find_memory_regions): New function.
6815 (linux_init_abi): Install it.
6816
6432734d
UW
68172012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6818
6819 * gdbarch.sh (make_corefile_notes): New architecture callback.
6820 * gdbarch.c: Regenerate.
6821 * gdbarch.h: Likewise.
6822
6823 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
6824 before target_make_corefile_notes. If NULL is returned, the
6825 target does not support core file generation.
6826
6827 * linux-nat.c: Include "linux-tdep.h".
6828 (find_signalled_thread, find_stop_signal): Remove.
6829 (linux_nat_do_thread_registers): Likewise.
6830 (struct linux_nat_corefile_thread_data): Likewise.
6831 (linux_nat_corefile_thread_callback): Likewise.
6832 (iterate_over_spus): Likewise.
6833 (struct linux_spu_corefile_data): Likewise.
6834 (linux_spu_corefile_callback): Likewise.
6835 (linux_spu_make_corefile_notes): Likewise.
6836 (linux_nat_collect_thread_registers): New function.
6837 (linux_nat_make_corefile_notes): Replace contents by call to
6838 linux_make_corefile_notes passing linux_nat_collect_thread_registers
6839 as native-only callback.
6840
6841 * linux-tdep.h: Include "bfd.h".
6842 (struct regcache): Add forward declaration.
6843 (linux_collect_thread_registers_ftype): New typedef.
6844 (linux_make_corefile_notes): Add prototype.
6845 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
6846 "regset.h", and "elf-bfd.h".
6847 (find_signalled_thread, find_stop_signal): New functions.
6848 (linux_spu_make_corefile_notes): Likewise.
6849 (linux_collect_thread_registers): Likewise.
6850 (struct linux_corefile_thread_data): New data structure.
6851 (linux_corefile_thread_callback): New funcion.
6852 (linux_make_corefile_notes): Likewise.
6853 (linux_make_corefile_notes_1): Likewise.
6854 (linux_init_abi): Install it.
6855
3030c96e
UW
68562012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6857
6858 * gdbarch.sh (info_proc): New callback.
6859 * gdbarch.c, gdbarch.h: Regenerate.
6860
6861 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
6862 before falling back to the target info_proc callback.
6863
6864 * linux-nat.c: Do not include "cli/cli-utils.h".
6865 (linux_nat_info_proc): Remove.
6866 (linux_target_install_ops): No longer install it.
6867
6868 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
6869 (read_mapping): New function.
6870 (linux_info_proc): Likewise.
6871 (linux_init_abi): Install it.
6872
145b16a9
UW
68732012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6874
6875 * defs.h (enum info_proc_what): Moved here from linux-nat.c
6876 * infcmd.c: (info_proc_cmd_1): New function.
6877 (info_proc_cmd): New function, moved here from equivalent routine
6878 orignally in linux-nat.c.
6879 (info_proc_cmd_mappings): Likewise.
6880 (info_proc_cmd_stat): Likewise.
6881 (info_proc_cmd_status): Likewise.
6882 (info_proc_cmd_cwd): Likewise.
6883 (info_proc_cmd_cmdline): Likewise.
6884 (info_proc_cmd_exe): Likewise.
6885 (info_proc_cmd_all): Likewise.
6886 (_initialize_infcmd): Install "info proc" command and subcommands.
6887
6888 * target.h (struct target_ops): Add to_info_proc.
6889 (target_info_proc): Add prototype.
6890 * target.c (target_info_proc): New function.
6891
6892 * procfs.c (procfs_info_proc): Add prototype.
6893 (info_proc_cmd): Rename into ...
6894 (procfs_info_proc): ... this. Update argument types as appropriate
6895 for a to_info_proc implementation. Handle "what" argument.
6896 (procfs_target): Install procfs_info_proc.
6897 (_initialize_procfs): No longer install "info proc" command.
6898
6899 * linux-nat.c: (enum info_proc_what): Remove.
6900 (linux_nat_info_proc_cmd_1): Rename into ...
6901 (linux_nat_info_proc): ... this. Update argument types as appropriate
6902 for a to_info_proc implementation.
6903 (linux_nat_info_proc_cmd): Remove.
6904 (linux_nat_info_proc_cmd_mappings): Likewise.
6905 (linux_nat_info_proc_cmd_stat): Likewise.
6906 (linux_nat_info_proc_cmd_status): Likewise.
6907 (linux_nat_info_proc_cmd_cwd): Likewise.
6908 (linux_nat_info_proc_cmd_cmdline): Likewise.
6909 (linux_nat_info_proc_cmd_exe): Likewise.
6910 (linux_nat_info_proc_cmd_all): Likewise.
6911 (linux_target_install_ops): Install linux_nat_info_proc.
6912 (_initialize_linux_nat): No longer install "info proc" command
6913 and subcommands.
6914
b9e7b9c3
UW
69152012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
6916
6917 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
6918 * config.in, configure: Regenerate.
6919
6920 * target.h (struct target_ops): Add to_fileio_readlink.
6921 (target_fileio_readlink): Add prototype.
6922 * target.c (target_fileio_readlink): New function.
6923
6924 * inf-child.c: Conditionally include <sys/param.h>.
6925 (inf_child_fileio_readlink): New function.
6926 (inf_child_target): Install it.
6927
6928 * remote.c (PACKET_vFile_readlink): New enum value.
6929 (remote_hostio_readlink): New function.
6930 (init_remote_ops): Install it.
6931 (_initialize_remote): Handle vFile:readlink packet type.
6932
7313baad
UW
69332012-01-20 Pedro Alves <palves@redhat.com>
6934 Ulrich Weigand <ulrich.weigand@linaro.org>
6935
6936 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
6937 * config.in, configure: Regenerate.
6938
6939 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
6940 to_fileio_pread, to_fileio_close, to_fileio_unlink.
6941 (target_fileio_open): Add prototype.
6942 (target_fileio_pwrite): Likewise.
6943 (target_fileio_pread): Likewise.
6944 (target_fileio_close): Likewise.
6945 (target_fileio_unlink): Likewise.
6946 (target_fileio_read_alloc): Likewise.
6947 (target_fileio_read_stralloc): Likewise.
6948
6949 * target.c: Include "gdb/fileio.h".
6950 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
6951 (default_fileio_target): New function.
6952 (target_fileio_open): Likewise.
6953 (target_fileio_pwrite): Likewise.
6954 (target_fileio_pread): Likewise.
6955 (target_fileio_close): Likewise.
6956 (target_fileio_unlink): Likewise.
6957 (target_fileio_close_cleanup): Likewise.
6958 (target_fileio_read_alloc_1): Likewise.
6959 (target_fileio_read_alloc): Likewise.
6960 (target_fileio_read_stralloc): Likewise.
6961
6962 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
6963 <fcntl.h>, and <unistd.h>.
6964 (inf_child_fileio_open_flags_to_host): New function.
6965 (inf_child_errno_to_fileio_error): Likewise.
6966 (inf_child_fileio_open): Likewise.
6967 (inf_child_fileio_pwrite): Likewise.
6968 (inf_child_fileio_pread): Likewise.
6969 (inf_child_fileio_close): Likewise.
6970 (inf_child_fileio_unlink): Likewise.
6971 (inf_child_target): Install to_fileio routines.
6972
6973 * remote.c (init_remote_ops): Install to_fileio routines.
6974
901f9912
UW
69752012-01-20 Pedro Alves <palves@redhat.com>
6976 Ulrich Weigand <ulrich.weigand@linaro.org>
6977
6978 * remote.c (remote_multi_process_p): Only check for multi-process
6979 protocol feature, do not check for extended protocol.
6980 (remote_supports_multi_process): Check for extended protocol here.
6981 (set_general_process): Likewise.
6982 (extended_remote_kill): Likewise.
6983 (remote_pid_to_str): Likewise.
6984 (remote_query_supported): Always query multiprocess mode.
6985
e714e1bf
UW
69862012-01-20 Pedro Alves <palves@redhat.com>
6987 Ulrich Weigand <ulrich.weigand@linaro.org>
6988
6989 * inferior.h (struct inferior): Add fake_pid_p.
6990 * inferior.c (exit_inferior_1): Clear fake_pid_p.
6991 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
6992 magic_null_ptid since the remote side doesn't provide a real PID.
6993
50897289
TT
69942012-01-19 Tom Tromey <tromey@redhat.com>
6995
6996 * NEWS: Combine the two Python sections.
6997
1afc2033
JK
69982012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6999
7000 * target.h (target_close): Update comment on the target's unpush state.
7001
305436e0
PA
70022012-01-19 Pedro Alves <palves@redhat.com>
7003
7004 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
7005 linux_nat_async directly instead of going through the target
7006 vector.
7007 * target.c (unpush_target): Close target after unpushing it, not
7008 before.
7009
49323895
GB
70102012-01-19 Gary Benson <gbenson@redhat.com>
7011
7012 * mdebugread.c (sort_blocks): Replace integer constants with ones
7013 derived from FIRST_LOCAL_BLOCK.
7014
1db33378
PP
70152012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
7016 Jan Kratochvil <jan.kratochvil@redhat.com>
7017
7018 PR gdb/9538
7019 * symfile.c (find_separate_debug_file): New function.
7020 (terminate_after_last_dir_separator): Likewise.
7021 (find_separate_debug_file_by_debuglink): Also try realpath.
7022 * configure.ac (AC_CHECK_FUNCS): Add lstat.
7023 * configure: Regenerate.
7024 * config.in: Regenerate.
7025
f83d8a90
DE
70262012-01-18 Doug Evans <dje@google.com>
7027
7028 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
7029 (main.o): Remove rule.
7030 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
7031 (--with-sysroot): Rewrite.
7032 * configure: Regenerate.
7033 * config.in: Regenerate.
7034
2dbca4d6
SDJ
70352012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
7036
7037 * parse.c (initialize_expout): New function.
7038 (reallocate_expout): Likewise.
7039 (parse_exp_in_context): Use `initialize_expout' and
7040 `reallocate_expout' when appropriate.
7041
0695b514
PA
70422012-01-18 Pedro Alves <palves@redhat.com>
7043
7044 * record.c (struct record_breakpoint, record_breakpoint_p)
7045 (record_breakpoints): New.
7046 (record_insert_breakpoint, record_remove_breakpoint): Manage
7047 record breakpoints list. Only remove breakpoints from the
7048 inferior if they had been inserted there in the first place.
7049
136e1c30
DE
70502012-01-17 Doug Evans <dje@google.com>
7051
7052 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
7053 if we know we don't have a file name to look for.
7054
c0bf857d
PA
70552012-01-17 Pedro Alves <palves@redhat.com>
7056
7057 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
7058 the frame's stop reason is UNWIND_UNAVAILABLE.
7059
b486de60
JK
70602012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
7061
7062 Fix compilation error.
7063 * m2-exp.y (yyerror): Use ANSI C prototype.
7064
d04550a6
SDJ
70652012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7066
7067 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
7068 (growbuf_by_size): Likewise.
7069 (yyerror): Likewise.
7070 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
7071 (modblock): Remove variable (was #if 0'ed).
7072 (parse_number): Convert prototype from K&R to ANSI C.
7073 (yyerror): Likewise.
7074 * objc-exp.y (parse_number): Likewise.
7075 (yyerror): Likewise.
7076 (yylex): Remove #if 0'ed code.
7077 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
7078 (yyerror): Likewise.
7079
4aac40c8
TT
70802012-01-16 Tom Tromey <tromey@redhat.com>
7081
7082 * NEWS: Add item.
7083 * symtab.h (compare_filenames_for_search): Declare.
7084 * symtab.c (compare_filenames_for_search): New function.
7085 (iterate_over_some_symtabs): Use it.
7086 * symfile.h (struct quick_symbol_functions)
7087 <map_symtabs_matching_filename>: Change spec.
7088 * psymtab.c (partial_map_symtabs_matching_filename): Use
7089 compare_filenames_for_search. Update for new spec.
7090 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
7091 compare_filenames_for_search. Update for new spec.
7092 * breakpoint.c (clear_command): Use compare_filenames_for_search.
7093
cafec441
TT
70942012-01-16 Tom Tromey <tromey@redhat.com>
7095
7096 PR python/13281:
7097 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
7098 (struct main_type) <flag_flag_enum>: New field.
7099 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
7100 * NEWS: Add entries.
7101 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
7102 enums.
7103 * python/lib/gdb/printing.py (_EnumInstance): New class.
7104 (FlagEnumerationPrinter): Likewise.
7105
983af33b
SDJ
71062012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
7107
7108 * breakpoint.c (create_sals_from_address_default): New function.
7109 (create_breakpoints_sal_default): Likewise.
7110 (decode_linespec_default): Likewise.
7111 (is_marker_spec): Removed.
7112 (strace_marker_p): New function.
7113 (init_breakpoint_sal): Using `strace_marker_p' instead of
7114 `is_marker_spec'.
7115 (create_breakpoint): Call method `create_sals_from_address' from
7116 breakpoint_ops, replacing code that created SALs conditionally
7117 on the type of the breakpoint. Call method `create_breakpoints_sal',
7118 replacing code that created breakpoints conditionally on the type
7119 wanted.
7120 (base_breakpoint_create_sals_from_address): New function.
7121 (base_breakpoint_create_breakpoints_sal): Likewise.
7122 (base_breakpoint_decode_linespec): Likewise.
7123 (base_breakpoint_ops): Add methods
7124 `base_breakpoint_create_sals_from_address',
7125 `base_breakpoint_create_breakpoints_sal' and
7126 `base_breakpoint_decode_linespec'.
7127 (bkpt_create_sals_from_address): New function.
7128 (bkpt_create_breakpoints_sal): Likewise.
7129 (bkpt_decode_linespec): Likewise.
7130 (tracepoint_create_sals_from_address): Likewise.
7131 (tracepoint_create_breakpoints_sal): Likewise.
7132 (tracepoint_decode_linespec): Likewise.
7133 (strace_marker_create_sals_from_address): Likewise.
7134 (strace_marker_create_breakpoints_sal): Likewise.
7135 (strace_marker_decode_linespec): Likewise.
7136 (strace_marker_breakpoint_ops): New variable.
7137 (addr_string_to_sals): Remove `marker_spec'. Call method
7138 `decode_linespec' from breakpoint_ops, replacing code that decoded
7139 an address string into a SAL. Use `strace_marker_p' instead of
7140 `marker_spec'.
7141 (strace_command): Decide whether we are dealing with a static
7142 tracepoint with marker or not. Use the appropriate breakpoint_ops.
7143 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
7144 * breakpoint.h (linespec_result, linespec_sals): New forward
7145 declarations.
7146 (breakpoint_ops) <create_sals_from_address>,
7147 <create_breakpoints_sal>, <decode_linespec>: New methods.
7148
4795f398
DE
71492012-01-14 Doug Evans <dje@google.com>
7150
7151 * NEWS: Update text for "maint set python print-stack".
7152 It is deprecated in gdb 7.4 and deleted in 7.5.
7153
ee5106fe
EZ
71542012-01-13 Eli Zaretskii <eliz@gnu.org>
7155
7156 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
7157 including curses.h.
7158
b161e06f
JK
71592012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
7160
7161 * configure: Regenerate.
7162 * config.in: Regenerate.
7163
85254831
KS
71642012-01-12 Keith Seitz <keiths@redhat.com>
7165
7166 PR mi/10586
7167 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
7168 (ANONYMOUS_UNION_NAME): Define.
7169 (is_path_expr_parent): New function.
7170 (get_path_expr_parent): New function.
7171 (is_anonymous_child): New function.
7172 (create_child_with_value): If the child is anonymous and without
7173 a name, assign an object name to it.
7174 (c_describe_child): Use get_path_expr_parent to determine
7175 the parent expression.
7176 If there field represents an anonymous struct or union and
7177 has no name, set an appropriate display name and expression.
7178 (cplus_describe_child): Likewise.
7179
620fa63a
PA
71802012-01-12 Pedro Alves <palves@redhat.com>
7181
7182 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
7183 available when %ebp is found to be zero (outermost).
7184
2efa2c79
AT
71852012-01-11 Andreas Tobler <andreast@fgznet.ch>
7186
7187 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
7188 an internal gdb_static_assert.
7189 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
7190
88e7d25d
TT
71912012-01-11 Tom Tromey <tromey@redhat.com>
7192
7193 PR gdb/9598:
7194 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
7195 catch" and "catch throw".
7196
72384ba3
PH
71972012-01-11 Paul Hilfinger <hilfingr@adacore.com>
7198
7199 * blockframe.c (block_innermost_frame): Start search from selected
7200 frame, if present, or otherwise the current frame.
7201
7202 * c-exp.y (variable): Update innermost_block for
7203 'block COLONCOLON NAME' clause.
7204 * m2-exp.y (variable): Ditto.
7205 * objc-exp.y (variable): Ditto.
7206
065a711f
TT
72072012-01-10 Tom Tromey <tromey@redhat.com>
7208
7209 PR python/13199:
7210 * python/python.c (finish_python_initialization): Set sys.argv.
7211
f3f5162e
DE
72122012-01-10 Doug Evans <dje@google.com>
7213
7214 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
7215 "want_line_info". All callers updated.
7216 (dwarf_decode_lines_1): New function.
7217 (handle_DW_AT_stmt_list): Add function comment.
7218 New arg "want_line_info". All callers updated.
7219 (read_file_scope,read_type_unit_scope): Move comment from
7220 handle_DW_AT_stmt_list to here.
7221
9934703b
JK
72222012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7223
7224 Fix regression after libiberty/ update for GCC PR 6057 and others.
7225 * c-exp.y (operator) <OPERATOR DELETE>
7226 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7227 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
7228 (make_builtin_type, make_name): New variable i, add gdb_assert.
7229 (operator) <OPERATOR NEW>: Update ARGS to 3.
7230 (operator) <OPERATOR DELETE>: Add trailing space.
7231 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
7232 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
7233 * cp-support.c (cp_canonicalize_string): Check NULL from
7234 cp_comp_to_string, call warning and return.
7235
06b9f45f
JK
72362012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
7237
7238 Fix duplicate .o files after omitting libbfd.a.
7239 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
7240 (SFILES): Add corelow.c.
7241 (COMMON_OBS): Add corelow.o.
7242 (ALLDEPFILES): Remove corelow.c.
7243 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
7244 * config/alpha/alpha-osf3.mh: Likewise.
7245 * config/alpha/fbsd.mh: Likewise.
7246 * config/arm/nbsdaout.mh: Likewise.
7247 * config/arm/nbsdelf.mh: Likewise.
7248 * config/i386/i386gnu.mh: Likewise.
7249 * config/ia64/hpux.mh: Likewise.
7250 * config/ia64/linux.mh: Likewise.
7251 * config/m32r/linux.mh: Likewise.
7252 * config/m68k/linux.mh: Likewise.
7253 * config/mips/irix5.mh: Likewise.
7254 * config/mips/irix6.mh: Likewise.
7255 * config/pa/hpux.mh: Likewise.
7256 * config/pa/linux.mh: Likewise.
7257 * config/powerpc/aix.mh: Likewise.
7258 * config/sparc/linux.mh: Likewise.
7259 * config/sparc/linux64.mh: Likewise.
7260 * config/sparc/sol2.mh: Likewise.
7261 * config/vax/vax.mh: Likewise.
7262 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
7263 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
7264 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
7265 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
7266 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
7267 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
7268 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
7269 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
7270 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
7271 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
7272 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
7273 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
7274 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7275 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
7276 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
7277 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7278 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
7279 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
7280 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
7281 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
7282 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
7283 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
7284 corelow.o from gdb_target_obs.
7285 * corefile.c (core_target): Update the comment on NULL value.
7286 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
7287 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
7288 MATCHES. Drop YUMMY set on NULL.
7289 (core_close): Do not call exit_inferior_silent on zero PID. Do not
7290 reclaim CORE_DATA if it is already NULL.
7291
34365054
DE
72922012-01-09 Doug Evans <dje@google.com>
7293
7294 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
7295 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
7296
696166a3
KS
72972012-01-09 Keith Seitz <keiths@redhat.com>
7298
7299 * breakpoint.c (wrapper.h): Don't include.
7300
8e7b59a5
KS
73012012-01-09 Keith Seitz <keiths@redhat.com>
7302
7303 * Makefile.in (SFILES): Remove wrapper.c.
7304 (HFILES_NO_SRCDIR): Remove wrapper.h.
7305 (COMMON_OBS): Remove wrapper.o.
7306 * cli/cli-interp.c: Don't inlude wrapper.h.
7307 * corelow.c: Likewise.
7308 (core_open): Replace gdb_target_find_new_threads with
7309 TRY_CATCH around target_find_new_threads.
7310 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
7311 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
7312 * varobj.c (varobj_create): Likewise for parse_exp_1 and
7313 evaluate_expression.
7314 (varobj_set_value): Likewise for evaluate_expression and
7315 value_assign.
7316 (install_new_variable): Likewise for value_fetch_lazy.
7317 (adjust_value_for_child_access): Likewise for value_ind.
7318 (c_describe_child): Likewise for value_subscript and
7319 value_ind.
7320 (c_value_of_root): Likewise for evaluate_expression.
7321 * wrapper.c: Remove.
7322 * wrapper.h: Remove.
7323
1a4eeb98
DE
73242012-01-09 Doug Evans <dje@google.com>
7325
9ff913ba
DE
7326 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
7327 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
7328 "abfd" args with "section". All callers updated.
7329 Error checking code moved ...
7330 (error_check_comp_unit_head): ... here. New function.
7331 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
7332 Delete arg "abfd". New arg "type_offset". All callers updated.
7333 (create_debug_types_hash_table): Simplify by using
7334 read_and_check_type_unit_head.
7335
1a4eeb98
DE
7336 * parser-defs.h (namecopy): Delete.
7337 * parse.c (namecopy, namecopy_size): Move into copy_name.
7338
2e6af8c0
JK
73392012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
7340
7341 Partially fix duplicate .o files after omitting libbfd.a.
7342 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
7343 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7344 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
7345 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7346 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
7347 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
7348 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
7349
9f2f828a
PA
73502012-01-09 Pedro Alves <palves@redhat.com>
7351
7352 * MAINTAINERS: Update my email address.
7353
4d72c0bc
DE
73542012-01-08 Doug Evans <dje@google.com>
7355
d467dd73
DE
7356 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
7357 n_type_units. Rename type_comp_units to all_type_units.
7358 All uses updated.
7359 (add_signatured_type_cu_to_table): Renamed from
7360 add_signatured_type_cu_to_list. All callers updated.
7361
4d72c0bc
DE
7362 * gdbtypes.h (struct cplus_struct_type): Delete member
7363 nfn_fields_total. All uses removed.
7364
21b2bd31
DE
73652012-01-06 Doug Evans <dje@google.com>
7366
7367 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
7368 to top of file.
7369 (dwarf2_find_comp_unit): Delete.
7370 (process_psymtab_comp_unit): Make result "void".
7371 Delete args buffer, info_ptr, buffer_size, and replace with
7372 "section". All callers updated.
7373 (dwarf2_build_psymtabs_hard): Simplify.
7374
bfd189b1
SDJ
73752012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
7376 Thiago Jung Bauermann <bauerman@br.ibm.com>
7377
7378 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
7379 before `struct gdb_exception'.
7380 * breakpoint.c (update_global_location_list_nothrow)
7381 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
7382 * cp-abi.c (value_rtti_type): Likewise.
7383 * cp-support.c (cp_validate_operator): Likewise.
7384 * infrun.c (insert_exception_resume_breakpoint)
7385 (check_exception_resume, keep_going): Likewise.
7386 * mi-interp.c (mi_breakpoint_created)
7387 (mi_breakpoint_modified): Likewise.
7388 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
7389 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
7390 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
7391
6b07635f
DE
73922012-01-05 Doug Evans <dje@google.com>
7393
0b30b85c
DE
7394 * dwarf2read.c (statement_prologue): Delete, unused.
7395
98714339
DE
7396 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
7397 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
7398
6b07635f
DE
7399 * dwarf2read.c (comp_unit_header): Delete, unused.
7400
761f4555
UW
74012012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
7402
7403 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
7404 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
7405
2ca0b532
PA
74062012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
7407
7408 * infrun.c (normal_stop): Don't skip calling the normal_stop
7409 observers if the thread was doing a multi-step, but stopped for
7410 some reason other than stepping.
7411
50aeff07
PA
74122012-01-05 Pedro Alves <alves.ped@gmail.com>
7413
7414 * cli/cli-decode.h: Add comments.
7415 (CMD_LIST_AMBIGUOUS): Moved to command.h
7416 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
7417 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
7418 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
7419 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
7420 (add_com, add_com_alias, add_info, add_info_alias)
7421 (complete_on_cmdlist, complete_on_enum, help_list): Remove
7422 declarations.
7423 * command.h: Add and adjust comments.
7424 (CMD_LIST_AMBIGUOUS): Moved here.
7425 (help_cmd, help_cmd_list): Delete declarations.
7426
5953832c
DE
74272012-01-04 Doug Evans <dje@google.com>
7428
e5fe5e75
DE
7429 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
7430 All callers updated.
7431 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
7432 Replace all arguments with "per_cu". All callers updated.
7433
28dee7f5
DE
7434 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
7435
23745b47
DE
7436 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
7437 New arg "per_cu". All callers updated.
7438
5953832c
DE
7439 Delete #if 0'd out code.
7440 * language.c (binop_result_type): Delete.
7441 (simple_type, ordered_type, same_type, integral_type): Delete.
7442 (numeric_type, character_type, string_type, boolean_type): Delete.
7443 (float_type, structured_type): Delete.
7444 * language.h: Update.
7445
0f5b7562
TT
74462012-01-04 Tom Tromey <tromey@redhat.com>
7447
7448 * python/py-value.c (valpy_binop): Initialize 'res_val'.
7449
78218f56
JB
74502012-01-04 Joel Brobecker <brobecker@adacore.com>
7451
7452 * corefile.c (close_exec_file): Delete.
7453 (reopen_exec_file): Remove commented out code that seems related
7454 to close_exec_file, which is being deleted here.
7455 * inferior.h (close_exec_file): Delete.
7456 * fork-child.c (fork_inferior): Remove call to fork_inferior.
7457
0fcd72ba
JB
74582012-01-04 Joel Brobecker <brobecker@adacore.com>
7459
7460 * ada-lang.c: #include "cli/cli-utils.h".
7461 (get_selections): Use skip_spaces.
7462 (ada_get_next_arg): Use skip_spaces and skip_to_space.
7463 (catch_ada_exception_command_split): Use skip_spaces.
7464 (ada_decode_assert_location): Likewise.
7465
1dabb4c4
JB
74662012-01-04 Joel Brobecker <brobecker@adacore.com>
7467
7468 * linespec.c (decode_line_internal): Check for C++ or Java
7469 compound constructs only if the current language is C, C++
7470 or Java.
7471
5931a2fa
JK
74722012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7473
7474 Revert:
7475 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7476 Joel Brobecker <brobecker@adacore.com>
7477 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7478 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7479 3 times.
7480 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7481 fall through into AT_ENTRY_POINT.
7482 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7483 DUMMY_ADDR with it.
7484 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7485 PPC_INSN_SIZE skip to 3 times.
7486
1a2da5ee
JB
74872012-01-04 Joel Brobecker <brobecker@adacore.com>
7488
7489 * linespec.c (add_minsym): Preserve function descriptors.
7490
8645ff69
UW
74912012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
7492
7493 * breakpoint.c (all_locations_are_pending): Consider locations
7494 in program spaces executing during startup pending as well.
7495
0b302171
JB
74962012-01-04 Joel Brobecker <brobecker@adacore.com>
7497
7498 Copyright year update in most files of the GDB Project.
7499
8ba098ad
JB
75002012-01-04 Joel Brobecker <brobecker@adacore.com>
7501
7502 * copyright.sh: Delete.
7503 * copyright.py: Rewrite.
7504
09c01c30
JB
75052012-01-04 Joel Brobecker <brobecker@adacore.com>
7506
7507 * gnulib/extra/update-copyright: New file, imported from gnulib.
7508
3c36c0af
JB
75092012-01-04 Joel Brobecker <brobecker@adacore.com>
7510
7511 * README (Copyright and License Notices): New section.
7512
888fe1e1
TT
75132012-01-03 Tom Tromey <tromey@redhat.com>
7514
7515 PR python/12533:
7516 * python/py-value.c (valpy_dereference, valpy_get_address
7517 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
7518 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
7519 (valpy_absolute, valpy_richcompare): Free intermediate values.
7520
6e681866
JB
75212011-01-03 Joel Brobecker <brobecker@adacore.com>
7522
7523 * ada-lang.c: Reformat the copyright notice.
7524
0cd09acb
JK
75252012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7526
7527 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
7528 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
7529 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
7530 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
7531 Revert this part of:
7532 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7533 Build gdb directly from *.o files not using libgdb.a.
7534 * Makefile.in (COMMON_OBS): Remove solib-target.o.
7535
12c3e59c
JB
75362012-01-02 Joel Brobecker <brobecker@adacore.com>
7537
7538 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
7539 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
7540 Reformat the copyright header.
7541
11bf1490
JK
75422012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7543
7544 Revert this part of:
7545 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7546 Remove the gdbtui binary.
7547 * gdb.c (main): Remove args.interpreter_p initialization.
7548 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7549 * main.h (struct captured_main_args): Remove interpreter_p.
7550
1fef196f
JB
75512012-01-02 Joel Brobecker <brobecker@adacore.com>
7552
7553 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
7554
67827812
JB
75552012-01-02 Joel Brobecker <brobecker@adacore.com>
7556
7557 * top.c (print_gdb_version): Update copyright year.
7558
a4d0b831
YQ
75592012-01-02 Yao Qi <yao@codesourcery.com>
7560
7561 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
7562
b5914469
JK
75632012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7564 Joel Brobecker <brobecker@adacore.com>
7565
7566 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
7567 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
7568 3 times.
7569 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
7570 fall through into AT_ENTRY_POINT.
7571 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
7572 DUMMY_ADDR with it.
7573 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
7574 PPC_INSN_SIZE skip to 3 times.
7575
8da828f7
JK
75762012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7577
7578 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
7579 the return value.
7580 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
7581
8574e74b
JK
75822012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7583
7584 Build gdb directly from *.o files not using libgdb.a.
7585 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
7586 (COMMON_OBS): Remove solib-target.o.
7587 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
7588 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
7589 (LIBGDB_OBS, libgdb.a): Move it above.
7590 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
7591 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
7592 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
7593 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
7594 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
7595 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
7596 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
7597 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
7598 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
7599 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
7600 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
7601 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
7602 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
7603 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
7604 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
7605 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
7606 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
7607 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
7608 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
7609 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
7610 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
7611 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
7612 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
7613 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
7614 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
7615 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
7616 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
7617
217bff3e
JK
76182012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7619
7620 Remove the gdbtui binary.
7621 * .gitignore (/gdbtui): Remove.
7622 * Makefile.in (TUI): Remove.
7623 (SUBDIR_TUI_OBS): Remove tui-main.o.
7624 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
7625 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
7626 (tui-main.o): Remove.
7627 (all_object_files): Remove tui-main.o.
7628 * NEWS: New note for the gdbtui removal.
7629 * configure: Rebuilt.
7630 * configure.ac: No longer add all-tui, clean-tui, install-tui and
7631 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
7632 CONFIG_UNINSTALL respectively.
7633 * gdb.c (main): Remove args.interpreter_p initialization.
7634 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
7635 * main.h (struct captured_main_args): Remove interpreter_p.
7636 * tui/tui-main.c: Remove.
7637
9cdd5dbd
DE
76382012-01-01 Doug Evans <dje@google.com>
7639
bb5ed363
DE
7640 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
7641 (dwarf2_physname, read_import_statement): Ditto.
7642 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
7643 (process_structure_scope read_subroutine_type): Ditto.
7644 (read_typedef, load_partial_dies, read_partial_die): Ditto.
7645 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
7646 (dwarf2_fetch_die_location_block): Ditto.
7647 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
7648
a0f42c21
DE
7649 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
7650 All callers updated.
7651 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
7652 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
7653 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
7654
2dc860c0
DE
7655 * dwarf2read.c (load_cu): Move assert to more useful location.
7656
68dc6402
DE
7657 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
7658 All callers updated.
7659
9cdd5dbd
DE
7660 * dwarf2read.c (dwarf2_per_objfile): Add comment.
7661 (dwarf2_elf_names): Minor reformat.
7662 (dwarf2_per_cu_data): Tweak comment.
7663 (dwarf2_read_section): Fix comment.
7664 (create_all_comp_units): Fix comment.
7665 (load_full_comp_unit): Fix comment.
7666 (process_full_comp_unit): Fix comment.
7667 (read_signatured_type): Fix comment.
7668
0c10e53e 7669For older changes see ChangeLog-2011.
c906108c
SS
7670\f
7671Local Variables:
7672mode: change-log
7673left-margin: 8
7674fill-column: 74
7675version-control: never
57da7796 7676coding: utf-8
c906108c 7677End: