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