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