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