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