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