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