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