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