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