* elfread.c (elf_symtab_read): Update.
[deliverable/binutils-gdb.git] / gdb / ChangeLog
CommitLineData
706e3705
TT
12012-08-22 Tom Tromey <tromey@redhat.com>
2
3 * elfread.c (elf_symtab_read): Update.
4 * objfiles.c (objfiles_bfd_data): New global.
5 (get_objfile_bfd_data, free_objfile_per_bfd_storage)
6 (objfile_bfd_data_free, set_objfile_per_bfd): New functions.
7 (allocate_objfile, free_objfile): Update.
8 (_initialize_objfiles): Initialize objfiles_bfd_data.
9 * objfiles.h (struct objfile_per_bfd_storage): New.
10 (struct objfile) <per_bfd>: New field.
11 <filename_cache>: Remove.
12 (set_objfile_per_bfd): Declare.
13 * symfile.c (reread_symbols): Update. Call
14 set_objfile_per_bfd.
15 (allocate_symtab): Update.
16 * symmisc.c (print_symbol_bcache_statistics): Update.
17 (print_objfile_statistics): Print the size of the BFD obstack.
18
e992eda4
TT
192012-08-22 Tom Tromey <tromey@redhat.com>
20
21 * gdb_bfd.h: Include registry.h. Use DECLARE_REGISTRY.
22 * gdb_bfd.c: Use DEFINE_REGISTRY.
23 (struct gdb_bfd_data): Add REGISTRY_FIELDS.
24 (gdb_bfd_ref): Call bfd_alloc_data.
25 (gdb_bfd_unref): Call bfd_free_data.
26
6b81941e
TT
272012-08-22 Tom Tromey <tromey@redhat.com>
28
29 * registry.h (struct registry_fields): New.
30 (REGISTRY_FIELDS): Redefine.
31 (REGISTRY_ACCESS_FIELD): New macro.
32 (DEFINE_REGISTRY): Add ACCESS argument. Update defined
33 functions.
34
8e260fc0
TT
352012-08-22 Tom Tromey <tromey@redhat.com>
36
37 * auto-load.c (_initialize_auto_load): Update.
38 * solib-svr4.c (_initialize_svr4_solib): Update
39 * solib-dsbt.c (_initialize_dsbt_solib): Update.
40 * solib-darwin.c (_initialize_darwin_solib): Update.
41 * registry.h: New file.
42 * python/py-progspace.c (gdbpy_initialize_pspace): Update.
43 * python/py-inferior.c (gdbpy_initialize_inferior): Update.
44 * progspace.h: Include registry.h. Use DECLARE_REGISTRY.
45 (register_program_space_data_with_cleanup)
46 (register_program_space_data, program_space_alloc_data)
47 (clear_program_space_data, set_program_space_data)
48 (program_space_data): Don't declare.
49 * progspace.c: Use DEFINE_REGISTRY.
50 (struct program_space_data, struct
51 program_space_data_registration, struct
52 program_space_data_registry, program_space_data_registry)
53 (register_program_space_data_with_cleanup)
54 (register_program_space_data, program_space_alloc_data)
55 (program_space_free_data, clear_program_space_data)
56 (set_program_space_data, program_space_data): Remove.
57 * objfiles.h: Include registry.h. Use DECLARE_REGISTRY.
58 (struct objfile) <data, num_data>: Replace with REGISTRY_FIELDS.
59 (register_objfile_data_with_cleanup, register_objfile_data)
60 (clear_objfile_data, set_objfile_data, objfile_data): Don't
61 declare.
62 * objfiles.c: Use DEFINE_REGISTRY.
63 (struct objfile_data, struct objfile_data_registration, struct
64 objfile_data_registry, objfile_data_registry)
65 (register_objfile_data_with_cleanup, register_objfile_data)
66 (objfile_alloc_data, objfile_free_data, clear_objfile_data)
67 (set_objfile_data, objfile_data): Remove.
68 (_initialize_objfiles): Update.
69 * jit.c (_initialize_jit): Update.
70 * inflow.c (_initialize_inflow): Update.
71 * inferior.h: Include registry.h. Use DECLARE_REGISTRY.
72 (struct inferior) <data, num_data>: Replace with REGISTRY_FIELDS.
73 (register_inferior_data_with_cleanup, register_inferior_data)
74 (clear_inferior_data, set_inferior_data, inferior_data): Don't
75 declare.
76 * inferior.c: Use DEFINE_REGISTRY.
77 (struct inferior_data, struct inferior_data_registration, struct
78 inferior_data_registry, inferior_data_registry)
79 (register_inferior_data_with_cleanup, register_inferior_data)
80 (inferior_alloc_data, inferior_free_data clear_inferior_data)
81 (set_inferior_data, inferior_data): Remove.
82 * auxv.c (_initialize_auxv): Update.
83 * ada-lang.c (_initialize_ada_language): Update.
84 * breakpoint.c (_initialize_breakpoint): Update.
85 * i386-nat.c (i386_use_watchpoints): Update.
86
ed9eebaf
TT
872012-08-22 Tom Tromey <tromey@redhat.com>
88
89 * exec.c (exec_close, exec_file_attach): Update.
90 (add_to_section_table): Initialize 'key' field.
91 (add_target_sections, remove_target_sections): Add 'key' argument.
92 * exec.h (add_target_sections, remove_target_sections): Add
93 'key' argument.
94 * solib.c (solib_map_sections, update_solib_list, clear_solib)
95 (reload_shared_libraries_1): Update.
96 * target.h (struct target_section) <key>: New field.
97
2f2e97fa
TT
982012-08-22 Tom Tromey <tromey@redhat.com>
99
100 * cli/cli-cmds.c (filter_sals): Handle nelts == 0 case.
101
b3dbbd6f
PM
1022012-08-21 Pierre Muller <muller@ics.u-strasbg.fr>
103
104 * symfile.c (allocate_symtab): Use host_address_to_string
105 function instead of cast of pointer to long which is not
106 compatible with x86_64-w64-mingw32 build.
107
f94363d7
AP
1082012-08-19 Andrew Pinski <apinski@cavium.com>
109
110 * mips-tdep.c (is_octeon): New function.
111 (is_octeon_bbit_op): New function.
112 (mips32_next_pc): Handle Octeon's bbit instructions.
113 (mips32_instruction_has_delay_slot): Likewise.
114
78a59c2f
AP
1152012-08-19 Andrew Pinski <apinski@cavium.com>
116
117 * mips-tdep.c (mips32_next_pc): Fix line spacing of the comment
118 before the function.
119
4f5bcb50
AP
1202012-08-19 Andrew Pinski <apinski@cavium.com>
121
122 * mips-tdep.c (mips32_next_pc): Consolidate calls to itype_op.
123
e5afdbd7
KS
1242012-08-19 Keith Seitz <keiths@redhat.com>
125
126 PR c++/14365
127 * c-typeprint.c (c_type_print_varspec_prefix): Pass
128 -1 for SHOW to c_type_print_base for METHODPTR and MEMBERPTR.
129
13c9750e
EZ
1302012-08-18 Eli Zaretskii <eliz@gnu.org>
131
132 * Makefile.in (HFILES_NO_SRCDIR): Fix a typo: golang.h -> go-lang.h.
133 The typo broke "make TAGS".
134
db761810 1352012-08-17 Joel Brobecker <brobecker@adacore.com>
136
137 GDB 7.5 released.
138
a451cb65
KS
1392012-08-17 Keith Seitz <keiths@redhat.com>
140
141 PR c++/13356
142 * gdbtypes.c (strict_type_checking): New variable.
143 (show_strict_type_checking): New function.
144 (rank_one_type): Return NS_POINTER_INTEGER_CONVERSION_BADNESS
145 if strict type checking is disabled.
146 (_initialize_gdbtypes): Add "check type" subcommand.
147 * gdbtypes.h (NS_INTEGER_POINTER_CONVERSION_BADNESS): New struct.
148
1492012-08-17 Keith Seitz <keiths@redhat.com>
150
151 * language.h (type_mode): Remove.
152 (type_check): Remove.
153 (struct language_defn): Remove la_type_check.
154 (STRICT_TYPE): Remove unused macro.
155 (type_error): Remove.
156 * language.c (set_type_range_case): Renamed to ...
157 (set_range_case): ... this. Update all callers.
158 Remove type_mode/type_check.
159 (type_mode): Remove.
160 (type_check): Remove.
161 (show_type_command): Remove.
162 (set_type_command): Remove.
163 (language_info): Remove type checking output.
164 (type_error): Remove unused function.
165 (range_error): Update comment.
166 (unknown_language_defn): Remove la_type_check.
167 (auto_language_defn): Likewise.
168 (local_language_defn): Likewise.
169 (_initialize_language): Remove "check type" subcommand.
170 * ada-lang.c (ada_language_defn): Remove la_type_check.
171 * c-lang.c (c_language_defn): Likewise.
172 (cplus_language_defn): Likewise.
173 (asm_language_defn): Likewise.
174 (minimal_language_defn): Likewise.
175 * d-lang.c (d_language_defn): Likewise.
176 * f-lang.c (f_language_defn): Likewise.
177 * go-lang.c (go_language_defn): Likewise.
178 * jv-lang.c (java_language_defn): Likewise.
179 * m2-lang.c (m2_language_defn): Likewise.
180 * objc-lang.c (objc_language_defn): Likewise.
181 * opencl-lang.c (opencl_language_defn): Likewise.
182 * p-lang.c (pascal_language_defn): Likewise.
183
dbf6a605
MF
1842012-08-16 Mike Frysinger <vapier@gentoo.org>
185
186 * infcmd.c (_initialize_infcmd): Remove trailing ) in next help text.
187
973e3cf7
JB
1882012-08-16 Joel Brobecker <brobecker@adacore.com>
189
190 * ia64-hpux-nat.c (ia64_hpux_get_register_from_save_state_t):
191 New function.
192 (ia64_hpux_xfer_memory): Check if inferior_ptid is known before
193 using the regache. Use ia64_hpux_get_register_from_save_state_t
194 to access the bsp and bspstore registers if not.
195
d80ee84f
JB
1962012-08-16 Joel Brobecker <brobecker@adacore.com>
197
198 * breakpoint.h (detach_breakpoints): pid parameter is now a ptid.
199 * breakpoint.c (detach_breakpoints): Change pid parameter into
200 a ptid. Adjust code accordingly.
201 * infrun.c (handle_inferior_event): Delete variable child_pid.
202 Update call to detach_breakpoints to pass the child ptid for
203 fork events.
204 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Remove
205 assert that inferior_ptid's lwp is zero.
206 (linux_handle_extended_wait): Update call to detach_breakpoints.
207 * inf-ttrace.c (inf_ttrace_follow_fork): Update call to
208 detach_breakpoints.
209
2dcc6086
JB
2102012-08-16 Joel Brobecker <brobecker@adacore.com>
211
212 * inf-ttrace.c (inf_ttrace_follow_fork): When following the
213 parent, only call detach_breakpoints if tts.tts_event ==
214 TTEVT_VFORK.
215
0c92d8c1
JB
2162012-08-16 Joel Brobecker <brobecker@adacore.com>
217
218 * dwarf2-frame.c (dwarf2_frame_cache): Use
219 get_frame_address_in_block instead of get_frame_pc as
220 the bound for executing the frame's FDE.
221
6b1755ce
YQ
2222012-08-16 Yao Qi <yao@codesourcery.com>
223
224 * gdbtypes.h (enum type_code): Define TYPE_CODE_BITSTRING -1.
225 * arm-tdep.c (arm_type_align): Remove code handling TYPE_CODE_BITSTRING.
226 * c-typeprint.c (c_type_print_varspec_prefix): Likewise.
227 (c_type_print_varspec_suffix): Likewise.
228 * eval.c (evaluate_subexp_standard): Likewise.
229 * f-typeprint.c (f_type_print_varspec_prefix): Likewise.
230 (f_type_print_varspec_suffix): Likewise.
231 * gdbtypes.c (is_scalar_type): Likewise.
232 (recursive_dump_type): Likewise.
233 * infcall.c (value_arg_coerce): Likewise.
234 * m2-valprint.c (m2_val_print): Likewise.
235 * p-typeprint.c (pascal_type_print_varspec_prefix): Likewise.
236 (pascal_type_print_varspec_suffix): Likewise.
237 (pascal_type_print_base): Likewise.
238 * p-valprint.c (pascal_val_print): Likewise.
239 (pascal_val_print): Likewise.
240 * valops.c (value_slice): Likewise.
241 * valprint.c (scalar_type_p): Likewise.
242 * valarith.c (value_bitstring_subscript): Remove.
243 (value_concat): Remove code handling TYPE_CODE_BITSTRING.
244 Remove comment on TYPE_CODE_BITSTRING.
245
246 * stabsread.c (read_type): Don't set TYPE_CODE (type) to
247 TYPE_CODE_BITSTRING.
248
249 * python/py-type.c (pyty_codes): Move ENTRY (TYPE_CODE_BITSTRING) to
250 slot 0.
251
8acc4065
YQ
2522012-08-16 Yao Qi <yao@codesourcery.com>
253
254 * tracepoint.c (trace_find_none_command): Remove.
255 (_initialize_tracepoint): Call add_alias_cmd for "tfind none".
256
8128fd8e
YQ
2572012-08-16 Yao Qi <yao@codesourcery.com>
258
259 * remote.c (handle_notification): Remove parameter 'length'.
260 (putpkt_binary, getpkt_or_notif_sane_1): Caller update.
261
2873700e
KS
2622012-08-15 Keith Seitz <keiths@redhat.com>
263
264 * gdbtypes.c (opaque_type_resolution): Make static.
265 Add missing comment.
266 (overload_debug): Add missing comment.
267 (show_opaque_type_resolution): Likewise.
268 (show_overload_debug): Likewise.
269 (print_bit_vector): Remove unnecessary forward declaration.
270 (print_arg_types): Likewise.
271 (dump_fn_fieldlists): Likewise.
272 (print_cplus_stuff): Likewise.
273
b82d08cd
TT
2742012-08-15 Tom Tromey <tromey@redhat.com>
275
276 * gdb_bfd.c (struct gdb_bfd_data) <archive_bfd>: New field.
277 (gdb_bfd_ref): Initialize new field.
278 (gdb_bfd_unref): Unref the archive BFD.
279 (gdb_bfd_openr_next_archived_file): Acquire a reference to the
280 parent archive.
281
db6573d6
TT
2822012-08-15 Tom Tromey <tromey@redhat.com>
283
284 PR python/14387:
285 * python/py-bpevent.c (create_breakpoint_event_object): Update
286 comment.
287 * python/py-event.c (evpy_add_attribute): Update comment.
288 * python/py-exitedevent.c (create_exited_event_object): Fix
289 reference counting and error handling.
290 * python/py-newobjfileevent.c (create_new_objfile_event_object):
291 Fix reference counting.
292 * python/py-signalevent.c (create_signal_event_object): Fix
293 reference counting and error handling.
294 * python/py-stopevent.c (emit_stop_event): Fix reference
295 counting.
296 * python/py-threadevent.c (get_event_thread): Return a
297 borrowed reference.
298 * python/py-type.c (convert_field): Fix reference counting.
299
a036ba48
TT
3002012-08-15 Tom Tromey <tromey@redhat.com>
301
302 * dwarf2read.c (dwarf_decode_macro_bytes)
303 <DW_MACRO_GNU_transparent_include>: Use pointer to included data
304 as hash key.
305
486c7739
MF
3062012-08-14 Mike Frysinger <vapier@gentoo.org>
307
308 * infcmd.c (_initialize_infcmd): Update help text for the signal,
309 stepi, nexti, finish, next, step, jump, and continue commands.
310 * infrun.c (_initialize_infrun): Update help text for the handle
311 command.
312
4cf93a03
DE
3132012-08-14 Doug Evans <dje@google.com>
314
70b099cf
DE
315 * gdbtypes.c (struct extra): Delete, unused.
316
5212577a
DE
317 * gdbtypes.c: Whitespace cleanup.
318 (address_space_name_to_int): Remove "extern" from definition.
319 (_initialize_gdbtypes): Declare with initialize_file_ftype.
320
4cf93a03
DE
321 * gdbtypes.c (make_pointer_type): Remove redundant setting of
322 TYPE_POINTER_TYPE (type).
323
3756ef7e
GB
3242012-08-14 Gary Benson <gbenson@redhat.com>
325
326 * solib-svr4.c (svr4_free_library_list): Use free_so.
327
40d72643
MF
3282012-08-13 Mike Frysinger <vapier@gentoo.org>
329
330 * .gitignore: Add go-exp.c.
331
f47f77df
DE
3322012-08-13 Doug Evans <dje@google.com>
333
334 * value.c (show_convenience): Tweak comment.
335 (_initialize_values): Mention convenience functions in the help text
336 for "show convenience".
337
7507c54a
YQ
3382012-08-13 Yao Qi <yao@codesourcery.com>
339
340 * std-operator.def: Remove TERNOP_SLICE_COUNT.
341 * breakpoint.c (watchpoint_exp_is_const): Remove handling to
342 TERNOP_SLICE_COUNT.
343 * eval.c (evaluate_subexp_standard): Likewise.
344 * expprint.c (print_subexp_standard): Likewise.
345 (dump_subexp_body_standard): Likewise.
346 * parse.c (operator_length_standard): Likewise.
347
5cad9736
YQ
3482012-08-13 Yao Qi <yao@codesourcery.com>
349
350 * std-operator.def: Remove OP_BITSTRING.
351 * breakpoint.c (watchpoint_exp_is_const): Update.
352 * eval.c (evaluate_subexp_standard): Remove handling to
353 OP_BITSTRING.
354 * expprint.c (print_subexp_standard): Likewise.
355 (dump_subexp_body_standard): Likewise.
356 * parse.c (operator_length_standard): Likewise.
357 * valops.c (value_bitstring): Remove.
358 * value.h: Remove the declaration of 'value_bitstring'.
359
bad7670a
SDJ
3602012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
361
362 * linespec.c (find_methods): Remove unused variables `i1' and
363 `name_len'.
364 (decode_line_full): Likewise for `arg_start'.
365
d9dce7fa
SDJ
3662012-08-10 Sergio Durigan Junior <sergiodj@redhat.com>
367
368 * gdb_bfd.c (gdb_bfd_unref): Remove unused variable `slot'.
369 (zlib_decompress_section): Likewise for `section_data'.
370 (gdb_bfd_map_section): Likewise for `buf' and `retbuf'.
371
a72c3253
DE
3722012-08-10 Doug Evans <dje@google.com>
373
374 Add $_memeq, $_regex, $_streq, $_strlen convenience functions.
375 * NEWS: Document them.
376 * data-directory/Makefile.in (PYTHON_FILES): Add function/__init__.py,
377 function/strfns.py.
378 * python/py-type.c (typy_array_1): New function.
379 (typy_array): Call it.
380 (typy_vector): New function.
381 (type_object_methods): Add "vector".
382 * python/lib/gdb/function/__init__.py: New file.
383 * python/lib/gdb/function/strfns.py: New file.
384
200bc880
SP
3852012-08-10 Siddhesh Poyarekar <siddhesh@redhat.com>
386
387 * python/py-type.c (convert_field): Use gdb_py_long_from_longest
388 for TYPE_FIELD_BITPOS.
389 (typy_get_sizeof): Likewise for TYPE_LENGTH.
390
de0bea00
MF
3912012-08-10 Mike Frysinger <vapier@gentoo.org>
392
393 PR cli/10436:
394 * common/vec.h (VEC_merge): Define.
395 (DEF_VEC_ALLOC_FUNC_I): Add a merge helper.
396 (DEF_VEC_ALLOC_FUNC_P): Likewise.
397 (DEF_VEC_ALLOC_FUNC_O): Likewise.
398 * completer.c: Include gdb_signals.h.
399 (signal_completer): Define.
400 * completer.h (signal_completer): Add prototype.
401 * infcmd.c (_initialize_infcmd): Assign the command
402 completer for "signal" to handle_completer.
403 * infrun.c: Include completer.h.
404 (handle_completer): Define.
405 (_initialize_infrun): Declare a new local variable c. Store the
406 result of add_com("handle") to it. Assign the command
407 completer for "handle" to handle_completer.
408
5b9afe8a
YQ
4092012-08-09 Yao Qi <yao@codesourcery.com>
410
411 * cli/cli-decode.c (set_cmd_prefix): New.
412 (lookup_cmd_for_prefixlist): New.
413 (add_prefix_cmd): Call set_cmd_prefix and update field 'prefix'
414 of each cmd_list_element in *prefixlist.
415 (add_setshow_cmd_full): set_cmd_prefix.
416 (add_alias_cmd): Likewise.
417 * cli/cli-decode.h (struct cmd_list_element) <prefix>: New field.
418 Declare 'auto_boolean_enums'.
419 * cli/cli-setshow.c: Include "observer.h".
420 (notify_command_param_changed_p): New.
421 (add_setshow_auto_boolean_cmd): Move auto_boolean_enums out.
422 Remove 'static'.
423 (do_setshow_command): Split it to ...
424 (do_set_command, do_show_command): ... them. New.
425 (do_set_command): Call observer_notify_command_param_changed if
426 notify_command_param_changed_p returns true.
427 (cmd_show_list): Caller update.
428 * auto-load.c (set_auto_load_cmd): Likewise.
429 * remote.c (show_remote_cmd): Likewise.
430 * cli/cli-setshow.h: Update declarations.
431 * top.c (execute_command): Call do_set_command and do_show_command.
432
433 * NEWS: Mention new MI notification.
434 * mi/mi-interp.c: Declare mi_command_param_changed.
435 (mi_interpreter_init): Attach mi_command_param_changed to
436 observer command_param_changed.
437 (mi_command_param_changed): New.
438 Remove mi_suppress_breakpoint_notifications.
439 Define global variable mi_suppress_notification.
440 (mi_breakpoint_created): Update.
441 (mi_breakpoint_deleted): Likewise.
442 (mi_breakpoint_modified): Likewise.
443 * mi/mi-main.c (mi_cmd_execute): Likewise. Check command
444 'gdb-set' and set mi_suppress_notification.
445 * mi/mi-main.h: (mi_suppress_notification): New struct.
446
1969df89
JK
4472012-08-09 Andreas Tobler <andreast@fgznet.ch>
448 Jan Kratochvil <jan.kratochvil@redhat.com>
449
450 * fbsd-nat.h (fbsd_find_memory_regions): Use find_memory_region_ftype.
451
8bfd80db
YQ
4522012-08-09 Yao Qi <yao@codesourcery.com>
453
454 * cli/cli-cmds.c (enablebreaklist): Move it to breakpoint.c.
455 (skiplist): Move it to skip.c.
456 (init_cmd_lists): Remove code setting enablebreaklist and
457 skiplist to NULL.
458 * breakpoint.c (enablebreaklist): Moved from cli/cli-cmds.c.
459 * cli/cli-cmds.h: Remove declaration of enablebreaklist and
460 skiplist.
461 * gdbcmd.h: Likewise.
462 * skip.c (_initialize_step_skip): Move 'skiplist' from
463 cli/cli-cmds.c.
464
28578e6b
YQ
4652012-08-09 Yao Qi <yao@codesourcery.com>
466
467 * cli/cli-dump.c: Add 'static' to some cmd_list_element variables.
468 * gnu-nat.c, symfile.c: Likewise.
469
260c0b2a
DE
4702012-08-08 Aaron Gamble <agamble@google.com>
471
472 * utils.c (prompt_for_continue_wait_time): New static global.
473 (make_command_stats_cleanup): Initialize it.
474 (report_command_stats): Subtract time waiting for user.
475 (prompt_for_continue): Track time waiting for user.
476 (defaulted_query): Track time waiting for user.
477
4f485ebc
DE
4782012-08-08 Doug Evans <dje@google.com>
479
480 * eval.c (evaluate_subexp_standard): Fix thinko in handling
481 UNOP_MEMVAL_TYPE.
482 * expprint.c (print_subexp_standard, case OP_TYPE): New.
483 (print_subexp_standard, case UNOP_CAST_TYPE): Don't increment pos.
484 (print_subexp_standard, case UNOP_DYNAMIC_CAST): Ditto.
485 (print_subexp_standard, case UNOP_REINTERPRET_CAST): Ditto.
486 (print_subexp_standard, case UNOP_MEMVAL_TYPE): Ditto.
487 (dump_subexp_body_standard, case UNOP_DYNAMIC_CAST): Don't increment
488 elt.
489 (dump_subexp_body_standard, case UNOP_REINTERPRET_CAST): Ditto.
490 (dump_subexp_body_standard, case UNOP_CAST_TYPE): Ditto.
491 (dump_subexp_body_standard, case UNOP_MEMVAL_TYPE): Ditto.
492 (dump_prefix_expression): Handle OP_TYPE.
493
2acf2b39
KS
4942012-08-08 Keith Seitz <keiths@redhat.com>
495
496 * breakpoint.c (parse_breakpoint_sals): Remove unused variable
497 addr_start.
498
e6712ff1
DE
4992012-08-08 Doug Evans <dje@google.com>
500
501 * linux-thread-db.c: #include "gdb_vecs.h".
502 (try_thread_db_load_from_pdir_1): New arg "subdir". All callers
503 updated.
504 (try_thread_db_load_from_pdir): New arg "subdir". All callers updated.
505 (thread_db_load_search): Use a vector to iterate over path elements.
506 Handle text appearing after "$pdir".
507
508 * gdb_string.h: Moved to ...
509 * common/gdb_string.h: ... here.
510 * common/vec.h: Remove #ifndef GDBSERVER conditional inclusion of
511 gdb_string.h and gdb_assert.h.
512
ab854e54
YQ
5132012-08-08 Yao Qi <yao@codesourcery.com>
514
515 * tic6x-tdep.c (tic6x_register_to_value): Remove.
516 (tic6x_value_to_register): Likewise.
517 (tic6x_gdbarch_init): Don't call set_gdbarch_register_to_value
518 and set_gdbarch_value_to_register.
519
4f69f4c2
JK
5202012-08-07 Jan Kratochvil <jan.kratochvil@redhat.com>
521 Jean-Marc Saffroy <saffroy@gmail.com>
522
523 PR 11804
524 * defs.h (find_memory_region_ftype): New comment. New arg modified.
525 * fbsd-nat.c (fbsd_find_memory_regions): Add the passed modified value.
526 * gcore.c (gcore_create_callback): New function comment. Add modified
527 parameter. Only write modified regions. Set SEC_READONLY exactly
528 according to MODIFIED.
529 (objfile_find_memory_regions): Ignore separate debug info files. Ass
530 the passed modified value to FUNC.
531 * gnu-nat.c (gnu_find_memory_regions): Add the passed modified value.
532 * linux-tdep.c (linux_find_memory_regions): Try to reads smaps file
533 first. New variables modified and has_anonymous. Parse the lines of
534 smaps file. Add the passed MODIFIED value to FUNC.
535 * procfs.c (find_memory_regions_callback): Add the passed modified
536 value.
537
78ac5f83
TT
5382012-08-06 Tom Tromey <tromey@redhat.com>
539
540 * dwarf2-frame.c (clear_pointer_cleanup): New function.
541 (dwarf2_frame_cache): Use it.
542 * frame-unwind.h (frame_sniffer_ftype): Document prologue
543 cache initialization constraint.
544
2c12abee
TT
5452012-08-06 Tom Tromey <tromey@redhat.com>
546
547 PR python/14386:
548 * varobj.c (update_dynamic_varobj_children): Don't call
549 PyIter_Check.
550
4979d7f0
TT
5512012-08-06 Tom Tromey <tromey@redhat.com>
552
553 PR cli/14392:
554 * cli/cli-cmds.c (list_command): Filter 'sals_end'.
555
f3c8a52a
JK
5562012-08-06 Nathaniel Flath <flat0103@gmail.com>
557
558 * NEWS: New entry for 'cd' default parameters.
559 * cli/cli-cmds.c (cd_command): Replace error_no_arg by DIR assignment.
560
5a1cf4d6
TT
5612012-08-03 Tom Tromey <tromey@redhat.com>
562
563 * dwarf2-frame.c (dwarf2_frame_cache): Call do_cleanups before
564 return.
565
7c3270ae
UW
5662012-08-02 Ulrich Weigand <ulrich.weigand@linaro.org>
567
568 * inf-child.c (inf_child_fileio_pwrite): If pwrite fails, fall back
569 to attempting lseek/write.
570 (inf_child_fileio_pread): Likewise for pread.
571
ccce17b0
YQ
5722012-08-02 Yao Qi <yao@codesourcery.com>
573
574 * dwarf2loc.c (entry_values_debug): Add 'unsigned'.
575 (_initialize_dwarf2loc): Call add_setshow_zuinteger_cmd instead of
576 add_setshow_zinteger_cmd.
577 * dwarf2loc.h: Update the declaration of 'entry_values_debug'.
578 * dwarf2read.c (dwarf2_die_debug): Add 'unsigned'.
579 (_initialize_dwarf2_read): Call add_setshow_zuinteger_cmd
580 instead of add_setshow_zinteger_cmd.
581 * darwin-nat.c (dwarwin_debug_flag): Add 'unsigned'.
582 (_initialize_darwin_inferior): Call add_setshow_zuinteger_cmd
583 instead of add_setshow_zinteger_cmd.
584 * frame.c (frame_debug): Add 'unsigned'.
585 (_intialize_frame): Call add_setshow_zuinteger_cmd instead of
586 add_setshow_zinteger_cmd.
587 * frame.h: Update the declaration of 'frame_debug'.
588 * gdbtypes.c (overload_debug): Add 'unsigned'.
589 (_initialize_gdbtypes): Call add_setshow_zuinteger_cmd instead of
590 add_setshow_zinteger_cmd.
591 * inferior.h: Update declaration of 'debug_infrun'.
592 * infrun.c (debug_infrun): Add 'unsigned'.
593 (_initialize_infrun): Call add_setshow_zuinteger_cmd instead of
594 add_setshow_zinteger_cmd.
595 * jit.c (jit_debug): Add 'unsigned'.
596 (_initialize_jit): Call add_setshow_zuinteger_cmd instead of
597 add_setshow_zinteger_cmd.
598 * linux-nat.c (debug_linux_nat): Add 'unsigned'.
599 (_initialize_linux_nat): Call add_setshow_zuinteger_cmd
600 instead of add_setshow_zinteger_cmd.
601 * linux-thread-db.c (libthread_db_debug): Add 'unsigned'.
602 (_initialize_thread_db): Call add_setshow_zuinteger_cmd instead of
603 add_setshow_zinteger_cmd.
604 * machoread.c (mach_o_debug_level): Add 'unsigned'.
605 (_initialize_machoread): Call add_setshow_zuinteger_cmd
606 instead of add_setshow_zinteger_cmd.
607 * mi/mi-cmd-var.c: Update the declaration of 'varobjdebug'.
608 * microblaze-tdep.c (microblaze_debug_flag): Add 'unsigned'.
609 (_initialize_microblaze_tdep): Call add_setshow_zuinteger_cmd
610 intead of add_setshow_zinteger_cmd.
611 * mips-tdep.c (mips_debug): Add 'unsigned'.
612 (_initialize_mips_tdep): Call add_setshow_zuinteger_cmd
613 instead of add_setshow_zinteger_cmd.
614 * monitor.c (monitor_debug): Add 'unsigned'.
615 (_initialize_remote_monitors): Call add_setshow_zuinteger_cmd instead of
616 add_setshow_zinteger_cmd.
617 * observer.c (observer_debug): Add 'unsigned'.
618 (_initialize_observer): Call add_setshow_zuinteger_cmd instead of
619 add_setshow_zinteger_cmd.
620 * parse.c (expressiondebug): Add 'unsigned'.
621 (_initialize_parse): Call add_setshow_zuinteger_cmd instead of
622 add_setshow_zinteger_cmd.
623 * record.c (record_debug): Add 'unsigned'.
624 (_initialize_record): Call add_setshow_zuinteger_cmd instead of
625 add_setshow_zinteger_cmd.
626 * record.h: Update the declaration of 'record_debug'.
627 * stap-probe.c (stap_expression_debug): Add 'unsigned'.
628 (_initialize_stap_probe): Call add_setshow_zuinteger_cmd instead of
629 add_setshow_zinteger_cmd.
630 * serial.c (global_serial_debug_p): Add 'unsigned'.
631 (_initialize_serial): Call add_setshow_zuinteger_cmd instead of
632 add_setshow_zinteger_cmd.
633 * solib-dsbt.c (solib_dsbt_debug): Add 'unsigned'.
634 (_initialize_dsbt_solib): Call add_setshow_zuinteger_cmd instead of
635 add_setshow_zinteger_cmd.
636 * solib-frv.c (solib_frv_debug): Add 'unsigned'.
637 (_initialize_frv_solib): Call add_setshow_zuinteger_cmd instead of
638 add_setshow_zinteger_cmd.
639 * target.c (targetdebug): Add 'unsigned'.
640 (initialize_targets): Call add_setshow_zuinteger_cmd instead of
641 add_setshow_zinteger_cmd.
642 * valops.c (overload_debug): Add 'unsigned'.
643 * varobj.c (varobjdebug): Add 'unsigned'.
644 (_initialize_varobj): Call add_setshow_zuinteger_cmd instead of
645 add_setshow_zinteger_cmd.
646 * xtensa-tdep.c (xtensa_debug_level): Add 'unsigned'.
647 (_initialize_xtensa_tdep): Call add_setshow_zuinteger_cmd
648 instead of add_setshow_zinteger_cmd.
649
650 * arch-utils.h: Remove the declaration of 'gdbarch_debug'.
651 * gdbarch.sh (gdbarch_debug): Add 'unsigned'.
652 (extern void _initialize_gdbarch): Call add_setshow_zuinteger_cmd
653 instead of add_setshow_zinteger_cmd.
654 * gdbarch.c, gdbarch.h: Re-generated.
655
95b07c96
YQ
6562012-08-02 Yao Qi <yao@codesourcery.com>
657
658 * nto-tdep.c: Don't include cli/cli-decode.h and
659 cli/cli-cmds.h.
660 (_initialize_nto_tdep): Remove.
661 * nto-tdep.h (struct nto_target_ops) <internal_debugging>:
662 Remove field.
663 Remove macro nto_internal_debugging.
664
57295b0b
RH
6652012-08-01 Richard Henderson <rth@redhat.com>
666
667 * configure.tgt (m32c-*-*) [gdb_target_obs]: Remove prologue-value.o.
668 (mep-*-*) [gdb_target_obs]: Likewise.
669
f782ad9b
AS
6702012-07-31 Andreas Schwab <schwab@linux-m68k.org>
671
672 * ppc-linux-tdep.c (ppc_linux_init_abi): Register
673 linux_get_siginfo_type.
674
a14dd77e
JK
6752012-07-31 Jan Kratochvil <jan.kratochvil@redhat.com>
676
677 * infcall.c (call_function_by_hand): Move BP_ADDR comment to
678 AT_ENTRY_POINT.
679 (call_function_by_hand) <ON_STACK>: Call write_memory with
680 gdbarch_breakpoint_from_pc, if possible.
681 (call_function_by_hand) <AT_ENTRY_POINT>: The BP_ADDR comment is moved
682 here.
683
1467929f
YQ
6842012-07-31 Yao Qi <yao@codesourcery.com>
685
686 * tracepoint.c: Add 'static' for some variables.
687
70976b65
YQ
6882012-07-31 Yao Qi <yao@codesourcery.com>
689
690 * go32-nat.c: Declare _initialize_go32_nat.
691 * ser-go32.c: Declare _initialize_ser_dos.
692 * top.c (do_chdir_cleanup): Add 'static'.
693
eff9c3e6
KS
6942012-07-30 Keith Seitz <keiths@redhat.com>
695
696 * linespec.c (linespec_lex_number): A number followed
697 by quotes is a valid number, too.
698
728400d7
TT
6992012-07-30 Tom Tromey <tromey@redhat.com>
700
701 * remote-sim.c (gdb_os_poll_quit): Don't check immediate_quit.
702
fcf303ab
UW
7032012-07-30 Ulrich Weigand <ulrich.weigand@linaro.org>
704
705 * arm-linux-nat.c (arm_linux_hw_breakpoint_initialize): Do not
706 attempt to 4-byte-align HW breakpoint addresses for Thumb.
707
4e969b4f
AB
7082012-07-30 Andrew Burgess <aburgess@broadcom.com>
709
710 * varobj.c (varobj_invalidate_iter): All varobj must be marked as
711 invalid or reevaluated to prevent prevent references to possibly
712 delete'd type objects being left in the varobj.
713
c4bfde41
JK
7142012-07-27 Tom Tromey <tromey@redhat.com>
715 Jan Kratochvil <jan.kratochvil@redhat.com>
716
717 * copying.awk: Print buffer-read-only and vi ro markers.
718 * copying.c: Rebuild.
719 * gdbarch.sh (copyright): Print buffer-read-only and vi ro markers.
720 * gdbarch.c, gdbarch.h: Rebuild.
721 * target-descriptions.c (maint_print_c_tdesc_cmd): Print
722 buffer-read-only and vi ro markers.
723 * features/arm-with-iwmmxt.c: Rebuild.
724 * features/arm-with-m-fpa-layout.c: Rebuild.
725 * features/arm-with-m-vfp-d16.c: Rebuild.
726 * features/arm-with-m.c: Rebuild.
727 * features/arm-with-neon.c: Rebuild.
728 * features/arm-with-vfpv2.c: Rebuild.
729 * features/arm-with-vfpv3.c: Rebuild.
730 * features/i386/amd64-avx-linux.c: Rebuild.
731 * features/i386/amd64-avx.c: Rebuild.
732 * features/i386/amd64-linux.c: Rebuild.
733 * features/i386/amd64.c: Rebuild.
734 * features/i386/i386-avx-linux.c: Rebuild.
735 * features/i386/i386-avx.c: Rebuild.
736 * features/i386/i386-linux.c: Rebuild.
737 * features/i386/i386-mmx-linux.c: Rebuild.
738 * features/i386/i386-mmx.c: Rebuild.
739 * features/i386/i386.c: Rebuild.
740 * features/i386/x32-avx-linux.c: Rebuild.
741 * features/i386/x32-avx.c: Rebuild.
742 * features/i386/x32-linux.c: Rebuild.
743 * features/i386/x32.c: Rebuild.
744 * features/mips-dsp-linux.c: Rebuild.
745 * features/mips-linux.c: Rebuild.
746 * features/mips64-dsp-linux.c: Rebuild.
747 * features/mips64-linux.c: Rebuild.
748 * features/rs6000/powerpc-32.c: Rebuild.
749 * features/rs6000/powerpc-32l.c: Rebuild.
750 * features/rs6000/powerpc-403.c: Rebuild.
751 * features/rs6000/powerpc-403gc.c: Rebuild.
752 * features/rs6000/powerpc-405.c: Rebuild.
753 * features/rs6000/powerpc-505.c: Rebuild.
754 * features/rs6000/powerpc-601.c: Rebuild.
755 * features/rs6000/powerpc-602.c: Rebuild.
756 * features/rs6000/powerpc-603.c: Rebuild.
757 * features/rs6000/powerpc-604.c: Rebuild.
758 * features/rs6000/powerpc-64.c: Rebuild.
759 * features/rs6000/powerpc-64l.c: Rebuild.
760 * features/rs6000/powerpc-7400.c: Rebuild.
761 * features/rs6000/powerpc-750.c: Rebuild.
762 * features/rs6000/powerpc-860.c: Rebuild.
763 * features/rs6000/powerpc-altivec32.c: Rebuild.
764 * features/rs6000/powerpc-altivec32l.c: Rebuild.
765 * features/rs6000/powerpc-altivec64.c: Rebuild.
766 * features/rs6000/powerpc-altivec64l.c: Rebuild.
767 * features/rs6000/powerpc-cell32l.c: Rebuild.
768 * features/rs6000/powerpc-cell64l.c: Rebuild.
769 * features/rs6000/powerpc-e500.c: Rebuild.
770 * features/rs6000/powerpc-e500l.c: Rebuild.
771 * features/rs6000/powerpc-isa205-32l.c: Rebuild.
772 * features/rs6000/powerpc-isa205-64l.c: Rebuild.
773 * features/rs6000/powerpc-isa205-altivec32l.c: Rebuild.
774 * features/rs6000/powerpc-isa205-altivec64l.c: Rebuild.
775 * features/rs6000/powerpc-isa205-vsx32l.c: Rebuild.
776 * features/rs6000/powerpc-isa205-vsx64l.c: Rebuild.
777 * features/rs6000/powerpc-vsx32.c: Rebuild.
778 * features/rs6000/powerpc-vsx32l.c: Rebuild.
779 * features/rs6000/powerpc-vsx64.c: Rebuild.
780 * features/rs6000/powerpc-vsx64l.c: Rebuild.
781 * features/rs6000/rs6000.c: Rebuild.
782 * features/s390-linux32.c: Rebuild.
783 * features/s390-linux32v1.c: Rebuild.
784 * features/s390-linux32v2.c: Rebuild.
785 * features/s390-linux64.c: Rebuild.
786 * features/s390-linux64v1.c: Rebuild.
787 * features/s390-linux64v2.c: Rebuild.
788 * features/s390x-linux64.c: Rebuild.
789 * features/s390x-linux64v1.c: Rebuild.
790 * features/s390x-linux64v2.c: Rebuild.
791 * features/tic6x-c62x-linux.c: Rebuild.
792 * features/tic6x-c62x.c: Rebuild.
793 * features/tic6x-c64x-linux.c: Rebuild.
794 * features/tic6x-c64x.c: Rebuild.
795 * features/tic6x-c64xp-linux.c: Rebuild.
796 * features/tic6x-c64xp.c: Rebuild.
797
826f0041
TT
7982012-07-27 Tom Tromey <tromey@redhat.com>
799
800 * c-exp.y (classify_name): Avoid assignment in condition.
801
84552b16
PA
8022012-07-27 Roland Schwingel <roland.schwingel@onevision.com>
803
804 * amd64-windows-tdep.c: Include "frame.h".
805 (amd64_windows_skip_trampoline_code): New function.
806 (amd64_windows_init_abi): Add trampoline registration.
807
a8a64aa8
YQ
8082012-07-27 Yao Qi <yao@codesourcery.com>
809
810 * tracepoint.c (cur_traceframe_number): Remove.
811 (set_tfile_traceframe): Remove.
812 (tfile_trace_find, tfile_fetch_registers): Update callers.
813 (tfile_xfer_partial, tfile_get_trace_state_variable_value): Likewise.
814 (tfile_open, tfile_trace_find): Likewise.
815
d99067cb
YQ
8162012-07-27 Yao Qi <yao@codesourcery.com>
817
818 * thread.c (switch_to_thread): Don't call registers_changed.
819
f2e8016f
TT
8202012-07-26 Tom Tromey <tromey@redhat.com>
821
f782ad9b
AS
822 * Makefile.in (SFILES): Remove objc-exp.y.
823 (YYFILES): Remove objc-exp.c.
824 (YYOBJ): Remove objc-exp.o.
825 (local-maintainer-clean): Don't mention objc-exp.c.
826 * c-exp.y: Include objc-lang.h.
827 (%union) <class>: New field.
828 (NSSTRING, SELECTOR, CLASSNAME, OBJC_LBRAC): New tokens.
829 (exp): Clone subscript production for OBJC_LBRAC. Add various
830 Objective C productions.
831 (msglist, msgarglist, msgarg): New productions.
832 (array_mod, func_mod, operator): Clone productions for
833 OBJC_LBRAC.
834 (parse_string_or_char): Handle '@' strings.
835 (lex_one_token): Return OBJC_LBRAC. Recognize @selector.
836 (classify_name): Check la_name_of_this. Recognize ObjC class
837 names.
838 * objc-exp.y: Remove.
839 * objc-lang.c (objc_language_defn): Use c_parse, c_error.
840 * objc-lang.h (objc_parse, objc_error): Don't declare.
f2e8016f 841
f66713d2
JK
8422012-07-26 Markus Metzger <markus.t.metzger@intel.com>
843
844 * python/py-inferior.c (infpy_threads): Call update_thread_list ().
845
7cfe01b4
JK
8462012-07-26 Jan Kratochvil <jan.kratochvil@redhat.com>
847
848 * auto-load.c (auto_load_info_scripts): Remove immediate_quit increment
849 and decrement.
850
5ba19b4c
TT
8512012-07-26 Tom Tromey <tromey@redhat.com>
852
853 * copying.c: Rebuild.
854 * copying.awk: Don't use immediate_quit. Use 'no_set_class', not
855 'no_class'.
856
27618ce4
TT
8572012-07-26 Tom Tromey <tromey@redhat.com>
858
859 * symmisc.c (print_symbol_bcache_statistics): Use QUIT, not
860 immediate_quit.
861 (print_objfile_statistics): Likewise.
862 (maintenance_print_symbols): Likewise.
863 (maintenance_print_msymbols): Likewise.
864 (maintenance_print_objfiles): Likewise.
865 * psymtab.c (print_partial_symbols): Call QUIT.
866 (maintenance_print_psymbols): Likewise. Don't modify
867 immediate_quit.
868 * copying.c (show_copying_command): Don't modify immediate_quit.
869 (show_warranty_command): Likewise.
870 * cli/cli-cmds.c (show_version): Don't modify immediate_quit.
871
dd3818c8
KS
8722012-07-26 Keith Seitz <keiths@redhat.com>
873
874 * linespec.c (linespec_lexer_lex_number): The input
875 is also a valid number if the next character is a comma
876 or colon.
877
23a80689
JB
8782012-07-26 Joel Brobecker <brobecker@adacore.com>
879
880 * NEWS: Document new --enable-libmcheck/--disable-libmcheck
881 configure options.
882
29f77997
TG
8832012-07-26 Tristan Gingold <gingold@adacore.com>
884
885 * machoread.c: Include gdb_bfd.h.
886
a55c1f32
TG
8872012-07-26 Tristan Gingold <gingold@adacore.com>
888
889 * dwarf2loc.c (locexpr_describe_location_piece): Use uint64_t for
890 offset.
891
56eb65bd
SP
8922012-07-26 Siddhesh Poyarekar <siddhesh@redhat.com>
893
894 * dwarf2loc.c (dwarf2_evaluate_loc_desc_full): Expand parameter
895 SIZE to size_t.
896 (dwarf2_evaluate_loc_desc): Likewise.
897 (dwarf2_loc_desc_needs_frame): Likewise.
898 (locexpr_describe_location_1): Likewise.
899 * dwarf2loc.h (struct dwarf2_locexpr_baton): Make SIZE as
900 size_t.
901 (struct dwarf2_loclist_baton): Likewise.
902 * dwarf2read.c (struct dwarf_block): Likewise.
903 (dump_die_shallow): Use pulongest to print dwarf_block.size.
904 (decode_locdesc): Expand SIZE and I to size_t.
905
aec8845c
JK
9062012-07-25 Jan Kratochvil <jan.kratochvil@redhat.com>
907
908 * contrib/cc-with-tweaks.sh: Put into comment path gdb/contrib/.
909
33d7655b
JB
9102012-07-25 Joel Brobecker <brobecker@adacore.com>
911
912 * doublest.c (convert_doublest_to_floatformat): If the exponent
913 is too small, treat the value as zero. If the exponent is too
914 large, treat the value as infinity.
915
a22d44ff
JB
9162012-07-25 Joel Brobecker <brobecker@adacore.com>
917
918 * configure.ac: Add --enable-lmcheck configure option.
919 * configure: Regenerate.
920
d6b28940
TT
9212012-07-25 Tom Tromey <tromey@redhat.com>
922
f782ad9b
AS
923 * NEWS: Mention maint info bfds.
924 * gdb_bfd.c (all_bfds): New global.
925 (gdb_bfd_ref, gdb_bfd_unref): Update all_bfds.
926 (print_one_bfd, maintenance_info_bfds, _initialize_gdb_bfd):
927 New functions.
d6b28940 928
6e73ba20
RC
9292012-07-25 Ralf Corsépius <ralf.corsepius@rtems.org>
930
931 * configure.tgt: Add v850*-*-rtems*.
932
d560eebd
TT
9332012-07-25 Tom Tromey <tromey@redhat.com>
934
935 * macrotab.c (macro_bcache_str): Remove cast.
936
d7cbec71
HZ
9372012-07-25 Hui Zhu <hui_zhu@mentor.com>
938
939 * linespec.c (linespec_lexer_lex_number): Update comments,
940 change the return and add check to make sure the input is
941 the decimal numbers.
942 (linespec_lexer_lex_one): If linespec_lexer_lex_number return
943 false, call linespec_lexer_lex_string.
944
882f447f
TT
9452012-07-24 Tom Tromey <tromey@redhat.com>
946
947 * symfile.c (symbol_file_add): Don't open BFD twice.
948
53ab4066 9492012-07-24 Marc Khouzam <marc.khouzam@ericsson.com>
e12c7713
MK
950
951 * breakpoint.c (create_breakpoint): Store condition for pending
952 breakpoints.
953
108fb0f7
AS
9542012-07-24 Andreas Schwab <schwab@linux-m68k.org>
955
956 * m68k-tdep.c (m68k_reg_struct_return_p): Accept complex types.
957 (m68k_return_value): Handle complex types like structures.
958 (m68k_svr4_return_value): Likewise.
959
1634dcbe
JK
9602012-07-24 Marcus Shawcroft <marcus.shawcroft@arm.com>
961
962 * gdb_bfd.c (zlib_decompress_section) <!HAVE_ZLIB_H>: Adjust
963 parameters to bfd_get_section_name.
964
e2d12c21
YQ
9652012-07-24 Yao Qi <yao@codesourcery.com>
966
967 * cli/cli-setshow.c: Handle case 'var_uinteger'
968 and 'var_zuninteger' together. Handle case 'var_integer' and
969 'var_zinteger' together.
970
64b92e45
KS
9712012-07-23 Keith Seitz <keiths@redhat.com>
972
973 * linespec.c (convert_linespec_to_sal): Don't add
974 any symbols to the result vector if symbol_to_sal
975 returns zero.
976
0f5f4ffe
KS
9772012-07-23 Keith Seitz <keiths@redhat.com>
978
979 * linespec.c (decode_objc): Record the function name
980 in the linespec.
981
da1cc82f
TT
9822012-07-23 Tom Tromey <tromey@redhat.com>
983
984 * rs6000-nat.c (add_vmap): Rewrite archive loop. Fix reference
985 counting.
986 * exec.c (exec_close_1): Unconditionally release vmap's BFD.
987 (map_vmap): Acquire a reference to the BFD.
988
6c18f3e0
SP
9892012-07-23 Siddhesh Poyarekar <siddhesh@redhat.com>
990
991 * p-valprint.c (pascal_object_print_value): Replace potentially
992 unsafe alloca with xmalloc/xfree.
993 * valops.c (search_struct_method): Likewise.
994
695c3173
TT
9952012-07-23 Tom Tromey <tromey@redhat.com>
996
997 * solib-svr4.c (enable_break): Update.
998 * bfd-target.h (target_bfd_reopen): Update documentation.
999
08d2cd74
TT
10002012-07-23 Tom Tromey <tromey@redhat.com>
1001
1002 * symfile.c (separate_debug_file_exists): Update.
1003 (gdb_bfd_open_maybe_remote): Rename from bfd_open_maybe_remote.
1004 (reread_symbols): Update.
1005 * elfread.c (build_id_verify): Update.
1006 * symfile.h (gdb_bfd_open_maybe_remote): Rename from
1007 bfd_open_maybe_remote.
1008
596f7d67
TT
10092012-07-23 Tom Tromey <tromey@redhat.com>
1010
1011 * gdb_bfd.c (gdb_bfd_ref, gdb_bfd_unref): Fix comment.
1012
8ac244b4
TT
10132012-07-23 Tom Tromey <tromey@redhat.com>
1014
1015 * coffread.c (coff_symfile_read): Make a cleanup for 'debugfile'
1016 and 'abfd'.
1017 * elfread.c (elf_symfile_read): Make a cleanup for 'debugfile'
1018 and 'abfd'.
1019 * jit.c (jit_bfd_try_read_symtab): Make a cleanup for 'nbfd'.
1020 * machoread.c (macho_add_oso_symfile): Make a cleanup for
1021 'abfd'.
1022 (macho_symfile_read): Make a cleanup for 'dsym_bfd'.
1023 * objfiles.c (allocate_objfile): Acquire a new reference.
1024 * rs6000-nat.c (add_vmap): Don't acquire a BFD reference.
1025 * solib.c (solib_read_symbols): Don't acquire a BFD reference.
1026 * spu-linux-nat.c (spu_symbol_file_add_from_memory): Make
1027 a cleanup for 'nbfd'.
1028 * symfile-mem.c (symbol_file_add_from_memory): Make a cleanup
1029 for 'nbfd'.
1030 * symfile.c (symbol_file_add_with_addrs_or_offsets): Don't
1031 make a cleanup for 'abfd'.
1032 (symbol_file_add): Make a BFD cleanup.
1033
64c31149
TT
10342012-07-23 Tom Tromey <tromey@redhat.com>
1035
1036 * cli/cli-dump.c (bfd_openr_with_cleanup): Use gdb_bfd_openr.
1037 (bfd_openw_with_cleanup): Use gdb_bfd_openw.
1038 * corelow.c (core_open): Use gdb_bfd_fopen.
1039 * dsrec.c (load_srec): Use gdb_bfd_openr.
1040 * exec.c (exec_file_attach): Use gdb_bfd_fopen.
1041 * gcore.c (gcore_memory_sections): Use gdb_bfd_openw.
1042 * gdb_bfd.c (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1043 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1044 (gdb_bfd_fdopenr): New functions.
1045 * gdb_bfd.h (gdb_bfd_fopen, gdb_bfd_openr, gdb_bfd_openw)
1046 (gdb_bfd_openr_iovec, gdb_bfd_openr_next_archived_file)
1047 (gdb_bfd_fdopenr): Declare.
1048 * jit.c (bfd_open_from_target_memory): Use gdb_bfd_openr_iovec.
1049 * m32-rom.c (m32r_load, m32r_upload_command): Use gdb_bfd_openr.
1050 * machoread.c (macho_symfile_read_all_oso): Use gdb_bfd_openr,
1051 gdb_bfd_openr_next_archived_file.
1052 (macho_check_dsym): Use gdb_bfd_openr.
1053 (macho_add_oso_symfile): Don't call gdb_bfd_stash_filename.
1054 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_fdopenr.
1055 * remote-m32r-sdi.c (m32r_load): Use gdb_bfd_openr.
1056 * remote-mips.c (mips_load_srec, pmon_load_fast): Use
1057 gdb_bfd_openr.
1058 * remote.c (remote_bfd_open): Use gdb_bfd_openr_iovec.
1059 * rs6000-nat.c (add_vmap): Use gdb_bfd_openr, gdb_bfd_fdopenr,
1060 gdb_bfd_openr_next_archived_file.
1061 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1062 Use gdb_bfd_openr.
1063 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
1064 gdb_bfd_openr.
1065 * solib-spu.c (spu_bfd_fopen): Use gdb_bfd_openr_iovec.
1066 * solib.c (solib_bfd_fopen): Use gdb_bfd_fopen.
1067 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_openr_iovec.
1068 * symfile.c (bfd_open_maybe_remote): Use gdb_bfd_openr.
1069 (symfile_bfd_open): Use gdb_bfd_fopen.
1070 (generic_load): Use gdb_bfd_openr.
1071 * windows-nat.c (windows_make_so): Use gdb_bfd_openr.
1072
520b0001
TT
10732012-07-23 Tom Tromey <tromey@redhat.com>
1074
1075 * bfd-target.c (target_bfd_reopen): Update.
1076 * cli/cli-dump.c (bfd_openr_with_cleanup)
1077 (bfd_openw_with_cleanup): Update.
1078 * corelow.c (core_open): Update.
1079 * dsrec.c (load_srec): Update.
1080 * exec.c (exec_file_attach): Update.
1081 * gcore.c (create_gcore_bfd): Update.
1082 * gdb_bfd.c (gdb_bfd_ref): Return void.
1083 (gdb_bfd_open): Update.
1084 * gdb_bfd.h (gdb_bfd_ref): Return void.
1085 Update comments.
1086 * jit.c (jit_bfd_try_read_symtab): Update.
1087 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1088 * machoread.c (macho_symfile_read_all_oso): Update.
1089 (macho_check_dsym): Update.
1090 * procfs.c (insert_dbx_link_bpt_in_file): Update.
1091 * remote-m32r-sdi.c (m32r_load): Update.
1092 * remote-mips.c (mips_load_srec, pmon_load_fast): Update.
1093 * rs6000-nat.c (add_vmap): Update.
1094 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1095 Update.
1096 * solib-pa64.c (pa64_solib_create_inferior_hook): Update.
1097 * solib-spu.c (spu_bfd_open): Update.
1098 * solib.c (solib_bfd_fopen, solib_read_symbols): Update.
1099 * spu-linux-nat.c (spu_bfd_open): Update.
1100 * symfile.c (bfd_open_maybe_remote, symfile_bfd_open)
1101 (generic_load): Update.
1102 * windows-nat.c (windows_make_so): Update.
1103
2322ff16
SP
11042012-07-22 Siddhesh Poyarekar <siddhesh@redhat.com>
1105
1106 * sh-tdep.c (sh_treat_as_flt_p): Remove unused variable LEN.
1107
3def0b36
PA
11082012-07-20 Jeff Kenton <jkenton@tilera.com>
1109
1110 * tilegx-linux-tdep.c (tilegx_linux_sigframe_init): Fix
1111 SIGTRAMP_FRAME unwinding.
1112
e615022a
DE
11132012-07-20 Doug Evans <dje@google.com>
1114
1115 * NEWS: Document new options "set/show use-deprecated-index-sections",
1116 and delete reference to --use-deprecated-index-sections.
1117 * symfile.h (use_deprecated_index_sections): Delete.
1118 * dwarf2read.c (use_deprecated_index_sections): Make static.
1119 (read_index_from_section): Update wording of how to load
1120 deprecated index sections.
1121 (_initialize_dwarf2_read): New options
1122 "set/show use-deprecated-index-sections".
1123 * main.c (captured_main): Delete --use-deprecated-index-sections.
1124
64776a0b
PA
11252012-07-20 Pedro Alves <palves@redhat.com>
1126
1127 PR threads/11692
1128 PR gdb/12203
1129
1130 * infrun.c (handle_inferior_event) <new thread>: Don't special
1131 case minus_one_ptid.
1132 <TARGET_WAITKIND_SPURIOUS>: Ditto.
1133 * linux-thread-db.c (thread_get_info_callback): Don't return early
1134 if the thread is zombie.
1135 (thread_from_lwp): Change return type to void. Rewrite stale
1136 comment.
1137 (attach_thread): Don't return early if the thread is zombie,
1138 instead set its "dying" flag.
1139 (thread_db_wait): Don't return TARGET_WAITKIND_SPURIOUS anymore.
1140 (find_new_threads_callback): Don't return early if the thread is
1141 zombie.
1142
09826ec5
PA
11432012-07-20 Pedro Alves <palves@redhat.com>
1144
1145 * linux-nat.c (linux_nat_wait): Dump the passed in target options.
1146 * target.c (target_wait): Likewise.
1147 (str_comma_list_concat_elem, do_option, target_options_to_string):
1148 New functions.
1149 * target.h (target_options_to_string): Declare.
1150
f7a35f02
TT
11512012-07-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1152 Tom Tromey <tromey@redhat.com>
1153
1154 * dwarf2read.c (dwarf_decode_macros)
1155 <DW_MACRO_GNU_define_indirect_alt, DW_MACRO_GNU_undef_indirect_alt,
1156 DW_MACRO_GNU_transparent_include_alt>: New cases.
1157 (dwarf_decode_macro_bytes) <DW_MACRO_GNU_define_indirect,
1158 DW_MACRO_GNU_undef_indirect>: Examine 'section_is_dwz'.
1159
b81e1ee0
TT
11602012-07-20 Tom Tromey <tromey@redhat.com>
1161
1162 * dwarf2read.c (try_open_dwo_file): Don't call
1163 gdb_bfd_stash_filename.
1164
99c1624c
PA
11652012-07-20 Pedro Alves <palves@redhat.com>
1166
1167 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1168 (i386_record_lea_modrm, i386_record_push, i386_record_floats)
1169 (i386_process_record): Tweak description comments.
1170
4ffa4fc7
PA
11712012-07-20 Pedro Alves <palves@redhat.com>
1172
1173 * i386-tdep.c (i386_record_modrm, i386_record_lea_modrm_addr)
1174 (i386_process_record): Use record_read_memory.
1175 * record.c (record_read_memory): New function.
1176 (record_arch_list_add_mem, record_exec_insn): Use
1177 record_read_memory.
1178 * record.h (record_read_memory): Declare.
1179
c24343e2
YQ
11802012-07-20 Yao Qi <yao@codesourcery.com>
1181
1182 * cli/cli-setshow.c (do_setshow_command): Don't check pointer is
1183 NULL for xfree.
1184
90f47860
PA
11852012-07-19 Pedro Alves <palves@redhat.com>
1186
1187 * record.c (record_resume): Ask the target beneath to report all
1188 signals.
1189
01093045
DE
11902012-07-19 Doug Evans <dje@google.com>
1191
1192 * dwarf2read.c (dwarf2_ranges_read): Ignore ranges starting at zero if
1193 there's no section at address zero.
1194 (dwarf2_record_block_ranges): Ditto.
1195
a7c3d162
YQ
11962012-07-19 Yao Qi <yao@codesourcery.com>
1197
1198 * command.h, remote.c: Fix a typo in comment.
1199
608b4967
TT
12002012-07-19 Tom Tromey <tromey@redhat.com>
1201
1202 PR exp/13206:
1203 * ax-gdb.c (gen_expr) <OP_TYPEOF, OP_DECLTYPE>: New cases.
1204 * breakpoint.c (watchpoint_exp_is_const) <OP_TYPEOF,
1205 OP_DECLTYPE>: New cases.
1206 * c-exp.y (TYPEOF, DECLTYPE): New tokens.
1207 (type_exp): Add new productions.
1208 (ident_tokens): Add __typeof__, typeof, __typeof, __decltype,
1209 and decltype.
1210 * eval.c (evaluate_subexp_standard) <OP_TYPEOF, OP_DECLTYPE>:
1211 New case.
1212 * expprint.c (dump_subexp_body_standard) <OP_TYPEOF,
1213 OP_DECLTYPE>: New case.
1214 * parse.c (operator_length_standard) <OP_TYPEOF, OP_DECLTYPE>:
1215 New case.
1216 * std-operator.def (OP_TYPEOF, OP_DECLTYPE): New constants.
1217 * varobj.c (varobj_create): Handle OP_TYPEOF, OP_DECLTYPE.
1218
274b54d7
TT
12192012-07-19 Tom Tromey <tromey@redhat.com>
1220
1221 * c-exp.y (enum token_flags): New.
1222 (struct token) <cxx_only>: Remove.
1223 <flags>: New field.
1224 (tokentab3, tokentab2, ident_tokens): Update.
1225 (lex_one_token): Update. Handle FLAG_SHADOW.
1226
9eaf6705
TT
12272012-07-19 Tom Tromey <tromey@redhat.com>
1228
1229 * ax-gdb.c (gen_expr): Handle UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE.
1230 * breakpoint.c (watchpoint_exp_is_const): Handle UNOP_CAST_TYPE,
1231 UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST.
1232 * c-exp.y (exp): Emit UNOP_MEMVAL_TYPE, UNOP_CAST_TYPE. Update
1233 for changes to UNOP_REINTERPRET_CAST, UNOP_DYNAMIC_CAST. Use
1234 type_exp production where appropriate.
1235 * eval.c (evaluate_subexp_standard) <UNOP_CAST_TYPE>: New case.
1236 <UNOP_DYNAMIC_CAST, UNOP_REINTERPRET_CAST>: Update.
1237 <UNOP_MEMVAL_TYPE>: New case.
1238 (evaluate_subexp_for_address) <UNOP_MEMVAL_TYPE>: New case.
1239 (evaluate_subexp_for_sizeof) <UNOP_MEMVAL_TYPE>: New case.
1240 * expprint.c (print_subexp_standard) <UNOP_CAST_TYPE>: New case.
1241 <UNOP_MEMVAL_TYPE>: New case.
1242 (dump_subexp_body_standard) <UNOP_DYNAMIC_CAST,
1243 UNOP_REINTERPRET_CAST>: Update.
1244 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1245 * parse.c (operator_length_standard) <UNOP_DYNAMIC_CAST,
1246 UNOP_REINTERPRET_CAST>: Update.
1247 <UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE>: New cases.
1248 * stack.c (return_command): Also check for UNOP_CAST_TYPE.
1249 * std-operator.def (UNOP_CAST_TYPE, UNOP_MEMVAL_TYPE): New
1250 constants.
1251
6ace3df1
YQ
12522012-07-19 Yao Qi <yao@codesourcery.com>
1253 Jan Kratochvil <jan.kratochvil@redhat.com>
1254
1255 * cli/cli-setshow.c (do_setshow_command): Handle case 'var_filename'
1256 and case 'var_optional_filename' together.
1257 * infcmd.c (_initialize_infcmd): Call add_setshow_string_noescape_cmd
1258 instead of add_setshow_optional_filename_cmd for setshow command
1259 'args'. Set completer for 'set args'.
1260
48faced0
DE
12612012-07-18 Doug Evans <dje@google.com>
1262
1263 * common/gdb_vecs.h: Moved here from ./gdb_vecs.h.
1264 * common/gdb_vecs.c: New file, contents from utils.c.
1265 * common/host-defs.h: New file, contents from defs.h.
1266 * utils.h: New file, contents from defs.h.
1267 * defs.h: Move all declarations of objects defined in utils.c
1268 to utils.h (except QUIT() and related).
1269 #include "utils.h", "host-defs.h".
1270 * probe.h (probe_p): Move here from gdb_vecs.h.
1271 * symfile.c: #include "probe.h" instead of "gdb_vecs.h".
1272 * utils.c (free_char_ptr_vec): Moved to common/gdb_vecs.c.
1273 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): Ditto.
1274 * Makefile.in (SFILES): Add common/gdb_vecs.c.
1275 (HFILES_NO_SRCDIR): Add common/gdb_vecs.h, common/host-defs.h, utils.h.
1276 (COMMON_OBS): Add gdb_vecs.o.
1277 (gdb_vecs.o): New rule.
1278
66f1999b
KS
12792012-07-18 Keith Seitz <keiths@redhat.com>
1280
1281 * linespec.c (add_sal_to_sals): Add LITERAL_CANONICAL
1282 parameter. If non-zero, use SYMNAME as the canonical name
1283 for the SaL.
1284 Update all callers.
1285 (convert_linespec_to_sals): Use add_sal_to_sals for
1286 expressions, too.
1287 (decode_line_full): No need to "fill in missing canonical names"
1288 anymore. Simply make cleanups for the allocated names.
1289
5d94e27b
KS
12902012-07-18 Keith Seitz <keiths@redhat.com>
1291
1292 * linespec.c (struct linespec): Constify expression,
1293 source_filename, function_name, and label_name.
1294 (symbol_not_found_error): Make all parameters const.
1295 (linespec_parser_delete): No need to check for NULL
1296 when using xfree. Cast const char * to char * for xfree.
1297
af4908ba
KS
12982012-07-18 Keith Seitz <keiths@redhat.com>
1299
1300 * breakpoint.c (invalid_thread_id_error): New function.
1301 (find_condition_and_thread): Use invalid_thread_id_error.
1302 (watch_command_1): Likewise.
1303
853254db
TT
13042012-07-18 Tom Tromey <tromey@redhat.com>
1305
1306 * cc-with-index.sh, cc-with-dwz.sh: Remove.
1307 * contrib/cc-with-tweaks.sh: New file.
1308
2ec9a5e0
TT
13092012-07-18 Tom Tromey <tromey@redhat.com>
1310
1311 * dwarf2read.c (struct dwz_file) <gdb_index>: New field.
1312 (locate_dwz_sections): Recognize .gdb_index.
1313 (create_cus_from_index_list): New function.
1314 (create_cus_from_index): Use it. Handle .dwz data.
1315 (read_index_from_section): New function, extracted from
1316 dwarf2_read_index.
1317 (dwarf2_read_index): Use it. Read .gdb_index from dwz file,
1318 if needed.
1319
36586728
TT
13202012-07-18 Tom Tromey <tromey@redhat.com>
1321
1322 * dwarf2read.c (struct dwarf2_per_objfile) <dwz_file>: New field.
1323 (struct dwarf2_per_cu_data) <length>: No longer bitfield.
1324 <is_dwz>: New field.
1325 (struct dwz_file): New.
1326 (struct partial_die_info) <is_dwz, spec_is_dwz>: New fields.
1327 (locate_dwz_sections, dwarf2_get_dwz_file)
1328 (get_abbrev_section_for_cu): New functions.
1329 (error_check_comp_unit_head, read_and_check_comp_unit_head)
1330 (read_and_check_type_unit_head): Add abbrev_section argument.
1331 (create_debug_types_hash_table): Update.
1332 (init_cutu_and_read_dies): Use proper abbrev section.
1333 (init_cutu_and_read_dies_no_follow): Likewise.
1334 (set_partial_user): Do nothing if PST==NULL.
1335 (read_comp_units_from_section): New function.
1336 (create_all_comp_units): Use it.
1337 (scan_partial_symbols, partial_die_parent_scope): Update.
1338 (skip_one_die): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1339 (process_imported_unit_die, read_partial_die): Handle .dwz files.
1340 (find_partial_die): Add offset_in_dwz argument. Update.
1341 (guess_partial_die_structure_name, fixup_partial_die): Update.
1342 (read_attribute_value): Handle DW_FORM_GNU_ref_alt,
1343 DW_FORM_GNU_strp_alt.
1344 (read_indirect_string_from_dwz): New function.
1345 (dwarf2_const_value_attr): Handle DW_FORM_GNU_strp_alt.
1346 (dump_die_shallow): Handle DW_FORM_GNU_ref_alt, DW_FORM_GNU_strp_alt.
1347 (is_ref_attr): Handle DW_FORM_GNU_ref_alt.
1348 (follow_die_offset): Add offset_in_dwz argument.
1349 (follow_die_ref, dwarf2_fetch_die_location_block): Update.
1350 (skip_form_bytes): Handle DW_FORM_GNU_strp_alt.
1351 (dwarf_decode_macro_bytes): Add section_is_dwz argument.
1352 Handle new macro forms.
1353 (dwarf_decode_macros): Update.
1354 (dwarf2_find_containing_comp_unit): Add offset_in_dwz argument.
1355 (dwarf2_per_objfile_free): Unref dwz_bfd, if it exists
1356 (lookup_die_type): Handle DW_FORM_GNU_ref_alt.
1357 (create_debug_types_hash_table): Use correct abbrev section.
1358 (get_debug_line_section): New function.
1359 (dwarf_decode_line_header, dwarf_decode_lines_1): Use it.
1360 (process_full_comp_unit): Pass 'required' argument to
1361 end_symtab_get_static_block.
1362 * buildsym.h (end_symtab_get_static_block): Update.
1363 * buildsym.c (end_symtab_get_static_block): Add 'required'
1364 argument.
1365 (end_symtab, end_expandable_symtab): Update.
1366
4bf44c1c
TT
13672012-07-18 Tom Tromey <tromey@redhat.com>
1368
1369 * dwarf2read.c: Don't include zlib.h or sys/mman.h.
1370 (pagesize): Remove.
1371 (struct dwarf2_section_info) <map_addr, map_len>: Remove.
1372 (zlib_decompress_section): Remove.
1373 (dwarf2_read_section): Use gdb_bfd_map_section.
1374 (munmap_section_buffer): Remove.
1375 (free_dwo_file, dwarf2_per_objfile_free): Don't use
1376 munmap_section_buffer.
1377 * gdb_bfd.c: Include zlib.h, sys/mman.h.
1378 (struct gdb_bfd_section_data): New.
1379 (free_one_bfd_section): New function.
1380 (gdb_bfd_close_or_warn): Use free_one_bfd_section.
1381 (get_section_descriptor, zlib_decompress_section)
1382 (gdb_bfd_map_section): New functions.
1383 * gdb_bfd.h (gdb_bfd_map_section): Declare.
1384
bb397797
TT
13852012-07-18 Tom Tromey <tromey@redhat.com>
1386
1387 * dwarf2read.c (try_open_dwo_file): use gdb_bfd_open.
1388
6ec53d05
TT
13892012-07-18 Tom Tromey <tromey@redhat.com>
1390
1391 * gdb_bfd.c (struct gdb_bfd_data): New.
1392 (gdb_bfd_cache): New global.
1393 (struct gdb_bfd_cache_search): New.
1394 (hash_bfd, eq_bfd, gdb_bfd_open): New functions.
1395 (gdb_bfd_ref, gdb_bfd_unref): Use gdb_bfd_data.
1396 * gdb_bfd.h (gdb_bfd_open): Declare.
1397
f9a062ff
TT
13982012-07-18 Tom Tromey <tromey@redhat.com>
1399
1400 * utils.c (make_cleanup_bfd_unref): Rename from
1401 make_cleanup_bfd_close.
1402 * defs.h (make_cleanup_bfd_unref): Rename from
1403 make_cleanup_bfd_close.
1404 * cli/cli-dump.c (bfd_openr_with_cleanup): Update.
1405 (bfd_openw_with_cleanup): Update.
1406 * corelow.c (core_open): Update.
1407 * dsrec.c (load_srec): Update.
1408 * m32r-rom.c (m32r_load, m32r_upload_command): Update.
1409 * remote-m32r-sdi.c (m32r_load): Update.
1410 * remote-mips.c (mips_load_srec): Update.
1411 (pmon_load_fast): Update.
1412 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1413 Update.
1414 (darwin_bfd_open): Update.
1415 * solib.c (solib_bfd_fopen): Update.
1416 * symfile-mem.c (symbol_file_add_from_memory): Update.
1417 * symfile.c (symbol_file_add_with_addrs_or_offsets): Update.
1418 (symfile_bfd_open): Update.
1419 (generic_load): Update.
1420
d6ad71ba
TT
14212012-07-18 Tom Tromey <tromey@redhat.com>
1422
1423 * remote-mips.c (mips_load_srec): Use make_cleanup_bfd_close.
1424 (pmon_load_fast): Likewise.
1425 * m32r-rom.c (m32r_load): Use make_cleanup_bfd_close.
1426 (m32r_upload_command): Likewise.
1427 * dsrec.c (load_srec): Use make_cleanup_bfd_close.
1428 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1429 Use make_cleanup_bfd_close.
1430
a4453b7e
TT
14312012-07-18 Tom Tromey <tromey@redhat.com>
1432
1433 * symfile.c (symfile_bfd_open): Don't copy name. Call
1434 gdb_bfd_stash_filename.
1435 (load_command): Open the new BFD before freeing the old.
1436 (bfd_open_maybe_remote): Call gdb_bfd_stash_filename.
1437 * symfile-mem.c (symbol_file_add_from_memory): Don't copy name.
1438 Call gdb_bfd_stash_filename.
1439 * spu-linux-nat.c (spu_bfd_open): Don't copy name.
1440 * solib-spu.c (spu_bfd_fopen): Don't copy name. Call
1441 gdb_bfd_stash_filename.
1442 * solib-darwin.c (darwin_solib_get_all_image_info_addr_at_init):
1443 Free found_pathname.
1444 * rs6000-nat.c (add_vmap): Don't copy filename. Call
1445 gdb_bfd_stash_filename.
1446 * remote.c (remote_bfd_open): Call gdb_bfd_stash_filename.
1447 * machoread.c (macho_add_oso_symfile): Call
1448 gdb_bfd_stash_filename.
1449 (macho_symfile_read_all_oso): Arrange to free archive_name. Call
1450 gdb_bfd_stash_filename.
1451 (macho_check_dsym): Don't copy filename. Call
1452 gdb_bfd_stash_filename.
1453 * jit.c (bfd_open_from_target_memory): Don't copy the filename.
1454 * gdb_bfd.c (gdb_bfd_stash_filename): New function.
1455 * gdb_bfd.h (gdb_bfd_stash_filename): Declare.
1456 * gcore.c (create_gcore_bfd): Call gdb_bfd_stash_filename.
1457 * exec.c (exec_close): Don't free the BFD's filename.
1458 (exec_file_attach): Don't copy the filename. Call
1459 gdb_bfd_stash_filename.
1460 * corelow.c (core_close): Don't free the BFD's filename.
1461 (core_open): Call gdb_bfd_stash_filename.
1462 * corefile.c (reopen_exec_file): Remove #if 0 code.
1463 * solib.c (solib_bfd_fopen): Call gdb_bfd_stash_filename. Free
1464 pathname.
1465 * dwarf2read.c (try_open_dwo_file): Call gdb_bfd_stash_filename.
1466
cbb099e8
TT
14672012-07-18 Tom Tromey <tromey@redhat.com>
1468
1469 * dwarf2read.c (try_open_dwo_file): Use gdb_bfd_ref and
1470 gdb_bfd_unref.
1471 (free_dwo_file): Use gdb_bfd_unref.
1472 * cli/cli-dump.c: Include gdb_bfd.h.
1473 (bfd_openw_with_cleanup): Use gdb_bfd_ref.
1474 (bfd_openr_with_cleanup): Likewise.
1475 * windows-nat.c (windows_make_so): Use gdb_bfd_ref,
1476 gdb_bfd_unref.
1477 * utils.c: Include gdb_bfd.h.
1478 (do_bfd_close_cleanup): Use gdb_bfd_unref.
1479 * symfile.c: Include gdb_bfd.h.
1480 (separate_debug_file_exists): Use gdb_bfd_unref.
1481 (bfd_open_maybe_remote): Use gdb_bfd_ref.
1482 (symfile_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1483 (generic_load): Use gdb_bfd_ref.
1484 (reread_symbols): Use gdb_bfd_unref.
1485 * symfile-mem.c: Include gdb_bfd.h.
1486 (symbol_file_add_from_memory): Use make_cleanup_bfd_close.
1487 * spu-linux-nat.c (spu_bfd_open): Use gdb_bfd_ref, gdb_bfd_unref.
1488 * solib.c: Include gdb_bfd.h.
1489 (solib_bfd_fopen): Use gdb_bfd_ref.
1490 (solib_bfd_open): Use gdb_bfd_unref.
1491 (free_so_symbols): Use gdb_bfd_unref.
1492 (reload_shared_libraries_1): Use gdb_bfd_unref.
1493 * solib-spu.c: Include gdb_bfd.h.
1494 (spu_bfd_fopen): Use gdb_bfd_ref, gdb_bfd_unref.
1495 * solib-pa64.c (pa64_solib_create_inferior_hook): Use gdb_bfd_ref,
1496 gdb_bfd_unref.
1497 * solib-frv.c: Include gdb_bfd.h.
1498 (enable_break2): Use gdb_bfd_unref.
1499 * solib-dsbt.c: Include gdb_bfd.h.
1500 (enable_break2): Use gdb_bfd_unref.
1501 * solib-darwin.c: Include gdb_bfd.h.
1502 (darwin_solib_get_all_image_info_addr_at_init): Use gdb_bfd_ref,
1503 gdb_bfd_unref.
1504 (darwin_bfd_open): Use gdb_bfd_unref.
1505 * rs6000-nat.c (add_vmap): Use gdb_bfd_ref, gdb_bfd_unref.
1506 * remote-mips.c: Include gdb_bfd.h.
1507 (mips_load_srec): Use gdb_bfd_ref.
1508 (pmon_load_fast): Use gdb_bfd_ref.
1509 * remote-m32r-sdi.c: Include gdb_bfd.h.
1510 (m32r_load): Use gdb_bfd_ref.
1511 * record.c: Include gdb_bfd.h.
1512 (record_save_cleanups): Use gdb_bfd_unref.
1513 (cmd_record_save): Use gdb_bfd_unref.
1514 * procfs.c (insert_dbx_link_bpt_in_file): Use gdb_bfd_ref,
1515 gdb_bfd_unref.
1516 * objfiles.h (gdb_bfd_close_or_warn): Remove.
1517 (gdb_bfd_ref, gdb_bfd_unref): Move to gdb_bfd.h.
1518 * objfiles.c: Include gdb_bfd.h.
1519 (free_objfile): Use gdb_bfd_unref.
1520 (gdb_bfd_close_or_warn, gdb_bfd_ref, gdb_bfd_unref): Move to
1521 gdb_bfd.c.
1522 * machoread.c (macho_add_oso_symfile): Use gdb_bfd_unref.
1523 (macho_symfile_read_all_oso): Use gdb_bfd_ref, gdb_bfd_unref.
1524 (macho_check_dsym): Likewise.
1525 * m32r-rom.c: Include gdb_bfd.h.
1526 (m32r_load): Use gdb_bfd_ref.
1527 (m32r_upload_command): Use gdb_bfd_ref.
1528 * jit.c: Include gdb_bfd.h.
1529 (jit_bfd_try_read_symtab): Use gdb_bfd_ref, gdb_bfd_unref.
1530 * gdb_bfd.h: New file.
1531 * gdb_bfd.c: New file.
1532 * gcore.c: Include gdb_bfd.h.
1533 (create_gcore_bfd): Use gdb_bfd_ref.
1534 (do_bfd_delete_cleanup): Use gdb_bfd_unref.
1535 (gcore_command): Use gdb_bfd_unref.
1536 * exec.c: Include gdb_bfd.h.
1537 (exec_close): Use gdb_bfd_unref.
1538 (exec_close_1): Use gdb_bfd_unref.
1539 (exec_file_attach): Use gdb_bfd_ref.
1540 * elfread.c: Include gdb_bfd.h.
1541 (build_id_verify): Use gdb_bfd_unref.
1542 * dsrec.c: Include gdb_bfd.h.
1543 (load_srec): Use gdb_bfd_ref.
1544 * corelow.c: Include gdb_bfd.h.
1545 (core_close): Use gdb_bfd_unref.
1546 (core_open): Use gdb_bfd_ref.
1547 * bfd-target.c: Include gdb_bfd.h.
1548 (target_bfd_xclose): Use gdb_bfd_unref.
1549 (target_bfd_reopen): Use gdb_bfd_ref.
1550 * Makefile.in (SFILES): Add gdb_bfd.c.
1551 (HFILES_NO_SRCDIR): Add gdb_bfd.h.
1552 (COMMON_OBS): Add gdb_bfd.o.
1553
ed1d1739
KS
15542012-07-18 Keith Seitz <keiths@redhat.com>
1555
1556 * breakpoint.c (find_condition_and_thread): Initialize
1557 TASK and REST.
1558 (create_breakpiont): find_condition_and_thread will now
1559 initialize COND_STRING, THREAD, and REST (and TASK).
1560 (addr_string_to_sals): Likewise.
1561
eab402df
PA
15622012-07-18 Pedro Alves <palves@redhat.com>
1563
1564 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_NO_HISTORY>:
1565 Pull the single step breakpoints out of the target.
1566
2b963b68
SDJ
15672012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1568
1569 * probe.c (probe_safe_evaluate_at_pc): Rename variable `n_probes'.
1570 * stap-probe.c (compile_probe_arg): Likewise.
1571
6bac7473
SDJ
15722012-07-18 Sergio Durigan Junior <sergiodj@redhat.com>
1573
1574 * elfread.c (elf_get_probe_argument_count): Remove `objfile' argument.
1575 (elf_compile_to_ax): Likewise.
1576 * infrun.c (insert_exception_resume_from_probe): Likewise.
1577 (check_exception_resume): Remove `objfile' variable.
1578 * probe.c (find_probe_by_pc): Remove `objfile' argument.
1579 (struct probe_and_objfile, probe_and_objfile_s): Delete.
1580 (collect_probes): Adjust return value to `VEC (probe_p) *'.
1581 (compare_entries): Rename to...
1582 (compare_probes): ...this. Adjust function to work with
1583 `struct probe *'. Rename variables `ea' and `eb' to `pa' and `pb'
1584 respectively.
1585 (gen_ui_out_table_header_info): Adjust `probes' argument to be
1586 `VEC (probe_p) *'.
1587 (print_ui_out_info): Adjust argument to be `struct probe *'.
1588 (info_probes_for_ops): Adjust internal computations to use
1589 `VEC (probe_p) *'.
1590 (probe_safe_evaluate_at_pc): Refactor to not pass `objfile' anymore.
1591 * probe.h (struct probe_ops) <get_probe_argument_count, compile_to_ax,
1592 gen_info_probes_table_values>: Remove `objfile' argument.
1593 (struct probe) <objfile>: New field.
1594 (find_probe_by_pc): Remove `objfile' argument.
1595 * stap-probe.c (stap_parse_probe_arguments): Likewise.
1596 (stap_get_probe_argument_count): Likewise.
1597 (stap_get_arg): Likewise.
1598 (stap_evaluate_probe_argument): Likewise.
1599 (stap_compile_to_ax): Likewise.
1600 (compile_probe_arg): Refactor not to pass `objfile' anymore.
1601 (handle_stap_probe): Fill `objfile' field from `struct probe'.
1602 (stap_gen_info_probes_table_header): Remove `objfile' argument.
1603 * symfile.h (struct sym_probe_fns) <sym_evaluate_probe_argument,
1604 sym_compile_to_ax>: Likewise.
1605
3347eb1a 16062012-07-18 Terry Guo <terry.guo@arm.com>
1607
1608 PR 14329
1609 * defs.h (GDB_MI_MSG_WIDTH): New.
1610 * ser_base (ser_base_read_error_fd): New function.
1611 (do_ser_base_readchar): Poll error file descriptor as well as
1612 standard output.
f782ad9b 1613 (generic_readchar): Refactor error handling.
3347eb1a 1614
80c8d323
JB
16152012-07-18 Joel Brobecker <brobecker@adacore.com>
1616
1617 * NEWS: Create a new section for the next release branch.
1618 Rename the section of the current branch, now that it has
1619 been cut.
1620
b45a0664 16212012-07-18 Joel Brobecker <brobecker@adacore.com>
1622
1623 GDB 7.5 branch created (branch timestamp: 2012-07-18 03:22 UTC)
1624 * version.in: Bump version to 7.5.50.20120718-cvs.
1625
09cf2b22
KS
16262012-07-17 Keith Seitz <keiths@redhat.com>
1627
1628 * linespec.c (linespec_parse_line_offset): Make parameter
1629 const.
1630
8f043999
JK
16312012-07-16 Jan Kratochvil <jan.kratochvil@redhat.com>
1632
1633 PR 11914
1634 * f-valprint.c (info_common_command): New variable frame_id.
1635 Reinitialize FI form FRAME_ID after each print_variable_and_value.
1636 * printcmd.c (print_variable_and_value): Extend function comment.
1637 Add comment for invalidated FRAME.
1638 * stack.c (backtrace_command_1): New variable frame_id. Reinitialize
1639 FI form FRAME_ID after each print_frame_local_vars.
1640 (struct print_variable_and_value_data): Change frame to frame_id.
1641 (do_print_variable_and_value): New variable frame, initialize it from
1642 p->frame_id. Add comment for invalidated FRAME.
1643 (print_frame_local_vars, print_frame_arg_vars): New function comment.
1644 Update CB_DATA.FRAME to CB_DATA.FRAME_ID initialization. Add comment
1645 for invalidated FRAME.
1646
ae5e0686
MK
16472012-07-16 Marc Khouzam <marc.khouzam@ericsson.com>
1648 Pedro Alves <palves@redhat.com>
1649
1650 * linux-nat.c (linux_nat_detach): Don't unregister from the event
1651 loop.
1652
5049c5be
TT
16532012-07-16 Tom Tromey <tromey@redhat.com>
1654
1655 * jv-typeprint.c (c_type_print_varspec_suffix): Don't declare.
1656
2908cac6
DE
16572012-07-15 Doug Evans <dje@google.com>
1658
094b34ac
DE
1659 * dwarf2read.c (stmt_list_hash): New struct.
1660 (type_unit_group): Embed "per_cu" member, remove pointer.
1661 New union member "t", move member "tus" into it, all uses updated.
1662 New member "hash", replaces member "line_offset, all uses updated.
1663 (quick_file_names): Replace member "offset" with "hash", all uses
1664 updated.
1665 (hash_stmt_list_entry, eq_stmt_list_entry): New functions.
1666 (hash_file_name_entry, eq_file_name_entry): Call them.
1667 (hash_type_unit_group, eq_type_unit_group): Ditto.
1668 (dw2_get_cu, dw2_get_primary_cu): Replace assert with a better one.
1669 (dw2_get_file_names_reader): Fix file name table calculation for TUs.
1670 (dw2_get_file_names): Update.
1671 (create_type_unit_group): Replace "per_cu" arg with "cu".
1672 All callers updated. Fix "quick" (.gdb_index) handling.
1673 (get_type_unit_group): Replace "per_cu" arg with "cu".
1674 All callers updated.
1675 (build_type_unit_groups): Don't reset tu_stats.
1676
2908cac6
DE
1677 * symtab.c (filename_seen_cache): Delete members "tab_alloc_size",
1678 "tab_cur_size". Change member "tab" to be a htab_t.
1679 (create_filename_seen_cache): Update.
1680 (clear_filename_seen_cache, delete_filename_seen_cache): Update.
1681 (filename_seen): Update.
1682
a2b6eff5
DE
16832012-07-13 Doug Evans <dje@google.com>
1684
1685 * symtab.c (filename_seen): Update comment.
1686
4359dff1
JK
16872012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1688 Doug Evans <dje@google.com>
1689
1690 * buildsym.c (end_symtab_1): Split it to ...
1691 (end_symtab_get_static_block): ... this ...
1692 (end_symtab_from_static_block): ... and this function.
1693 (end_symtab, end_expandable_symtab): Call them.
1694 * buildsym.h (end_symtab_get_static_block)
1695 (end_symtab_from_static_block): New declarations.
1696 * dwarf2read.c (process_full_comp_unit): New variable static_block.
1697 Set its valid CU ranges.
1698
a24f71ab
JK
16992012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1700
1701 * dwarf2loc.c (disassemble_dwarf_expression): Handle
1702 DW_OP_GNU_parameter_ref.
1703
d76b7dbc
JK
17042012-07-13 Jan Kratochvil <jan.kratochvil@redhat.com>
1705
1706 * dwarf2read.c (read_call_site_scope): Do not gdb_assert for invalid
1707 read-in CALL_SITE_PARAMETER_PARAM_OFFSET.
1708
9fdc877b
DE
17092012-07-13 Doug Evans <dje@google.com>
1710
1711 * symtab.c (output_source_filename): Delete unnecessary forward decl.
1712 (filename_seen_cache): New struct.
1713 (INITIAL_FILENAME_SEEN_CACHE_SIZE): New macro.
1714 (create_filename_seen_cache): New function.
1715 (clear_filename_seen_cache, delete_filename_seen_cache): New functions.
1716 (filename_seen): Delete arg "first". New arg "cache". All callers
1717 updated.
1718 (output_source_filename_data): New struct.
1719 (output_source_filename): Delete arg "first". New arg "data".
1720 All callers updated.
1721 (sources_info): Delete local "first". New locals "data", "cleanups".
1722 Rewrite to use filename_seen_cache.
1723 (add_partial_filename_data): Delete member "first". New member
1724 "filename_seen_cache". All uses updated.
1725 (make_source_files_completion_list): Rewrite to use
1726 filename_seen_cache.
1727
f80c6f3f
DE
17282012-07-12 Doug Evans <dje@google.com>
1729
1730 * psymtab.c (map_symbol_filenames_psymtab): Skip shared psymtabs.
1731
0bfa869d
DE
17322012-07-10 Doug Evans <dje@google.com>
1733
f4dc4d17
DE
1734 PR gdb/13498
1735 * dwarf2read.c (dwarf2_per_objfile): New members n_type_unit_groups,
1736 all_type_unit_groups, type_unit_groups, tu_stats.
1737 (dwarf2_per_cu_data): Move "imported_symtabs" into new union "s".
1738 All uses updated. Add type_unit_group to union "s".
1739 (type_unit_group): New struct.
1740 (IS_TYPE_UNIT_GROUP): New macro.
1741 (abbrev_table): Delete unused member "section".
1742 (dw2_do_instantiate_symtab): Early exit if type_unit_group.
1743 (dw2_get_cu): Assert not used with type_unit_group.
1744 (dw2_get_primary_cu): New function.
1745 (dw2_build_type_unit_groups_reader): New function.
1746 (dw2_build_type_unit_groups): New function.
1747 (dw2_get_file_names): Assert not called on type units.
1748 (dw2_map_symtabs_matching_filename): Call dw2_build_type_unit_groups.
1749 Redo loop to iterate over type unit groups instead of type units.
1750 (dw2_expand_symtabs_matching, dw2_map_symbol_filenames): Ditto.
1751 (read_abbrev_offset): New function.
1752 (init_cutu_and_read_dies): New arg "abbrev_table". All callers
1753 updated.
1754 (create_partial_symtab): New function.
1755 (process_psymtab_comp_unit_reader): Assert not used with type units.
1756 Call create_partial_symtab.
1757 (process_psymtab_type_unit): Delete.
1758 (hash_type_unit_group, eq_type_unit_group): New functions.
1759 (allocate_type_unit_groups_table): New function.
1760 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB): New macro.
1761 (NO_STMT_LIST_TYPE_UNIT_PSYMTAB_SIZE): New macro.
1762 (create_type_unit_group, get_type_unit_group): New functions.
1763 (tu_abbrev_offset): New struct.
1764 (sort_tu_by_abbrev_offset): New function.
1765 (add_type_unit_group_to_table): New function.
1766 (build_type_unit_groups): New function.
1767 (build_type_psymtabs_reader): New function.
1768 (build_type_psymtab_dependencies): New function.
1769 (build_type_psymtabs): Rewrite.
1770 (scan_partial_symbols): Flag an error if a DW_TAG_imported_unit
1771 is seen in a type unit.
1772 (process_queue): Move symtab expansion debugging printfs here.
1773 Call process_full_type_unit for type units.
1774 (compute_symtab_includes): Assert not called for type units.
1775 (process_cu_includes): Don't call compute_symtab_includes for
1776 type units.
1777 (process_full_type_unit): New function.
1778 (process_imported_unit_die): Flag an error if called for type units.
1779 (handle_DW_AT_stmt_list): Delete arg "want_line_info". All callers
1780 updated. Assert not called for type units.
1781 (read_file_scope): Call dwarf2_start_symtab.
1782 (setup_type_unit_groups): New function.
1783 (read_type_unit_scope): Rewrite.
1784 (abbrev_table_read_table): Initialize abbrev_table->offset.
1785 (abbrev_table_free_cleanup): New function.
1786 (dwarf2_start_symtab): New function.
1787 (load_full_type_unit): Assert not called for type unit groups.
6d30eef8
DE
1788 * buildsym.c (finish_block_internal): New arg "expandable".
1789 All callers updated.
1790 (start_symtab): Move most contents to ...
1791 (restart_symtab): ... here. New function.
1792 (reset_symtab_globals): New function.
1793 (end_symtab_1): Renamed from end_symtab. New arg "expandable".
1794 Call reset_symtab_globals.
1795 (end_symtab, end_expandable_symtab): New functions.
1796 (set_missing_symtab, augment_type_symtab): New functions.
1797 * buildsym.h (end_expandable_symtab): Declare.
1798 (augment_type_symtab, restart_symtab): Declare.
b4c41fc7
DE
1799 * psympriv.h (struct partial_symtab): New member "anonymous".
1800 * psymtab.c (partial_map_symtabs_matching_filename): Ignore
1801 anonymous psymtabs.
1802 (read_psymtabs_with_filename): Ditto.
1803 (map_symbol_filenames_psymtab, psymtab_to_fullname): Ditto.
1804 (expand_symtabs_matching_via_partial): Ditto.
1805 (dump_psymtab): Update.
0bfa869d
DE
1806 * dictionary.c (dict_add_pending): New function.
1807 * dictionary.h (dict_add_pending): Declare.
1808
45e58e77
DE
18092012-07-09 Doug Evans <dje@google.com>
1810
b74db436
DE
1811 * buildsym.c (start_subfile): Remove unnecessary check for
1812 name == NULL.
1813
fd55216c
DE
1814 * psymtab.c (allocate_psymtab): Use host_address_to_string.
1815
6721b2ec
DE
1816 * dwarf2read.c (load_full_type_unit): Simplify.
1817
b4dd5633
DE
1818 * dwarf2read.c (dwarf2_per_objfile): Change type of all_type_units
1819 to struct signatured_type **. All uses updated.
1820
45e58e77
DE
1821 * dwarf2read.c (dwarf2_attr_no_follow): Delete unused arg "cu".
1822 All callers updated.
1823
e314d629
TT
18242012-07-09 Tom Tromey <tromey@redhat.com>
1825
1826 * c-exp.y (check_parameter_typelist): New function.
1827 (parameter_typelist): Call it.
1828 * eval.c (make_params): Handle '(void)' case.
1829 * gdbtypes.c (lookup_function_type_with_arguments): Handle
1830 '(void)' case.
1831
aa7c7447
JK
18322012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1833
1834 * common/linux-ptrace.c: Include gdb_assert.h.
1835 <__i386__> (linux_ptrace_test_ret_to_nx_instr): New declaration.
1836 <__i386__>: Include sys/reg.h, sys/mman.h, signal.h, sys/wait.h and
1837 stdint.h.
1838 (linux_ptrace_test_ret_to_nx, linux_ptrace_init_warnings): New
1839 functions.
1840 * common/linux-ptrace.h (linux_ptrace_init_warnings): New declarations.
1841 * linux-nat.c (linux_child_post_attach)
1842 (linux_child_post_startup_inferior): Call linux_ptrace_init_warnings.
1843
889003ed
JK
18442012-07-07 Jan Kratochvil <jan.kratochvil@redhat.com>
1845
1846 * linux-thread-db.c (thread_db_find_new_threads_silently): Do not apply
1847 nptl <2.7 bug workaround for core files.
1848
da559b09
JK
18492012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1850
1851 * linux-nat.c (resume_lwp, linux_nat_resume): Remove LP->SIGINFO
1852 clearing.
1853 (save_siginfo): Remove.
1854 (stop_wait_callback, linux_nat_filter_event): Remove the save_siginfo
1855 call.
1856 (resume_stopped_resumed_lwps): Remove LP->SIGINFO clearing.
1857 (linux_nat_get_siginfo): Use PTRACE_GETSIGINFO.
1858 * linux-nat.h (struct lwp_info): Remove field siginfo.
1859
f865ee35
JK
18602012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1861
1862 Code cleanup for the next patch.
1863 * arm-linux-nat.c (arm_linux_stopped_data_address): Change variable
1864 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
1865 call for it.
1866 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
1867 (ia64_linux_stopped_data_address):
1868 * linux-nat.c (linux_nat_get_siginfo): Add parameter siginfo, change
1869 the return value.
1870 * linux-nat.h (linux_nat_get_siginfo): Likewise.
1871 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Change variable
1872 siginfo_p to siginfo, update its users incl. the linux_nat_get_siginfo
1873 call for it.
1874
76b83c51
JK
18752012-07-06 Jan Kratochvil <jan.kratochvil@redhat.com>
1876
1877 PR 14321
1878 * findcmd.c (parse_find_args): New variable pattern_buf_size_need.
1879 Increase buffer sizes to 2x we need, not just 2x of the previous size.
1880
a6fb9c08
TT
18812012-07-06 Tom Tromey <tromey@redhat.com>
1882
1883 * c-exp.y (DOTDOTDOT): New token.
1884 (func_mod, exp): Use parameter_typelist.
1885 (parameter_typelist): New production.
1886 (tokentab3): Add "..." token.
1887 * eval.c (make_params): Handle varargs.
1888 * gdbtypes.c (lookup_function_type_with_arguments): Handle
1889 varargs.
1890
71918a86
TT
18912012-07-06 Tom Tromey <tromey@redhat.com>
1892
1893 PR exp/9608:
1894 * c-exp.y (%union) <tvec>: Change type.
1895 (func_mod): Now uses <tvec> type.
1896 (exp): Update for tvec change.
1897 (direct_abs_decl): Push the typelist.
1898 (func_mod): Return a typelist.
1899 (nonempty_typelist): Update for tvec change.
1900 * gdbtypes.c (lookup_function_type_with_arguments): New function.
1901 * gdbtypes.h (lookup_function_type_with_arguments): Declare.
1902 * parse.c (pop_type_list): New function.
1903 (push_typelist): New function.
1904 (follow_types): Handle tp_function_with_arguments.
1905 * parser-defs.h (type_ptr): New typedef. Define a VEC.
1906 (enum type_pieces) <tp_function_with_arguments>: New constant.
1907 (union type_stack_elt) <typelist_val>: New field.
1908 (push_typelist): Declare.
1909
fcde5961
TT
19102012-07-06 Tom Tromey <tromey@redhat.com>
1911
1912 * c-exp.y (%union) <type_stack>: New field.
1913 (abs_decl, direct_abs_decl): Use <type_stack> type. Update.
1914 (ptr_operator_ts): New production.
1915 (ptype): Update.
1916 * parse.c (type_stack_reserve): New function.
1917 (check_type_stack_depth): Use it.
1918 (pop_type_stack, append_type_stack, push_type_stack)
1919 (get_type_stack, type_stack_cleanup): New functions.
1920 (follow_types): Handle tp_type_stack.
1921 (_initialize_parse): Simplify initialization.
1922 * parser-defs.h (enum type_pieces) <tp_type_stack>: New
1923 constant.
1924 (union type_stack_elt) <stack_val>: New field.
1925 (get_type_stack, append_type_stack, push_type_stack)
1926 (type_stack_cleanup): Declare.
1927
1a7d0ce4
TT
19282012-07-06 Tom Tromey <tromey@redhat.com>
1929
1930 * parser-defs.h (type_stack, type_stack_size, type_stack_depth):
1931 Remove.
1932 (struct type_stack): New.
1933 * parse.c (type_stack, type_stack_size, type_stack_depth):
1934 Remove.
1935 (type_stack): New global.
1936 (parse_exp_in_context, check_type_stack_depth)
1937 (insert_into_type_stack, insert_type, push_type, push_type_int)
1938 (insert_type_address_space, pop_type, pop_type_int)
1939 (_initialize_parse): Update.
1940
16d01384
TT
19412012-07-06 Tom Tromey <tromey@redhat.com>
1942
1943 * c-exp.y (func_mod, direct_abs_decl, abs_decl, ptr_operator):
1944 Remove %type.
1945
9bfc60bf
SP
19462012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1947
1948 * c-lang.c (c_printstr): Remove ununsed variable WIDTH.
1949
d5161074
SP
19502012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1951 Jan Kratochvil <jan.kratochvil@redhat.com>
1952
1953 * cp-valprint.c (cp_print_value): Replace potentially unsafe
1954 alloca with xmalloc/xfree.
1955
a74bc576
SP
19562012-07-06 Siddhesh Poyarekar <siddhesh@redhat.com>
1957
1958 * MAINTAINERS (Write After Approval): Add myself to the list.
1959
667e0a4b
DE
19602012-07-05 Doug Evans <dje@google.com>
1961
1962 * dwarf2read.c (dw2_expand_symtabs_matching): Fix typo.
1963
34b536a8
HZ
19642012-07-05 Hui Zhu <hui_zhu@mentor.com>
1965
1966 * ax-gdb.c (cli/cli-utils.h): New include.
1967 (linespec.h): Ditto.
1968 (agent_eval_command_one): New function.
1969 (agent_command_1): Ditto.
1970 (agent_command): Call function agent_command_1.
1971 (agent_eval_command): Ditto.
1972 (_initialize_ax_gdb): Change help for "maint agent"
1973 and "maint agent-eval".
1974
e6f0bce7
HZ
19752012-07-05 Hui Zhu <hui_zhu@mentor.com>
1976
1977 * breakpoint.c (check_for_argument): Move to file cli/cli-utils.c.
1978 * cli/cli-utils.c (check_for_argument): New function.
1979 * cli/cli-utils.h (check_for_argument): Ditto.
1980
1b3371b1
L
19812012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1982
1983 * NEWS: Mention x32 ABI support.
1984
23e2d720
L
19852012-07-04 H.J. Lu <hongjiu.lu@intel.com>
1986
1987 * amd64-tdep.c (amd64_x32_init_abi): Set sp_regnum_from_eax to
1988 AMD64_RSP_REGNUM and pc_regnum_from_eax to AMD64_RIP_REGNUM.
1989
1990 * i386-tdep.c (i386_gdbarch_init): Initialize sp_regnum_from_eax
1991 and pc_regnum_from_eax to -1. Update SP regnum from
1992 sp_regnum_from_eax and PC regnum from pc_regnum_from_eax if
1993 needed.
1994
1995 * i386-tdep.h (gdbarch_tdep): Add sp_regnum_from_eax and
1996 pc_regnum_from_eax.
1997
836bf454
JK
19982012-07-03 Jan Kratochvil <jan.kratochvil@redhat.com>
1999
2000 Fix 'warning: parameter has incomplete type' with gcc-3.4.6.
2001 * dwarf2expr.h: Include gdbtypes.h.
2002 (enum call_site_parameter_kind, union call_site_parameter_u): Remove
2003 these forward declarations.
2004 (cu_offset, sect_offset): Move these ...
2005 * gdbtypes.h: Remove include dwarf2expr.h.
2006 (cu_offset, sect_offset): ... here.
2007
1e55e04f
L
20082012-07-03 H.J. Lu <hongjiu.lu@intel.com>
2009
2010 * amd64-linux-tdep.c (linux_sigtramp_code): Renamed to ...
2011 (amd64_linux_sigtramp_code): This.
2012 (amd64_x32_linux_sigtramp_code): New.
2013 (LINUX_SIGTRAMP_LEN): Updated.
2014 (amd64_linux_sigtramp_start): Check x32 sigtramp.
2015
7d0e21ad
JK
20162012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2017
2018 * linux-thread-db.c (thread_db_new_objfile): Fix comment typos.
2019
8775fd2d
JK
20202012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2021
2022 * config.in: Regenerate.
2023 * configure: Regenerate.
2024 * configure.ac: Remove check for gnu/libc-version.h.
2025 * linux-thread-db.c <HAVE_GNU_LIBC_VERSION_H>: Remove include of
2026 gnu/libc-version.h.
2027 (enable_thread_event_reporting) <HAVE_GNU_LIBC_VERSION_H>: Remove
2028 variables libc_version, libc_major and libc_minor. Replace sscanf by
2029 inferior_has_bug. Extend the comment.
2030
fcb44371
JK
20312012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2032
2033 * linux-thread-db.c (inferior_has_bug): New function.
2034 (thread_db_find_new_threads_silently): Return boolean as checked by
2035 inferior_has_bug, describe it in the comments.
2036 (try_thread_db_load_1): Move call to thread_db_find_new_threads_silently
2037 earlier. Abort the initialization if it returned non-zero.
7d0e21ad 2038 (thread_db_new_objfile): Exclude debug files.
fcb44371
JK
2039 (thread_db_find_new_threads_2): Preinitialize ERR. Check errors also
2040 if UNTIL_NO_NEW,
2041
09406207
DE
20422012-07-02 Doug Evans <dje@google.com>
2043
0907af0c
DE
2044 * dwarf2read.c (maybe_queue_comp_unit): Move definition next to others
2045 related to queue management.
2046
09406207
DE
2047 * dwarf2read.c (create_debug_types_hash_table): Use "debug dwarf2-read"
2048 instead of "debug dwarf2-die" in debugging printfs.
2049 (create_debug_info_hash_table_reader): Ditto.
2050 (create_debug_info_hash_table): Ditto.
2051 (init_dwo_file): Ditto.
2052 (init_cutu_and_read_dies): Add debugging printf.
2053 (init_cutu_and_read_dies_no_follow): Ditto.
2054 (process_psymtab_comp_unit_reader): Ditto.
2055
d3ce09f5
SS
20562012-07-02 Stan Shebs <stan@codesourcery.com>
2057
2058 Add target-side support for dynamic printf.
2059 * NEWS: Mention the additional style.
2060 * breakpoint.h (struct bp_target_info): New fields tcommands, persist.
2061 (struct bp_location): New field cmd_bytecode.
2062 * breakpoint.c: Include format.h.
2063 (disconnected_dprintf): New global.
2064 (parse_cmd_to_aexpr): New function.
2065 (build_target_command_list): New function.
2066 (insert_bp_location): Call it.
2067 (remove_breakpoints_pid): Skip dprintf breakpoints.
2068 (print_one_breakpoint_location): Ditto.
2069 (dprintf_style_agent): New global.
2070 (dprintf_style_enums): Add dprintf_style_agent.
2071 (update_dprintf_command_list): Add agent case.
2072 (agent_printf_command): New function.
2073 (_initialize_breakpoint): Add new commands.
2074 * common/ax.def (printf): New bytecode.
2075 * ax.h (ax_string): Declare.
2076 * ax-gdb.h (gen_printf): Declare.
2077 * ax-gdb.c: Include cli-utils.h, format.h.
2078 (gen_printf): New function.
2079 (maint_agent_print_command): New function.
2080 (_initialize_ax_gdb): Add maint agent-printf command.
2081 * ax-general.c (ax_string): New function.
2082 (ax_print): Add printf disassembly.
2083 * Makefile.in (SFILES): Add format.c
2084 (COMMON_OBS): Add format.o.
2085 * common/format.h: New file.
2086 * common/format.c: New file.
2087 * printcmd.c: Include format.h.
2088 (ui_printf): Call parse_format_string.
2089 * remote.c (remote_state): New field breakpoint_commands.
2090 (PACKET_BreakpointCommands): New enum.
2091 (remote_breakpoint_commands_feature): New function.
2092 (remote_protocol_features): Add new BreakpointCommands entry.
2093 (remote_can_run_breakpoint_commands): New function.
2094 (remote_add_target_side_commands): New function.
2095 (remote_insert_breakpoint): Call it.
2096 (remote_insert_hw_breakpoint): Ditto.
2097 (_initialize_remote): Add new packet configuration for
2098 target-side breakpoint commands.
2099 * target.h (struct target_ops): New field
2100 to_can_run_breakpoint_commands.
2101 (target_can_run_breakpoint_commands): New macro.
2102 * target.c (update_current_target): Handle
2103 to_can_run_breakpoint_commands.
2104
2d7b58e8
JK
21052012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2106
2107 Execute -ix and -iex only after system and user gdbinit files.
2108 * main.c (captured_main): Move CMDARG_INIT_FILE and CMDARG_INIT_COMMAND
2109 processing down after gdbinit files.
2110
8690e634
JK
21112012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2112
2113 Add fnmatch-gnu module.
2114 * gnulib/Makefile.in (aclocal_m4_deps): Add new files and remove one.
2115 * gnulib/configure.ac (AC_INIT): Use now import/memmem.c.
2116 * gnulib/aclocal.m4: Regenerate.
2117 * gnulib/config.in: Regenerate.
2118 * gnulib/configure: Regenerate.
2119 * gnulib/import/dummy.c: Remove.
2120 * gnulib/import/Makefile.am: Regenerate.
2121 * gnulib/import/Makefile.in: Likewise.
2122 * gnulib/import/m4/gnulib-cache.m4: Likewise.
2123 * gnulib/import/m4/gnulib-comp.m4: Likewise.
2124 * gnulib/import/alloca.c: New file.
2125 * gnulib/import/alloca.in.h: Likewise.
2126 * gnulib/import/config.charset: Likewise.
2127 * gnulib/import/fnmatch.c: Likewise.
2128 * gnulib/import/fnmatch.in.h: Likewise.
2129 * gnulib/import/fnmatch_loop.c: Likewise.
2130 * gnulib/import/localcharset.c: Likewise.
2131 * gnulib/import/localcharset.h: Likewise.
2132 * gnulib/import/m4/alloca.m4: Likewise.
2133 * gnulib/import/m4/codeset.m4: Likewise.
2134 * gnulib/import/m4/configmake.m4: Likewise.
2135 * gnulib/import/m4/fcntl-o.m4: Likewise.
2136 * gnulib/import/m4/fnmatch.m4: Likewise.
2137 * gnulib/import/m4/glibc21.m4: Likewise.
2138 * gnulib/import/m4/localcharset.m4: Likewise.
2139 * gnulib/import/m4/locale-fr.m4: Likewise.
2140 * gnulib/import/m4/locale-ja.m4: Likewise.
2141 * gnulib/import/m4/locale-zh.m4: Likewise.
2142 * gnulib/import/m4/mbrtowc.m4: Likewise.
2143 * gnulib/import/m4/mbsinit.m4: Likewise.
2144 * gnulib/import/m4/mbsrtowcs.m4: Likewise.
2145 * gnulib/import/m4/mbstate_t.m4: Likewise.
2146 * gnulib/import/m4/stdbool.m4: Likewise.
2147 * gnulib/import/m4/wchar_h.m4: Likewise.
2148 * gnulib/import/m4/wctype_h.m4: Likewise.
2149 * gnulib/import/m4/wint_t.m4: Likewise.
2150 * gnulib/import/mbrtowc.c: Likewise.
2151 * gnulib/import/mbsinit.c: Likewise.
2152 * gnulib/import/mbsrtowcs-impl.h: Likewise.
2153 * gnulib/import/mbsrtowcs-state.c: Likewise.
2154 * gnulib/import/mbsrtowcs.c: Likewise.
2155 * gnulib/import/ref-add.sin: Likewise.
2156 * gnulib/import/ref-del.sin: Likewise.
2157 * gnulib/import/stdbool.in.h: Likewise.
2158 * gnulib/import/streq.h: Likewise.
2159 * gnulib/import/strnlen1.c: Likewise.
2160 * gnulib/import/strnlen1.h: Likewise.
2161 * gnulib/import/verify.h: Likewise.
2162 * gnulib/import/wchar.in.h: Likewise.
2163 * gnulib/import/wctype.in.h: Likewise.
2164
202cbf1c
JK
21652012-07-02 Jan Kratochvil <jan.kratochvil@redhat.com>
2166
2167 Support shell wildcards for 'set auto-load safe-path'.
2168 * auto-load.c: Include fnmatch.h.
2169 (filename_is_in_dir): Rename to ...
2170 (filename_is_in_pattern_1, filename_is_in_pattern): ... here and split
2171 it. Update function comment. Rename dir_len to pattern_len. New
2172 variables filename_len, pattern and filename. Add more DEBUG_AUTO_LOAD
2173 messages. Use gdb_filename_fnmatch.
2174 (filename_is_in_auto_load_safe_path_vec): Rename variable dir to
2175 pattern.
2176 (_initialize_auto_load): Extend the "set auto-load safe-path" help text.
2177 * defs.h (gdb_filename_fnmatch): New declaration.
2178 * utils.c: Include fnmatch.h.
2179 (gdb_filename_fnmatch): New function.
2180
fb7b5af4
SDJ
21812012-07-02 Sergio Durigan Junior <sergiodj@redhat.com>
2182
2183 * breakpoint.c (BREAK_ARGS_HELP): Include help message for the new
2184 `-probe' and `-probe-stap' options.
2185
72d0e2c5
YQ
21862012-07-01 Yao Qi <yao@codesourcery.com>
2187
2188 * breakpoint.c: Removed always_inserted_auto, always_inserted_on,
2189 always_inserted_off, and always_inserted_enums.
2190 Change always_inserted_mode's type to 'enum auto_boolean'.
2191 (show_always_inserted_mode, breakpoint_always_inserted_mode): Update
2192 callers.
2193 (_initialize_breakpoint): Call add_setshow_auto_boolean_cmd instead
2194 of add_setshow_enum_cmd.
2195 * infrun.c: Remove can_use_displaced_stepping_auto,
2196 can_use_displaced_stepping_on, can_use_displaced_stepping_off, and
2197 can_use_displaced_stepping_enum.
2198 Change can_use_displaced_stepping's type to 'enum auto_boolean'.
2199 (show_can_use_displaced_stepping, use_displaced_stepping): Update callers.
2200 (_initialize_infrun): Call add_setshow_auto_boolean_cmd instead of
2201 add_setshow_enum_cmd.
2202
42e7ad6c
DE
22032012-06-30 Doug Evans <dje@google.com>
2204
2205 * dwarf2read.c (signatured_type): Make "per_cu" member first.
2206 (init_cutu_and_read_dies): Handle rereading a DWO CU while it's
2207 currently being read. Propagate DW_AT_comp_dir to DWO DIE.
2208
39cf75f7
DE
22092012-06-29 Doug Evans <dje@google.com>
2210
2211 * linespec.c: #include "stack.h".
2212 (decode_line_with_current_source): Moved here from symtab.c and
2213 renamed from decode_line_spec. All callers updated.
2214 (decode_line_with_last_displayed): Moved here from breakpoint.c and
2215 renamed from decode_line_spec_1. All callers updated.
2216 * linespec.h (decode_line_with_current_source): Move declaration here
2217 from symtab.h and renamed from decode_line_spec.
2218 (decode_line_with_last_displayed): Move declaration here from symtab.h
2219 and renamed from decode_line_spec_1.
2220 * macrocmd.c: #include "linespec.h".
2221 * symtab.c: Remove #include "linespec.h".
2222
433df2d4
DE
22232012-06-28 Doug Evans <dje@google.com>
2224
1ce1cefd
DE
2225 * dwarf2read.c (get_cu_length): New function.
2226 (offset_in_cu_p, error_check_comp_unit_head): Call it.
2227 (create_debug_types_hash_table): Ditto.
2228 (init_cutu_and_read_dies): Ditto.
2229 (init_cutu_and_read_dies_no_follow): Ditto.
2230
3b80fe9b
DE
2231 * dwarf2read.c (dwarf2_find_base_address): Move definition.
2232
433df2d4
DE
2233 * dwarf2read.c (ABBREV_HASH_SIZE): Remove enclosing #ifndef/#endif.
2234 (struct abbrev_table): Define.
2235 (dwarf2_cu): Replace members dwarf2_abbrevs, abbrev_obstack with
2236 abbrev_table.
2237 (init_cutu_and_read_dies): Update.
2238 (abbrev_table_alloc_abbrev): New function. Replaces
2239 dwarf_alloc_abbrev. All callers updated.
2240 (abbrev_table_add_abbrev): New function.
2241 (abbrev_table_lookup_abbrev): New function. Replaces
2242 dwarf2_lookup_abbrev. All callers updated.
2243 (abbrev_table_read_table): New function. Contents moved here from
2244 dwarf2_read_abbrevs.
2245 (dwarf2_read_abbrevs): Call it.
2246 (abbrev_table_free): New function.
2247 (dwarf2_free_abbrev_table): Call it.
2248
71caed83
SS
22492012-06-28 Stan Shebs <stan@codesourcery.com>
2250
2251 * osdata.c (info_osdata_command): Filter out "Title" columns
2252 from non-MI uses.
2253 * common/linux-osdata.c (struct osdata_type): Add title field.
2254 (osdata_table): Add titles to each entry.
2255 (linux_command_xfer_osdata): Add a column for title data.
2256
37ce89eb
SS
22572012-06-28 Stan Shebs <stan@codesourcery.com>
2258
2259 Make logging work for MI.
2260 * NEWS: Mention it.
2261 * interps.h (interp_set_logging_ftype): New typedef.
2262 (struct interp_procs): New field set_logging_proc.
2263 (current_interp_set_logging): Declare.
2264 * interps.c (current_interp_set_logging): New function.
2265 * cli/cli-logging.c: Include interps.h.
2266 (set_logging_redirect): Call current_interp_set_logging.
2267 (pop_output_files): Ditto.
2268 (handle_redirections): Ditto, plus skip ui-out redirect if MI.
2269 * mi/mi-console.h (mi_console_set_raw): Declare.
2270 * mi/mi-console.c (mi_console_set_raw): New function.
2271 * mi/mi-interp.c (saved_raw_stdout): New global.
2272 (mi_set_logging): New function.
2273 (_initialize_mi_interp): Add it to interp procs.
2274
659c9f3a
DE
22752012-06-28 Doug Evans <dje@google.com>
2276
a743abeb
DE
2277 * symtab.c (lookup_symbol_aux_objfile): Use
2278 ALL_OBJFILE_PRIMARY_SYMTABS.
2279
659c9f3a
DE
2280 * gdbtypes.c (lookup_typename): Rename local variable "tmp" to "type".
2281
da2d6d3d
JK
22822012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2283
2284 * common/buffer.c: Include inttypes.h and stdint.h.
2285 (buffer_xml_printf): Use PRId64, PRIu64, PRIx64 and PRIo64.
2286
e5ef252a
PA
22872012-06-28 Jan Kratochvil <jan.kratochvil@redhat.com>
2288 Pedro Alves <palves@redhat.com>
2289
2290 * gdbthread.h (ALL_THREADS): New macro.
2291 (thread_list): Declare.
2292 * infrun.c (handle_inferior_event) <spurious signal>: Don't keep
2293 going, but instead fall through to the stepping handling.
2294 * linux-nat.c (resume_lwp): New parameter 'signo'. Resume with
2295 the passed in signal. Adjust debug output.
2296 (resume_callback): Rename to ...
2297 (linux_nat_resume_callback): ... this. Pass the thread's last
2298 stop signal, if in "pass" state.
2299 (linux_nat_resume): Adjust to rename.
2300 (stop_wait_callback): New assertion. Don't respawn signals;
2301 instead let the LWP remain with SIGNALLED set.
2302 (linux_nat_wait_1): Remove flushing of pending SIGSTOPs.
2303 * remote.c (append_pending_thread_resumptions): New.
2304 (remote_vcont_resume): Call it.
2305 * target.h (target_resume): Extend comment.
2306
1d7975eb
IS
23072012-06-28 Iain Sandoe <iain@codesourcery.com>
2308
2309 * auxv.c (fprint_target_auxv): Handle extended cache data tags.
2310
2e3cf129
DE
23112012-06-27 Doug Evans <dje@google.com>
2312
2313 * dwarf2read.c (dwarf2_cu): Add ranges_base.
2314 Delete have_addr_base, unused. All uses updated.
2315 (init_cutu_and_read_dies): Process DW_AT_GNU_ranges_base.
2316 (dwarf2_get_pc_bounds): Add ranges_base.
2317 (dwarf2_record_block_ranges): Ditto.
2318
1bb9788d
TT
23192012-06-27 Tom Tromey <tromey@redhat.com>
2320
2321 PR macros/7961:
2322 * varobj.c (varobj_create): Update.
2323 (varobj_set_value): Update.
2324 * tracepoint.c (validate_actionline): Update.
2325 (encode_actions_1): Update.
2326 * parse.c (parse_exp_1): Add 'pc' argument.
2327 (parse_exp_in_context): Add 'pc' argument. Change how
2328 expression_context_pc is set.
2329 (parse_expression): Update.
2330 (parse_field_expression): Update.
2331 * expression.h (parse_exp_1): Update.
2332 * eval.c (parse_to_comma_and_eval): Update.
2333 * breakpoint.c (set_breakpoint_condition): Update.
2334 (update_watchpoint): Update.
2335 (init_breakpoint_sal): Update
2336 (find_condition_and_thread): Update.
2337 (watch_command_1): Update.
2338 (update_breakpoint_locations): Update.
2339 * ada-lang.c (ada_read_renaming_var_value): Update.
2340 (create_excep_cond_exprs): Update.
2341
0bc3a05c
DE
23422012-06-27 Doug Evans <dje@google.com>
2343
2344 * dwarf2read.c (per_cu_header_read_in): Simplify, and handle
2345 type units.
2346
4bdcc0c1
DE
23472012-06-26 Doug Evans <dje@google.com>
2348
2349 * dwarf2read.c (read_and_check_comp_unit_head): Delete unnecessary
2350 prototype.
2351 (error_check_comp_unit_head): New arg abbrev_section. All callers
2352 updated.
2353 (read_and_check_comp_unit_head): Ditto.
2354 (read_and_check_type_unit_head): Ditto.
2355
ee0bf529
SCR
23562012-06-26 Siva Chandra Reddy <sivachandra@google.com>
2357
2358 New attribute 'last' for gdb.Symtab_and_line.
2359 * NEWS (Python Scripting): Add entry about the new attribute.
2360 * python/py-symtab.c (salpy_get_last): New function which
2361 implements the get method for the 'last' attribute of
2362 gdb.Symtab_and_line.
2363 (sal_object_getset): Add entry for the 'last' attribute.
2364
1c658ad5
DE
23652012-06-26 Doug Evans <dje@google.com>
2366
09262596
DE
2367 * dwarf2read.c (dwo_section_names): Add macinfo_dwo, macro_dwo.
2368 (dwo_sections): Add macinfo, macro.
2369 (dwarf2_locate_dwo_sections): Watch for macro sections.
2370 (dwarf_decode_macros): Remove args lh, abfd, section, section_name.
2371 All callers updated. Handle DWO files.
2372
45cfd468
DE
2373 * NEWS: Mention new options "set debug dwarf2-read" and
2374 "set debug symtab-create".
2375 * dwarf2read.c (dwarf2_read_debug): New static global.
2376 (dwarf2_build_psymtabs_hard): Add debugging printfs.
2377 (process_queue): Ditto.
2378 (process_full_comp_unit): Ditto.
2379 (_initialize_dwarf2_read): Add new option "set debug dwarf2-read".
2380 * elfread.c (elf_symfile_read): Add debugging printf.
2381 * minsyms.c (install_minimal_symbols): Ditto.
2382 * psymtab.c (allocate_psymtab): Ditto.
2383 * symfile.c (allocate_symtab): Ditto.
2384 * symtab.c (symtab_create_debug): New global.
2385 (_initialize_symtab): Add new option "set debug symtab-create".
2386 * symtab.h (symtab_create_debug): Declare.
2387
1c658ad5
DE
2388 * dwarf2read.c (lookup_dwo_comp_unit): Enhance comment.
2389 (lookup_dwo_type_unit): Ditto.
2390
6fea9e18
L
23912012-06-26 Roland McGrath <roland@hack.frob.com>
2392 H.J. Lu <hongjiu.lu@intel.com>
2393
2394 * amd64-linux-nat.c: Include <sys/user.h>.
2395 (ps_get_thread_area): Use PTRACE_PEEKUSER to get fs_base/gs_base
2396 if HAVE_STRUCT_USER_REGS_STRUCT_FS_BASE or
2397 HAVE_STRUCT_USER_REGS_STRUCT_GS_BASE is defined.
2398
2399 * configure.ac: Check if the fs_base and gs_base members of
2400 `struct user_regs_struct' exist.
2401 * config.in: Regenerated.
2402 * configure: Likewise.
2403
adb4fe3b
ME
24042012-06-25 Michael Eager <eager@eagercon.com>
2405
2406 PR python/14291
f782ad9b 2407 * python/python.c (gdbpy_write): Check for interrupted output.
adb4fe3b 2408
fc51cce1
MGD
24092012-06-25 Greta Yorsh <greta.yorsh@arm.com>
2410
2411 * arm-tdep.c (arm_in_function_epilogue_p): Recognize POP with a single
2412 register as a stack alignment in ARM mode.
2413
40a73391
JK
24142012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2415
2416 Update gnulib to GIT commit a39f53ccb70a613e647e1019fb4c63645220267e.
2417 * gnulib/config.in: Regenerate.
2418 * gnulib/configure: Likewise.
2419 * gnulib/import/m4/extensions.m4: Update it.
2420 * gnulib/import/m4/gnulib-common.m4: Likewise.
2421 * gnulib/import/m4/memmem.m4: Likewise.
2422 * gnulib/import/m4/mmap-anon.m4: Likewise.
2423 * gnulib/import/m4/multiarch.m4: Likewise.
2424 * gnulib/import/stdint.in.h: Likewise.
2425
972daa01
YQ
24262012-06-24 Yao Qi <yao@codesourcery.com>
2427
2428 * corefile.c (write_memory_with_notification): New.
2429 * gdbcore.h: Declare write_memory_with_notification.
2430 * ada-lang.c (ada_value_assign): Replace 'write_memory' and
2431 'observer_notify_memory_changed' with 'write_memory_with_notification'.
2432 * valops.c (value_assign): Likewise.
2433 * python/py-inferior.c (infpy_write_memory): Call
2434 'write_memory_with_notification'.
2435
8d6e0714
JK
24362012-06-24 Jan Kratochvil <jan.kratochvil@redhat.com>
2437
2438 * cc-with-index.sh: Use also -ex "set auto-load no".
2439
156942c7
DE
24402012-06-23 Doug Evans <dje@google.com>
2441
2442 PR 14125
2443 * NEWS: Document additions to .gdb_index.
2444 * dwarf2read.c: #include "gdb/gdb-index.h".
2445 (DW2_GDB_INDEX_SYMBOL_STATIC_SET_VALUE): New macro.
2446 (DW2_GDB_INDEX_SYMBOL_KIND_SET_VALUE): New macro.
2447 (DW2_GDB_INDEX_CU_SET_VALUE): New macro.
2448 (dwarf2_read_index): Recognize version 7.
2449 (dw2_do_expand_symtabs_matching): New args want_specific_block,
2450 block_kind, domain): All callers updated.
2451 (dw2_find_symbol_file): Handle new index CU values.
2452 (dw2_expand_symtabs_matching): Match symbol kind if requested.
2453 (add_index_entry): New args is_static, kind. All callers updated.
2454 (offset_type_compare, uniquify_cu_indices): New functions
2455 (symbol_kind): New function.
2456 (write_psymtabs_to_index): Remove duplicate CU values.
2457 (write_psymtabs_to_index): Write .gdb_index version 7.
2458
352b3eda
JB
24592012-06-22 Joel Brobecker <brobecker@adacore.com>
2460
2461 * configure.ac (build_warnings): Add -Wdeclaration-after-statement.
2462 * configure: Regenerate.
2463
2678e2af
YQ
24642012-06-20 Yao Qi <yao@codesourcery.com>
2465
2466 * python/py-inferior.c: Update comments of infpy_read_memory
2467 and infpy_write_memory.
2468
95c391b6
TT
24692012-06-19 Tom Tromey <tromey@redhat.com>
2470
2471 PR exp/9514:
2472 * parser-defs.h (insert_type, insert_type_address_space): Declare.
2473 (push_type_address_space): Remove.
2474 * parse.c (insert_into_type_stack): New function.
2475 (insert_type): Likewise.
2476 (insert_type_address_space): Rename from push_type_address_space.
2477 Insert tp_space_identifier.
2478 * c-exp.y (ptr_operator): New production.
2479 (abs_decl): Use ptr_operator.
2480 (space_identifier): Call insert_type_address_space.
2481 (ptype): Don't use const_or_volatile_or_space_identifier.
2482 (const_or_volatile_noopt): Call insert_type.
2483 (conversion_type_id, conversion_declarator): New productions.
2484 (operator): Use conversion_type_id.
2485
6ac9ef80
DE
24862012-06-18 Doug Evans <dje@google.com>
2487
422d65e7
DE
2488 * symtab.h (minimal_symbol): New member created_by_gdb.
2489 * elfread.c (elf_symtab_read): Set created_by_gdb for @plt minsym
2490 created by gdb.
2491 * symtab.c (lookup_symbol_in_objfile_from_linkage_name): New function.
2492 (search_symbols): Call it instead of lookup_symbol.
2493 Skip symbols created by gdb. Only scan minsyms if nfiles == 0.
2494
49f6c839
DE
2495 * dwarf2expr.c (execute_stack_op): Handle DW_OP_GNU_const_index.
2496 Adjust address for DW_OP_GNU_addr_index.
2497 * dwarf2expr.h (dwarf_expr_context): Update comment.
2498 * dwarf2loc.c (locexpr_describe_location_piece): New arg per_cu,
2499 all callers updated. Handle TLS vars described with
2500 DW_OP_GNU_const_index.
2501 (disassemble_dwarf_expression): Handle DW_OP_GNU_addr_index
2502 and DW_OP_GNU_const_index.
2503 * dwarf2read.c (decode_locdesc): Handle DW_OP_GNU_addr_index.
2504
6ac9ef80
DE
2505 * block.c (find_block_in_blockvector): Make explicit the fact that we
2506 ignore GLOBAL_BLOCK.
2507
4cd18215
TT
25082012-06-18 Tom Tromey <tromey@redhat.com>
2509
2510 * c-exp.y (operator): Remove trailing space after "delete" and
2511 "delete[]".
2512
a9b8d892
JK
25132012-06-18 Mark Kettenis <kettenis@gnu.org>
2514 Jan Kratochvil <jan.kratochvil@redhat.com>
2515
2516 Switch i386 and derived targets to ON_STACK.
2517 * amd64-dicos-tdep.c (amd64_dicos_push_dummy_code): Remove.
2518 (amd64_dicos_init_abi): Remove its installment.
2519 * dicos-tdep.c (dicos_init_abi): Remove the
2520 set_gdbarch_call_dummy_location call. Update the comment here.
2521 * i386-dicos-tdep.c (i386_dicos_push_dummy_code): Remove.
2522 (i386_dicos_init_abi): Remove its installment.
2523 * i386-tdep.c (i386_push_dummy_code): New function.
2524 (i386_gdbarch_init): Call set_gdbarch_call_dummy_location, install
2525 i386_push_dummy_code.
2526
e2e4d78b
JK
25272012-06-18 Jan Kratochvil <jan.kratochvil@redhat.com>
2528
2529 Remove stale dummy frames.
2530 * breakpoint.c: Include dummy-frame.h.
2531 (longjmp_breakpoint_ops): New variable.
2532 (update_breakpoints_after_exec, breakpoint_init_inferior): Delete also
2533 bp_longjmp_call_dummy.
2534 (bpstat_what, bptype_string, print_one_breakpoint_location)
2535 (init_bp_location): Support bp_longjmp_call_dummy.
2536 (set_longjmp_breakpoint): Use longjmp_breakpoint_ops. Comment why.
2537 (set_longjmp_breakpoint_for_call_dummy)
2538 (check_longjmp_breakpoint_for_call_dummy, longjmp_bkpt_dtor): New
2539 functions.
2540 (initialize_breakpoint_ops): Initialize longjmp_breakpoint_ops.
2541 * breakpoint.h (enum bptype): New item bp_longjmp_call_dummy. Delete
2542 FIXME comment and extend the other comment for bp_call_dummy.
2543 (set_longjmp_breakpoint_for_call_dummy)
2544 (check_longjmp_breakpoint_for_call_dummy): New declarations.
2545 * dummy-frame.c: Include gdbthread.h.
2546 (pop_dummy_frame_bpt): New function.
2547 (pop_dummy_frame): Call pop_dummy_frame_bpt.
2548 (dummy_frame_discard): New function.
2549 (cleanup_dummy_frames): Update the comment about longjmps.
2550 * dummy-frame.h (dummy_frame_discard): New declaration.
2551 * gdbthread.h (struct thread_info): Extend initiating_frame comment.
2552 * infcall.c (call_function_by_hand): New variable longjmp_b. Call
2553 set_longjmp_breakpoint_for_call_dummy. Chain its breakpoints with BPT.
2554 * infrun.c (handle_inferior_event) <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>:
2555 Add case 4 comment. Call check_longjmp_breakpoint_for_call_dummy and
2556 keep_going if IS_LONGJMP and there is no other reason to stop.
2557
09d5912c
TT
25582012-06-18 Greta Yorsh <Greta.Yorsh@arm.com>
2559
2560 * remote-sim.c (sim_command_completer): Initialize
2561 variable 'result'.
2562
1788b2d3
JK
25632012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2564
2565 * dwarf2expr.c (execute_stack_op): Support DW_OP_GNU_parameter_ref.
2566 * dwarf2loc.c (call_site_parameter_matches): Support
2567 CALL_SITE_PARAMETER_PARAM_OFFSET.
2568 (needs_dwarf_reg_entry_value): Push stub value.
2569 * dwarf2read.c (read_call_site_scope): New variable origin. Support
2570 CALL_SITE_PARAMETER_PARAM_OFFSET and its DW_AT_abstract_origin.
2571 * gdbtypes.h (enum call_site_parameter_kind): New item
2572 CALL_SITE_PARAMETER_PARAM_OFFSET.
2573 (struct call_site.parameter.u): New field param_offset.
2574
24c5c679
JK
25752012-06-17 Jan Kratochvil <jan.kratochvil@redhat.com>
2576
2577 Code cleanup: Generalize call_site.parameter key.
2578 * dwarf2expr.c (execute_stack_op) <DW_OP_GNU_entry_value>: Remove
2579 variable dwarf_reg. New variable kind_u. Update parameters to
2580 push_dwarf_reg_entry_value.
2581 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2582 * dwarf2expr.h (enum call_site_parameter_kind)
2583 (union call_site_parameter_u): Forward declarations.
2584 (struct dwarf_expr_context_funcs): Update parameters and their
2585 description for push_dwarf_reg_entry_value.
2586 (ctx_no_push_dwarf_reg_entry_value): Update parameters.
2587 * dwarf2loc.c (call_site_parameter_matches): New function.
2588 (dwarf_expr_reg_to_entry_parameter): Update parameters and their
2589 description. Use call_site_parameter_matches.
2590 (dwarf_expr_push_dwarf_reg_entry_value, value_of_dwarf_reg_entry):
2591 Update parameters and their description.
2592 (value_of_dwarf_block_entry): Remove variables dwarf_reg and fb_offset.
2593 New variable kind_u. Adjust the caller for updated parameters.
2594 (needs_dwarf_reg_entry_value): Update parameters.
2595 * dwarf2read.c (read_call_site_scope): New variable loc. Use it
2596 instead of attr. Update for the changed fields of struct
2597 call_site_parameter.
2598 * gdbtypes.h: Include dwarf2expr.h.
2599 (enum call_site_parameter_kind): New.
2600 (struct call_site.parameter): New field kind. Wrap dwarf_reg and
2601 fb_offset into new union u.
2602
ac142d96
L
26032012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2604
2605 * amd64-tdep.c (amd64_x32_analyze_stack_align): New function.
2606 (amd64_analyze_prologue): Call amd64_x32_analyze_stack_align
2607 for x32.
2608
ba224c70
L
26092012-06-16 H.J. Lu <hongjiu.lu@intel.com>
2610
2611 * amd64-linux-nat.c (compat_x32_clock_t): New.
2612 (compat_x32_siginfo_t): Likewise.
2613 (compat_x32_siginfo_from_siginfo): Likewise.
2614 (siginfo_from_compat_x32_siginfo): Likewise.
2615 (amd64_linux_siginfo_fixup): Call compat_x32_siginfo_from_siginfo
2616 and siginfo_from_compat_x32_siginfo for x32.
2617
7ecbc825
HZ
26182012-06-15 Hui Zhu <hui_zhu@mentor.com>
2619
2620 * tracepoint.c (tfile_xfer_partial): Add a lseek.
2621
233dfcf0
L
26222012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2623
2624 * amd64-linux-nat.c (ps_get_thread_area): Check bits_per_word
2625 instead of gdbarch_ptr_bit.
2626 * amd64-nat.c (amd64_native_gregset_reg_offset): Likewise.
2627 (amd64_supply_native_gregset): Likewise.
2628 (amd64_collect_native_gregset): Likewise.
2629 * amd64-tdep.c (amd64_supply_fxsave): Likewise.
2630 (amd64_supply_xsave): Likewise.
2631 (amd64_collect_fxsave): Likewise.
2632 (amd64_collect_xsave): Likewise.
2633
6da38f42
L
26342012-06-15 H.J. Lu <hongjiu.lu@intel.com>
2635
2636 * amd64-linux-nat.c (AMD64_LINUX_X32_DS): New.
2637 (amd64_linux_read_description): Check DS segment register for
2638 x32 process.
2639
663b969e
TT
26402012-06-15 Tom Tromey <tromey@redhat.com>
2641
2642 * dwarf2read.c (dw2_find_symbol_file): Unconditionally use
2643 init_cutu_and_read_dies.
2644
d6f05027
IS
26452012-06-15 Iain Sandoe <iain@codesourcery.com>
2646
2647 * MAINTAINERS (Write After Approval): Add myself to the list.
2648
6598ed07
TT
26492012-06-15 Tom Tromey <tromey@redhat.com>
2650
2651 * valops.c (value_find_oload_method_list): Now static.
2652 * value.h (value_find_oload_method_list): Don't declare.
2653
2b214ea6
TT
26542012-06-15 Tom Tromey <tromey@redhat.com>
2655
2656 * valops.c (find_overload_match): Use value_ind.
2657
a210c238
MR
26582012-06-15 Maciej W. Rozycki <macro@codesourcery.com>
2659
2660 * infrun.c (handle_inferior_event): Correct indentation.
2661
3771a44c
DE
26622012-06-14 Doug Evans <dje@google.com>
2663
2664 * dwarf2loc.c (debug_loc_kind): Add DEBUG_LOC_START_LENGTH.
2665 (DEBUG_LOC_START_END): Renamed from DEBUG_LOC_NORMAL.
2666 All uses updated.
2667 (decode_debug_loc_dwo_addresses): New arg "byte_order". All callers
2668 updated. Handle DEBUG_LOC_START_LENGTH.
2669 (dwarf2_find_location_expression): Handle DEBUG_LOC_START_LENGTH.
2670 (loclist_describe_location): Ditto.
2671
1c5a993e
MR
26722012-06-14 Maciej W. Rozycki <macro@codesourcery.com>
2673
2674 PR backtrace/13866
2675 * infrun.c (handle_inferior_event): Re-fetch frame and gdbarch
2676 after hiding inline functions.
2677
0b155465
JB
26782012-06-13 Joel Brobecker <brobecker@adacore.com>
2679
2680 * inf-ttrace.c (_initialize_hppa_hpux_nat): Rename into
2681 _initialize_inf_ttrace.
2682
45717bac
JB
26832012-06-13 Joel Brobecker <brobecker@adacore.com>
2684
2685 * ia64-hpux-nat.c (_initialize_ia64_hpux_nat): Renames
2686 _initialize_hppa_hpux_nat.
2687
34370865
JB
26882012-06-13 Joel Brobecker <brobecker@adacore.com>
2689
2690 * remote-sim.c (sim_command_completer): Change type of return
2691 value to "VEC (char_ptr) *". Adjust implementation accordingly.
2692
284c5a60
MK
26932012-06-13 Mark Kettenis <kettenis@gnu.org>
2694 Jan Kratochvil <jan.kratochvil@redhat.com>
2695
2696 PR tdep/14222
2697 * i386-tdep.c (i386_push_dummy_call): Unconditionally align the
2698 stack on a 16-byte boundary.
2699
2535757a
TT
27002012-06-13 Kaushik Srenevasan <kaushik@twitter.com>
2701
2702 * jit.c (finalize_symtab): Set function's return type to 'void' by
2703 default.
2704
fff4548b
MK
27052012-06-13 Mark Kettenis <kettenis@gnu.org>
2706 H.J. Lu <hongjiu.lu@intel.com>
2707
5a83521a
MK
2708 * amd64-linux-tdep.c (amd64_linux_init_abi_common): New function.
2709 Move bits common to both the classic LP64 and the new x32 ILP32
2710 ABI here.
2711 (amd64_linux_init_abi): Call amd64_linux_init_abi_common.
2712 (amd64_x32_linux_init_abi): New function.
2713 (_initialize_amd64_linux_tdep): Register osabi for bfd_mach_x64_32
2714 subtype.
2715
fff4548b
MK
2716 * i386-tdep.h (i386_pseudo_register_name): New prototype.
2717 * i386-tdep.c (i386_pseudo_register_name): Make public.
2718 * amd64-tdep.h (amd64_x32_init_abi): New prototype.
2719 * amd64-tdep.c (amd64_dword_names): Add "eip".
2720 (amd64_x32_pseudo_register_type): New function
2721 (amd64_x32_init_abi): New function.
2722
dd80ea3c
JK
27232012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2724
2725 PR build/14003
2726 * inferior.h (struct inferior_suspend_state): Comment out.
2727 (struct inferior): Comment out the field suspend.
2728 * infrun.c (struct infcall_suspend_state): Comment out the field
2729 inferior_suspend.
2730 (save_infcall_suspend_state, restore_infcall_suspend_state): Comment
2731 out its assignment.
2732
50af5481
JK
27332012-06-13 Jan Kratochvil <jan.kratochvil@redhat.com>
2734
2735 PR c++/14177 - Fix parsing TYPENAME:: in parentheses.
2736 * c-exp.y (classify_inner_name): Remove caller assumptions in the
2737 function comment. Return ERROR for unresolved cases. Implement
2738 returning proper NAME.
2739 (yylex): Accept also NAME from classify_inner_name.
2740 * cp-namespace.c (cp_lookup_nested_type): Rename to ...
2741 (cp_lookup_nested_symbol): ... here. Return any found symbol, not just
2742 LOC_TYPEDEF type.
2743 * cp-support.h (cp_lookup_nested_type): Update its declaration.
2744
d55637df
TT
27452012-06-13 Tom Tromey <tromey@redhat.com>
2746
2747 * breakpoint.c (condition_completer): New function.
2748 (_initialize_breakpoint): Use it.
2749 * value.c (complete_internalvar): New function.
2750 * value.h (complete_internalvar): Declare.
2751
49c4e619
TT
27522012-06-13 Tom Tromey <tromey@redhat.com>
2753
2754 * ada-lang.c (ada_make_symbol_completion_list): Return a VEC.
2755 * breakpoint.c (catch_syscall_completer): Return a VEC.
2756 * cli/cli-cmds.c (complete_command): Update.
2757 * cli/cli-decode.c (complete_on_cmdlist): Return a VEC.
2758 (complete_on_enum): Likewise.
2759 * command.h: Include gdb_vecs.h.
2760 (completer_ftype): Change return type.
2761 (complete_on_cmdlist, complete_on_enum): Likewise.
2762 * completer.c (noop_completer, filename_completer)
2763 (location_completer): Return a VEC.
2764 (add_struct_fields): Remove 'nextp' argument. Change 'output'
2765 to a VEC.
2766 (expression_completer, complete_line_internal, complete_line)
2767 (command_completer): Return a VEC.
2768 (gdb_completion_word_break_characters, line_completion_function):
2769 Update.
2770 * completer.h: Include gdb_vecs.h.
2771 (complete_line, noop_completer, filename_completer)
2772 (expression_completer, location_completer, command_completer):
2773 Update.
2774 * f-lang.c (f_word_break_characters): Return a VEC.
2775 * interps.c (interpreter_completer): Return a VEC.
2776 * language.h (struct language_defn)
2777 <la_make_symbol_completion_list>: Return a VEC.
2778 * python/py-cmd.c (cmdpy_completer): Return a VEC.
2779 * symtab.c (free_completion_list): Take a VEC.
2780 (return_val_size, return_val_index): Remove.
2781 (return_val): Now a VEC.
2782 (completion_list_add_name): Update.
2783 (default_make_symbol_completion_list_break_on)
2784 (default_make_symbol_completion_list, make_symbol_completion_list)
2785 (make_symbol_completion_list_fn, make_file_symbol_completion_list):
2786 Return a VEC.
2787 (add_filename_to_list): Update.
2788 (struct add_partial_filename_data) <list_used, list_alloced>: Remove.
2789 <list>: Now a VEC.
2790 (maybe_add_partial_symtab_filename): Update.
2791 (make_source_files_completion_list): Return a VEC.
2792 * symtab.h (default_make_symbol_completion_list_break_on)
2793 (default_make_symbol_completion_list, make_symbol_completion_list)
2794 (make_symbol_completion_list_fn, make_file_symbol_completion_list)
2795 (make_source_files_completion_list): Update.
2796
625e8578
TT
27972012-06-13 Tom Tromey <tromey@redhat.com>
2798
2799 * breakpoint.c (add_catch_command): Use completer_ftype.
2800 * breakpoint.h: Include command.h.
2801 (add_catch_command): Use completer_ftype.
2802 * cli/cli-decode.c (set_cmd_completer): Use completer_ftype.
2803 * cli/cli-decode.h (struct cmd_list_element) <completer>:
2804 Use completer_ftype.
2805 * command.h (completer_ftype): New typedef.
2806 (set_cmd_completer): Use it.
2807 * python/py-cmd.c (struct cmdpy_completer) <completer>: Use
2808 completer_ftype.
2809
5eb3b062
PA
28102012-06-13 Pedro Alves <palves@redhat.com>
2811
2812 Partial revert of previous change.
2813
2814 * serial.c (scb_base): New global.
2815 (serial_for_fd): New.
2816 (serial_open, serial_fdopen_ops): Link new serial in open serials
2817 chain.
2818 (do_serial_close): Unlink serial from the open serials chain.
2819
8b3ee56d
PA
28202012-06-12 Pedro Alves <palves@redhat.com>
2821
2822 * infrun.c (infrun_thread_stop_requested_callback): Don't switch
2823 threads here.
2824 (prepare_for_detach): No longer context switch here in non-stop
2825 mode.
2826 (fetch_inferior_event): Ditto.
2827 (handle_inferior_event) <STOP_QUIETLY || NO_STOP_QUIETLY>: Switch
2828 to the event thread before removing breakpoints. Switch to the
2829 event thread before inserting breakpoints and resuming.
2830 (handle_inferior_event) <TARGET_WAITKIND_SPURIOUS>: Switch to the
2831 event thread before resuming.
2832 (handle_inferior_event) <stepping_past_singlestep_breakpoint>:
2833 Switch to the event thread before removing breakpoints.
2834
5d60742e
EZ
28352012-06-12 Eli Zaretskii <eliz@gnu.org>
2836
2837 * infcmd.c (construct_inferior_arguments) [__MINGW32__]: Quote
2838 special characters correctly for the Windows shells. See
2839 http://sourceware.org/ml/gdb/2012-06/msg00047.html for the bug
2840 report.
2841 [!__MINGW32__]: Remove extra double quote character from special
2842 characters.
2843
a6feecf7
SS
28442012-06-11 Stan Shebs <stan@codesourcery.com>
2845
2846 * ui-out.h: Remove #if 0 declarations.
2847 * ui-out.c: Remove #if 0 functions.
2848
ddefb60f
PA
28492012-06-11 Pedro Alves <palves@redhat.com>
2850
2851 * ser-base.c (run_async_handler_and_reschedule): New.
2852 (fd_event, push_event): Use it.
2853 * serial.c (serial_open, serial_fdopen_ops): Set the initial
2854 reference count to 1.
2855 (do_serial_close): Set the bufp field to NULL. Use serial_unref
2856 instead of xfree.
2857 (serial_is_open, serial_ref, serial_unref): New.
2858 * serial.h (serial_open): Adjust comment.
2859 (serial_is_open): Declare.
2860 (serial_close): Adjust comment.
2861 (serial_ref, serial_unref) Declare.
2862 (struct serial): New field 'refcnt'.
2863
d5ad6aa5
PA
28642012-06-11 Pedro Alves <palves@redhat.com>
2865
2866 Remove #if 0'd "connect" command, and unnecessary associated
2867 refcounting and serial reuse bits.
2868
2869 * serial.h (struct serial): Remove fields 'next' and 'refcnt'.
2870 * serial.c (last_serial_opened): Delete.
2871 (scb_base): Delete.
2872 (serial_open): Adjust.
2873 (serial_for_fd): Delete.
2874 (serial_fdopen_ops, do_serial_close): Adjust.
2875 (serial_fdopen_ops): Adjust.
2876
318aa544
PA
28772012-06-11 Pedro Alves <palves@redhat.com>
2878
2879 * serial.c (do_serial_close): Remove early return when SCB is
2880 null.
2881
07261596
TT
28822012-06-11 Tom Tromey <tromey@redhat.com>
2883
2884 * dwarf2read.c (dw2_get_file_names_reader): Ignore partial units.
2885
cc80f267
JK
28862012-06-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2887
2888 Fix regression by the "ambiguous linespec" series.
2889 * breakpoint.c (parse_breakpoint_sals): New variable cursal. Use
2890 get_last_displayed_symtab and get_last_displayed_line and depending
2891 on CURSAL.
2892
356d9f9d
TT
28932012-06-11 Tom Tromey <tromey@redhat.com>
2894
2895 * dwarf2read.c (dw2_get_primary_filename_reader): New function.
2896 (dw2_find_symbol_file): Use it.
2897
232b8704
ME
28982012-06-11 Michael Eager <eager@eagercon.com>
2899
2900 * mips-linux-tdep.c (mips_gdb_signal_from_target): New
2901 * mips-linux-tdep.h (mips_signals): New
2902
e81a37f7
TT
29032012-06-11 Tom Tromey <tromey@redhat.com>
2904
2905 * infrun.c (handle_inferior_event)
2906 <BPSTAT_WHAT_SET_LONGJMP_RESUME>: Don't delete the step-resume
2907 breakpoint.
2908 <BPSTAT_WHAT_CLEAR_LONGJMP_RESUME>: Remove longjmp logic; use
2909 exception logic in all cases. Update comments.
2910 (insert_longjmp_resume_breakpoint): Set the exception resume
2911 breakpoint.
2912
2e81047f
MR
29132012-06-11 Maciej W. Rozycki <macro@codesourcery.com>
2914
2915 * mips-tdep.c (mips_push_dummy_code): Handle microMIPS code.
2916
4e32eda7
SCR
29172012-06-09 Siva Chandra Reddy <sivachandra@google.com>
2918
2919 * valarith.c (binop_types_user_defined_p): Fix a typo.
2920
18648a37 29212012-06-08 Yao Qi <yao@codesourcery.com>
f782ad9b 2922 Chung-Lin Tang <cltang@codesourcery.com>
18648a37
YQ
2923
2924 * arch-utils.c (default_return_in_first_hidden_param_p): New.
2925 * arch-utils.h: Declare.
2926 * gdbarch.sh: Add return_in_first_hidden_param_p.
2927 * gdbarch.c, gdbarch.h: Regenerated.
2928 * infcall.c (call_function_by_hand): Call
2929 gdbarch_return_in_first_hidden_param_p instead of
2930 language_pass_by_reference.
2931
2932 * m68k-tdep.c (m68k_return_in_first_hidden_param_p): New.
2933 (m68k_gdbarch_init): Install m68k_return_in_first_hidden_param_p.
2934 * sh-tdep.c (sh_return_in_first_hidden_param_p): New.
2935 (sh_gdbarch_init): Install sh_return_in_first_hidden_param_p.
2936 * tic6x-tdep.c (tic6x_push_dummy_call): Remove local variable
2937 `cplus_return_struct_by_reference'.
2938 (tic6x_return_value): Handle language cplusplus.
2939 (tic6x_return_in_first_hidden_param_p): New.
2940 (tic6x_gdbarch_init): Install tic6x_return_in_first_hidden_param_p.
2941
034e5797
DE
29422012-06-07 Doug Evans <dje@google.com>
2943
2944 * dwarf2read.c (dwarf2_cu): Add comment.
2945
6a00aa1e
MR
29462012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2947
2948 * mips-tdep.c (mips_pseudo_register_type): Remove tdep local
2949 variable.
2950 (mips_eabi_push_dummy_call): Likewise.
2951 (mips_n32n64_push_dummy_call): Likewise.
2952 (mips_o32_push_dummy_call): Likewise.
2953 (mips_o64_push_dummy_call): Likewise.
2954
eaa05d59
MR
29552012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2956
2957 * mips-tdep.c (mips_convert_register_p): Correct coding style.
2958
de13fcf2
MR
29592012-06-06 Maciej W. Rozycki <macro@codesourcery.com>
2960
2961 * mips-tdep.c (mips_pseudo_register_type): Use
2962 mips_float_register_p.
2963
c3a01a22
PA
29642012-06-06 Pedro Alves <palves@redhat.com>
2965
2966 * infrun.c (handle_inferior_event): Remove calls to
2967 reinit_frame_cache that follow a context_switch call.
2968
d25f45d9
PA
29692012-06-06 Pedro Alves <palves@redhat.com>
2970
2971 * infrun.c (handle_inferior_event) <deferred_step_ptid>: Use
2972 context_switch and remove stale comment.
2973
359f5fe6
PA
29742012-06-06 Pedro Alves <palves@redhat.com>
2975
2976 * infrun.c (struct execution_control_state): Remove
2977 `new_thread_event' field.
2978 (handle_inferior_event): Simplify new threads handling; don't
2979 resume the inferior if we find a new thread.
2980
2d4c29c5
TS
29812012-06-06 Thomas Schwinge <thomas@codesourcery.com>
2982
2983 * NEWS: Document the deprecation of SH's 'regs' command.
2984 * inferior.h (all_registers_info): Add function declaration.
2985 * sh-tdep.c (sh_show_regs): Remove variable.
2986 (sh_generic_show_regs, sh3_show_regs, sh2e_show_regs, sh2a_show_regs)
2987 (sh2a_nofpu_show_regs, sh3e_show_regs, sh3_dsp_show_regs)
2988 (sh4_show_regs, sh4_nofpu_show_regs, sh_dsp_show_regs)
2989 (sh_show_regs_command): Remove functions.
2990 (sh_gdbarch_init): Don't set sh_show_regs.
2991 (_initialize_sh_tdep): Make the 'regs' command an deprecated alias to
2992 'info all-registers'.
2993 * sh64-tdep.c (sh64_show_media_regs, sh64_show_compact_regs)
2994 (sh64_show_regs): Remove functions.
2995 * sh64-tdep.h (sh64_show_regs): Remove function declaration.
2996
f5f1cdb6
JK
29972012-06-06 Jan Kratochvil <jan.kratochvil@redhat.com>
2998
2999 * configure.ac: Move development=true below AC_INIT.
3000 * configure: Regenerate.
3001
bf6309af
SS
30022012-06-05 Stan Shebs <stan@codesourcery.com>
3003
3004 * mi/mi-interp.c (mi_interpreter_init): Set raw_stdout from
3005 gdb_stdout.
3006
45aa4659
JK
30072012-06-05 Siddhesh Poyarekar <siddhesh@redhat.com>
3008
3009 * corefile.c (read_memory, read_stack, write_memory): Accept LEN
3010 argument as ssize_t.
3011 * gdbcore.h (read_memory, read_stack, write_memory): Likewise.
3012 * remote.c (remote_write_bytes_aux, remote_write_bytes): Likewise.
3013 * target.c (target_read_stack, target_write_memory)
3014 (target_write_raw_memory): Likewise.
3015 * target.h (target_read_stack, target_write_memory)
3016 (target_write_raw_memory): Likewise.
3017
1b162304
JK
30182012-06-05 Jan Kratochvil <jan.kratochvil@redhat.com>
3019
3020 * symfile-mem.c: Change gdb_static_assert to ssize_t.
3021 (target_read_memory_bfd): Cast gdb_assert LEN to ssize_t.
3022 * target.c (target_read_memory): Change LEN to ssize_t.
3023 * target.h (target_read_memory): Change LEN to ssize_t.
3024
8556afb4
PA
30252012-06-05 Pedro Alves <palves@redhat.com>
3026
3027 PR backtrace/13866
3028
3029 * breakpoint.c (until_break_command): Only fetch the selected
3030 frame after decode_line_1.
3031
fb139f32
PA
30322012-06-05 Joakim Tjernlund <Joakim.Tjernlund@transmode.se>
3033
3034 * solib-svr4.c (enable_break): Don't fallback to setting the solib
3035 event breakpoint at _start, __start or main if a program
3036 interpreter is not found.
3037
a8e1bb34
JB
30382012-06-05 Joel Brobecker <brobecker@adacore.com>
3039
3040 * windows-tdep.h (windows_iterate_over_objfiles_in_search_order):
3041 Add declaration.
3042 * windows-tdep.c: #include "objfiles.h".
3043 (windows_iterate_over_objfiles_in_search_order): New function.
3044 * amd64-windows-tdep.c (amd64_windows_init_abi): Set
3045 iterate_over_objfiles_in_search_order gdbarch method to
3046 windows_iterate_over_objfiles_in_search_order.
3047 * i386-cygwin-tdep.c (i386_cygwin_init_abi): Likewise.
3048
19630284
JB
30492012-06-05 Joel Brobecker <brobecker@adacore.com>
3050
3051 * gdbarch.sh: Add generation of
3052 "iterate_over_objfiles_in_search_order_cb_ftype" typedef in
3053 gdbarch.h. Add include of "objfiles.h" in gdbarch.c.
3054 (iterate_over_objfiles_in_search_order): New gdbarch method.
3055 * gdbarch.h, gdbarch.c: Regenerate.
3056 * objfiles.h (default_iterate_over_objfiles_in_search_order):
3057 Add declaration.
3058 * objfiles.c (default_iterate_over_objfiles_in_search_order):
3059 New function.
3060 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3061 out of lookup_symbol_aux_symtabs.
3062 (lookup_symbol_aux_symtabs): Replace extracted-out code by
3063 call to lookup_symbol_aux_objfile.
3064 (struct global_sym_lookup_data): New type.
3065 (lookup_symbol_global_iterator_cb): New function.
3066 (lookup_symbol_global): Search for symbol using
3067 gdbarch_iterate_over_objfiles_in_search_order and
3068 lookup_symbol_global_iterator_cb.
3069 * findvar.c (struct minsym_lookup_data): New type.
3070 (minsym_lookup_iterator_cb): New function.
3071 (default_read_var_value) [case LOC_UNRESOLVED]: Resolve the
3072 symbol's address via gdbarch_iterate_over_objfiles_in_search_order
3073 and minsym_lookup_iterator_cb.
3074
67ff19f7
JB
30752012-06-05 Joel Brobecker <brobecker@adacore.com>
3076
3077 Revert the following patch:
3078 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
3079 try locating the symbol in the symbol's own objfile first, before
3080 extending the search to all objfiles.
3081 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
3082 out of lookup_symbol_aux_symtabs.
3083 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
3084 Replace extracted-out code by call to lookup_symbol_aux_objfile.
3085 Do not search EXCLUDE_OBJFILE.
3086 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
3087 (lookup_symbol_global): Search for matches in the block's objfile
3088 first, before searching all other objfiles.
3089
ccab2054
JB
30902012-06-05 Joel Brobecker <brobecker@adacore.com>
3091
3092 * breakpoint.c (find_condition_and_thread): Stop parsing
3093 as soon as the first invalid keyword is found.
3094
e23d4a9c
JB
30952012-06-05 Joel Brobecker <brobecker@adacore.com>
3096
3097 * copyright.py (EXCLUDE_LIST): Add 'gdb/CONTRIBUTE' to list.
3098
70160166
JB
30992012-06-05 Joel Brobecker <brobecker@adacore.com>
3100
3101 * config/djgpp/djcheck.sh: Add copyright header.
3102
399501a5
JB
31032012-06-05 Joel Brobecker <brobecker@adacore.com>
3104
3105 * copyright.py (update_files, main): Fix path to update-copyright
3106 script.
3107
3770a159
JB
31082012-06-05 Joel Brobecker <brobecker@adacore.com>
3109
3110 * copyright.py (MULTIPLE_COPYRIGHT_HEADERS): New constant.
3111 (main): Add MULTIPLE_COPYRIGHT_HEADERS to the list of files
3112 for which a reminder to update by hand is printed.
3113
4aad0dfc
DE
31142012-06-04 Doug Evans <dje@google.com>
3115
3116 * buildsym.c (make_blockvector): Add comment.
3117
1f8cf220
PA
31182012-06-04 Pedro Alves <palves@redhat.com>
3119
3120 * arch-utils.c (default_gdb_signal_from_target): Delete.
3121 * arch-utils.h (default_gdb_signal_from_target): Delete.
3122 * corelow.c (core_open) <signal mapping>: Extended comment. Check
3123 gdbarch_gdb_signal_from_target_p.
3124 * gdbarch.sh (gdb_signal_from_target): Make it an M method (with
3125 predicate).
3126 * gdbarch.h: Regenerate.
3127 * gdbarch.c: Regenerate.
3128
86b49880
PA
31292012-06-04 Pedro Alves <palves@redhat.com>
3130
3131 * gdbarch.sh (gdb_signal_from_target): Mention that the
3132 implementation of the method must be host independent.
3133 * gdbarch.h: Regenerate.
3134
fe78531d
JK
31352012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
3136
3137 * symfile-mem.c: 3 new gdb_static_assert for target_read_memory_bfd
3138 parameters.
3139 (target_read_memory_bfd): New function.
3140 (symbol_file_add_from_memory): Use it.
3141
d790cf0a
DE
31422012-06-03 Doug Evans <dje@google.com>
3143
78e5175a
DE
3144 * symtab.c (lookup_global_symbol_from_objfile): Only scan blockvector
3145 of primary symtab.
3146 (basic_lookup_transparent_type): Ditto.
3147
d790cf0a
DE
3148 * objfiles.h (ALL_OBJFILE_PRIMARY_SYMTABS): New macro.
3149 (ALL_PRIMARY_SYMTABS): Use it.
3150 (ALL_PSPACE_PRIMARY_SYMTABS): Ditto.
3151 * dwarf2read.c (dw2_find_symbol_file): Ditto.
3152 * linespec.c (iterate_over_all_matching_symtabs): Ditto.
3153 * symtab.c (lookup_symbol_aux_objfile): Ditto.
3154 (basic_lookup_transparent_type): Ditto.
3155
c6e5ee5e
SDJ
31562012-06-02 Sergio Durigan Junior <sergiodj@redhat.com>
3157
3158 * symtab.c (symbol_demangled_name): New variable `dem_name'. Use
3159 it to optimize resolution of demangled name.
3160
a68ffae9
JK
31612012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
3162
3163 * configure.ac (development): Define new variable.
3164 Call AC_CHECK_LIB for mcheck if $development.
3165 (ERROR_ON_WARNING): Enable it by default only if $development.
3166 * config.in: Regenerate.
3167 * configure: Regenerate.
3168
5299c1c4
JK
31692012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
3170
3171 * target.c (target_read_memory): Make LEN argument as size_t.
3172 * target.h (target_read_memory): Likewise.
3173
31742012-06-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7c71816c
JK
3175
3176 * tilegx-linux-tdep.c (tilegx_l): Use ULL for 64-bit values.
3177
0c56f59b
EBM
31782012-05-31 Edjunior Machado <emachado@linux.vnet.ibm.com>
3179
3180 * ppc-linux-nat.c (have_ptrace_booke_interface): Disable ptrace
3181 BookE interface for PowerPC server processors if not available
3182 in the Linux Kernel.
3183
71bdabee
KS
31842012-05-31 Keith Seitz <keiths@redhat.com>
3185
3186 * linespec.c (decode_objc): Add cleanup to free
3187 INFO.FILE_SYMTABS.
3188 (find_linespec_symbols): Add cleanup to free CLASSES.
3189 * symfile.c (find_separate_debug_file_by_debuglink): Add
3190 cleanup to free DEBUGLINK.
3191 * ui-out.c (clear_header_list): No need to check if
3192 HEADER_NEXT.COLHDR is NULL.
3193 Free HEADER_NEXT.COL_NAME.
3194
acbd605d
MGD
31952012-05-31 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
3196
3197 * ada-lang.c (standard_lookup): Prevent uninitialized variable
3198 warning.
3199
65662cde
PA
32002012-05-30 Jeff Kenton <jkenton@tilera.com>
3201
3202 * configure.host (gdb_host_cpu): Handle tilegx*.
3203 (gdb_host): Handle tilegx-*-linux*.
3204 * tilegx-linux-nat.c: New file.
3205 * config/tilegx/linux.mh: New file.
3206
ade64f0e
PA
32072012-05-30 Jeff Kenton <jkenton@tilera.com>
3208
3209 * Makefile.in (ALL_TARGET_OBJS): Add tilegx-tdep.o and
3210 tilegx-linux-tdep.o.
3211 (ALLDEPFILES): Add tilegx-linux-nat.c, tilegx-tdep.c and
3212 tilegx-linux-tdep.c.
3213 * configure.tgt: Handle tilegx-*-linux*.
3214 * tilegx-tdep.h: New file.
3215 * tilegx-tdep.c: New file.
3216 * tilegx-linux-tdep.c: New file.
3217 * regformats/reg-tilegx.dat: New file.
3218
bb08bdbd
EBM
32192012-05-30 Edjunior Machado <emachado@linux.vnet.ibm.com>
3220
3221 * ppc-linux-nat.c (ppc_linux_can_use_hw_breakpoint): fix
3222 accounting of hw watchpoints on ppc.
3223
ebd86fb5
TJB
32242012-05-30 Thiago Jung Bauermann <thiago.bauermann@linaro.org>
3225
3226 * source.c (openp): Expand tilde in path entries.
3227
0a0edcd5
DE
32282012-05-29 Doug Evans <dje@google.com>
3229
98cc87bd
DE
3230 * buildsym.c (block_compar): Fix comment.
3231 (end_symtab): Fix and clarify some comments.
3232
0a0edcd5
DE
3233 * stabsread.h (cleanup_undefined_stabs_types): Renamed from
3234 cleanup_undefined_types.
3235 * stabsread.c (cleanup_undefined_stabs_types): Ditto.
3236 All callers updated.
3237
6f0c7050
TT
32382012-05-29 Tom Tromey <tromey@redhat.com>
3239
3240 * symfile.c (symfile_bfd_open): Don't close desc if bfd_fopen
3241 fails.
3242 * solib.c (solib_bfd_fopen): Don't close fd if bfd_fopen fails.
3243 * exec.c (exec_file_attach): Don't close scratch_chan if bfd_fopen
3244 fails.
3245 * dwarf2read.c (try_open_dwo_file): Don't close fd if bfd_fopen
3246 fails.
3247
ec95993c
TG
32482012-05-29 Tristan Gingold <gingold@adacore.com>
3249
3250 * solib-darwin.c (dyld_all_image_addr, dyld_all_image): Move into...
3251 (struct darwin_info): ... New struct.
3252 (solib_darwin_pspace_data): New variable.
3253 (darwin_pspace_data_cleanup): New function.
3254 (get_darwin_info): Likewise.
3255 (darwin_dyld_version_ok, darwin_load_image_infos)
3256 (darwin_solib_get_all_image_info_addr_at_init)
3257 (darwin_solib_read_all_image_info_addr): Add info argument.
3258 Adjust code.
3259 (darwin_current_sos): Use per pspace structure.
3260 (darwin_solib_create_inferior_hook): Likewise.
3261 (darwin_clear_solib): Likewise.
3262 (_initialize_darwin_solib): Initialize solib_darwin_pspace_data.
3263
ae25568b
PA
32642012-05-28 Pedro Alves <palves@redhat.com>
3265
3266 * infrun.c (wait_for_inferior): Move ecss and ecs locals to the
3267 block that uses them. Clear ecss before handling each event.
3268
0c5bf5a9
JK
32692012-05-28 Jan Kratochvil <jan.kratochvil@redhat.com>
3270
3271 * solib-svr4.c (svr4_current_sos): New comment on
3272 svr4_current_sos_via_xfer_libraries fall back.
3273
bfb05775
JK
32742012-05-24 Jan Kratochvil <jan.kratochvil@redhat.com>
3275
3276 * psymtab.c (lookup_symbol_aux_psymtabs): New variable stab_best. Use
3277 it as a fallback for TYPE_IS_OPAQUE.
3278 * symfile.h (struct quick_symbol_functions): Mention TYPE_OPAQUE
3279 symbols for lookup_symbol.
3280
685b1105
JK
32812012-05-24 John Steele Scott <toojays@toojays.net>
3282
3283 PR symtab/13277: Resolving opaque structures in ICC generated binaries.
3284 * dwarf2read.c (struct dwarf2_cu) <producer_is_icc>: New field.
3285 (producer_is_gxx_lt_4_6): Move the checking and caching to...
3286 (check_producer): ... this new function, which also checks for ICC
3287 and caches the result.
3288 (producer_is_icc): New function.
3289 (read_structure_type): Don't set TYPE_STUB_SUPPORTED if the
3290 producer was ICC.
3291
22203bbf
PA
32922012-05-24 Pedro Alves <palves@redhat.com>
3293
3294 PR gdb/7205
3295
3296 * arch-utils.c (default_gdb_signal_to_host): Rename to ...
3297 (default_gdb_signal_to_target): ... this. Add comment.
3298 (default_gdb_signal_from_host): Rename to ...
3299 (default_gdb_signal_from_target): ... this. Add comment.
3300 * arch-utils.h (default_gdb_signal_to_host): Rename to ...
3301 (default_gdb_signal_to_target): ... this.
3302 (default_gdb_signal_from_host): Rename to ...
3303 (default_gdb_signal_from_target): ... this.
3304 * corelow.c (core_open): Adjust to naming change. Replace comment.
3305 * gdbarch.sh (gdb_signal_from_host): Rename to ...
3306 (gdb_signal_from_target): ... this. Adjust to
3307 default_gdb_signal_from_host naming change. Extend comment.
3308 (gdb_signal_to_host): Rename to ...
3309 (gdb_signal_to_target): ... this. Adjust to
3310 default_gdb_signal_to_host naming change.
3311 * gdbarch.h, gdbarch.c: Renegerate.
3312
a493e3e2
PA
33132012-05-24 Pedro Alves <palves@redhat.com>
3314
3315 PR gdb/7205
3316
f782ad9b 3317 Replace TARGET_SIGNAL_ with GDB_SIGNAL_ throughout.
a493e3e2 3318
2ea28649
PA
33192012-05-24 Pedro Alves <palves@redhat.com>
3320
3321 PR gdb/7205
3322
3323 Replace target_signal with gdb_signal throughout.
3324
b09846a9
PA
33252012-05-24 Pedro Alves <palves@redhat.com>
3326
3327 PR tui/14159
3328
3329 * tui/tui-hooks.c (tui_query_hook): Pre-compute the question
3330 string, instead of reusing the va_list argument.
3331
e77c107e
TT
33322012-05-24 Tom Tromey <tromey@redhat.com>
3333
3334 * cp-support.h (cp_finalize_namespace, cp_initialize_namespace):
3335 Remove.
3336
9fccedf7
DE
33372012-05-23 Doug Evans <dje@google.com>
3338
d50bd42b
DE
3339 * symtab.c (search_symbols): Formatting fixes.
3340 (print_symbol_info): Formatting fixes.
3341
9fccedf7
DE
3342 * dwarf2-frame.c (execute_cfa_program): Update to handle long long ->
3343 int64_t change to leb128 API.
3344 (read_encoded_value, decode_frame_entry_1): Ditto.
3345 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Ditto.
3346 (dwarf_block_to_dwarf_reg, dwarf_block_to_dwarf_reg_deref): Ditto.
3347 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3348 (execute_stack_op): Ditto.
3349 * dwarf2expr.h (gdb_read_uleb128, gdb_read_sleb128): Ditto.
3350 (safe_read_uleb128, safe_read_sleb128): Ditto.
3351 * dwarf2loc.c (decode_debug_loc_dwo_addresses): Ditto.
3352 (dwarf2_compile_expr_to_ax): Ditto.
3353 (locexpr_describe_location_piece): Ditto.
3354 (disassemble_dwarf_expression): Ditto.
3355 (locexpr_describe_location_1): Ditto.
3356
f3e0e960
SS
33572012-05-23 Stan Shebs <stan@codesourcery.com>
3358 Kwok Cheung Yeung <kcy@codesourcery.com>
3359
3360 * Makefile.in (SUBDIR_MI_OBS): Add mi-cmd-info.o.
3361 (SUBDIR_MI_SRCS): Add mi-cmd-info.c.
3362 (mi-cmd-info.o): New rule.
3363 * osdata.h (info_osdata_command): New declaration.
3364 * osdata.c (info_osdata_command): Change to non-static.
3365 * mi/mi-cmds.h (mi_cmd_info_os): New declaration.
3366 * mi/mi-cmds.c (mi_cmds): Add -info-os MI command.
3367 * mi/mi-cmd-info.c: New file.
3368
c51fe631
DE
33692012-05-23 Doug Evans <dje@google.com>
3370
71cddcc1
DE
3371 * symtab.c (search_symbols): Pass NULL for file_matcher to
3372 expand_symtabs_matching if there are no files to match.
3373
c51fe631
DE
3374 * gdbtypes.c (lookup_typename): Simplify.
3375
a79378d4
PA
33762012-05-23 Pedro Alves <palves@redhat.com>
3377
3378 * arch-utils.h (default_target_signal_to_host): Delete.
3379 * arch-utils.c (default_target_signal_to_host): Delete.
3380 * gdbarch.sh (target_signal_to_host): Remove.
3381 * gdbarch.h, gdbarch.c: Regenerate.
3382
f664829e
DE
33832012-05-22 Doug Evans <dje@google.com>
3384
3385 * dwarf2-frame.c (struct dwarf2_cie): Make initial_instructions, end
3386 "const gdb_byte *".
3387 (struct dwarf2_fde): Make instructions, end "const gdb_byte *".
3388 (execute_cfa_program): Update to match API of leb128 functions.
3389 (read_1_byte, read_4_bytes, read_8_bytes): Make buf parameter
3390 "const gdb_byte *".
3391 (read_unsigned_leb128, read_signed_leb128): Delete.
3392 (read_initial_length): Change type of buf argument to
3393 "const gdb_byte *".
3394 (read_encoded_value): Update to match API of leb128 functions.
3395 (decode_frame_entry): Change result to "const gdb_byte *", and
3396 similarly for "start" parameter.
3397 (decode_frame_entry_1): Ditto. Use new leb128 reader functions.
3398 (dwarf2_build_frame_info): Change local frame_ptr to
3399 "const gdb_byte *".
3400 * dwarf2expr.c (safe_read_uleb128, safe_read_sleb128): Replaces
3401 read_uleb128, read_sleb128. All callers updated.
3402 (safe_skip_leb128): New function.
3403 (dwarf_block_to_dwarf_reg): Update to match API of leb128 functions.
3404 Call gdb_read_uleb128, gdb_skip_leb128 instead of read_uleb128.
3405 (dwarf_block_to_dwarf_reg_deref): Update to match API of leb128
3406 functions. Call gdb_read_uleb128, gdb_read_sleb128 instead of
3407 read_uleb128, read_sleb128.
3408 (dwarf_block_to_fb_offset, dwarf_block_to_sp_offset): Ditto.
3409 (execute_stack_op): Update to match API of leb128 functions.
3410 * dwarf2expr.h: #include "leb128.h".
3411 (read_uleb128, read_sleb128): Delete.
3412 (gdb_read_uleb128, gdb_read_sleb128, gdb_skip_leb128): New functions.
3413 (safe_read_uleb128, safe_read_sleb128, safe_skip_leb128): Declare.
3414 * dwarf2loc.c (debug_loc_kind): New enum.
3415 (decode_debug_loc_addresses): New function.
3416 (decode_debug_loc_dwo_addresses): New function.
3417 (dwarf2_find_location_expression): Rewrite.
3418 (dwarf2_compile_expr_to_ax): Update to match API of leb128 functions.
3419 (locexpr_describe_location_piece): Ditto.
3420 (disassemble_dwarf_expression): Ditto.
3421 (locexpr_describe_location_1): Ditto.
3422 (loclist_describe_location): Rewrite.
3423 * dwarf2loc.h (dwarf2_loclist_baton): New member "from_dwo".
3424 * dwarf2read.c (die_reader_specs): New member "buffer_end".
3425 (dwarf2_section_buffer_overflow_complaint): Renamed from
3426 dwarf2_macros_too_long_complaint. All callers updated.
3427 (skip_leb128): Delete.
3428 (init_cu_die_reader): Initialize reader->buffer_end.
3429 (skip_one_die): Replace call to skip_leb128 with safe_skip_leb128.
3430 (skip_form_bytes): New arg buffer_end. All callers updated.
3431 Replace call to skip_leb128 with gdb_skip_leb128.
3432 (skip_unknown_opcode): New arg mac_end. All callers updated.
3433 (fill_in_loclist_baton): Initialize baton->from_dwo.
3434
837a1b32
MR
34352012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3436
3437 * mips-linux-nat.c (mips_linux_read_description): Use a more
3438 verbose error message.
3439
d0e64392
MR
34402012-05-22 Maciej W. Rozycki <macro@codesourcery.com>
3441
3442 * NEWS: Add MIPS/Linux DSP support.
3443 * mips-linux-tdep.c: Document post-2.6.12 o32 sigcontext layout.
3444 (SIGCONTEXT_DSPCTL): New macro.
3445 (SIGCONTEXT_HI1, SIGCONTEXT_LO1): Likewise.
3446 (SIGCONTEXT_HI2, SIGCONTEXT_LO2): Likewise.
3447 (SIGCONTEXT_HI3, SIGCONTEXT_LO3): Likewise.
3448 (N64_SIGCONTEXT_HI1, N64_SIGCONTEXT_HI2): Likewise.
3449 (N64_SIGCONTEXT_HI3): Likewise.
3450 (N64_SIGCONTEXT_LO1, N64_SIGCONTEXT_LO2): Likewise.
3451 (N64_SIGCONTEXT_LO3): Likewise.
3452 (N64_SIGCONTEXT_DSPCTL): Likewise.
3453 (N64_SIGCONTEXT_FPCSR): Clarify definition.
3454 (mips_linux_o32_sigframe_init): Handle DSP registers.
3455 (mips_linux_n32n64_sigframe_init): Likewise.
3456
8bea7ed1
PM
34572012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3458
3459 * common/buffer.c (buffer_grow): ARI fix: Remove unneeded
3460 call to abort.
3461
dab06dbe
PA
34622012-05-22 Pedro Alves <palves@redhat.com>
3463
3464 * target.h (store_waitstatus): Move declaration ...
3465 * inf-child.h (store_waitstatus): ... here.
3466 * target.c: Move inclusion of gdb_wait.h, and ...
3467 (store_waitstatus): ... this ...
3468 * inf-child.c: ... here.
3469 * linux-nat.c: Include inf-child.h.
3470 * rs6000-nat.c: Include inf-child.h.
3471 * spu-linux-nat.c: Include inf-child.h.
3472
43011e52
PM
34732012-05-22 Pierre Muller <muller@ics.u-strasbg.fr>
3474
3475 * tracepoint.c (start_tracing): Add missing i18n markup.
3476 (stop_tracing, set_trace_user): Ditto.
3477 (set_trace_notes, set_trace_stop_notes): Ditto.
3478
b1af9e97
TT
34792012-05-21 Tom Tromey <tromey@redhat.com>
3480
3481 PR c++/7173:
3482 * gnu-v3-abi.c (gnuv3_baseclass_offset): Return early for Java
3483 types.
3484 * value.h (value_cast_pointers): Update.
3485 * valops.c (value_cast_pointers): Add 'subclass_check' argument.
3486 (value_cast): Update.
3487 (update_search_result): New function.
3488 (do_search_struct_field): New, from search_struct_field. Check
3489 for ambiguous results.
3490 (search_struct_field): Rewrite.
3491 * infcall.c (value_arg_coerce): Update.
3492 * eval.c (evaluate_subexp_standard) <STRUCTOP_MEMBER>: Use
3493 value_cast_pointers.
3494 * ada-lang.c (ada_convert_actual): Update.
3495
e9e5e6b3
TT
34962012-05-21 Tom Tromey <tromey@redhat.com>
3497
3498 * macroexp.c (macro_stringify): Terminate the string.
3499
1564a261
JK
35002012-05-20 Jan Kratochvil <jan.kratochvil@redhat.com>
3501
3502 * NEWS (--with-auto-load-dir): Prepend $debugdir to the default path.
3503 Describe it.
3504 * auto-load.c (auto_load_expand_dir_vars): New function.
3505 (auto_load_safe_path_vec_update): Use it, remove the
3506 substitute_path_component call thanks to it.
3507 (auto_load_objfile_script): Remove the debug_file_directory processing.
3508 Use auto_load_expand_dir_vars, remove the substitute_path_component
3509 call thanks to it.
3510 * configure: Regenerate.
3511 * configure.ac (--with-auto-load-dir): Prepend $debugdir to the default
3512 path. Escape $ also for $debugdir.
3513 (--with_auto_load_safe_path): Escape $ also for $debugdir.
3514 * utils.c (substitute_path_component): Accept also DIRNAME_SEPARATOR.
3515
a3ec0bb1
DE
35162012-05-20 Doug Evans <dje@google.com>
3517
3518 * dwarf2read.c (recursively_find_pc_sect_symtab): Initialize "s"
3519 before use. Check for symtab->includes == NULL before scanning it.
3520
d467df4e
MR
35212012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3522
3523 * mips-tdep.c (mips_reg3_to_reg): Optimize storage.
3524
4cc0665f
MR
35252012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3526
3527 * NEWS: Add microMIPS support and "set mips compression",
3528 "show mips compression" commands.
3529 * mips-tdep.h (mips_isa): New enum.
3530 (gdbarch_tdep): Add mips_isa.
3531 (mips_pc_is_mips16): Update prototype.
3532 (mips_pc_is_mips, mips_pc_is_micromips): New prototypes.
3533 * mips-tdep.c (mips_compression_mips16): New variable.
3534 (mips_compression_micromips): Likewise.
3535 (mips_compression_strings): Likewise.
3536 (mips_compression_string): Likewise.
3537 (is_mips16_isa, is_micromips_isa): New functions.
3538 (is_mips16_addr): Rename to...
3539 (is_compact_addr): ... this.
3540 (unmake_mips16_addr): Likewise to...
3541 (unmake_compact_addr): ... this.
3542 (make_mips16_addr): Likewise to...
3543 (make_compact_addr): ... this.
3544 (is_mips_addr, is_mips16_addr, is_micromips_addr): New
3545 functions.
3546 (mips_elf_make_msymbol_special): Handle microMIPS code.
3547 (msymbol_is_special): Rename to...
3548 (msymbol_is_mips16): ... this.
3549 (mips_make_symbol_special, mips_pc_is_mips16): Update
3550 accordingly.
3551 (msymbol_is_mips, msymbol_is_micromips): New functions.
3552 (mips16_to_32_reg): Rename to...
3553 (mips_reg3_to_reg): ... this.
3554 (mips_pc_is_mips, mips_pc_is_micromips): New functions.
3555 (mips_pc_isa): Likewise.
3556 (mips_read_pc, mips_unwind_pc, mips_write_pc): Handle microMIPS
3557 code.
3558 (mips_fetch_instruction): Pass return status instead of printing
3559 an error message if requested. Handle microMIPS code. Bail out
3560 on an invalid ISA.
3561 (micromips_op): New macro.
3562 (b0s4_imm, b0s5_imm, b0s5_reg, b0s7_imm, b0s10_imm): Likewise.
3563 (b1s9_imm, b2s3_cc, b4s2_regl, b5s5_op, b5s5_reg): Likewise.
3564 (b6s4_op, b7s3_reg): Likewise.
3565 (b0s6_op, b0s11_op, b0s12_imm, b0s16_imm, b0s26_imm): Likewise.
3566 (b6s10_ext, b11s5_reg, b12s4_op): Likewise.
3567 (mips_insn_size): New function.
3568 (mips32_next_pc): Update mips_fetch_instruction call.
3569 (micromips_relative_offset7): New function.
3570 (micromips_relative_offset10): Likewise.
3571 (micromips_relative_offset16): Likewise.
3572 (micromips_pc_insn_size): Likewise.
3573 (micromips_bc1_pc): Likewise.
3574 (micromips_next_pc): Likewise.
3575 (unpack_mips16): Update mips_fetch_instruction call.
3576 (extended_mips16_next_pc): Update according to change to
3577 mips16_to_32_reg.
3578 (mips_next_pc): Update mips_pc_is_mips16 call. Handle microMIPS
3579 code.
3580 (mips16_scan_prologue): Update mips_fetch_instruction call.
3581 Update according to change to mips16_to_32_reg.
3582 (mips_insn16_frame_sniffer): Update mips_pc_is_mips16 call.
3583 (mips_insn16_frame_base_sniffer): Likewise.
3584 (micromips_decode_imm9): New function.
3585 (micromips_scan_prologue): Likewise.
3586 (mips_micro_frame_cache): Likewise.
3587 (mips_micro_frame_this_id): Likewise.
3588 (mips_micro_frame_prev_register): Likewise.
3589 (mips_micro_frame_sniffer): Likewise.
3590 (mips_micro_frame_unwind): New variable.
3591 (mips_micro_frame_base_address): New function.
3592 (mips_micro_frame_base): New variable.
3593 (mips_micro_frame_base_sniffer): New function.
3594 (mips32_scan_prologue): Update mips_fetch_instruction call.
3595 (mips_insn32_frame_sniffer): Check for the standard MIPS ISA
3596 rather than for MIPS16.
3597 (mips_insn32_frame_base_sniffer): Likewise.
3598 (mips_addr_bits_remove): Handle microMIPS code.
3599 (deal_with_atomic_sequence): Rename to...
3600 (mips_deal_with_atomic_sequence): ... this. Update the type
3601 of the variable used to hold an instruction. Remove the ISA bit
3602 check. Update mips_fetch_instruction call.
3603 (micromips_deal_with_atomic_sequence): New function.
3604 (deal_with_atomic_sequence): Likewise.
3605 (mips_about_to_return): Handle microMIPS code. Update
3606 mips_fetch_instruction call.
3607 (heuristic_proc_start): Check for the standard MIPS ISA rather
3608 than for MIPS16. Update mips_pc_is_mips16 and
3609 mips_fetch_instruction calls. Handle microMIPS code.
3610 (mips_push_dummy_code): Handle microMIPS code.
3611 (mips_eabi_push_dummy_call): Likewise.
3612 (mips_o32_return_value): Update mips_pc_is_mips16 call.
3613 (mips_o64_push_dummy_call): Handle microMIPS code.
3614 (mips_o64_return_value): Update mips_pc_is_mips16 call.
3615 (is_delayed): Remove function.
3616 (mips_single_step_through_delay): Replace the call to is_delayed
3617 with mips32_instruction_has_delay_slot. Correct MIPS16 handling.
3618 Handle microMIPS code.
3619 (mips_skip_prologue): Update mips_pc_is_mips16 call. Handle
3620 microMIPS code.
3621 (mips32_in_function_epilogue_p): Update mips_fetch_instruction
3622 call.
3623 (micromips_in_function_epilogue_p): New function.
3624 (mips16_in_function_epilogue_p): Update mips_fetch_instruction
3625 call.
3626 (mips_in_function_epilogue_p): Update mips_pc_is_mips16 call.
3627 Handle microMIPS.
3628 (gdb_print_insn_mips): Likewise.
3629 (mips_breakpoint_from_pc): Likewise.
3630 (mips_remote_breakpoint_from_pc): New function.
3631 (mips32_instruction_has_delay_slot): Simplify making use of the
3632 updated mips_fetch_instruction interface.
3633 (micromips_instruction_has_delay_slot): New function.
3634 (mips16_instruction_has_delay_slot): Simplify making use of the
3635 updated mips_fetch_instruction interface.
3636 (mips_adjust_breakpoint_address): Check for the standard MIPS
f782ad9b 3637 ISA rather than for MIPS16 ISA. Update for unmake_compact_addr
4cc0665f
MR
3638 calls. Handle microMIPS code.
3639 (mips_get_mips16_fn_stub_pc): Update mips_fetch_instruction call.
3640 (mips_skip_trampoline_code): Handle microMIPS code.
3641 (global_mips_compression): New function.
3642 (mips_gdbarch_init): Handle the compressed ISA setting from ELF
3643 file flags. Register the microMIPS remote breakpoint handler
3644 and heuristic frame unwinder.
3645 (show_mips_compression): New function.
3646 (_initialize_mips_tdep): Add the "set mips compression" and
3647 "show mips compression" commands.
3648
22e048c9
SDJ
36492012-05-18 Sergio Durigan Junior <sergiodj@redhat.com>
3650
3651 * ada-lang.c:
3652 * ada-tasks.c:
3653 * ada-varobj.c:
3654 * amd64-darwin-tdep.c:
3655 * arm-symbian-tdep.c:
3656 * arm-tdep.c:
3657 * avr-tdep.c:
3658 * ax-gdb.c:
3659 * bfin-linux-tdep.c:
3660 * breakpoint.c:
3661 * c-valprint.c:
3662 * cli/cli-cmds.c:
3663 * coffread.c:
3664 * cp-support.c:
3665 * cris-tdep.c:
3666 * dwarf2-frame-tailcall.c:
3667 * dwarf2-frame.c:
3668 * dwarf2expr.c:
3669 * dwarf2loc.c:
3670 * dwarf2read.c:
3671 * elfread.c:
3672 * eval.c:
3673 * expprint.c:
3674 * f-valprint.c:
3675 * frv-tdep.c:
3676 * h8300-tdep.c:
3677 * hppa-hpux-tdep.c:
3678 * hppa-tdep.c:
3679 * hppanbsd-tdep.c:
3680 * i386-nto-tdep.c:
3681 * i386-tdep.c:
3682 * i387-tdep.c:
3683 * ia64-tdep.c:
3684 * jit.c:
3685 * linespec.c:
3686 * linux-tdep.c:
3687 * lm32-tdep.c:
3688 * m2-valprint.c:
3689 * m32c-tdep.c:
3690 * m32r-rom.c:
3691 * m32r-tdep.c:
3692 * m68k-tdep.c:
3693 * m68klinux-tdep.c:
3694 * mi/mi-main.c:
3695 * microblaze-tdep.c:
3696 * mips-linux-tdep.c:
3697 * mips-tdep.c:
3698 * mn10300-tdep.c:
3699 * p-valprint.c:
3700 * parse.c:
3701 * ppc-linux-tdep.c:
3702 * ppc-sysv-tdep.c:
3703 * printcmd.c:
3704 * python/py-finishbreakpoint.c:
3705 * python/py-inferior.c:
3706 * python/py-infthread.c:
3707 * python/py-type.c:
3708 * python/python.c:
3709 * remote-fileio.c:
3710 * remote-m32r-sdi.c:
3711 * remote-mips.c:
3712 * reverse.c:
3713 * rl78-tdep.c:
3714 * rs6000-aix-tdep.c:
3715 * rs6000-tdep.c:
3716 * s390-tdep.c:
3717 * score-tdep.c:
3718 * sh64-tdep.c:
3719 * skip.c:
3720 * solib-darwin.c:
3721 * solib-dsbt.c:
3722 * solib-frv.c:
3723 * sparc-tdep.c:
3724 * spu-multiarch.c:
3725 * spu-tdep.c:
3726 * stack.c:
3727 * symfile.c:
3728 * symtab.c:
3729 * tic6x-tdep.c:
3730 * tracepoint.c:
3731 * v850-tdep.c:
3732 * valarith.c:
3733 * valprint.c:
3734 * value.c:
3735 * xcoffread.c:
3736 * xtensa-tdep.c:
3737 * ada-lang.c:
3738 * ada-tasks.c:
3739 * ada-varobj.c:
3740 * amd64-darwin-tdep.c:
3741 * arm-symbian-tdep.c:
3742 * arm-tdep.c: Delete unused variables.
3743
aff139ff
JK
37442012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3745
3746 Rename $ddir to $datadir.
3747 * NEWS (--with-auto-load-dir): Rename $ddir to $datadir.
3748 * auto-load.c (auto_load_safe_path_vec_update)
3749 (auto_load_gdb_datadir_changed, auto_load_objfile_script): Likewise.
3750 * configure: Regenerate.
3751 * configure.ac (--with-auto-load-dir, --with-auto-load-safe-path):
3752 Likewise. Remove the 'use $ddir' help string.
3753
f7bfa992
JK
37542012-05-18 Jan Kratochvil <jan.kratochvil@redhat.com>
3755
3756 * auto-load.c (show_auto_load_safe_path): Accept any combination of
3757 DIRNAME_SEPARATOR and IS_DIR_SEPARATOR for wild-match.
3758
9cb709b6
TT
37592012-05-18 Tom Tromey <tromey@redhat.com>
3760
3761 PR exp/13907:
3762 * valprint.h (struct value_print_options) <symbol_print>: New
3763 field.
3764 * valprint.c (user_print_options): Add default for symbol_print.
3765 (show_symbol_print): New function.
3766 (generic_val_print): Respect symbol_print.
3767 (_initialize_valprint): Add "print symbol" setting.
3768 * f-valprint.c (f_val_print): Respect symbol_print.
3769 * c-valprint.c (c_val_print): Respect symbol_print.
3770 * NEWS: Update.
3771 * printcmd.c (print_address_symbolic): Return int. Ignore some
3772 zero-size symbols.
3773 (print_address_demangle): Return int.
3774 * defs.h: (print_address_symbolic): Return int.
3775 * value.h (print_address_demangle): Return int.
3776
b012acdd
TT
37772012-05-18 Tom Tromey <tromey@redhat.com>
3778
3779 * valprint.c (val_print_string): Don't print leading space.
3780 * p-valprint.c (pascal_val_print) <TYPE_CODE_PTR>: Optionally
3781 print space before string or vtbl.
3782 * m2-valprint.c (print_unpacked_pointer): Optionally print space
3783 before string.
3784 * jv-valprint.c (java_value_print): Print space before string.
3785 * go-valprint.c (print_go_string): Print space before string.
3786 * f-valprint.c (f_val_print) <TYPE_CODE_PTR>: Optionally print
3787 space before string.
3788 * c-valprint.c (c_val_print) <TYPE_CODE_PTR>: Optionally print
3789 space before string or vtbl.
3790 * auxv.c (fprint_target_auxv): Print space after address.
3791
1d51a733
TT
37922012-05-18 Tom Tromey <tromey@redhat.com>
3793
3794 * printcmd.c (print_address_demangle): Remove special case for 0.
3795
edf0c1b7
TT
37962012-05-18 Tom Tromey <tromey@redhat.com>
3797
3798 * printcmd.c (print_address_demangle): Add 'opts' argument.
3799 * p-valprint.c (pascal_val_print): Update.
3800 * jv-valprint.c (java_val_print): Update.
3801 * value.h: Update.
3802 * valprint.c (generic_val_print): Update.
3803 (print_function_pointer_address): Add 'options' argument. Remove
3804 'addressprint' argument. Update.
3805 * m2-valprint.c (print_unpacked_pointer): Update.
3806 * gnu-v3-abi.c (print_one_vtable): Update.
3807 (gnuv3_print_method_ptr): Update.
3808 * f-valprint.c (f_val_print): Update.
3809 * cp-valprint.c (cp_print_value_fields): Update.
3810 * valprint.h (print_function_pointer_address): Update.
3811 * c-valprint.c (c_val_print): Update.
3812
9703b513
TT
38132012-05-18 Tom Tromey <tromey@redhat.com>
3814
3815 * psymtab.c (find_pc_sect_symtab_from_partial): Return the symtab
3816 directly corresponding to the found psymtab.
3817 * dwarf2read.c (recursively_find_pc_sect_symtab): New function.
3818 (dw2_find_pc_sect_symtab): Use it.
3819 * block.h (blockvector_contains_pc): Declare.
3820 * block.c (find_block_in_blockvector): New function.
3821 (blockvector_for_pc_sect): Use it.
3822 (blockvector_contains_pc): New function.
3823
5a439849
MR
38242012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3825
3826 * mips-tdep.h (mips_write_pc): New prototype.
3827 * mips-tdep.c (mips_write_pc): Make external, add description.
3828 * mips-linux-tdep.c (mips_linux_write_pc): Use mips_write_pc,
3829 add description.
3830
8376de04
MR
38312012-05-18 Maciej W. Rozycki <macro@codesourcery.com>
3832
3833 * mips-tdep.c (mips_read_pc): Use gdbarch_pc_regnum instead of
3834 mips_regnum->pc.
3835 (mips_unwind_pc, mips_write_pc): Likewise.
3836 (mips_gdbarch_init): Remove a comment on gdbarch_pc_regnum and
3837 gdbarch_read_pc.
3838
d3581e61
JB
38392012-05-17 Joel Brobecker <brobecker@adacore.com>
3840
3841 * procfs.c (procfs_find_new_threads, procfs_pid_to_str,
3842 proc_warn, proc_error, proc_get_status, proc_flags,
3843 proc_why, proc_what, proc_nsysarg, proc_sysargs,
3844 proc_set_run_on_last_close, proc_unset_run_on_last_close,
3845 proc_unset_inherit_on_fork, proc_set_async, proc_unset_async,
3846 proc_stop_process, proc_wait_for_stop, proc_run_process,
3847 proc_set_traced_signals, proc_set_traced_faults,
3848 proc_set_traced_sysentry, proc_set_traced_sysexit,
3849 proc_set_held_signals, proc_get_held_signals,
3850 proc_get_traced_signals, proc_get_traced_faults,
3851 proc_get_traced_sysentry, proc_get_traced_sysexit,
3852 proc_clear_current_fault, proc_set_current_signal,
3853 proc_clear_current_signal, proc_get_gregs, proc_get_fpregs,
3854 proc_set_gregs, proc_set_fpregs, proc_kill, proc_parent_pid,
3855 proc_get_nthreads, proc_get_nthreads, proc_get_nthreads,
3856 proc_get_current_thread, proc_get_current_thread,
3857 proc_get_current_thread, proc_update_threads,
3858 proc_update_threads, proc_update_threads, proc_update_threads,
3859 proc_iterate_over_threads, procfs_find_new_threads,
3860 procfs_pid_to_str): Make static. Remove advance declaration.
3861 (proc_cursig): Make static. Conditionalized defintion on
3862 PROCFS_DONT_PIOCSSIG_CURSIG being defined.
3863 (proc_syscall, proc_set_kill_on_last_close,
3864 proc_unset_kill_on_last_close, proc_set_inherit_on_fork,
3865 proc_get_pending_signals, proc_get_signal_actions,
3866 proc_trace_signal, proc_ignore_signal): Delete.
3867
81b9b86e
SDJ
38682012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
3869
3870 * coffread.c (cs_section_address): Passing proper argument for
3871 `bfd_get_section_vma'.
3872 * dwarf2read.c (dwarf2_locate_sections): Likewise, for
3873 `bfd_get_section_flags'.
3874 * remote.c (remote_trace_set_readonly_regions): Likewise, for
3875 `bfd_get_section_vma'.
3876
abc9d0dc
TT
38772012-05-16 Tom Tromey <tromey@redhat.com>
3878
3879 PR macros/13205:
3880 * macrotab.h: (macro_define_special): Declare.
3881 (enum macro_special_kind): New.
3882 (struct macro_definition) <argc, replacement>: Update comments.
3883 * macrotab.c (new_macro_definition): Unconditionally set 'argc'.
3884 (macro_define_object_internal): New function.
3885 (macro_define_object): Use it.
3886 (macro_define_special): New function.
3887 (fixup_definition): New function.
3888 (macro_lookup_definition, foreach_macro_in_scope)
3889 (foreach_macro): Use fixup_definition.
3890 * macroexp.h (macro_stringify): Declare.
3891 * macroexp.c (free_buffer_return_text): New function.
3892 (stringify): Constify "arg".
3893 (macro_stringify): New function.
3894 * dwarf2read.c (macro_start_file): Call macro_define_special.
3895
6a3a010b 38962012-05-16 Maciej W. Rozycki <macro@codesourcery.com>
f782ad9b 3897 Maciej W. Rozycki <macro@mips.com>
6a3a010b
MR
3898
3899 * breakpoint.h (bp_location): Add related_address member.
3900 * inferior.h (get_return_value): Take a pointer to struct value
3901 instead of struct type for the function requested.
3902 * value.h (using_struct_return): Likewise.
3903 * gdbarch.sh (return_value): Take a pointer to struct value
3904 instead of struct type for the function requested.
3905 * breakpoint.c (set_breakpoint_location_function): Initialize
3906 related_address for bp_gnu_ifunc_resolver breakpoints.
3907 * elfread.c (elf_gnu_ifunc_resolver_return_stop): Pass the
3908 requested function's address to gdbarch_return_value.
3909 * eval.c (evaluate_subexp_standard): Pass the requested
3910 function's address to using_struct_return.
3911 * infcall.c (call_function_by_hand): Pass the requested
3912 function's address to using_struct_return and
3913 gdbarch_return_value.
3914 * infcmd.c (get_return_value): Take a pointer to struct value
3915 instead of struct type for the function requested.
3916 (print_return_value): Update accordingly.
3917 (finish_command_continuation): Likewise.
3918 * stack.c (return_command): Pass the requested function's
3919 address to using_struct_return and gdbarch_return_value.
3920 * value.c (using_struct_return): Take a pointer to struct value
3921 instead of struct type for the function requested. Pass the
3922 requested function's address to gdbarch_return_value.
3923 * python/py-finishbreakpoint.c (finish_breakpoint_object):
3924 New function_value member, replacing function_type.
3925 (bpfinishpy_dealloc): Update accordingly.
3926 (bpfinishpy_pre_stop_hook): Likewise.
3927 (bpfinishpy_init): Likewise. Record the requested function's
3928 address.
3929 * mips-tdep.c (mips_fval_reg): New enum.
3930 (mips_o32_push_dummy_call): For MIPS16 FP doubles do not swap
3931 words put in GP registers.
3932 (mips_o64_push_dummy_call): Update a comment.
3933 (mips_o32_return_value): Take a pointer to struct value instead
3934 of struct type for the function requested and use it to check if
3935 using the MIPS16 calling convention. Return the designated
3936 general purpose registers for floating-point values returned in
3937 MIPS16 mode.
3938 (mips_o64_return_value): Likewise.
3939 * ppc-tdep.h (ppc_sysv_abi_return_value): Update prototype.
3940 (ppc_sysv_abi_broken_return_value): Likewise.
3941 (ppc64_sysv_abi_return_value): Likewise.
3942 * alpha-tdep.c (alpha_return_value): Take a pointer to struct
3943 value instead of struct type for the function requested.
3944 * amd64-tdep.c (amd64_return_value): Likewise.
3945 * amd64-windows-tdep.c (amd64_windows_return_value): Likewise.
3946 * arm-tdep.c (arm_return_value): Likewise.
3947 * avr-tdep.c (avr_return_value): Likewise.
3948 * bfin-tdep.c (bfin_return_value): Likewise.
3949 * cris-tdep.c (cris_return_value): Likewise.
3950 * frv-tdep.c (frv_return_value): Likewise.
3951 * h8300-tdep.c (h8300_return_value): Likewise.
3952 (h8300h_return_value): Likewise.
3953 * hppa-tdep.c (hppa32_return_value): Likewise.
3954 (hppa64_return_value): Likewise.
3955 * i386-tdep.c (i386_return_value): Likewise.
3956 * ia64-tdep.c (ia64_return_value): Likewise.
3957 * iq2000-tdep.c (iq2000_return_value): Likewise.
3958 * lm32-tdep.c (lm32_return_value): Likewise.
3959 * m32c-tdep.c (m32c_return_value): Likewise.
3960 * m32r-tdep.c (m32r_return_value): Likewise.
3961 * m68hc11-tdep.c (m68hc11_return_value): Likewise.
3962 * m68k-tdep.c (m68k_return_value): Likewise.
3963 (m68k_svr4_return_value): Likewise.
3964 * m88k-tdep.c (m88k_return_value): Likewise.
3965 * mep-tdep.c (mep_return_value): Likewise.
3966 * microblaze-tdep.c (microblaze_return_value): Likewise.
3967 * mn10300-tdep.c (mn10300_return_value): Likewise.
3968 * moxie-tdep.c (moxie_return_value): Likewise.
3969 * mt-tdep.c (mt_return_value): Likewise.
3970 * ppc-linux-tdep.c (ppc_linux_return_value): Likewise.
3971 * ppc-sysv-tdep.c (ppc_sysv_abi_return_value): Likewise.
3972 (ppc_sysv_abi_broken_return_value): Likewise.
3973 (ppc64_sysv_abi_return_value): Likewise.
3974 * ppcnbsd-tdep.c (ppcnbsd_return_value): Likewise.
3975 * rl78-tdep.c (rl78_return_value): Likewise.
3976 * rs6000-aix-tdep.c (rs6000_return_value): Likewise.
3977 * rx-tdep.c (rx_return_value): Likewise.
3978 * s390-tdep.c (s390_return_value): Likewise.
3979 * score-tdep.c (score_return_value): Likewise.
3980 * sh-tdep.c (sh_return_value_nofpu): Likewise.
3981 (sh_return_value_fpu): Likewise.
3982 * sh64-tdep.c (sh64_return_value): Likewise.
3983 * sparc-tdep.c (sparc32_return_value): Likewise.
3984 * sparc64-tdep.c (sparc64_return_value): Likewise.
3985 * spu-tdep.c (spu_return_value): Likewise.
3986 * tic6x-tdep.c (tic6x_return_value): Likewise.
3987 * v850-tdep.c (v850_return_value): Likewise.
3988 * vax-tdep.c (vax_return_value): Likewise.
3989 * xstormy16-tdep.c (xstormy16_return_value): Likewise.
3990 * xtensa-tdep.c (xtensa_return_value): Likewise.
3991 * gdbarch.c: Regenerate.
3992 * gdbarch.h: Regenerate.
3993
29ca12b3
TT
39942012-05-15 Tom Tromey <tromey@redhat.com>
3995
3996 * python/python.c (gdbpy_find_pc_line): Use gdb_py_ulongest.
3997
588ae58c
JB
39982012-05-15 Joel Brobecker <brobecker@adacore.com>
3999
4000 * breakpoint.c (init_breakpoint_sal): Add quotes around part
4001 of command in two error message.
4002
855a6e68
JB
40032012-05-15 Joel Brobecker <brobecker@adacore.com>
4004
4005 * breakpoint.c (init_breakpoint_sal): Remove trailing spaces.
4006
d634f2de
JB
40072012-05-15 Joel Brobecker <brobecker@adacore.com>
4008
4009 * breakpoint.c (find_condition_and_thread): Minor reformatting.
4010
9cc815f5
JK
40112012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4012
4013 * NEWS (show auto-load scripts-directory): Add forgotten command.
4014
6a609e58
JK
40152012-05-15 Jan Kratochvil <jan.kratochvil@redhat.com>
4016
4017 * spu-tdep.c (spu_catch_start): Update create_breakpoint caller
4018 parameters.
4019
ac1438b5
L
40202012-05-14 H.J. Lu <hongjiu.lu@intel.com>
4021
4022 * amd64-tdep.c: Include features/i386/x32.c and
4023 features/i386/x32-avx.c.
4024 (_initialize_amd64_tdep): Call initialize_tdesc_x32 and
4025 initialize_tdesc_x32_avx.
4026
e7e0cddf
SS
40272012-05-14 Stan Shebs <stan@codesourcery.com>
4028
4029 Add dynamic printf.
4030 * breakpoint.h (enum bptype): New type bp_dprintf.
4031 (struct breakpoint): New field extra_string.
4032 (struct breakpoint_ops): Add arg to create_breakpoints_sal.
4033 (create_breakpoint): Add extra_string arg.
4034 * breakpoint.c (dprintf_breakpoint_ops): New.
4035 (is_breakpoint): Add bp_dprintf.
4036 (bpstat_what): Add dprintf case.
4037 (bptype_string): Ditto.
4038 (print_one_breakpoint_location): Ditto.
4039 (init_bp_location): Ditto.
4040 (bkpt_print_mention): Ditto.
4041 (dprintf_style_enums): New array.
4042 (dprintf_style): New global.
4043 (dprintf_function): New global.
4044 (dprintf_channel): New global.
4045 (update_dprintf_command_list): New function.
4046 (update_dprintf_commands): New function.
4047 (init_breakpoint_sal): Add extra_string argument, handle it.
4048 (create_breakpoint_sal): Add extra_string argument.
4049 (create_breakpoints_sal): Add extra_string argument, update callers.
4050 (find_condition_and_thread): Add extra argument.
4051 (create_breakpoint): Add extra_string argument, record it.
4052 (dprintf_command): New function.
4053 (break_command_1): Add arg to create_breakpoint call.
4054 (handle_gnu_v3_exceptions): Ditto.
4055 (trace_command): Ditto.
4056 (ftrace_command): Ditto.
4057 (strace_command): Ditto.
4058 (bkpt_print_mention): Add dprintf case.
4059 (create_breakpoint_sal_default): Add extra_string argument.
4060 (_initialize_breakpoint): Add new commands.
4061 * mi/mi-cmd-break.c (mi_cmd_break_insert): Add arg to call.
4062 * python/py-breakpoint.c (bppy_init): Ditto.
4063 * python/py-finishbreakpoint.c (bpfinishpy_init): Ditto.
4064
8ae38c14
MR
40652012-05-14 Maciej W. Rozycki <macro@codesourcery.com>
4066
4067 * mips-tdep.c (mips_push_dummy_code): Correct description typo.
4068
9f676e66
SCR
40692012-05-14 Siva Chandra Reddy <sivachandra@google.com>
4070
4071 * python/python.c (gdbpy_find_pc_line): Use ULONGEST instead of
4072 unsigned long long.
4073
7efc75aa
SCR
40742012-05-13 Siva Chandra Reddy <sivachandra@google.com>
4075
4076 Add a new function gdb.find_pc_line to the Python API.
4077 * NEWS (Python Scripting): Add entry about the new function.
4078 * python/python.c (gdbpy_find_pc_line): New function which
4079 implements gdb.find_pc_line.
4080 (GdbMethods): Add entry for the new function.
4081
70af3797
PA
40822012-05-12 Pedro Alves <palves@redhat.com>
4083
4084 * amd64-linux-tdep.c (_initialize_amd64_linux_tdep): Call
4085 initialize_tdesc_x32_linux and initialize_tdesc_x32_avx_linux.
4086
06da564e
EZ
40872012-05-12 Eli Zaretskii <eliz@gnu.org>
4088
4089 * inferior.c: Include completer.h
4090 (initialize_inferiors): Set completer of add-inferior to
4091 filename_completer.
4092
0288cee2
L
40932012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4094
4095 * amd64-linux-tdep.c (amd64_linux_core_read_description): Check
4096 gdbarch_ptr_bit for x32 core dump.
4097
f6537a2c
L
40982012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4099
4100 * amd64-linux-tdep.c: Include features/i386/x32-linux.c
4101 and features/i386/x32-avx-linux.c.
4102
85d4a676
SS
41032012-05-11 Stan Shebs <stan@codesourcery.com>
4104 Kwok Cheung Yeung <kcy@codesourcery.com>
4105
4106 * NEWS: Describe new info os commands.
4107 * common/linux-osdata.c (PID_T, TIME_T): Define.
4108 (MAX_PID_T_STRLEN): New.
4109 (linux_common_core_of_thread): Add comment. Change to use PID_T and
4110 MAX_PID_T_STRLEN.
4111 (command_from_pid): Add comment. Change to use PID_T.
4112 (commandline_from_pid): Change to use PID_T.
4113 (user_from_pid): Add comment.
4114 (get_process_owner): Add comment. Change to use PID_T and
4115 MAX_PID_T_STRLEN.
4116 (get_number_of_cpu_cores): Add comment.
4117 (get_cores_used_by_process): Add comment. Change to use PID_T and
4118 MAX_PID_T_STRLEN.
4119 (linux_xfer_osdata_processes): Change to use PID_T and
4120 MAX_PID_T_STRLEN.
4121 (compare_processes): New function.
4122 (linux_xfer_osdata_processgroups): New function.
4123 (linux_xfer_osdata_threads): Change to use PID_T.
4124 (linux_xfer_osdata_fds): New function.
4125 (format_socket_state, print_sockets): New functions.
4126 (union socket_addr): New union.
4127 (linux_xfer_osdata_isockets): New function.
4128 (time_from_time_t, group_from_gid): New functions.
4129 (linux_xfer_osdata_shm): New function.
4130 (linux_xfer_osdata_sem): New function.
4131 (linux_xfer_osdata_msg): New function.
4132 (linux_xfer_osdata_modules): New function.
4133 (osdata_table): Add new entries.
4134 * common/buffer.c (buffer_xml_printf): Add support for long and
4135 long long format specifiers.
4136
f24afd6d
L
41372012-05-11 H.J. Lu <hongjiu.lu@intel.com>
4138
4139 * amd64-linux-tdep.h (tdesc_x32_linux): New.
4140 (tdesc_x32_avx_linux): Likewise.
4141
7349ff92
JK
41422012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4143
4144 Implement multi-component --with-auto-load-dir.
4145 * NEWS (set auto-load scripts-directory, --with-auto-load-dir): New
4146 entries.
4147 (--with-auto-load-safe-path): Update the default value description.
4148 * auto-load.c (auto_load_dir, set_auto_load_dir, show_auto_load_dir):
4149 New.
4150 (auto_load_objfile_script): Add DEBUG_AUTO_LOAD output. Remove
4151 GDB_DATADIR NULL check. Replace GDB_DATADIR/auto-load by
4152 AUTO_LOAD_DIR. Support $ddir and multiple components in it.
4153 (_initialize_auto_load): Initialize also auto_load_dir. Install new
4154 "set auto-load scripts-directory".
4155 * config.in: Regenerate.
4156 * configure: Regenerate.
4157 * configure.ac (--with-auto-load-dir): New configure option.
4158 (--auto-load-safe-path): Change the default to --with-auto-load-dir.
4159
6dea1fbd
JK
41602012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4161
4162 Provide $ddir substitution for --with-auto-load-safe-path.
4163 * NEWS (--with-auto-load-safe-path, --without-auto-load-safe-path): New
4164 entries.
4165 * auto-load.c: Include observer.h.
4166 (auto_load_safe_path_vec_update): Call substitute_path_component for
4167 each component. New variable ddir_subst.
4168 (auto_load_gdb_datadir_changed): New function.
4169 (set_auto_load_safe_path): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4170 AUTO_LOAD_SAFE_PATH. New comment.
4171 (_initialize_auto_load): Rename DEFAULT_AUTO_LOAD_SAFE_PATH to
4172 AUTO_LOAD_SAFE_PATH. Install auto_load_gdb_datadir_changed.
4173 * config.in: Regenerate.
4174 * configure: Regenerate.
4175 * configure.ac (--auto-load-safe-path): Rename
4176 DEFAULT_AUTO_LOAD_SAFE_PATH to AUTO_LOAD_SAFE_PATH. Default to
4177 GDB_DATADIR/auto-load.
4178 * defs.h (substitute_path_component): New declaration.
4179 * top.c: Include observer.h.
4180 (set_gdb_datadir): New function.
4181 (init_main): Install it for "set data-directory".
4182 * utils.c (substitute_path_component): New function.
4183
b09aca3a
JK
41842012-05-11 Jan Kratochvil <jan.kratochvil@redhat.com>
4185
4186 Make auto-load handle multiple components of DEBUG_FILE_DIRECTORY.
4187 * auto-load.c (auto_load_objfile_script): Remove check for NULL
4188 DEBUG_FILE_DIRECTORY. Handle multiple components of
4189 DEBUG_FILE_DIRECTORY.
4190
95554aad
TT
41912012-05-10 Tom Tromey <tromey@redhat.com>
4192
4193 * dwarf2read.c (recursively_write_psymbols): New function.
4194 (write_psymtabs_to_index): Use it.
4195
4196 * dwarf2read.c (struct dwarf2_queue_item) <pretend_language>: New
4197 field.
4198 (load_cu, dw2_do_instantiate_symtab, process_psymtab_comp_unit)
4199 (load_partial_comp_unit): Update.
4200 (queue_comp_unit): Add argument 'pretend_language'.
4201 (process_queue): Update.
4202 (psymtab_to_symtab_1): Skip dependencies that have a user.
4203 (load_partial_comp_unit_reader): Give meaning to the 'data'
4204 argument.
4205 (load_full_comp_unit): Add 'pretend_language' argument.
4206 (process_full_comp_unit): Add 'pretend_language' argument. Set
4207 language on CU.
4208 (process_imported_unit_die, read_file_scope, read_type_unit_scope):
4209 Update.
4210 (maybe_queue_comp_unit): Add 'pretend_language' argument.
4211 (follow_die_offset, follow_die_sig, read_signatured_type_reader):
4212 Update.
4213 (prepare_one_comp_unit): Add 'pretend_language' argument.
4214
4215 * dwarf2read.c: (dwarf2_per_cu_ptr): New typedef.
4216 (struct dwarf2_per_objfile) <just_read_cus>: New field.
4217 (struct dwarf2_per_cu_data) <imported_symtabs>: New field.
4218 (dw2_do_instantiate_symtab): Check whether symtab was read in
4219 before queueing.
4220 (dw2_instantiate_symtab): Add assertion. Call
4221 process_cu_includes.
4222 (process_psymtab_comp_unit): Compute 'dependencies' for psymtab.
4223 (partial_symtab_p): New typedef.
4224 (set_partial_user): New function.
4225 (dwarf2_build_psymtabs_hard): Use set_partial_user.
4226 (scan_partial_symbols): Add imported CU to imported_symtabs.
4227 (dwarf2_psymtab_to_symtab): Call process_cu_includes.
4228 (psymtab_to_symtab_1): Do nothing if psymtab is readin.
4229 (get_symtab, recursively_compute_inclusions)
4230 (compute_symtab_includes, process_cu_includes)
4231 (process_imported_unit_die): New functions.
4232 (process_die) <DW_TAG_imported_unit>: New case.
4233 (dwarf2_per_objfile_free): Free 'imported_symtabs'.
4234
4235 * dwarf2read.c (struct dwarf2_per_cu_data) <psymtab>: Update
4236 comment.
4237 (struct partial_die_info) <locdesc>: Remove.
4238 <d>: New field.
4239 (process_psymtab_comp_unit): Add 'read_partial' argument.
4240 Update.
4241 (process_type_comp_unit, dwarf2_build_psymtabs_hard): Update.
4242 (scan_partial_symbols): Handle DW_TAG_imported_unit.
4243 (add_partial_symbol): Update.
4244 (process_die): Handle DW_TAG_partial_unit.
4245 (read_file_scope): Update comment.
4246 (load_partial_dies): Handle DW_TAG_imported_unit.
4247 (read_partial_die): Handle DW_TAG_partial_unit, DW_AT_import.
4248 (determine_prefix, dwarf2_name): Handle DW_TAG_partial_unit.
4249
e871fbb9
TT
42502012-05-10 Tom Tromey <tromey@redhat.com>
4251
4252 * cc-with-dwz.sh: New file.
4253
b5b04b5b
TT
42542012-05-10 Tom Tromey <tromey@redhat.com>
4255
4256 * symtab.h (struct symtab) <includes, user>: New fields.
4257 * block.h (struct block_iterator) <d, idx, which>: New fields.
4258 * block.c (initialize_block_iterator, find_iterator_symtab)
4259 (block_iterator_step, block_iter_name_step)
4260 (block_iter_match_step): New functions.
4261 (block_iterator_first, block_iterator_next)
4262 (block_iter_name_first, block_iter_name_next)
4263 (block_iter_match_first, block_iter_match_next): Rewrite.
4264 (get_block_symtab): New function.
4265
84a146c9
TT
42662012-05-10 Tom Tromey <tromey@redhat.com>
4267
4268 * jv-lang.c (get_java_class_symtab): Use allocate_global_block,
4269 set_block_symtab.
4270 * jit.c (finalize_symtab): Use allocate_global_block,
4271 set_block_symtab.
4272 * buildsym.c (finish_block_internal): New function, from old
4273 finish_block.
4274 (finish_block): Rewrite.
4275 (end_symtab): Use finish_block_internal, set_block_symtab.
4276 * block.h (struct global_block): New.
4277 (allocate_global_block, set_block_symtab): Declare.
4278 * block.c (allocate_global_block, set_block_symtab): New
4279 functions.
4280
9439a077
TT
42812012-05-10 Tom Tromey <tromey@redhat.com>
4282
4283 * psymtab.c (partial_map_expand_apply): Add assertion.
4284 (partial_map_symtabs_matching_filename): Skip included psymtabs.
4285 (psymtab_to_symtab): Find unshared psymtab.
4286 (dump_psymtab): Print including psymtabs.
4287 (recursively_search_psymtabs): New function.
4288 (expand_symtabs_matching_via_partial): Use it.
4289 * psympriv.h (struct partial_symtab) <user, searched_flag>: New
4290 fields.
4291 (enum psymtab_search_status): New.
4292
8157b174
TT
42932012-05-10 Tom Tromey <tromey@redhat.com>
4294
4295 * tracepoint.c (scope_info): Update.
4296 * symtab.c (lookup_block_symbol, iterate_over_symbols)
4297 (find_pc_sect_symtab, search_symbols)
4298 (default_make_symbol_completion_list_break_on)
4299 (make_file_symbol_completion_list): Update.
4300 * symmisc.c (dump_symtab_1): Update.
4301 * stack.c (print_frame_args, iterate_over_block_locals)
4302 (print_frame_labels, iterate_over_block_arg_vars): Update.
4303 * python/py-block.c (block_object) <dict>: Remove.
4304 <block>: New field.
4305 <iter>: Change type.
4306 (blpy_iter): Update.
4307 (blpy_block_syms_iternext): Update.
4308 * psymtab.c (map_block): Use block iterators.
4309 * objfiles.c (objfile_relocate1): Use ALL_DICT_SYMBOLS.
4310 * mi/mi-cmd-stack.c (list_args_or_locals): Update.
4311 * mdebugread.c (parse_symbol, mylookup_symbol): Update.
4312 * infrun.c (check_exception_resume): Update.
4313 * cp-support.c (make_symbol_overload_list_block): Update.
4314 * coffread.c (patch_opaque_types): Update.
4315 * buildsym.c (finish_block, end_symtab): Use ALL_DICT_SYMBOLS.
4316 * block.h (struct block_iterator): New.
4317 (block_iterator_first, block_iterator_next, block_iter_name_first)
4318 (block_iter_name_next, block_iter_match_first)
4319 (block_iter_match_next): Declare.
4320 (ALL_BLOCK_SYMBOLS): Redefine.
4321 * block.c (block_iterator_first, block_iterator_next)
4322 (block_iter_name_first, block_iter_name_next)
4323 (block_iter_match_first, block_iter_match_next): New functions.
4324 * ada-lang.c (ada_add_block_symbols)
4325 (ada_make_symbol_completion_list): Use block iterator.
4326
a2ca7a52
TT
43272012-05-10 Tom Tromey <tromey@redhat.com>
4328
4329 * psymtab.c (PSYMTAB_TO_SYMTAB): Remove.
4330 (find_pc_sect_symtab_from_partial, lookup_symbol_aux_psymtabs)
4331 (lookup_partial_symbol, find_last_source_symtab_from_partial)
4332 (read_psymtabs_with_filename, map_matching_symbols_psymtab)
4333 (expand_symtabs_matching_via_partial, maintenance_check_symtabs):
4334 Update.
4335
64ea88dc
JB
43362012-05-10 Joel Brobecker <brobecker@adacore.com>
4337
4338 * config/djgpp/fnchange.lst: Add entries for print-file-var-lib1.c,
4339 print-file-var-lib2.c, print-file-var-main.c and
4340 print-file-var.exp (located in gdb/testsuite/gdb.base).
4341
99a547d6
JB
43422012-05-10 Joel Brobecker <brobecker@adacore.com>
4343
4344 * findvar.c (default_read_var_value): For LOC_UNRESOLVED symbols,
4345 try locating the symbol in the symbol's own objfile first, before
4346 extending the search to all objfiles.
4347 * symtab.c (lookup_symbol_aux_objfile): New function, extracted
4348 out of lookup_symbol_aux_symtabs.
4349 (lookup_symbol_aux_symtabs): Add new parameter "exclude_objfile".
4350 Replace extracted-out code by call to lookup_symbol_aux_objfile.
4351 Do not search EXCLUDE_OBJFILE.
4352 (lookup_static_symbol_aux): Update call to lookup_symbol_aux_symtabs.
4353 (lookup_symbol_global): Search for matches in the block's objfile
4354 first, before searching all other objfiles.
4355
0ece64fd
TG
43562012-05-10 Tristan Gingold <gingold@adacore.com>
4357
4358 * printcmd.c (set_command): Add pre/post inc/dec.
4359
3d16a105
FCE
43602012-05-09 Frank Ch. Eigler <fche@redhat.com>
4361
4362 * gdb.1: Document -ex option.
4363
2efbc0f7
JB
43642012-05-09 Joel Brobecker <brobecker@adacore.com>
4365
4366 * infcall.c (call_function_by_hand): Remove AT_SYMBOL handling.
4367 * inferior.h (AT_SYMBOL): Delete.
4368
2c76a0c7
JB
43692012-05-09 Joel Brobecker <brobecker@adacore.com>
4370
4371 * mips-tdep.c (mips_push_dummy_code): New function.
4372 (mips_gdbarch_init): Set the gdbarch call_dummy_location to
4373 ON_STACK and install mips_push_dummy_code as our gdbarch
4374 push_dummy_code routine.
4375
9401a810
PA
43762012-05-09 Pedro Alves <palves@redhat.com>
4377
4378 * target.c (set_maintenance_target_async_permitted): Rename to ...
4379 (set_target_async_command): ... this.
4380 (show_maintenance_target_async_permitted): Rename to ...
4381 (show_target_async_command): ... this.
4382 (initialize_targets): Adjust.
4383
3929b321
DE
43842012-05-08 Doug Evans <dje@google.com>
4385
4386 * go-exp.y (classify_name): Add missing assignment of fields of
4387 yylval.ssym.
4388
c41535fd
EZ
43892012-05-08 Eli Zaretskii <eliz@gnu.org>
4390
4391 Display the ">" prompt in interactive mode while reading canned
4392 commands, even when the current interpreter is MI.
4393
4394 * interps.c (interp_set_temp): New function.
4395
4396 * interps.h (interp_set_temp): Add prototype.
4397
4398 * cli/cli-script.c (restore_interp): New cleanup function.
4399 (read_command_lines): Temporarily override the current interpreter
4400 with CLI and arrange for restoring the original one.
4401
c0749c4d
JS
44022012-05-12 Joel Sherrill <joel.sherrill@oarcorp.com>
4403
4404 * microblaze-rom.c (_initialize_picobug_rom): Add prototype.
4405
d7333987
SDJ
44062012-05-07 Sergio Durigan Junior <sergiodj@redhat.com>
4407
4408 * probe.c (parse_probes): Move conditional to check for
4409 debuginfo files from here...
4410 * stap-probe.c (stap_get_probes): ... to here.
4411
649e6d92
MK
44122012-05-07 Mark Kettenis <kettenis@gnu.org>
4413 H.J. Lu <hongjiu.lu@intel.com>
4414
4415 * amd64-tdep.c (amd64_analyze_prologue): Additionally check for
4416 `movl %esp, %ebp' for the X32 ABI.
4417
f39c6ffd
TT
44182012-05-07 Tom Tromey <tromey@redhat.com>
4419
4420 * dwarf2read.c (dwarf_tag_name): Return const char *. Use
4421 get_DW_TAG_name.
4422 (dwarf_attr_name): Return const char *. Use get_DW_AT_name.
4423 (dwarf_form_name): Return const char *. Use get_DW_FORM_name.
4424 (dwarf_stack_op_name): Remove.
4425 (dwarf_cfi_name): Return const char *. Use get_DW_ATE_name.
4426 (decode_locdesc): Use get_DW_OP_name.
4427 * dwarf2loc.c (unimplemented): Use get_DW_OP_name.
4428 (dwarf2_compile_expr_to_ax): Likewise.
4429 (disassemble_dwarf_expression): Likewise.
4430 * dwarf2expr.h: (dwarf_stack_op_name): Remove.
4431
1e1f6591
CLT
44322012-05-07 Chung-Lin Tang <cltang@codesourcery.com>
4433
4434 * sh-linux-tdep.c: Include trad-frame.h and tramp-frame.h.
4435 (sh_linux_sigtramp_cache): New function.
4436 (sh_linux_sigreturn_init): New function.
4437 (sh_linux_rt_sigreturn_init): New function.
4438 (SH_MOVW,SH_TRAP,SH_OR_R0_R0): New symbols for instruction
4439 patterns.
4440 (SH_NR_SIGRETURN,SH_NR_RT_SIGRETURN): New symbols for sigreturn
4441 syscall codes.
4442 (sh_linux_sigreturn_tramp_frame): New tramp_frame definition.
4443 (sh_linux_rt_sigreturn_tramp_frame): Likewise.
4444 (sh_linux_init_abi): Add init calls to register new tramp_frame
4445 definitions under 32-bit SH, update comments.
4446
545c08b4
PA
44472012-05-07 Pedro Alves <palves@redhat.com>
4448
daac165e
PA
4449 PR gdb/10952
4450
545c08b4
PA
4451 * amd64-linux-tdep.c: Include glibc-tdep.h.
4452 (amd64_linux_init_abi): Install glibc_skip_solib_resolver as
4453 gdbarch_skip_solib_resolver callback.
4454
af2c1515
JK
44552012-05-06 Jan Kratochvil <jan.kratochvil@redhat.com>
4456
4457 * auto-load.c (set_auto_load_safe_path): Reset AUTO_LOAD_SAFE_PATH
4458 back to DEFAULT_AUTO_LOAD_SAFE_PATH if it is being set to "".
4459 (show_auto_load_safe_path): Check any-directory by comparison with "/".
4460 (add_auto_load_safe_path): Change the error message.
4461 (_initialize_auto_load): Change the "safe-path" help text.
4462 * configure: Regenerate
4463 * configure.ac (--without-auto-load-safe-path): Set
4464 WITH_AUTO_LOAD_SAFE_PATH to /.
4465
1067f998
SDJ
44662012-05-05 Sergio Durigan Junior <sergiodj@redhat.com>
4467
4468 * stap-probe.h: Do not include unecessary `probe.h'.
4469
45dfa85a
AM
44702012-05-05 Alan Modra <amodra@gmail.com>
4471
4472 * elfread.c (elf_symtab_read): Use bfd_abs_section_ptr and
4473 bfd_und_section_ptr.
4474 * machoread.c (macho_symtab_add_minsym): Use bfd_abs_section_ptr
4475 and bfd_com_section_ptr.
4476
cf093994
JB
44772012-05-04 Joel Brobecker <brobecker@adacore.com>
4478
762ebb75 4479 * MAINTAINERS (Past Maintainers): Add Chris Faylor.
cf093994 4480
d40dc7a8
JB
44812012-05-04 Joel Brobecker <brobecker@adacore.com>
4482
4483 * windows-nat.h (segment_register_p_ftype): New typedef.
4484 (windows_set_segment_register_p): Add declaration.
4485 * windows-nat.c (segment_register_p): New static global.
4486 (windows_set_segment_register_p): New function.
4487 (do_windows_fetch_inferior_registers): Add special handling
4488 for segment registers.
4489 * amd64-windows-nat.c: #include "amd64-tdep.h".
4490 (amd64_windows_segment_register_p): New function.
4491 (_initialize_amd64_windows_nat): Call windows_set_segment_register_p.
4492 * i386-windows-nat.c: #include "i386-tdep.h".
4493 (i386_windows_segment_register_p): New function.
4494 (_initialize_i386_windows_nat): Call windows_set_segment_register_p.
4495
52b3699b
TG
44962012-05-04 Tristan Gingold <gingold@adacore.com>
4497
4498 * printcmd.c (set_command): Emit a warning if the expression is not
4499 an assignment.
4500
94c74239
JB
45012012-05-03 Joel Brobecker <brobecker@adacore.com>
4502
4503 * nto-procfs.c (procfs_find_new_threads, procfs_pid_to_str):
4504 Make static.
4505
fcf57f19
SDJ
45062012-05-03 Sergio Durigan Junior <sergiodj@redhat.com>
4507
4508 * stap-probe.c (stap_is_operator): Change declaration.
4509 (stap_get_opcode): Change return value.
4510 (stap_parse_argument_1): Update calls to `stap_get_opcode' and
4511 `stap_parse_argument_1'.
4512
27d2932e
PA
45132012-05-03 Pedro Alves <pedro@codesourcery.com>
4514
4515 * infrun.c (displaced_step_fixup): Add "displaced:" prefix to
4516 debug log.
4517
a20ee7a4
SCR
45182012-05-03 Siva Chandra Reddy <sivachandra@google.com>
4519
4520 Add two new methods global_block and static_block to gdb.Symtab
4521 objects.
4522 * NEWS (Python scripting): Add entry about the new methods.
4523 * python/py-symtab.c (stpy_global_block): New function which
4524 implements the gdb.Symtab.global_block() method.
4525 (stpy_static_block): New function which implements the
4526 gdb.Symtab.static_block() method.
4527 (symtab_object_methods): Add entries for the two new methods.
4528
943cb756
DE
45292012-05-03 Doug Evans <dje@google.com>
4530
4531 * dwarf2read.c (dw2_find_symbol_file): Don't crash if there are no
4532 files.
4533
f4644a3f
YQ
45342012-05-03 Yao Qi <yao@codesourcery.com>
4535
4536 * i386-tdep.c (i386_fetch_pointer_argument): Remove extra
4537 space.
4538 (i386_process_record): Ditto.
4539
ef61f180
JB
45402012-05-02 Joel Brobecker <brobecker@adacore.com>
4541
4542 * infcall.c (unwind_on_signal_p): Make static.
4543
02f1df11
JB
45442012-05-02 Joel Brobecker <brobecker@adacore.com>
4545
4546 * sol-thread.c (solaris_pid_to_str): Make static.
4547 (_initialize_sol_thread): Add prototype.
4548
39023530
JB
45492012-05-02 Joel Brobecker <brobecker@adacore.com>
4550
4551 * sol-thread.c (procfs_pid_to_str): Delete extern declaration.
4552
c6b0c501
CF
45532012-05-02 Christopher Faylor <me.cygwin2012@cgf.cx>
4554
4555 * MAINTAINERS: Remove myself.
4556
1ef71717
JK
45572012-05-02 Jan Kratochvil <jan.kratochvil@redhat.com>
4558
4559 Fix --without-auto-load-safe-path for MS-Windows host platform.
4560 * auto-load.c (filename_is_in_dir): Return 1 for DIR_LEN 0.
4561
b31b86a7
EZ
45622012-05-02 Eli Zaretskii <eliz@gnu.org>
4563
4564 * gdb_curses.h: Undefine KEY_EVENT before including curses
4565 headers. Move "#undef MOUSE_MOVED" before any curses header
4566 inclusion.
4567
777532fc
SDJ
45682012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4569
4570 * features/i386/i386-mmx-linux.c: Regenerate.
4571 * features/rs6000/powerpc-32.c: Likewise.
4572 * features/rs6000/powerpc-32l.c: Likewise.
4573 * features/rs6000/powerpc-403.c: Likewise.
4574 * features/rs6000/powerpc-403gc.c: Likewise.
4575 * features/rs6000/powerpc-405.c: Likewise.
4576 * features/rs6000/powerpc-505.c: Likewise.
4577 * features/rs6000/powerpc-601.c: Likewise.
4578 * features/rs6000/powerpc-602.c: Likewise.
4579 * features/rs6000/powerpc-603.c: Likewise.
4580 * features/rs6000/powerpc-604.c: Likewise.
4581 * features/rs6000/powerpc-64.c: Likewise.
4582 * features/rs6000/powerpc-64l.c: Likewise.
4583 * features/rs6000/powerpc-750.c: Likewise.
4584 * features/rs6000/powerpc-860.c: Likewise.
4585 * features/rs6000/powerpc-e500.c: Likewise.
4586 * features/rs6000/powerpc-e500l.c: Likewise.
4587 * features/rs6000/powerpc-isa205-32l.c: Likewise.
4588 * features/rs6000/powerpc-isa205-64l.c: Likewise.
4589 * features/rs6000/rs6000.c: Likewise.
4590
d71871bc
SDJ
45912012-05-02 Sergio Durigan Junior <sergiodj@gmail.com>
4592
4593 * i386-tdep.c (i386_stap_parse_special_token) <s>: Remove unused
4594 variable.
4595 * stap-probe.c (stap_parse_single_operand) <reg_suffix,
4596 reg_ind_suffix, reg_suffix_len, reg_ind_suffix_len>: Likewise.
4597 (stap_parse_argument) <e>: Likewise.
4598 (handle_stap_probe) <byte_order>: Likewise.
4599
fd820528
DE
46002012-04-30 Doug Evans <dje@google.com>
4601
4602 * dwarf2read.c (init_cutu_and_read_dies): Renamed from
4603 init_and_read_dies_worker. All callers updated.
4604 (init_cu_and_read_dies, init_tu_and_read_dies): Delete. All calls
4605 replaced with init_cutu_and_read_dies.
4606 (load_partial_comp_unit): Pass 1 for use_existing_cu.
4607 (find_partial_die): Remove FIXME. Don't free current CU.
4608
ec3f619d 46092012-04-30 Sterling Augustine <saugustine@google.com>
be36f02d
SA
4610
4611 * contrib: New directory.
4612 * contrib/test_pubnames_and_indexes.py: New file.
4613
fceca515
DE
46142012-04-30 Doug Evans <dje@google.com>
4615
4616 * dwarf2read.c (dwarf_decode_macros): New arg section_name.
4617 All callers updated.
4618 (init_cu_die_reader): Verify the section is non-empty.
4619 (dwarf_decode_line_header): Don't dereference section->asection
4620 until we know the section is present.
4621
311fe7e1
SDJ
46222012-04-29 Sergio Durigan Junior <sergiodj@redhat.com>
4623
4624 * tracepoint.c (start_tracing, stop_tracing): Checking for NULL
4625 probes.
4626
5977971a
YQ
46272012-04-29 Yao Qi <yao@codesourcery.com>
4628
4629 * gdb-code-style.el: New hook gdb-markup-hook
4630 and gdb-comment-hook.
4631
dee91e82
DE
46322012-04-28 Doug Evans <dje@google.com>
4633
3019eac3
DE
4634 Initial support for Fission. http://gcc.gnu.org/wiki/DebugFission
4635 * symfile.c (default_symfile_relocate): Use sectp->owner instead of
4636 objfile->obfd.
4637 * symfile.h (dwarf2_debug_sections): New member addr.
4638 * dwarf2expr.c (execute_stack_op): New case DW_OP_GNU_addr_index.
4639 (ctx_no_get_addr_index): New function.
4640 * dwarf2expr.h (dwarf_expr_context_funcs): New member get_addr_index.
4641 (ctx_no_get_addr_index): Declare.
4642 * dwarf2-frame.c (dwarf2_frame_ctx_funcs): Update.
4643 * dwarf2loc.c (dwarf_expr_get_addr_index): New function.
4644 (dwarf_expr_ctx_funcs): Update.
4645 (needs_get_addr_index): New function.
4646 (needs_frame_ctx_funcs): Update.
4647 * dwarf2loc.h (dwarf2_read_addr_index): Declare.
4648 * dwarf2read.c: #include "gdbcore.h".
4649 (dwarf2_per_objfile): New members addr, dwo_files.
4650 (dwarf2_elf_names): Add entry for addr.
4651 (struct dwo_section_names): New type.
4652 (dwo_section_names): New static global.
4653 (dwarf2_cu): New members dwo_unit, addr_base, have_addr_base.
4654 (dwarf2_per_cu_data): New member is_debug_types, all boolean uses of
4655 old debug_types_section member updated to use this.
4656 Rename member debug_types_section to info_or_types_section,
4657 all uses updated.
4658 (signatured_type): Rename member type_offset to type_offset_in_tu,
4659 all uses updated. New member type_offset_in_section.
4660 (struct dwo_sections): New type.
4661 (struct dwo_unit): New type.
4662 (struct dwo_file): New type.
4663 (die_reader_specs): New member dwo_file.
4664 (dwarf2_locate_sections): Watch for .debug_addr.
4665 (zlib_decompress_section): Use sectp->owner instead of objfile->obfd.
4666 (dwarf2_read_section): Get bfd of section from bfd's asection,
4667 instead of objfile.
4668 (create_cus_from_index): Initialize the_cu->info_or_types_section.
4669 (create_signatured_type_table_from_index): Initialize
4670 sig_type->info_or_types_section.
4671 (dw2_get_file_names): Statement lists for type units with DWO files
4672 live in the DWO file.
4673 (create_debug_types_hash_table): New function.
4674 (create_all_type_units): Rewrite.
4675 (init_cu_die_reader): New arg dwo_file, all callers updated.
4676 (init_and_read_dies_worker): Get section from
4677 this_cu->info_or_types_section. Set sig_type->type_offset_in_section.
4678 Watch for DW_AT_GNU_dwo_name and if present lookup the file and
4679 continue reading the CU/TU from there.
4680 (init_cutu_and_read_dies_no_follow): New arg dwo_file, all callers
4681 updated. Get section from this_cu->info_or_types_section.
4682 (create_all_comp_units): Initialize this_cu->info_or_types_section.
4683 (skip_one_die): New cases DW_FORM_GNU_addr_index,
4684 DW_FORM_GNU_str_index.
4685 (hash_dwo_file, eq_dwo_file): New functions.
4686 (allocate_dwo_file_hash_table): New function.
4687 (hash_dwo_unit, eq_dwo_unit): New functions.
4688 (allocate_dwo_unit_table): New function.
4689 (dwarf2_locate_dwo_sections): New function.
4690 (struct create_dwo_info_table_data): New type.
4691 (create_debug_info_hash_table_reader): New function.
4692 (create_debug_info_hash_table): New function.
4693 (try_open_dwo_file, open_dwo_file, init_dwo_file): New function.
4694 (lookup_dwo_file): New function.
4695 (lookup_dwo_comp_unit, lookup_dwo_type_unit): New functions.
4696 (free_dwo_file, free_dwo_file_cleanup): New functions.
4697 (free_dwo_file_from_slot, free_dwo_files): New functions.
4698 (dwarf2_get_pc_bounds): Handle DW_FORM_GNU_addr_index.
4699 (dwarf2_record_block_ranges): Ditto.
4700 (read_partial_die): Ditto.
4701 (process_enumeration_scope): Update to use type_offset_in_section.
4702 (read_full_die_1): New function.
4703 (read_full_die): Rewrite.
4704 (read_attribute_value): New cases DW_FORM_GNU_addr_index,
4705 DW_FORM_GNU_str_index.
4706 (read_addr_index_1, read_addr_index): New functions.
4707 (read_addr_index_from_leb128): New function.
4708 (struct dwarf2_read_addr_index_data): New type.
4709 (dwarf2_read_addr_index_reader): New function.
4710 (dwarf2_read_addr_index): New function.
4711 (read_str_index): New function.
4712 (leb128_size): New function.
4713 (dwarf_decode_line_header): Delete arg abfd, all callers updated.
4714 If processing a type unit from a DWO file, get the line section
4715 from the DWO file.
4716 (var_decode_location): Watch for DW_OP_GNU_addr_index.
4717 (dwarf2_const_value_attr): New cases DW_FORM_GNU_addr_index,
4718 DW_FORM_GNU_str_index.
4719 (lookup_die_type): Check whether section offset of type's die is
4720 known before looking it up. Remove assert. Condition can
4721 legimately happen for inter-cu type references.
4722 (dwarf_attr_name): Handle Fission attributes.
4723 (dwarf_form_name): Handle Fission forms.
4724 (dump_die_shallow): New cases DW_FORM_GNU_addr_index,
4725 DW_FORM_GNU_str_index.
4726 (follow_die_sig): Update to use type_offset_in_section.
4727 (decode_locdesc): New case DW_OP_GNU_addr_index.
4728 (skip_form_bytes): New cases DW_FORM_GNU_addr_index,
4729 DW_FORM_GNU_str_index.
4730 (cu_debug_loc_section): New function.
4731 (fill_in_loclist_baton, dwarf2_symbol_mark_computed): Call it.
4732 (dwarf2_per_objfile_free): Unmap .debug_addr section.
4733 Free DWO files if present.
4734 * xcoffread.c (dwarf2_xcoff_names): Add .debug_addr.
4735
dee91e82
DE
4736 Refactor DIE reading.
4737 * dwarf2read.c (dwarf2_per_objfile): Replace members
4738 debug_info_type_hash and debug_types_type_hash with die_type_hash.
4739 (die_reader_specs): New member "die_section". Temporarily make
4740 member "buffer" non-const, pending constifying all info_ptr uses.
4741 (die_reader_func_ftype): New typedef.
4742 (dw2_get_file_names_reader): New function.
4743 (dw2_get_file_names): Rewrite.
4744 (read_and_check_type_unit_head): Rename arg type_offset to
4745 type_offset_in_tu.
4746 (create_all_type_units): Improve debugging message.
4747 Improve dummy type unit check.
4748 (init_cu_die_reader): New arg "section". All callers updated.
4749 (init_and_read_dies_worker): New function.
4750 (init_cu_and_read_dies, init_tu_and_read_dies): New functions.
4751 (init_cutu_and_read_dies_no_follow): New function.
4752 (init_cutu_and_read_dies_simple): New function.
4753 (process_psymtab_comp_unit_reader): New function.
4754 (process_psymtab_comp_unit): Delete args section,
4755 is_debug_types_section. Rewrite. All callers updated.
4756 (process_psymtab_type_unit): Renamed from process_type_comp_unit.
4757 All callers updated. Rewrite.
4758 (load_partial_comp_unit_reader): New function.
4759 (load_partial_comp_unit): Rewrite.
4760 (skip_children): New arg reader. Delete args buffer, cu.
4761 All callers updated.
4762 (skip_one_die): New arg reader. Delete args buffer, cu.
4763 All callers updated.
4764 (locate_pdi_sibling): New arg reader. Delete args buffer, abfd, cu.
4765 All callers updated.
4766 (load_full_comp_unit_reader): New function.
4767 (load_full_comp_unit): Rewrite.
4768 (read_comp_unit): Delete.
4769 (read_die_and_children_1): Delete, contents moved ...
4770 (read_die_and_children): ... here.
4771 (dwarf2_read_abbrevs): New arg abbrev_section. All callers updated.
4772 (load_partial_dies): New arg reader. Delete args abfd, buffer, cu.
4773 All callers updated.
4774 (read_partial_die): New arg reader. Delete args abfd, buffer, cu.
4775 All callers updated.
4776 (find_partial_die): Rewrite load_all_dies support.
4777 (read_attribute_value): New arg reader. Delete args abfd, cu.
4778 All callers updated.
4779 (read_attribute): New arg reader. Delete args abfd, cu.
4780 All callers updated.
4781 (load_full_type_unit): Add assert.
4782 (read_signatured_type_reader): New function.
4783 (read_signatured_type): Rewrite.
4784 (free_stack_comp_unit): Remove call to age_cached_comp_units.
4785 (free_one_cached_comp_unit): Change target_cu arg to target_per_cu.
4786 All callers updated. Set per_cu->cu = NULL after freeing it.
4787 (dwarf2_per_cu_offset_and_type): Renamed from dwarf2_offset_and_type.
4788 (per_cu_offset_and_type_hash): Renamed from offset_and_type_hash.
4789 (per_cu_offset_and_type_eq): Renamed from offset_and_type_eq.
4790 (set_die_type): Update.
4791 (get_die_type_at_offset): Update.
4792 (read_file_scope): Call prepare_one_comp_unit.
4793 (read_type_unit_scope): Ditto.
4794 (prepare_one_comp_unit): Set producer if present.
4795
72d59e0d
SDJ
47962012-04-28 Sergio Durigan Junior <sergiodj@redhat.com>
4797
4798 * probe.c (compile_rx_or_error): Silence ARI warning about missing
4799 gettext function on `error'.
4800
0fefef59
DE
48012012-04-27 Doug Evans <dje@google.com>
4802
4803 * dwarf2read.c (dwarf2_read_index): Don't use index if symbol table
4804 is empty.
4805
28106bc2
SDJ
48062012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4807 Tom Tromey <tromey@redhat.com>
4808
4809 * breakpoint.c (struct breakpoint_objfile_data)
4810 <longjmp_searched>,<longjmp_probes>,<exception_searched>,
4811 <exception_probes>: New fields.
4812 (free_breakpoint_probes): New function.
4813 (create_longjmp_master_breakpoint): Prefer SystemTap probe over
4814 `_Unwind_DebugHook'.
4815 (create_exception_master_breakpoint): Likewise.
4816 (_initialize_breakpoint): Registering cleanup for SystemTap probes.
4817 * infrun.c: Including necessary header files for handling SystemTap
4818 probes.
4819 (handle_inferior_event): Handling longjmp breakpoint and exceptions
4820 via SystemTap probes.
4821 (check_exception_resume): Remove `func' argument. Handle exception
4822 unwinding breakpoint set via a SystemTap probe.
4823 (insert_exception_resume_from_probe): New function.
4824
55aa24fb
SDJ
48252012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4826 Tom Tromey <tromey@redhat.com>
4827 Jan Kratochvil <jan.kratochvil@redhat.com>
4828
4829 * Makefile.in (SFILES): Add `probe' and `stap-probe'.
4830 (COMMON_OBS): Likewise.
4831 (HFILES_NO_SRCDIR): Add `probe'.
4832 * NEWS: Mention support for static and SystemTap probes.
4833 * amd64-tdep.c (amd64_init_abi): Initializing proper fields used by
4834 SystemTap probes' arguments parser.
4835 * arm-linux-tdep.c: Including headers needed to perform the parsing
4836 of SystemTap probes' arguments.
4837 (arm_stap_is_single_operand): New function.
4838 (arm_stap_parse_special_token): Likewise.
4839 (arm_linux_init_abi): Initializing proper fields used by SystemTap
4840 probes' arguments parser.
4841 * ax-gdb.c (require_rvalue): Removing static declaration.
4842 (gen_expr): Likewise.
4843 * ax-gdb.h (gen_expr): Declaring function.
4844 (require_rvalue): Likewise.
4845 * breakpoint.c: Include `gdb_regex.h' and `probe.h'.
4846 (bkpt_probe_breakpoint_ops): New variable.
4847 (momentary_breakpoint_from_master): Set the `probe' value.
4848 (add_location_to_breakpoint): Likewise.
4849 (break_command_1): Using proper breakpoint_ops according to the
4850 argument passed by the user in the command line.
4851 (bkpt_probe_insert_location): New function.
4852 (bkpt_probe_remove_location): Likewise.
4853 (bkpt_probe_create_sals_from_address): Likewise.
4854 (bkpt_probe_decode_linespec): Likewise.
4855 (tracepoint_probe_create_sals_from_address): Likewise.
4856 (tracepoint_probe_decode_linespec): Likewise.
4857 (tracepoint_probe_breakpoint_ops): New variable.
4858 (trace_command): Using proper breakpoint_ops according to the
4859 argument passed by the user in the command line.
4860 (initialize_breakpoint_ops): Initializing breakpoint_ops for
4861 static probes on breakpoints and tracepoints.
4862 * breakpoint.h (struct bp_location) <probe>: New field.
4863 * cli-utils.c (skip_spaces_const): New function.
4864 (extract_arg): Likewise.
4865 * cli-utils.h (skip_spaces_const): Likewise.
4866 (extract_arg): Likewise.
4867 * coffread.c (coff_sym_fns): Add `sym_probe_fns' value.
4868 * configure.ac: Append `stap-probe.o' to be generated when ELF
4869 support is present.
4870 * configure: Regenerate.
4871 * dbxread.c (aout_sym_fns): Add `sym_probe_fns' value.
4872 * elfread.c: Include `probe.h' and `arch-utils.h'.
4873 (probe_key): New variable.
4874 (elf_get_probes): New function.
4875 (elf_get_probe_argument_count): Likewise.
4876 (elf_evaluate_probe_argument): Likewise.
4877 (elf_compile_to_ax): Likewise.
4878 (elf_symfile_relocate_probe): Likewise.
4879 (stap_probe_key_free): Likewise.
4880 (elf_probe_fns): New variable.
4881 (elf_sym_fns): Add `sym_probe_fns' value.
4882 (elf_sym_fns_lazy_psyms): Likewise.
4883 (elf_sym_fns_gdb_index): Likewise.
4884 (_initialize_elfread): Initialize objfile cache for static
4885 probes.
4886 * gdb_vecs.h (struct probe): New forward declaration.
4887 (probe_p): New VEC declaration.
4888 * gdbarch.c: Regenerate.
4889 * gdbarch.h: Regenerate.
4890 * gdbarch.sh (stap_integer_prefix): New variable.
4891 (stap_integer_suffix): Likewise.
4892 (stap_register_prefix): Likewise.
4893 (stap_register_suffix): Likewise.
4894 (stap_register_indirection_prefix): Likewise.
4895 (stap_register_indirection_suffix): Likewise.
4896 (stap_gdb_register_prefix): Likewise.
4897 (stap_gdb_register_suffix): Likewise.
4898 (stap_is_single_operand): New function.
4899 (stap_parse_special_token): Likewise.
4900 (struct stap_parse_info): Forward declaration.
4901 * i386-tdep.c: Including headers needed to perform the parsing
4902 of SystemTap probes' arguments.
4903 (i386_stap_is_single_operand): New function.
4904 (i386_stap_parse_special_token): Likewise.
4905 (i386_elf_init_abi): Initializing proper fields used by SystemTap
4906 probes' arguments parser.
4907 * i386-tdep.h (i386_stap_is_single_operand): New function.
4908 (i386_stap_parse_special_token): Likewise.
4909 * machoread.c (macho_sym_fns): Add `sym_probe_fns' value.
4910 * mipsread.c (ecoff_sym_fns): Likewise.
4911 * objfiles.c (objfile_relocate1): Support relocation for static
4912 probes.
4913 * parse.c (prefixify_expression): Remove static declaration.
4914 (initialize_expout): Likewise.
4915 (reallocate_expout): Likewise.
4916 * parser-defs.h (initialize_expout): Declare function.
4917 (reallocate_expout): Likewise.
4918 (prefixify_expression): Likewise.
4919 * ppc-linux-tdep.c: Including headers needed to perform the parsing
4920 of SystemTap probes' arguments.
4921 (ppc_stap_is_single_operand): New function.
4922 (ppc_stap_parse_special_token): Likewise.
4923 (ppc_linux_init_abi): Initializing proper fields used by SystemTap
4924 probes' arguments parser.
4925 * probe.c: New file, for generic statically defined probe support.
4926 * probe.h: Likewise.
4927 * s390-tdep.c: Including headers needed to perform the parsing of
4928 SystemTap probes' arguments.
4929 (s390_stap_is_single_operand): New function.
4930 (s390_gdbarch_init): Initializing proper fields used by SystemTap
4931 probes' arguments parser.
4932 * somread.c (som_sym_fns): Add `sym_probe_fns' value.
4933 * stap-probe.c: New file, for SystemTap probe support.
4934 * stap-probe.h: Likewise.
4935 * symfile.h: Include `gdb_vecs.h'.
4936 (struct sym_probe_fns): New struct.
4937 (struct sym_fns) <sym_probe_fns>: New field.
4938 * symtab.c (init_sal): Initialize `probe' field.
4939 * symtab.h (struct probe): Forward declaration.
4940 (struct symtab_and_line) <probe>: New field.
4941 * tracepoint.c (start_tracing): Adjust semaphore on breakpoints
4942 locations.
4943 (stop_tracing): Likewise.
4944 * xcoffread.c (xcoff_sym_fns): Add `sym_probe_fns' value.
4945
22d2b532
SDJ
49462012-04-27 Sergio Durigan Junior <sergiodj@redhat.com>
4947 Tom Tromey <tromey@redhat.com>
4948
4949 * ax-gdb.c (gen_expr): Clean up code to handle internal variables
4950 and to compile agent expressions.
4951 * infrun.c (siginfo_make_value): New argument `ignore'.
4952 (siginfo_funcs): New struct.
4953 (_initialize_infrun): New argument when calling
4954 `create_internalvar_type_lazy'.
4955 * thread.c (thread_id_make_value): New argument `ignore'.
4956 (thread_funcs): New struct.
4957 (_initialize_thread): New argument when calling
4958 `create_internalvar_type_lazy'.
4959 * tracepoint.c (sdata_make_value): New argument `ignore'.
4960 (sdata_funcs): New struct.
4961 (_initialize_tracepoint): New argument when calling
4962 `create_internalvar_type_lazy'.
4963 * value.c (make_value): New struct.
4964 (create_internalvar_type_lazy): New argument `data'.
4965 (compile_internalvar_to_ax): New function.
4966 (value_of_internalvar): Properly handling `make_value' case.
4967 (clear_internalvar): Likewise.
4968 (show_convenience): Adding `TRY_CATCH' block.
4969 * value.h (internalvar_make_value): Delete, replace by...
4970 (struct internalvar_funcs): ... this.
4971 (create_internalvar_type_lazy) <fun>: Delete argument.
4972 (create_internalvar_type_lazy) <funcs>, <data>: New arguments.
4973 (compile_internalvar_to_ax): New function.
4974 * windows-tdep.c (tlb_make_value): New argument `ignore'.
4975 (tlb_funcs): New struct.
4976 (_initialize_windows_tdep): New argument when calling
4977 `create_internalvar_type_lazy'.
4978
91da1414
MW
49792012-04-27 Mark Wielaard <mjw@redhat.com>
4980
4981 * dwarf2read.c (dwarf2_get_pc_bounds): Check DW_AT_high_pc form to
4982 see whether it is an address or a constant offset from DW_AT_low_pc.
4983 (dwarf2_record_block_ranges): Likewise.
4984 (read_partial_die): Likewise.
4985
4ab9d8ec
MW
49862012-04-26 Mark Wielaard <mjw@redhat.com>
4987
4988 * MAINTAINERS (Write After Approval): Add myself to the list.
4989
a0911fd0
MR
49902012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
4991
4992 * proc-utils.h (proc_prettyprint_signalset): New prototype.
4993 (proc_prettyprint_signal): Likewise.
4994 (proc_prettyprint_faultset): Likewise.
4995 (proc_prettyprint_fault): Likewise.
4996 (proc_prettyprint_actionset): Likewise.
4997 (proc_prettyprint_flags): Move to new proc-flags.c section.
4998 (proc_prettyfprint_flags): New prototype.
4999 * procfs.c (proc_nsysarg, proc_sysargs): Add prototypes.
5000 (proc_syscall, proc_cursig): Likewise.
5001 (proc_set_kill_on_last_close): Likewise.
5002 (proc_unset_kill_on_last_close): Likewise.
5003 (proc_set_watchpoint): Make static.
5004 (proc_delete_dead_threads): Likewise.
5005 (procfs_set_watchpoint): Likewise.
5006 (_initialize_procfs): Add prototype.
5007 * proc-events.c: Include proc-utils.h.
5008 (init_syscall_table): Make static.
5009 * proc-api.c (_initialize_proc_api): Add prototype.
5010 * proc-flags.c: Include proc-utils.h.
5011
9009e1ae
MR
50122012-04-26 Maciej W. Rozycki <macro@codesourcery.com>
5013
5014 * configure.ac: Add AC_ARG_PROGRAM.
5015 * configure: Regenerate.
5016
4fae6e18
JK
50172012-04-26 Jan Kratochvil <jan.kratochvil@redhat.com>
5018
5019 Fix DW_AT_lower_bound defaults for DWARF-4+.
5020 * dwarf2read.c (read_subrange_type): Remove initialization of low and
5021 high. New variable low_default_is_valid. Implement DWARF-4+
5022 DW_AT_lower_bound defaults. Print complaint for DW_AT_lower_bound with
5023 no default by the DWARF standard.
5024
14132e89 50252012-04-26 Maciej W. Rozycki <macro@mips.com>
f782ad9b 5026 Maciej W. Rozycki <macro@codesourcery.com>
14132e89
MR
5027
5028 * infrun.c (handle_inferior_event): Move the check for return
5029 trampolines ahead of the check for function trampolines.
5030 * mips-tdep.h (MIPS_S2_REGNUM, MIPS_GP_REGNUM): New macros.
5031 * mips-tdep.c (mips_str_mips16_call_stub): New variable.
5032 (mips_str_mips16_ret_stub): Likewise.
5033 (mips_str_call_fp_stub): Likewise.
5034 (mips_str_call_stub): Likewise.
5035 (mips_str_fn_stub): Likewise.
5036 (mips_str_pic): Likewise.
5037 (mips_in_frame_stub): New function.
5038 (mips_unwind_pc): Return the return address rather than the PC
5039 if the PC of an intermediate frame is inside a call thunk.
5040 (mips_is_stub_suffix): New function.
5041 (mips_is_stub_mode): Likewise.
5042 (mips_get_mips16_fn_stub_pc): Likewise.
5043 (mips_skip_mips16_trampoline_code): Update to handle all the
5044 currently generated stub types. Don't recurse into __fn_stub
5045 thunks. Remove heuristics to handle stubs beyond etext/_etext.
5046 Use cooked register accesses.
5047 (mips_in_return_stub): Reintroduce function.
5048 (mips_skip_trampoline_code): Traverse trampolines recursively.
5049 (mips_gdbarch_init): Handle MIPS16 return trampolines.
5050
518f0db5 50512012-04-26 Joel Brobecker <brobecker@adacore.com>
5052
5053 GDB 7.4.1 released.
5054
3184d3f9
JL
50552012-04-26 Jonathan Larmour <jifl@eCosCentric.com>
5056
5057 * arm-tdep.h (VFP_REGISTER_SIZE): Define.
5058 * features/arm-with-m-vfp-d16.xml: New file. Describes
5059 Cortex-M with VFPv4-sp-d16 FPU register layout.
5060 * features/Makefile (WHICH): Add arm-with-m-vfp-d16.
5061 * features/arm-with-m-vfp-d16.c: New. Generated from above.
5062 * arm-tdep.c: Include arm-with-m-vfp-d16.c.
5063 (arm-register_g_packet_guesses): Add vfp-d16 guess.
5064 (_initialise_arm_tdep): Initialize arm-with-m-vfp-d16 tdesc.
5065
b6201d44
DE
50662012-04-25 Doug Evans <dje@google.com>
5067
5068 * cli/cli-decode.c (print_doc_line): Use stream instead of
5069 current_uiout.
5070
4e2f8df6
SDJ
50712012-04-25 Sergio Durigan Junior <sergiodj@redhat.com>
5072
5073 * features/arm-with-iwmmxt.c: Regenerate.
5074 * features/arm-with-m-fpa-layout.c: Likewise.
5075 * features/arm-with-m.c: Likewise.
5076 * features/arm-with-neon.c: Likewise.
5077 * features/arm-with-vfpv2.c: Likewise.
5078 * features/arm-with-vfpv3.c: Likewise.
5079 * features/mips-dsp-linux.c: Likewise.
5080 * features/mips-linux.c: Likewise.
5081 * features/mips64-dsp-linux.c: Likewise.
5082 * features/mips64-linux.c: Likewise.
5083 * features/s390-linux32.c: Likewise.
5084 * features/s390-linux32v1.c: Likewise.
5085 * features/s390-linux32v2.c: Likewise.
5086 * features/s390-linux64.c: Likewise.
5087 * features/s390-linux64v1.c: Likewise.
5088 * features/s390-linux64v2.c: Likewise.
5089 * features/s390x-linux64.c: Likewise.
5090 * features/s390x-linux64v1.c: Likewise.
5091 * features/s390x-linux64v2.c: Likewise.
5092 * features/tic6x-c62x-linux.c: Likewise.
5093 * features/tic6x-c62x.c: Likewise.
5094 * features/tic6x-c64x-linux.c: Likewise.
5095 * features/tic6x-c64x.c: Likewise.
5096 * features/tic6x-c64xp-linux.c: Likewise.
5097 * features/tic6x-c64xp.c: Likewise.
5098 * target-descriptions.c: Only generate `field_type' and `type'
5099 variables when needed.
5100
2def3e66
JB
51012012-04-25 Fredrik Hederstierna <fredrikh.hederstierna@securitas-direct.com>
5102
5103 * cli/cli-cmds.c (cd_command): Use memmove instead of strcpy.
5104
a766d390
DE
51052012-04-25 Doug Evans <dje@google.com>
5106
5107 Initial pass at Go language support.
5108 * NEWS: Mention Go.
5109 * Makefile.in (SFILES): Add go-exp.y, go-lang.c, go-typeprint.c,
5110 go-valprint.c.
5111 (COMMON_OBS): Add go-lang.o, go-val.print.o, go-typeprint.o.
5112 (YYFILES): Add go-exp.c.
5113 (YYOBJ): Add go-exp.o.
5114 (local-maintainer-clean): Delete go-exp.c.
5115 * defs.h (enum language): Add language_go.
5116 * dwarf2read.c: #include "go-lang.h".
5117 (fixup_go_packaging): New function.
5118 (process_full_comp_unit): Call it when processing Go CUs.
5119 (dwarf2_physname): Add Go support.
5120 (read_file_scope): Handle missing language spec for GNU Go.
5121 (set_cu_language): Handle DW_LANG_Go.
5122 * go-exp.y: New file.
5123 * go-lang.h: New file.
5124 * go-lang.c: New file.
5125 * go-typeprint.c: New file.
5126 * go-valprint.c: New file.
5127 * symtab.c: #include "go-lang.h".
5128 (symbol_set_language): Handle language_go.
5129 (symbol_find_demangled_name, symbol_set_names): Ditto.
5130 (symbol_natural_name, demangle_for_lookup, find_main_name): Ditto.
5131
4e2af517
JM
51322012-04-24 Jim Meyering <meyering@redhat.com>
5133
5134 avoid a few strncpy-induced buffer overruns
5135 * procfs.c (procfs_make_note_section): Be sure to NUL-terminate
5136 fname and psargs before trying to concatenate.
5137 * tui/tui-stack.c (tui_get_function_from_frame): NUL-terminate
5138 "name" before applying strchr.
5139
b77b7f52
SCR
51402012-04-25 Siva Chandra Reddy <sivachandra@google.com>
5141
5142 * CONTRIBUTE: Use unified diff instead of context diff when
5143 generating patches.
5144
6321c22a
MR
51452012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5146
5147 * mips-tdep.c (mips_about_to_return): Remove dead MIPS16 support
5148 code. Handle JR.HB correctly.
5149
742c84f6
MR
51502012-04-24 Maciej W. Rozycki <macro@codesourcery.com>
5151
5152 * mips-tdep.c
5153 (is_mips16_addr, unmake_mips16_addr, make_mips16_addr): Group
5154 with the other MIPS16 helpers.
5155
7fc7e0c3
SDJ
51562012-04-24 Sergio Durigan Junior <sergiodj@redhat.com>
5157
5158 * observer.sh: Conditionally declare `args', thus cleaning up
5159 unused instances of this variable.
5160
20388dd6
YQ
51612012-04-24 Yao Qi <yao@codesourcery.com>
5162
5163 Revert this patch to allow breakpoint always-inserted
5164 in record target.
5165 2011-12-05 Pedro Alves <pedro@codesourcery.com>
f782ad9b
AS
5166 * breakpoint.c: Include record.h.
5167 (breakpoints_always_inserted_mode): Return false when the record
5168 target is in use.
20388dd6
YQ
5169
5170 * breakpoint.c (iterate_over_bp_locations): New.
5171 * breakpoint.h: Declare.
5172 New typedef walk_bp_location_callback.
5173 * record.c (record_open): Call record_init_record_breakpoints.
5174 (record_sync_record_breakpoints): New.
5175 (record_init_record_breakpoints): New.
5176 * NEWS: Mention supporting breakpoint always-inserted mode in
5177 record target.
5178
4734f50e
MK
51792012-04-24 Marc Khouzam <marc.khouzam@ericsson.com>
5180
5181 * mi/mi-main.c (mi_cmd_execute): Choose a live thread not just
5182 any thread.
5183
c326b90e
YQ
51842012-04-24 Yao Qi <yao@codesourcery.com>
5185
5186 * breakpoint.c (ep_is_catchpoint): Renamed to ...
5187 (is_catchpoint): ... it.
5188 (print_one_breakpoint_location): Caller update.
5189 * breakpoint.h: Update declaration.
5190
d8fb5a1e
DM
51912012-04-23 David S. Miller <davem@davemloft.net>
5192
5193 * configure.tgt (sparc-*-linux*): Set build_gdbserver to yes.
5194
34431a2a
TT
51952012-04-23 Tom Tromey <tromey@redhat.com>
5196
5197 * buildsym.c (add_free_pendings): Remove.
5198 * buildsym.h (add_free_pendings): Remove.
5199
4568ecf9
DE
52002012-04-23 Doug Evans <dje@google.com>
5201
5202 * dwarf2read.c (partial_die_full_name): Record DW_FORM_ref_addr in
5203 attr.u.unsnd instead of attr.u.addr.
5204 (read_attribute_value) Ditto for cases DW_FORM_ref_addr,
5205 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4, DW_FORM_reg8,
5206 DW_FORM_ref_udata.
5207 (dump_die_shallow): Update cases DW_FORM_ref_addr,
5208 DW_FORM_ref1, DW_FORM_ref2, DW_FORM_ref4. Add cases DW_FORM_ref8,
5209 DW_FORM_ref_udata.
5210 (dwarf2_get_ref_die_offset): Use DW_UNSND for reference attributes.
5211
dca9aa3a
MR
52122012-04-23 Maciej W. Rozycki <macro@codesourcery.com>
5213
5214 * mips-tdep.c (mips_n32n64_return_value): Fix coding style.
5215 (mips_o32_return_value): Likewise.
5216 (mips_o64_return_value): Likewise.
5217
c8ea1972
PH
52182012-04-21 Paul Hilfinger <hilfinger@adacore.com>
5219
5220 * ada-lang.c (ada_evaluate_subexp): Add cases for
f782ad9b
AS
5221 TYPE_CODE_INTERNAL_FUNCTION and for TYPE_GNU_IFUNC, following
5222 their treatment in eval.c.
c8ea1972 5223
8d1b3521
DM
52242012-04-21 David S. Miller <davem@davemloft.net>
5225
5226 * sparc-tdep.c (X_DISP10): Define.
5227 (sparc_analyze_control_transfer): Handle compare-and-branch.
5228
03145bf4
JL
52292012-04-21 Jonathan Larmour <jifl@eCosCentric.com>
5230
5231 * features/Makefile (WHICH): Add arm-with-m and arm-with-m-fpa-layout.
5232 * arm-tdep.c (arm_register_g_packet_guesses): Fix comment.
5233
004159a2 52342012-04-20 Nigel Stephens <nigel@mips.com>
f782ad9b 5235 Maciej W. Rozycki <macro@codesourcery.com>
004159a2
MR
5236
5237 * mips-tdep.c (mips_float_register_p): New function.
5238 (mips_convert_register_float_case_p): Use mips_float_register_p.
5239 (mips_register_type): Likewise.
5240 (mips_print_register): Likewise.
5241 (print_gp_register_row): Likewise.
5242 (mips_print_registers_info): Likewise.
5243
7f0e6aae
MR
52442012-04-20 Shun-Yen Lu <dark.asparagus@gmail.com>
5245
5246 * mips-tdep.c (mips_elf_make_msymbol_special): Fix identification
5247 of mips16 symbols.
5248
bc17beea
AP
52492012-04-20 Andrew Pinski <apinski@cavium.com>
5250
5251 * MAINTAINERS (Write After Approval): Add myself to the list.
5252
1730a5a5
SDJ
52532012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5254
5255 * MAINTAINERS: Update my e-mail address.
5256
38ea300a
PA
52572012-04-20 Pedro Alves <palves@redhat.com>
5258
5259 * acx_configure_dir.m4 (ACX_CONFIGURE_DIR): Handle absolute
5260 $srcdir.
5261 * configure: Regenerate.
5262
111dfaae
SDJ
52632012-04-20 Sergio Durigan Junior <sergiodj@redhat.com>
5264
5265 * cp-support.h: Include `gdb_vecs.h'. Delete `const_char_ptr' VEC
5266 declaration.
5267 * gdb_vecs.h: Declare `const_char_ptr' VEC.
5268
4fb2c64a
JK
52692012-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
5270
5271 Fix compilation compatibility with python-2.4
5272 * python/py-type.c (convert_field): Cast ADDRSTRING for
5273 PyObject_SetAttrString as non-const. New comment.
5274
6328eb38
TT
52752012-04-19 Tom Tromey <tromey@redhat.com>
5276
5277 * top.c (quit_target): Use all_cleanups.
5278 * main.c (captured_command_loop): Use all_cleanups.
5279 * exceptions.c (throw_exception): Use all_cleanups.
5280
c971b7fa
PA
52812012-04-19 Pedro Alves <palves@redhat.com>
5282
5283 * Makefile.in (GNULIB_BUILDDIR): New.
5284 (LIBGNU, INCGNU, GNULIB_H): Adjust.
5285 (SUBDIRS): Add $(GNULIB_BUILDDIR).
5286 (CLEANDIRS). Remove gnulib/import.
5287 (REQUIRED_SUBDIRS): Replace gnulib/import with $(GNULIB_BUILDDIR).
5288 (all-lib): Ditto.
5289 (distclean): Remove the $(GNULIB_BUILDDIR) directory.
5290 (gnulib/import/Makefile): Replace gnulib/import with
5291 $(GNULIB_BUILDDIR). Set CONFIG_FILES to just Makefile.
5292 (ACLOCAL_AMFLAGS): Remove '-I gnulib/import/m4'.
5293 (aclocal_m4_deps): Remove the gnulib dependencies. Add
5294 acx_configure_dir.m4.
5295 * acinclude.m4: Include acx_configure_dir.m4.
5296 * acx_configure_dir.m4: New file.
5297 * aclocal.m4: Regenerate.
a09130f9
PA
5298 * configure.ac: Remove gl_EARLY, gl_INIT and AM_INIT_AUTOMAKE
5299 calls. Configure gnulib using ACX_CONFIGURE_DIR.
5300 (GNULIB): New variable.
5301 (GNULIB_STDINT_H): Adjust.
5302 (AC_OUTPUT): Don't output gnulib/Makefile.
5303 * gdb/defs.h: Include build-gnulib/config.h.
5304 * aclocal.m4: Regenerate.
5305 * config.in: Regenerate.
5306 * configure: Regenerate.
5307
5308 * gnulib/Makefile.in: New file.
5309 * gnulib/configure.ac: New file.
5310 * gnulib/aclocal.m4: New file.
5311 * gnulib/config.in: New file.
5312 * gnulib/configure: New file.
c971b7fa
PA
5313 * gnulib/: Re-run gnulib-tool to adjust.
5314
b10faa68
DE
53152012-04-19 Doug Evans <dje@google.com>
5316
5317 * cleanups.h (struct cleanup): Move to cleanups.c.
5318 (make_cleanup_dtor_ftype): New typedef.
5319 (make_cleanup_dtor): Use it.
5320 (ALL_CLEANUPS): Replace with ...
5321 (all_cleanups): ... this. Declare. All uses updated.
5322 * cleanups.c: #include "gdb_assert.h".
5323 (sentinel_cleanup): New static global.
5324 (SENTINEL_CLEANUP): Define.
5325 (cleanup_chain, final_cleanup_chain): Initialize to SENTINEL_CLEANUP.
5326 (make_my_cleanup2): Assert result is non-NULL.
5327 (all_cleanups): New function.
5328 (save_my_cleanups): Initialize new chain to SENTINEL_CLEANUP instead
5329 of NULL.
5330
d8c267cc
PA
53312012-04-19 Pedro Alves <palves@redhat.com>
5332
5333 * Makefile.in (HFILES_NO_SRCDIR): Remove gnulib/wchar.in.h.
5334 Adjust paths to gnulib imported files.
5335
809277f8
PA
53362012-04-19 Pedro Alves <palves@redhat.com>
5337
5338 * gnulib/: Move whole directory ...
5339 * gnulib/import/: ... here, and re-rerun gnulib-tool to adjust.
5340 * Makefile.in (LIBGNU, INCGNU, GNULIB_H, CLEANDIRS)
5341 (REQUIRED_SUBDIRS, all-lib, gnulib/Makefile, ACLOCAL_AMFLAGS)
5342 (aclocal_m4_deps): Adjust.
5343 * aclocal.m4: Regenerate.
5344 * configure: Regenerate.
5345 * configure.ac: Adjust AC_OUTPUT output.
5346
aad9eab9
YQ
53472012-04-19 Yao Qi <yao@codesourcery.com>
5348
5349 * Makefile.in (SFILES): Add common/vec.c and remove vec.c.
5350 (vec.o): New rule.
5351 * vec.c: Move it ...
5352 * common/vec.c: ... here.
5353 * vec.h: Move it ...
5354 * common/vec.h: ... here.
5355
48fe4669
YQ
53562012-04-19 Yao Qi <yao@codesourcery.com>
5357
5358 * gdb-code-style.el: New.
5359
770d76d7
PA
53602012-04-18 Pedro Alves <palves@redhat.com>
5361
5362 Update gnulib from latest git.
5363 (639ea5ae15e39fe48d43e04864b2997301e4b969)
5364
5365 * gnulib/Makefile.am: Update.
5366 * gnulib/dummy.c: Update.
5367 * gnulib/extra/arg-nonnull.h: Update.
5368 * gnulib/extra/c++defs.h: Update.
5369 * gnulib/extra/update-copyright: Update.
5370 * gnulib/extra/warn-on-use.h: Update.
5371 * gnulib/inttypes.in.h: Update.
5372 * gnulib/m4/00gnulib.m4: Update.
5373 * gnulib/m4/extensions.m4: Update.
5374 * gnulib/m4/gnulib-cache.m4: Update.
5375 * gnulib/m4/gnulib-common.m4: Update.
5376 * gnulib/m4/gnulib-comp.m4: Update.
5377 * gnulib/m4/gnulib-tool.m4: Update.
5378 * gnulib/m4/include_next.m4: Update.
5379 * gnulib/m4/inttypes-pri.m4: Update.
5380 * gnulib/m4/inttypes.m4: Update.
5381 * gnulib/m4/longlong.m4: Update.
5382 * gnulib/m4/memchr.m4: Update.
5383 * gnulib/m4/memmem.m4: Update.
5384 * gnulib/m4/mmap-anon.m4: Update.
5385 * gnulib/m4/multiarch.m4: Update.
5386 * gnulib/m4/onceonly.m4: Update.
5387 * gnulib/m4/stddef_h.m4: Update.
5388 * gnulib/m4/stdint.m4: Update.
5389 * gnulib/m4/string_h.m4: Update.
5390 * gnulib/m4/warn-on-use.m4: Update.
5391 * gnulib/m4/wchar_h.m4: Update.
5392 * gnulib/m4/wchar_t.m4: Update.
5393 * gnulib/m4/wint_t.m4: Update.
5394 * gnulib/memchr.c: Update.
5395 * gnulib/memmem.c: Update.
5396 * gnulib/stddef.in.h: Update.
5397 * gnulib/stdint.in.h: Update.
5398 * gnulib/str-two-way.h: Update.
5399 * gnulib/string.in.h: Update.
5400 * gnulib/wchar.in.h: Update.
5401
5402 * gnulib/extra/arg-nonnull.h: Delete.
5403 * gnulib/extra/c++defs.h: Delete.
5404 * gnulib/extra/warn-on-use.h: Delete.
5405 * gnulib/m4/wchar_h.m4: Delete.
5406 * gnulib/m4/wint_t.m4: Delete.
5407 * gnulib/wchar.in.h: Delete.
5408
5409 * gnulib/extra/snippets/arg-nonnull.h: New.
5410 * gnulib/extra/snippets/c++defs.h: New.
5411 * gnulib/extra/snippets/warn-on-use.h: New.
5412
5413 * aclocal.m4: Regenerate.
5414 * config.in: Regenerate.
5415 * configure: Regenerate.
5416 * gnulib/Makefile.in: Regenerate.
5417
174e088e
PA
54182012-04-18 Pedro Alves <palves@redhat.com>
5419
5420 Reimport the update-copyright module from gnulib
5421 (250b80067c1e1d8faa0c42fb572f721975b929c5).
5422
5423 * configure: Regenerate.
5424 * gnulib/Makefile.am: Update.
5425 * gnulib/Makefile.in: Regenerate.
5426 * gnulib/extra/update-copyright: Update.
5427 * gnulib/m4/gnulib-cache.m4: Update.
5428 * gnulib/m4/gnulib-comp.m4: Update.
5429
7f533142
JB
54302012-04-18 Tristan Gingold <gingold@adacore.com>
5431
5432 * configure.ac (aix): Put -lpthread into libs.
5433 * configure: Regenerate.
5434
001822aa
TT
54352012-04-18 Tom Tromey <tromey@redhat.com>
5436
5437 * linespec.c (convert_linespec_to_sals): Don't use
5438 SYMBOL_OBJ_SECTION.
5439 (compare_msymbols): Arguments are minsym_and_objfile, not
5440 minimal_symbol*. Don't use SYMBOL_OBJ_SECTION.
5441
db026a31
PA
54422012-04-18 Pedro Alves <palves@redhat.com>
5443
5444 Revert gnulib/ part of:
5445 2011-01-01 Joel Brobecker <brobecker@adacore.com>
5446 Copyright year update in most files (performed by copyright.sh).
5447
12df843f
JK
54482012-04-18 Jan Kratochvil <jan.kratochvil@redhat.com>
5449
5450 Fix 64-bit constants on 32-bit hosts.
5451 * dwarf2read.c (read_unsigned_leb128): Change declaration return type
5452 from unsigned long to ULONGEST.
5453 (read_signed_leb128): Change declaration return type from long to
5454 LONGEST.
5455 (dwarf2_const_value_attr): Change declaration parameter value from long
5456 to LONGEST.
5457 (dwarf2_compute_name): Change variable value from long to LONGEST.
5458 (read_unsigned_leb128): Change return type, variable result and some
5459 casts from unsigned long to ULONGEST.
5460 (read_signed_leb128): Change return type, variable result and some
5461 casts from long to LONGEST.
5462 (dwarf2_const_value_data, dwarf2_const_value_attr): Change parameter
5463 value from long to LONGEST.
5464 (dwarf2_const_value): Change variable value from long to LONGEST.
5465 * symmisc.c (print_symbol): Change SYMBOL_VALUE format strings to use
5466 plongest and hex_string.
5467 * symtab.h (struct general_symbol_info): Change ivalue from long to
5468 LONGEST, remove the comment.
5469 * tracepoint.c (validate_actionline, collect_symbol, scope_info):
5470 Change SYMBOL_VALUE format strings to use plongest and hex_string.
5471
14e75d8e
JK
54722012-04-18 Siddhesh Poyarekar <siddhesh@redhat.com>
5473
5474 PR symtab/7259:
5475 * ada-exp.y (convert_char_literal): Use TYPE_FIELD_ENUMVAL.
5476 * ada-lang.c (ada_discrete_type_high_bound)
ac4ea3c2
JK
5477 (ada_discrete_type_low_bound): Fix function comment. Use
5478 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
14e75d8e
JK
5479 (ada_identical_enum_types_p): Use TYPE_FIELD_ENUMVAL.
5480 (pos_atr, value_val_atr): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5481 * ada-typeprint.c (print_enum_type): Change variable lastval to LONGEST.
5482 Use TYPE_FIELD_ENUMVAL.
5483 * ada-valprint.c (print_optional_low_bound, ada_print_scalar)
5484 (ada_val_print_1): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5485 * c-typeprint.c (c_type_print_base): Move variable lastval to inner
5486 block, change it to LONGEST. Use TYPE_FIELD_ENUMVAL for
5487 TYPE_CODE_ENUM.
5488 * coffread.c (coff_read_enum_type): Use SET_FIELD_ENUMVAL.
5489 * dwarf2read.c (process_enumeration_scope): Likewise.
5490 * gdb-gdb.py (TypeFlagsPrinter): Use field.enumval instead of
5491 field.bitpos.
5492 (class StructMainTypePrettyPrinter): Support also
5493 FIELD_LOC_KIND_ENUMVAL.
5494 * gdbtypes.c (get_discrete_bounds): Use TYPE_FIELD_ENUMVAL for
5495 TYPE_CODE_ENUM.
5496 (recursive_dump_type): Use TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5497 (copy_type_recursive): Support also FIELD_LOC_KIND_ENUMVAL.
5498 * gdbtypes.h (enum field_loc_kind): New FIELD_LOC_KIND_ENUMVAL.
5499 (struct main_type.flds_bnds.fields.loc): Adjust bitpos comment. New
5500 field enumval.
5501 (struct main_type.flds_bnds.bields): Adjust loc_kind and bitsize to
5502 accommodate enumval.
5503 (struct call_site): Adjust loc_kind to accommodate enumval.
5504 (FIELD_ENUMVAL, FIELD_ENUMVAL_LVAL, SET_FIELD_ENUMVAL)
5505 (TYPE_FIELD_ENUMVAL): New macros.
5506 * m2-typeprint.c (m2_enum): Use TYPE_FIELD_ENUMVAL.
5507 * mdebugread.c (parse_symbol): Use TYPE_FIELD_ENUMVAL for
5508 TYPE_CODE_ENUM.
5509 * p-typeprint.c (pascal_type_print_base): Likewise.
5510 * python/lib/gdb/printing.py (class FlagEnumerationPrinter): Use
5511 enumval.
5512 * python/lib/gdb/types.py (make_enum_dict): Likewise.
5513 * python/py-type.c (convert_field): New variable addrstring. Use
5514 TYPE_FIELD_ENUMVAL for TYPE_CODE_ENUM.
5515 (check_types_equal): Support also FIELD_LOC_KIND_ENUMVAL.
5516 * stabsread.c (read_enum_type): Use SET_FIELD_ENUMVAL.
5517 * typepint.c (print_type_scalar): Use TYPE_FIELD_ENUMVAL for
5518 TYPE_CODE_ENUM.
5519 * valprint.c (generic_val_print): Likewise.
5520
380bca97
DE
55212012-04-17 Doug Evans <dje@google.com>
5522
dcc07052
DE
5523 * dwarf2read.c (lookup_signatured_type): Return NULL instead of 0.
5524
380bca97
DE
5525 * dwarf2read.c: Whitespace fixes.
5526 (lookup_signatured_type): Tweak comment.
5527 (get_die_type_at_offset): Fix comment.
5528
ec92004f
JB
55292012-04-17 Joel Brobecker <brobecker@adacore.com>
5530
5531 * xcoffread.c (xcoff_secnum_to_sections): New function.
5532 (secnum_to_section, secnum_to_bfd_section): Reimplement
5533 using xcoff_secnum_to_sections. Rename "secnum" parameter
5534 into "n_scnum".
5535 (RECORD_MINIMAL_SYMBOL): Delete.
5536 (record_minimal_symbol): New function.
5537 (scan_xcoff_symtab): Replace uses of RECORD_MINIMAL_SYMBOL
5538 by call to record_minimal_symbol and set misc_func_recorded
5539 to 1. Set last_csect_sec to the XCOFF section index instead
5540 of GDB's section_offset index. Update calls to
5541 prim_record_minimal_symbol_and_info to pass the BFD section
5542 as well.
5543
40301fb7
JB
55442012-04-17 Joel Brobecker <brobecker@adacore.com>
5545
5546 * xcoffread.c (read_xcoff_symtab): Delete variables
5547 last_csect_val and last_csect_sec and associated code.
5548
e0088cfd
DE
55492012-04-17 Doug Evans <dje@google.com>
5550
58d5e2c3
DE
5551 * cleanups.c (make_my_cleanup,make_my_cleanup2): Make static.
5552 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5553 * cleanups.h (make_my_cleanup,make_my_cleanup2): Delete
5554 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Delete.
5555
c27f5738
DE
5556 * cleanups.h: New file.
5557 * cleanups.c: New file.
5558 * Makefile.in (SFILES): Add cleanups.c.
5559 (HFILES_NO_SRCDIR): Add cleanups.h.
5560 (COMMON_OBS): Add cleanups.o.
5561 * defs.h (struct cleanup): Moved to cleanups.h.
5562 (do_cleanups,do_final_cleanups): Ditto.
5563 (discard_cleanups,discard_final_cleanups): Ditto
5564 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5565 (save_cleanups,save_final_cleanups): Ditto.
5566 (restore_cleanups,restore_final_cleanups): Ditto.
5567 (null_cleanup): Ditto.
5568 (make_my_cleanup,make_my_cleanup2): Ditto.
5569 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5570 * utils.c (cleanup_chain,final_cleanup_chain): Moved to cleanups.c.
5571 (do_cleanups,do_final_cleanups): Ditto.
5572 (discard_cleanups,discard_final_cleanups): Ditto
5573 (make_cleanup,make_cleanup_dtor,make_final_cleanup): Ditto.
5574 (save_cleanups,save_final_cleanups): Ditto.
5575 (restore_cleanups,restore_final_cleanups): Ditto.
5576 (null_cleanup): Ditto.
5577 (make_my_cleanup,make_my_cleanup2): Ditto.
5578 (discard_my_cleanups,save_my_cleanups,restore_my_cleanups): Ditto.
5579
e0088cfd
DE
5580 * utils.c (make_cleanup_freeargv): Use make_cleanup instead of
5581 make_my_cleanup.
5582 (make_cleanup_dyn_string_delete): Ditto.
5583 (make_cleanup_ui_file_delete): Ditto.
5584 (make_cleanup_ui_out_redirect_pop): Ditto.
5585 (make_cleanup_free_section_addr_info): Ditto.
5586 (make_cleanup_restore_integer): Ditto.
5587 (make_cleanup_unpush_target): Ditto.
5588 (make_cleanup_value_free_to_mark): Ditto.
5589 (make_cleanup_value_free): Ditto.
5590 (make_cleanup_free_so): Ditto.
5591
4dc84fd1
JK
55922012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5593
5594 New option "set debug auto-load".
5595 * NEWS: New commands "set debug auto-load" and "show debug auto-load".
5596 * auto-load.c (debug_auto_load, show_debug_auto_load: New.
5597 (auto_load_safe_path_vec_update)
5598 (filename_is_in_auto_load_safe_path_vec): Call fprintf_unfiltered
5599 if DEBUG_AUTO_LOAD.
5600 (file_is_auto_load_safe): New parameters debug_fmt and ....
5601 Call fprintf_unfiltered if DEBUG_AUTO_LOAD.
5602 (source_gdb_script_for_objfile): Extend the file_is_auto_load_safe
5603 caller by explanatory string.
5604 (_initialize_auto_load): Register "set debug auto-load".
5605 * auto-load.h (file_is_auto_load_safe): New parameters debug_fmt
5606 and ....
5607 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5608 (try_thread_db_load_from_dir): Extend the file_is_auto_load_safe caller
5609 by explanatory string.
5610 * main.c (captured_main): Likewise.
5611 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile)
5612 (source_section_scripts): Likewise.
5613
bccbefd2
JK
56142012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5615
5616 New option "set auto-load safe-path".
5617 * NEWS: New commands "set auto-load safe-path"
5618 and "show auto-load safe-path".
5619 * auto-load.c: Include gdb_vecs.h, readline/tilde.h and completer.h.
5620 (auto_load_safe_path, auto_load_safe_path_vec)
5621 (auto_load_safe_path_vec_update, set_auto_load_safe_path)
5622 (show_auto_load_safe_path, add_auto_load_safe_path, filename_is_in_dir)
5623 (filename_is_in_auto_load_safe_path_vec, file_is_auto_load_safe): New.
5624 (source_gdb_script_for_objfile): New variable is_safe. Call
5625 file_is_auto_load_safe. Return if it is not.
5626 (struct loaded_script): New field loaded.
5627 (maybe_add_script): Add parameter loaded. Initialize SLOT with it.
5628 (print_script): Use LOADED indicator instead of FULL_PATH. Change
5629 output "Missing" to "No".
5630 (_initialize_auto_load): New variable cmd. Initialize
5631 auto_load_safe_path. Register "set auto-load safe-path",
5632 "show auto-load safe-path" and "add-auto-load-safe-path".
5633 * auto-load.h (maybe_add_script): Add parameter loaded.
5634 (file_is_auto_load_safe): New declaration.
5635 * config.in: Regenerate.
5636 * configure: Regenerate.
5637 * configure.ac: New parameters --with-auto-load-safe-path
5638 and --without-auto-load-safe-path.
5639 * linux-thread-db.c (try_thread_db_load_from_pdir_1)
5640 (try_thread_db_load_from_dir): Check file_is_auto_load_safe first.
5641 * main.c (captured_main): Check file_is_auto_load_safe for
5642 LOCAL_GDBINIT.
5643 * python/py-auto-load.c (gdbpy_load_auto_script_for_objfile): New
5644 variable is_safe. Call file_is_auto_load_safe. Return if it is not.
5645 (source_section_scripts): Call file_is_auto_load_safe. Return if it is
5646 not.
5647
bf88dd68
JK
56482012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5649
5650 auto-load: Implementation.
5651 * NEWS: New descriptions for "info auto-load",
5652 "info auto-load gdb-scripts", "info auto-load python-scripts",
5653 "info auto-load local-gdbinit" and "info auto-load libthread-db".
5654 Deprecate "info auto-load-scripts", "set auto-load-scripts on|off"
5655 and "show auto-load-scripts". New description for "set auto-load",
5656 "show auto-load", "set auto-load gdb-scripts",
5657 "show auto-load gdb-scripts", "set auto-load python-scripts",
5658 "show auto-load python-scripts", "set auto-load local-gdbinit",
5659 "show auto-load local-gdbinit", "set auto-load libthread-db" and
5660 "show auto-load libthread-db".
5661 * auto-load.c: Remove include python/python-internal.h. Add includes
5662 exceptions.h, cli/cli-script.h, gdbcmd.h, cli/cli-decode.h and
5663 cli/cli-setshow.h.
5664 (GDB_AUTO_FILE_NAME, source_gdb_script_for_objfile)
5665 (auto_load_gdb_scripts, show_auto_load_gdb_scripts): New.
5666 (gdbpy_global_auto_load): Rename to ...
5667 (global_auto_load): ... here.
5668 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5669 (auto_load_local_gdbinit_loaded, show_auto_load_local_gdbinit)
5670 (script_language_gdb, source_gdb_script_for_objfile): New.
5671 (struct loaded_script): New field language.
5672 (hash_loaded_script_entry, eq_loaded_script_entry): Calculate also
5673 LANGUAGE.
5674 (maybe_add_script): Add parameter language. Drop redundant
5675 entry.full_path initialization. Initialize entry.language and
5676 (*slot)->language.
5677 (auto_load_objfile_script): Change parameter suffix to language.
5678 Remove the call of maybe_add_script.
5679 Call language->source_script_for_objfile.
5680 (load_auto_scripts_for_objfile, struct collect_matching_scripts_data):
5681 New.
5682 (collect_matching_scripts): Adjust it for
5683 struct collect_matching_scripts_data.
5684 (auto_load_info_scripts_pattern_nl): New variable.
5685 (info_auto_load_scripts): Rename to ...
5686 (auto_load_info_scripts): ... here, add parameter language. Adjust it
5687 for struct collect_matching_scripts_data.
5688 (info_auto_load_gdb_scripts, info_auto_load_local_gdbinit)
5689 (set_auto_load_cmd, auto_load_set_cmdlist_get, show_auto_load_cmd)
5690 (auto_load_show_cmdlist_get, info_auto_load_cmd)
5691 (auto_load_info_cmdlist_get): New.
5692 (_initialize_auto_load): Move add_info of "auto-load-scripts" to
5693 python/py-auto-load.c. New installment for "set auto-load gdb-scripts",
5694 "info auto-load gdb-scripts", "set auto-load local-gdbinit" and
5695 "info auto-load local-gdbinit".
5696 * auto-load.h (struct script_language): New.
5697 (gdbpy_global_auto_load): Rename to ...
5698 (global_auto_load): ... here.
5699 (auto_load_local_gdbinit, auto_load_local_gdbinit_pathname)
5700 (auto_load_local_gdbinit_loaded): New declarations.
5701 (maybe_add_script): New parameter language.
5702 (auto_load_objfile_script): Change parameter suffix to language.
5703 (load_auto_scripts_for_objfile, auto_load_info_scripts_pattern_nl)
5704 (auto_load_info_scripts, auto_load_set_cmdlist_get)
5705 (auto_load_show_cmdlist_get, auto_load_info_cmdlist_get): New
5706 declarations.
5707 * linux-thread-db.c: Include auto-load.h and ctype.h.
5708 (auto_load_thread_db, show_auto_load_thread_db): New.
5709 (struct thread_db_info): New field filename.
5710 (delete_thread_db_info): Call xfree for FILENAME.
5711 (try_thread_db_load): Initialize FILENAME.
5712 (try_thread_db_load_from_pdir, try_thread_db_load_from_dir): Return
5713 if !AUTO_LOAD_THREAD_DB.
5714 (info_auto_load_libthread_db_compare, info_auto_load_libthread_db): New.
5715 (_initialize_thread_db): Install auto_load_thread_db
5716 as "set auto-load libthread-db" and install info_auto_load_libthread_db
5717 as "info auto-load libthread-db".
5718 * main.c (captured_main): Rename gdbpy_global_auto_load to
5719 global_auto_load. Initialize AUTO_LOAD_LOCAL_GDBINIT_PATHNAME and
5720 AUTO_LOAD_LOCAL_GDBINIT_LOADED.
5721 (print_gdb_help): Extend the help for 'local init file'.
5722 * python/py-auto-load.c: Remove a comment about gdb scripts extension.
5723 (GDBPY_AUTO_SECTION_NAME): Extend the comment it is Python specific.
5724 (auto_load_scripts): Rename to ...
5725 (auto_load_python_scripts): ... here, update the comment.
5726 (gdbpy_load_auto_script_for_objfile): New declaration.
5727 (show_auto_load_python_scripts, script_language_python)
5728 (gdbpy_load_auto_script_for_objfile): New.
5729 (source_section_scripts): Refactor the code.
5730 (load_auto_scripts_for_objfile): Rename to ...
5731 (gdbpy_load_auto_scripts_for_objfile): ... here, update the
5732 auto_load_objfile_script caller, drop GDBPY_GLOBAL_AUTO_LOAD checking.
5733 (info_auto_load_python_scripts): New.
5734 (gdbpy_initialize_auto_load): New variables cmd and cmd_name.
5735 Rename "set auto-load-scripts" to "set auto-load python-scripts".
5736 Register "set auto-load-scripts" as its deprecated alias. Register
5737 "info auto-load python-scripts". Register "info auto-load-scripts" as
5738 its deprecated alias.
5739 (load_auto_scripts_for_objfile): Rename to ...
5740 (gdbpy_load_auto_scripts_for_objfile): ... here.
5741 * python/python.h (load_auto_scripts_for_objfile): Rename to ...
5742 (gdbpy_load_auto_scripts_for_objfile): ... here.
5743
e2207b9a
JK
57442012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5745
5746 auto-load: Move files.
5747 * Makefile.in (SFILES): Add auto-load.c.
5748 (HFILES_NO_SRCDIR): Add auto-load.h.
5749 (COMMON_OBS): Add auto-load.o.
5750 (distclean): Change .gdbinit for gdb-gdb.gdb.
5751 * auto-load.c: New file, with parts from python/py-auto-load.c.
5752 * auto-load.h: New file, with parts from python/python.h.
5753 * configure: Regenerate.
5754 * configure.ac (AC_OUTPUT): Change .gdbinit for gdb-gdb.gdb.
5755 * gdb-gdb.gdb.in: New file, renamed from gdbinit.in.
5756 * gdbinit.in: Remove file, rename it to gdb-gdb.gdb.in.
5757 * main.c: Include auto-load.h.
5758 * python/py-auto-load.c: Move include filenames.h, gdb_regex.h,
5759 command.h, observer.h and progspace.h to auto-load.c. Add include
5760 auto-load.h.
5761 (gdbpy_global_auto_load, struct auto_load_pspace_info)
5762 (struct loaded_script, auto_load_pspace_data)
5763 (auto_load_pspace_data_cleanup, get_auto_load_pspace_data)
5764 (hash_loaded_script_entry, eq_loaded_script_entry)
5765 (init_loaded_scripts_info, get_auto_load_pspace_data_for_loading)
5766 (maybe_add_script): Move to auto-load.c.
5767 (source_section_scripts): Change maybe_add_script parameters passing,
5768 use script_not_found_warning_print.
5769 (clear_section_scripts, auto_load_objfile_script)
5770 (auto_load_new_objfile, loaded_script_ptr)
5771 (DEF_VEC_P (loaded_script_ptr), collect_matching_scripts, print_script)
5772 (sort_scripts_by_name, info_auto_load_scripts): Move to auto-load.c.
5773 (gdbpy_initialize_auto_load): Move auto_load_pspace_data,
5774 auto_load_new_objfile and info_auto_load_scripts initizations to
5775 auto-load.c.
5776 * python/python.h (gdbpy_global_auto_load): Move to auto-load.h.
5777
e4ab2fad
JK
57782012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5779
5780 Code cleanup.
5781 * charset.c (find_charset_names): Remove variables ix and elt.
5782 Use free_char_ptr_vec.
5783 * elfread.c (build_id_to_debug_filename): New variables debugdir_vec,
5784 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
5785 debugdir_end. New variable debugdir_len.
5786 * gdb_vecs.h (free_char_ptr_vec, make_cleanup_free_char_ptr_vec)
5787 (dirnames_to_char_ptr_vec_append, dirnames_to_char_ptr_vec): New
5788 declarations.
5789 * progspace.c (clear_program_space_solib_cache): Remove variables ix
5790 and elt. Use free_char_ptr_vec.
5791 * source.c (add_path): Remove variables argv, arg and argv_index.
5792 New variables dir_vec, back_to, ix and name.
5793 Use dirnames_to_char_ptr_vec_append. Use freeargv instead of
5794 make_cleanup_freeargv. Remove variable separator. Simplify the code
5795 no longer expecting DIRNAME_SEPARATOR.
5796 (openp): Remove variable p, p1 and len. New variables dir_vec,
5797 back_to, ix and dir. Use dirnames_to_char_ptr_vec. Simplify the code
5798 no longer expecting DIRNAME_SEPARATOR.
5799 * symfile.c (find_separate_debug_file): New variables debugdir_vec,
5800 back_to and ix. Use dirnames_to_char_ptr_vec. Remove variable
5801 debugdir_end.
5802 * utils.c (free_char_ptr_vec, do_free_char_ptr_vec)
5803 (make_cleanup_free_char_ptr_vec, dirnames_to_char_ptr_vec_append)
5804 (dirnames_to_char_ptr_vec): New functions.
5805
5ee4ed9f
JK
58062012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5807
5808 Code cleanup.
5809 * source.c (add_path): Remove always true conditional 'p == 0' and
5810 unindent its code block.
5811
f41f5e61
PA
58122012-04-17 Pedro Alves <palves@redhat.com>
5813
5814 * gdbtypes.h (FIELD_BITPOS): Rename to ...
5815 (FIELD_BITPOS_LVAL): ... this.
5816 (FIELD_BITPOS): New.
5817 (SET_FIELD_BITPOS): Adjust to use FIELD_BITPOS_LVAL.
5818 * dwarf2read.c (dwarf2_add_field): Use SET_FIELD_BITPOS.
5819 * gdbtypes.c (append_composite_type_field_aligned): Adjust to use
5820 SET_FIELD_BITPOS.
5821 * gnu-v3-abi.c (build_gdb_vtable_type): Adjust to use
5822 SET_FIELD_BITPOS.
5823 * stabsread.c (read_cpp_abbrev, read_one_struct_field)
5824 (read_baseclasses): Adjust to use SET_FIELD_BITPOS.
5825 * target-descriptions.c (tdesc_gdb_type): Adjust to use
5826 SET_FIELD_BITPOS.
5827
945b3a32
JK
58282012-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
5829
5830 Do not rely on FIELD_LOC_KIND_BITPOS being zero.
5831 * ada-lang.c (ada_template_to_fixed_record_type_1): Replace
5832 TYPE_FIELD_BITPOS used as lvalue by SET_FIELD_BITPOS.
5833 * gdbtypes.c (append_flags_type_flag): Likewise, twice.
5834 * jv-lang.c (java_link_class_type): Likewise, once.
5835 * stabsread.c (read_enum_type): Likewise.
5836
42476b70
YQ
58372012-04-16 Yao Qi <yao@codesourcery.com>
5838
5839 * common/agent.c (agent_run_command): Add one more parameter `len'.
5840 Update callers.
5841 * common/agent.h: Update declaration.
5842 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
5843 Update.
5844 (linux_child_static_tracepoint_markers_by_strid): Ditto.
5845
8264ba82
AG
58462012-04-14 Anton Gorenkov <xgsa@yandex.ru>
5847
5848 PR mi/13393
5849 * value.c (value_actual_type): New function.
5850 * value.h (value_actual_type): New declaration.
5851 * varobj.c (update_type_if_necessary): New function.
5852 (varobj_create): Call value_actual_type instead of
5853 value_type.
5854 (install_dynamic_child): distinct changed and type changed MI variable
5855 objects.
5856 (update_dynamic_varobj_children): Updated for install_dynamic_child
5857 change. All callers updated.
a09130f9 5858 (varobj_update): Support for MI variable object type change if
8264ba82
AG
5859 the value changed and RTTI is used to determine the type.
5860 (create_child_with_value): Call value_actual_type instead of
5861 value_type.
a09130f9 5862 (adjust_value_for_child_access): Extended with a new parameter which
8264ba82
AG
5863 specify whether the given value should be casted to enclosing type.
5864 All callers updated.
5865
55a8c076
YQ
58662012-04-14 Yao Qi <yao@codesourcery.com>
5867
5868 Import gnulib module inttypes from git
5869 (250b80067c1e1d8faa0c42fb572f721975b929c5)
5870 * Makefile.in (HFILES_NO_SRCDIR): Add gnulib/inttypes.in.h.
a09130f9
PA
5871 (aclocal_m4_deps): Add gnulib/m4/inttypes.m4 and
5872 gnulib/m4/inttypes-pri.m4
55a8c076
YQ
5873 * aclocal.m4, config.in, configure: Regenerated.
5874 * gnulib/Makefile.am: Update.
5875 * gnulib/Makefile.in: Update.
5876 * gnulib/m4/gnulib-cache.m4: Update.
5877 * gnulib/m4/gnulib-comp.m4: Update.
5878 * gnulib/inttypes.in.h: New.
5879 * gnulib/m4/inttypes-pri.m4: New.
a09130f9 5880 * gnulib/m4/inttypes.m4: New.
55a8c076 5881
ca7781d2
LM
58822012-04-13 Luis Machado <lgustavo@codesourcery.com>
5883
5884 * infrun.c (resume): Update PC address to the real PC after
5885 preparing to do displaced stepping.
5886
e319fa28
DE
58872012-04-12 Doug Evans <dje@google.com>
5888
5889 * dwarf2read.c (lookup_signatured_type): Remove arg "objfile", unused.
5890 All callers updated.
5891
15add3f5
MK
58922012-04-12 Mark Kettenis <kettenis@gnu.org>
5893
5894 * i386bsd-nat.c (_initialize_i386bsd_nat): Add missing prototype.
5895
52dc124a
DE
58962012-04-12 Doug Evans <dje@google.com>
5897
0e50663e
DE
5898 * dwarf2read.c (create_all_type_units): Renamed from
5899 create_debug_types_hash_table. All callers updated.
5900
52dc124a
DE
5901 * dwarf2read.c (create_signatured_type_table_from_index): Rename
5902 local type_sig to sig_type, type_offset to type_offset_in_tu.
5903 (hash_signatured_type): Renamed from hash_type_signature,
5904 all callers updated.
5905 (eq_signatured_type): Renamed from eq_type_signature,
5906 all callers updated.
5907 (create_debug_types_hash_table): Rename local type_sig to sig_type.
5908 (process_enumeration_scope): Ditto.
5909 (lookup_signatured_type_at_offset): Ditto.
5910 (load_full_type_unit, read_signatured_type): Ditto.
5911
248fd3bf
YQ
59122012-04-12 Yao Qi <yao@codesourcery.com>
5913
5914 * remote.c (async_remote_interrupt): Correct function name in
5915 debug message.
5916 (async_remote_interrupt_twice): Ditto.
5917
bc3aa6c3
DE
59182012-04-11 Yuanhui Zhang <asmwarrior@gmail.com>
5919
5920 * source.c (find_and_open_source): Consistently pass resulting
5921 full path through xfullpath.
5922
9e529e1d
JK
59232012-04-11 Jan Kratochvil <jan.kratochvil@redhat.com>
5924
5925 Provide more specific displaced-stepping memory error message.
5926 * infrun.c (displaced_step_prepare): New variable status. Call
5927 target_read_memory instead of read_memory, provide more specific
5928 error message.
5929
82e0cec1
TG
59302012-04-11 Tristan Gingold <gingold@adacore.com>
5931
5932 PR gdb/13901
5933 * darwin-nat.c (darwin_execvp): Revert previous patch.
5934
d987a266
TG
59352012-04-11 Tristan Gingold <gingold@adacore.com>
5936
5937 PR gdb/13901
5938 * darwin-nat.c (darwin_resume_thread): Call darwin_set_sstep only
5939 in case of change.
5940
016b7430
TG
59412012-04-11 Tristan Gingold <gingold@adacore.com>
5942
5943 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
5944 warning.
5945
06fc020f
SCR
59462012-04-11 Siva Chandra Reddy <sivachandra@google.com>
5947
5948 New command 'explore' which helps explore values and types in
5949 scope.
5950 * NEWS: Add an entry about the new 'explore' command.
5951 * data-directory/Makefile.in: Add gdb/command/explore.py
5952 * python/lib/gdb/command/explore.py: Implemention of the 'explore'
a09130f9 5953 command using the GDB Python API.
06fc020f 5954
de0919f8 59552012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
34b192ce
MR
5956
5957 * mips-tdep.c (mips_skip_pic_trampoline_code): Correct sign
5958 extension in jump target calculation.
5959
de0919f8 59602012-04-10 Maciej W. Rozycki <macro@codesourcery.com>
9e8da49c
MR
5961
5962 * mips-tdep.c (mips32_next_pc): Handle JALX.
5963
2f26ef89
YQ
59642012-04-10 Yao Qi <yao@codesourcery.com>
5965
5966 * Makefile.in (gnulib/Makefile): Remove duplicated dependency.
5967
2e505b66
YQ
59682012-04-10 Yao Qi <yao@codesourcery.com>
5969
5970 * Makefile.in (aclocal_m4_deps): Add gnulib/m4/gnulib-cache.m4
5971 and gnulib/m4/gnulib-tool.m4.
5972
0d99eb77
DE
59732012-04-10 Doug Evans <dje@google.com>
5974
5975 * dwarf2read.c (dwarf2_per_cu_data). Clarify comment.
5976 (load_partial_dies): Clarify comment.
5977 (find_partial_die): Support rereading type units.
5978 Clarify CU handling, if we know offset is in CU, don't search for the
5979 containing CU. Add comment regarding memory waste.
5980
9a82b8ff
L
59812012-04-10 H.J. Lu <hongjiu.lu@intel.com>
5982
5983 * features/Makefile (WHICH): Add i386/x32, i386/x32-linux,
5984 i386/x32-avx and i386/x32-avx-linux.
5985 (i386/x32-expedite): New.
5986 (i386/x32-linux-expedite): Likewise.
5987 (i386/x32-avx-expedite): Likewise.
5988 (i386/x32-avx-linux-expedite): Likewise.
5989 ($(outdir)/i386/x32.dat): Likewise.
5990 ($(outdir)/i386/x32-linux.dat): Likewise.
5991 ($(outdir)/i386/x32-avx.dat): Likewise.
5992 ($(outdir)/i386/x32-avx-linux.dat): Likewise.
5993
5994 * features/i386/x32-avx-linux.xml: New file.
5995 * features/i386/x32-avx.xml: Likewise.
5996 * features/i386/x32-core.xml: Likewise.
5997 * features/i386/x32-linux.xml: Likewise.
5998 * features/i386/x32.xml: Likewise.
5999
6000 * features/i386/x32-avx-linux.c: New. Generated.
6001 * features/i386/x32-avx.c: Likewise.
6002 * features/i386/x32-linux.c: Likewise.
6003 * features/i386/x32.c: Likewise.
6004 * regformats/i386/x32-avx-linux.dat: Likewise.
6005 * regformats/i386/x32-avx.dat: Likewise.
6006 * regformats/i386/x32-linux.dat: Likewise.
6007 * regformats/i386/x32.dat: Likewise.
6008
ee41036f
TG
60092012-04-10 Tristan Gingold <gingold@adacore.com>
6010
6011 * darwin-nat.c (darwin_kill_inferior): Always use the no ptrace
6012 code to kill the inferior.
6013
a7aa5b8a
MK
60142012-04-09 Mark Kettenis <kettenis@gnu.org>
6015
6016 * ada-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6017 defines.
6018 * c-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6019 defines.
a09130f9 6020 * cp-name-parser.y (yyss, yysslim, yyssp, yystacksize, yyvs)
a7aa5b8a
MK
6021 (yyvsp): New defines.
6022 * f-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6023 defines.
6024 * jv-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6025 defines.
6026 * m2-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6027 defines.
6028 * objc-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6029 defines.
6030 * p-exp.y (yyss, yysslim, yyssp, yystacksize, yyvs, yyvsp): New
6031 defines.
6032
fb57d452
MK
60332012-04-09 Mark Kettenis <kettenis@gnu.org>
6034
a09130f9 6035 * sparc64-tdep.c (sparc64_store_arguments)
fb57d452
MK
6036 (sparc64_store_arguments): Fix coding style.
6037
cdc7b32f
MK
60382012-04-07 Mark Kettenis <kettenis@gnu.org>
6039
6040 * sparc64-tdep.c (sparc64_store_arguments): Fix handling of
6041 complex floats, adjust some related comments and tighten a related
6042 assertion.
6043 (sparc64_extract_return_value): Handle complex floats.
6044
7adf1e79
DE
60452012-04-07 Doug Evans <dje@google.com>
6046
6047 * dwarf2read.c (load_partial_dies): Change condition to assert.
6048
50f1ae7b
DE
60492012-04-06 Doug Evans <dje@google.com>
6050
6051 * amd64-tdep.c (amd64_analyze_prologue): Recognize both variations of
6052 "mov %rsp,%rbp".
6053
55fa75c3
KB
60542012-04-05 Kevin Buettner <kevinb@redhat.com>
6055
6056 * v850-tdep.c (E_NUM_OF_V850_REGS, E_NUM_OF_V850E_REGS): Fix
6057 fencepost error.
6058 (v850_frame_cache): Use gdbarch_num_regs() instead of E_NUM_REGS.
6059 (v850_gdbarch_init): Set `num_regs' as appropriate for the
6060 architecture.
6061
40e084e1
KS
60622012-04-05 Keith Seitz <keiths@redhat.com>
6063
6064 * linespec.c (decode_compound): Remove.
6065 (enum offset_relative_sign): New enum.
6066 (struct line_offset): New struct.
6067 (struct linespec): New struct.
6068 (struct linespec_state): Move file_symtabs,
6069 user_filename, and user_function into struct linespec.
6070 Make result an anonymous struct holding vectors of
6071 symbolp and minsym_and_objfile_d.
6072 Add language member.
6073 (enum ls_token_type): New enum.
6074 (linespec_keywords): New array.
6075 (struct ls_token): New struct.
6076 (struct ls_parser): New struct.
6077 (linespec_lexer_lex_number): New function.
6078 (linespec_lexer_lex_keyword): New function.
6079 (is_ada_operator): New function.
6080 (skip_quote_char): New function.
6081 (copy_token_string): New function.
6082 (is_closing_quote_enclosed): New function.
6083 (find_parameter_list_end): New function.
6084 (linespec_lexer_lex_string): New function.
6085 (linespec_lexer_lex_one): New function.
6086 (linespec_lexer_consume_token): New function.
6087 (linespec_lexer_peek_token): New function.
6088 (cplusplus_error): Remove unused function.
6089 (find_methods): Update comment.
6090 (find_toplevel_char): Return const.
6091 (is_objc_method_format): Remove unused function.
6092 (find_toplevel_string): New function.
6093 (is_linespec_boundary): Remove.
6094 (symbol_not_found_error): New function.
6095 (find_method_overload_end): Remove function.
6096 (unexpected_linespec_error): New function.
6097 (keep_name_info): Remove.
6098 (linespec_parse_line_offset): New function.
6099 (linespec_parse_basic): New function.
6100 (canonicalize_linespec): New function.
6101 (decode_line_internal): Remove.
6102 (create_sals_line_offset): New function adapted from
6103 decode_all_digits.
6104 (convert_linespec_to_sals): New function.
6105 (parse_linespec): New function.
6106 (linespec_parser_new): New function.
6107 (linespec_state_destructor): Change parameter type to
6108 struct linespec_state *.
6109 Add language parameter.
6110 Remove freeing of moved members.
6111 (linespec_parser_delete): New function.
6112 (decode_line_full): Use parse_linespec and linespec_parser_new.
6113 (decode_line_1): Likewise.
6114 (decode_indirect): Rename to ...
6115 (linespec_expression_to_pc): ... this and rewrite
6116 to simply find CORE_ADDR, storing this result for later
6117 conversion to SALs.
6118 (locate_first_half): Remove.
6119 (deocde_objc): Add parameter LS.
6120 Initialize new struct collect_info members.
6121 Handle minimal symbols, too.
6122 (decode_compound): Delete.
6123 (lookup_prefix_sym): Rewrite.
6124 (compare_msymbols): New function.
6125 (find_method): Rewrite.
6126 Do not call cplusplus_error.
6127 (symtabs_from_filename): Rewrite.
6128 (collect_function_symbols): Delete.
6129 (find_function_symbols): Rewrite without ARGPTR-style
6130 processing.
6131 (decode_all_digits): Delete. (Rewritten as create_sals_line_offset.)
6132 (decode_dollar): Adapted and renamed to ...
6133 (linespec_parse_variable): ... this.
6134 (find_linespec_symbols): New function.
6135 (decode_label): Adapted and renamed to ...
6136 (find_label_symbols): ... this.
6137 (decode_digits_list_mode): Add and use LS argument.
6138 (decode_digits_ordinary): Likewise.
6139 (collect_symbols): Do not collect SALs, just symbols and msymbols.
6140 If in list mode, allow any symbol class. Otherwise, only
6141 permit LOC_BLOCK symbols.
6142 (minsym_found): Update comments.
6143 (search_minsyms_for_name): Do not convert the matching symbol
6144 into a SAL. Simply push the symbol and objfile into the
6145 result vector.
6146 (decode_variable): Delete. Contents adapted into
6147 find_linespec_symbols.
6148
6149 * cp-support.c (SKIP_SPACE): Remove.
6150 (operator_tokens): Remove unused global.
6151 (cp_validate_operator): Remove.
6152 * cp-support.h (cp_validate_operator): Remove declaration.
6153
a72c8f6a
JK
61542012-04-03 Jan Kratochvil <jan.kratochvil@redhat.com>
6155
6156 * cp-valprint.c (cp_print_value_fields): Check valprint_check_validity
6157 for TYPE_VPTR_FIELDNO.
6158 * valprint.c (valprint_check_validity): Make it global, move the
6159 function comment ...
6160 * value.h (valprint_check_validity): ... to this new declaration.
6161
cf9bb588
TG
61622012-04-02 Tristan Gingold <gingold@adacore.com>
6163
6164 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Use
6165 the STATE32 api for i386 state.
6166 (i386_darwin_store_inferior_registers): Likewise.
6167
17092398
TG
61682012-04-02 Tristan Gingold <gingold@adacore.com>
6169
6170 * i386-darwin-tdep.c (i386_darwin_thread_state_reg_offset): Fix
6171 SS offset.
6172 * i386-darwin-nat.c (i386_darwin_fetch_inferior_registers): Fix
6173 format_string.
6174
ece0061f
TG
61752012-04-02 Tristan Gingold <gingold@adacore.com>
6176
6177 PR gdb/13901
d987a266 6178 * darwin-nat.c (darwin_execvp): Set binary preference.
ece0061f 6179
cf65ecd3
JK
61802012-04-02 Jan Kratochvil <jan.kratochvil@redhat.com>
6181
6182 * NEWS (set breakpoint condition-evaluation): Use imperative mood.
6183
9bc3523d
TT
61842012-03-30 Tom Tromey <tromey@redhat.com>
6185
6186 * python/python.c (gdbpy_decode_line): Move cleanup creation out
6187 of TRY_CATCH. Fix error handling.
6188 * python/py-value.c (convert_value_from_python): Move 'old'
6189 declaration to innermost scope.
6190
b1ed564a
JB
61912012-03-29 Joel Brobecker <brobecker@adacore.com>
6192 Andrey Smirnov <andrew.smirnov@gmail.com>
6193
6194 -Wshadow warning fix.
6195 * ada-lang.c (ada_make_symbol_completion_list): Rename parameters
6196 "wild_match" and "encoded" into "wild_match_p" and "encoded_p".
6197 Adjust code accordingly.
6198
cb8e9b97
JB
61992012-03-29 Joel Brobecker <brobecker@adacore.com>
6200
6201 * ada-lang.c (symbol_completion_add): Rename parameter
6202 "encoded" into "encoded_p". Ajust code and documentation
6203 accordingly.
6204
c0af1706
JB
62052012-03-29 Joel Brobecker <brobecker@adacore.com>
6206 Andrey Smirnov <andrew.smirnov@gmail.com>
6207
6208 -Wshadow warning fix.
6209 * ada-lang.c (symbol_completion_add): Rename parameter
6210 "wild_match" into wild_match_p. Update code and documentation
6211 accordingly.
6212
6ea35997
JB
62132012-03-29 Joel Brobecker <brobecker@adacore.com>
6214
6215 * ada-lang.c (symbol_completion_match): Rename parameter
6216 "encoded" into "encoded_p". Ajust code and documentation
6217 accordingly.
6218
e701b3c0
JB
62192012-03-29 Joel Brobecker <brobecker@adacore.com>
6220 Andrey Smirnov <andrew.smirnov@gmail.com>
6221
6222 -Wshadow warning fix.
6223 * ada-lang.c (symbol_completion_match): Rename parameter
6224 "wild_match" into "wild_match_p". Adjust code and function
6225 documentation accordingly.
6226
5e2336be
JB
62272012-03-29 Joel Brobecker <brobecker@adacore.com>
6228 Andrey Smirnov <andrew.smirnov@gmail.com>
6229
6230 -Wshadow warning fix.
6231 * ada-lang.c (ada_lookup_encoded_symbol): Rename parameter
6232 "symbol_info" into "info". Adjust code accordingly.
6233 (ada_lookup_symbol): Likewise.
6234
9f88c959
JB
62352012-03-29 Joel Brobecker <brobecker@adacore.com>
6236
6237 * ada-lang.c (ada_lookup_symbol_list): Minor reformatting
6238 of this function's documentation.
6239
82ccd55e
JB
62402012-03-29 Joel Brobecker <brobecker@adacore.com>
6241 Andrey Smirnov <andrew.smirnov@gmail.com>
6242
6243 -Wshadow warning fix.
6244 * ada-lang.c (ada_lookup_symbol_list): Rename "wild_match"
6245 variable into "wild_match_p". Adjust code accordingly.
6246
d0a8ab18
JB
62472012-03-29 Joel Brobecker <brobecker@adacore.com>
6248 Andrey Smirnov <andrew.smirnov@gmail.com>
6249
6250 -Wshadow warning fix.
6251 * ada-lang.c (ada_add_local_symbols): Rename "wild_match"
6252 parameter into "wild_match_p". Adjust code accordingly.
6253 Document this parameter in the function description.
6254
48b78332
JB
62552012-03-29 Joel Brobecker <brobecker@adacore.com>
6256 Andrey Smirnov <andrew.smirnov@gmail.com>
6257
6258 -Wshadow warning fix.
6259 * ada-lang.c (add_symbols_from_enclosing_procs): Rename
6260 "wild_match" parameter to "wild_match_p" (-Wshadow).
6261
2e6e0353
JB
62622012-03-29 Joel Brobecker <brobecker@adacore.com>
6263
6264 * ada-lang.c (ada_lookup_simple_minsym): Remove trailing spaces
6265 in function documentation.
6266
dc4024cd
JB
62672012-03-29 Joel Brobecker <brobecker@adacore.com>
6268 Andrey Smirnov <andrew.smirnov@gmail.com>
6269
6270 -Wshadow warning fix.
6271 * ada-lang.c (ada_lookup_simple_minsym): Rename wild_match local
6272 variable into wild_match_p. Adjust code accordingly.
6273
6c88661c
JB
62742012-03-29 Joel Brobecker <brobecker@adacore.com>
6275 Andrey Smirnov <andrew.smirnov@gmail.com>
6276
6277 * ada-valprint.c (ada_val_print_1): Move the code handling
6278 TYPE_CODE_ENUM inside its own lexical block. Declare
6279 variables len and val there, instead of in the function's
6280 top level block. Avoid declaring deref_val again in a way
6281 that shadows another variable of the same name declared
6282 in one of the up-level blocks. Just re-use the up-level
6283 variable instead.
6284
4e5c77fe
JB
62852012-03-29 Joel Brobecker <brobecker@adacore.com>
6286
6287 * ada-lang.c (ada_lookup_encoded_symbol): Now returns void.
6288 Replace block_found argument by symbol_info. Adjust
6289 implementation accordingly. Add function documentation.
6290 (ada_lookup_symbol): Adjust to new ada_lookup_encoded_symbol.
6291 Fix documentation.
6292 * ada-lang.h (ada_lookup_encoded_symbol): Update declaration.
6293 * ada-exp.y (write_object_renaming): Adjust to new
6294 ada_lookup_encoded_symbol API.
6295
1c0ac8c7
JB
62962012-03-29 Joel Brobecker <brobecker@adacore.com>
6297
6298 * ada-lang.h (struct ada_symbol_info): Reformat. Improve
6299 documentation.
6300
2aaed979
KB
63012012-03-28 Rathish C <rathish.c@kpitcummins.com>
6302
6303 * v850-tdep.c: Add the enum values for mpu and fpu registers.
6304 (v850_register_name): Add the mpu and fpu register names.
6305 (v850e_register_name): Add the mpu and fpu register names.
6306 (v850e2_register_name): New function.
a09130f9 6307 (v850_gdbarch_init): Add case for bfd_mach_v850e2 and
2aaed979
KB
6308 bfd_mach_v850e2v3.
6309
927fbba6
JB
63102012-03-28 Joel Brobecker <brobecker@adacore.com>
6311
6312 * NEWS: Add entry for Ada varobj support.
6313
d32cafc7
JB
63142012-03-28 Joel Brobecker <brobecker@adacore.com>
6315
6316 * varobj.c (default_value_is_changeable_p): New function,
6317 extracted from varobj_value_is_changeable_p. Add declaration.
6318 (ada_value_is_changeable_p): New function, extracted from
6319 varobj_value_is_changeable_p. Add declaration.
6320 (struct language_specific): New field "value_is_changeable_p".
6321 (languages): Add entries for new field.
6322 (varobj_create): Set language before calling install_new_value.
6323 (varobj_value_is_changeable_p): Reimplement to call the varobj's
6324 "value_is_changeable_p" language callback.
6325
181875a4
JB
63262012-03-28 Joel Brobecker <brobecker@adacore.com>
6327
6328 * ada-varobj.h, ada-varobj.c: New files.
6329 * Makefile.in (SFILES): Add ada-varobj.c.
6330 (HFILES_NO_SRCDIR): Add ada-varobj.h.
6331 (COMMON_OBS): Add ada-varobj.o.
6332
7a290c40
JB
63332012-03-28 Joel Brobecker <brobecker@adacore.com>
6334
6335 * varobj.c (ada_value_has_mutated): Add declaration. New function.
6336 (struct language_specific): New field "value_has_mutated".
6337 (languages): Set field "value_has_mutated" in each entry of array.
6338 (varobj_value_has_mutated): New function.
6339 (varobj_udpdate): Add handling of type mutation.
6340 (value_of_root): Add handling of type mutation.
6341 (ada_value_has_mutated): New function.
6342
ca9b8b9c
PA
63432012-03-28 Pedro Alves <palves@redhat.com>
6344
6345 * ia64-linux-nat.c (supply_fpregset, ia64_linux_fetch_register):
6346 Always supply $fr0 as 0.0 and $fr1 as 1.0.
6347
cc0265cd
TT
63482012-03-28 Tom Tromey <tromey@redhat.com>
6349
6350 * python/py-inferior.c (infpy_read_memory): Remove cleanups and
6351 explicitly free 'buffer' on exit paths. Decref 'membuf_object'
6352 before returning.
6353
3ad2ec6f
TT
63542012-03-28 Tom Tromey <tromey@redhat.com>
6355
6356 * .dir-locals.el: New file.
6357
4a6510ba
PA
63582012-03-28 Pedro Alves <palves@redhat.com>
6359
6360 * ia64-linux-nat.c (u_offsets): Map IA64_EC_REGNUM to PT_AR_EC.
6361
5a75128f
JB
63622012-03-28 Joel Brobecker <brobecker@adacore.com>
6363
6364 * ia64-linux-nat.c (ia64_linux_fetch_register): Add special
6365 handling for r0.
6366
f99d8bf4
PA
63672012-03-27 Pedro Alves <palves@redhat.com>
6368
6369 Eliminate struct ui_stream.
6370
6371 * ui-out.h (struct ui_stream): Delete.
6372 (ui_out_field_stream): Adjust prototype.
6373 (ui_out_stream_new, ui_out_stream_delete)
6374 (make_cleanup_ui_out_stream_delete): Delete declarations.
6375 * ui-out.c (ui_out_field_stream): Change prototype to take a
6376 ui_file instead of a ui_stream. Adjust.
6377 (ui_out_stream_new, ui_out_stream_delete, do_stream_delete)
6378 (make_cleanup_ui_out_stream_delete): Delete.
6379 * breakpoint.c (print_breakpoint_location)
6380 (print_one_detail_ranged_breakpoint, print_it_watchpoint): Use
6381 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6382 * disasm.c (dump_insns): Ditto.
6383 (do_mixed_source_and_assembly, do_assembly_only): Adjust
6384 prototype.
6385 (gdb_disassembly): Use ui_file/mem_fileopen instead of
6386 ui_stream/ui_out_stream_new.
6387 * infcmd.c (print_return_value): Ditto.
6388 * osdata.c (info_osdata_command): Don't allocate a local
6389 ui_stream.
6390 * stack.c (print_frame_arg, print_frame_args, print_frame): Use
6391 ui_file/mem_fileopen instead of ui_stream/ui_out_stream_new.
6392 * tracepoint.c (print_one_static_tracepoint_marker): Don't
6393 allocate a local ui_stream.
6394 * mi/mi-cmd-stack.c (list_arg_or_local): Use ui_file/mem_fileopen
6395 instead of ui_stream/ui_out_stream_new.
6396 (list_args_or_locals): Don't allocate a local ui_stream.
6397 * mi/mi-main.c (get_register, mi_cmd_data_evaluate_expression)
6398 (mi_cmd_data_read_memory): Use ui_file/mem_fileopen instead of
6399 ui_stream/ui_out_stream_new.
6400 * cli/cli-setshow.c (do_setshow_command): Ditto.
6401
6350a066 64022012-03-27 Oza Pawandeep <oza.pawandeep@gmail.com>
72508ac0 6403
6350a066
PA
6404 * arm-linux-tdep.c (arm_linux_init_abi): Call
6405 set_gdbarch_process_record. Initialize `arm_swi_record' field.
6406 * arm-tdep.c (arm_process_record): New function.
6407 (deallocate_reg_mem): New function.
6408 (decode_insn): New function.
6409 (thumb_record_branch): New function.
6410 (thumb_record_ldm_stm_swi(): New function.
6411 (thumb_record_misc): New function.
6412 (thumb_record_ld_st_stack): New function.
6413 (thumb_record_ld_st_imm_offset): New function.
6414 (thumb_record_ld_st_reg_offset(): New function.
6415 (thumb_record_add_sub_cmp_mov): New function.
6416 (thumb_record_shift_add_sub): New function.
6417 (arm_record_coproc_data_proc): New function.
6418 (arm_record_coproc): New function.
6419 (arm_record_b_bl): New function.
6420 (arm_record_ld_st_multiple): New function.
6421 (arm_record_ld_st_reg_offset): New function.
6422 (arm_record_ld_st_imm_offset): New function.
6423 (arm_record_data_proc_imm): New function.
6424 (arm_record_data_proc_misc_ld_str): New function.
6425 (arm_record_extension_space): New function.
6426 (arm_record_strx): New function.
6427 (sbo_sbz): New function.
6428 (struct insn_decode_record): New structure for arm insn record.
6429 (REG_ALLOC): New macro for reg allocations.
6430 (MEM_ALLOC): New macro for memory allocations.
6431 * arm-tdep.h (struct gdbarch_tdep): New field 'arm_swi_record'.
72508ac0 6432
89e028e2
AS
64332012-03-27 Andreas Schwab <schwab@linux-m68k.org>
6434
6435 * m68klinux-nat.c (fetch_register): Fix strict-aliasing violation.
6436 (store_register): Likewise.
6437
6350a066 64382012-03-26 Oza Pawandeep <oza.pawandeep@gmail.com>
3d9a9eb0 6439
6350a066 6440 * MAINTAINERS (Write After Approval): Add myself to the list.
3d9a9eb0 6441
5b43fab2
JK
64422012-03-25 Jan Kratochvil <jan.kratochvil@redhat.com>
6443
6444 * NEWS (set breakpoint condition-evaluation): Change "gdb" to "host".
6445 Describe also the option "auto".
6446
b5453b95
RH
64472012-03-22 Richard Henderson <rth@redhat.com>
6448
6449 * sparc-linux-nat.c (_initialize_sparc_linux_nat): Fix prototype.
6450 * sparc-nat.c (sparc_xfer_wcookie): Make static.
6451
227ee7fc
RH
64522012-03-22 Richard Henderson <rth@redhat.com>
6453
6454 * jit.c (jit_read_code_entry): Compute alignment and offset of
6455 int64_t member before computing entry_size.
6456
7b282c5a
SCR
64572012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6458
6459 Python scripting: Add new method Value.referenced_value to
6460 gdb.Value which can dereference pointer as well as reference
6461 values.
6462 * NEWS: Add entry under 'Python scripting' about the new method
6463 Value.referenced_value on gdb.Value objects.
6464 * python/py-value.c (valpy_referenced_value): New function
6465 defining a new method on gdb.Value objects which can dereference
6466 pointer and reference values.
6467
0c83539f
SCR
64682012-03-22 Siva Chandra Reddy <sivachandra@google.com>
6469
6470 * MAINTAINERS (Write After Approval): Add myself to the list.
6471
7ccffd7c
KB
64722012-03-21 Kevin Buettner <kevinb@redhat.com>
6473
6474 * symtab.c (skip_prologue_sal): Change test to check for "main()"
6475 in addition to "main".
6476
bd0b9f9e
JB
64772012-03-21 Joel Brobecker <brobecker@adacore.com>
6478
6479 * expression.h (op_name): Add declaration.
6480 * expprint.c (op_name): Remove declaration. Make non-static.
6481 * ax-gdb.c (gen_expr): Use op_name instead of op_string.
6482
a5362b9a
TS
64832012-03-21 Thomas Schwinge <thomas@codesourcery.com>
6484
6485 * amd64-linux-nat.c (amd64_linux_siginfo_fixup): Use siginfo_t instead
6486 of struct siginfo.
6487 * arm-linux-nat.c (arm_linux_stopped_data_address): Likewise.
6488 * ia64-linux-nat.c (ia64_linux_stopped_data_address): Likewise.
6489 * linux-nat.c (linux_nat_siginfo_fixup, siginfo_fixup)
6490 (linux_xfer_siginfo, linux_nat_set_siginfo_fixup)
6491 (linux_nat_get_siginfo): Likewise.
6492 * linux-nat.h (struct lwp_info, linux_nat_set_siginfo_fixup)
6493 (linux_nat_get_siginfo): Likewise.
6494 * linux-tdep.c (linux_get_siginfo_type): Likewise.
6495 * ppc-linux-nat.c (ppc_linux_stopped_data_address): Likewise.
6496 * procfs.c (gdb_siginfo_t): Likewise.
6497
adcadaab
MF
64982012-03-21 Mike Frysinger <vapier@gentoo.org>
6499
6500 * .gitignore: Ignore more files.
6501
e278ad5b
PA
65022012-03-20 Pedro Alves <palves@redhat.com>
6503
6504 * remote.c (remote_start_remote): Clear `rs->starting_up' on early
6505 returns.
6506
741e63d7
YQ
65072012-03-20 Yao Qi <yao@codesourcery.com>
6508
6509 * amd64-tdep.c (amd64_displaced_step_copy_insn): Complete missing "}" in
6510 comment.
6511
b64f50a1
JK
65122012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6513
6514 Code cleanupp: Use cu_offset and sect_offset compile time type checking.
6515 * dwarf2expr.c (add_piece, dwarf_get_base_type, execute_stack_op)
6516 (ctx_no_dwarf_call, ctx_no_get_base_type): Use cu_offset and
6517 sect_offset.
6518 * dwarf2expr.h (cu_offset, sect_offset): New types.
6519 (struct dwarf_expr_context_funcs) <dwarf_call>
6520 (struct dwarf_expr_context_funcs) <get_base_type>: Use cu_offset and
6521 sect_offset.
6522 (struct dwarf_expr_context) <len>: Improve the comment.
6523 (struct dwarf_expr_piece, ctx_no_dwarf_call, ctx_no_get_base_type): Use
6524 cu_offset and sect_offset.
6525 * dwarf2loc.c (per_cu_dwarf_call, dwarf_expr_dwarf_call)
6526 (dwarf_expr_get_base_type, needs_frame_dwarf_call)
6527 (dwarf2_compile_expr_to_ax, disassemble_dwarf_expression): Likewise.
6528 * dwarf2loc.h: Include dwarf2expr.h.
6529 (dwarf2_fetch_die_location_block, dwarf2_get_die_type): Use cu_offset
6530 and sect_offset.
6531 * dwarf2read.c (struct dwarf2_per_objfile) <debug_types_type_hash>:
6532 Improve the comment.
6533 (struct comp_unit_head, struct dwarf2_cu, struct dwarf2_per_cu_data)
6534 (struct signatured_type, struct line_header, struct partial_die_info)
6535 (struct die_info, find_partial_die, dwarf2_get_ref_die_offset)
6536 (lookup_signatured_type_at_offset, dwarf2_find_containing_comp_unit)
6537 (get_die_type_at_offset, create_cus_from_index)
6538 (create_signatured_type_table_from_index, dw2_get_file_names)
6539 (offset_in_cu_p, read_comp_unit_head, error_check_comp_unit_head)
6540 (read_and_check_comp_unit_head, read_and_check_type_unit_head)
6541 (create_debug_types_hash_table, process_psymtab_comp_unit)
6542 (load_partial_comp_unit, create_all_comp_units)
6543 (partial_die_parent_scope, partial_die_full_name, skip_one_die)
6544 (load_full_comp_unit, dwarf2_physname, read_import_statement)
6545 (inherit_abstract_dies, read_func_scope, read_call_site_scope)
6546 (dwarf2_add_member_fn, process_enumeration_scope, read_module_type)
6547 (read_typedef, die_hash, die_eq, read_full_die, dwarf2_read_abbrevs)
6548 (load_partial_dies, read_partial_die, find_partial_die_in_comp_unit)
6549 (find_partial_die, read_attribute_value, lookup_die_type)
6550 (dump_die_shallow, store_in_ref_table): Use cu_offset and sect_offset.
6551 (is_ref_attr): New function comment.
6552 (dwarf2_get_ref_die_offset): New function comment, new variable retval.
6553 Use cu_offset and sect_offset.
6554 (follow_die_offset, follow_die_ref, dwarf2_fetch_die_location_block)
6555 (dwarf2_get_die_type, follow_die_sig, lookup_signatured_type_at_offset)
6556 (load_full_type_unit, read_signatured_type, per_cu_header_read_in)
6557 (dwarf2_find_containing_comp_unit, struct dwarf2_offset_and_type)
6558 (offset_and_type_hash, offset_and_type_eq, set_die_type)
6559 (get_die_type_at_offset, partial_die_hash, partial_die_eq)
6560 (write_one_signatured_type, write_psymtabs_to_index): Use cu_offset and
6561 sect_offset.
6562
e97a38f7
JK
65632012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6564
6565 Code cleanup.
6566 * python/py-auto-load.c (source_section_scripts): New variable back_to.
6567 Turn fclose and xfree calls into make_cleanup_fclose and make_cleanup
6568 with xfree.
6569 (auto_load_objfile_script): Turn fclose into make_cleanup_fclose.
6570
8320cc4f
JK
65712012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6572
6573 * NEWS: Describe new options --init-command=FILE, -ix and
6574 --init-eval-command=COMMAND, -iex.
6575 * main.c (struct cmdarg): New enum items CMDARG_INIT_FILE and
6576 CMDARG_INIT_COMMAND.
6577 (captured_main): New enum items OPT_IX and OPT_IEX. Add
6578 "init-command", "init-eval-command", "ix" and "iex" to the variable
6579 long_options. Handle OPT_IX and OPT_IEX. Process them from CMDARG_VEC.
6580 New comment for CMDARG_FILE and CMDARG_COMMAND processing.
6581 (print_gdb_help): Describe --init-command=FILE, -ix and
6582 --init-eval-command=COMMAND, -iex.
6583
26743505
JK
65842012-03-19 Jan Kratochvil <jan.kratochvil@redhat.com>
6585
6586 Code cleanup.
6587 * main.c (struct cmdarg): Move it here from main. Add more comments.
6588 (cmdarg_s, VEC (cmdarg_s)): New.
6589 (main): Move struct cmdarg from here. New variables cmdarg_vec and
6590 cmdarg_p. Remove variables cmdsize and ncmd and their initialization.
6591 Install cleanup for cmdarg_vec. Update filling for options 'x' and
6592 'X'. Replace cmdarg processing by cmdarg_vec processing. Remove xfree
6593 of CMDARG.
6594
5ff5c7b4
TT
65952012-03-19 Tom Tromey <tromey@redhat.com>
6596
6597 * gnu-v3-abi.c (gnuv3_print_vtable): Initialize 'result_vec'.
6598
ab260dad
JK
65992012-03-16 Jan Kratochvil <jan.kratochvil@redhat.com>
6600
6601 PR symtab/13777
6602 * dwarf2read.c (process_full_comp_unit): Set LOCATIONS_VALID only for
6603 GCC >=4.5.
6604
c366c1f0
TT
66052012-03-16 Chris January <chris.january@allinea.com>
6606
6607 * tui-tui.win.c (tui_resize_all): Use erase and clearok instead
6608 of clear.
6609
e16edb45
TT
66102012-03-16 Chris January <chris.january@allinea.com>
6611
6612 * source.c (add_path): Use memmove instead of strcpy because the
6613 strings overlap.
6614
53ba8333
JB
66152012-03-16 Joel Brobecker <brobecker@adacore.com>
6616
6617 * value.h (set_value_parent): Add declaration.
6618 * value.c (set_value_parent): New function.
6619 (value_address): If VALUE->PARENT is not NULL, then use it as
6620 the base address instead of VALUE->LOCATION.address.
6621 * ada-lang.c (ada_value_primitive_packed_val): Keep V's address
6622 the same as OBJ's address. Adjust V's offset accordingly.
6623 Set V's parent.
6624
481860b3
GB
66252012-03-16 Gary Benson <gbenson@redhat.com>
6626
6627 PR breakpoints/10738
6628 * dwarf2read.c (use_deprecated_index_sections): New global.
6629 (struct partial_die_info): New member may_be_inlined.
6630 (read_partial_die): Set may_be_inlined where appropriate.
6631 (add_partial_subprogram): Add partial symbols for partial
6632 DIEs that may be inlined.
6633 (new_symbol_full): Add inlined subroutines to the current
6634 scope.
6635 (write_psymtabs_to_index): Bump version number.
6636 (dwarf2_read_index): Read only version 6 indices unless
6637 use_deprecated_index_sections is set.
6638 * linespec.c (symbol_and_data_callback): New structure.
6639 (iterate_inline_only): New function.
6640 (iterate_over_all_matching_symtabs): New argument
6641 "include_inline". If nonzero, also call the callback for
6642 symbols representing inlined subroutines.
6643 (lookup_prefix_sym): Pass extra argument to the above.
6644 (find_function_symbols): Likewise.
6645 (add_matching_symbols_to_info): Likewise.
6646 * NEWS: Mention that GDB can now set breakpoints on inlined
6647 functions.
6648
d0e7e15a
PM
66492012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6650
6651 * p-typeprint.c (pascal_type_print_method_args):
6652 Fix display of parameter of methods.
6653
3d354654
PM
66542012-03-16 Pierre Muller <muller@ics.u-strasbg.fr>
6655
6656 * amd64-windows-nat.c (_initialize_amd64_windows_nat):
6657 Add missing prototype.
6658
cafe75b0
JK
66592012-03-16 Yao Qi <yao@codesourcery.com>
6660 Jan Kratochvil <jan.kratochvil@redhat.com>
6661
6662 Fix false compilation warning.
6663 * gnu-v3-abi.c (print_one_vtable): Initialize ADDR.
6664
25f8c692
JL
66652012-03-15 Jonathan Larmour <jifl@eCosCentric.com>
6666 Pedro Alves <pedro@codesourcery.com>
6667
6668 * arm-tdep.c: Include "remote.h" and "features/arm-with-m-fpa-layout.c".
6669 (arm_register_g_packet_guesses): New function.
6670 (arm_gdbarch_init): Don't force a target description with
6671 registers when the executable is detected as M-profile. Instead
6672 set gdbarch->tdep->is_m. Register `g' packet guesses.
6673 (_initialize_arm_tdep): Initialize the new target description.
6674 * features/arm-with-m-fpa-layout.xml: New description.
6675 * features/arm-with-m-fpa-layout.c: New, generated.
6676
35c63cd8
JB
66772012-03-15 Joel Brobecker <brobecker@adacore.com>
6678
6679 * breakpoint.c (breakpoint_xfer_memory): Add assertion.
6680 Update function description.
6681 (insert_bp_location): Do not wipe bl->target_info out.
6682 * mem-break.c: #include "gdb_string.h".
6683 (default_memory_insert_breakpoint): Do not call target_read_memory
6684 with a pointer to the breakpoint's shadow_contents buffer. Use
6685 a local buffer instead.
6686 * m32r-tdep.c (m32r_memory_insert_breakpoint): Ditto.
6687
57651221
TT
66882012-03-15 Tom Tromey <tromey@redhat.com>
6689
6690 * NEWS: Mention "info vtbl", not "info vtable".
6691 * cp-support.c (info_vtbl_command): Fix comment.
6692 (_initialize_cp_support): Fix text.
6693
410528f0
TT
66942012-03-15 Tom Tromey <tromey@redhat.com>
6695
6696 * cp-valprint.c (cp_print_value_fields): Use
6697 print_function_pointer_address for vtable slot.
6698
c4aeac85
TT
66992012-03-15 Tom Tromey <tromey@redhat.com>
6700
6701 * gnu-v3-abi.c (struct value_and_voffset): New.
6702 (hash_value_and_voffset, eq_value_and_voffset)
6703 (compare_value_and_voffset, compute_vtable_size)
6704 (print_one_vtable, gnuv3_print_vtable): New functions.
6705 (init_gnuv3_ops): Initialize 'print_vtable' field.
6706 * cp-support.c (info_vtbl_command): New function.
6707 (_initialize_cp_support): Add "info vtbl".
6708 * cp-abi.h (cplus_print_vtable): Declare.
6709 (struct cp_abi_ops) <print_vtable>: New field.
6710 * cp-abi.c (cplus_print_vtable): New function.
6711 * NEWS: Update.
6712
95cbceff
TT
67132012-03-15 Tom Tromey <tromey@redhat.com>
6714
6715 * d-lang.c (d_language_defn) <la_iterate_over_symbols>: Set to
6716 iterate_over_symbols.
6717
589b4a32
DE
67182012-03-14 Doug Evans <dje@google.com>
6719
6720 * dwarf2read.c (dwarf_stack_op_name): Add DW_OP_GNU_encoded_addr,
6721 DW_OP_GNU_parameter_ref.
6722
e837f12a
JK
67232012-03-14 Jan Kratochvil <jan.kratochvil@redhat.com>
6724
6725 Fix double prompt of 'interpreter-exec mi'.
6726 * mi/mi-interp.c (mi_execute_command_input_handler): New prototype.
6727 (mi_interpreter_resume): use it.
6728 (mi_execute_command_input_handler): New function.
6729 * mi/mi-main.c (mi_execute_command): Move prompt printing to
6730 mi_execute_command_input_handler.
6731
ff1e4526 67322012-03-13 Josh Matthews <josh@joshmatthews.net> (tiny change)
c381a3f6
JB
6733
6734 * darwin-nat-info.c (_initialize_darwin_info_commands): Add
6735 prototype.
6736 (darwin_debug_port_info): Make static.
6737 * darwin-nat.c (_initialize_darwin_inferior): Add prototype.
6738 * machoread.c (_initialize_machoread): Add prototype.
6739 * i386-darwin-nat.c (i386_darwin_dr_set, i386_darwin_dr_get)
6740 (i386_darwin_set_control, i386_darwin_get_control)
6741 i386_darwin_dr_set_addr, i386_darwin_get_addr)
6742 i386_darwin_get_status, i386_darwin_get_control):
6743 Comment out with HW_WATCHPOINT_NOT_YET_ENABLED macro.
6744
d8a5d6ee
JB
67452012-03-13 Joel Brobecker <brobecker@adacore.com>
6746
6747 * ax-gdb.c (gen_usual_unary): Remove special handling of
6748 enum and bool types.
6749
af381b8c
JB
67502012-03-13 Joel Brobecker <brobecker@adacore.com>
6751
6752 * ax-gdb.c (gen_fetch): Add handling for TYPE_CODE_RANGE types.
6753
786c562f
JB
67542012-03-13 Joel Brobecker <brobecker@adacore.com>
6755
6756 * aix-thread.c (supply_fprs): Make more consistent with fill_fprs.
6757
e3ebf1bb
JB
67582012-03-13 Chris January <chris.january@allinea.com>
6759
6760 * aix-thread.c (fill_sprs): Store the floating point registers
6761 at the correct offsets into vals.
6762
c5b7e1cb
DE
67632012-03-13 Doug Evans <dje@google.com>
6764
16899756
DE
6765 * NEWS: Mention symbol-reloading has been deleted.
6766 * symfile.c (symbol_reloading): Delete.
6767 (show_symbol_reloading): Delete.
6768 (_initialize_symfile): Delete set/show symbol-reloading.
6769
c5b7e1cb
DE
6770 * dwarf2read.c (load_partial_comp_unit): Defer adding cu to
6771 read_in_chain until we have successfully read it in.
6772 (load_full_comp_unit): Ditto.
6773 (read_signatured_type): Add comment.
6774
46cb6474
JB
67752012-03-13 Chris January <chris.january@allinea.com>
6776
6777 * stabsread.c (fix_common_block): Change type of valu argument
6778 to CORE_ADDR.
6779
76219d77
JB
67802012-03-13 Chris January <chris.january@allinea.com>
6781
6782 * rs6000-tdep.c (skip_prologue): Support the oril r29, r1, 0x0
6783 instruction.
6784
87b0bb13
JK
67852012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6786
6787 * common/linux-procfs.c (linux_proc_get_int): New, from
6788 linux_proc_get_tgid, change its LWPID type to pid_t, add parameter
6789 field.
6790 (linux_proc_get_tgid): Only call linux_proc_get_int.
6791 (linux_proc_get_tracerpid): New.
6792 (linux_proc_pid_has_state): New, from linux_proc_pid_is_zombie.
6793 (linux_proc_pid_is_stopped, linux_proc_pid_is_zombie): Only call
6794 linux_proc_pid_has_state.
6795 * common/linux-procfs.h (linux_proc_get_tracerpid): New declaration.
6796 * common/linux-ptrace.c: Include linux-procfs.h and buffer.h.
6797 (linux_ptrace_attach_warnings): New.
6798 * common/linux-ptrace.h (struct buffer, linux_ptrace_attach_warnings):
6799 New declaration.
6800 * linux-nat.c: Include exceptions.h, linux-ptrace.h and buffer.h.
6801 (linux_nat_attach): New variables ex, buffer, message and message_s.
6802 Wrap to_attach by TRY_CATCH and call linux_ptrace_attach_warnings.
6803
5f572dec
JK
68042012-03-13 Jan Kratochvil <jan.kratochvil@redhat.com>
6805
6806 * Makefile.in (linux-ptrace.o): New.
6807 * common/linux-procfs.c (linux_proc_pid_is_zombie): New,
6808 from linux-nat.c.
6809 * common/linux-procfs.h (linux_proc_pid_is_zombie): New declaration.
6810 * common/linux-ptrace.c: New file.
6811 * config/alpha/alpha-linux.mh (NATDEPFILES): Add linux-ptrace.o.
6812 * config/arm/linux.mh: Likewise.
6813 * config/i386/linux.mh: Likewise.
6814 * config/i386/linux64.mh: Likewise.
6815 * config/ia64/linux.mh: Likewise.
6816 * config/m32r/linux.mh: Likewise.
6817 * config/m68k/linux.mh: Likewise.
6818 * config/mips/linux.mh: Likewise.
6819 * config/pa/linux.mh: Likewise.
6820 * config/powerpc/linux.mh: Likewise.
6821 * config/powerpc/ppc64-linux.mh: Likewise.
6822 * config/powerpc/spu-linux.mh: Likewise.
6823 * config/s390/s390.mh: Likewise.
6824 * config/sparc/linux.mh: Likewise.
6825 * config/sparc/linux64.mh: Likewise.
6826 * config/xtensa/linux.mh: Likewise.
6827 * linux-nat.c (linux_lwp_is_zombie): Remove, move it to
6828 common/linux-procfs.c.
6829 (wait_lwp): Rename linux_lwp_is_zombie to linux_proc_pid_is_zombie.
6830
44f238bb
PA
68312012-03-13 Hui Zhu <teawater@gmail.com>
6832 Pedro Alves <palves@redhat.com>
6833
6834 * breakpoint.c (init_breakpoint_sal): New flags parameter. Handle
6835 CREATE_BREAKPOINT_FLAGS_INSERTED.
6836 (create_breakpoint_sal, create_breakpoints_sal)
6837 (base_breakpoint_create_breakpoints_sal)
6838 (tracepoint_create_breakpoints_sal)
6839 (strace_marker_create_breakpoints_sal): New flags parameter. Pass
6840 down.
6841 (break_command_1, handle_gnu_v3_exceptions, trace_command)
6842 (ftrace_command, strace_command): Adjust.
6843 (create_tracepoint_from_upload): Pass
6844 CREATE_BREAKPOINT_FLAGS_INSERTED.
6845 * breakpoint.h (enum breakpoint_create_flags): New.
6846 (create_breakpoint): New flags parameter.
6847 * mi/mi-cmd-break.c (mi_cmd_break_insert): Adjust.
6848 * python/py-breakpoint.c (bppy_init): Adjust.
6849 * python/py-finishbreakpoint.c (bpfinishpy_init): Adjust.
6850 * spu-tdep.c (spu_catch_start): Adjust.
6851
1e51243a
PA
68522012-03-13 Pedro Alves <palves@redhat.com>
6853 Hui Zhu <teawater@gmail.com>
6854 Yao Qi <yao@codesourcery.com>
6855
6856 * remote.c (struct remote_state): New field `starting_up'.
6857 (remote_start_remote): Set and clear it.
6858 (remote_can_download_tracepoint): If starting up, return false.
6859
fa3064dd
YQ
68602012-03-13 Yao Qi <yao@codesourcery.com>
6861
6862 * inferior.h (struct inferior): Remove fields any_syscall_count,
6863 syscalls_counts and total_syscalls_count. Move them to new
6864 struct catch_syscall_inferior_data in breakpoint.c.
6865 * breakpoint.c: Call DEF_VEC_I(int).
6866 (struct catch_syscall_inferior_data): New.
6867 (get_catch_syscall_inferior_data): New.
6868 (catch_syscall_inferior_data_cleanup): New.
6869 (insert_catch_syscall): Update to access data in
6870 struct catch_syscall_inferior_data.
6871 (insert_catch_syscall): Likewise.
6872 (remove_catch_syscall): Likewise.
6873 (remove_catch_syscall): Likewise.
6874 (is_syscall_catchpoint_enabled): Likewise.
6875 (add_catch_command): Likewise.
6876 (_initialize_breakpoint): Register cleanup.
6877 * breakpoint.h: Removed DEF_VEC_I(int).
6878 * dwarf2loc.c: Call DEF_VEC_I(int).
6879 * mi/mi-main.c: Likewise.
6880
460fac3c
MK
68812012-03-12 Mark Kettenis <kettenis@gnu.org>
6882
6883 * inf-ptrace.c (inf_ptrace_post_attach): Make static.
6884
e1aca11e
JB
68852012-03-12 Chris January <chris.january@allinea.com>
6886
6887 * aix-thread.c (_initialize_aix_thread): Add prototype.
6888 * rs6000-nat.c (_initialize_rs6000_nat): Ditto.
6889 * xcoffsolib.c (_initialize_xcoffsolib): Ditto.
6890
649c7061
JB
68912012-03-12 Joel Brobecker <brobecker@adacore.com>
6892
6893 * amd64bsd-nat.c: Move #include of "amd64bsd-nat.h" after
6894 include of "amd64-nat.h".
6895
0b49e518
TT
68962012-03-12 Tom Tromey <tromey@redhat.com>
6897
6898 * buildsym.c (record_pending_block): Now static.
6899 * buildsym.h: (record_pending_block): Remove.
6900
fd24fa94
AT
69012012-03-12 Andreas Tobler <andreast@fgznet.ch>
6902
6903 * amd64bsd-nat.c: Include amd64bsd-nat.h.
6904
ba919b58
TT
69052012-03-09 Tom Tromey <tromey@redhat.com>
6906
6907 * dwarf2read.c (struct dwarf2_cu) <checked_producer,
6908 producer_is_gxx_lt_4_6>: New fields.
6909 (producer_is_gxx_lt_4_6): Use and update producer cache fields.
6910
a48e046c
TT
69112012-03-09 Tom Tromey <tromey@redhat.com>
6912
6913 * dwarf2read.c (dwarf2_attr): Avoid tail-recursive call.
6914
6f5e9362
JB
69152012-03-08 Joel Brobecker <brobecker@adacore.com>
6916
6917 * ravenscar-sparc-thread.c (_initialize_ravenscar_sparc): Add
6918 prototype.
6919
8d037db9
JB
69202012-03-08 Joel Brobecker <brobecker@adacore.com>
6921
6922 * ravenscar-thread.c (_initialize_ravenscar): Add prototype.
6923
4e841acf
JK
69242012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6925
6926 Fix -Wmissing-prototypes build.
6927 * arm-linux-nat.c (get_thread_id): Make it static.
6928 * xtensa-linux-nat.c (get_thread_id): Likewise.
6929
c6030312
JB
69302012-03-08 Joel Brobecker <brobecker@adacore.com>
6931
6932 * server.c (process_point_options): If a conditional expression
6933 is found, only print a message if remote_debug is nonzero.
6934
52323be9
LM
69352012-03-08 Luis Machado <lgustavo@codesourcery.com>
6936
6937 * ax-gdb.c (gen_fetch): Fail gracefully and use error instead
6938 of internal error for unknown/unsupported types.
6939
7fe25d9b
JK
69402012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6941
6942 Fix CU relative vs. absolute DIE offsets.
6943 * dwarf2loc.h (dwarf2_fetch_die_location_block): Rename parameter
6944 offset to offset_in_cu.
6945 * dwarf2read.c (process_enumeration_scope): Add CU offset to
6946 TYPE_OFFSET.
6947 (dwarf2_fetch_die_location_block): Rename parameter offset to
6948 offset_in_cu. New variable offset, add CU offset to OFFSET_IN_CU.
6949
05e7c244
JK
69502012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6951
6952 * libunwind-frame.c: Rename to ...
6953 * ia64-libunwind-tdep.c: ... here.
6954 * libunwind-frame.h: Rename to ...
6955 * ia64-libunwind-tdep.h: ... here.
6956 * Makefile.in (HFILES_NO_SRCDIR): Rename libunwind-frame.h to
6957 ia64-libunwind-tdep.h.
6958 (ALLDEPFILES): Rename libunwind-frame.c to ia64-libunwind-tdep.c.
6959 * README (--with-libunwind): Rename to ...
6960 (--with-libunwind-ia64): ... here, note it is ia64 specific now.
6961 * config.in: Regenerate.
6962 * configure: Regenerate.
6963 * configure.ac: New option --with-libunwind-ia64, make the
6964 AS_HELP_STRING ia64 specific. Deprecate option --with-libunwind.
6965 Remove AC_DEFINE for HAVE_LIBUNWIND.
6966 * ia64-libunwind-tdep.c: Make the file top comment ia64 specific.
6967 Rename libunwind-frame.h #include to ia64-libunwind-tdep.h.
6968 Rename libunwind-frame in the general comment.
6969 * ia64-libunwind-tdep.h: Make the file top comment ia64 specific.
6970 Rename symbol LIBUNWIND_FRAME_H to IA64_TDEP_LIBUNWIND_FRAME_H.
6971 Move forward declarations inside #ifndef. Rename libunwind-frame in
6972 the general comment.
6973 * ia64-tdep.c: Rename libunwind-frame.h #include to
6974 ia64-libunwind-tdep.h.
6975 (ia64_gdb2uw_regnum, ia64_uw2gdb_regnum, ia64_is_fpreg)
6976 (ia64_libunwind_descr): Rename libunwind-frame to
6977 ia64-libunwind-tdep in these function comments.
6978 * ia64-tdep.h: Rename libunwind-frame.h #include to
6979 ia64-libunwind-tdep.h.
6980 * ia64-vms-tdep.c (ia64_vms_libunwind_descr): Rename libunwind-frame to
6981 ia64-libunwind-tdep in that data comment.
6982
3755cbfd
JK
69832012-03-08 Jan Kratochvil <jan.kratochvil@redhat.com>
6984
6985 * libunwind-frame.h (struct frame_unwind): New declaration.
6986
d1cda5d9
JB
69872012-03-08 Joel Brobecker <brobecker@adacore.com>
6988
6989 * breakpoint.c (_initialize_breakpoint): Fix error in help of
6990 "set breakpoint condition-evaluation" command.
6991
a0ba0aa2
TG
69922012-03-08 Tristan Gingold <gingold@adacore.com>
6993
6994 * sparc-stub.c: Move to stubs/
6995 * sh-stub.c: Likewise.
6996 * m68k-stub.c: Likewise.
6997 * m32r-stub.c: Likewise.
6998 * i386-stub.c: Likewise.
6999
7b8b6d6d
AS
70002012-03-08 Andreas Schwab <schwab@linux-m68k.org>
7001
007cafee
AS
7002 * m68klinux-tdep.c (m68k_linux_init_abi): Register
7003 linux_get_siginfo_type.
7004
7b8b6d6d
AS
7005 * m68klinux-nat.c: Include "gdb_proc_service.h".
7006 (PTRACE_GET_THREAD_AREA): Define.
7007 (ps_get_thread_area): New function.
7008
bba74b36
YQ
70092012-03-08 Yao Qi <yao@codesourcery.com>
7010
7011 * remote.c (remote_get_noisy_reply): Replace `sprintf' with
7012 `xsnprintf'.
7013 (remote_query_attached): Likewise.
7014 (remote_static_tracepoint_marker_at): Likewise.
7015 (remote_set_permissions): Likewise.
7016 (remote_detach_1, extended_remote_attach_1): Likewise.
7017 (send_g_packet, remote_vkill): Likewise.
7018 (extended_remote_disable_randomization): Likewise.
7019 (remote_add_target_side_condition): Likewise.
7020 (remote_insert_breakpoint): Likewise.
7021 (remote_remove_breakpoint): Likewise.
7022 (remote_insert_watchpoint): Likewise.
7023 (remote_remove_watchpoint): Likewise.
7024 (remote_insert_hw_breakpoint): Likewise.
7025 (remote_insert_hw_breakpoint): Likewise.
7026 (remote_remove_hw_breakpoint): Likewise.
7027 (remote_download_command_source): Likewise.
7028 (remote_download_tracepoint): Likewise.
7029 (remote_download_trace_state_variable): Likewise.
7030 (remote_disable_tracepoint): Likewise.
7031 (remote_trace_set_readonly_regions): Likewise.
7032 (remote_get_tracepoint_status): Likewise.
7033 (remote_trace_find): Likewise.
7034 (remote_get_trace_state_variable_value): Likewise.
7035 (remote_set_disconnected_tracing): Likewise.
7036 (remote_set_circular_trace_buffer): Likewise.
7037 (remote_get_min_fast_tracepoint_insn_len): Likewise.
7038 (remote_use_agent): Likewise.
7039 (remote_add_target_side_condition): Add one parameter BUF_SIZE.
7040 Update callers.
7041
9b224c5e
PA
70422012-03-07 Pedro Alves <palves@redhat.com>
7043
7044 * NEWS: Mention QProgramSignals.
7045 * inferior.h (update_signals_program_target): Declare.
7046 * infrun.c: (update_signals_program_target): New.
7047 (handle_command): Update the target of the new program signals
7048 array changes.
7049 * remote.c (PACKET_QProgramSignals): New enum.
7050 (last_program_signals_packet): New global.
7051 (remote_program_signals): New.
7052 (remote_start_remote): Update the target with the program signals
7053 list.
7054 (remote_protocol_features): Add entry for QPassSignals.
7055 (remote_open_1): Free anc clear last_program_signals_packet.
7056 (init_remote_ops): Install remote_program_signals.
7057 * target.c (update_current_target): Adjust.
7058 (target_program_signals): New.
7059 * target.h (struct target_ops) <to_program_signals>: New field.
7060 (target_program_signals): Declare.
7061
74c48cbb
PA
70622012-03-07 Pedro Alves <palves@redhat.com>
7063
7064 * NEWS: Add subtitle for new z0/z1 conditional breakpoint
7065 extensions.
7066
0c13fc49
AS
70672012-03-07 Andreas Schwab <schwab@linux-m68k.org>
7068
7069 * m68klinux-nat.c (getregs_supplies): Make static.
7070 (getfpregs_supplies): Likewise.
7071 (have_ptrace_getregs): Likewise.
7072
1281d2a3
JB
70732012-03-06 Joel Brobecker <brobecker@adacore.com>
7074
7075 * dwarf2read.c (dwarf2_get_die_type): Pass absolute offset
7076 in call to get_die_type_at_offset.
7077
2b03b41d
SS
70782012-03-06 Stan Shebs <stan@codesourcery.com>
7079
7080 * mi/mi-cmd-break.c: Enforce coding standards, fix comments.
7081 * mi/mi-cmd-disas.c: Ditto.
7082 * mi/mi-cmd-env.c: Ditto.
7083 * mi/mi-cmd-file.c: Ditto.
7084 * mi/mi-cmd-stack.c: Ditto.
7085 * mi/mi-cmd-target.c: Ditto.
7086 * mi/mi-cmd-var.c: Ditto.
7087 * mi/mi-cmds.c: Ditto.
7088 * mi/mi-cmds.h: Ditto.
7089 * mi/mi-console.c: Ditto.
7090 * mi/mi-getopt.c: Ditto.
7091 * mi/mi-getopt.h: Ditto.
7092 * mi/mi-interp.c: Ditto.
7093 * mi/mi-main.c: Ditto.
7094 * mi/mi-out.c: Ditto.
7095 * mi/mi-parse.c: Ditto.
7096 * mi/mi-parse.h: Ditto.
7097 * mi/mi-symbol-cmds.c: Ditto.
7098
7099 * mi/mi-getopt.h: Move mi_opt struct up.
7100 * mi/mi-main.c (captured_mi_execute_command): Remove redundant
7101 return.
7102 * mi/mi-out.c (_initialize_mi_out): Remove empty initialize.
7103
c988ad87
TT
71042012-03-06 Tom Tromey <tromey@redhat.com>
7105
7106 * proc-service.c (ps_pglobal_lookup): Set the current program
7107 space.
7108
1b7c1b10
PA
71092012-03-06 Pedro Alves <palves@redhat.com>
7110
7111 * gregset.h [HAVE_SYS_PROCFS_H]: Include <sys/procfs.h>.
7112
3c182069
JB
71132012-03-05 Joel Brobecker <brobecker@adacore.com>
7114
7115 * MAINTAINERS: List Maciej W. Rozycki as the mips maintainer.
7116
2e794194
JK
71172012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7118
7119 Code cleanup.
7120 * common/linux-osdata.c (linux_common_core_of_thread): New function
7121 comment.
7122 * linux-nat.c (linux_nat_wait_1): Replace linux_nat_core_of_thread_1
7123 call by linux_common_core_of_thread.
7124 (linux_nat_core_of_thread_1): Remove.
7125 * linux-nat.h (linux_nat_core_of_thread_1): Remove declaration.
7126 * linux-thread-db.c: Include linux-osdata.h.
7127 (update_thread_core): Replace linux_nat_core_of_thread_1 call by
7128 linux_common_core_of_thread.
7129
9f9f1f31
TT
71302012-03-05 Tom Tromey <tromey@redhat.com>
7131
7132 * value.c (value_primitive_field): Don't fetch contents for
7133 non-virtual bases.
7134
b7b189f3
TT
71352012-03-05 Tom Tromey <tromey@redhat.com>
7136
7137 * jv-valprint.c (java_value_print): Correctly compute 'obj_addr'.
7138
05b8a789 71392012-03-05 Andreas Arnez <arnez@linux.vnet.ibm.com>
5538f557 7140
5538f557
JB
7141 * s390-nat.c: Include "gregset.h".
7142
75528772
JK
71432012-03-05 Jan Kratochvil <jan.kratochvil@redhat.com>
7144
7145 * libunwind-frame.c (LIBUNWIND_SO): Change .7 to .8.
7146 [!LIBUNWIND_SO] (LIBUNWIND_SO_7): New #define.
7147 (libunwind_load): New variable so_error, use it for dlerror. Try to
7148 load also LIBUNWIND_SO_7.
7149
275418ae
PA
71502012-03-05 Pedro Alves <palves@redhat.com>
7151
7152 * i387-tdep.c (i387_supply_xsave): Assert the xsave section buffer
7153 is not NULL, and remove resulting dead code.
7154
5cbb9812
TS
71552012-03-05 Thomas Schwinge <thomas@codesourcery.com>
7156
7157 * sh-tdep.c (sh_skip_prologue): Provide an upper limit on the function
7158 prologue to sh_analyze_prologue.
7159 (sh_analyze_prologue): Make better use of such an upper limit, and
7160 generally be more cautious about accessing memory.
7161
541515ad
TT
71622012-03-05 Tom Tromey <tromey@redhat.com>
7163
7164 * ia64-vms-tdep.c (_initialize_ia64_vms_tdep): Rename from
7165 _initialize_ia64_hpux_tdep.
7166
b4d36fb8
PA
71672012-03-05 Pedro Alves <palves@redhat.com>
7168
24490249
PA
7169 PR gdb/13766
7170
b4d36fb8
PA
7171 * i387-tdep.c (i387_supply_xsave): If we have an xsave buffer, and
7172 the register state is clear, supply explicit zero, instead of
7173 marking the register unavailable.
7174
60c9a3c0
TG
71752012-03-05 Tristan Gingold <gingold@adacore.com>
7176
7177 * NEWS: Mention OpenVMS ia64 new target.
7178
696759ad
TG
71792012-03-05 Tristan Gingold <gingold@adacore.com>
7180
7181 * ia64-tdep.h: Include libunwind-frame.h and libunwind-ia64.h.
7182 (ia64_unw_accessors, ia64_unw_rse_accessors)
7183 (ia64_libunwind_descr): Declare.
7184 * ia64-vms-tdep.c: New file.
7185 * ia64-tdep.c (ia64_unw_accessors, ia64_unw_rse_accessors)
7186 (ia64_libunwind_descr): Make them public.
7187 * configure.tgt: Add ia64-*-*vms*.
7188 * Makefile.in (ALL_64_TARGET_OBS): Add ia64-vms-tdep.o
7189 (ALLDEPFILES): Add ia64-vms-tdep.c
7190
34864976
TG
71912012-03-05 Tristan Gingold <gingold@adacore.com>
7192
169081d0
TG
7193 * target.h (target_object): Add TARGET_OBJECT_OPENVMS_UIB.
7194 * remote.c (PACKET_qXfer_uib): New enum value.
7195 (remote_protocol_features): Add entry for PACKET_qXfer_uib.
7196 (remote_xfer_partial): Handle TARGET_OBJECT_OPENVMS_UIB.
7197 (_initialize_remote): Call add_packet_config_cmd for
7198 xfer:uib packet.
7199
72002012-03-05 Tristan Gingold <gingold@adacore.com>
7201
7202 * osabi.c (gdb_osabi_names): Add OpenVMS.
7203 (generic_elf_osabi_sniffer): Likewise.
7204 * defs.h (gdb_osabi): Add GDB_OSABI_OPENVMS.
34864976 7205
6597b100
JK
72062012-03-04 Jan Kratochvil <jan.kratochvil@redhat.com>
7207
7208 Removed unused code.
7209 * libunwind-frame.c (libunwind_frame_unwind)
7210 (libunwind_frame_base_address): Remove.
7211 * libunwind-frame.h (libunwind_frame_base_address): Remove declaration.
7212
87399aa1
YQ
72132012-03-04 Yao Qi <yao@codesourcery.com>
7214
7215 * common/agent.c (gdb_connect_sync_socket): Add _ markup and
7216 remove trailing new line.
7217 (agent_run_command, agent_run_command): Add _ markup.
7218 (agent_capability_check): Likewise.
7219
abf1152a
JK
72202012-03-03 Jan Kratochvil <jan.kratochvil@redhat.com>
7221
7222 * breakpoint.c (set_condition_evaluation_mode): Set
7223 CONDITION_EVALUATION_MODE unconditionally.
7224
5808517f
YQ
72252012-03-03 Yao Qi <yao@codesourcery.com>
7226
7227 * common/agent.c (agent_look_up_symbols): Add one parameter 'arg'.
7228 * common/agent.h: Update declaration.
7229 * inf-child.c (inf_child_use_agent): New.
7230 (inf_child_can_use_agent): New.
7231 (inf_child_target): Initialize fields `to_use_agent'
7232 and `to_can_use_agent'.
7233 * agent.c (agent_new_objfile): New.
89b7509a 7234 (_initialize_agent): Add agent_new_objfile to new_objfile
5808517f
YQ
7235 observer.
7236
7237 * linux-nat.c (linux_child_static_tracepoint_markers_by_strid):
7238 New.
89b7509a 7239 (linux_target_install_ops): Initialize field
5808517f
YQ
7240 `to_static_tracepoint_markers_by_strid'.
7241 * remote.c (free_current_marker): Move it to ...
7242 * tracepoint.c (free_current_marker): ... here. New.
7243 (cleanup_target_stop): New.
7244 * tracepoint.h: Declare free_current_marker.
7245 * NEWS: Add one entry about `info static-tracepoint-marker'.
7246
58b4daa5
YQ
72472012-03-03 Yao Qi <yao@codesourcery.com>
7248
7249 * common/agent.c (agent_loaded_p): New.
89b7509a 7250 (agent_look_up_symbols): New global.
58b4daa5
YQ
7251 * common/agent.h: Declare agent_loaded_p.
7252
8ffcbaaf
YQ
72532012-03-03 Yao Qi <yao@codesourcery.com>
7254
7255 * common/agent.c (struct ipa_sym_addresses) <addr_capability>: New.
7256 (agent_capability_check, agent_capability_invalidate): New.
7257 (symbol_list): New array element.
7258 * common/agent.h (enum agent_capa): New.
7259 * target.c (target_pre_inferior): Call agent_capability_invalidate.
7260
d1feda86
YQ
72612012-03-03 Yao Qi <yao@codesourcery.com>
7262
7263 * target.h (struct target_ops) <to_use_agent>: New field.
7264 (struct target_ops) <to_can_use_agent>: New field.
7265 (target_use_agent, target_can_use_agent): New macro.
7266 * target.c (update_current_target): Update.
7267 * remote.c: New enum `PACKET_QAgent'.
7268 (remote_protocol_features): Add a new element.
7269 (remote_use_agent, remote_can_use_agent): New.
7270 (init_remote_ops): Initialize field `can_use_agent' with
7271 remote_can_use_agent. Intiailize field `use_agent' with
7272 remote_use_agent.
7273 * common/agent.c (use_agent): New global.
7274 * common/agent.h: Declare it.
7275 * tracepoint.c (info_static_tracepoint_markers_command): Add
7276 comment.
7277 * Makefile.in (SFILES): Add common/agent.c and agent.c.
7278 (COMMON_OBS): Add common/agent.o and agent.o
7279 (common-agent.o): New rule.
7280 * agent.c: New.
7281
2fa291ac
YQ
72822012-03-03 Yao Qi <yao@codesourcery.com>
7283
7284 * common/agent.c: New.
7285 * common/agent.h: New.
7286 * configure.ac: Add `sys/socket.h' and `sys/un.h' to
7287 AC_CHECK_HEADERS.
7288 * configure, configh.in: Regenerated.
7289
9fc05685
KB
72902012-03-02 Kevin Buettner <kevinb@redhat.com>
7291
7292 * sh-tdep.c (sh_frame_cache): Don't fetch the FPSCR register
7293 unless it exists for this architecture.
7294
a5ee536b
JB
72952012-03-02 Joel Brobecker <brobecker@adacore.com>
7296
7297 * language.h (struct language_defn): New "method" la_read_var_value.
7298 * findvar.c: #include "language.h".
7299 (default_read_var_value): Renames read_var_value. Rewrite
7300 function description.
7301 (read_var_value): New function.
7302 * value.h (default_read_var_value): Add prototype.
7303 * ada-lang.c (ada_read_renaming_var_value, ada_read_var_value):
7304 New functions.
7305 (ada_language_defn): Add entry for la_read_var_value.
7306 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, language.c,
7307 * m2-lang.c, objc-lang.c, opencl-lang.c, p-lang.c: Update
7308 language_defn structures to add entry for new la_read_var_value
7309 field.
7310
f59f708a
PA
73112012-03-02 Tom Tromey <tromey@redhat.com>
7312 Pedro Alves <palves@redhat.com>
7313
7314 PR breakpoints/13776:
7315 * breakpoint.c (breakpoint_init_inferior): Delete step-resume
7316 breakpoints.
7317 (delete_longjmp_breakpoint_at_next_stop): New.
7318 * breakpoint.h (delete_longjmp_breakpoint_at_next_stop): Declare.
7319 * target.c (generic_mourn_inferior): Call mark_breakpoints_out
7320 before deleting the inferior. Add comments.
7321 * thread.c (clear_thread_inferior_resources): Don't delete lonjmp
7322 breakpoints immediately, but only on next stop. Move that code
7323 next to where we mark other breakpoints for deletion.
7324
44099a67
JB
73252012-03-02 Joel Brobecker <brobecker@adacore.com>
7326
7327 * mips-linux-nat.c (mips_linux_read_description): Add missing i18n
7328 marker.
7329 * mips-tdep.c (mips_linux_reg_names): Improve comment to avoid ARI
7330 violation.
7331
2a2ef594
PA
73322012-03-02 Pedro Alves <palves@redhat.com>
7333
7334 * linux-thread-db.c (attach_thread): Avoid in_thread_list call.
7335
b261e0c5
UW
73362012-03-02 Ulrich Weigand <uweigand@de.ibm.com>
7337
7338 Fix -Wmissing-prototypes build.
7339 * ppc-linux-nat.c (ppc_linux_get_hwcap): Make static.
7340 * remote-sim.c (gdbsim_has_all_memory): Likewise.
7341 (gdbsim_has_memory): Likewise.
7342
a95babbf
YQ
73432012-03-02 Yao Qi <yao@codesourcery.com>
7344
7345 Fix -Wmissing-prototypes build.
7346 * charset.c (phony_iconv_open): Make static.
7347 (phony_iconv_close, phony_iconv): Likewise.
7348 * i386-linux-nat.c (_initialize_i386_linux_nat): New prototype.
7349 * i386-windows-nat.c (_initialize_i386_windows_nat): New
7350 prototype.
7351 * mingw-hdep.c (_initialize_mingw_hdep): New prototype.
7352 * ser-mingw.c (create_select_thread): Make static.
7353 * windows-termcap.c (tgetent): New prototype.
7354 (tgetnum, tgetflag, tgetstr, tputs, tgoto): Likewise.
7355
d603d4b3
JK
73562012-03-02 Zhang Yuanhui <asmwarrior@gmail.com>
7357
7358 Fix -Wmissing-prototypes build.
7359 * windows-nat.c (dll_symbol_command, ctrl_c_handler): Make them static.
7360 (_initialize_windows_nat, _initialize_check_for_gdb_ini)
7361 (_initialize_loadable): New prototypes.
7362
7fb3ad1f
DE
73632012-03-02 Doug Evans <dje@google.com>
7364
7365 * dwarf2read.c (load_full_comp_unit): Remove unnecessary reading of
7366 abbrev table, read_comp_unit will do it.
7367
693be288
JK
73682012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7369
7370 Fix -Wmissing-prototypes build.
7371 * alpha-tdep.c (alpha_deal_with_atomic_sequence): Make it static.
7372 * amd64-darwin-tdep.c (_initialize_amd64_darwin_tdep): New prototype.
7373 * amd64-windows-tdep.c (_initialize_amd64_windows_tdep): Likewise.
7374 * arm-symbian-tdep.c (arm_symbian_skip_trampoline_code): Make it static.
7375 (_initialize_arm_symbian_tdep): New prototype.
7376 * arm-wince-tdep.c (arm_wince_skip_main_prologue): Make it static.
7377 * i386-darwin-tdep.c (_initialize_i386_darwin_tdep): New prototype.
7378 * i386-linux-tdep.c (i386_linux_displaced_step_copy_insn): Make it
7379 static.
7380 * lm32-tdep.c (_initialize_lm32_tdep): New prototype.
7381 * microblaze-linux-tdep.c (_initialize_microblaze_linux_tdep): New
7382 prototype.
7383 * microblaze-tdep.c (microblaze_debug, microblaze_fetch_instruction)
7384 (microblaze_skip_prologue, microblaze_frame_cache): Make them static.
7385 * mips-linux-tdep.c (mips_linux_regset_from_core_section): Make it
7386 static.
7387 * moxie-tdep.c (moxie_process_record): Likewise.
7388 * remote-mips.c (mips_can_use_watchpoint, mips_insert_watchpoint)
7389 (mips_remove_watchpoint, mips_stopped_by_watchpoint): Make them static.
7390 * rl78-tdep.c (rl78_breakpoint_from_pc): Make it static.
7391 (_initialize_rl78_tdep): New prototype.
7392 * rx-tdep.c (rx_breakpoint_from_pc): Make it static.
7393 (_initialize_rx_tdep): New prototype.
7394 * solib-darwin.c (darwin_in_dynsym_resolve_code): Make it static.
7395 (_initialize_darwin_solib): New prototype.
7396 * solib-spu.c: Include solib-spu.h.
7397 (_initialize_spu_solib): New prototype.
7398 * spu-multiarch.c (_initialize_spu_multiarch): New prototype.
7399 * tic6x-tdep.c (tic6x_analyze_prologue, tic6x_skip_prologue)
7400 (tic6x_breakpoint_from_pc, tic6x_frame_unwind_cache)
7401 (tic6x_software_single_step): Make it static.
7402 (_initialize_tic6x_tdep): New prototype.
7403
638234e5
JK
74042012-03-02 Jan Kratochvil <jan.kratochvil@redhat.com>
7405
7406 Fix -Wmissing-prototypes build.
7407 * cris-tdep.c (cris_can_use_hardware_watchpoint)
7408 (cris_region_ok_for_watchpoint, cris_stopped_data_address): Remove.
7409
f4a6f16d
JK
74102012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7411
7412 Fix -Wmissing-prototypes build.
7413 * frv-tdep.c (frv_check_watch_resources, frv_stopped_data_address)
7414 (frv_have_stopped_data_address): Remove.
7415
04dcf5fa
JK
74162012-03-01 Jan Kratochvil <jan.kratochvil@redhat.com>
7417
7418 Fix -Wmissing-prototypes build.
7419 * Makefile.in (HFILES_NO_SRCDIR): Add sh64-tdep.h.
7420 * sh-tdep.c: Include sh64-tdep.h.
7421 * sh-tdep.h (sh64_gdbarch_init, sh64_show_regs): Remove declarations.
7422 * sh64-tdep.c: Include sh64-tdep.h.
7423 * sh64-tdep.h: New file.
7424
19080931
MR
74252012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7426
7427 * mips-tdep.c (mips32_scan_prologue): Correct indentation.
7428
9aac7884
MR
74292012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7430
7431 * mips-tdep.c (mips_gdbarch_init): Only set pc_regnum and
7432 sp_regnum once the gdbarch_init_osabi hook has been called.
7433
a385295e
MR
74342012-03-01 Maciej W. Rozycki <macro@codesourcery.com>
7435
7436 * mips-tdep.c (mips32_bc1_pc): New function.
7437 (mips32_next_pc): Handle BC1ANY2F, BC1ANY2T, BC1ANY4F, BC1ANY4T,
7438 BPOSGE32 and BPOSGE64 instructions.
7439 (deal_with_atomic_sequence): Likewise.
7440 (mips32_instruction_has_delay_slot): Likewise.
7441
1faeff08 74422012-03-01 Maciej W. Rozycki <macro@mips.com>
a09130f9
PA
7443 Chris Dearman <chris@mips.com>
7444 Maciej W. Rozycki <macro@codesourcery.com>
7445 Joseph Myers <joseph@codesourcery.com>
1faeff08
MR
7446
7447 * features/mips-dsp.xml: New file.
7448 * features/mips64-dsp.xml: New file.
7449 * features/mips-dsp-linux.xml: New file.
7450 * features/mips64-dsp-linux.xml: New file.
7451 * features/Makefile (WHICH): Add mips-dsp-linux and
7452 mips64-dsp-linux.
7453 (mips-dsp-expedite, mips64-dsp-expedite): New variables.
7454 * features/mips-dsp-linux.c: New file.
7455 * features/mips64-dsp-linux.c: New file.
7456 * regformats/mips-dsp-linux.dat: New file.
7457 * regformats/mips64-dsp-linux.dat: New file.
7458 * mips-linux-nat.c (mips_linux_register_addr): Handle DSP
7459 registers.
7460 (mips64_linux_register_addr): Likewise.
7461 (mips64_linux_regsets_fetch_registers): Likewise.
7462 (mips64_linux_regsets_store_registers): Likewise.
7463 (mips64_linux_fetch_registers): Update call to
7464 mips64_linux_regsets_fetch_registers.
7465 (mips64_linux_store_registers): Update call to
7466 mips64_linux_regsets_store_registers.
7467 (mips_linux_read_description): Probe for DSP registers.
7468 (_initialize_mips_linux_nat): Call initialize_tdesc_mips_dsp_linux
7469 and initialize_tdesc_mips64_dsp_linux.
7470 * mips-linux-tdep.c (supply_gregset, mips64_supply_gregset):
7471 Remove padding of no longer used embedded register slots.
7472 * mips-linux-tdep.h (DSP_BASE, DSP_CONTROL): New macros.
7473 (MIPS_RESTART_REGNUM): Redefine enum value.
7474 * mips-tdep.c (mips_generic_reg_names): Remove trailing null
7475 strings.
7476 (mips_tx39_reg_names): Likewise.
7477 (mips_linux_reg_names): New array of register names for Linux
7478 targets.
7479 (mips_register_name): Check for a null pointer in
7480 mips_processor_reg_names and return an empty string.
7481 (mips_register_type): Exclude embedded registers for the IRIX
7482 and Linux ABIs.
7483 (mips_pseudo_register_type): Likewise. Use dynamic numbers to
7484 refer to FP registers, LO, HI, BadVAddr, Cause and PC. Handle
7485 DSP registers.
7486 (mips_stab_reg_to_regnum): Handle DSP accumulators.
7487 (mips_dwarf_dwarf2_ecoff_reg_to_regnum): Likewise.
7488 (mips_gdbarch_init): Likewise. Initialize internal register
7489 indices for the Linux ABI. Use dynamic numbers to refer to
7490 registers, as applicable, while parsing the target description.
7491 * mips-tdep.h (struct mips_regnum): Add dspacc/dspctl offsets.
7492
263689d8
JB
74932012-03-01 Joel Brobecker <brobecker@adacore.com>
7494
7495 * frame.h (read_frame_register_unsigned): Fix typo in function
7496 description.
7497
f3b4f45c
PA
74982012-03-01 Pedro Alves <palves@redhat.com>
7499
7500 * jit-reader.in [!__cplusplus]
7501 (GDB_DECLARE_GPL_COMPATIBLE_READER): Add missing backslash.
7502
b03a2011
PA
75032012-03-01 Pedro Alves <palves@redhat.com>
7504
7505 * configure.ac (build_warnings): Add -Wmissing-prototypes.
7506 * configure: Regenerate.
7507
70221824
PA
75082012-03-01 Pedro Alves <palves@redhat.com>
7509
7510 * amd64-linux-tdep.c (amd64_linux_record_signal): Make static.
7511 * breakpoint.c (create_exception_master_breakpoint, trace_command)
7512 (ftrace_command, strace_command): Make static.
7513 * d-lang.c (_initialize_d_language): Declare.
7514 * dwarf2expr.c (_initialize_dwarf2expr): Declare.
7515 * dwarf2loc.c (_initialize_dwarf2loc):
7516 * dwarf2read.c (process_psymtab_comp_unit): Make static.
7517 * exec.c (exec_get_section_table): Make static.
7518 * i386-linux-tdep.c (i386_linux_record_signal): Make static.
7519 * infcmd.c (ensure_valid_thread, ensure_not_tfind_mode): Make static.
7520 * inferior.c (remove_inferior_command, add_inferior_command)
7521 (clone_inferior_command): Make static.
7522 * linux-nat.c (linux_nat_thread_address_space)
7523 (linux_nat_core_of_thread): Make static.
7524 * linux-tdep.c (_initialize_linux_tdep): Declare.
7525 * objc-lang.c (_initialize_objc_lang): Declare.
7526 * opencl-lang.c (builtin_opencl_type, opencl_language_arch_info):
7527 Make static.
7528 (_initialize_opencl_language): Declare.
7529 * record.c (_initialize_record): Declare.
7530 * remote.c (demand_private_info, remote_get_tib_address)
7531 (remote_supports_cond_tracepoints)
7532 (remote_supports_fast_tracepoints, remote_get_tracepoint_status):
7533 Make static.
7534 * skip.c (_initialize_step_skip): Declare.
7535 * symtab.c (skip_prologue_using_lineinfo): Make static.
7536 * tracepoint.c (delete_trace_state_variable)
7537 (trace_variable_command, delete_trace_variable_command)
7538 (get_uploaded_tsv, find_matching_tracepoint_location)
7539 (find_matching_tsv, create_tsv_from_upload, get_traceframe_info):
7540 Make static.
7541 * value.c (pack_unsigned_long): Make static.
7542 * varobj.c (varobj_ensure_python_env): Make static.
7543 * windows-tdep.c (_initialize_windows_tdep): Declare.
7544 * xml-syscall.c (make_cleanup_free_syscalls_info): Make static.
7545
33fbcbee
PA
75462012-03-01 Pedro Alves <palves@redhat.com>
7547
7548 * linux-tdep.c (linux_has_shared_address_space): Make static. Add
7549 gdbarch parameter.
7550 (linux_init_abi): Install it as has_shared_address_space gdbarch
7551 callback.
7552
44d0cd3b
PA
75532012-03-01 Pedro Alves <palves@redhat.com>
7554
7555 * observer.c (observer_test_first_notification_function)
7556 (observer_test_second_notification_function)
7557 (observer_test_third_notification_function): Add declarations.
7558
ed01b82c
PA
75592012-03-01 Pedro Alves <palves@redhat.com>
7560
7561 * common/signals.c (default_target_signal_to_host)
7562 (default_target_signal_from_host): Move ...
7563 * arch-utils.c: ... here.
7564 * arch-utils.h (default_target_signal_to_host)
7565 (default_target_signal_from_host): Declare.
7566
7567 * common/signals.c (target_signal_from_command): Move ...
7568 * infrun.c: ... here.
7569 * inferior.h (target_signal_from_command): Declare.
7570 * target.h (target_signal_from_command)
7571 (default_target_signal_from_host, default_target_signal_to_host):
7572 Delete declarations.
7573
7574 * common/signals.c (_initialize_signals): Delete.
7575
c9b87335
PA
75762012-03-01 Pedro Alves <palves@redhat.com>
7577
7578 * jit-reader.in (plugin_is_GPL_compatible): Add declarations for
7579 both __cplusplus and !__cplusplus.
7580
9340a6c0
PA
75812012-03-01 Pedro Alves <palves@redhat.com>
7582
7583 * psymtab.c (find_and_open_source): Delete declaration.
7584 * source.c (find_and_open_source): Move comment ...
7585 * source.h (find_and_open_source): ... to this new declaration.
7586
e451c4a1
PA
75872012-03-01 Pedro Alves <palves@redhat.com>
7588
7589 * inline-frame.c: Include inline-frame.h.
7590
983fb104
PA
75912012-03-01 Pedro Alves <palves@redhat.com>
7592
7593 * tui/tui-data.c (set_gen_win_origin): Delete.
7594 * tui/tui-data.h (tui_set_gen_win_origin): Delete declaration.
7595 * tui/tui-regs.c (tui_last_reg_element_no_in_line): Delete.
7596
5fbce5df
PA
75972012-03-01 Pedro Alves <palves@redhat.com>
7598
7599 * remote.c (encode_actions): Delete declaration.
7600 * tracepoint.c (encode_actions): Make extern.
7601 * tracepoint.h (encode_actions): Declare.
7602
49a8461d
PA
76032012-03-01 Pedro Alves <palves@redhat.com>
7604
7605 * python/py-breakpoint.c: Include python.h.
7606 * python/py-continueevent.c (create_continue_event_object): Make
7607 static.
7608 * python/py-lazy-string.c (stpy_get_type): Make static.
7609 * python/py-newobjfileevent.c (create_new_objfile_event_object):
7610 Make static.
7611 * python/py-utils.c (unicode_to_target_python_string): Make
7612 static.
7613 * python/py-value.c: Include python.h.
7614
9079102f
PA
76152012-03-01 Pedro Alves <palves@redhat.com>
7616
7617 * inferior.c (delete_threads_of_inferior): Delete.
7618
a298c5e8
PA
76192012-03-01 Pedro Alves <palves@redhat.com>
7620
7621 Import fallback definitions from glibc.
7622
7623 * gdb_proc_service.h [!HAVE_PROC_SERVICE_H] (struct
7624 ps_prochandle): Forward declare.
7625 (ps_err_e): Use glibc's comments.
7626 [!HAVE_PROC_SERVICE_H] (ps_pdread, ps_pdwrite, ps_ptread)
7627 (ps_ptwrite, ps_lgetregs, ps_lsetregs, ps_lgetfpregs)
7628 (ps_lsetfpregs, ps_getpid, ps_get_thread_area, ps_pglobal_lookup)
7629 (ps_pstop, ps_pcontinue, ps_lstop, ps_lcontinue, ps_lgetxregsize)
7630 (ps_lgetxregs, ps_lsetxregs, ps_plog): Declare.
7631 (struct ps_prochandle): Adjust comment.
7632
e3084549
PA
76332012-03-01 Pedro Alves <palves@redhat.com>
7634
7635 * ada-lang.c (ada_modulus_from_name): Delete.
7636 * ada-lex.l (lexer_init): Make static.
7637
ad5f7d6e
PA
76382012-03-01 Pedro Alves <palves@redhat.com>
7639
7640 PR gdb/13767
7641
7642 * frame.c (read_frame_register_unsigned): New.
7643 * frame.h (read_frame_register_unsigned): Declare.
7644 * i387-tdep.c (print_i387_status_word): New parameter `status_p'.
7645 Handle it.
7646 (print_i387_control_word): New parameter `control_p'. Handle it.
7647 (i387_print_float_info): Handle unavailable float registers.
7648
e0a4d108
KS
76492012-03-01 Keith Seitz <keiths@redhat.com>
7650
7651 * linespec.c (decode_line_2): Sort the list of methods
7652 alphabetically before presenting the user with a selection
7653 menu.
7654
122d1940
DE
76552012-03-01 Doug Evans <dje@google.com>
7656
7657 * dwarf2read.c (dwarf2_cu): Remove unused members has_form_ref_addr,
7658 has_namespace_info.
7659 (dwarf2_read_abbrevs): Remove corresponding initialization.
7660
7d74f244
DE
76612012-03-01 Scott J. Goldman <scottjg@vmware.com>
7662
7663 * NEWS: Mention new python command class gdb.COMMAND_USER.
7664 * cli/cli-cmds.c (show_user): Print error when used on a python
7665 command.
7666 (init_cli_cmds): Update documentation strings for "show user" and
7667 "set/show max-user-call-depth" to clarify that it does not apply to
7668 python commands.
7669 * python/py-cmd.c (cmdpy_init): Treat class_user as a valid class in
7670 error check.
7671 (gdbpy_initialize_commands): Add COMMAND_USER as a constant in
7672 gdb python api.
7673 * top.c (execute_command): Only execute a user-defined command as a
7674 legacy macro if c->user_commands is set.
7675
e88acd96
TT
76762012-03-01 Tom Tromey <tromey@redhat.com>
7677
7678 * valprint.h (struct generic_val_print_decorations): New.
7679 (generic_val_print): Declare.
7680 * valprint.c (generic_val_print): New function.
7681 * p-valprint.c (p_decorations): New global.
7682 (pascal_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM,
7683 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_RANGE, TYPE_CODE_INT,
7684 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ERROR, TYPE_CODE_UNDEF,
7685 TYPE_CODE_BOOL, TYPE_CODE_CHAR>: Call generic_val_print.
7686 * m2-valprint.c (m2_decorations): New global.
7687 (m2_val_print) <TYPE_CODE_REF, TYPE_CODE_ENUM, TYPE_CODE_FUNC,
7688 TYPE_CODE_BOOL, TYPE_CODE_RANGE, TYPE_CODE_INT, TYPE_CODE_CHAR,
7689 TYPE_CODE_FLT, TYPE_CODE_METHOD, TYPE_CODE_VOID, TYPE_CODE_UNDEF,
7690 TYPE_CODE_ERROR>: Call generic_val_print.
7691 * f-valprint.c (f_decorations): New global.
7692 (f_val_print): Use print_function_pointer_address.
7693 <TYPE_CODE_REF, TYPE_CODE_FUNC, TYPE_CODE_CHAR, TYPE_CODE_FLAGS,
7694 TYPE_CODE_FLT, TYPE_CODE_VOID, TYPE_CODE_ENUM, TYPE_CODE_RANGE,
7695 TYPE_CODE_BOOL, TYPE_CODE_COMPLEX, TYPE_CODE_UNDEF>: Call
7696 generic_val_print.
7697 * c-valprint.c (c_decorations): New global.
7698 (c_val_print) <TYPE_CODE_MEMBERPTR, TYPE_CODE_REF, TYPE_CODE_ENUM,
7699 TYPE_CODE_FLAGS, TYPE_CODE_FUNC, TYPE_CODE_METHOD, TYPE_CODE_BOOL,
7700 TYPE_CODE_RANGE, TYPE_CODE_CHAR, TYPE_CODE_FLT,
7701 TYPE_CODE_DECFLOAT, TYPE_CODE_VOID, TYPE_CODE_ERROR,
7702 TYPE_CODE_UNDEF, TYPE_CODE_COMPLEX>: Call generic_val_print.
7703 * ada-valprint.c (ada_val_print_1) <TYPE_CODE_FLAGS>: Remove
7704 case.
7705
d3eab38a
TT
77062012-03-01 Tom Tromey <tromey@redhat.com>
7707
7708 * valprint.c (val_print): Update.
7709 * p-valprint (pascal_val_print): Return void.
7710 * p-lang.h (pascal_val_print): Return void.
7711 * m2-valprint.c (m2_val_print): Return void.
7712 * m2-lang.h (m2_val_print): Return void.
7713 * language.h (struct language_defn) <la_val_print>: Return void.
7714 * language.c (unk_lang_val_print): Return void.
7715 * jv-valprint.c (java_val_print): Return void.
7716 * jv-lang.h (java_val_print): Return void.
7717 * f-valprint.c (f_val_print): Return void.
7718 * f-lang.h (f_val_print): Return void.
7719 * d-valprint.c (d_val_print): Return void.
7720 (dynamic_array_type): Update.
7721 * d-lang.h (d_val_print): Return void.
7722 * c-valprint.c (c_val_print): Return void.
7723 * c-lang.h (c_val_print): Return void.
7724 * ada-valprint.c (ada_vada_val_print, ada_val_print_1): Return
7725 void.
7726 * ada-lang.h (ada_val_print): Return void.
7727
35c0084b
TT
77282012-03-01 Tom Tromey <tromey@redhat.com>
7729
7730 * value.h (val_print): Return void.
7731 * valprint.c (val_print): Return void.
7732
a1f5dd1b
TT
77332012-03-01 Tom Tromey <tromey@redhat.com>
7734
7735 * value.h (common_val_print): Return void.
7736 * valprint.c (common_val_print): Return void.
7737
8e069a98
TT
77382012-03-01 Tom Tromey <tromey@redhat.com>
7739
7740 * value.h (value_print): Return void.
7741 * valprint.c (value_print): Return void.
7742 * p-valprint.c (pascal_value_print): Return void.
7743 * p-lang.h (pascal_value_print): Return void.
7744 * language.h (struct language_defn) <la_value_print>: Return
7745 void.
7746 * language.c (unk_lang_value_print): Return void.
7747 * jv-valprint.c (java_value_print): Return void.
7748 * jv-lang.h (java_value_print): Return void.
7749 * f-valprint.c (c_value_print): Don't declare.
7750 Include c-lang.h.
7751 * c-valprint.c (c_value_print): Return void.
7752 * c-lang.h (c_value_print): Return void.
7753 * ada-valprint.c (ada_value_print): Return void.
7754 * ada-lang.h (ada_value_print): Return void.
7755
be335936
TT
77562012-03-01 Tom Tromey <tromey@redhat.com>
7757
7758 * value.c (value_primitive_field): Handle virtual base classes.
7759
b0db66a7
TT
77602012-03-01 Tom Tromey <tromey@redhat.com>
7761
7762 * gdbtypes.h (struct vbase): Remove.
7763
132c57b4
TT
77642012-03-01 Tom Tromey <tromey@redhat.com>
7765
7766 * c-valprint.c (print_function_pointer_address): Move...
7767 * valprint.c: ... here. Make non-static.
7768 * m2-valprint.c (print_function_pointer_address): Remove.
7769 * valprint.h (print_function_pointer_address): Declare.
7770
e41eec66
JB
77712012-03-01 Joel Brobecker <brobecker@adacore.com>
7772
7773 * NEWS: Document the fact that one can provide a condition when
7774 creating an Ada exception catchpoint.
7775
19c37f24
TT
77762012-03-01 Tom Tromey <tromey@redhat.com>
7777
7778 * valprint.c (val_print_type_code_flags): Fix placement of
7779 trailing brace.
7780
f0fed3a3
JB
77812012-03-01 Joel Brobecker <brobecker@adacore.com>
7782
7783 * copyright.py (MULTILINE_COMMENT_PREFIXES): Delete.
7784 (update_files): Do not set MULTILINE_COMMENT_PREFIXES
7785 environment variable before calling update-copyright.
7786
8ba85d85
JB
77872012-03-01 Joel Brobecker <brobecker@adacore.com>
7788
7789 * gnulib/extra/update-copyright: Update to the latest from
7790 gnulib's git repository.
7791 * copyright.py: Set UPDATE_COPYRIGHT_USE_INTERVALS environment
7792 variable to 2 instead of 1.
7793
8219b1e8
JB
77942012-02-29 Joel Brobecker <brobecker@adacore.com>
7795
7796 * varobj.c (c_value_of_variable): Remove dead code.
7797
718cb7da
JB
77982012-02-29 Joel Brobecker <brobecker@adacore.com>
7799
7800 * ada-lex.p (processId): Do not modify already encoded IDs.
7801 Update function documentation.
7802
739593e0
JB
78032012-02-29 Joel Brobecker <brobecker@adacore.com>
7804
7805 * ada-lang.h (ada_find_renaming_symbol): Replace parameter
7806 "name" with "struct symbol *name_sym".
7807 * ada-exp.y (write_var_or_type): Update call to
7808 ada_find_renaming_symbol.
7809 "name" with "struct symbol *name_sym". Adjust Implementation
7810 accordingly. Adjust the function documentation.
7811
852dff6c
JB
78122012-02-29 Joel Brobecker <brobecker@adacore.com>
7813
7814 * ada-lang.h (ada_find_any_symbol, ada_find_any_type): Delete.
7815 * ada-lang.c (ada_find_any_type): Add advance declaration.
7816 Make static. Replace ada_find_any_symbol by
7817 ada_find_any_type_symbol.
7818 (ada_find_any_type_symbol): Renames ada_find_any_symbol.
7819 Improve function description. Make static.
7820 (ada_find_renaming_symbol, find_old_style_renaming_symbol):
7821 Replace ada_find_any_symbol by ada_find_any_type_symbol.
7822
1b611343
JB
78232012-02-29 Joel Brobecker <brobecker@adacore.com>
7824
7825 * ada-lang.c (struct tag_args): Delete.
7826 (ada_get_tsd_type): Function body moved up in source file.
7827 (ada_tag_name_1, ada_tag_name_2): Delete.
7828 (ada_get_tsd_from_tag): New function.
7829 (ada_tag_name_from_tsd): New function.
7830 (ada_tag_name): Use a TRY_CATCH block instead of catch_errors
7831 to determine the tag name.
7832
41246937
JB
78332012-02-29 Joel Brobecker <brobecker@adacore.com>
7834
7835 * ada-lang.h (ada_get_decoded_value, ada_get_decoded_type): Add
7836 declaration.
7837 * ada-lang.c (ada_get_decoded_value, ada_get_decoded_type): New
7838 function.
7839
ffde82bf
JB
78402012-02-29 Joel Brobecker <brobecker@adacore.com>
7841
7842 * ada-lang.c (ada_is_ignored_field): Rewrite wrong comment.
7843
2ad01556
JB
78442012-02-29 Joel Brobecker <brobecker@adacore.com>
7845
7846 * ada-lang.c (ada_lookup_symbol_list): Only cache the result of
7847 full searches.
7848
99b1c762
JB
78492012-02-29 Joel Brobecker <brobecker@adacore.com>
7850
7851 * ada-lang.c (constrained_packed_array_type): If there is a
7852 parallel XA type, use it to determine the array index type.
7853
2d4a02ee
JB
78542012-02-29 Joel Brobecker <brobecker@adacore.com>
7855
7856 * ada-valprint.c (ada_val_print_1): If our value is a reference
7857 to an array descriptor, dereference it before converting it
7858 to a simple array.
7859
c48db5ca
JB
78602012-02-29 Joel Brobecker <brobecker@adacore.com>
7861
7862 * ada-lang.c (ada_to_fixed_value): Call unwrap_value before
7863 creating fixed value.
7864 (ada_value_ind, ada_coerce_ref, assign_component)
7865 (ada_evaluate_subexp): Remove call to unwrap_value before
7866 call to ada_to_fixed_value.
7867
2e6fda7d
JB
78682012-02-29 Joel Brobecker <brobecker@adacore.com>
7869
7870 * ada-lang.c (to_fixed_array_type): Set result's type name.
7871
5845583d
JB
78722012-02-29 Joel Brobecker <brobecker@adacore.com>
7873
7874 * ada-lang.c (catch_ada_exception_command_split): Add new
7875 argument cond_string. Add support for condition at end of
7876 "catch exception" commands.
7877 (ada_decode_exception_location): Add new argument cond_string.
7878 Update call to catch_ada_exception_command_split.
7879 (create_ada_exception_catchpoint): Add new argument cond_string.
7880 Set the breakpoint condition if needed.
7881 (catch_ada_exception_command): Update call to
7882 ada_decode_exception_location.
7883 (ada_decode_assert_location): Add function documentation.
7884 Add support for condition at end of "catch assert" command.
7885 (catch_assert_command): Update calls to ada_decode_assert_location
7886 and create_ada_exception_catchpoint.
7887
9a7f938f
JK
78882012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7889
7890 Fix disp-step-syscall.exp: fork: single step over fork.
7891 * i386-linux-tdep.c (-i386_linux_get_syscall_number): Rename to ...
7892 (i386_linux_get_syscall_number_from_regcache): ... here, new function
7893 comment, change parameters gdbarch and ptid to regcache. Remove
7894 parameter regcache, initialize gdbarch from regcache here.
7895 (i386_linux_get_syscall_number, i386_linux_displaced_step_copy_insn):
7896 New functions.
7897 (i386_linux_init_abi): Install i386_linux_displaced_step_copy_insn
7898 instead.
7899 * i386-tdep.c (i386_syscall_p): Check also for 'sysenter' and
7900 'syscall'. Make the 'int' check more strict.
7901
ffdf6de5
JK
79022012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7903
7904 Fix reverse mode for syscall on AMD CPUs in 32-bit mode.
7905 * i386-linux-tdep.c (i386_linux_intx80_sysenter_record): Rename to ...
7906 (i386_linux_intx80_sysenter_syscall_record): ... here.
7907 (i386_linux_init_abi): Initialize also I386_SYSCALL_RECORD.
7908 Use the renamed function name.
7909
c70a6932
JK
79102012-02-29 Jan Kratochvil <jan.kratochvil@redhat.com>
7911
7912 * arm-linux-tdep.c (arm_linux_copy_svc): Reset stale FRAME.
7913 * breakpoint.c (until_break_command): Likewise.
7914 * elfread.c (elf_gnu_ifunc_resolver_stop): Likewise.
7915 * infcall.c (call_function_by_hand): Likewise.
7916 * infcmd.c (finish_forward): Likewise.
7917 * infrun.c (insert_exception_resume_breakpoint): Likewise.
7918
05b8a789 79192012-02-28 Tristan Gingold <gingold@adacore.com>
d4cd3da9 7920
d4cd3da9
JB
7921 * ada-tasks.c (ada_tasks_inferior_data_sniffer): Rework code to
7922 avoid variable assignments inside condition.
7923
6425366c
JK
79242012-02-28 Jan Kratochvil <jan.kratochvil@redhat.com>
7925
7926 Fix static analysis issue found by cppcheck.
7927 * microblaze-tdep.c (microblaze_extract_return_value): Fix
7928 uninitialized BUF for size 2.
7929
c8cef75f 79302012-02-27 Chris Dearman <chris@mips.com>
a09130f9
PA
7931 Nathan Froyd <froydnj@codesourcery.com>
7932 Maciej W. Rozycki <macro@codesourcery.com>
c8cef75f
MR
7933
7934 * mips-tdep.c (mips32_instruction_has_delay_slot): New function.
7935 (mips16_instruction_has_delay_slot): Likewise.
7936 (mips_segment_boundary): Likewise.
7937 (mips_adjust_breakpoint_address): Likewise.
7938 (mips_gdbarch_init): Use mips_adjust_breakpoint_address.
7939
473347ad 79402012-02-27 Maciej W. Rozycki <macro@mips.com>
a09130f9 7941 Maciej W. Rozycki <macro@codesourcery.com>
473347ad
MR
7942
7943 * infrun.c (handle_inferior_event): Don't proceed through
7944 shared library trampolines if stepping at the machine
7945 instruction level.
7946
cf233303
MR
79472012-02-27 Maciej W. Rozycki <macro@codesourcery.com>
7948
7949 * mips-linux-tdep.c (mips_linux_init_abi): Set num_pseudo_regs
7950 too.
7951
cb2cf4ce
TS
79522012-02-27 Thomas Schwinge <thomas@codesourcery.com>
7953
7954 * sh-tdep.c (sh_make_stub_cache, sh_stub_this_id)
7955 (sh_stub_unwind_sniffer): New functions.
7956 (sh_stub_unwind): New variable.
7957 (sh_gdbarch_init): Wire everything.
7958
644cebc9
PA
79592012-02-27 Pedro Alves <palves@redhat.com>
7960
7961 * linux-nat.c (pid_is_stopped): Delete, moved to common/.
7962 (linux_nat_post_attach_wait): Adjust to use
7963 linux_proc_pid_is_stopped.
7964 * common/linux-procfs.h (linux_proc_pid_is_stopped): Declare.
7965 * common/linux-procfs.c (linux_proc_pid_is_stopped): New function,
7966 based on pid_is_stopped from both linux-nat.c and
7967 gdbserver/linux-low.c, and renamed.
7968
283002cf
MR
79692012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7970
7971 * remote.c (remote_watchpoint_addr_within_range): New function.
7972 (init_remote_ops): Use it.
7973
9b3e86b1
MR
79742012-02-24 Maciej W. Rozycki <macro@codesourcery.com>
7975
7976 * target.h (target_watchpoint_addr_within_range): Document macro.
7977
e36930bb
PA
79782012-02-24 Pedro Alves <palves@redhat.com>
7979
7980 * stack.c (set_last_displayed_sal): Issue internal_error instead
7981 of warning, and issue it after clearing the last displayed sal.
7982
883bc8d1
PA
79832012-02-24 Jan Kratochvil <jan.kratochvil@redhat.com>
7984 Pedro Alves <palves@redhat.com>
7985
7986 * breakpoint.c (until_break_command): Install breakpoints after
7987 all frame manipulations.
7988
b775012e
LM
79892012-02-24 Luis Machado <lgustavo@codesourcery.com>
7990
7991 * remote.c (remote_supports_cond_breakpoints): New forward
7992 declaration.
7993 (remote_add_target_side_condition): New function.
7994 (remote_insert_breakpoint): Add target-side breakpoint
7995 conditional if supported.
7996 (remote_insert_hw_breakpoint): Likewise.
7997 (init_remote_ops): Set to_supports_evaluation_of_breakpoint_conditions
7998 hook.
7999
8000 * target.c (update_current_target): Inherit
8001 to_supports_evaluation_of_breakpoint_conditions.
8002 Default to_supports_evaluation_of_breakpoint_conditions to return_zero.
8003
8004 * target.h (struct target_ops)
8005 <to_supports_evaluation_of_breakpoint_conditions>: New field.
8006 (target_supports_evaluation_of_breakpoint_conditions): New #define.
8007
8008 * breakpoint.c (get_first_locp_gte_addr): New forward declaration.
8009 (condition_evaluation_both, condition_evaluation_auto,
8010 condition_evaluation_host, condition_evaluation_target,
8011 condition_evaluation_enums, condition_evaluation_mode_1,
8012 condition_evaluation_mode): New static globals.
8013 (translate_condition_evaluation_mode): New function.
8014 (breakpoint_condition_evaluation_mode): New function.
8015 (gdb_evaluates_breakpoint_condition_p): New function.
8016 (ALL_BP_LOCATIONS_AT_ADDR): New helper macro.
8017 (mark_breakpoint_modified): New function.
8018 (mark_breakpoint_location_modified): New function.
8019 (set_condition_evaluation_mode): New function.
8020 (show_condition_evaluation_mode): New function.
8021 (bp_location_compare_addrs): New function.
8022 (get_first_location_gte_addr): New helper function.
8023 (set_breakpoint_condition): Free condition bytecode if locations
8024 has become unconditional. Call mark_breakpoint_modified (...).
8025 (condition_command): Call update_global_location_list (1) for
8026 breakpoints.
8027 (breakpoint_xfer_memory): Use is_breakpoint (...).
8028 (is_breakpoint): New function.
8029 (parse_cond_to_aexpr): New function.
8030 (build_target_condition_list): New function.
8031 (insert_bp_location): Handle target-side conditional
8032 breakpoints and call build_target_condition_list (...).
8033 (update_inserted_breakpoint_locations): New function.
8034 (insert_breakpoint_locations): Handle target-side conditional
8035 breakpoints.
8036 (bpstat_check_breakpoint_conditions): Add comment.
8037 (bp_condition_evaluator): New function.
8038 (bp_location_condition_evaluator): New function.
8039 (print_breakpoint_location): Print information on where the condition
8040 will be evaluated.
8041 (print_one_breakpoint_location): Likewise.
8042 (init_bp_location): Call mark_breakpoint_location_modified (...) for
8043 breakpoint location.
8044 (force_breakpoint_reinsertion): New functions.
8045 (update_global_location_list): Handle target-side breakpoint
8046 conditions.
8047 Reinsert locations that are already inserted if conditions have
8048 changed.
8049 (bp_location_dtor): Free agent expression bytecode.
8050 (disable_breakpoint): Call mark_breakpoint_modified (...).
8051 Call update_global_location_list (...) with parameter 1 for breakpoints.
8052 (disable_command): Call mark_breakpoint_location_modified (...).
8053 Call update_global_location_list (...) with parameter 1 for breakpoints.
8054 (enable_breakpoint_disp): Call mark_breakpoint_modified (...).
8055 (enable_command): mark_breakpoint_location_modified (...).
8056 (_initialize_breakpoint): Update documentation and add
8057 condition-evaluation breakpoint subcommand.
8058
8059 * breakpoint.h: Include ax.h.
8060 (condition_list): New data structure.
8061 (condition_status): New enum.
8062 (bp_target_info) <cond_list>: New field.
8063 (bp_location) <condition_changed, cond_bytecode>: New fields.
8064 (is_breakpoint): New prototype.
8065
3788aec7
LM
80662012-02-24 Luis Machado <lgustavo@codesourcery.com>
8067
8068 * remote.c (remote_state) <cond_breakpoints>: New field.
8069 (PACKET_ConditionalBreakpoints): New enum.
8070 (remote_cond_breakpoint_feature): New function.
8071 (remote_protocol_features): Add new ConditionalBreakpoints entry.
8072 (remote_supports_cond_breakpoints): New function.
8073 (_initialize_remote): Add new packet configuration for
8074 target-side conditional breakpoints.
8075
72895ff6
LM
80762012-02-24 Luis Machado <lgustavo@codesourcery.com>
8077
8078 * NEWS: Mention target-side conditional breakpoint support,
8079 new condition-evaluation breakpoint subcommand and remote
8080 packet extensions.
8081
dea2aa5f
LM
80822012-02-24 Luis Machado <lgustavo@codesourcery.com>
8083
8084 * breakpoint.c (bp_location_compare): Sort by pspace before sorting by
8085 number.
8086
8a8bc27f
TS
80872012-02-24 Thomas Schwinge <thomas@codesourcery.com>
8088
8089 * sh-tdep.c (sh_skip_prologue): Use skip_prologue_using_sal.
8090 (after_prologue): Remove.
8091
6b446fdf
TT
80922012-02-23 Tom Tromey <tromey@redhat.com>
8093
8094 * jv-valprint.c (java_val_print): Remove dead code.
8095
ef59abfb
TG
80962012-02-23 Tristan Gingold <gingold@adacore.com>
8097
a09130f9
PA
8098 * ada-tasks.c (struct ada_tasks_inferior_data): Add
8099 known_tasks_element and known_tasks_length fields.
8100 (read_known_tasks_array): Change argument type. Use pointer type
8101 and number of elements from DATA. Adjust.
8102 (read_known_tasks_list): Likewise.
8103 (get_known_tasks_addr): Remove.
8104 (ada_set_current_inferior_known_tasks_addr): Renamed to ...
8105 (ada_tasks_inferior_data_sniffer): ... this. Use symtab for element
8106 type and array length. Merge former get_known_tasks_addr code.
ef59abfb 8107
def166f6
JK
81082012-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
8109
8110 PR backtrace/13716
8111 * infcmd.c (finish_forward): New variable frame_id, initialize it, use
8112 it after set_momentary_breakpoint.
8113
aeaa2474
SA
81142012-02-22 Sterling Augustine <saugustine@google.com>
8115
8116 PR 13689:
8117 * breakpoint.c (watchpoint_exp_is_constant): Add UNOP_CAST to switch.
8118
feea76c2
GB
81192012-02-22 Gary Benson <gbenson@redhat.com>
8120
8121 * dwarf2read.c (dwarf2_read_index): Correct misspelling.
8122 (find_slot_in_mapped_hash): Likewise.
8123
f06e05e0
JK
81242012-02-21 Jan Kratochvil <jan.kratochvil@redhat.com>
8125
8126 PR build/13638
8127 * configure.ac (MAKEINFO): Replace AC_CHECK_PROG by AC_ARG_VAR.
8128 (MAKEINFOFLAGS): Replace static string by AC_ARG_VAR.
8129 * configure: Regenerate.
8130
b54a8fd7
PA
81312012-02-21 Tristan Gingold <gingold@adacore.com>
8132 Pedro Alves <palves@redhat.com>
8133
8134 * ia64-tdep.c: Do not include libunwind-ia64.h.
8135 * libunwind-frame.h: Remove #ifdef HAVE_LIBUNWIND_H guard.
8136 Include libunwind-ia64.h instead of libunwind.h.
8137 * configure.ac (--with-libunwind, $enable_libunwind): Don't check
8138 for libunwind.h existence.
8139 * configure, config.in: Regenerate.
8140
dfcee124
AG
81412012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8142
8143 * c-valprint.c (c_value_print): Use value_rtti_indirect_type
8144 instead of value_rtti_target_type.
8145 * eval.c (evaluate_subexp_standard): Use value_rtti_indirect_type
8146 instead of value_rtti_target_type.
8147 * typeprint.c (whatis_exp): Use value_rtti_indirect_type instead of
8148 value_rtti_target_type.
8149 * valops.c (value_ind): Extract function readjust_indirect_value_type.
8150 (value_rtti_target_type): Rename to ...
8151 (value_rtti_indirect_type): ... here and make it indirect. Update
8152 function comment.
8153 * value.c (readjust_indirect_value_type): New function.
8154 (coerce_ref): Support for enclosing type setting for references
8155 with readjust_indirect_value_type.
8156 * value.h (readjust_value_type): New declaration.
8157 (value_rtti_target_type): Rename to ...
8158 (value_rtti_indirect_type): ... here.
8159
02568277
AG
81602012-02-21 Anton Gorenkov <xgsa@yandex.ru>
8161
8162 * MAINTAINERS (Write After Approval): Add myself to the list.
8163
10c07b7e 81642012-02-20 Doug Evans <dje@google.com>
28ee876a 8165
d82ea6a8
DE
8166 * objfiles.c (add_to_objfile_sections): Remove outdated comments.
8167 Rename objfile_p_char parameter to objfilep.
8168 (build_objfile_section_table): Result is now void. All callers
8169 updated.
8170 * objfiles.h (struct objfile): Tweak comments, whitespace.
8171 (build_objfile_section_table): Update.
8172
28ee876a
DE
8173 * elfread.c (elf_symfile_segments): Fix warning text.
8174
24c79950
TT
81752012-02-20 Tom Tromey <tromey@redhat.com>
8176
8177 PR gdb/13498:
8178 * dwarf2read.c (dw2_expand_symtabs_matching): Only visit a
8179 particular set of file names once.
8180 (dw2_map_symbol_filenames): Likewise.
8181
3a9b40b6
JK
81822012-02-20 Jan Kratochvil <jan.kratochvil@redhat.com>
8183
8184 Code cleanup.
8185 * main.c (write_files): Remove the declaration.
8186 (external_editor_command): Move the declaration ...
8187 [GDBTK] (external_editor_command): ... here. Fix the comment.
8188
4d0795ca
TT
81892012-02-20 Tom Tromey <tromey@redhat.com>
8190
8191 * dwarf2read.c (dw2_map_symtabs_matching_filename): Remove
8192 extraneous block.
8193
637fd620
TG
81942012-02-20 Tristan Gingold <gingold@adacore.com>
8195
8196 * darwin-nat.h (enum darwin_msg_state): Add comments.
8197
6f124894
TG
81982012-02-20 Tristan Gingold <gingold@adacore.com>
8199
8200 * amd64-darwin-tdep.c (x86_darwin_init_abi_64): Fix jb_pc_offset
8201 value.
8202
2e6e3d9c
JB
82032012-20-18 Joel Brobecker <brobecker@adacore.com>
8204
8205 * breakpoint.c (watchpoint_exp_is_const): Add missing empty line
8206 between function description and implementation.
8207
2e8265fd
TT
82082012-02-17 Tom Tromey <tromey@redhat.com>
8209
8210 PR python/12070:
8211 * python/py-event.c (event_object_getset): New global.
8212 (event_object_type): Reference it.
8213 * python/py-type.c (field_object_getset): New global.
8214 (field_object_type): Reference it.
8215 * python/python-internal.h (gdb_py_generic_dict): Declare.
8216 * python/py-utils.c (gdb_py_generic_dict): New function.
8217
8544a150 82182012-02-17 Tristan Gingold <gingold@adacore.com>
6f124894 8219
8544a150 8220 * solib-darwin.c (darwin_current_sos): Check magic and filetype
6f124894 8221
ca193e27
TS
82222012-02-17 Thomas Schwinge <thomas@codesourcery.com>
8223
8224 * sh-tdep.c (sh_is_renesas_calling_convention): Fix handling of
8225 TYPE_CALLING_CONVENTION annotation.
8226
e5586183
KB
82272012-02-16 Kevin Buettner <kevinb@redhat.com>
8228
8229 * MAINTAINERS: Add rx to target ISA section.
8230 * Makefile.in (ALL_TARGET_OBS): Add rx-tdep.o.
8231 (ALLDEPFILES): Add rx-tdep.c.
8232
7dcd53a0
TT
82332012-02-16 Tom Tromey <tromey@redhat.com>
8234
8235 * symfile.c (symbol_file_add_main_1): Use inferior's
8236 symfile_flags.
8237 * solib.c (solib_read_symbols): Use inferior's symfile_flags.
8238 * linux-nat.c (linux_child_follow_fork): Set symfile_flags on
8239 inferior.
8240 * infrun.c (handle_vfork_child_exec_or_exit): Set symfile_flags on
8241 inferior.
8242 (follow_exec): Use inferior's symfile_flags.
8243 * inferior.h (struct inferior) <symfile_flags>: New field.
8244
ddd60447
MF
82452012-02-16 Mike Frysinger <vapier@gentoo.org>
8246
8247 PR gdb/9734:
8248 * remote-sim.c (gdbsim_create_inferior): Call error() when
8249 sim_create_inferior() fails.
8250
b0d32fb6
TG
82512012-02-16 Josh Matthews <josh@joshmatthews.net>
8252
8253 * machoread.c: Initialize nbr_syms to avoid warnings-as-errors failure.
8254
9addecb9
TT
82552012-02-16 Tom Tromey <tromey@redhat.com>
8256
8257 PR c++/13653:
8258 * thread.c (struct current_thread_cleanup) <was_removable>: New
8259 field.
8260 (restore_current_thread_cleanup_dtor): Restore 'removable' field.
8261 (make_cleanup_restore_current_thread): Initialize new field.
8262
a58b110a
KB
82632012-02-15 Kevin Buettner <kevinb@redhat.com>
8264
8265 * MAINTAINERS: Add rl78 to target ISA section.
8266 * Makefile.in (ALL_TARGET_OBS): Add rl78-tdep.o.
8267 (ALLDEPFILES): Add rl78-tdep.c.
8268 * NEWS: Mention rl78 as a new target.
8269
4cb6da1c
AR
82702012-02-15 Aleksandar Ristovski <aristovski@qnx.com>
8271
8272 * frame.c (find_frame_sal): Initialize sal->pspace field from frame
8273 data.
8274 * stack.c (set_last_displayed_sal): Validate that PSPACE is not NULL.
8275
3af2590d
TT
82762012-02-15 Tom Tromey <tromey@redhat.com>
8277
8278 PR gdb/12659:
8279 * infcmd.c (registers_info): Print just the current register's
8280 name.
8281
c6910659
TT
82822012-02-15 Tom Tromey <tromey@redhat.com>
8283
8284 * python/py-symbol.c (sympy_value): Use _().
8285
7cee1e54
PA
82862012-02-15 Pedro Alves <palves@redhat.com>
8287
8288 * remote.c (remote_detach_1, extended_remote_attach_1): Tweak
8289 output to be like native targets'.
8290 (remote_pid_to_str): Special case the null ptid.
8291
816338b5
SS
82922012-02-14 Stan Shebs <stan@codesourcery.com>
8293
8294 * NEWS: Mention enable count command.
8295 * breakpoint.h (struct breakpoint): New field enable_count.
8296 * breakpoint.c (enable_breakpoint_disp): Add count argument.
8297 (enable_breakpoint): Add arg to call.
8298 (struct disp_data): New struct.
8299 (do_enable_breakpoint_disp): Interp arg as disp_data and unpack.
8300 (do_map_enable_once_breakpoint): Create a struct and pass it.
8301 (do_map_enable_delete_breakpoint): Ditto.
8302 (do_map_enable_count_breakpoint): New function.
8303 (enable_count_command): New function.
8304 (bpstat_stop_status): Decrement enable_count.
8305 (print_one_breakpoint_location): Report enable count.
8306 (_initialize_breakpoint): Add enable count command.
8307
c47a44f4
KB
83082012-02-14 Kevin Buettner <kevinb@redhat.com>
8309
8310 * rl78-tdep.c (reggroups.h): Include.
8311 (RL78_RAW_BANK0_R0_REGNUM, RL78_RAW_BANK0_R1_REGNUM)
8312 (RL78_RAW_BANK0_R2_REGNUM, RL78_RAW_BANK0_R3_REGNUM)
8313 (RL78_RAW_BANK0_R4_REGNUM, RL78_RAW_BANK0_R5_REGNUM)
8314 (RL78_RAW_BANK0_R6_REGNUM, RL78_RAW_BANK0_R7_REGNUM)
8315 (RL78_RAW_BANK1_R0_REGNUM, RL78_RAW_BANK1_R1_REGNUM)
8316 (RL78_RAW_BANK1_R2_REGNUM, RL78_RAW_BANK1_R3_REGNUM)
8317 (RL78_RAW_BANK1_R4_REGNUM, RL78_RAW_BANK1_R5_REGNUM)
8318 (RL78_RAW_BANK1_R6_REGNUM, RL78_RAW_BANK1_R7_REGNUM)
8319 (RL78_RAW_BANK2_R0_REGNUM, RL78_RAW_BANK2_R1_REGNUM)
8320 (RL78_RAW_BANK2_R2_REGNUM, RL78_RAW_BANK2_R3_REGNUM)
8321 (RL78_RAW_BANK2_R4_REGNUM, RL78_RAW_BANK2_R5_REGNUM)
8322 (RL78_RAW_BANK2_R6_REGNUM, RL78_RAW_BANK2_R7_REGNUM)
8323 (RL78_RAW_BANK3_R0_REGNUM, RL78_RAW_BANK3_R1_REGNUM)
8324 (RL78_RAW_BANK3_R2_REGNUM, RL78_RAW_BANK3_R3_REGNUM)
8325 (RL78_RAW_BANK3_R4_REGNUM, RL78_RAW_BANK3_R5_REGNUM)
8326 (RL78_RAW_BANK3_R6_REGNUM, RL78_RAW_BANK3_R7_REGNUM): Add to
8327 beginning of register list.
8328 (RL78_BANK0_R0_REGNUM, RL78_BANK0_R1_REGNUM, RL78_BANK0_R2_REGNUM)
8329 (RL78_BANK0_R3_REGNUM, RL78_BANK0_R4_REGNUM, RL78_BANK0_R5_REGNUM)
8330 (RL78_BANK0_R6_REGNUM, RL78_BANK0_R7_REGNUM, RL78_BANK1_R0_REGNUM)
8331 (RL78_BANK1_R1_REGNUM, RL78_BANK1_R2_REGNUM, RL78_BANK1_R3_REGNUM)
8332 (RL78_BANK1_R4_REGNUM, RL78_BANK1_R5_REGNUM, RL78_BANK1_R6_REGNUM)
8333 (RL78_BANK1_R7_REGNUM, RL78_BANK2_R0_REGNUM, RL78_BANK2_R1_REGNUM)
8334 (RL78_BANK2_R2_REGNUM, RL78_BANK2_R3_REGNUM, RL78_BANK2_R4_REGNUM)
8335 (RL78_BANK2_R5_REGNUM, RL78_BANK2_R6_REGNUM, RL78_BANK2_R7_REGNUM)
8336 (RL78_BANK3_R0_REGNUM, RL78_BANK3_R1_REGNUM, RL78_BANK3_R2_REGNUM)
8337 (RL78_BANK3_R3_REGNUM, RL78_BANK3_R4_REGNUM, RL78_BANK3_R5_REGNUM)
8338 (RL78_BANK3_R6_REGNUM, RL78_BANK3_R7_REGNUM): Move these into
8339 the pseudo registers. Rearrange other pseudo registers too so
8340 that the bank registers appear at the end.
8341 (rl78_register_type): Account for the fact that the byte sized
8342 bank registers are now pseudo-registers.
8343 (rl78_register_name): Rearrange the register name array. Make
8344 initial set of raw banked registers inaccessible.
8345 (rl78_register_reggroup_p, rl78_register_sim_regno): New functions.
8346 (rl78_pseudo_register_read, rl78_pseudo_register_write): Add
8347 case for copying bytes back and forth between raw and pseudo
8348 versions of the banked registers. Update other cases to reflect
8349 the changed names.
8350 (rl78_return_value): Update to account for changed names of
8351 raw registers.
8352 (rl78_gdbarch_init): Register rl78_register_reggroup_p() and
8353 rl78_register_sim_regno().
8354
e4569f1e
KB
83552012-02-14 Kevin Buettner <kevinb@redhat.com>
8356
8357 * rl78-tdep.c (rl78_skip_prologue): Make `const' the type of
8358 the name parameter being passed to find_pc_partial_function().
8359
7a05aae7
JK
83602012-02-14 Jan Kratochvil <jan.kratochvil@redhat.com>
8361
8362 * MAINTAINERS: Step down from being ia64 target maintainer.
8363
11fde611
JK
83642012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8365
8366 * ppc-linux-nat.c (fetch_register, store_register): Fix GCC aliasing
8367 compilation warning.
8368
57008375
JK
83692012-02-12 Jan Kratochvil <jan.kratochvil@redhat.com>
8370
8371 Fix crash on loaded shlibs without loaded exec_bfd.
8372 * exec.c (exec_files_info): Do not crash on NULL EXEC_BFD.
8373 (set_section_command): Replace exec_bfd by p->bfd.
8374
ff3c9849
TT
83752012-02-10 Tom Tromey <tromey@redhat.com>
8376
8377 * linespec.c (decode_line_internal): Skip symtabs_from_filename
8378 when we have a C++ qualified name.
8379
db2b9fdd
PA
83802012-02-10 Pedro Alves <palves@redhat.com>
8381
8382 * inferior.c (inferior_pid_to_str): New.
8383 (print_inferior, inferior_command): Use it.
8384
12cd34f3
PA
83852012-02-10 Pedro Alves <palves@redhat.com>
8386
8387 * configure.ac (HAVE_ELF test): Put the old CFLAGS at the end of
8388 the test CFLAGS.
8389 * configure: Regenerate.
8390
e871429d
JK
83912012-02-10 Jan Kratochvil <jan.kratochvil@redhat.com>
8392
8393 * linespec.c (decode_line_internal): Fix comment correctness.
8394
1916efaf
PA
83952012-02-09 Valery Khromov <valery.khromov@gmail.com>
8396
8397 PR gdb/12953
8398 * Makefile.in (HFILES_NO_SRCDIR): Add amd64bsd-nat.h.
8399 * amd64bsd-nat.c: Add support for debug registers (adapted from
8400 i386bsd-nat.c).
8401 [HAVE_PT_GETDBREGS] (amd64bsd_dr_get, amd64bsd_dr_set)
8402 (amd64bsd_dr_set_control, amd64bsd_dr_set_addr)
8403 (amd64bsd_dr_get_addr, amd64bsd_dr_get_status)
8404 (amd64bsd_dr_get_control): New functions.
8405 * amd64bsd-nat.h: New file (adapted from i386bsd-nat.h).
8406 * amd64fbsd-nat.c: Include "amd64bsd-nat.h", "i386-nat.h".
8407 [HAVE_PT_GETDBREGS] (_initialize_amd64fbsd_nat): Add hardware
8408 watchpoints initialization.
8409 * config/i386/fbsd64.mh (NATDEPFILES): Add i386-nat.o.
8410
f4859d94
JK
84112012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8412
8413 * gdb-gdb.py (StructMainTypePrettyPrinter) <struct_field_img>: Print
8414 flds_bnds.fields.
8415 (StructMainTypePrettyPrinter) <bounds_img>: Print flds_bnds.bounds.
8416
c56a97f9
JK
84172012-02-09 Jan Kratochvil <jan.kratochvil@redhat.com>
8418
8419 * breakpoint.c (bp_location_compare): Fix comment. Reindent the code.
8420
1a119f36
JB
84212012-02-08 Joel Brobecker <brobecker@adacore.com>
8422
8423 * language.h (symbol_name_cmp_ftype): Renames
8424 symbol_name_match_p_ftype.
8425 (struct language_defn)[la_get_symbol_name_cmp]: Renames
8426 la_get_symbol_name_match_p.
8427 * ada-lang.c (ada_get_symbol_name_cmp): Renames
8428 ada_get_symbol_name_match_p. Update comment.
8429 (ada_language_defn)[la_get_symbol_name_cmp]: Update value.
8430 * linespec.c (struct symbol_matcher_data)[symbol_name_cmp]:
8431 Renames symbol_name_match_p. Update field type.
8432 (iterate_name_matcher, iterate_over_all_matching_symtabs): Adjust.
8433 * c-lang.c, d-lang.c, f-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8434 opencl-lang.c, p-lang.c: Replace "la_get_symbol_name_match_p" by
8435 "la_get_symbol_name_cmp" in comments.
8436 * language.c: Likewise.
8437
c71bb1cf
RO
84382012-02-08 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
8439
8440 * amd64-sol2-tdep.c (amd64_sol2_gregset_reg_offset): Correct
8441 %eflags offset.
8442 * i386-sol2-nat.c (amd64_sol2_gregset64_reg_offs)
8443 (amd64_sol2_gregset32_reg_offs): Likewise.
8444
4b2d20a5
TG
84452012-02-08 Joel Brobecker <brobecker@adacore.com>
8446
8447 * solib-darwin.c (darwin_bfd_open): Make sure that the filename
8448 of the returned BFD is allocated by GDB.
8449
f0823d2c
TT
84502012-02-07 Tom Tromey <tromey@redhat.com>
8451
8452 PR python/12027:
8453 * python/python-internal.h (frame_object_type): Declare.
8454 * python/py-symbol.c (sympy_needs_frame): New function.
8455 (sympy_value): New function.
8456 (symbol_object_getset): Add "needs_frame".
8457 (symbol_object_methods): Add "value".
8458 * python/py-frame.c (frame_object_type): No longer static.
8459
64e7d9dd
TT
84602012-02-07 Tom Tromey <tromey@redhat.com>
8461
8462 PR python/13599:
8463 * python/py-symbol.c (sympy_line): New function.
8464 (symbol_object_getset): Add "line".
8465
1d6b2d2b
TT
84662012-02-07 Tom Tromey <tromey@redhat.com>
8467
8468 * charset.c (find_charset_names): Check 'in' against NULL.
8469
0d5cff50
DE
84702012-02-06 Doug Evans <dje@google.com>
8471
8472 * gdbtypes.h (struct main_type): Change type of name,tag_name,
8473 and fields.name members from char * to const char *. All uses updated.
8474 (struct cplus_struct_type): Change type of fn_fieldlists.name member
8475 from char * to const char *. All uses updated.
8476 (type_name_no_tag): Update.
8477 (lookup_unsigned_typename, lookup_signed_typename): Update.
8478 * gdbtypes.c (type_name_no_tag): Change result type
8479 from char * to const char *. All callers updated.
8480 (lookup_unsigned_typename, lookup_signed_typename): Change type of
8481 name parameter from char * to const char *.
8482 * symtab.h (struct cplus_specific): Change type of demangled_name
8483 member from char * to const char *. All uses updated.
8484 (struct general_symbol_info): Change type of name and
8485 mangled_lang.demangled_name members from char * to const char *.
8486 All uses updated.
8487 (symbol_get_demangled_name, symbol_natural_name): Update.
8488 (symbol_demangled_name, symbol_search_name): Update.
8489 * symtab.c (symbol_get_demangled_name): Change result type
8490 from char * to const char *. All callers updated.
8491 (symbol_natural_name, symbol_demangled_name): Ditto.
8492 (symbol_search_name): Ditto.
8493 (completion_list_add_name): Change type of symname,sym_text,
8494 text,word parameters from char * to const char *.
8495 (completion_list_objc_symbol): Change type of sym_text,
8496 text,word parameters from char * to const char *.
8497 * ada-lang.c (find_struct_field): Change type of name parameter
8498 from char * to const char *.
8499 (encoded_ordered_before): Similarly for N0,N1 parameters.
8500 (old_renaming_is_invisible): Similarly for function_name parameter.
8501 (ada_type_name): Change result type from char * to const char *.
8502 All callers updated.
8503 * ada-lang.h (ada_type_name): Update.
8504 * buildsym.c (hashname): Change type of name parameter
8505 from char * to const char *.
8506 * buildsym.h (hashname): Update.
8507 * dbxread.c (end_psymtab): Change type of include_list parameter
8508 from char ** to const char **.
8509 * dwarf2read.c (determine_prefix): Change result type
8510 from char * to const char *. All callers updated.
8511 * f-lang.c (find_common_for_function): Change type of name, funcname
8512 parameters from char * to const char *.
8513 * f-lang.c (find_common_for_function): Update.
8514 * f-valprint.c (list_all_visible_commons): Change type of funcname
8515 parameters from char * to const char *.
8516 * gdbarch.sh (static_transform_name): Change type of name parameter
8517 and result from char * to const char *.
8518 * gdbarch.c: Regenerate.
8519 * gdbarch.h: Regenerate.
8520 * i386-sol2-tdep.c (i386_sol2_static_transform_name): Change type
8521 of name parameter from char * to const char *.
8522 * jv-lang.c (java_primitive_type_from_name): Ditto.
8523 (java_demangled_signature_length): Similarly for signature parameter.
8524 (java_demangled_signature_copy): Ditto.
8525 (java_demangle_type_signature): Ditto.
8526 * jv-lang.h (java_primitive_type_from_name): Update.
8527 (java_demangle_type_signature): Update.
8528 * objc-lang.c (specialcmp): Change type of a,b parameters
8529 from char * to const char *.
8530 * p-lang.c (is_pascal_string_type): Change type of arrayname parameter
8531 from char * to const char *. All callers updated.
8532 * p-lang.h (is_pascal_string_type): Update.
8533 * solib-frv.c (find_canonical_descriptor_in_load_object): Change type
8534 of name parameter from char * to const char *.
8535 * sparc-sol2-tdep.c (sparc_sol2_static_transform_name): Ditto.
8536 * utils.c (fprintf_symbol_filtered): Ditto.
8537 * defs.h (fprintf_symbol_filtered): Update.
8538 * sparc-tdep.h (sparc_sol2_static_transform_name): Update.
8539 * stabsread.h (end_psymtab): Update.
8540 * stack.c (find_frame_funname): Change type of funname parameter
8541 from char ** to const char **.
8542 * stack.h (find_frame_funname): Update.
8543 * typeprint.c (type_print): Change type of varstring parameter
8544 from char * to const char *.
8545 * value.h (type_print): Update.
8546 * xcoffread.c (xcoff_start_psymtab): Change type of filename parameter
8547 from char * to const char *. All callers updated.
8548 (xcoff_end_psymtab): Change type of include_list parameter
8549 from char ** to const char **. All callers updated.
8550 (swap_sym): Similarly for name parameter. All callers updated.
8551 * coffread.c (patch_type): Add (char*) cast to xfree parameter.
8552 Use xstrdup.
8553 (process_coff_symbol): Use xstrdup.
8554 * stabsread.c (stabs_method_name_from_physname): Renamed from
8555 update_method_name_from_physname. Change result type from void
8556 to char *. All callers updated.
8557 (read_member_functions): In has_destructor case, store name in objfile
8558 obstack instead of malloc space. In !has_stub case, fix mem leak.
8559
5579a92e
TT
85602012-02-06 Luca Pizzamiglio <luca.pizzamiglio@gmail.com>
8561
8562 * configure: Rebuild.
8563 * configure.ac: Put -L../bfd and -L../libiberty at the front of
8564 LDFLAGS.
8565
9058f767
KB
85662012-02-03 Kevin Buettner <kevinb@redhat.com>
8567
8568 * configure.tgt (rl78-*-elf): New target.
8569 * rl78-tdep.c: New file.
8570
5b37825d
PW
85712012-02-03 Philippe Waroquiers <philippe.waroquiers@skynet.be>
8572
8573 * remote.c (remote_rcmd): Use getpkt_sane to detect timeout
8574 and continue the loop. Add QUIT statement.
8575
e009ee71
TT
85762012-02-03 Tom Tromey <tromey@redhat.com>
8577
8578 PR gdb/13596:
8579 * solib.h (gdb_bfd_lookup_symbol_from_symtab): Rename from
8580 bfd_lookup_symbol_from_symtab.
8581 * solib-pa64.c (pa64_solib_create_inferior_hook): Use
8582 gdb_bfd_lookup_symbol_from_symtab.
8583
f7e44f65
JB
85842012-02-03 Joel Brobecker <brobecker@adacore.com>
8585
8586 * mi/mi-cmd-stack.c (list_args_or_locals): For argument symbols,
8587 use SYMBOL_LINKAGE_NAME to find the corresponding non-argument
8588 symbol. Add assertion that sym2 is never NULL.
8589
2c02bd72
DE
85902012-02-02 Doug Evans <dje@google.com>
8591
8592 * blockframe.c (find_pc_partial_function_gnu_ifunc): Change type of
8593 "name" parameter to const char ** from char **. All callers updated.
8594 (find_pc_partial_function): Ditto.
8595 (cache_pc_function_name): Change type to const char * from char *.
8596 * symtab.h ((find_pc_partial_function_gnu_ifunc): Update.
8597 (find_pc_partial_function): Update.
8598 * alpha-tdep.h (struct gdbarch_tdep, member pc_in_sigtramp): Change
8599 type of "name" parameter to const char * from char *.
8600 All uses updated.
8601 * arch-utils.c (generic_in_solib_return_trampoline): Change
8602 type of "name" parameter to const char * from char *.
8603 * arch-utils.h (generic_in_solib_return_trampoline): Update.
8604 * frv-linux-tdep.c (frv_linux_pc_in_sigtramp): Change
8605 type of "name" parameter to const char * from char *.
8606 * gdbarch.sh (in_solib_return_trampoline): Ditto.
8607 * gdbarch.c: Regenerate.
8608 * gdbarch.h: Regenerate.
8609 * hppa-hpux-tdep.c (hppa_hpux_in_solib_return_trampoline): Update.
8610 * rs6000-tdep.c (rs6000_in_solib_return_trampoline): Update.
8611 * m32r-linux-tdep.c (m32r_linux_pc_in_sigtramp): Change
8612 type of "name" parameter to const char * from char *.
8613 * skip.c (skip_function_pc): Ditto.
8614 * sparc-sol2-tdep.c (sparc_sol2_pc_in_sigtramp): Ditto.
8615 * sparc-tdep.h (sparc_sol2_pc_in_sigtramp): Update.
8616 * sparc64fbsd-tdep.c (sparc64fbsd_pc_in_sigtramp): Ditto.
8617 * sparc64nbsd-tdep.c (sparc64nbsd_pc_in_sigtramp): Ditto.
8618 * sparc64obsd-tdep.c (sparc64obsd_pc_in_sigtramp): Ditto.
8619 * sparcnbsd-tdep.c (sparc32nbsd_pc_in_sigtramp): Ditto.
8620 * sparcobsd-tdep.c (sparc32obsd_pc_in_sigtramp): Ditto.
8621 * nbsd-tdep.c (nbsd_pc_in_sigtramp): Similary for "func_name".
8622 * nbsd-tdep.h (nbsd_pc_in_sigtramp): Update.
8623
e886a173
PA
86242012-02-02 Pedro Alves <palves@redhat.com>
8625
8626 * remote.c (remote_get_min_fast_tracepoint_insn_len): Return 0 if
8627 the current inferior has no execution. Make sure the current
8628 remote process matches gdb's current inferior.
8629
c709a7c2
TT
86302012-02-02 Tom Tromey <tromey@redhat.com>
8631
8632 PR gdb/13405:
8633 * tui/tui-win.c (parse_scrolling_args): Don't write to possibly
8634 read-only memory.
8635
f149aabd
TT
86362012-02-02 Tom Tromey <tromey@redhat.com>
8637
8638 PR gdb/9307:
8639 * symtab.c (lookup_language_this): Set block_found.
8640
03bef283
TT
86412012-02-01 Tom Tromey <tromey@redhat.com>
8642
8643 PR gdb/13431:
8644 * jit.c (struct jit_inferior_data): Rewrite.
8645 (struct jit_objfile_data): New.
8646 (get_jit_objfile_data): New function.
8647 (add_objfile_entry): Update.
8648 (jit_read_descriptor): Return int. Replace descriptor_addr
8649 argument with inf_data. Update. Don't call error.
8650 (jit_breakpoint_re_set_internal): Reorder logic. Update. Look up
8651 descriptor here.
8652 (jit_inferior_init): Don't look up descriptor. Don't call error.
8653 (jit_reset_inferior_data_and_breakpoints)
8654 (jit_inferior_created_observer): Remove.
8655 (jit_inferior_exit_hook): Update.
8656 (jit_executable_changed_observer): Remove.
8657 (jit_event_handler): Update.
8658 (free_objfile_data): Reset inferior data if needed.
8659 (_initialize_jit): Update.
8660
f0bbc364
TT
86612012-02-01 Tom Tromey <tromey@redhat.com>
8662
8663 * jit.c (bfd_open_from_target_memory): Move higher in file.
8664
47c1316c
TG
86652012-02-01 Tristan Gingold <gingold@adacore.com>
8666
8667 * libunwind-frame.c (libunwind_load): Display message if dlopen
8668 failed.
8669
8e704927
GB
86702012-02-01 Gary Benson <gbenson@redhat.com>
8671
09c7a31f 8672 * symtab.h (symbol_found_callback_ftype): New typedef.
8e704927
GB
8673 (iterate_over_symbols): Use the above.
8674 * symtab.c (iterate_over_symbols): Likewise.
8675 * language.h (language_defn->la_iterate_over_symbols): Likewise.
8676 * ada-lang.c (ada_iterate_over_symbols): Likewise.
8677 * linespec.c (iterate_over_all_matching_symtabs): Likewise.
8678 (iterate_name_matcher): Document return values.
8679 (collect_one_symbol): Likewise.
8680 (collect_function_symbols): Likewise.
8681 (collect_symbols): Likewise.
8682
d9680e73
TT
86832012-02-01 Tom Tromey <tromey@redhat.com>
8684
8685 * ada-lang.c (resolve_subexp): Update.
8686 (ada_lookup_symbol_list): Add 'full_search' argument.
8687 (ada_iterate_over_symbols): Pass 0 as full_search argument to
8688 ada_lookup_symbol_list.
8689 (ada_lookup_encoded_symbol): Update.
8690 (get_var_value): Update.
8691 * ada-exp.y (block_lookup): Update.
8692 (write_var_or_type): Update.
8693 (write_name_assoc): Update.
8694 * ada-lang.h (ada_lookup_symbol_list): Update.
8695
72e1143f
TT
86962012-01-31 Tom Tromey <tromey@redhat.com>
8697
8698 * language.h (struct language_defn) <la_iterate_over_symbols>: Fix
8699 comment.
8700
ab2d2ad3
DE
87012012-01-31 Doug Evans <dje@google.com>
8702
8703 * symtab.h: Remove outdated comment.
e9111bf7 8704 (SYMBOL_MATCHES_NATURAL_NAME): Delete.
ab2d2ad3 8705
bc884eba
JB
87062012-02-01 Josh Matthews <josh@joshmatthews.net> (tiny change)
8707
8708 Fix build error in Darwin port.
8709 * i386-darwin-nat.c: Include i386-nat.h.
8710
8fc3fc34
TT
87112012-01-30 Tom Tromey <tromey@redhat.com>
8712
8713 PR breakpoints/13568:
8714 * dwarf2read.c (dwarf_decode_macro_bytes): Add 'include_hash'
8715 argument. Check for recursive includes.
8716 (dwarf_decode_macros): Create an include hash.
8717
5d853008
ME
87182012-01-30 Michael Eager <eager@eagercon.com>
8719
8720 * configure.tgt (powerpc-*-linux*): Add glibc-tdep.o.
8721 * ppc-linux-tdep.c: Include glibc-tdep.h.
ab2d2ad3 8722 (powerpc32_plt_stub, powerpc32_plt_stub_so): Add PLT stub templates.
5d853008
ME
8723 (powerpc_linux_in_plt_stub): New function.
8724 (powerpc_linux_in_dynsym_resolve_code): New function.
8725 (ppc_skip_trampoline_code): New function.
8726 (ppc_linux_init_abi): Use PPC specific functions rather than generic.
8727 Use glibc_skip_solib_resolver.
8728
40478521
JK
87292012-01-28 Jan Kratochvil <jan.kratochvil@redhat.com>
8730
8731 Code cleanup: Make 1440 bytes of data segment read-only.
8732 * arch-utils.c (endian_enum): Make it const char *const [].
8733 * arm-tdep.c (fp_model_strings, arm_abi_strings, arm_mode_strings):
8734 Likewise.
8735 * breakpoint.c (always_inserted_enums): Likewise.
8736 * cli/cli-cmds.c (script_ext_enums): Likewise.
8737 * cli/cli-decode.c (add_setshow_enum_cmd, complete_on_enum): Make the
8738 enumlist parameter const char *const *.
8739 * cli/cli-decode.h (struct cmd_list_element): Make the enums field
8740 const char *const *.
8741 * command.h (complete_on_enum, add_setshow_enum_cmd): Make the enumlist
8742 parameter const char *const *.
8743 * cris-tdep.c (cris_modes): Make it const char *const [].
8744 * filesystem.c (target_file_system_kinds): Likewise.
8745 * i386-tdep.c (valid_flavors, valid_conventions): Likewise.
8746 * infrun.c (follow_fork_mode_kind_names, follow_exec_mode_names)
8747 (can_use_displaced_stepping_enum, scheduler_enums)
8748 (exec_direction_names): Likewise.
8749 * language.c (_initialize_language): Make the type_or_range_names and
8750 case_sensitive_names variables const char *const [].
8751 * mips-tdep.c (mips_abi_strings): Make it const char *const [].
8752 * python/python.c (python_excp_enums): Likewise.
8753 * remote.c (interrupt_sequence_modes): Likewise.
8754 * rs6000-tdep.c (powerpc_vector_strings): Likewise.
8755 * serial.c (logbase_enums): Likewise.
8756 * sh-tdep.c (sh_cc_enum): Likewise.
8757 * stack.c (print_frame_arguments_choices, print_entry_values_choices):
8758 Likewise.
8759 * symtab.c (multiple_symbols_modes): Likewise.
8760 * tui/tui-win.c (tui_border_kind_enums, tui_border_mode_enums):
8761 Likewise.
8762 * utils.c (internal_problem_modes): Likewise.
8763
b3b8b934
JK
87642012-01-27 Jan Kratochvil <jan.kratochvil@redhat.com>
8765
8766 Fix the 2012-01-26 regression by la_get_symbol_name_match_p.
8767 * linespec.c (iterate_name_matcher): Negate the SYMBOL_NAME_MATCH_P
8768 result.
8769
8c85a4e2
DE
87702012-01-27 Doug Evans <dje@google.com>
8771
8772 * configure.ac (with_python): Fix absolute path handling for win32.
8773 * configure: Regenerate.
8774
78d8b4d7
DE
87752012-01-26 Doug Evans <dje@google.com>
8776
eca864fe
DE
8777 * symtab.c: Whitespace cleanup, no code changes.
8778
7e082072
DE
8779 * symtab.c (lookup_symbol_in_language): Improve comment.
8780 (lookup_symbol_aux): Fix comment.
8781
7dc25483
DE
8782 * psymtab.c (add_psymbol_to_list): Result is now "void".
8783 * psympriv.h (add_psymbol_to_list): Update.
8784
78d8b4d7
DE
8785 * dwarf2read.c (add_partial_symbol): Delete local psym, unused.
8786
4c63965b
JK
87872012-01-26 Jan Kratochvil <jan.kratochvil@redhat.com>
8788
8789 Do not open script filenames twice.
8790 * cli/cli-cmds.c (source_script_from_stream): Pass to
8791 source_python_script also STREAM.
8792 * python/py-auto-load.c (source_section_scripts): Pass to
8793 source_python_script_for_objfile also STREAM.
8794 (auto_load_objfile_script): Pass to source_python_script_for_objfile
8795 also INPUT.
8796 * python/python-internal.h (source_python_script_for_objfile): New
8797 parameter file, rename parameter file to filename.
8798 * python/python.c (python_run_simple_file): Call PyRun_SimpleFile
8799 instead if !_WIN32. Update the function comment.
8800 (source_python_script, source_python_script_for_objfile)
8801 (source_python_script): New parameter file, rename parameter file to
8802 filename. Pass FILENAME to python_run_simple_file.
8803 * python/python.h (source_python_script): New parameter file, rename
8804 parameter file to filename.
8805
88f38a04
PA
88062012-01-26 Pedro Alves <palves@redhat.com>
8807
8808 * corelow.c (core_has_fake_pid): Delete.
8809 (core_close): Delete references to `core_has_fake_pid'.
8810 (add_to_thread_list): Adjust to mark the inferior's pid as fake.
8811 (core_open): Delete references to `core_has_fake_pid'.
8812 (core_pid_to_str): Adjust to check inferior->fake_pid_p instead of
8813 the removed global.
8814
e078317b
JB
88152012-01-26 Joel Brobecker <brobecker@adacore.com>
8816
8817 * symfile.h (struct quick_symbol_functions) [expand_symtabs_matching]:
8818 Remove language parameter from name_matcher. Adjust the comment.
8819 * symtab.c (search_symbols_name_matches, expand_partial_symbol_name):
8820 Remove language parameter.
8821 * ada-lang.c (ada_expand_partial_symbol_name): Likewise.
8822 * linespec.c (iterate_name_matcher): Likewise.
8823 * dwarf2read.c (dw2_expand_symtabs_matching): Adjust type of
8824 name_matcher. Adjust call accordingly.
8825 * psymtab.c (expand_symtabs_matching_via_partial): Likewise.
8826 (maintenance_check_symtabs): Adjust type of parameter "fun".
8827 * psymtab.h (maintenance_check_symtabs): Likewise.
8828
74ccd7f5
JB
88292012-01-26 Joel Brobecker <brobecker@adacore.com>
8830
8831 * language.h (symbol_name_match_p_ftype): New typedef.
8832 (struct language_defn): Replace field la_symbol_name_compare
8833 by la_get_symbol_name_match_p.
8834 * ada-lang.c (ada_get_symbol_name_match_p): New function.
8835 (ada_language_defn): Use it.
8836 * linespec.c (struct symbol_matcher_data): New type.
8837 (iterate_name_matcher): Rewrite.
8838 (iterate_over_all_matching_symtabs): Pass a pointer to
8839 a symbol_matcher_data struct to expand_symtabs_matching
8840 instead of just the lookup name.
8841 * c-lang.c, d-lang.c, jv-lang.c, m2-lang.c, objc-lang.c,
8842 opencl-lang.c, p-lang.c, language.c: Delete field
8843 la_symbol_name_compare, and replace by NULL for new field
8844 la_get_symbol_name_match_p.
8845 * symfile.h (struct quick_symbol_functions): Update comment.
8846
5d268276
TT
88472012-01-25 Tom Tromey <tromey@redhat.com>
8848
8849 * breakpoint.c (bpstat_stop_status): Check 'breakpoint_at' before
8850 dereferencing.
8851
edcc5120
TT
88522012-01-24 Tom Tromey <tromey@redhat.com>
8853
8854 PR symtab/12406:
8855 * solib.c (update_solib_list): Update the program space's
8856 added_solibs and deleted_solibs fields.
8857 * progspace.h (struct program_space) <added_solibs,
8858 deleted_solibs>: New fields.
8859 (clear_program_space_solib_cache): Declare.
8860 * progspace.c (release_program_space): Call
8861 clear_program_space_solib_cache.
8862 (clear_program_space_solib_cache): New function.
8863 * infrun.c (handle_inferior_event) <TARGET_WAITKIND_LOADED>: Call
8864 bpstat_stop_status. Use handle_solib_event.
8865 * breakpoint.c: Include gdb_regex.h.
8866 (print_solib_event): New function.
8867 (bpstat_print): Use print_solib_event.
8868 (bpstat_stop_status): Add special case for bp_shlib_event.
8869 (handle_solib_event): New function.
8870 (bpstat_what): Use handle_solib_event.
8871 (struct solib_catchpoint): New.
8872 (dtor_catch_solib, insert_catch_solib, remove_catch_solib)
8873 (breakpoint_hit_catch_solib, check_status_catch_solib)
8874 (print_it_catch_solib, print_one_catch_solib)
8875 (print_mention_catch_solib, print_recreate_catch_solib): New
8876 functions.
8877 (catch_solib_breakpoint_ops): New global.
8878 (catch_load_or_unload, catch_load_command_1)
8879 (catch_unload_command_1): New functions.
8880 (internal_bkpt_check_status): Add special case for
8881 bp_shlib_event.
8882 (internal_bkpt_print_it): Use print_solib_event.
8883 (initialize_breakpoint_ops): Initialize
8884 catch_solib_breakpoint_ops.
8885 (_initialize_breakpoint): Register "catch load" and "catch
8886 unload".
8887 * breakpoint.h (handle_solib_event): Declare.
8888 * NEWS: Add entry for "catch load" and "catch unload".
8889
fa864999
TT
88902012-01-24 Tom Tromey <tromey@redhat.com>
8891
8892 * ada-lang.c: Include gdb_vecs.h.
8893 * charset.c: Include gdb_vecs.h.
8894 * tracepoint.h: Include gdb_vecs.h.
8895 * gdb_vecs.h: New file.
8896
f90263c1
TT
88972012-01-24 Pedro Alves <pedro@codesourcery.com>
8898
8899 * breakpoint.c (breakpoint_hit_catch_fork)
8900 (breakpoint_hit_catch_vfork, breakpoint_hit_catch_syscall)
8901 (breakpoint_hit_catch_exec): Make use of the `ws' argument.
8902 * infrun.c (inferior_has_forked, inferior_has_vforked)
8903 (inferior_has_execd, inferior_has_called_syscall): Delete.
8904 (handle_syscall_event): Get syscall_number from the execution
8905 control state's wait status.
8906 (wait_for_inferior): Don't clear syscall_number.
8907
09ac7c10
TT
89082012-01-24 Pedro Alves <palves@redhat.com>
8909
8910 * breakpoint.c (bpstat_check_location, bpstat_stop_status,
8911 pc_at_non_inline_function): Add `ws' parameter, and pass it down.
8912 (breakpoint_hit_catch_fork, breakpoint_hit_catch_vfork)
8913 (breakpoint_hit_catch_syscall, breakpoint_hit_catch_exec): Add
8914 `ws' parameter.
8915 (breakpoint_hit_ranged_breakpoint): Add `ws' parameter. Return
8916 false for events other than TARGET_SIGNAL_TRAP.
8917 (breakpoint_hit_watchpoint, base_breakpoint_breakpoint_hit):
8918 Add `ws' parameter.
8919 (bkpt_breakpoint_hit): Add `ws' parameter. Return false for
8920 events other than TARGET_SIGNAL_TRAP.
8921 (tracepoint_breakpoint_hit): Add `ws' parameter.
8922 * breakpoint.h (struct breakpoint_ops) <breakpoint_hit>: Add `ws'
8923 parameter.
8924 (bpstat_stop_status): Same.
8925 (pc_at_non_inline_function): Same.
8926 * infrun.c (handle_syscall_event, handle_inferior_event): Adjust
8927 to pass the current event's waitstatus to bpstat_stop_status
8928 and pc_at_non_inline_function.
8929
86eb7e95
JK
89302012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8931
8932 Code cleanup.
8933 * cli/cli-cmds.c (source_script_from_stream): Never fclose STREAM.
8934 Update the function comment for it.
8935 (source_script_with_search): Call make_cleanup_fclose for STREAM.
8936 * cli/cli-script.c (script_from_file): Do not call make_cleanup_fclose
8937 for STREAM.
8938
a9b3a50f
PA
89392012-01-24 Pedro Alves <palves@redhat.com>
8940
8941 * breakpoint.c (bpstat_stop_status): Moving clearing print_it
8942 outside `bs->stop' block.
8943 (bpstat_what): Rework bp_shlib_event handling.
8944 (internal_bkpt_check_status): If the breakpoint is a
8945 bp_shlib_event, then set bs->stop and bs->print if
8946 stop_on_solib_events is set.
8947
53fe1783
GB
89482012-01-24 Gary Benson <gbenson@redhat.com>
8949
8950 Delete #if 0'd out code.
8951 * stack.c (print_frame_label_vars): Remove.
8952 (catch_info): Likewise.
8953 (_initialize_stack): Remove "info catch" command.
8954 * NEWS: Mention the above.
8955
49c62f2e
PA
89562012-01-24 Pedro Alves <palves@redhat.com>
8957
8958 * remote.c (remote_add_inferior): New `fake_pid_p' parameter. Use
8959 it.
8960 (remote_notice_new_inferior): If the remote end doesn't support
8961 the multiprocess extensions, then the PID is fake.
8962 (add_current_inferior_and_thread): New.
8963 (remote_start_remote): Use it.
8964 (extended_remote_attach_1): Adjust.
8965 (extended_remote_create_inferior_1): Use
8966 add_current_inferior_and_thread.
8967
d0d8b0c6
JK
89682012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8969
8970 Fix watchpoints to be specific for each inferior.
8971 * breakpoint.c (watchpoint_in_thread_scope): Verify also
8972 current_program_space.
8973 * i386-nat.c (i386_inferior_data_cleanup): New.
8974 (i386_inferior_data_get): Replace variable inf_data_local by an
8975 inferior_data call.
8976 (i386_use_watchpoints): Initialize i386_inferior_data.
8977 * linux-nat.c (linux_nat_iterate_watchpoint_lwps): Use INFERIOR_PTID
8978 specific iterate_over_lwps.
8979
4403d8e9
JK
89802012-01-24 Jan Kratochvil <jan.kratochvil@redhat.com>
8981
8982 Fix watchpoints across inferior fork.
8983 * amd64-linux-nat.c (update_debug_registers_callback): Update the
8984 comment for linux_nat_iterate_watchpoint_lwps.
8985 (amd64_linux_dr_set_control, amd64_linux_dr_set_addr): Use
8986 linux_nat_iterate_watchpoint_lwps.
8987 (amd64_linux_prepare_to_resume): New comment on Linux kernel.
8988 * i386-linux-nat.c (update_debug_registers_callback): Update the
8989 comment for linux_nat_iterate_watchpoint_lwps.
8990 (i386_linux_dr_set_control, i386_linux_dr_set_addr): Use
8991 linux_nat_iterate_watchpoint_lwps.
8992 (i386_linux_prepare_to_resume): New comment on Linux kernel.
8993 * i386-nat.c: Include inferior.h.
8994 (dr_mirror): Remove.
8995 (i386_inferior_data, struct i386_inferior_data)
8996 (i386_inferior_data_get): New.
8997 (i386_debug_reg_state): Use i386_inferior_data_get.
8998 (i386_cleanup_dregs, i386_update_inferior_debug_regs)
8999 (i386_insert_watchpoint, i386_remove_watchpoint)
9000 (i386_stopped_data_address, i386_insert_hw_breakpoint)
9001 (i386_remove_hw_breakpoint): New variable state, use
9002 i386_debug_reg_state instead of DR_MIRROR.
9003 * linux-nat.c (delete_lwp): New declaration.
9004 (num_lwps): Move here from downwards.
9005 (delete_lwp_cleanup): New.
9006 (linux_child_follow_fork): Create new child_lp, call
9007 linux_nat_new_thread and linux_nat_prepare_to_resume before calling
9008 PTRACE_DETACH.
9009 (num_lwps): Move upwards.
9010 (linux_nat_iterate_watchpoint_lwps): New.
9011 * linux-nat.h (linux_nat_iterate_watchpoint_lwps_ftype): New.
9012 (linux_nat_iterate_watchpoint_lwps_ftype): New declaration.
9013
2992c9a7 90142012-01-24 Joel Brobecker <brobecker@adacore.com>
9015
9016 GDB 7.4 released.
9017
e360902b
PA
90182012-01-23 Pedro Alves <palves@redhat.com>
9019
9020 * top.c (caution): Rename to ...
9021 (confirm): ... this.
9022 (show_caution): Rename to ...
9023 (show_confirm): ... this.
9024 (quit_cover): Adjust.
9025 (init_main): Adjust.
9026 * top.h (caution): Rename to ...
9027 (confirm): ... this.
9028 * utils.c (internal_vproblem, defaulted_query): Adjust.
9029
050a2e1d
PA
90302012-01-23 Pedro Alves <palves@redhat.com>
9031
9032 * top.c (caution): Update comment.
9033 (execute_command): Don't consider the current value of `caution'.
9034
77a35dd8
JK
90352012-01-23 Jan Kratochvil <jan.kratochvil@redhat.com>
9036
9037 * cli/cli-cmds.c (find_and_open_script): Handle failure of fdopen.
9038
a71b5a38
UW
90392012-01-23 Ulrich Weigand <ulrich.weigand@linaro.org>
9040
9041 * inf-child.c: Include "gdb_stat.h" instead of <sys/stat.h>.
9042 * linux-tdep.c (linux_info_proc): Avoid ARI coding style warning.
9043 * target.c (target_fileio_pwrite): Remove buffer address from
9044 debug output.
9045 (target_fileio_pread): Likewise.
9046
d99bd577
UW
90472012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9048
9049 * NEWS: Document remote "info proc" and "generate-core-file".
9050
35c2fab7
UW
90512012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9052
9053 * gdbarch.sh (find_memory_regions): New callback.
9054 * gdbarch.c, gdbarch.h: Regenerate.
9055
9056 * gcore.c (gcore_memory_sections): Try gdbarch find_memory_regions
9057 callback before falling back to target method.
9058
9059 * linux-nat.c (read_mapping, linux_nat_find_memory_regions): Remove.
9060 (linux_target_install_ops): No longer install it.
9061
9062 * linux-tdep.c (linux_find_memory_regions): New function.
9063 (linux_init_abi): Install it.
9064
6432734d
UW
90652012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9066
9067 * gdbarch.sh (make_corefile_notes): New architecture callback.
9068 * gdbarch.c: Regenerate.
9069 * gdbarch.h: Likewise.
9070
9071 * gcore.c (write_gcore_file): Try gdbarch_make_corefile_notes
9072 before target_make_corefile_notes. If NULL is returned, the
9073 target does not support core file generation.
9074
9075 * linux-nat.c: Include "linux-tdep.h".
9076 (find_signalled_thread, find_stop_signal): Remove.
9077 (linux_nat_do_thread_registers): Likewise.
9078 (struct linux_nat_corefile_thread_data): Likewise.
9079 (linux_nat_corefile_thread_callback): Likewise.
9080 (iterate_over_spus): Likewise.
9081 (struct linux_spu_corefile_data): Likewise.
9082 (linux_spu_corefile_callback): Likewise.
9083 (linux_spu_make_corefile_notes): Likewise.
9084 (linux_nat_collect_thread_registers): New function.
9085 (linux_nat_make_corefile_notes): Replace contents by call to
9086 linux_make_corefile_notes passing linux_nat_collect_thread_registers
9087 as native-only callback.
9088
9089 * linux-tdep.h: Include "bfd.h".
9090 (struct regcache): Add forward declaration.
9091 (linux_collect_thread_registers_ftype): New typedef.
9092 (linux_make_corefile_notes): Add prototype.
9093 * linux-tdep.c: Include "gdbthread.h", "gdbcore.h", "regcache.h",
9094 "regset.h", and "elf-bfd.h".
9095 (find_signalled_thread, find_stop_signal): New functions.
9096 (linux_spu_make_corefile_notes): Likewise.
9097 (linux_collect_thread_registers): Likewise.
9098 (struct linux_corefile_thread_data): New data structure.
9099 (linux_corefile_thread_callback): New funcion.
9100 (linux_make_corefile_notes): Likewise.
9101 (linux_make_corefile_notes_1): Likewise.
9102 (linux_init_abi): Install it.
9103
3030c96e
UW
91042012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9105
9106 * gdbarch.sh (info_proc): New callback.
9107 * gdbarch.c, gdbarch.h: Regenerate.
9108
9109 * infcmd.c (info_proc_cmd_1): Try gdbarch info_proc callback
9110 before falling back to the target info_proc callback.
9111
9112 * linux-nat.c: Do not include "cli/cli-utils.h".
9113 (linux_nat_info_proc): Remove.
9114 (linux_target_install_ops): No longer install it.
9115
9116 * linux-tdep.c: Include "cli/cli-utils.h" and <ctype.h>.
9117 (read_mapping): New function.
9118 (linux_info_proc): Likewise.
9119 (linux_init_abi): Install it.
9120
145b16a9
UW
91212012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9122
9123 * defs.h (enum info_proc_what): Moved here from linux-nat.c
9124 * infcmd.c: (info_proc_cmd_1): New function.
9125 (info_proc_cmd): New function, moved here from equivalent routine
9126 orignally in linux-nat.c.
9127 (info_proc_cmd_mappings): Likewise.
9128 (info_proc_cmd_stat): Likewise.
9129 (info_proc_cmd_status): Likewise.
9130 (info_proc_cmd_cwd): Likewise.
9131 (info_proc_cmd_cmdline): Likewise.
9132 (info_proc_cmd_exe): Likewise.
9133 (info_proc_cmd_all): Likewise.
9134 (_initialize_infcmd): Install "info proc" command and subcommands.
9135
9136 * target.h (struct target_ops): Add to_info_proc.
9137 (target_info_proc): Add prototype.
9138 * target.c (target_info_proc): New function.
9139
9140 * procfs.c (procfs_info_proc): Add prototype.
9141 (info_proc_cmd): Rename into ...
9142 (procfs_info_proc): ... this. Update argument types as appropriate
9143 for a to_info_proc implementation. Handle "what" argument.
9144 (procfs_target): Install procfs_info_proc.
9145 (_initialize_procfs): No longer install "info proc" command.
9146
9147 * linux-nat.c: (enum info_proc_what): Remove.
9148 (linux_nat_info_proc_cmd_1): Rename into ...
9149 (linux_nat_info_proc): ... this. Update argument types as appropriate
9150 for a to_info_proc implementation.
9151 (linux_nat_info_proc_cmd): Remove.
9152 (linux_nat_info_proc_cmd_mappings): Likewise.
9153 (linux_nat_info_proc_cmd_stat): Likewise.
9154 (linux_nat_info_proc_cmd_status): Likewise.
9155 (linux_nat_info_proc_cmd_cwd): Likewise.
9156 (linux_nat_info_proc_cmd_cmdline): Likewise.
9157 (linux_nat_info_proc_cmd_exe): Likewise.
9158 (linux_nat_info_proc_cmd_all): Likewise.
9159 (linux_target_install_ops): Install linux_nat_info_proc.
9160 (_initialize_linux_nat): No longer install "info proc" command
9161 and subcommands.
9162
b9e7b9c3
UW
91632012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
9164
9165 * configure.ac [AC_CHECK_FUNCS]: Check for readlink.
9166 * config.in, configure: Regenerate.
9167
9168 * target.h (struct target_ops): Add to_fileio_readlink.
9169 (target_fileio_readlink): Add prototype.
9170 * target.c (target_fileio_readlink): New function.
9171
9172 * inf-child.c: Conditionally include <sys/param.h>.
9173 (inf_child_fileio_readlink): New function.
9174 (inf_child_target): Install it.
9175
9176 * remote.c (PACKET_vFile_readlink): New enum value.
9177 (remote_hostio_readlink): New function.
9178 (init_remote_ops): Install it.
9179 (_initialize_remote): Handle vFile:readlink packet type.
9180
7313baad
UW
91812012-01-20 Pedro Alves <palves@redhat.com>
9182 Ulrich Weigand <ulrich.weigand@linaro.org>
9183
9184 * configure.ac [AC_CHECK_FUNCS]: Check for pread and pwrite.
9185 * config.in, configure: Regenerate.
9186
9187 * target.h (struct target_ops): Add to_fileio_open, to_fileio_pwrite,
9188 to_fileio_pread, to_fileio_close, to_fileio_unlink.
9189 (target_fileio_open): Add prototype.
9190 (target_fileio_pwrite): Likewise.
9191 (target_fileio_pread): Likewise.
9192 (target_fileio_close): Likewise.
9193 (target_fileio_unlink): Likewise.
9194 (target_fileio_read_alloc): Likewise.
9195 (target_fileio_read_stralloc): Likewise.
9196
9197 * target.c: Include "gdb/fileio.h".
9198 (target_read_stralloc): Accept trailing, but not embedded NUL bytes.
9199 (default_fileio_target): New function.
9200 (target_fileio_open): Likewise.
9201 (target_fileio_pwrite): Likewise.
9202 (target_fileio_pread): Likewise.
9203 (target_fileio_close): Likewise.
9204 (target_fileio_unlink): Likewise.
9205 (target_fileio_close_cleanup): Likewise.
9206 (target_fileio_read_alloc_1): Likewise.
9207 (target_fileio_read_alloc): Likewise.
9208 (target_fileio_read_stralloc): Likewise.
9209
9210 * inf-child.c: Include "gdb/fileio.h", <sys/types.h>, <sys/stat.h>,
9211 <fcntl.h>, and <unistd.h>.
9212 (inf_child_fileio_open_flags_to_host): New function.
9213 (inf_child_errno_to_fileio_error): Likewise.
9214 (inf_child_fileio_open): Likewise.
9215 (inf_child_fileio_pwrite): Likewise.
9216 (inf_child_fileio_pread): Likewise.
9217 (inf_child_fileio_close): Likewise.
9218 (inf_child_fileio_unlink): Likewise.
9219 (inf_child_target): Install to_fileio routines.
9220
9221 * remote.c (init_remote_ops): Install to_fileio routines.
9222
901f9912
UW
92232012-01-20 Pedro Alves <palves@redhat.com>
9224 Ulrich Weigand <ulrich.weigand@linaro.org>
9225
9226 * remote.c (remote_multi_process_p): Only check for multi-process
9227 protocol feature, do not check for extended protocol.
9228 (remote_supports_multi_process): Check for extended protocol here.
9229 (set_general_process): Likewise.
9230 (extended_remote_kill): Likewise.
9231 (remote_pid_to_str): Likewise.
9232 (remote_query_supported): Always query multiprocess mode.
9233
e714e1bf
UW
92342012-01-20 Pedro Alves <palves@redhat.com>
9235 Ulrich Weigand <ulrich.weigand@linaro.org>
9236
9237 * inferior.h (struct inferior): Add fake_pid_p.
9238 * inferior.c (exit_inferior_1): Clear fake_pid_p.
9239 * remote.c (remote_start_remote): Set fake_pid_p if we have to use
9240 magic_null_ptid since the remote side doesn't provide a real PID.
9241
50897289
TT
92422012-01-19 Tom Tromey <tromey@redhat.com>
9243
9244 * NEWS: Combine the two Python sections.
9245
1afc2033
JK
92462012-01-19 Jan Kratochvil <jan.kratochvil@redhat.com>
9247
9248 * target.h (target_close): Update comment on the target's unpush state.
9249
305436e0
PA
92502012-01-19 Pedro Alves <palves@redhat.com>
9251
9252 * linux-nat.c (linux_nat_close): Call linux_nat_is_async_p and
9253 linux_nat_async directly instead of going through the target
9254 vector.
9255 * target.c (unpush_target): Close target after unpushing it, not
9256 before.
9257
49323895
GB
92582012-01-19 Gary Benson <gbenson@redhat.com>
9259
9260 * mdebugread.c (sort_blocks): Replace integer constants with ones
9261 derived from FIRST_LOCAL_BLOCK.
9262
1db33378
PP
92632012-01-18 Paul Pluzhnikov <ppluzhnikov@google.com>
9264 Jan Kratochvil <jan.kratochvil@redhat.com>
9265
9266 PR gdb/9538
9267 * symfile.c (find_separate_debug_file): New function.
9268 (terminate_after_last_dir_separator): Likewise.
9269 (find_separate_debug_file_by_debuglink): Also try realpath.
9270 * configure.ac (AC_CHECK_FUNCS): Add lstat.
9271 * configure: Regenerate.
9272 * config.in: Regenerate.
9273
f83d8a90
DE
92742012-01-18 Doug Evans <dje@google.com>
9275
9276 * Makefile.in (TARGET_SYSTEM_ROOT, TARGET_SYSTEM_ROOT_DEFINE): Delete.
9277 (main.o): Remove rule.
9278 * configure.ac (BINDIR): Define with AC_DEFINE_DIR.
9279 (--with-sysroot): Rewrite.
9280 * configure: Regenerate.
9281 * config.in: Regenerate.
9282
2dbca4d6
SDJ
92832012-01-18 Sergio Durigan Junior <sergiodj@redhat.com>
9284
9285 * parse.c (initialize_expout): New function.
9286 (reallocate_expout): Likewise.
9287 (parse_exp_in_context): Use `initialize_expout' and
9288 `reallocate_expout' when appropriate.
9289
0695b514
PA
92902012-01-18 Pedro Alves <palves@redhat.com>
9291
9292 * record.c (struct record_breakpoint, record_breakpoint_p)
9293 (record_breakpoints): New.
9294 (record_insert_breakpoint, record_remove_breakpoint): Manage
9295 record breakpoints list. Only remove breakpoints from the
9296 inferior if they had been inserted there in the first place.
9297
136e1c30
DE
92982012-01-17 Doug Evans <dje@google.com>
9299
9300 * linespec.c (decode_line_internal): Don't call symtabs_from_filename
9301 if we know we don't have a file name to look for.
9302
c0bf857d
PA
93032012-01-17 Pedro Alves <palves@redhat.com>
9304
9305 * dwarf2-frame.c (dwarf2_frame_cfa): Throw NOT_AVAILABLE_ERROR, if
9306 the frame's stop reason is UNWIND_UNAVAILABLE.
9307
b486de60
JK
93082012-01-17 Jan Kratochvil <jan.kratochvil@redhat.com>
9309
9310 Fix compilation error.
9311 * m2-exp.y (yyerror): Use ANSI C prototype.
9312
d04550a6
SDJ
93132012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9314
9315 * f-exp.y (parse_number): Convert prototype from K&R to ANSI C.
9316 (growbuf_by_size): Likewise.
9317 (yyerror): Likewise.
9318 * m2-exp.y (make_qualname): Remove function (was #if 0'ed).
9319 (modblock): Remove variable (was #if 0'ed).
9320 (parse_number): Convert prototype from K&R to ANSI C.
9321 (yyerror): Likewise.
9322 * objc-exp.y (parse_number): Likewise.
9323 (yyerror): Likewise.
9324 (yylex): Remove #if 0'ed code.
9325 * p-exp.y (uptok): Convert prototype from K&R to ANSI C.
9326 (yyerror): Likewise.
9327
4aac40c8
TT
93282012-01-16 Tom Tromey <tromey@redhat.com>
9329
9330 * NEWS: Add item.
9331 * symtab.h (compare_filenames_for_search): Declare.
9332 * symtab.c (compare_filenames_for_search): New function.
9333 (iterate_over_some_symtabs): Use it.
9334 * symfile.h (struct quick_symbol_functions)
9335 <map_symtabs_matching_filename>: Change spec.
9336 * psymtab.c (partial_map_symtabs_matching_filename): Use
9337 compare_filenames_for_search. Update for new spec.
9338 * dwarf2read.c (dw2_map_symtabs_matching_filename): Use
9339 compare_filenames_for_search. Update for new spec.
9340 * breakpoint.c (clear_command): Use compare_filenames_for_search.
9341
cafec441
TT
93422012-01-16 Tom Tromey <tromey@redhat.com>
9343
9344 PR python/13281:
9345 * gdbtypes.h (TYPE_FLAG_ENUM): New macro.
9346 (struct main_type) <flag_flag_enum>: New field.
9347 * dwarf2read.c (process_enumeration_scope): Detect "flag" enums.
9348 * NEWS: Add entries.
9349 * c-valprint.c (c_val_print) <TYPE_CODE_ENUM>: Handle "flag"
9350 enums.
9351 * python/lib/gdb/printing.py (_EnumInstance): New class.
9352 (FlagEnumerationPrinter): Likewise.
9353
983af33b
SDJ
93542012-01-16 Sergio Durigan Junior <sergiodj@redhat.com>
9355
9356 * breakpoint.c (create_sals_from_address_default): New function.
9357 (create_breakpoints_sal_default): Likewise.
9358 (decode_linespec_default): Likewise.
9359 (is_marker_spec): Removed.
9360 (strace_marker_p): New function.
9361 (init_breakpoint_sal): Using `strace_marker_p' instead of
9362 `is_marker_spec'.
9363 (create_breakpoint): Call method `create_sals_from_address' from
9364 breakpoint_ops, replacing code that created SALs conditionally
9365 on the type of the breakpoint. Call method `create_breakpoints_sal',
9366 replacing code that created breakpoints conditionally on the type
9367 wanted.
9368 (base_breakpoint_create_sals_from_address): New function.
9369 (base_breakpoint_create_breakpoints_sal): Likewise.
9370 (base_breakpoint_decode_linespec): Likewise.
9371 (base_breakpoint_ops): Add methods
9372 `base_breakpoint_create_sals_from_address',
9373 `base_breakpoint_create_breakpoints_sal' and
9374 `base_breakpoint_decode_linespec'.
9375 (bkpt_create_sals_from_address): New function.
9376 (bkpt_create_breakpoints_sal): Likewise.
9377 (bkpt_decode_linespec): Likewise.
9378 (tracepoint_create_sals_from_address): Likewise.
9379 (tracepoint_create_breakpoints_sal): Likewise.
9380 (tracepoint_decode_linespec): Likewise.
9381 (strace_marker_create_sals_from_address): Likewise.
9382 (strace_marker_create_breakpoints_sal): Likewise.
9383 (strace_marker_decode_linespec): Likewise.
9384 (strace_marker_breakpoint_ops): New variable.
9385 (addr_string_to_sals): Remove `marker_spec'. Call method
9386 `decode_linespec' from breakpoint_ops, replacing code that decoded
9387 an address string into a SAL. Use `strace_marker_p' instead of
9388 `marker_spec'.
9389 (strace_command): Decide whether we are dealing with a static
9390 tracepoint with marker or not. Use the appropriate breakpoint_ops.
9391 (initialize_breakpoint_ops): Initialize new fields of breakpoint_ops.
9392 * breakpoint.h (linespec_result, linespec_sals): New forward
9393 declarations.
9394 (breakpoint_ops) <create_sals_from_address>,
9395 <create_breakpoints_sal>, <decode_linespec>: New methods.
9396
4795f398
DE
93972012-01-14 Doug Evans <dje@google.com>
9398
9399 * NEWS: Update text for "maint set python print-stack".
9400 It is deprecated in gdb 7.4 and deleted in 7.5.
9401
ee5106fe
EZ
94022012-01-13 Eli Zaretskii <eliz@gnu.org>
9403
9404 * gdb_curses.h (MOUSE_MOVED) [__MINGW32__]: Undefine before
9405 including curses.h.
9406
b161e06f
JK
94072012-01-12 Jan Kratochvil <jan.kratochvil@redhat.com>
9408
9409 * configure: Regenerate.
9410 * config.in: Regenerate.
9411
85254831
KS
94122012-01-12 Keith Seitz <keiths@redhat.com>
9413
9414 PR mi/10586
9415 * varobj.c (ANONYMOUS_STRUCT_NAME): Define.
9416 (ANONYMOUS_UNION_NAME): Define.
9417 (is_path_expr_parent): New function.
9418 (get_path_expr_parent): New function.
9419 (is_anonymous_child): New function.
9420 (create_child_with_value): If the child is anonymous and without
9421 a name, assign an object name to it.
9422 (c_describe_child): Use get_path_expr_parent to determine
9423 the parent expression.
9424 If there field represents an anonymous struct or union and
9425 has no name, set an appropriate display name and expression.
9426 (cplus_describe_child): Likewise.
9427
620fa63a
PA
94282012-01-12 Pedro Alves <palves@redhat.com>
9429
9430 * i386-tdep.c (i386_frame_cache_1): Also mark the frame base as
9431 available when %ebp is found to be zero (outermost).
9432
2efa2c79
AT
94332012-01-11 Andreas Tobler <andreast@fgznet.ch>
9434
9435 * common/gdb_assert.h (gdb_static_assert): Rename static_assert to
9436 an internal gdb_static_assert.
9437 * mi/mi-common.c: Rename static_assert to gdb_static_assert.
9438
88e7d25d
TT
94392012-01-11 Tom Tromey <tromey@redhat.com>
9440
9441 PR gdb/9598:
9442 * breakpoint.c (_initialize_breakpoint): Fix help for "catch
9443 catch" and "catch throw".
9444
72384ba3
PH
94452012-01-11 Paul Hilfinger <hilfingr@adacore.com>
9446
9447 * blockframe.c (block_innermost_frame): Start search from selected
9448 frame, if present, or otherwise the current frame.
9449
9450 * c-exp.y (variable): Update innermost_block for
9451 'block COLONCOLON NAME' clause.
9452 * m2-exp.y (variable): Ditto.
9453 * objc-exp.y (variable): Ditto.
9454
065a711f
TT
94552012-01-10 Tom Tromey <tromey@redhat.com>
9456
9457 PR python/13199:
9458 * python/python.c (finish_python_initialization): Set sys.argv.
9459
f3f5162e
DE
94602012-01-10 Doug Evans <dje@google.com>
9461
9462 * dwarf2read.c (dwarf_decode_lines): Remove arg "abfd". New arg
9463 "want_line_info". All callers updated.
9464 (dwarf_decode_lines_1): New function.
9465 (handle_DW_AT_stmt_list): Add function comment.
9466 New arg "want_line_info". All callers updated.
9467 (read_file_scope,read_type_unit_scope): Move comment from
9468 handle_DW_AT_stmt_list to here.
9469
9934703b
JK
94702012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9471
9472 Fix regression after libiberty/ update for GCC PR 6057 and others.
9473 * c-exp.y (operator) <OPERATOR DELETE>
9474 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9475 * cp-name-parser.y (fill_comp, make_operator, make_dtor)
9476 (make_builtin_type, make_name): New variable i, add gdb_assert.
9477 (operator) <OPERATOR NEW>: Update ARGS to 3.
9478 (operator) <OPERATOR DELETE>: Add trailing space.
9479 (operator) <OPERATOR NEW '[' ']'>: Update ARGS to 3.
9480 (operator) <OPERATOR DELETE '[' ']'>: Add trailing space.
9481 * cp-support.c (cp_canonicalize_string): Check NULL from
9482 cp_comp_to_string, call warning and return.
9483
06b9f45f
JK
94842012-01-10 Jan Kratochvil <jan.kratochvil@redhat.com>
9485
9486 Fix duplicate .o files after omitting libbfd.a.
9487 * Makefile.in (ALL_TARGET_OBS): Remove corelow.o.
9488 (SFILES): Add corelow.c.
9489 (COMMON_OBS): Add corelow.o.
9490 (ALLDEPFILES): Remove corelow.c.
9491 * config/alpha/alpha-linux.mh (NATDEPFILES): Remove corelow.o.
9492 * config/alpha/alpha-osf3.mh: Likewise.
9493 * config/alpha/fbsd.mh: Likewise.
9494 * config/arm/nbsdaout.mh: Likewise.
9495 * config/arm/nbsdelf.mh: Likewise.
9496 * config/i386/i386gnu.mh: Likewise.
9497 * config/ia64/hpux.mh: Likewise.
9498 * config/ia64/linux.mh: Likewise.
9499 * config/m32r/linux.mh: Likewise.
9500 * config/m68k/linux.mh: Likewise.
9501 * config/mips/irix5.mh: Likewise.
9502 * config/mips/irix6.mh: Likewise.
9503 * config/pa/hpux.mh: Likewise.
9504 * config/pa/linux.mh: Likewise.
9505 * config/powerpc/aix.mh: Likewise.
9506 * config/sparc/linux.mh: Likewise.
9507 * config/sparc/linux64.mh: Likewise.
9508 * config/sparc/sol2.mh: Likewise.
9509 * config/vax/vax.mh: Likewise.
9510 * configure.tgt (alpha*-*-freebsd* alpha*-*-kfreebsd*-gnu)
9511 (alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu, alpha*-*-openbsd*)
9512 (am33_2.0*-*-linux*, arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-linux*)
9513 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-netbsd*)
9514 (hppa*-*-openbsd*, i[34567]86-*-dicos*, i[34567]86-*-freebsd*)
9515 (i[34567]86-*-kfreebsd*-gnu, i[34567]86-*-netbsd*)
9516 (i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*, i[34567]86-*-nto*)
9517 (i[34567]86-*-solaris2.1[0-9]*, x86_64-*-solaris2.1[0-9]*)
9518 (i[34567]86-*-solaris*, i[34567]86-*-linux*, i[34567]86-*-cygwin*)
9519 (i[34567]86-*-mingw32*, m68*-*-netbsd*, m68*-*-knetbsd*-gnu)
9520 (m68*-*-openbsd*, m88*-*-openbsd*, microblaze*-linux-*)
9521 (microblaze*-*-linux*, mips*-*-linux*, mips*-*-netbsd*)
9522 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9523 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-linux*)
9524 (powerpc64-*-linux*, s390*-*-*, score-*-*, sh*-*-linux*)
9525 (sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9526 (sparc*-*-freebsd*, sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*)
9527 (sparc-*-knetbsd*-gnu, sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu)
9528 (sparc-*-openbsd*, sparc64-*-openbsd*, tic6x-*-*linux, vax-*-netbsd*)
9529 (vax-*-knetbsd*-gnu, vax-*-openbsd*, x86_64-*-dicos*, x86_64-*-linux*)
9530 (x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu, x86_64-*-netbsd*)
9531 (x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*, xtensa*-*-linux*): Remove
9532 corelow.o from gdb_target_obs.
9533 * corefile.c (core_target): Update the comment on NULL value.
9534 (core_file_command): Replace error by gdb_assert on CORE_TARGET.
9535 * corelow.c (sniff_core_bfd): Call error instead of warning on zero
9536 MATCHES. Drop YUMMY set on NULL.
9537 (core_close): Do not call exit_inferior_silent on zero PID. Do not
9538 reclaim CORE_DATA if it is already NULL.
9539
34365054
DE
95402012-01-09 Doug Evans <dje@google.com>
9541
9542 * gdbtypes.c (safe_parse_type): Initialize type to keep gcc happy.
9543 * varobj.c (varobj_set_value): Initialize val,value to keep gcc happy.
9544
696166a3
KS
95452012-01-09 Keith Seitz <keiths@redhat.com>
9546
9547 * breakpoint.c (wrapper.h): Don't include.
9548
8e7b59a5
KS
95492012-01-09 Keith Seitz <keiths@redhat.com>
9550
9551 * Makefile.in (SFILES): Remove wrapper.c.
9552 (HFILES_NO_SRCDIR): Remove wrapper.h.
9553 (COMMON_OBS): Remove wrapper.o.
9554 * cli/cli-interp.c: Don't inlude wrapper.h.
9555 * corelow.c: Likewise.
9556 (core_open): Replace gdb_target_find_new_threads with
9557 TRY_CATCH around target_find_new_threads.
9558 * eval.c (fetch_subexp_value): Likewise for value_fetch_lazy.
9559 * gdbtypes.c (safe_parse_type): Likewise for parse_and_eval_type.
9560 * varobj.c (varobj_create): Likewise for parse_exp_1 and
9561 evaluate_expression.
9562 (varobj_set_value): Likewise for evaluate_expression and
9563 value_assign.
9564 (install_new_variable): Likewise for value_fetch_lazy.
9565 (adjust_value_for_child_access): Likewise for value_ind.
9566 (c_describe_child): Likewise for value_subscript and
9567 value_ind.
9568 (c_value_of_root): Likewise for evaluate_expression.
9569 * wrapper.c: Remove.
9570 * wrapper.h: Remove.
9571
1a4eeb98
DE
95722012-01-09 Doug Evans <dje@google.com>
9573
9ff913ba
DE
9574 * dwarf2read.c (read_and_check_comp_unit_head): Renamed from
9575 partial_read_comp_unit_head. Replace "buffer", "buffer_size" and
9576 "abfd" args with "section". All callers updated.
9577 Error checking code moved ...
9578 (error_check_comp_unit_head): ... here. New function.
9579 (read_and_check_type_unit_head): Renamed from read_type_unit_head.
9580 Delete arg "abfd". New arg "type_offset". All callers updated.
9581 (create_debug_types_hash_table): Simplify by using
9582 read_and_check_type_unit_head.
9583
1a4eeb98
DE
9584 * parser-defs.h (namecopy): Delete.
9585 * parse.c (namecopy, namecopy_size): Move into copy_name.
9586
2e6af8c0
JK
95872012-01-09 Jan Kratochvil <jan.kratochvil@redhat.com>
9588
9589 Partially fix duplicate .o files after omitting libbfd.a.
9590 * config/alpha/alpha-osf3.mh (NATDEPFILES): Remove solib.o.
9591 * config/i386/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9592 * config/i386/obsdaout.mh (NATDEPFILES): Remove solib.o.
9593 * config/m68k/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9594 * config/m68k/obsd.mh (NATDEPFILES): Remove solib.o.
9595 * config/powerpc/aix.mh (NATDEPFILES): Remove xcoffread.o.
9596 * config/vax/nbsdaout.mh (NATDEPFILES): Remove solib.o.
9597
9f2f828a
PA
95982012-01-09 Pedro Alves <palves@redhat.com>
9599
9600 * MAINTAINERS: Update my email address.
9601
4d72c0bc
DE
96022012-01-08 Doug Evans <dje@google.com>
9603
d467dd73
DE
9604 * dwarf2read.c (dwarf2_per_objfile): Rename n_type_comp_units to
9605 n_type_units. Rename type_comp_units to all_type_units.
9606 All uses updated.
9607 (add_signatured_type_cu_to_table): Renamed from
9608 add_signatured_type_cu_to_list. All callers updated.
9609
4d72c0bc
DE
9610 * gdbtypes.h (struct cplus_struct_type): Delete member
9611 nfn_fields_total. All uses removed.
9612
21b2bd31
DE
96132012-01-06 Doug Evans <dje@google.com>
9614
9615 * dwarf2read.c: Move FIXME from dwarf2_build_psymtabs_hard
9616 to top of file.
9617 (dwarf2_find_comp_unit): Delete.
9618 (process_psymtab_comp_unit): Make result "void".
9619 Delete args buffer, info_ptr, buffer_size, and replace with
9620 "section". All callers updated.
9621 (dwarf2_build_psymtabs_hard): Simplify.
9622
bfd189b1
SDJ
96232012-01-06 Sergio Durigan Junior <sergiodj@redhat.com>
9624 Thiago Jung Bauermann <bauerman@br.ibm.com>
9625
9626 * ada-lang.c (ada_exception_name_addr): Add `volatile' keyword
9627 before `struct gdb_exception'.
9628 * breakpoint.c (update_global_location_list_nothrow)
9629 (update_breakpoint_locations, enable_breakpoint_disp): Likewise.
9630 * cp-abi.c (value_rtti_type): Likewise.
9631 * cp-support.c (cp_validate_operator): Likewise.
9632 * infrun.c (insert_exception_resume_breakpoint)
9633 (check_exception_resume, keep_going): Likewise.
9634 * mi-interp.c (mi_breakpoint_created)
9635 (mi_breakpoint_modified): Likewise.
9636 * rs6000-aix-tdep.c (rs6000_convert_from_func_ptr_addr): Likewise.
9637 * solib-ia64-hpux.c (ia64_hpux_at_dld_breakpoint_p)
9638 (ia64_hpux_handle_dld_breakpoint_1): Likewise.
9639
6b07635f
DE
96402012-01-05 Doug Evans <dje@google.com>
9641
0b30b85c
DE
9642 * dwarf2read.c (statement_prologue): Delete, unused.
9643
98714339
DE
9644 * dwarf2read.c (dwarf2_per_cu_addr_size): Make result type an int.
9645 * dwarf2loc.h (dwarf2_per_cu_addr_size): Update.
9646
6b07635f
DE
9647 * dwarf2read.c (comp_unit_header): Delete, unused.
9648
761f4555
UW
96492012-01-05 Ulrich Weigand <uweigand@de.ibm.com>
9650
9651 * configure.tgt [s390*-*-*] (gdb_target_obs): Add corelow.o.
9652 * config/s390/s390.mh (NATDEPFILES): Remove corelow.o.
9653
2ca0b532
PA
96542012-01-05 Khoo Yit Phang <khooyp@cs.umd.edu>
9655
9656 * infrun.c (normal_stop): Don't skip calling the normal_stop
9657 observers if the thread was doing a multi-step, but stopped for
9658 some reason other than stepping.
9659
50aeff07
PA
96602012-01-05 Pedro Alves <alves.ped@gmail.com>
9661
9662 * cli/cli-decode.h: Add comments.
9663 (CMD_LIST_AMBIGUOUS): Moved to command.h
9664 (add_cmd, add_alias_cmd, add_prefix_cmd, add_abbrev_prefix_cmd)
9665 (set_cmd_cfunc, set_cmd_sfunc, set_cmd_completer, cmd_cfunc_eq)
9666 (set_cmd_context, get_cmd_context, lookup_cmd, lookup_cmd_1)
9667 (deprecate_cmd, deprecated_cmd_warning, lookup_cmd_composition)
9668 (add_com, add_com_alias, add_info, add_info_alias)
9669 (complete_on_cmdlist, complete_on_enum, help_list): Remove
9670 declarations.
9671 * command.h: Add and adjust comments.
9672 (CMD_LIST_AMBIGUOUS): Moved here.
9673 (help_cmd, help_cmd_list): Delete declarations.
9674
5953832c
DE
96752012-01-04 Doug Evans <dje@google.com>
9676
e5fe5e75
DE
9677 * dwarf2read.c (dwarf2_read_abbrevs): Delete arg "abfd".
9678 All callers updated.
9679 (load_full_type_unit): Renamed from read_signatured_type_at_offset.
9680 Replace all arguments with "per_cu". All callers updated.
9681
28dee7f5
DE
9682 * dwarf2read.c (dwarf2_per_cu_data): Remove outdated comment.
9683
23745b47
DE
9684 * dwarf2read.c (init_one_comp_unit): Delete arg "objfile".
9685 New arg "per_cu". All callers updated.
9686
5953832c
DE
9687 Delete #if 0'd out code.
9688 * language.c (binop_result_type): Delete.
9689 (simple_type, ordered_type, same_type, integral_type): Delete.
9690 (numeric_type, character_type, string_type, boolean_type): Delete.
9691 (float_type, structured_type): Delete.
9692 * language.h: Update.
9693
0f5b7562
TT
96942012-01-04 Tom Tromey <tromey@redhat.com>
9695
9696 * python/py-value.c (valpy_binop): Initialize 'res_val'.
9697
78218f56
JB
96982012-01-04 Joel Brobecker <brobecker@adacore.com>
9699
9700 * corefile.c (close_exec_file): Delete.
9701 (reopen_exec_file): Remove commented out code that seems related
9702 to close_exec_file, which is being deleted here.
9703 * inferior.h (close_exec_file): Delete.
9704 * fork-child.c (fork_inferior): Remove call to fork_inferior.
9705
0fcd72ba
JB
97062012-01-04 Joel Brobecker <brobecker@adacore.com>
9707
9708 * ada-lang.c: #include "cli/cli-utils.h".
9709 (get_selections): Use skip_spaces.
9710 (ada_get_next_arg): Use skip_spaces and skip_to_space.
9711 (catch_ada_exception_command_split): Use skip_spaces.
9712 (ada_decode_assert_location): Likewise.
9713
1dabb4c4
JB
97142012-01-04 Joel Brobecker <brobecker@adacore.com>
9715
9716 * linespec.c (decode_line_internal): Check for C++ or Java
9717 compound constructs only if the current language is C, C++
9718 or Java.
9719
5931a2fa
JK
97202012-01-04 Jan Kratochvil <jan.kratochvil@redhat.com>
9721
9722 Revert:
9723 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9724 Joel Brobecker <brobecker@adacore.com>
9725 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9726 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9727 3 times.
9728 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
9729 fall through into AT_ENTRY_POINT.
9730 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9731 DUMMY_ADDR with it.
9732 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9733 PPC_INSN_SIZE skip to 3 times.
9734
1a2da5ee
JB
97352012-01-04 Joel Brobecker <brobecker@adacore.com>
9736
9737 * linespec.c (add_minsym): Preserve function descriptors.
9738
8645ff69
UW
97392012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
9740
9741 * breakpoint.c (all_locations_are_pending): Consider locations
9742 in program spaces executing during startup pending as well.
9743
0b302171
JB
97442012-01-04 Joel Brobecker <brobecker@adacore.com>
9745
9746 Copyright year update in most files of the GDB Project.
9747
8ba098ad
JB
97482012-01-04 Joel Brobecker <brobecker@adacore.com>
9749
9750 * copyright.sh: Delete.
9751 * copyright.py: Rewrite.
9752
09c01c30
JB
97532012-01-04 Joel Brobecker <brobecker@adacore.com>
9754
9755 * gnulib/extra/update-copyright: New file, imported from gnulib.
9756
3c36c0af
JB
97572012-01-04 Joel Brobecker <brobecker@adacore.com>
9758
9759 * README (Copyright and License Notices): New section.
9760
888fe1e1
TT
97612012-01-03 Tom Tromey <tromey@redhat.com>
9762
9763 PR python/12533:
9764 * python/py-value.c (valpy_dereference, valpy_get_address
9765 valpy_get_dynamic_type, valpy_lazy_string, valpy_do_cast)
9766 (valpy_getitem, valpy_call, valpy_binop, valpy_negative)
9767 (valpy_absolute, valpy_richcompare): Free intermediate values.
9768
6e681866
JB
97692011-01-03 Joel Brobecker <brobecker@adacore.com>
9770
9771 * ada-lang.c: Reformat the copyright notice.
9772
0cd09acb
JK
97732012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9774
9775 * Makefile.in (ALL_TARGET_OBS): Remove solib-target.o.
9776 * configure.tgt (arm*-wince-pe, arm*-*-mingw32ce*, arm*-*-symbianelf*)
9777 (i[34567]86-*-dicos*, i[34567]86-*-cygwin*, i[34567]86-*-mingw32*)
9778 (x86_64-*-dicos*, x86_64-*-mingw*): Remove solib-target.o.
9779 Revert this part of:
9780 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9781 Build gdb directly from *.o files not using libgdb.a.
9782 * Makefile.in (COMMON_OBS): Remove solib-target.o.
9783
12c3e59c
JB
97842012-01-02 Joel Brobecker <brobecker@adacore.com>
9785
9786 * gdb/common/gdb_thread_db.h, gdb/dbxread.c, gdb/environ.c,
9787 gdb/gcore.h, gdb/rs6000-tdep.h, gdb/s390-nat.c, gdb/tic6x-tdep.c:
9788 Reformat the copyright header.
9789
11bf1490
JK
97902012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9791
9792 Revert this part of:
9793 2012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9794 Remove the gdbtui binary.
9795 * gdb.c (main): Remove args.interpreter_p initialization.
9796 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
9797 * main.h (struct captured_main_args): Remove interpreter_p.
9798
1fef196f
JB
97992012-01-02 Joel Brobecker <brobecker@adacore.com>
9800
9801 * config/djgpp/fnchange.lst: Add entry for ChangeLog-2011.
9802
67827812
JB
98032012-01-02 Joel Brobecker <brobecker@adacore.com>
9804
9805 * top.c (print_gdb_version): Update copyright year.
9806
a4d0b831
YQ
98072012-01-02 Yao Qi <yao@codesourcery.com>
9808
9809 * inf-ptrace.c (inf_ptrace_xfer_partial): Reindent.
9810
b5914469
JK
98112012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9812 Joel Brobecker <brobecker@adacore.com>
9813
9814 Fix regression for gdb.cp/gdb2495.exp with gcc-4.7.
9815 * arch-utils.c (displaced_step_at_entry_point): Incrase BP_LEN skip to
9816 3 times.
9817 * infcall.c (call_function_by_hand) <AT_SYMBOL>: Move it upwards and
9818 fall through into AT_ENTRY_POINT.
9819 (call_function_by_hand) <AT_ENTRY_POINT>: New variable bp_len. Adjust
9820 DUMMY_ADDR with it.
9821 * ppc-linux-tdep.c (ppc_linux_displaced_step_location): Increase
9822 PPC_INSN_SIZE skip to 3 times.
9823
8da828f7
JK
98242012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9825
9826 * amd64-linux-nat.c (update_debug_registers_callback): New comment on
9827 the return value.
9828 * i386-linux-nat.c (update_debug_registers_callback): Likewise.
9829
8574e74b
JK
98302012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9831
9832 Build gdb directly from *.o files not using libgdb.a.
9833 * Makefile.in (SUBDIR_TUI_OBS): Remove duplicate tui.o.
9834 (COMMON_OBS): Remove solib-target.o.
9835 (LIBGDB_OBS, libgdb.a): Move it before the gdb$(EXEEXT) rule.
9836 (gdb$(EXEEXT)): Replace libgdb.a with $(LIBGDB_OBS).
9837 (LIBGDB_OBS, libgdb.a): Move it above.
9838 * configure.tgt (alpha*-*-linux*, alpha*-*-freebsd*)
9839 (alpha*-*-kfreebsd*-gnu, alpha*-*-netbsd*, alpha*-*-knetbsd*-gnu)
9840 (alpha*-*-openbsd*, am33_2.0*-*-linux*, arm*-wince-pe)
9841 (arm*-*-mingw32ce*, arm*-*-linux*, arm*-*-netbsd*, arm*-*-knetbsd*-gnu)
9842 (arm*-*-openbsd*, cris*, frv-*-*, hppa*-*-hpux*, hppa*-*-linux*)
9843 (hppa*-*-netbsd*, hppa*-*-openbsd*, i[34567]86-*-darwin*)
9844 (i[34567]86-*-dicos*, i[34567]86-*-freebsd*, i[34567]86-*-kfreebsd*-gnu)
9845 (i[34567]86-*-netbsd*, i[34567]86-*-knetbsd*-gnu, i[34567]86-*-openbsd*)
9846 (i[34567]86-*-nto*, i[34567]86-*-solaris2.1[0-9]*)
9847 (x86_64-*-solaris2.1[0-9]*, i[34567]86-*-solaris*, i[34567]86-*-linux*)
9848 (i[34567]86-*-gnu*, ia64-*-linux*, m32r*-*-linux*, m68*-*-linux*)
9849 (m68*-*-netbsd*, m68*-*-knetbsd*-gnu, m68*-*-openbsd*)
9850 (microblaze*-linux-*, microblaze*-*-linux*, mips*-sgi-irix5*)
9851 (mips*-sgi-irix6*, mips*-*-linux*, mips*-*-netbsd*)
9852 (mips*-*-knetbsd*-gnu, mips64*-*-openbsd*, powerpc-*-netbsd*)
9853 (powerpc-*-knetbsd*-gnu, powerpc-*-openbsd*, powerpc-*-aix*, rs6000-*-*)
9854 (powerpc-*-linux*, powerpc64-*-linux*, powerpc*-*-*, s390*-*-*)
9855 (sh*-*-linux*, sh*-*-netbsdelf*, sh*-*-knetbsd*-gnu, sh*-*-openbsd*)
9856 (sparc-*-linux*, sparc64-*-linux*, sparc*-*-freebsd*)
9857 (sparc*-*-kfreebsd*-gnu, sparc-*-netbsd*, sparc-*-knetbsd*-gnu)
9858 (sparc64-*-netbsd*, sparc64-*-knetbsd*-gnu, sparc-*-openbsd*)
9859 (sparc64-*-openbsd*, sparc-*-solaris2.[0-6], sparc-*-solaris2.[0-6].*)
9860 (sparc-*-solaris2*, sparcv9-*-solaris2*, sparc64-*-solaris2*)
9861 (vax-*-netbsd*, vax-*-knetbsd*-gnu, x86_64-*-darwin*, x86_64-*-dicos*)
9862 (x86_64-*-linux*, x86_64-*-freebsd*, x86_64-*-kfreebsd*-gnu)
9863 (x86_64-*-netbsd*, x86_64-*-knetbsd*-gnu, x86_64-*-openbsd*)
9864 (xtensa*-*-linux*, xtensa*): Remove solib.o from gdb_target_obs.
9865
217bff3e
JK
98662012-01-02 Jan Kratochvil <jan.kratochvil@redhat.com>
9867
9868 Remove the gdbtui binary.
9869 * .gitignore (/gdbtui): Remove.
9870 * Makefile.in (TUI): Remove.
9871 (SUBDIR_TUI_OBS): Remove tui-main.o.
9872 (SUBDIR_TUI_SRCS): Remove tui/tui-main.c.
9873 (all-tui, install-tui, uninstall-tui, $(TUI)$(EXEEXT), clean-tui)
9874 (tui-main.o): Remove.
9875 (all_object_files): Remove tui-main.o.
9876 * NEWS: New note for the gdbtui removal.
9877 * configure: Rebuilt.
9878 * configure.ac: No longer add all-tui, clean-tui, install-tui and
9879 uninstall-tui to CONFIG_ALL, CONFIG_CLEAN, CONFIG_INSTALL and
9880 CONFIG_UNINSTALL respectively.
9881 * gdb.c (main): Remove args.interpreter_p initialization.
9882 * main.c (captured_main): Set INTERPRETER_P directly by INTERP_CONSOLE.
9883 * main.h (struct captured_main_args): Remove interpreter_p.
9884 * tui/tui-main.c: Remove.
9885
9cdd5dbd
DE
98862012-01-01 Doug Evans <dje@google.com>
9887
bb5ed363
DE
9888 * dwarf2read.c (dwarf2_compute_name): Simplify objfile references.
9889 (dwarf2_physname, read_import_statement): Ditto.
9890 (read_call_site_scope, dwarf2_record_block_ranges): Ditto.
9891 (process_structure_scope read_subroutine_type): Ditto.
9892 (read_typedef, load_partial_dies, read_partial_die): Ditto.
9893 (find_partial_die, dwarf_decode_lines, lookup_die_type): Ditto.
9894 (dwarf2_fetch_die_location_block): Ditto.
9895 (dwarf_decode_macros, dwarf2_symbol_mark_computed): Ditto.
9896
a0f42c21
DE
9897 * dwarf2read.c (read_signatured_type): Delete `objfile' arg.
9898 All callers updated.
9899 (load_full_comp_unit, queue_comp_unit, process_queue): Ditto.
9900 (dw2_do_instantiate_symtab, dw2_instantiate_symtab): Ditto.
9901 (process_psymtab_comp_unit, load_partial_comp_unit): Ditto.
9902
2dc860c0
DE
9903 * dwarf2read.c (load_cu): Move assert to more useful location.
9904
68dc6402
DE
9905 * dwarf2read.c (free_heap_comp_unit): Renamed from free_one_comp_unit.
9906 All callers updated.
9907
9cdd5dbd
DE
9908 * dwarf2read.c (dwarf2_per_objfile): Add comment.
9909 (dwarf2_elf_names): Minor reformat.
9910 (dwarf2_per_cu_data): Tweak comment.
9911 (dwarf2_read_section): Fix comment.
9912 (create_all_comp_units): Fix comment.
9913 (load_full_comp_unit): Fix comment.
9914 (process_full_comp_unit): Fix comment.
9915 (read_signatured_type): Fix comment.
9916
0c10e53e 9917For older changes see ChangeLog-2011.
c906108c
SS
9918\f
9919Local Variables:
9920mode: change-log
9921left-margin: 8
9922fill-column: 74
9923version-control: never
57da7796 9924coding: utf-8
c906108c 9925End:
This page took 2.036321 seconds and 4 git commands to generate.