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