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