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