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