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