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