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