+2012-01-04 Joel Brobecker <brobecker@adacore.com>
+
+ * linespec.c (struct collect_minsyms) [list_mode]: New field.
+ (add_minsym): Ignore data symbols if not in list mode.
+ (search_minsyms_for_name): Set local.list_mode.
+
2012-01-04 Ulrich Weigand <uweigand@de.ibm.com>
* breakpoint.c (all_locations_are_pending): Consider locations
/* The funfirstline setting from the initial call. */
int funfirstline;
+ /* The list_mode setting from the initial call. */
+ int list_mode;
+
/* The resulting symbols. */
VEC (minsym_and_objfile_d) *msyms;
};
struct collect_minsyms *info = d;
minsym_and_objfile_d mo;
+ /* Exclude data symbols when looking for breakpoint locations. */
+ if (!info->list_mode)
+ switch (minsym->type)
+ {
+ case mst_slot_got_plt:
+ case mst_data:
+ case mst_bss:
+ case mst_abs:
+ case mst_file_data:
+ case mst_file_bss:
+ return;
+ }
+
mo.minsym = minsym;
mo.objfile = info->objfile;
VEC_safe_push (minsym_and_objfile_d, info->msyms, &mo);
memset (&local, 0, sizeof (local));
local.funfirstline = info->state->funfirstline;
+ local.list_mode = info->state->list_mode;
cleanup = make_cleanup (VEC_cleanup (minsym_and_objfile_d),
&local.msyms);
+2011-12-27 Joel Brobecker <brobecker@adacore.com>
+
+ * gdb.base/dmsym.c, gdb.base/dmsym_main.c, gdb.base/dmsym.exp:
+ New files.
+
2012-01-02 Ulrich Weigand <uweigand@de.ibm.com>
* gdb.cell/fork.exp: Delete breakpoints after reaching main.
/* This testcase is part of GDB, the GNU debugger.
- Copyright 2011-2012 Free Software Foundation, Inc.
+ Copyright 2011 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
-# Copyright (C) 2011-2012 Free Software Foundation, Inc.
+# Copyright (C) 2011 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
/* This testcase is part of GDB, the GNU debugger.
- Copyright 2011-2012 Free Software Foundation, Inc.
+ Copyright 2011 Free Software Foundation, Inc.
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by